diff --git a/pilot/commands/built_in/show_chart_gen.py b/pilot/commands/built_in/show_chart_gen.py deleted file mode 100644 index 160f16db8..000000000 --- a/pilot/commands/built_in/show_chart_gen.py +++ /dev/null @@ -1,56 +0,0 @@ - - -from pilot.commands.command_mange import command -from pilot.configs.config import Config -import pandas as pd -import base64 -import io -import matplotlib -import seaborn as sns -matplotlib.use("Agg") -import matplotlib.pyplot as plt - -from pilot.configs.model_config import LOGDIR -from pilot.utils import build_logger - -CFG = Config() -logger = build_logger("show_chart_gen", LOGDIR + "show_chart_gen.log") - - -@command("response_line_chart", "Use line chart to display SQL data", '"speak": "", "sql":"","db_name":""') -def response_line_chart(speak: str, sql: str, db_name: str) -> str: - logger.info(f"response_line_chart:{speak},{sql},{db_name}") - df = pd.read_sql(sql, CFG.LOCAL_DB_MANAGE.get_connect(db_name)) - columns = df.columns.tolist() - - if df.size <= 0: - raise ValueError("No Data!" + sql) - plt.rcParams["font.family"] = ["sans-serif"] - rc = {"font.sans-serif": "SimHei", "axes.unicode_minus": False} - sns.set(context="notebook", style="ticks", color_codes=True, rc=rc) - plt.subplots(figsize=(8, 5), dpi=100) - sns.barplot(df, x=columns[0], y=columns[1]) - plt.title("") - - buf = io.BytesIO() - plt.savefig(buf, format="png", dpi=100) - buf.seek(0) - data = base64.b64encode(buf.getvalue()).decode("ascii") - - html_img = f"""
{speak}
""" - return html_img - - - -@command("response_bar_chart", "Use bar chart to display SQL data", '"speak": "", "sql":"","db_name":""') -def response_bar_chart(speak: str, sql: str, db_name: str) -> str: - """ - """ - pass - - -@command("response_pie_chart", "Use pie chart to display SQL data", '"speak": "", "sql":"","db_name":""') -def response_pie_chart(speak: str, sql: str, db_name: str) -> str: - """ - """ - pass \ No newline at end of file diff --git a/pilot/commands/built_in/show_table_gen.py b/pilot/commands/built_in/show_table_gen.py deleted file mode 100644 index 3ac0f3728..000000000 --- a/pilot/commands/built_in/show_table_gen.py +++ /dev/null @@ -1,21 +0,0 @@ -import pandas as pd - -from pilot.commands.command_mange import command -from pilot.configs.config import Config - -from pilot.configs.model_config import LOGDIR -from pilot.utils import build_logger - -CFG = Config() -logger = build_logger("show_table_gen", LOGDIR + "show_table_gen.log") - - -@command("response_table", "Use table to display SQL data", '"speak": "", "sql":"","db_name":""') -def response_table(speak: str, sql: str, db_name: str) -> str: - logger.info(f"response_table:{speak},{sql},{db_name}") - df = pd.read_sql(sql, CFG.LOCAL_DB_MANAGE.get_connect(db_name)) - html_table = df.to_html(index=False, escape=False, sparsify=False) - table_str = "".join(html_table.split()) - html = f"""
{table_str}
""" - view_text = f"##### {str(speak)}" + "\n" + html.replace("\n", " ") - return view_text diff --git a/pilot/commands/built_in/show_text_gen.py b/pilot/commands/built_in/show_text_gen.py deleted file mode 100644 index fed860b67..000000000 --- a/pilot/commands/built_in/show_text_gen.py +++ /dev/null @@ -1,33 +0,0 @@ -import pandas as pd - -from pilot.commands.command_mange import command -from pilot.configs.config import Config -from pilot.configs.model_config import LOGDIR -from pilot.utils import build_logger - -CFG = Config() -logger = build_logger("show_table_gen", LOGDIR + "show_table_gen.log") - - -@command("response_data_text", "Use text to display SQL data", - '"speak": "", "sql":"","db_name":""') -def response_data_text(speak: str, sql: str, db_name: str) -> str: - logger.info(f"response_data_text:{speak},{sql},{db_name}") - df = pd.read_sql(sql, CFG.LOCAL_DB_MANAGE.get_connect(db_name)) - data = df.values - - row_size = data.shape[0] - value_str, text_info = "" - if row_size > 1: - html_table = df.to_html(index=False, escape=False, sparsify=False) - table_str = "".join(html_table.split()) - html = f"""
{table_str}
""" - text_info = f"##### {str(speak)}" + "\n" + html.replace("\n", " ") - elif row_size == 1: - row = data[0] - for value in row: - value_str = value_str + f", ** {value} **" - text_info = f"{speak}: {value_str}" - else: - text_info = f"##### {speak}: _没有找到可用的数据_" - return text_info diff --git a/pilot/commands/disply_type/show_chart_gen.py b/pilot/commands/disply_type/show_chart_gen.py index e0e48996c..78b1ed3fd 100644 --- a/pilot/commands/disply_type/show_chart_gen.py +++ b/pilot/commands/disply_type/show_chart_gen.py @@ -17,7 +17,7 @@ CFG = Config() logger = build_logger("show_chart_gen", LOGDIR + "show_chart_gen.log") -@command("response_line_chart", "Use line chart to display SQL data", '"speak": "", "df":""') +@command("response_line_chart", "Line chart display, used to display comparative trend analysis data", '"speak": "", "df":""') def response_line_chart(speak: str, df: DataFrame) -> str: logger.info(f"response_line_chart:{speak},") @@ -27,9 +27,10 @@ def response_line_chart(speak: str, df: DataFrame) -> str: raise ValueError("No Data!") plt.rcParams["font.family"] = ["sans-serif"] rc = {"font.sans-serif": "SimHei", "axes.unicode_minus": False} + sns.set_style(rc={'font.sans-serif': "Microsoft Yahei"}) sns.set(context="notebook", style="ticks", color_codes=True, rc=rc) plt.subplots(figsize=(8, 5), dpi=100) - sns.barplot(df, x=columns[0], y=columns[1]) + sns.lineplot(df, x=columns[0], y=columns[1]) plt.title("") buf = io.BytesIO() @@ -37,20 +38,54 @@ def response_line_chart(speak: str, df: DataFrame) -> str: buf.seek(0) data = base64.b64encode(buf.getvalue()).decode("ascii") - html_img = f"""
{speak}
""" + html_img = f"""
{speak}
""" return html_img -# @command("response_bar_chart", "Use bar chart to display SQL data", '"speak": "", "sql":"","db_name":""') -# def response_bar_chart(speak: str, sql: str, db_name: str) -> str: -# """ -# """ -# pass -# -# -# @command("response_pie_chart", "Use pie chart to display SQL data", '"speak": "", "sql":"","db_name":""') -# def response_pie_chart(speak: str, sql: str, db_name: str) -> str: -# """ -# """ -# pass \ No newline at end of file +@command("response_bar_chart", "Histogram, suitable for comparative analysis of multiple target values", '"speak": "", "df":""') +def response_bar_chart(speak: str, df: DataFrame) -> str: + logger.info(f"response_bar_chart:{speak},") + columns = df.columns.tolist() + if df.size <= 0: + raise ValueError("No Data!") + plt.rcParams["font.family"] = ["sans-serif"] + rc = {"font.sans-serif": "SimHei", "axes.unicode_minus": False} + sns.set_style(rc={'font.sans-serif': "Microsoft Yahei"}) + sns.set(context="notebook", style="ticks", color_codes=True, rc=rc) + plt.subplots(figsize=(8, 5), dpi=100) + sns.barplot(df, x=df[columns[0]], y=df[columns[1]]) + plt.title("") + + buf = io.BytesIO() + plt.savefig(buf, format="png", dpi=100) + buf.seek(0) + data = base64.b64encode(buf.getvalue()).decode("ascii") + + html_img = f"""
{speak}
""" + return html_img + + + +@command("response_pie_chart", "Pie chart, suitable for scenarios such as proportion and distribution statistics", '"speak": "", "df":""') +def response_pie_chart(speak: str, df: DataFrame) -> str: + logger.info(f"response_pie_chart:{speak},") + columns = df.columns.tolist() + if df.size <= 0: + raise ValueError("No Data!") + plt.rcParams["font.family"] = ["sans-serif"] + rc = {"font.sans-serif": "SimHei", "axes.unicode_minus": False} + sns.set_style(rc={'font.sans-serif': "Microsoft Yahei"}) + sns.set(context="notebook", style="ticks", color_codes=True, rc=rc) + sns.set_palette("Set3") # 设置颜色主题 + plt.pie(columns[1], labels=columns[0], autopct='%1.1f%%', startangle=90) + plt.axis('equal') # 使饼图为正圆形 + plt.title(columns[0]) + + buf = io.BytesIO() + plt.savefig(buf, format="png", dpi=100) + buf.seek(0) + data = base64.b64encode(buf.getvalue()).decode("ascii") + + html_img = f"""
{speak}
""" + return html_img \ No newline at end of file diff --git a/pilot/commands/disply_type/show_table_gen.py b/pilot/commands/disply_type/show_table_gen.py index 4597cf64d..0e3cf8dad 100644 --- a/pilot/commands/disply_type/show_table_gen.py +++ b/pilot/commands/disply_type/show_table_gen.py @@ -11,7 +11,7 @@ CFG = Config() logger = build_logger("show_table_gen", LOGDIR + "show_table_gen.log") -@command("response_table", "Use table to display SQL data", '"speak": "", "df":""') +@command("response_table", "Table display, suitable for display with many display columns or non-numeric columns", '"speak": "", "df":""') def response_table(speak: str, df: DataFrame) -> str: logger.info(f"response_table:{speak}") html_table = df.to_html(index=False, escape=False, sparsify=False) diff --git a/pilot/commands/disply_type/show_text_gen.py b/pilot/commands/disply_type/show_text_gen.py index f913cd9f2..2ed43a428 100644 --- a/pilot/commands/disply_type/show_text_gen.py +++ b/pilot/commands/disply_type/show_text_gen.py @@ -10,7 +10,7 @@ CFG = Config() logger = build_logger("show_table_gen", LOGDIR + "show_table_gen.log") -@command("response_data_text", "Use text to display data", +@command("response_data_text", "Text display, the default display method, suitable for single-line or simple content display", '"speak": "", "df":""') def response_data_text(speak: str, df: DataFrame) -> str: logger.info(f"response_data_text:{speak}") diff --git a/pilot/connections/manages/connection_manager.py b/pilot/connections/manages/connection_manager.py index 6dc1a0222..ba184d4e3 100644 --- a/pilot/connections/manages/connection_manager.py +++ b/pilot/connections/manages/connection_manager.py @@ -126,7 +126,7 @@ class ConnectManager: db_user = db_config.get("db_user") db_pwd = db_config.get("db_pwd") return connect_instance.from_uri_db( - db_host, db_port, db_user, db_pwd, db_name + host=db_host, port=db_port, user=db_user, pwd=db_pwd, db_name=db_name ) def get_db_list(self): diff --git a/pilot/connections/rdbms/base.py b/pilot/connections/rdbms/base.py index 807ba7597..51d70d386 100644 --- a/pilot/connections/rdbms/base.py +++ b/pilot/connections/rdbms/base.py @@ -95,13 +95,13 @@ class RDBMSDatabase(BaseConnect): db_url: str = ( cls.driver + "://" - + CFG.LOCAL_DB_USER + + user + ":" - + CFG.LOCAL_DB_PASSWORD + + pwd + "@" - + CFG.LOCAL_DB_HOST + + host + ":" - + str(CFG.LOCAL_DB_PORT) + + str(port) + "/" + db_name ) diff --git a/pilot/json_utils/utilities.py b/pilot/json_utils/utilities.py index c8d207807..9eb753912 100644 --- a/pilot/json_utils/utilities.py +++ b/pilot/json_utils/utilities.py @@ -2,6 +2,8 @@ import json import os.path import re +import json +from datetime import datetime from jsonschema import Draft7Validator @@ -79,3 +81,10 @@ def is_string_valid_json(json_string: str, schema_name: str) -> bool: """ return validate_json_string(json_string, schema_name) is not None + + +class DateTimeEncoder(json.JSONEncoder): + def default(self, obj): + if isinstance(obj, datetime): + return obj.isoformat() + return super().default(obj) diff --git a/pilot/openapi/api_v1/api_v1.py b/pilot/openapi/api_v1/api_v1.py index b9d9825b1..baa1c6263 100644 --- a/pilot/openapi/api_v1/api_v1.py +++ b/pilot/openapi/api_v1/api_v1.py @@ -139,6 +139,7 @@ async def dialogue_scenes(): scene_vos: List[ChatSceneVo] = [] new_modes: List[ChatScene] = [ ChatScene.ChatWithDbExecute, + ChatScene.ChatExcel, ChatScene.ChatWithDbQA, ChatScene.ChatKnowledge, ChatScene.ChatDashboard, @@ -229,9 +230,10 @@ async def chat_prepare(dialogue: ConversationVo = Body()): logger.info(f"chat_prepare:{dialogue}") ## check conv_uid chat: BaseChat = get_chat_instance(dialogue) - if not chat.history_message: + if len(chat.history_message) >0: return Result.succ(None) - return Result.succ(chat.prepare()) + resp = chat.prepare() + return Result.succ(resp) @router.post("/v1/chat/completions") diff --git a/pilot/scene/base.py b/pilot/scene/base.py index 61115e2af..2bfa2b11e 100644 --- a/pilot/scene/base.py +++ b/pilot/scene/base.py @@ -33,7 +33,7 @@ class ChatScene(Enum): code = "excel_learning", name = "Excel Learning", describe = "Analyze and summarize your excel files.", - param_types = [], + param_types=["File Select"], is_inner = True, ) ChatExcel = Scene( diff --git a/pilot/scene/base_chat.py b/pilot/scene/base_chat.py index 415d2cec3..1a76a5795 100644 --- a/pilot/scene/base_chat.py +++ b/pilot/scene/base_chat.py @@ -85,16 +85,16 @@ class BaseChat(ABC): proxyllm_backend=CFG.PROXYLLM_BACKEND, ) ) - if not chat_mode.is_inner(): - ### can configurable storage methods - self.memory = DuckdbHistoryMemory(chat_session_id) - self.history_message: List[OnceConversation] = self.memory.messages() - self.current_message: OnceConversation = OnceConversation(chat_mode.value()) - if select_param: - self.current_message.param_type = chat_mode.param_types()[0] - self.current_message.param_value = select_param - self.current_tokens_used: int = 0 + ### can configurable storage methods + self.memory = DuckdbHistoryMemory(chat_session_id) + + self.history_message: List[OnceConversation] = self.memory.messages() + self.current_message: OnceConversation = OnceConversation(chat_mode.value()) + if select_param: + self.current_message.param_type = chat_mode.param_types()[0] + self.current_message.param_value = select_param + self.current_tokens_used: int = 0 class Config: """Configuration for this pydantic object.""" @@ -181,7 +181,6 @@ class BaseChat(ABC): return response else: from pilot.server.llmserver import worker - return worker.generate_stream_gate(payload) except Exception as e: print(traceback.format_exc()) diff --git a/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py b/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py index e1d36ac52..7c8fb8745 100644 --- a/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py +++ b/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py @@ -1,6 +1,8 @@ import json import os + +from typing import List, Any, Dict from pilot.scene.base_message import ( HumanMessage, ViewMessage, @@ -12,21 +14,19 @@ from pilot.configs.config import Config from pilot.common.markdown_text import ( generate_htm_table, ) -from pilot.scene.chat_data.chat_excel.excel_learning.prompt import prompt +from pilot.scene.chat_data.chat_excel.excel_analyze.prompt import prompt from pilot.scene.chat_data.chat_excel.excel_reader import ExcelReader - +from pilot.scene.chat_data.chat_excel.excel_learning.chat import ExcelLearning CFG = Config() -class ExcelLearning(BaseChat): +class ChatExcel(BaseChat): chat_scene: str = ChatScene.ChatExcel.value() - + chat_retention_rounds = 2 def __init__(self, chat_session_id, user_input, select_param: str = ""): chat_mode = ChatScene.ChatExcel self.excel_file_path = select_param - file_name, file_extension = os.path.splitext(select_param) - self.excel_file_name = file_name self.excel_reader = ExcelReader(select_param) super().__init__( @@ -36,10 +36,40 @@ class ExcelLearning(BaseChat): select_param=select_param, ) + + def _generate_command_string(self, command: Dict[str, Any]) -> str: + """ + Generate a formatted string representation of a command. + + Args: + command (dict): A dictionary containing command information. + + Returns: + str: The formatted command string. + """ + args_string = ", ".join( + f'"{key}": "{value}"' for key, value in command["args"].items() + ) + return f'{command["label"]}: "{command["name"]}", args: {args_string}' + + def _generate_numbered_list(self) -> str: + command_strings = [] + if CFG.command_disply: + command_strings += [ + str(item) + for item in CFG.command_disply.commands.values() + if item.enabled + ] + return "\n".join(f"{i+1}. {item}" for i, item in enumerate(command_strings)) + + def generate_input_values(self): + input_values = { - "data_example": json.dumps(self.excel_reader.get_sample_data()), + "user_input": self.current_user_input, + "table_name": self.excel_reader.table_name, + "disply_type": self._generate_numbered_list(), } return input_values @@ -47,19 +77,21 @@ class ExcelLearning(BaseChat): logger.info(f"{self.chat_mode} prepare start!") chat_param = { "chat_session_id": self.chat_session_id, - "user_input": self.excel_file_name + " analysis!", + "user_input": self.excel_reader.excel_file_name + " analysis!", "select_param": self.excel_file_path } - chat: BaseChat = ExcelLearning(**chat_param) - - return chat.call() + learn_chat = ExcelLearning(**chat_param) + result = learn_chat.nostream_call() + return result def do_action(self, prompt_response): print(f"do_action:{prompt_response}") - param= { - "speak": prompt_response["thoughts"], - "df": self.excel_reader.get_df_by_sql(prompt_response["sql"]) - } - return CFG.command_disply.call(prompt_response['display'], **param) + + # colunms, datas = self.excel_reader.run(prompt_response.sql) + param= { + "speak": prompt_response.thoughts, + "df": self.excel_reader.get_df_by_sql_ex(prompt_response.sql) + } + return CFG.command_disply.call(prompt_response.display, **param) diff --git a/pilot/scene/chat_data/chat_excel/excel_analyze/out_parser.py b/pilot/scene/chat_data/chat_excel/excel_analyze/out_parser.py index e785f656a..3e5dfa68a 100644 --- a/pilot/scene/chat_data/chat_excel/excel_analyze/out_parser.py +++ b/pilot/scene/chat_data/chat_excel/excel_analyze/out_parser.py @@ -33,9 +33,9 @@ class ChatExcelOutputParser(BaseOutputParser): sql = response[key] if key.strip() == "thoughts": thoughts = response[key] - if key.strip() == "disply": - disply = response[key] - return ExcelAnalyzeResponse(sql, thoughts, disply) + if key.strip() == "display": + display = response[key] + return ExcelAnalyzeResponse(sql, thoughts, display) def parse_view_response(self, speak, data) -> str: ### tool out data to table view diff --git a/pilot/scene/chat_data/chat_excel/excel_analyze/prompt.py b/pilot/scene/chat_data/chat_excel/excel_analyze/prompt.py index ceff1ae48..3ab299d6d 100644 --- a/pilot/scene/chat_data/chat_excel/excel_analyze/prompt.py +++ b/pilot/scene/chat_data/chat_excel/excel_analyze/prompt.py @@ -2,7 +2,7 @@ import json from pilot.prompts.prompt_new import PromptTemplate from pilot.configs.config import Config from pilot.scene.base import ChatScene -from pilot.scene.chat_db.auto_execute.out_parser import DbChatOutputParser, SqlAction +from pilot.scene.chat_data.chat_excel.excel_analyze.out_parser import ChatExcelOutputParser from pilot.common.schema import SeparatorStyle CFG = Config() @@ -10,11 +10,14 @@ CFG = Config() PROMPT_SCENE_DEFINE = "You are a data analysis expert. " _DEFAULT_TEMPLATE = """ -Please give data analysis SQL based on the following user goals: {user_input} -Display type: - {disply_type} +Please use the data structure information of the above historical dialogue, make sure not to use column names that are not in the data structure. +According to the user goal: {user_input},give the correct duckdb SQL for data analysis. +Use the table name: {table_name} According to the analysis SQL obtained by the user's goal, select the best one from the following display forms, if it cannot be determined, use Text as the display. +Display type: + {disply_type} + Respond in the following json format: {response} Ensure the response is correct json and can be parsed by Python json.loads @@ -39,14 +42,15 @@ PROMPT_TEMPERATURE = 0.8 prompt = PromptTemplate( template_scene=ChatScene.ChatExcel.value(), - input_variables=["user_input", "disply_type"], + input_variables=["user_input", "table_name", "disply_type"], response_format=json.dumps(RESPONSE_FORMAT_SIMPLE, ensure_ascii=False, indent=4), template_define=PROMPT_SCENE_DEFINE, template=_DEFAULT_TEMPLATE, stream_out=PROMPT_NEED_NEED_STREAM_OUT, - output_parser=DbChatOutputParser( + output_parser=ChatExcelOutputParser( sep=PROMPT_SEP, is_stream_out=PROMPT_NEED_NEED_STREAM_OUT ), + need_historical_messages = True, # example_selector=sql_data_example, temperature=PROMPT_TEMPERATURE, ) diff --git a/pilot/scene/chat_data/chat_excel/excel_learning/chat.py b/pilot/scene/chat_data/chat_excel/excel_learning/chat.py index 2b79a1426..5217c2da1 100644 --- a/pilot/scene/chat_data/chat_excel/excel_learning/chat.py +++ b/pilot/scene/chat_data/chat_excel/excel_learning/chat.py @@ -1,4 +1,5 @@ import json +import os from pilot.scene.base_message import ( HumanMessage, @@ -13,6 +14,7 @@ from pilot.common.markdown_text import ( ) from pilot.scene.chat_data.chat_excel.excel_learning.prompt import prompt from pilot.scene.chat_data.chat_excel.excel_reader import ExcelReader +from pilot.json_utils.utilities import DateTimeEncoder CFG = Config() @@ -20,15 +22,16 @@ CFG = Config() class ExcelLearning(BaseChat): chat_scene: str = ChatScene.ExcelLearning.value() - def __init__(self, chat_session_id, user_input, file_path): - chat_mode = ChatScene.ChatWithDbExecute + def __init__(self, chat_session_id, user_input, select_param:str=None): + chat_mode = ChatScene.ExcelLearning """ """ - self.excel_reader = ExcelReader(file_path) + self.excel_file_path = select_param + self.excel_reader = ExcelReader(select_param) super().__init__( chat_mode=chat_mode, chat_session_id=chat_session_id, current_user_input = user_input, - select_param=file_path, + select_param=select_param, ) @@ -38,7 +41,7 @@ class ExcelLearning(BaseChat): datas.insert(0, colunms) input_values = { - "data_example": datas, + "data_example": json.dumps(self.excel_reader.get_sample_data(), cls=DateTimeEncoder), } return input_values diff --git a/pilot/scene/chat_data/chat_excel/excel_learning/out_parser.py b/pilot/scene/chat_data/chat_excel/excel_learning/out_parser.py index 90d4b6d7f..5c8e2a58e 100644 --- a/pilot/scene/chat_data/chat_excel/excel_learning/out_parser.py +++ b/pilot/scene/chat_data/chat_excel/excel_learning/out_parser.py @@ -20,7 +20,7 @@ class ExcelResponse(NamedTuple): logger = build_logger("chat_excel", LOGDIR + "ChatExcel.log") -class ChatExcelOutputParser(BaseOutputParser): +class LearningExcelOutputParser(BaseOutputParser): def __init__(self, sep: str, is_stream_out: bool): super().__init__(sep=sep, is_stream_out=is_stream_out) @@ -29,37 +29,25 @@ class ChatExcelOutputParser(BaseOutputParser): print("clean prompt response:", clean_str) response = json.loads(clean_str) for key in sorted(response): - if key.strip() == "Data Analysis": + if key.strip() == "DataAnalysis": desciption = response[key] - if key.strip() == "Column Analysis": + if key.strip() == "ColumnAnalysis": clounms = response[key] - if key.strip() == "Analysis Program": + if key.strip() == "AnalysisProgram": plans = response[key] - return ExcelResponse(desciption=desciption, clounms=clounms,plans=plans) + return ExcelResponse(desciption=desciption, clounms=clounms, plans=plans) def parse_view_response(self, speak, data) -> str: ### tool out data to table view - - - - html_title= data["desciption"] - html_colunms= f"
数据结构
    " - for item in data["clounms"]: - html_colunms = html_colunms + "
  • " + html_title = f"### **数据简介:**\n{data.desciption} \n" + html_colunms = f"### **数据结构:**\n" + for item in data.clounms: keys = item.keys() for key in keys: - html_colunms = html_colunms + f"{key}:{item[key]}" - html_colunms = html_colunms + "
  • " - html_colunms= html_colunms + "
" + html_colunms = html_colunms + f"- **{key}**:{item[key]} \n" - html_plans="
    " - for item in data["plans"]: - html_plans = html_plans + f"
  1. {item}
  2. " - html = f""" -
    -

    {html_title}

    -
    {html_colunms}
    -
    {html_plans}
    -
    - """ - return html \ No newline at end of file + html_plans = f"\n ### **分析计划:** \n" + for item in data.plans: + html_plans = html_plans + f"- {item} \n" + html = f"""{html_title}{html_colunms}{html_plans}""" + return html diff --git a/pilot/scene/chat_data/chat_excel/excel_learning/prompt.py b/pilot/scene/chat_data/chat_excel/excel_learning/prompt.py index 6cd7a313e..78cfd3987 100644 --- a/pilot/scene/chat_data/chat_excel/excel_learning/prompt.py +++ b/pilot/scene/chat_data/chat_excel/excel_learning/prompt.py @@ -2,7 +2,7 @@ import json from pilot.prompts.prompt_new import PromptTemplate from pilot.configs.config import Config from pilot.scene.base import ChatScene -from pilot.scene.chat_db.auto_execute.out_parser import DbChatOutputParser, SqlAction +from pilot.scene.chat_data.chat_excel.excel_learning.out_parser import LearningExcelOutputParser from pilot.common.schema import SeparatorStyle CFG = Config() @@ -20,9 +20,9 @@ Please return your answer in JSON format, the return format is as follows: """ RESPONSE_FORMAT_SIMPLE = { - "Data Analysis": "数据内容分析总结", - "Colunm Analysis": [{"colunm name": "字段介绍,专业术语解释(请尽量简单明了)"}], - "Analysis Program": ["1.分析方案1,图表展示方式1", "2.分析方案2,图表展示方式2"], + "DataAnalysis": "数据内容分析总结", + "ColumnAnalysis": [{"column name1": "字段1介绍,专业术语解释(请尽量简单明了)"}], + "AnalysisProgram": ["1.分析方案1,图表展示方式1", "2.分析方案2,图表展示方式2"], } @@ -43,7 +43,7 @@ prompt = PromptTemplate( template_define=PROMPT_SCENE_DEFINE, template=_DEFAULT_TEMPLATE, stream_out=PROMPT_NEED_NEED_STREAM_OUT, - output_parser=DbChatOutputParser( + output_parser=LearningExcelOutputParser( sep=PROMPT_SEP, is_stream_out=PROMPT_NEED_NEED_STREAM_OUT ), # example_selector=sql_data_example, diff --git a/pilot/scene/chat_data/chat_excel/excel_learning/test.py b/pilot/scene/chat_data/chat_excel/excel_learning/test.py index 5dbce6883..373b6fac1 100644 --- a/pilot/scene/chat_data/chat_excel/excel_learning/test.py +++ b/pilot/scene/chat_data/chat_excel/excel_learning/test.py @@ -6,79 +6,88 @@ import time from fsspec import filesystem import spatial +from pilot.scene.chat_data.chat_excel.excel_reader import ExcelReader + if __name__ == "__main__": # connect = duckdb.connect("/Users/tuyang.yhj/Downloads/example.xlsx") # + excel_reader = ExcelReader("/Users/tuyang.yhj/Downloads/example.xlsx") - def csv_colunm_foramt(val): - if str(val).find("$") >= 0: - return float(val.replace('$', '').replace(',', '')) - if str(val).find("¥") >= 0: - return float(val.replace('¥', '').replace(',', '')) - return val + # colunms, datas = excel_reader.run( "SELECT CONCAT(Year, '-', Quarter) AS QuarterYear, SUM(Sales) AS TotalSales FROM example GROUP BY QuarterYear ORDER BY QuarterYear") + colunms, datas = excel_reader.run( """ SELECT Month_Name, SUM(Sales) AS Total_Sales FROM example WHERE Year = '2019' GROUP BY Month_Name """) - # 获取当前时间戳,作为代码开始的时间 - start_time = int(time.time() * 1000) - - df = pd.read_excel('/Users/tuyang.yhj/Downloads/example.xlsx') - # 读取 Excel 文件为 Pandas DataFrame - df = pd.read_excel('/Users/tuyang.yhj/Downloads/example.xlsx', converters={i: csv_colunm_foramt for i in range(df.shape[1])}) - - # d = df.values - # print(d.shape[0]) - # for row in d: - # print(row[0]) - # print(len(row)) - # r = df.iterrows() - - # 获取当前时间戳,作为代码结束的时间 - end_time = int(time.time() * 1000) - - print(f"耗时:{(end_time-start_time)/1000}秒") - - # 连接 DuckDB 数据库 - con = duckdb.connect(database=':memory:', read_only=False) - - # 将 DataFrame 写入 DuckDB 数据库中的一个表 - con.register('example', df) - - # 查询 DuckDB 数据库中的表 - conn = con.cursor() - results = con.execute('SELECT Country, SUM(Profit) AS Total_Profit FROM example GROUP BY Country ORDER BY Total_Profit DESC LIMIT 1;') - colunms = [] - for descrip in results.description: - colunms.append(descrip[0]) - print(colunms) - for row in results.fetchall(): - print(row) - - - # 连接 DuckDB 数据库 - # con = duckdb.connect(':memory:') - - # # 加载 spatial 扩展 - # con.execute('install spatial;') - # con.execute('load spatial;') - # - # # 查询 duckdb_internal 系统表,获取扩展列表 - # result = con.execute("SELECT * FROM duckdb_internal.functions WHERE schema='list_extensions';") - # - # # 遍历查询结果,输出扩展名称和版本号 - # for row in result: - # print(row['name'], row['return_type']) - # duckdb.read_csv('/Users/tuyang.yhj/Downloads/example_csc.csv') - # result = duckdb.sql('SELECT * FROM "/Users/tuyang.yhj/Downloads/yhj-zx.csv" ') - # result = duckdb.sql('SELECT * FROM "/Users/tuyang.yhj/Downloads/example_csc.csv" limit 20') - # for row in result.fetchall(): - # print(row) - - - # result = con.execute("SELECT * FROM st_read('/Users/tuyang.yhj/Downloads/example.xlsx', layer='Sheet1')") - # # 遍历查询结果 - # for row in result.fetchall(): - # print(row) print("xx") - - - + # + # + # def csv_colunm_foramt(val): + # if str(val).find("$") >= 0: + # return float(val.replace('$', '').replace(',', '')) + # if str(val).find("¥") >= 0: + # return float(val.replace('¥', '').replace(',', '')) + # return val + # + # # 获取当前时间戳,作为代码开始的时间 + # start_time = int(time.time() * 1000) + # + # df = pd.read_excel('/Users/tuyang.yhj/Downloads/example.xlsx') + # # 读取 Excel 文件为 Pandas DataFrame + # df = pd.read_excel('/Users/tuyang.yhj/Downloads/example.xlsx', converters={i: csv_colunm_foramt for i in range(df.shape[1])}) + # + # # d = df.values + # # print(d.shape[0]) + # # for row in d: + # # print(row[0]) + # # print(len(row)) + # # r = df.iterrows() + # + # # 获取当前时间戳,作为代码结束的时间 + # end_time = int(time.time() * 1000) + # + # print(f"耗时:{(end_time-start_time)/1000}秒") + # + # # 连接 DuckDB 数据库 + # con = duckdb.connect(database=':memory:', read_only=False) + # + # # 将 DataFrame 写入 DuckDB 数据库中的一个表 + # con.register('example', df) + # + # # 查询 DuckDB 数据库中的表 + # conn = con.cursor() + # results = con.execute('SELECT Country, SUM(Profit) AS Total_Profit FROM example GROUP BY Country ORDER BY Total_Profit DESC LIMIT 1;') + # colunms = [] + # for descrip in results.description: + # colunms.append(descrip[0]) + # print(colunms) + # for row in results.fetchall(): + # print(row) + # + # + # # 连接 DuckDB 数据库 + # # con = duckdb.connect(':memory:') + # + # # # 加载 spatial 扩展 + # # con.execute('install spatial;') + # # con.execute('load spatial;') + # # + # # # 查询 duckdb_internal 系统表,获取扩展列表 + # # result = con.execute("SELECT * FROM duckdb_internal.functions WHERE schema='list_extensions';") + # # + # # # 遍历查询结果,输出扩展名称和版本号 + # # for row in result: + # # print(row['name'], row['return_type']) + # # duckdb.read_csv('/Users/tuyang.yhj/Downloads/example_csc.csv') + # # result = duckdb.sql('SELECT * FROM "/Users/tuyang.yhj/Downloads/yhj-zx.csv" ') + # # result = duckdb.sql('SELECT * FROM "/Users/tuyang.yhj/Downloads/example_csc.csv" limit 20') + # # for row in result.fetchall(): + # # print(row) + # + # + # # result = con.execute("SELECT * FROM st_read('/Users/tuyang.yhj/Downloads/example.xlsx', layer='Sheet1')") + # # # 遍历查询结果 + # # for row in result.fetchall(): + # # print(row) + # print("xx") + # + # + # diff --git a/pilot/scene/chat_data/chat_excel/excel_reader.py b/pilot/scene/chat_data/chat_excel/excel_reader.py index 1ad3565ca..35d6678f2 100644 --- a/pilot/scene/chat_data/chat_excel/excel_reader.py +++ b/pilot/scene/chat_data/chat_excel/excel_reader.py @@ -1,19 +1,35 @@ import duckdb +import os import pandas as pd from pilot.common.pd_utils import csv_colunm_foramt +def excel_colunm_format(old_name:str)->str: + new_column = old_name.strip() + new_column = new_column.replace(" ", "_") + return new_column class ExcelReader: def __init__(self, file_path): # read excel filt df_tmp = pd.read_excel(file_path) + + self.df = pd.read_excel(file_path, converters={i: csv_colunm_foramt for i in range(df_tmp.shape[1])}) + self.columns_map = {} + for column_name in df_tmp.columns: + self.columns_map.update({column_name: excel_colunm_format(column_name)}) + + self.df = self.df.rename(columns=lambda x: x.strip().replace(' ', '_')) + # connect DuckDB self.db = duckdb.connect(database=':memory:', read_only=False) + file_name = os.path.basename(file_path) + file_name_without_extension = os.path.splitext(file_name)[0] - self.table_name = f"excel" + self.excel_file_name = file_name_without_extension + self.table_name = file_name_without_extension # write data in duckdb self.db.register(self.table_name, self.df) diff --git a/pilot/scene/chat_factory.py b/pilot/scene/chat_factory.py index 51a7717dc..d7aad8b28 100644 --- a/pilot/scene/chat_factory.py +++ b/pilot/scene/chat_factory.py @@ -9,6 +9,7 @@ from pilot.scene.chat_db.auto_execute.chat import ChatWithDbAutoExecute from pilot.scene.chat_dashboard.chat import ChatDashboard from pilot.scene.chat_knowledge.v1.chat import ChatKnowledge from pilot.scene.chat_knowledge.inner_db_summary.chat import InnerChatDBSummary +from pilot.scene.chat_data.chat_excel.excel_analyze.chat import ChatExcel class ChatFactory(metaclass=Singleton): diff --git a/pilot/server/dbgpt_server.py b/pilot/server/dbgpt_server.py index 54f73f576..edfba8d8b 100644 --- a/pilot/server/dbgpt_server.py +++ b/pilot/server/dbgpt_server.py @@ -75,7 +75,7 @@ app.include_router(knowledge_router, prefix="/api") app.include_router(api_editor_route_v1, prefix="/api") # app.include_router(api_v1) -# app.include_router(knowledge_router) +app.include_router(knowledge_router) # app.include_router(api_editor_route_v1) app.mount("/_next/static", StaticFiles(directory=static_file_path + "/_next/static")) diff --git a/pilot/server/static/404.html b/pilot/server/static/404.html index efcab8312..294da0a18 100644 --- a/pilot/server/static/404.html +++ b/pilot/server/static/404.html @@ -1 +1 @@ -404: This page could not be found

    404

    This page could not be found.

    \ No newline at end of file +404: This page could not be found

    404

    This page could not be found.

    \ No newline at end of file diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html index efcab8312..294da0a18 100644 --- a/pilot/server/static/404/index.html +++ b/pilot/server/static/404/index.html @@ -1 +1 @@ -404: This page could not be found

    404

    This page could not be found.

    \ No newline at end of file +404: This page could not be found

    404

    This page could not be found.

    \ No newline at end of file diff --git a/pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_buildManifest.js b/pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_buildManifest.js deleted file mode 100644 index cb10d35e8..000000000 --- a/pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-f5357f382422dd96.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_ssgManifest.js b/pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_ssgManifest.js deleted file mode 100644 index 5b3ff592f..000000000 --- a/pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_ssgManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/pilot/server/static/_next/static/A5QlvQugyBg85syAKbPsn/_buildManifest.js b/pilot/server/static/_next/static/A5QlvQugyBg85syAKbPsn/_buildManifest.js deleted file mode 100644 index 8b3a3e1ad..000000000 --- a/pilot/server/static/_next/static/A5QlvQugyBg85syAKbPsn/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-bcb3296e330590f7.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/pilot/server/static/_next/static/A5QlvQugyBg85syAKbPsn/_ssgManifest.js b/pilot/server/static/_next/static/A5QlvQugyBg85syAKbPsn/_ssgManifest.js deleted file mode 100644 index 5b3ff592f..000000000 --- a/pilot/server/static/_next/static/A5QlvQugyBg85syAKbPsn/_ssgManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/pilot/server/static/_next/static/8J6oF0PtATupjimCxWfXw/_buildManifest.js b/pilot/server/static/_next/static/ae8AMgI-SPy2zYTXfjFnE/_buildManifest.js similarity index 100% rename from pilot/server/static/_next/static/8J6oF0PtATupjimCxWfXw/_buildManifest.js rename to pilot/server/static/_next/static/ae8AMgI-SPy2zYTXfjFnE/_buildManifest.js diff --git a/pilot/server/static/_next/static/8J6oF0PtATupjimCxWfXw/_ssgManifest.js b/pilot/server/static/_next/static/ae8AMgI-SPy2zYTXfjFnE/_ssgManifest.js similarity index 100% rename from pilot/server/static/_next/static/8J6oF0PtATupjimCxWfXw/_ssgManifest.js rename to pilot/server/static/_next/static/ae8AMgI-SPy2zYTXfjFnE/_ssgManifest.js diff --git a/pilot/server/static/_next/static/chunks/0e02fca3-615d0d51fa074d92.js b/pilot/server/static/_next/static/chunks/0e02fca3-615d0d51fa074d92.js deleted file mode 100644 index 1201ad672..000000000 --- a/pilot/server/static/_next/static/chunks/0e02fca3-615d0d51fa074d92.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[180],{84835:function(n,t,r){var e;n=r.nmd(n),(function(){var u,i="Expected a function",o="__lodash_hash_undefined__",f="__lodash_placeholder__",a=1/0,c=0/0,l=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",h="[object Array]",p="[object Boolean]",v="[object Date]",_="[object Error]",g="[object Function]",y="[object GeneratorFunction]",d="[object Map]",b="[object Number]",w="[object Object]",m="[object Promise]",x="[object RegExp]",j="[object Set]",A="[object String]",k="[object Symbol]",O="[object WeakMap]",I="[object ArrayBuffer]",E="[object DataView]",R="[object Float32Array]",z="[object Float64Array]",S="[object Int8Array]",C="[object Int16Array]",W="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",B="[object Uint16Array]",T="[object Uint32Array]",$=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,F=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,P=RegExp(F.source),q=RegExp(N.source),Z=/<%-([\s\S]+?)%>/g,K=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,J=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(Y.source),X=/^\s+/,nn=/\s/,nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nr=/\{\n\/\* \[wrapped with (.+)\] \*/,ne=/,? & /,nu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ni=/[()=,{}\[\]\/\s]/,no=/\\(\\)?/g,nf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,na=/\w*$/,nc=/^[-+]0x[0-9a-f]+$/i,nl=/^0b[01]+$/i,ns=/^\[object .+?Constructor\]$/,nh=/^0o[0-7]+$/i,np=/^(?:0|[1-9]\d*)$/,nv=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n_=/($^)/,ng=/['\n\r\u2028\u2029\\]/g,ny="\ud800-\udfff",nd="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",nb="\\u2700-\\u27bf",nw="a-z\\xdf-\\xf6\\xf8-\\xff",nm="A-Z\\xc0-\\xd6\\xd8-\\xde",nx="\\ufe0e\\ufe0f",nj="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nA="['’]",nk="["+nj+"]",nO="["+nd+"]",nI="["+nw+"]",nE="[^"+ny+nj+"\\d+"+nb+nw+nm+"]",nR="\ud83c[\udffb-\udfff]",nz="[^"+ny+"]",nS="(?:\ud83c[\udde6-\uddff]){2}",nC="[\ud800-\udbff][\udc00-\udfff]",nW="["+nm+"]",nL="\\u200d",nU="(?:"+nI+"|"+nE+")",nB="(?:"+nA+"(?:d|ll|m|re|s|t|ve))?",nT="(?:"+nA+"(?:D|LL|M|RE|S|T|VE))?",n$="(?:"+nO+"|"+nR+")?",nD="["+nx+"]?",nM="(?:"+nL+"(?:"+[nz,nS,nC].join("|")+")"+nD+n$+")*",nF=nD+n$+nM,nN="(?:"+["["+nb+"]",nS,nC].join("|")+")"+nF,nP="(?:"+[nz+nO+"?",nO,nS,nC,"["+ny+"]"].join("|")+")",nq=RegExp(nA,"g"),nZ=RegExp(nO,"g"),nK=RegExp(nR+"(?="+nR+")|"+nP+nF,"g"),nV=RegExp([nW+"?"+nI+"+"+nB+"(?="+[nk,nW,"$"].join("|")+")","(?:"+nW+"|"+nE+")+"+nT+"(?="+[nk,nW+nU,"$"].join("|")+")",nW+"?"+nU+"+"+nB,nW+"+"+nT,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",nN].join("|"),"g"),nG=RegExp("["+nL+ny+nd+nx+"]"),nH=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nJ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nY=-1,nQ={};nQ[R]=nQ[z]=nQ[S]=nQ[C]=nQ[W]=nQ[L]=nQ[U]=nQ[B]=nQ[T]=!0,nQ[s]=nQ[h]=nQ[I]=nQ[p]=nQ[E]=nQ[v]=nQ[_]=nQ[g]=nQ[d]=nQ[b]=nQ[w]=nQ[x]=nQ[j]=nQ[A]=nQ[O]=!1;var nX={};nX[s]=nX[h]=nX[I]=nX[E]=nX[p]=nX[v]=nX[R]=nX[z]=nX[S]=nX[C]=nX[W]=nX[d]=nX[b]=nX[w]=nX[x]=nX[j]=nX[A]=nX[k]=nX[L]=nX[U]=nX[B]=nX[T]=!0,nX[_]=nX[g]=nX[O]=!1;var n0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},n1=parseFloat,n2=parseInt,n9="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,n3="object"==typeof self&&self&&self.Object===Object&&self,n4=n9||n3||Function("return this")(),n8=t&&!t.nodeType&&t,n7=n8&&n&&!n.nodeType&&n,n6=n7&&n7.exports===n8,n5=n6&&n9.process,tn=function(){try{var n=n7&&n7.require&&n7.require("util").types;if(n)return n;return n5&&n5.binding&&n5.binding("util")}catch(n){}}(),tt=tn&&tn.isArrayBuffer,tr=tn&&tn.isDate,te=tn&&tn.isMap,tu=tn&&tn.isRegExp,ti=tn&&tn.isSet,to=tn&&tn.isTypedArray;function tf(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function ta(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function tv(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function tT(n,t){for(var r=n.length;r--&&tj(t,n[r],0)>-1;);return r}var t$=tE({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tD=tE({"&":"&","<":"<",">":">",'"':""","'":"'"});function tM(n){return"\\"+n0[n]}function tF(n){return nG.test(n)}function tN(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function tP(n,t){return function(r){return n(t(r))}}function tq(n,t){for(var r=-1,e=n.length,u=0,i=[];++r",""":'"',"'":"'"}),tJ=function n(t){var r,e,nn,ny,nd=(t=null==t?n4:tJ.defaults(n4.Object(),t,tJ.pick(n4,nJ))).Array,nb=t.Date,nw=t.Error,nm=t.Function,nx=t.Math,nj=t.Object,nA=t.RegExp,nk=t.String,nO=t.TypeError,nI=nd.prototype,nE=nm.prototype,nR=nj.prototype,nz=t["__core-js_shared__"],nS=nE.toString,nC=nR.hasOwnProperty,nW=0,nL=(r=/[^.]+$/.exec(nz&&nz.keys&&nz.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",nU=nR.toString,nB=nS.call(nj),nT=n4._,n$=nA("^"+nS.call(nC).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),nD=n6?t.Buffer:u,nM=t.Symbol,nF=t.Uint8Array,nN=nD?nD.allocUnsafe:u,nP=tP(nj.getPrototypeOf,nj),nK=nj.create,nG=nR.propertyIsEnumerable,n0=nI.splice,n9=nM?nM.isConcatSpreadable:u,n3=nM?nM.iterator:u,n8=nM?nM.toStringTag:u,n7=function(){try{var n=ud(nj,"defineProperty");return n({},"",{}),n}catch(n){}}(),n5=t.clearTimeout!==n4.clearTimeout&&t.clearTimeout,tn=nb&&nb.now!==n4.Date.now&&nb.now,tw=t.setTimeout!==n4.setTimeout&&t.setTimeout,tE=nx.ceil,tY=nx.floor,tQ=nj.getOwnPropertySymbols,tX=nD?nD.isBuffer:u,t0=t.isFinite,t1=nI.join,t2=tP(nj.keys,nj),t9=nx.max,t3=nx.min,t4=nb.now,t8=t.parseInt,t7=nx.random,t6=nI.reverse,t5=ud(t,"DataView"),rn=ud(t,"Map"),rt=ud(t,"Promise"),rr=ud(t,"Set"),re=ud(t,"WeakMap"),ru=ud(nj,"create"),ri=re&&new re,ro={},rf=uP(t5),ra=uP(rn),rc=uP(rt),rl=uP(rr),rs=uP(re),rh=nM?nM.prototype:u,rp=rh?rh.valueOf:u,rv=rh?rh.toString:u;function r_(n){if(iQ(n)&&!iF(n)&&!(n instanceof rb)){if(n instanceof rd)return n;if(nC.call(n,"__wrapped__"))return uq(n)}return new rd(n)}var rg=function(){function n(){}return function(t){if(!iY(t))return{};if(nK)return nK(t);n.prototype=t;var r=new n;return n.prototype=u,r}}();function ry(){}function rd(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=u}function rb(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function rw(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=t?n:t)),n}function rT(n,t,r,e,i,o){var f,a=1&t,c=2&t,l=4&t;if(r&&(f=i?r(n,e,i,o):r(n)),u!==f)return f;if(!iY(n))return n;var h=iF(n);if(h){if(_=n.length,m=new n.constructor(_),_&&"string"==typeof n[0]&&nC.call(n,"index")&&(m.index=n.index,m.input=n.input),f=m,!a)return eK(n,f)}else{var _,m,O,$,D,M=um(n),F=M==g||M==y;if(iZ(n))return eM(n,a);if(M==w||M==s||F&&!i){if(f=c||F?{}:uj(n),!a)return c?(O=(D=f)&&eV(n,ob(n),D),eV(n,uw(n),O)):($=rW(f,n),eV(n,ub(n),$))}else{if(!nX[M])return i?n:{};f=function(n,t,r){var e,u,i=n.constructor;switch(t){case I:return eF(n);case p:case v:return new i(+n);case E:return e=r?eF(n.buffer):n.buffer,new n.constructor(e,n.byteOffset,n.byteLength);case R:case z:case S:case C:case W:case L:case U:case B:case T:return eN(n,r);case d:return new i;case b:case A:return new i(n);case x:return(u=new n.constructor(n.source,na.exec(n))).lastIndex=n.lastIndex,u;case j:return new i;case k:return rp?nj(rp.call(n)):{}}}(n,M,a)}}o||(o=new rA);var N=o.get(n);if(N)return N;o.set(n,f),i9(n)?n.forEach(function(e){f.add(rT(e,t,r,e,n,o))}):iX(n)&&n.forEach(function(e,u){f.set(u,rT(e,t,r,u,n,o))});var P=l?c?us:ul:c?ob:od,q=h?u:P(n);return tc(q||n,function(e,u){q&&(e=n[u=e]),rz(f,u,rT(e,t,r,u,n,o))}),f}function r$(n,t,r){var e=r.length;if(null==n)return!e;for(n=nj(n);e--;){var i=r[e],o=t[i],f=n[i];if(u===f&&!(i in n)||!o(f))return!1}return!0}function rD(n,t,r){if("function"!=typeof n)throw new nO(i);return uB(function(){n.apply(u,r)},t)}function rM(n,t,r,e){var u=-1,i=tp,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=t_(t,tW(r))),e?(i=tv,o=!1):t.length>=200&&(i=tU,o=!1,t=new rj(t));n:for(;++u-1},rm.prototype.set=function(n,t){var r=this.__data__,e=rS(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},rx.prototype.clear=function(){this.size=0,this.__data__={hash:new rw,map:new(rn||rm),string:new rw}},rx.prototype.delete=function(n){var t=ug(this,n).delete(n);return this.size-=t?1:0,t},rx.prototype.get=function(n){return ug(this,n).get(n)},rx.prototype.has=function(n){return ug(this,n).has(n)},rx.prototype.set=function(n,t){var r=ug(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},rj.prototype.add=rj.prototype.push=function(n){return this.__data__.set(n,o),this},rj.prototype.has=function(n){return this.__data__.has(n)},rA.prototype.clear=function(){this.__data__=new rm,this.size=0},rA.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},rA.prototype.get=function(n){return this.__data__.get(n)},rA.prototype.has=function(n){return this.__data__.has(n)},rA.prototype.set=function(n,t){var r=this.__data__;if(r instanceof rm){var e=r.__data__;if(!rn||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new rx(e)}return r.set(n,t),this.size=r.size,this};var rF=eJ(rH),rN=eJ(rJ,!0);function rP(n,t){var r=!0;return rF(n,function(n,e,u){return r=!!t(n,e,u)}),r}function rq(n,t,r){for(var e=-1,i=n.length;++e0&&r(f)?t>1?rK(f,t-1,r,e,u):tg(u,f):e||(u[u.length]=f)}return u}var rV=eY(),rG=eY(!0);function rH(n,t){return n&&rV(n,t,od)}function rJ(n,t){return n&&rG(n,t,od)}function rY(n,t){return th(t,function(t){return iG(n[t])})}function rQ(n,t){t=eT(t,n);for(var r=0,e=t.length;null!=n&&rt}function r2(n,t){return null!=n&&nC.call(n,t)}function r9(n,t){return null!=n&&t in nj(n)}function r3(n,t,r){for(var e=r?tv:tp,i=n[0].length,o=n.length,f=o,a=nd(o),c=1/0,l=[];f--;){var s=n[f];f&&t&&(s=t_(s,tW(t))),c=t3(s.length,c),a[f]=!r&&(t||i>=120&&s.length>=120)?new rj(f&&s):u}s=n[0];var h=-1,p=a[0];n:for(;++h=f)return a;return a*("desc"==r[e]?-1:1)}}return n.index-t.index}(n,t,r)})}function ec(n,t,r){for(var e=-1,u=t.length,i={};++e-1;)f!==n&&n0.call(f,a,1),n0.call(n,a,1);return n}function es(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;uk(u)?n0.call(n,u,1):eR(n,u)}}return n}function eh(n,t){return n+tY(t7()*(t-n+1))}function ep(n,t){var r="";if(!n||t<1||t>9007199254740991)return r;do t%2&&(r+=n),(t=tY(t/2))&&(n+=n);while(t);return r}function ev(n,t){return uT(uC(n,t,oq),n+"")}function e_(n){return rO(oI(n))}function eg(n,t){var r=oI(n);return uM(r,rB(t,0,r.length))}function ey(n,t,r,e){if(!iY(n))return n;t=eT(t,n);for(var i=-1,o=t.length,f=o-1,a=n;null!=a&&++iu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=nd(u);++e>>1,o=n[i];null!==o&&!i4(o)&&(r?o<=t:o=200){var c=t?null:ur(n);if(c)return tZ(c);o=!1,u=tU,a=new rj}else a=t?[]:f;n:for(;++e=e?n:em(n,t,r)}var eD=n5||function(n){return n4.clearTimeout(n)};function eM(n,t){if(t)return n.slice();var r=n.length,e=nN?nN(r):new n.constructor(r);return n.copy(e),e}function eF(n){var t=new n.constructor(n.byteLength);return new nF(t).set(new nF(n)),t}function eN(n,t){var r=t?eF(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function eP(n,t){if(n!==t){var r=u!==n,e=null===n,i=n==n,o=i4(n),f=u!==t,a=null===t,c=t==t,l=i4(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||e&&f&&c||!r&&c||!i)return 1;if(!e&&!o&&!l&&n1?r[i-1]:u,f=i>2?r[2]:u;for(o=n.length>3&&"function"==typeof o?(i--,o):u,f&&uO(r[0],r[1],f)&&(o=i<3?u:o,i=1),t=nj(t);++e-1?i[o?t[f]:f]:u}}function e2(n){return uc(function(t){var r=t.length,e=r,o=rd.prototype.thru;for(n&&t.reverse();e--;){var f=t[e];if("function"!=typeof f)throw new nO(i);if(o&&!a&&"wrapper"==up(f))var a=new rd([],!0)}for(e=a?e:r;++e1&&b.reverse(),s&&ca))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new rj:u;for(o.set(n,t),o.set(t,n);++h-1&&n%1==0&&n1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(nt,"{\n/* [wrapped with "+t+"] */\n")}(i,(e=(u=i.match(nr))?u[1].split(ne):[],tc(l,function(n){var t="_."+n[0];r&n[1]&&!tp(e,t)&&e.push(t)}),e.sort())))}function uD(n){var t=0,r=0;return function(){var e=t4(),i=16-(e-r);if(r=e,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(u,arguments)}}function uM(n,t){var r=-1,e=n.length,i=e-1;for(t=u===t?e:t;++r1?n[t-1]:u;return r="function"==typeof r?(n.pop(),r):u,it(n,r)});function ic(n){var t=r_(n);return t.__chain__=!0,t}function il(n,t){return t(n)}var is=uc(function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,i=function(t){return rU(t,n)};return!(t>1)&&!this.__actions__.length&&e instanceof rb&&uk(r)?((e=e.slice(r,+r+(t?1:0))).__actions__.push({func:il,args:[i],thisArg:u}),new rd(e,this.__chain__).thru(function(n){return t&&!n.length&&n.push(u),n})):this.thru(i)}),ih=eG(function(n,t,r){nC.call(n,r)?++n[r]:rL(n,r,1)}),ip=e1(uG),iv=e1(uH);function i_(n,t){return(iF(n)?tc:rF)(n,u_(t,3))}function ig(n,t){return(iF(n)?tl:rN)(n,u_(t,3))}var iy=eG(function(n,t,r){nC.call(n,r)?n[r].push(t):rL(n,r,[t])}),id=ev(function(n,t,r){var e=-1,u="function"==typeof t,i=iP(n)?nd(n.length):[];return rF(n,function(n){i[++e]=u?tf(t,n,r):r4(n,t,r)}),i}),ib=eG(function(n,t,r){rL(n,r,t)});function iw(n,t){return(iF(n)?t_:ee)(n,u_(t,3))}var im=eG(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),ix=ev(function(n,t){if(null==n)return[];var r=t.length;return r>1&&uO(n,t[0],t[1])?t=[]:r>2&&uO(t[0],t[1],t[2])&&(t=[t[0]]),ea(n,rK(t,1),[])}),ij=tn||function(){return n4.Date.now()};function iA(n,t,r){return t=r?u:t,t=n&&null==t?n.length:t,uu(n,128,u,u,u,u,t)}function ik(n,t){var r;if("function"!=typeof t)throw new nO(i);return n=ot(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=u),r}}var iO=ev(function(n,t,r){var e=1;if(r.length){var u=tq(r,uv(iO));e|=32}return uu(n,e,t,r,u)}),iI=ev(function(n,t,r){var e=3;if(r.length){var u=tq(r,uv(iI));e|=32}return uu(t,e,n,r,u)});function iE(n,t,r){var e,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new nO(i);function _(t){var r=e,i=o;return e=o=u,s=t,a=n.apply(i,r)}function g(n){var r=n-l,e=n-s;return u===l||r>=t||r<0||p&&e>=f}function y(){var n,r,e,u=ij();if(g(u))return d(u);c=uB(y,(n=u-l,r=u-s,e=t-n,p?t3(e,f-r):e))}function d(n){return(c=u,v&&e)?_(n):(e=o=u,a)}function b(){var n,r=ij(),i=g(r);if(e=arguments,o=this,l=r,i){if(u===c)return s=n=l,c=uB(y,t),h?_(n):a;if(p)return eD(c),c=uB(y,t),_(l)}return u===c&&(c=uB(y,t)),a}return t=oe(t)||0,iY(r)&&(h=!!r.leading,f=(p="maxWait"in r)?t9(oe(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){u!==c&&eD(c),s=0,e=l=o=c=u},b.flush=function(){return u===c?a:d(ij())},b}var iR=ev(function(n,t){return rD(n,1,t)}),iz=ev(function(n,t,r){return rD(n,oe(t)||0,r)});function iS(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new nO(i);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(iS.Cache||rx),r}function iC(n){if("function"!=typeof n)throw new nO(i);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}iS.Cache=rx;var iW=ev(function(n,t){var r=(t=1==t.length&&iF(t[0])?t_(t[0],tW(u_())):t_(rK(t,1),tW(u_()))).length;return ev(function(e){for(var u=-1,i=t3(e.length,r);++u=t}),iM=r8(function(){return arguments}())?r8:function(n){return iQ(n)&&nC.call(n,"callee")&&!nG.call(n,"callee")},iF=nd.isArray,iN=tt?tW(tt):function(n){return iQ(n)&&r0(n)==I};function iP(n){return null!=n&&iJ(n.length)&&!iG(n)}function iq(n){return iQ(n)&&iP(n)}var iZ=tX||o9,iK=tr?tW(tr):function(n){return iQ(n)&&r0(n)==v};function iV(n){if(!iQ(n))return!1;var t=r0(n);return t==_||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!i1(n)}function iG(n){if(!iY(n))return!1;var t=r0(n);return t==g||t==y||"[object AsyncFunction]"==t||"[object Proxy]"==t}function iH(n){return"number"==typeof n&&n==ot(n)}function iJ(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991}function iY(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function iQ(n){return null!=n&&"object"==typeof n}var iX=te?tW(te):function(n){return iQ(n)&&um(n)==d};function i0(n){return"number"==typeof n||iQ(n)&&r0(n)==b}function i1(n){if(!iQ(n)||r0(n)!=w)return!1;var t=nP(n);if(null===t)return!0;var r=nC.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&nS.call(r)==nB}var i2=tu?tW(tu):function(n){return iQ(n)&&r0(n)==x},i9=ti?tW(ti):function(n){return iQ(n)&&um(n)==j};function i3(n){return"string"==typeof n||!iF(n)&&iQ(n)&&r0(n)==A}function i4(n){return"symbol"==typeof n||iQ(n)&&r0(n)==k}var i8=to?tW(to):function(n){return iQ(n)&&iJ(n.length)&&!!nQ[r0(n)]},i7=e5(er),i6=e5(function(n,t){return n<=t});function i5(n){if(!n)return[];if(iP(n))return i3(n)?tV(n):eK(n);if(n3&&n[n3])return function(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}(n[n3]());var t=um(n);return(t==d?tN:t==j?tZ:oI)(n)}function on(n){return n?(n=oe(n))===a||n===-a?(n<0?-1:1)*17976931348623157e292:n==n?n:0:0===n?n:0}function ot(n){var t=on(n),r=t%1;return t==t?r?t-r:t:0}function or(n){return n?rB(ot(n),0,4294967295):0}function oe(n){if("number"==typeof n)return n;if(i4(n))return c;if(iY(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=iY(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=tC(n);var r=nl.test(n);return r||nh.test(n)?n2(n.slice(2),r?2:8):nc.test(n)?c:+n}function ou(n){return eV(n,ob(n))}function oi(n){return null==n?"":eI(n)}var oo=eH(function(n,t){if(uz(t)||iP(t)){eV(t,od(t),n);return}for(var r in t)nC.call(t,r)&&rz(n,r,t[r])}),of=eH(function(n,t){eV(t,ob(t),n)}),oa=eH(function(n,t,r,e){eV(t,ob(t),n,e)}),oc=eH(function(n,t,r,e){eV(t,od(t),n,e)}),ol=uc(rU),os=ev(function(n,t){n=nj(n);var r=-1,e=t.length,i=e>2?t[2]:u;for(i&&uO(t[0],t[1],i)&&(e=1);++r1),t}),eV(n,us(n),r),e&&(r=rT(r,7,uf));for(var u=t.length;u--;)eR(r,t[u]);return r}),oj=uc(function(n,t){return null==n?{}:ec(n,t,function(t,r){return ov(n,r)})});function oA(n,t){if(null==n)return{};var r=t_(us(n),function(n){return[n]});return t=u_(t),ec(n,r,function(n,r){return t(n,r[0])})}var ok=ue(od),oO=ue(ob);function oI(n){return null==n?[]:tL(n,od(n))}var oE=eX(function(n,t,r){return t=t.toLowerCase(),n+(r?oR(t):t)});function oR(n){return oT(oi(n).toLowerCase())}function oz(n){return(n=oi(n))&&n.replace(nv,t$).replace(nZ,"")}var oS=eX(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),oC=eX(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),oW=eQ("toLowerCase"),oL=eX(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),oU=eX(function(n,t,r){return n+(r?" ":"")+oT(t)}),oB=eX(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),oT=eQ("toUpperCase");function o$(n,t,r){if(n=oi(n),t=r?u:t,u===t){var e;return(e=n,nH.test(e))?n.match(nV)||[]:n.match(nu)||[]}return n.match(t)||[]}var oD=ev(function(n,t){try{return tf(n,u,t)}catch(n){return iV(n)?n:new nw(n)}}),oM=uc(function(n,t){return tc(t,function(t){rL(n,t=uN(t),iO(n[t],n))}),n});function oF(n){return function(){return n}}var oN=e2(),oP=e2(!0);function oq(n){return n}function oZ(n){return en("function"==typeof n?n:rT(n,1))}var oK=ev(function(n,t){return function(r){return r4(r,n,t)}}),oV=ev(function(n,t){return function(r){return r4(n,r,t)}});function oG(n,t,r){var e=od(t),u=rY(t,e);null!=r||iY(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=rY(t,od(t)));var i=!(iY(r)&&"chain"in r)||!!r.chain,o=iG(n);return tc(u,function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=eK(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,tg([this.value()],arguments))})}),n}function oH(){}var oJ=e8(t_),oY=e8(ts),oQ=e8(tb);function oX(n){return uI(n)?tI(uN(n)):function(t){return rQ(t,n)}}var o0=e6(),o1=e6(!0);function o2(){return[]}function o9(){return!1}var o3=e4(function(n,t){return n+t},0),o4=ut("ceil"),o8=e4(function(n,t){return n/t},1),o7=ut("floor"),o6=e4(function(n,t){return n*t},1),o5=ut("round"),fn=e4(function(n,t){return n-t},0);return r_.after=function(n,t){if("function"!=typeof t)throw new nO(i);return n=ot(n),function(){if(--n<1)return t.apply(this,arguments)}},r_.ary=iA,r_.assign=oo,r_.assignIn=of,r_.assignInWith=oa,r_.assignWith=oc,r_.at=ol,r_.before=ik,r_.bind=iO,r_.bindAll=oM,r_.bindKey=iI,r_.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return iF(n)?n:[n]},r_.chain=ic,r_.chunk=function(n,t,r){t=(r?uO(n,t,r):u===t)?1:t9(ot(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var i=0,o=0,f=nd(tE(e/t));ii?0:i+r),(e=u===e||e>i?i:ot(e))<0&&(e+=i),e=r>e?0:or(e);r>>0)?(n=oi(n))&&("string"==typeof t||null!=t&&!i2(t))&&!(t=eI(t))&&tF(n)?e$(tV(n),0,r):n.split(t,r):[]},r_.spread=function(n,t){if("function"!=typeof n)throw new nO(i);return t=null==t?0:t9(ot(t),0),ev(function(r){var e=r[t],u=e$(r,0,t);return e&&tg(u,e),tf(n,this,u)})},r_.tail=function(n){var t=null==n?0:n.length;return t?em(n,1,t):[]},r_.take=function(n,t,r){return n&&n.length?em(n,0,(t=r||u===t?1:ot(t))<0?0:t):[]},r_.takeRight=function(n,t,r){var e=null==n?0:n.length;return e?em(n,(t=e-(t=r||u===t?1:ot(t)))<0?0:t,e):[]},r_.takeRightWhile=function(n,t){return n&&n.length?eS(n,u_(t,3),!1,!0):[]},r_.takeWhile=function(n,t){return n&&n.length?eS(n,u_(t,3)):[]},r_.tap=function(n,t){return t(n),n},r_.throttle=function(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new nO(i);return iY(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),iE(n,t,{leading:e,maxWait:t,trailing:u})},r_.thru=il,r_.toArray=i5,r_.toPairs=ok,r_.toPairsIn=oO,r_.toPath=function(n){return iF(n)?t_(n,uN):i4(n)?[n]:eK(uF(oi(n)))},r_.toPlainObject=ou,r_.transform=function(n,t,r){var e=iF(n),u=e||iZ(n)||i8(n);if(t=u_(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:iY(n)&&iG(i)?rg(nP(n)):{}}return(u?tc:rH)(n,function(n,e,u){return t(r,n,e,u)}),r},r_.unary=function(n){return iA(n,1)},r_.union=u8,r_.unionBy=u7,r_.unionWith=u6,r_.uniq=function(n){return n&&n.length?eE(n):[]},r_.uniqBy=function(n,t){return n&&n.length?eE(n,u_(t,2)):[]},r_.uniqWith=function(n,t){return t="function"==typeof t?t:u,n&&n.length?eE(n,u,t):[]},r_.unset=function(n,t){return null==n||eR(n,t)},r_.unzip=u5,r_.unzipWith=it,r_.update=function(n,t,r){return null==n?n:ez(n,t,eB(r))},r_.updateWith=function(n,t,r,e){return e="function"==typeof e?e:u,null==n?n:ez(n,t,eB(r),e)},r_.values=oI,r_.valuesIn=function(n){return null==n?[]:tL(n,ob(n))},r_.without=ir,r_.words=o$,r_.wrap=function(n,t){return iL(eB(t),n)},r_.xor=ie,r_.xorBy=iu,r_.xorWith=ii,r_.zip=io,r_.zipObject=function(n,t){return eL(n||[],t||[],rz)},r_.zipObjectDeep=function(n,t){return eL(n||[],t||[],ey)},r_.zipWith=ia,r_.entries=ok,r_.entriesIn=oO,r_.extend=of,r_.extendWith=oa,oG(r_,r_),r_.add=o3,r_.attempt=oD,r_.camelCase=oE,r_.capitalize=oR,r_.ceil=o4,r_.clamp=function(n,t,r){return u===r&&(r=t,t=u),u!==r&&(r=(r=oe(r))==r?r:0),u!==t&&(t=(t=oe(t))==t?t:0),rB(oe(n),t,r)},r_.clone=function(n){return rT(n,4)},r_.cloneDeep=function(n){return rT(n,5)},r_.cloneDeepWith=function(n,t){return rT(n,5,t="function"==typeof t?t:u)},r_.cloneWith=function(n,t){return rT(n,4,t="function"==typeof t?t:u)},r_.conformsTo=function(n,t){return null==t||r$(n,t,od(t))},r_.deburr=oz,r_.defaultTo=function(n,t){return null==n||n!=n?t:n},r_.divide=o8,r_.endsWith=function(n,t,r){n=oi(n),t=eI(t);var e=n.length,i=r=u===r?e:rB(ot(r),0,e);return(r-=t.length)>=0&&n.slice(r,i)==t},r_.eq=iT,r_.escape=function(n){return(n=oi(n))&&q.test(n)?n.replace(N,tD):n},r_.escapeRegExp=function(n){return(n=oi(n))&&Q.test(n)?n.replace(Y,"\\$&"):n},r_.every=function(n,t,r){var e=iF(n)?ts:rP;return r&&uO(n,t,r)&&(t=u),e(n,u_(t,3))},r_.find=ip,r_.findIndex=uG,r_.findKey=function(n,t){return tm(n,u_(t,3),rH)},r_.findLast=iv,r_.findLastIndex=uH,r_.findLastKey=function(n,t){return tm(n,u_(t,3),rJ)},r_.floor=o7,r_.forEach=i_,r_.forEachRight=ig,r_.forIn=function(n,t){return null==n?n:rV(n,u_(t,3),ob)},r_.forInRight=function(n,t){return null==n?n:rG(n,u_(t,3),ob)},r_.forOwn=function(n,t){return n&&rH(n,u_(t,3))},r_.forOwnRight=function(n,t){return n&&rJ(n,u_(t,3))},r_.get=op,r_.gt=i$,r_.gte=iD,r_.has=function(n,t){return null!=n&&ux(n,t,r2)},r_.hasIn=ov,r_.head=uY,r_.identity=oq,r_.includes=function(n,t,r,e){n=iP(n)?n:oI(n),r=r&&!e?ot(r):0;var u=n.length;return r<0&&(r=t9(u+r,0)),i3(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&tj(n,t,r)>-1},r_.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var u=null==r?0:ot(r);return u<0&&(u=t9(e+u,0)),tj(n,t,u)},r_.inRange=function(n,t,r){var e,i,o;return t=on(t),u===r?(r=t,t=0):r=on(r),(e=n=oe(n))>=t3(i=t,o=r)&&e=-9007199254740991&&n<=9007199254740991},r_.isSet=i9,r_.isString=i3,r_.isSymbol=i4,r_.isTypedArray=i8,r_.isUndefined=function(n){return u===n},r_.isWeakMap=function(n){return iQ(n)&&um(n)==O},r_.isWeakSet=function(n){return iQ(n)&&"[object WeakSet]"==r0(n)},r_.join=function(n,t){return null==n?"":t1.call(n,t)},r_.kebabCase=oS,r_.last=u1,r_.lastIndexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var i=e;return u!==r&&(i=(i=ot(r))<0?t9(e+i,0):t3(i,e-1)),t==t?function(n,t,r){for(var e=r+1;e--&&n[e]!==t;);return e}(n,t,i):tx(n,tk,i,!0)},r_.lowerCase=oC,r_.lowerFirst=oW,r_.lt=i7,r_.lte=i6,r_.max=function(n){return n&&n.length?rq(n,oq,r1):u},r_.maxBy=function(n,t){return n&&n.length?rq(n,u_(t,2),r1):u},r_.mean=function(n){return tO(n,oq)},r_.meanBy=function(n,t){return tO(n,u_(t,2))},r_.min=function(n){return n&&n.length?rq(n,oq,er):u},r_.minBy=function(n,t){return n&&n.length?rq(n,u_(t,2),er):u},r_.stubArray=o2,r_.stubFalse=o9,r_.stubObject=function(){return{}},r_.stubString=function(){return""},r_.stubTrue=function(){return!0},r_.multiply=o6,r_.nth=function(n,t){return n&&n.length?ef(n,ot(t)):u},r_.noConflict=function(){return n4._===this&&(n4._=nT),this},r_.noop=oH,r_.now=ij,r_.pad=function(n,t,r){n=oi(n);var e=(t=ot(t))?tK(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return e7(tY(u),r)+n+e7(tE(u),r)},r_.padEnd=function(n,t,r){n=oi(n);var e=(t=ot(t))?tK(n):0;return t&&et){var e=n;n=t,t=e}if(r||n%1||t%1){var i=t7();return t3(n+i*(t-n+n1("1e-"+((i+"").length-1))),t)}return eh(n,t)},r_.reduce=function(n,t,r){var e=iF(n)?ty:tR,u=arguments.length<3;return e(n,u_(t,4),r,u,rF)},r_.reduceRight=function(n,t,r){var e=iF(n)?td:tR,u=arguments.length<3;return e(n,u_(t,4),r,u,rN)},r_.repeat=function(n,t,r){return t=(r?uO(n,t,r):u===t)?1:ot(t),ep(oi(n),t)},r_.replace=function(){var n=arguments,t=oi(n[0]);return n.length<3?t:t.replace(n[1],n[2])},r_.result=function(n,t,r){t=eT(t,n);var e=-1,i=t.length;for(i||(i=1,n=u);++e9007199254740991)return[];var r=4294967295,e=t3(n,4294967295);t=u_(t),n-=4294967295;for(var u=tS(e,t);++r=o)return n;var a=r-tK(e);if(a<1)return e;var c=f?e$(f,0,a).join(""):n.slice(0,a);if(u===i)return c+e;if(f&&(a+=c.length-a),i2(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=nA(i.source,oi(na.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,u===h?a:h)}}else if(n.indexOf(eI(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+e},r_.unescape=function(n){return(n=oi(n))&&P.test(n)?n.replace(F,tH):n},r_.uniqueId=function(n){var t=++nW;return oi(n)+t},r_.upperCase=oB,r_.upperFirst=oT,r_.each=i_,r_.eachRight=ig,r_.first=uY,oG(r_,(ny={},rH(r_,function(n,t){nC.call(r_.prototype,t)||(ny[t]=n)}),ny),{chain:!1}),r_.VERSION="4.17.21",tc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){r_[n].placeholder=r_}),tc(["drop","take"],function(n,t){rb.prototype[n]=function(r){r=u===r?1:t9(ot(r),0);var e=this.__filtered__&&!t?new rb(this):this.clone();return e.__filtered__?e.__takeCount__=t3(r,e.__takeCount__):e.__views__.push({size:t3(r,4294967295),type:n+(e.__dir__<0?"Right":"")}),e},rb.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),tc(["filter","map","takeWhile"],function(n,t){var r=t+1,e=1==r||3==r;rb.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:u_(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),tc(["head","last"],function(n,t){var r="take"+(t?"Right":"");rb.prototype[n]=function(){return this[r](1).value()[0]}}),tc(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");rb.prototype[n]=function(){return this.__filtered__?new rb(this):this[r](1)}}),rb.prototype.compact=function(){return this.filter(oq)},rb.prototype.find=function(n){return this.filter(n).head()},rb.prototype.findLast=function(n){return this.reverse().find(n)},rb.prototype.invokeMap=ev(function(n,t){return"function"==typeof n?new rb(this):this.map(function(r){return r4(r,n,t)})}),rb.prototype.reject=function(n){return this.filter(iC(u_(n)))},rb.prototype.slice=function(n,t){n=ot(n);var r=this;return r.__filtered__&&(n>0||t<0)?new rb(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),u!==t&&(r=(t=ot(t))<0?r.dropRight(-t):r.take(t-n)),r)},rb.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},rb.prototype.toArray=function(){return this.take(4294967295)},rH(rb.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),e=/^(?:head|last)$/.test(t),i=r_[e?"take"+("last"==t?"Right":""):t],o=e||/^find/.test(t);i&&(r_.prototype[t]=function(){var t=this.__wrapped__,f=e?[1]:arguments,a=t instanceof rb,c=f[0],l=a||iF(t),s=function(n){var t=i.apply(r_,tg([n],f));return e&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new rb(this);var g=n.apply(t,f);return g.__actions__.push({func:il,args:[s],thisArg:u}),new rd(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?e?g.value()[0]:g.value():g)})}),tc(["pop","push","shift","sort","splice","unshift"],function(n){var t=nI[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);r_.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(iF(u)?u:[],n)}return this[r](function(r){return t.apply(iF(r)?r:[],n)})}}),rH(rb.prototype,function(n,t){var r=r_[t];if(r){var e=r.name+"";nC.call(ro,e)||(ro[e]=[]),ro[e].push({name:t,func:r})}}),ro[e9(u,2).name]=[{name:"wrapper",func:u}],rb.prototype.clone=function(){var n=new rb(this.__wrapped__);return n.__actions__=eK(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=eK(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=eK(this.__views__),n},rb.prototype.reverse=function(){if(this.__filtered__){var n=new rb(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n},rb.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=iF(n),e=t<0,u=r?n.length:0,i=function(n,t,r){for(var e=-1,u=r.length;++e=this.__values__.length,t=n?u:this.__values__[this.__index__++];return{done:n,value:t}},r_.prototype.plant=function(n){for(var t,r=this;r instanceof ry;){var e=uq(r);e.__index__=0,e.__values__=u,t?i.__wrapped__=e:t=e;var i=e;r=r.__wrapped__}return i.__wrapped__=n,t},r_.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof rb){var t=n;return this.__actions__.length&&(t=new rb(this)),(t=t.reverse()).__actions__.push({func:il,args:[u4],thisArg:u}),new rd(t,this.__chain__)}return this.thru(u4)},r_.prototype.toJSON=r_.prototype.valueOf=r_.prototype.value=function(){return eC(this.__wrapped__,this.__actions__)},r_.prototype.first=r_.prototype.head,n3&&(r_.prototype[n3]=function(){return this}),r_}();n4._=tJ,e=(function(){return tJ}).call(t,r,t,n),u!==e&&(n.exports=e)}).call(this)}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/1259-f2148965e6585188.js b/pilot/server/static/_next/static/chunks/1259-f2148965e6585188.js deleted file mode 100644 index 7688aec7b..000000000 --- a/pilot/server/static/_next/static/chunks/1259-f2148965e6585188.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1259],{54842:function(e,t,r){var a=r(78997);t.Z=void 0;var s=a(r(76906)),i=r(9268),n=(0,s.default)((0,i.jsx)("path",{d:"m3.4 20.4 17.45-7.48c.81-.35.81-1.49 0-1.84L3.4 3.6c-.66-.29-1.39.2-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z"}),"SendRounded");t.Z=n},67830:function(e,t,r){r.d(t,{F:function(){return u}});var a=r(19700),s=function(e,t,r){if(e&&"reportValidity"in e){var s=(0,a.U2)(r,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},i=function(e,t){var r=function(r){var a=t.fields[r];a&&a.ref&&"reportValidity"in a.ref?s(a.ref,r,e):a.refs&&a.refs.forEach(function(t){return s(t,r,e)})};for(var a in t.fields)r(a)},n=function(e,t){t.shouldUseNativeValidation&&i(e,t);var r={};for(var s in e){var n=(0,a.U2)(t.fields,s);(0,a.t8)(r,s,Object.assign(e[s]||{},{ref:n&&n.ref}))}return r},l=function(e,t){for(var r={};e.length;){var s=e[0],i=s.code,n=s.message,l=s.path.join(".");if(!r[l]){if("unionErrors"in s){var u=s.unionErrors[0].errors[0];r[l]={message:u.message,type:u.code}}else r[l]={message:n,type:i}}if("unionErrors"in s&&s.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var d=r[l].types,o=d&&d[s.code];r[l]=(0,a.KN)(l,t,r,i,o?[].concat(o,s.message):s.message)}e.shift()}return r},u=function(e,t,r){return void 0===r&&(r={}),function(a,s,u){try{return Promise.resolve(function(s,n){try{var l=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](a,t)).then(function(e){return u.shouldUseNativeValidation&&i({},u),{errors:{},values:r.raw?a:e}})}catch(e){return n(e)}return l&&l.then?l.then(void 0,n):l}(0,function(e){if(null!=e.errors)return{values:{},errors:n(l(e.errors,!u.shouldUseNativeValidation&&"all"===u.criteriaMode),u)};throw e}))}catch(e){return Promise.reject(e)}}}},19700:function(e,t,r){r.d(t,{KN:function(){return N},U2:function(){return v},cI:function(){return em},t8:function(){return C}});var a=r(86006),s=e=>"checkbox"===e.type,i=e=>e instanceof Date,n=e=>null==e;let l=e=>"object"==typeof e;var u=e=>!n(e)&&!Array.isArray(e)&&l(e)&&!i(e),d=e=>u(e)&&e.target?s(e.target)?e.target.checked:e.target.value:e,o=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,c=(e,t)=>e.has(o(t)),h=e=>{let t=e.constructor&&e.constructor.prototype;return u(t)&&t.hasOwnProperty("isPrototypeOf")},f="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(f&&(e instanceof Blob||e instanceof FileList))&&(r||u(e))))return e;else if(t=r?[]:{},r||h(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=p(e[r]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>void 0===e,v=(e,t,r)=>{if(!t||!u(e))return r;let a=m(t.split(/[,[\].]+?/)).reduce((e,t)=>n(e)?e:e[t],e);return y(a)||a===e?y(e[t])?r:e[t]:a};let _={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},g={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};a.createContext(null);var x=(e,t,r,a=!0)=>{let s={defaultValues:t._defaultValues};for(let i in e)Object.defineProperty(s,i,{get:()=>(t._proxyFormState[i]!==g.all&&(t._proxyFormState[i]=!a||g.all),r&&(r[i]=!0),e[i])});return s},k=e=>u(e)&&!Object.keys(e).length,w=(e,t,r,a)=>{r(e);let{name:s,...i}=e;return k(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!a||g.all))},Z=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,T=(e,t,r,a,s)=>S(e)?(a&&t.watch.add(e),v(r,e,s)):Array.isArray(e)?e.map(e=>(a&&t.watch.add(e),v(r,e))):(a&&(t.watchAll=!0),r),O=e=>/^\w*$/.test(e),A=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function C(e,t,r){let a=-1,s=O(t)?[t]:A(t),i=s.length,n=i-1;for(;++at?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[a]:s||!0}}:{};let E=(e,t,r)=>{for(let a of r||Object.keys(e)){let r=v(e,a);if(r){let{_f:e,...a}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else u(a)&&E(a,t)}}};var V=e=>({isOnSubmit:!e||e===g.onSubmit,isOnBlur:e===g.onBlur,isOnChange:e===g.onChange,isOnAll:e===g.all,isOnTouch:e===g.onTouched}),j=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),I=(e,t,r)=>{let a=m(v(e,r));return C(a,"root",t[r]),C(e,r,a),e},P=e=>"boolean"==typeof e,D=e=>"file"===e.type,R=e=>"function"==typeof e,L=e=>{if(!f)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},F=e=>S(e),M=e=>"radio"===e.type,$=e=>e instanceof RegExp;let U={value:!1,isValid:!1},z={value:!0,isValid:!0};var B=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?z:{value:e[0].value,isValid:!0}:z:U}return U};let K={isValid:!1,value:null};var q=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,K):K;function W(e,t,r="validate"){if(F(e)||Array.isArray(e)&&e.every(F)||P(e)&&!e)return{type:r,message:F(e)?e:"",ref:t}}var H=e=>u(e)&&!$(e)?e:{value:e,message:""},J=async(e,t,r,a,i)=>{let{ref:l,refs:d,required:o,maxLength:c,minLength:h,min:f,max:p,pattern:m,validate:_,name:g,valueAsNumber:x,mount:w,disabled:Z}=e._f,T=v(t,g);if(!w||Z)return{};let O=d?d[0]:l,A=e=>{a&&O.reportValidity&&(O.setCustomValidity(P(e)?"":e||""),O.reportValidity())},C={},E=M(l),V=s(l),j=(x||D(l))&&y(l.value)&&y(T)||L(l)&&""===l.value||""===T||Array.isArray(T)&&!T.length,I=N.bind(null,g,r,C),U=(e,t,r,a=b.maxLength,s=b.minLength)=>{let i=e?t:r;C[g]={type:e?a:s,message:i,ref:l,...I(e?a:s,i)}};if(i?!Array.isArray(T)||!T.length:o&&(!(E||V)&&(j||n(T))||P(T)&&!T||V&&!B(d).isValid||E&&!q(d).isValid)){let{value:e,message:t}=F(o)?{value:!!o,message:o}:H(o);if(e&&(C[g]={type:b.required,message:t,ref:O,...I(b.required,t)},!r))return A(t),C}if(!j&&(!n(f)||!n(p))){let e,t;let a=H(p),s=H(f);if(n(T)||isNaN(T)){let r=l.valueAsDate||new Date(T),i=e=>new Date(new Date().toDateString()+" "+e),n="time"==l.type,u="week"==l.type;S(a.value)&&T&&(e=n?i(T)>i(a.value):u?T>a.value:r>new Date(a.value)),S(s.value)&&T&&(t=n?i(T)a.value),n(s.value)||(t=r+e.value,s=!n(t.value)&&T.length<+t.value;if((a||s)&&(U(a,e.message,t.message),!r))return A(C[g].message),C}if(m&&!j&&S(T)){let{value:e,message:t}=H(m);if($(e)&&!T.match(e)&&(C[g]={type:b.pattern,message:t,ref:l,...I(b.pattern,t)},!r))return A(t),C}if(_){if(R(_)){let e=await _(T,t),a=W(e,O);if(a&&(C[g]={...a,...I(b.validate,a.message)},!r))return A(a.message),C}else if(u(_)){let e={};for(let a in _){if(!k(e)&&!r)break;let s=W(await _[a](T,t),O,a);s&&(e={...s,...I(a,s.message)},A(s.message),r&&(C[g]=e))}if(!k(e)&&(C[g]={ref:O,...e},!r))return C}}return A(!0),C};function G(e,t){let r=Array.isArray(t)?t:O(t)?[t]:A(t),a=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,a=0;for(;a{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var X=e=>n(e)||!l(e);function Q(e,t){if(X(e)||X(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s of r){let r=e[s];if(!a.includes(s))return!1;if("ref"!==s){let e=t[s];if(i(r)&&i(e)||u(r)&&u(e)||Array.isArray(r)&&Array.isArray(e)?!Q(r,e):r!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>M(e)||s(e),er=e=>L(e)&&e.isConnected,ea=e=>{for(let t in e)if(R(e[t]))return!0;return!1};function es(e,t={}){let r=Array.isArray(e);if(u(e)||r)for(let r in e)Array.isArray(e[r])||u(e[r])&&!ea(e[r])?(t[r]=Array.isArray(e[r])?[]:{},es(e[r],t[r])):n(e[r])||(t[r]=!0);return t}var ei=(e,t)=>(function e(t,r,a){let s=Array.isArray(t);if(u(t)||s)for(let s in t)Array.isArray(t[s])||u(t[s])&&!ea(t[s])?y(r)||X(a[s])?a[s]=Array.isArray(t[s])?es(t[s],[]):{...es(t[s])}:e(t[s],n(r)?{}:r[s],a[s]):a[s]=!Q(t[s],r[s]);return a})(e,t,es(t)),en=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:a})=>y(e)?e:t?""===e?NaN:e?+e:e:r&&S(e)?new Date(e):a?a(e):e;function el(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:D(t)?t.files:M(t)?q(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):s(t)?B(e.refs).value:en(y(t.value)?e.ref.value:t.value,e)}var eu=(e,t,r,a)=>{let s={};for(let r of e){let e=v(t,r);e&&C(s,r,e._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:a}},ed=e=>y(e)?e:$(e)?e.source:u(e)?$(e.value)?e.value.source:e.value:e,eo=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ec(e,t,r){let a=v(e,r);if(a||O(r))return{error:a,name:r};let s=r.split(".");for(;s.length;){let a=s.join("."),i=v(t,a),n=v(e,a);if(i&&!Array.isArray(i)&&r!==a)break;if(n&&n.type)return{name:a,error:n};s.pop()}return{name:r}}var eh=(e,t,r,a,s)=>!s.isOnAll&&(!r&&s.isOnTouch?!(t||e):(r?a.isOnBlur:s.isOnBlur)?!e:(r?!a.isOnChange:!s.isOnChange)||e),ef=(e,t)=>!m(v(e,t)).length&&G(e,t);let ep={mode:g.onSubmit,reValidateMode:g.onChange,shouldFocusError:!0};function em(e={}){let t=a.useRef(),r=a.useRef(),[l,o]=a.useState({isDirty:!1,isValidating:!1,isLoading:R(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:R(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,a={...ep,...e},l={submitCount:0,isDirty:!1,isLoading:R(a.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},o={},h=(u(a.defaultValues)||u(a.values))&&p(a.defaultValues||a.values)||{},b=a.shouldUnregister?{}:p(h),x={action:!1,mount:!1,watch:!1},w={mount:new Set,unMount:new Set,array:new Set,watch:new Set},O=0,A={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},N={values:Y(),array:Y(),state:Y()},F=e.resetOptions&&e.resetOptions.keepDirtyValues,M=V(a.mode),$=V(a.reValidateMode),U=a.criteriaMode===g.all,z=e=>t=>{clearTimeout(O),O=setTimeout(e,t)},B=async e=>{if(A.isValid||e){let e=a.resolver?k((await es()).errors):await ey(o,!0);e!==l.isValid&&N.state.next({isValid:e})}},K=e=>A.isValidating&&N.state.next({isValidating:e}),q=(e,t)=>{C(l.errors,e,t),N.state.next({errors:l.errors})},W=(e,t,r,a)=>{let s=v(o,e);if(s){let i=v(b,e,y(r)?v(h,e):r);y(i)||a&&a.defaultChecked||t?C(b,e,t?i:el(s._f)):eg(e,i),x.mount&&B()}},H=(e,t,r,a,s)=>{let i=!1,n=!1,u={name:e};if(!r||a){A.isDirty&&(n=l.isDirty,l.isDirty=u.isDirty=ev(),i=n!==u.isDirty);let r=Q(v(h,e),t);n=v(l.dirtyFields,e),r?G(l.dirtyFields,e):C(l.dirtyFields,e,!0),u.dirtyFields=l.dirtyFields,i=i||A.dirtyFields&&!r!==n}if(r){let t=v(l.touchedFields,e);t||(C(l.touchedFields,e,r),u.touchedFields=l.touchedFields,i=i||A.touchedFields&&t!==r)}return i&&s&&N.state.next(u),i?u:{}},ea=(t,a,s,i)=>{let n=v(l.errors,t),u=A.isValid&&P(a)&&l.isValid!==a;if(e.delayError&&s?(r=z(()=>q(t,s)))(e.delayError):(clearTimeout(O),r=null,s?C(l.errors,t,s):G(l.errors,t)),(s?!Q(n,s):n)||!k(i)||u){let e={...i,...u&&P(a)?{isValid:a}:{},errors:l.errors,name:t};l={...l,...e},N.state.next(e)}K(!1)},es=async e=>a.resolver(b,a.context,eu(e||w.mount,o,a.criteriaMode,a.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await es();if(e)for(let r of e){let e=v(t,r);e?C(l.errors,r,e):G(l.errors,r)}else l.errors=t;return t},ey=async(e,t,r={valid:!0})=>{for(let s in e){let i=e[s];if(i){let{_f:e,...s}=i;if(e){let s=w.array.has(e.name),n=await J(i,b,U,a.shouldUseNativeValidation&&!t,s);if(n[e.name]&&(r.valid=!1,t))break;t||(v(n,e.name)?s?I(l.errors,n,e.name):C(l.errors,e.name,n[e.name]):G(l.errors,e.name))}s&&await ey(s,t,r)}}return r.valid},ev=(e,t)=>(e&&t&&C(b,e,t),!Q(eZ(),h)),e_=(e,t,r)=>T(e,w,{...x.mount?b:y(t)?h:S(e)?{[e]:t}:t},r,t),eg=(e,t,r={})=>{let a=v(o,e),i=t;if(a){let r=a._f;r&&(r.disabled||C(b,e,en(t,r)),i=L(r.ref)&&n(t)?"":t,ee(r.ref)?[...r.ref.options].forEach(e=>e.selected=i.includes(e.value)):r.refs?s(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach(e=>e.checked=e.value===i):D(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||N.values.next({name:e,values:{...b}})))}(r.shouldDirty||r.shouldTouch)&&H(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ew(e)},eb=(e,t,r)=>{for(let a in t){let s=t[a],n=`${e}.${a}`,l=v(o,n);!w.array.has(e)&&X(s)&&(!l||l._f)||i(s)?eg(n,s,r):eb(n,s,r)}},ex=(e,r,a={})=>{let s=v(o,e),i=w.array.has(e),u=p(r);C(b,e,u),i?(N.array.next({name:e,values:{...b}}),(A.isDirty||A.dirtyFields)&&a.shouldDirty&&N.state.next({name:e,dirtyFields:ei(h,b),isDirty:ev(e,u)})):!s||s._f||n(u)?eg(e,u,a):eb(e,u,a),j(e,w)&&N.state.next({...l}),N.values.next({name:e,values:{...b}}),x.mount||t()},ek=async e=>{let t=e.target,s=t.name,i=!0,n=v(o,s);if(n){let u,c;let h=t.type?el(n._f):d(e),f=e.type===_.BLUR||e.type===_.FOCUS_OUT,p=!eo(n._f)&&!a.resolver&&!v(l.errors,s)&&!n._f.deps||eh(f,v(l.touchedFields,s),l.isSubmitted,$,M),m=j(s,w,f);C(b,s,h),f?(n._f.onBlur&&n._f.onBlur(e),r&&r(0)):n._f.onChange&&n._f.onChange(e);let y=H(s,h,f,!1),g=!k(y)||m;if(f||N.values.next({name:s,type:e.type,values:{...b}}),p)return A.isValid&&B(),g&&N.state.next({name:s,...m?{}:y});if(!f&&m&&N.state.next({...l}),K(!0),a.resolver){let{errors:e}=await es([s]),t=ec(l.errors,o,s),r=ec(e,o,t.name||s);u=r.error,s=r.name,c=k(e)}else u=(await J(n,b,U,a.shouldUseNativeValidation))[s],(i=isNaN(h)||h===v(b,s,h))&&(u?c=!1:A.isValid&&(c=await ey(o,!0)));i&&(n._f.deps&&ew(n._f.deps),ea(s,c,u,y))}},ew=async(e,t={})=>{let r,s;let i=Z(e);if(K(!0),a.resolver){let t=await em(y(e)?e:i);r=k(t),s=e?!i.some(e=>v(t,e)):r}else e?((s=(await Promise.all(i.map(async e=>{let t=v(o,e);return await ey(t&&t._f?{[e]:t}:t)}))).every(Boolean))||l.isValid)&&B():s=r=await ey(o);return N.state.next({...!S(e)||A.isValid&&r!==l.isValid?{}:{name:e},...a.resolver||!e?{isValid:r}:{},errors:l.errors,isValidating:!1}),t.shouldFocus&&!s&&E(o,e=>e&&v(l.errors,e),e?i:w.mount),s},eZ=e=>{let t={...h,...x.mount?b:{}};return y(e)?t:S(e)?v(t,e):e.map(e=>v(t,e))},eS=(e,t)=>({invalid:!!v((t||l).errors,e),isDirty:!!v((t||l).dirtyFields,e),isTouched:!!v((t||l).touchedFields,e),error:v((t||l).errors,e)}),eT=(e,t,r)=>{let a=(v(o,e,{_f:{}})._f||{}).ref;C(l.errors,e,{...t,ref:a}),N.state.next({name:e,errors:l.errors,isValid:!1}),r&&r.shouldFocus&&a&&a.focus&&a.focus()},eO=(e,t={})=>{for(let r of e?Z(e):w.mount)w.mount.delete(r),w.array.delete(r),t.keepValue||(G(o,r),G(b,r)),t.keepError||G(l.errors,r),t.keepDirty||G(l.dirtyFields,r),t.keepTouched||G(l.touchedFields,r),a.shouldUnregister||t.keepDefaultValue||G(h,r);N.values.next({values:{...b}}),N.state.next({...l,...t.keepDirty?{isDirty:ev()}:{}}),t.keepIsValid||B()},eA=(e,t={})=>{let r=v(o,e),s=P(t.disabled);return C(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),w.mount.add(e),r?s&&C(b,e,t.disabled?void 0:v(b,e,el(r._f))):W(e,!0,t.value),{...s?{disabled:t.disabled}:{},...a.progressive?{required:!!t.required,min:ed(t.min),max:ed(t.max),minLength:ed(t.minLength),maxLength:ed(t.maxLength),pattern:ed(t.pattern)}:{},name:e,onChange:ek,onBlur:ek,ref:s=>{if(s){eA(e,t),r=v(o,e);let a=y(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,i=et(a),n=r._f.refs||[];(i?n.find(e=>e===a):a===r._f.ref)||(C(o,e,{_f:{...r._f,...i?{refs:[...n.filter(er),a,...Array.isArray(v(h,e))?[{}]:[]],ref:{type:a.type,name:e}}:{ref:a}}}),W(e,!1,void 0,a))}else(r=v(o,e,{}))._f&&(r._f.mount=!1),(a.shouldUnregister||t.shouldUnregister)&&!(c(w.array,e)&&x.action)&&w.unMount.add(e)}}},eC=()=>a.shouldFocusError&&E(o,e=>e&&v(l.errors,e),w.mount),eN=(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let s=p(b);if(N.state.next({isSubmitting:!0}),a.resolver){let{errors:e,values:t}=await es();l.errors=e,s=t}else await ey(o);G(l.errors,"root"),k(l.errors)?(N.state.next({errors:{}}),await e(s,r)):(t&&await t({...l.errors},r),eC(),setTimeout(eC)),N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:k(l.errors),submitCount:l.submitCount+1,errors:l.errors})},eE=(r,a={})=>{let s=r||h,i=p(s),n=r&&!k(r)?i:h;if(a.keepDefaultValues||(h=s),!a.keepValues){if(a.keepDirtyValues||F)for(let e of w.mount)v(l.dirtyFields,e)?C(n,e,v(b,e)):ex(e,v(n,e));else{if(f&&y(r))for(let e of w.mount){let t=v(o,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(L(e)){let t=e.closest("form");if(t){t.reset();break}}}}o={}}b=e.shouldUnregister?a.keepDefaultValues?p(h):{}:p(n),N.array.next({values:{...n}}),N.values.next({values:{...n}})}w={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount||t(),x.mount=!A.isValid||!!a.keepIsValid,x.watch=!!e.shouldUnregister,N.state.next({submitCount:a.keepSubmitCount?l.submitCount:0,isDirty:a.keepDirty?l.isDirty:!!(a.keepDefaultValues&&!Q(r,h)),isSubmitted:!!a.keepIsSubmitted&&l.isSubmitted,dirtyFields:a.keepDirtyValues?l.dirtyFields:a.keepDefaultValues&&r?ei(h,r):{},touchedFields:a.keepTouched?l.touchedFields:{},errors:a.keepErrors?l.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eV=(e,t)=>eE(R(e)?e(b):e,t);return{control:{register:eA,unregister:eO,getFieldState:eS,handleSubmit:eN,setError:eT,_executeSchema:es,_getWatch:e_,_getDirty:ev,_updateValid:B,_removeUnmounted:()=>{for(let e of w.unMount){let t=v(o,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&eO(e)}w.unMount=new Set},_updateFieldArray:(e,t=[],r,a,s=!0,i=!0)=>{if(a&&r){if(x.action=!0,i&&Array.isArray(v(o,e))){let t=r(v(o,e),a.argA,a.argB);s&&C(o,e,t)}if(i&&Array.isArray(v(l.errors,e))){let t=r(v(l.errors,e),a.argA,a.argB);s&&C(l.errors,e,t),ef(l.errors,e)}if(A.touchedFields&&i&&Array.isArray(v(l.touchedFields,e))){let t=r(v(l.touchedFields,e),a.argA,a.argB);s&&C(l.touchedFields,e,t)}A.dirtyFields&&(l.dirtyFields=ei(h,b)),N.state.next({name:e,isDirty:ev(e,t),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else C(b,e,t)},_getFieldArray:t=>m(v(x.mount?b:h,t,e.shouldUnregister?v(h,t,[]):[])),_reset:eE,_resetDefaultValues:()=>R(a.defaultValues)&&a.defaultValues().then(e=>{eV(e,a.resetOptions),N.state.next({isLoading:!1})}),_updateFormState:e=>{l={...l,...e}},_subjects:N,_proxyFormState:A,get _fields(){return o},get _formValues(){return b},get _state(){return x},set _state(value){x=value},get _defaultValues(){return h},get _names(){return w},set _names(value){w=value},get _formState(){return l},set _formState(value){l=value},get _options(){return a},set _options(value){a={...a,...value}}},trigger:ew,register:eA,handleSubmit:eN,watch:(e,t)=>R(e)?N.values.subscribe({next:r=>e(e_(void 0,t),r)}):e_(e,t,!0),setValue:ex,getValues:eZ,reset:eV,resetField:(e,t={})=>{v(o,e)&&(y(t.defaultValue)?ex(e,v(h,e)):(ex(e,t.defaultValue),C(h,e,t.defaultValue)),t.keepTouched||G(l.touchedFields,e),t.keepDirty||(G(l.dirtyFields,e),l.isDirty=t.defaultValue?ev(e,v(h,e)):ev()),!t.keepError&&(G(l.errors,e),A.isValid&&B()),N.state.next({...l}))},clearErrors:e=>{e&&Z(e).forEach(e=>G(l.errors,e)),N.state.next({errors:e?l.errors:{}})},unregister:eO,setError:eT,setFocus:(e,t={})=>{let r=v(o,e),a=r&&r._f;if(a){let e=a.refs?a.refs[0]:a.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>o(e=>({...e}))),formState:l});let h=t.current.control;return h._options=e,!function(e){let t=a.useRef(e);t.current=e,a.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}({subject:h._subjects.state,next:e=>{w(e,h._proxyFormState,h._updateFormState,!0)&&o({...h._formState})}}),a.useEffect(()=>{e.values&&!Q(e.values,r.current)?(h._reset(e.values,h._options.resetOptions),r.current=e.values):h._resetDefaultValues()},[e.values,h]),a.useEffect(()=>{h._state.mount||(h._updateValid(),h._state.mount=!0),h._state.watch&&(h._state.watch=!1,h._subjects.state.next({...h._formState})),h._removeUnmounted()}),t.current.formState=x(l,h),t.current}},92391:function(e,t,r){r.d(t,{z:function(){return e5}}),(eX=e1||(e1={})).assertEqual=e=>e,eX.assertIs=function(e){},eX.assertNever=function(e){throw Error()},eX.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},eX.getValidEnumValues=e=>{let t=eX.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let a of t)r[a]=e[a];return eX.objectValues(r)},eX.objectValues=e=>eX.objectKeys(e).map(function(t){return e[t]}),eX.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},eX.find=(e,t)=>{for(let r of e)if(t(r))return r},eX.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,eX.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},eX.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(e2||(e2={})).mergeShapes=(e,t)=>({...e,...t});let a=e1.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{let t=typeof e;switch(t){case"undefined":return a.undefined;case"string":return a.string;case"number":return isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"symbol":return a.symbol;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("undefined"!=typeof Map&&e instanceof Map)return a.map;if("undefined"!=typeof Set&&e instanceof Set)return a.set;if("undefined"!=typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}},i=e1.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class n extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},a=e=>{for(let s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(a);else if("invalid_return_type"===s.code)a(s.returnTypeError);else if("invalid_arguments"===s.code)a(s.argumentsError);else if(0===s.path.length)r._errors.push(t(s));else{let e=r,a=0;for(;ae.message){let t={},r=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):r.push(e(a));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}n.create=e=>{let t=new n(e);return t};let l=(e,t)=>{let r;switch(e.code){case i.invalid_type:r=e.received===a.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case i.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,e1.jsonStringifyReplacer)}`;break;case i.unrecognized_keys:r=`Unrecognized key(s) in object: ${e1.joinValues(e.keys,", ")}`;break;case i.invalid_union:r="Invalid input";break;case i.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${e1.joinValues(e.options)}`;break;case i.invalid_enum_value:r=`Invalid enum value. Expected ${e1.joinValues(e.options)}, received '${e.received}'`;break;case i.invalid_arguments:r="Invalid function arguments";break;case i.invalid_return_type:r="Invalid function return type";break;case i.invalid_date:r="Invalid date";break;case i.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:e1.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case i.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case i.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case i.custom:r="Invalid input";break;case i.invalid_intersection_types:r="Intersection results could not be merged";break;case i.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case i.not_finite:r="Number must be finite";break;default:r=t.defaultError,e1.assertNever(e)}return{message:r}},u=l,d=e=>{let{data:t,path:r,errorMaps:a,issueData:s}=e,i=[...r,...s.path||[]],n={...s,path:i},l="",u=a.filter(e=>!!e).slice().reverse();for(let e of u)l=e(n,{data:t,defaultError:l}).message;return{...s,path:i,message:s.message||l}};function o(e,t){let r=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,u,l].filter(e=>!!e)});e.common.issues.push(r)}class c{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let a of t){if("aborted"===a.status)return h;"dirty"===a.status&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return c.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let a of t){let{key:t,value:s}=a;if("aborted"===t.status||"aborted"===s.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===s.status&&e.dirty(),(void 0!==s.value||a.alwaysSet)&&(r[t.value]=s.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),f=e=>({status:"dirty",value:e}),p=e=>({status:"valid",value:e}),m=e=>"aborted"===e.status,y=e=>"dirty"===e.status,v=e=>"valid"===e.status,_=e=>"undefined"!=typeof Promise&&e instanceof Promise;(eQ=e9||(e9={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},eQ.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class g{constructor(e,t,r,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let b=(e,t)=>{if(v(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new n(e.common.issues);return this._error=t,this._error}}};function x(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:a,description:s}=e;if(t&&(r||a))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=a?a:t.defaultError}:{message:null!=r?r:t.defaultError},description:s}}class k{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return s(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new c,ctx:{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(_(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let a={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},i=this._parseSync({data:e,path:a.path,parent:a});return b(a,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},a=this._parse({data:e,path:r.path,parent:r}),i=await (_(a)?a:Promise.resolve(a));return b(r,i)}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,a)=>{let s=e(t),n=()=>a.addIssue({code:i.custom,...r(t)});return"undefined"!=typeof Promise&&s instanceof Promise?s.then(e=>!!e||(n(),!1)):!!s||(n(),!1)})}refinement(e,t){return this._refinement((r,a)=>!!e(r)||(a.addIssue("function"==typeof t?t(r,a):t),!1))}_refinement(e){return new el({schema:this,typeName:e4.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eu.create(this,this._def)}nullable(){return ed.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return B.create(this,this._def)}promise(){return en.create(this,this._def)}or(e){return q.create([this,e],this._def)}and(e){return J.create(this,e,this._def)}transform(e){return new el({...x(this._def),schema:this,typeName:e4.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eo({...x(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:e4.ZodDefault})}brand(){return new ep({typeName:e4.ZodBranded,type:this,...x(this._def)})}catch(e){return new ec({...x(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:e4.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return em.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let w=/^c[^\s-]{8,}$/i,Z=/^[a-z][a-z0-9]*$/,S=/[0-9A-HJKMNP-TV-Z]{26}/,T=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,O=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,A=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,C=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,N=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,E=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class V extends k{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement(t=>e.test(t),{validation:t,code:i.invalid_string,...e9.errToObj(r)}),this.nonempty=e=>this.min(1,e9.errToObj(e)),this.trim=()=>new V({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new V({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new V({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){let t;this._def.coerce&&(e.data=String(e.data));let r=this._getType(e);if(r!==a.string){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.string,received:t.parsedType}),h}let s=new c;for(let r of this._def.checks)if("min"===r.kind)e.data.lengthr.value&&(o(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),s.dirty());else if("length"===r.kind){let a=e.data.length>r.value,n=e.data.length"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new V({checks:[],typeName:e4.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class j extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;this._def.coerce&&(e.data=Number(e.data));let r=this._getType(e);if(r!==a.number){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.number,received:t.parsedType}),h}let s=new c;for(let r of this._def.checks)if("int"===r.kind)e1.isInteger(e.data)||(o(t=this._getOrReturnCtx(e,t),{code:i.invalid_type,expected:"integer",received:"float",message:r.message}),s.dirty());else if("min"===r.kind){let a=r.inclusive?e.datar.value:e.data>=r.value;a&&(o(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty())}else"multipleOf"===r.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,s=r>a?r:a,i=parseInt(e.toFixed(s).replace(".","")),n=parseInt(t.toFixed(s).replace(".",""));return i%n/Math.pow(10,s)}(e.data,r.value)&&(o(t=this._getOrReturnCtx(e,t),{code:i.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(o(t=this._getOrReturnCtx(e,t),{code:i.not_finite,message:r.message}),s.dirty()):e1.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e9.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e9.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e9.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e9.toString(t))}setLimit(e,t,r,a){return new j({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:e9.toString(a)}]})}_addCheck(e){return new j({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:e9.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:e9.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:e9.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:e9.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:e9.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e9.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:e9.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:e9.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:e9.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&e1.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew j({checks:[],typeName:e4.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class I extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;this._def.coerce&&(e.data=BigInt(e.data));let r=this._getType(e);if(r!==a.bigint){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.bigint,received:t.parsedType}),h}let s=new c;for(let r of this._def.checks)if("min"===r.kind){let a=r.inclusive?e.datar.value:e.data>=r.value;a&&(o(t=this._getOrReturnCtx(e,t),{code:i.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty())}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(o(t=this._getOrReturnCtx(e,t),{code:i.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):e1.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e9.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e9.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e9.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e9.toString(t))}setLimit(e,t,r,a){return new I({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:e9.toString(a)}]})}_addCheck(e){return new I({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:e9.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:e9.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:e9.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:e9.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e9.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new I({checks:[],typeName:e4.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class P extends k{_parse(e){this._def.coerce&&(e.data=!!e.data);let t=this._getType(e);if(t!==a.boolean){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.boolean,received:t.parsedType}),h}return p(e.data)}}P.create=e=>new P({typeName:e4.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class D extends k{_parse(e){let t;this._def.coerce&&(e.data=new Date(e.data));let r=this._getType(e);if(r!==a.date){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.date,received:t.parsedType}),h}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_date}),h}let s=new c;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(o(t=this._getOrReturnCtx(e,t),{code:i.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),s.dirty()):e1.assertNever(r);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:e9.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:e9.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew D({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:e4.ZodDate,...x(e)});class R extends k{_parse(e){let t=this._getType(e);if(t!==a.symbol){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.symbol,received:t.parsedType}),h}return p(e.data)}}R.create=e=>new R({typeName:e4.ZodSymbol,...x(e)});class L extends k{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.undefined,received:t.parsedType}),h}return p(e.data)}}L.create=e=>new L({typeName:e4.ZodUndefined,...x(e)});class F extends k{_parse(e){let t=this._getType(e);if(t!==a.null){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.null,received:t.parsedType}),h}return p(e.data)}}F.create=e=>new F({typeName:e4.ZodNull,...x(e)});class M extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return p(e.data)}}M.create=e=>new M({typeName:e4.ZodAny,...x(e)});class $ extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return p(e.data)}}$.create=e=>new $({typeName:e4.ZodUnknown,...x(e)});class U extends k{_parse(e){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.never,received:t.parsedType}),h}}U.create=e=>new U({typeName:e4.ZodNever,...x(e)});class z extends k{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.void,received:t.parsedType}),h}return p(e.data)}}z.create=e=>new z({typeName:e4.ZodVoid,...x(e)});class B extends k{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),s=this._def;if(t.parsedType!==a.array)return o(t,{code:i.invalid_type,expected:a.array,received:t.parsedType}),h;if(null!==s.exactLength){let e=t.data.length>s.exactLength.value,a=t.data.lengths.maxLength.value&&(o(t,{code:i.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>s.type._parseAsync(new g(t,e,t.path,r)))).then(e=>c.mergeArray(r,e));let n=[...t.data].map((e,r)=>s.type._parseSync(new g(t,e,t.path,r)));return c.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new B({...this._def,minLength:{value:e,message:e9.toString(t)}})}max(e,t){return new B({...this._def,maxLength:{value:e,message:e9.toString(t)}})}length(e,t){return new B({...this._def,exactLength:{value:e,message:e9.toString(t)}})}nonempty(e){return this.min(1,e)}}B.create=(e,t)=>new B({type:e,minLength:null,maxLength:null,exactLength:null,typeName:e4.ZodArray,...x(t)});class K extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=e1.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==a.object){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),h}let{status:r,ctx:s}=this._processInputParams(e),{shape:n,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof U&&"strip"===this._def.unknownKeys))for(let e in s.data)l.includes(e)||u.push(e);let d=[];for(let e of l){let t=n[e],r=s.data[e];d.push({key:{status:"valid",value:e},value:t._parse(new g(s,r,s.path,e)),alwaysSet:e in s.data})}if(this._def.catchall instanceof U){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of u)d.push({key:{status:"valid",value:e},value:{status:"valid",value:s.data[e]}});else if("strict"===e)u.length>0&&(o(s,{code:i.unrecognized_keys,keys:u}),r.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of u){let r=s.data[t];d.push({key:{status:"valid",value:t},value:e._parse(new g(s,r,s.path,t)),alwaysSet:t in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of d){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>c.mergeObjectSync(r,e)):c.mergeObjectSync(r,d)}get shape(){return this._def.shape()}strict(e){return e9.errToObj,new K({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var a,s,i,n;let l=null!==(i=null===(s=(a=this._def).errorMap)||void 0===s?void 0:s.call(a,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(n=e9.errToObj(e).message)&&void 0!==n?n:l}:{message:l}}}:{}})}strip(){return new K({...this._def,unknownKeys:"strip"})}passthrough(){return new K({...this._def,unknownKeys:"passthrough"})}extend(e){return new K({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new K({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:e4.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new K({...this._def,catchall:e})}pick(e){let t={};return e1.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new K({...this._def,shape:()=>t})}omit(e){let t={};return e1.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new K({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof K){let r={};for(let a in t.shape){let s=t.shape[a];r[a]=eu.create(e(s))}return new K({...t._def,shape:()=>r})}return t instanceof B?new B({...t._def,type:e(t.element)}):t instanceof eu?eu.create(e(t.unwrap())):t instanceof ed?ed.create(e(t.unwrap())):t instanceof G?G.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return e1.objectKeys(this.shape).forEach(r=>{let a=this.shape[r];e&&!e[r]?t[r]=a:t[r]=a.optional()}),new K({...this._def,shape:()=>t})}required(e){let t={};return e1.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r],a=e;for(;a instanceof eu;)a=a._def.innerType;t[r]=a}}),new K({...this._def,shape:()=>t})}keyof(){return ea(e1.objectKeys(this.shape))}}K.create=(e,t)=>new K({shape:()=>e,unknownKeys:"strip",catchall:U.create(),typeName:e4.ZodObject,...x(t)}),K.strictCreate=(e,t)=>new K({shape:()=>e,unknownKeys:"strict",catchall:U.create(),typeName:e4.ZodObject,...x(t)}),K.lazycreate=(e,t)=>new K({shape:e,unknownKeys:"strip",catchall:U.create(),typeName:e4.ZodObject,...x(t)});class q extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new n(e.ctx.common.issues));return o(t,{code:i.invalid_union,unionErrors:r}),h});{let e;let a=[];for(let s of r){let r={...t,common:{...t.common,issues:[]},parent:null},i=s._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&a.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let s=a.map(e=>new n(e));return o(t,{code:i.invalid_union,unionErrors:s}),h}}get options(){return this._def.options}}q.create=(e,t)=>new q({options:e,typeName:e4.ZodUnion,...x(t)});let W=e=>{if(e instanceof et)return W(e.schema);if(e instanceof el)return W(e.innerType());if(e instanceof er)return[e.value];if(e instanceof es)return e.options;if(e instanceof ei)return Object.keys(e.enum);if(e instanceof eo)return W(e._def.innerType);if(e instanceof L)return[void 0];else if(e instanceof F)return[null];else return null};class H extends k{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.object)return o(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),h;let r=this.discriminator,s=t.data[r],n=this.optionsMap.get(s);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(o(t,{code:i.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let a=new Map;for(let r of t){let t=W(r.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of t){if(a.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);a.set(s,r)}}return new H({typeName:e4.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...x(r)})}}class J extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(m(e)||m(n))return h;let l=function e(t,r){let i=s(t),n=s(r);if(t===r)return{valid:!0,data:t};if(i===a.object&&n===a.object){let a=e1.objectKeys(r),s=e1.objectKeys(t).filter(e=>-1!==a.indexOf(e)),i={...t,...r};for(let a of s){let s=e(t[a],r[a]);if(!s.valid)return{valid:!1};i[a]=s.data}return{valid:!0,data:i}}if(i===a.array&&n===a.array){if(t.length!==r.length)return{valid:!1};let a=[];for(let s=0;sn(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}J.create=(e,t,r)=>new J({left:e,right:t,typeName:e4.ZodIntersection,...x(r)});class G extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.array)return o(r,{code:i.invalid_type,expected:a.array,received:r.parsedType}),h;if(r.data.lengththis._def.items.length&&(o(r,{code:i.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let a=this._def.items[t]||this._def.rest;return a?a._parse(new g(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>c.mergeArray(t,e)):c.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new G({...this._def,rest:e})}}G.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new G({items:e,typeName:e4.ZodTuple,rest:null,...x(t)})};class Y extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.object)return o(r,{code:i.invalid_type,expected:a.object,received:r.parsedType}),h;let s=[],n=this._def.keyType,l=this._def.valueType;for(let e in r.data)s.push({key:n._parse(new g(r,e,r.path,e)),value:l._parse(new g(r,r.data[e],r.path,e))});return r.common.async?c.mergeObjectAsync(t,s):c.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,r){return new Y(t instanceof k?{keyType:e,valueType:t,typeName:e4.ZodRecord,...x(r)}:{keyType:V.create(),valueType:e,typeName:e4.ZodRecord,...x(t)})}}class X extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.map)return o(r,{code:i.invalid_type,expected:a.map,received:r.parsedType}),h;let s=this._def.keyType,n=this._def.valueType,l=[...r.data.entries()].map(([e,t],a)=>({key:s._parse(new g(r,e,r.path,[a,"key"])),value:n._parse(new g(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of l){let a=await r.key,s=await r.value;if("aborted"===a.status||"aborted"===s.status)return h;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of l){let a=r.key,s=r.value;if("aborted"===a.status||"aborted"===s.status)return h;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}}}}X.create=(e,t,r)=>new X({valueType:t,keyType:e,typeName:e4.ZodMap,...x(r)});class Q extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.set)return o(r,{code:i.invalid_type,expected:a.set,received:r.parsedType}),h;let s=this._def;null!==s.minSize&&r.data.sizes.maxSize.value&&(o(r,{code:i.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let n=this._def.valueType;function l(e){let r=new Set;for(let a of e){if("aborted"===a.status)return h;"dirty"===a.status&&t.dirty(),r.add(a.value)}return{status:t.value,value:r}}let u=[...r.data.values()].map((e,t)=>n._parse(new g(r,e,r.path,t)));return r.common.async?Promise.all(u).then(e=>l(e)):l(u)}min(e,t){return new Q({...this._def,minSize:{value:e,message:e9.toString(t)}})}max(e,t){return new Q({...this._def,maxSize:{value:e,message:e9.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Q.create=(e,t)=>new Q({valueType:e,minSize:null,maxSize:null,typeName:e4.ZodSet,...x(t)});class ee extends k{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.function)return o(t,{code:i.invalid_type,expected:a.function,received:t.parsedType}),h;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,l].filter(e=>!!e),issueData:{code:i.invalid_arguments,argumentsError:r}})}function s(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,l].filter(e=>!!e),issueData:{code:i.invalid_return_type,returnTypeError:r}})}let c={errorMap:t.common.contextualErrorMap},f=t.data;return this._def.returns instanceof en?p(async(...e)=>{let t=new n([]),a=await this._def.args.parseAsync(e,c).catch(a=>{throw t.addIssue(r(e,a)),t}),i=await f(...a),l=await this._def.returns._def.type.parseAsync(i,c).catch(e=>{throw t.addIssue(s(i,e)),t});return l}):p((...e)=>{let t=this._def.args.safeParse(e,c);if(!t.success)throw new n([r(e,t.error)]);let a=f(...t.data),i=this._def.returns.safeParse(a,c);if(!i.success)throw new n([s(a,i.error)]);return i.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ee({...this._def,args:G.create(e).rest($.create())})}returns(e){return new ee({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,r){return new ee({args:e||G.create([]).rest($.create()),returns:t||$.create(),typeName:e4.ZodFunction,...x(r)})}}class et extends k{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.getter();return r._parse({data:t.data,path:t.path,parent:t})}}et.create=(e,t)=>new et({getter:e,typeName:e4.ZodLazy,...x(t)});class er extends k{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return o(t,{received:t.data,code:i.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ea(e,t){return new es({values:e,typeName:e4.ZodEnum,...x(t)})}er.create=(e,t)=>new er({value:e,typeName:e4.ZodLiteral,...x(t)});class es extends k{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return o(t,{expected:e1.joinValues(r),received:t.parsedType,code:i.invalid_type}),h}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return o(t,{received:t.data,code:i.invalid_enum_value,options:r}),h}return p(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return es.create(e)}exclude(e){return es.create(this.options.filter(t=>!e.includes(t)))}}es.create=ea;class ei extends k{_parse(e){let t=e1.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==a.string&&r.parsedType!==a.number){let e=e1.objectValues(t);return o(r,{expected:e1.joinValues(e),received:r.parsedType,code:i.invalid_type}),h}if(-1===t.indexOf(e.data)){let e=e1.objectValues(t);return o(r,{received:r.data,code:i.invalid_enum_value,options:e}),h}return p(e.data)}get enum(){return this._def.values}}ei.create=(e,t)=>new ei({values:e,typeName:e4.ZodNativeEnum,...x(t)});class en extends k{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.promise&&!1===t.common.async)return o(t,{code:i.invalid_type,expected:a.promise,received:t.parsedType}),h;let r=t.parsedType===a.promise?t.data:Promise.resolve(t.data);return p(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}en.create=(e,t)=>new en({type:e,typeName:e4.ZodPromise,...x(t)});class el extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===e4.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),a=this._def.effect||null;if("preprocess"===a.type){let e=a.transform(r.data);return r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}let s={addIssue:e=>{o(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),"refinement"===a.type){let e=e=>{let t=a.refinement(e,s);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===a.status?h:("dirty"===a.status&&t.dirty(),e(a.value),{status:t.value,value:a.value})}}if("transform"===a.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>v(e)?Promise.resolve(a.transform(e.value,s)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!v(e))return e;let i=a.transform(e.value,s);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}}e1.assertNever(a)}}el.create=(e,t,r)=>new el({schema:e,typeName:e4.ZodEffects,effect:t,...x(r)}),el.createWithPreprocess=(e,t,r)=>new el({schema:t,effect:{type:"preprocess",transform:e},typeName:e4.ZodEffects,...x(r)});class eu extends k{_parse(e){let t=this._getType(e);return t===a.undefined?p(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eu.create=(e,t)=>new eu({innerType:e,typeName:e4.ZodOptional,...x(t)});class ed extends k{_parse(e){let t=this._getType(e);return t===a.null?p(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ed.create=(e,t)=>new ed({innerType:e,typeName:e4.ZodNullable,...x(t)});class eo extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===a.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eo.create=(e,t)=>new eo({innerType:e,typeName:e4.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...x(t)});class ec extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return _(a)?a.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new n(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===a.status?a.value:this._def.catchValue({get error(){return new n(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:e4.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...x(t)});class eh extends k{_parse(e){let t=this._getType(e);if(t!==a.nan){let t=this._getOrReturnCtx(e);return o(t,{code:i.invalid_type,expected:a.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}eh.create=e=>new eh({typeName:e4.ZodNaN,...x(e)});let ef=Symbol("zod_brand");class ep extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class em extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){let e=async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),f(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})};return e()}{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new em({in:e,out:t,typeName:e4.ZodPipeline})}}let ey=(e,t={},r)=>e?M.create().superRefine((a,s)=>{var i,n;if(!e(a)){let e="function"==typeof t?t(a):"string"==typeof t?{message:t}:t,l=null===(n=null!==(i=e.fatal)&&void 0!==i?i:r)||void 0===n||n,u="string"==typeof e?{message:e}:e;s.addIssue({code:"custom",...u,fatal:l})}}):M.create(),ev={object:K.lazycreate};(e0=e4||(e4={})).ZodString="ZodString",e0.ZodNumber="ZodNumber",e0.ZodNaN="ZodNaN",e0.ZodBigInt="ZodBigInt",e0.ZodBoolean="ZodBoolean",e0.ZodDate="ZodDate",e0.ZodSymbol="ZodSymbol",e0.ZodUndefined="ZodUndefined",e0.ZodNull="ZodNull",e0.ZodAny="ZodAny",e0.ZodUnknown="ZodUnknown",e0.ZodNever="ZodNever",e0.ZodVoid="ZodVoid",e0.ZodArray="ZodArray",e0.ZodObject="ZodObject",e0.ZodUnion="ZodUnion",e0.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e0.ZodIntersection="ZodIntersection",e0.ZodTuple="ZodTuple",e0.ZodRecord="ZodRecord",e0.ZodMap="ZodMap",e0.ZodSet="ZodSet",e0.ZodFunction="ZodFunction",e0.ZodLazy="ZodLazy",e0.ZodLiteral="ZodLiteral",e0.ZodEnum="ZodEnum",e0.ZodEffects="ZodEffects",e0.ZodNativeEnum="ZodNativeEnum",e0.ZodOptional="ZodOptional",e0.ZodNullable="ZodNullable",e0.ZodDefault="ZodDefault",e0.ZodCatch="ZodCatch",e0.ZodPromise="ZodPromise",e0.ZodBranded="ZodBranded",e0.ZodPipeline="ZodPipeline";let e_=V.create,eg=j.create,eb=eh.create,ex=I.create,ek=P.create,ew=D.create,eZ=R.create,eS=L.create,eT=F.create,eO=M.create,eA=$.create,eC=U.create,eN=z.create,eE=B.create,eV=K.create,ej=K.strictCreate,eI=q.create,eP=H.create,eD=J.create,eR=G.create,eL=Y.create,eF=X.create,eM=Q.create,e$=ee.create,eU=et.create,ez=er.create,eB=es.create,eK=ei.create,eq=en.create,eW=el.create,eH=eu.create,eJ=ed.create,eG=el.createWithPreprocess,eY=em.create;var eX,eQ,e0,e1,e2,e9,e4,e5=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:function(){return u},makeIssue:d,EMPTY_PATH:[],addIssueToContext:o,ParseStatus:c,INVALID:h,DIRTY:f,OK:p,isAborted:m,isDirty:y,isValid:v,isAsync:_,get util(){return e1},get objectUtil(){return e2},ZodParsedType:a,getParsedType:s,ZodType:k,ZodString:V,ZodNumber:j,ZodBigInt:I,ZodBoolean:P,ZodDate:D,ZodSymbol:R,ZodUndefined:L,ZodNull:F,ZodAny:M,ZodUnknown:$,ZodNever:U,ZodVoid:z,ZodArray:B,ZodObject:K,ZodUnion:q,ZodDiscriminatedUnion:H,ZodIntersection:J,ZodTuple:G,ZodRecord:Y,ZodMap:X,ZodSet:Q,ZodFunction:ee,ZodLazy:et,ZodLiteral:er,ZodEnum:es,ZodNativeEnum:ei,ZodPromise:en,ZodEffects:el,ZodTransformer:el,ZodOptional:eu,ZodNullable:ed,ZodDefault:eo,ZodCatch:ec,ZodNaN:eh,BRAND:ef,ZodBranded:ep,ZodPipeline:em,custom:ey,Schema:k,ZodSchema:k,late:ev,get ZodFirstPartyTypeKind(){return e4},coerce:{string:e=>V.create({...e,coerce:!0}),number:e=>j.create({...e,coerce:!0}),boolean:e=>P.create({...e,coerce:!0}),bigint:e=>I.create({...e,coerce:!0}),date:e=>D.create({...e,coerce:!0})},any:eO,array:eE,bigint:ex,boolean:ek,date:ew,discriminatedUnion:eP,effect:eW,enum:eB,function:e$,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>ey(t=>t instanceof e,t),intersection:eD,lazy:eU,literal:ez,map:eF,nan:eb,nativeEnum:eK,never:eC,null:eT,nullable:eJ,number:eg,object:eV,oboolean:()=>ek().optional(),onumber:()=>eg().optional(),optional:eH,ostring:()=>e_().optional(),pipeline:eY,preprocess:eG,promise:eq,record:eL,set:eM,strictObject:ej,string:e_,symbol:eZ,transformer:eW,tuple:eR,undefined:eS,union:eI,unknown:eA,void:eN,NEVER:h,ZodIssueCode:i,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:n})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/1450-b091fc1b6f7d4bf0.js b/pilot/server/static/_next/static/chunks/1450-b091fc1b6f7d4bf0.js new file mode 100644 index 000000000..868e29f3e --- /dev/null +++ b/pilot/server/static/_next/static/chunks/1450-b091fc1b6f7d4bf0.js @@ -0,0 +1,3 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1450],{95131:function(i,a,o){o.d(a,{Z:function(){return l}});var e=o(40431),t=o(86006),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},n=o(1240),l=t.forwardRef(function(i,a){return t.createElement(n.Z,(0,e.Z)({},i,{ref:a,icon:r}))})},31515:function(i,a,o){o.d(a,{Z:function(){return l}});var e=o(40431),t=o(86006),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},n=o(1240),l=t.forwardRef(function(i,a){return t.createElement(n.Z,(0,e.Z)({},i,{ref:a,icon:r}))})},29382:function(i,a,o){var e=o(78997);a.Z=void 0;var t=e(o(76906)),r=o(9268),n=(0,t.default)([(0,r.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,r.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");a.Z=n},74852:function(i,a,o){var e=o(78997);a.Z=void 0;var t=e(o(76906)),r=o(9268),n=(0,t.default)((0,r.jsx)("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}),"WarningRounded");a.Z=n},50318:function(i,a,o){o.d(a,{Z:function(){return M}});var e=o(46750),t=o(40431),r=o(86006),n=o(89791),l=o(53832),d=o(47562),s=o(50645),c=o(88930),v=o(18587);function g(i){return(0,v.d6)("MuiDivider",i)}(0,v.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var u=o(326),p=o(9268);let f=["className","children","component","inset","orientation","role","slots","slotProps"],m=i=>{let{orientation:a,inset:o}=i,e={root:["root",a,o&&`inset${(0,l.Z)(o)}`]};return(0,d.Z)(e,g,{})},D=(0,s.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,a)=>a.root})(({theme:i,ownerState:a})=>(0,t.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===a.inset&&{"--_Divider-inset":"0px"},"context"===a.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===a.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===a.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},a.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===a.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===a.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===a.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===a.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===a.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===a.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===a.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===a.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===a.orientation?"initial":"var(--Divider-thickness)"})),h=r.forwardRef(function(i,a){let o=(0,c.Z)({props:i,name:"JoyDivider"}),{className:r,children:l,component:d=null!=l?"div":"hr",inset:s,orientation:v="horizontal",role:g="hr"!==d?"separator":void 0,slots:h={},slotProps:M={}}=o,Z=(0,e.Z)(o,f),y=(0,t.Z)({},o,{inset:s,role:g,orientation:v,component:d}),x=m(y),z=(0,t.Z)({},Z,{component:d,slots:h,slotProps:M}),[b,C]=(0,u.Z)("root",{ref:a,className:(0,n.Z)(x.root,r),elementType:D,externalForwardedProps:z,ownerState:y,additionalProps:(0,t.Z)({as:d,role:g},"separator"===g&&"vertical"===v&&{"aria-orientation":"vertical"})});return(0,p.jsx)(b,(0,t.Z)({},C,{children:l}))});h.muiName="Divider";var M=h},30530:function(i,a,o){o.d(a,{Z:function(){return b}});var e=o(46750),t=o(40431),r=o(86006),n=o(89791),l=o(47562),d=o(53832),s=o(44542),c=o(50645),v=o(88930),g=o(47093),u=o(5737),p=o(18587);function f(i){return(0,p.d6)("MuiModalDialog",i)}(0,p.sI)("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]);var m=o(66752),D=o(69586),h=o(326),M=o(9268);let Z=["className","children","color","component","variant","size","layout","slots","slotProps"],y=i=>{let{variant:a,color:o,size:e,layout:t}=i,r={root:["root",a&&`variant${(0,d.Z)(a)}`,o&&`color${(0,d.Z)(o)}`,e&&`size${(0,d.Z)(e)}`,t&&`layout${(0,d.Z)(t)}`]};return(0,l.Z)(r,f,{})},x=(0,c.Z)(u.U,{name:"JoyModalDialog",slot:"Root",overridesResolver:(i,a)=>a.root})(({theme:i,ownerState:a})=>(0,t.Z)({"--Divider-inset":"calc(-1 * var(--ModalDialog-padding))","--ModalClose-radius":"max((var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===a.size&&{"--ModalDialog-padding":i.spacing(2),"--ModalDialog-radius":i.vars.radius.sm,"--ModalDialog-gap":i.spacing(.75),"--ModalDialog-titleOffset":i.spacing(.25),"--ModalDialog-descriptionOffset":i.spacing(.25),"--ModalClose-inset":i.spacing(1.25),fontSize:i.vars.fontSize.sm},"md"===a.size&&{"--ModalDialog-padding":i.spacing(2.5),"--ModalDialog-radius":i.vars.radius.md,"--ModalDialog-gap":i.spacing(1.5),"--ModalDialog-titleOffset":i.spacing(.25),"--ModalDialog-descriptionOffset":i.spacing(.75),"--ModalClose-inset":i.spacing(1.5),fontSize:i.vars.fontSize.md},"lg"===a.size&&{"--ModalDialog-padding":i.spacing(3),"--ModalDialog-radius":i.vars.radius.md,"--ModalDialog-gap":i.spacing(2),"--ModalDialog-titleOffset":i.spacing(.75),"--ModalDialog-descriptionOffset":i.spacing(1),"--ModalClose-inset":i.spacing(1.5),fontSize:i.vars.fontSize.lg},{boxSizing:"border-box",boxShadow:i.shadow.md,borderRadius:"var(--ModalDialog-radius)",fontFamily:i.vars.fontFamily.body,lineHeight:i.vars.lineHeight.md,padding:"var(--ModalDialog-padding)",minWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-minWidth, 300px))",outline:0,position:"absolute",display:"flex",flexDirection:"column"},"fullscreen"===a.layout&&{top:0,left:0,right:0,bottom:0,border:0,borderRadius:0},"center"===a.layout&&{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-maxWidth, 100vw))",maxHeight:"calc(100% - 2 * var(--ModalDialog-padding))"},{[`& [id="${a["aria-labelledby"]}"]`]:{"--Typography-margin":"calc(-1 * var(--ModalDialog-titleOffset)) 0 var(--ModalDialog-gap) 0","--Typography-fontSize":"1.125em",[`& + [id="${a["aria-describedby"]}"]`]:{"--unstable_ModalDialog-descriptionOffset":"calc(-1 * var(--ModalDialog-descriptionOffset))"}},[`& [id="${a["aria-describedby"]}"]`]:{"--Typography-fontSize":"1em","--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 0 0","&:not(:last-child)":{"--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 var(--ModalDialog-gap) 0"}}})),z=r.forwardRef(function(i,a){let o=(0,v.Z)({props:i,name:"JoyModalDialog"}),{className:l,children:d,color:c="neutral",component:u="div",variant:p="outlined",size:f="md",layout:z="center",slots:b={},slotProps:C={}}=o,S=(0,e.Z)(o,Z),{getColor:k}=(0,g.VT)(p),w=k(i.color,c),$=(0,t.Z)({},o,{color:w,component:u,layout:z,size:f,variant:p}),O=y($),P=(0,t.Z)({},S,{component:u,slots:b,slotProps:C}),E=r.useMemo(()=>({variant:p,color:"context"===w?void 0:w}),[w,p]),[R,I]=(0,h.Z)("root",{ref:a,className:(0,n.Z)(O.root,l),elementType:x,externalForwardedProps:P,ownerState:$,additionalProps:{as:u,role:"dialog","aria-modal":"true"}});return(0,M.jsx)(m.Z.Provider,{value:f,children:(0,M.jsx)(D.Z.Provider,{value:E,children:(0,M.jsx)(R,(0,t.Z)({},I,{children:r.Children.map(d,i=>{if(!r.isValidElement(i))return i;if((0,s.Z)(i,["Divider"])){let a={};return a.inset="inset"in i.props?i.props.inset:"context",r.cloneElement(i,a)}return i})}))})})});var b=z},66752:function(i,a,o){var e=o(86006);let t=e.createContext(void 0);a.Z=t},69586:function(i,a,o){var e=o(86006);let t=e.createContext(void 0);a.Z=t},3146:function(i,a,o){o.d(a,{Z:function(){return t}});var e=o(86006);function t(){let[,i]=e.useReducer(i=>i+1,0);return i}},57406:function(i,a){a.Z=i=>({[i.componentCls]:{[`${i.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${i.motionDurationMid} ${i.motionEaseInOut}, + opacity ${i.motionDurationMid} ${i.motionEaseInOut} !important`}},[`${i.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${i.motionDurationMid} ${i.motionEaseInOut}, + opacity ${i.motionDurationMid} ${i.motionEaseInOut} !important`}}})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/192-e9f419fb9f5bc502.js b/pilot/server/static/_next/static/chunks/192-e9f419fb9f5bc502.js deleted file mode 100644 index 680057adf..000000000 --- a/pilot/server/static/_next/static/chunks/192-e9f419fb9f5bc502.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[192],{80937:function(e,t,n){n.d(t,{Z:function(){return Z}});var o=n(46750),r=n(40431),i=n(86006),a=n(89791),s=n(95135),l=n(47562),c=n(13809),u=n(96263),f=n(38295),p=n(86601),d=n(89587),h=n(91559),m=n(48527),v=n(9268);let g=["component","direction","spacing","divider","children","className","useFlexGap"],b=(0,d.Z)(),y=(0,u.Z)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function w(e){return(0,f.Z)({props:e,name:"MuiStack",defaultTheme:b})}let _=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],k=({ownerState:e,theme:t})=>{let n=(0,r.Z)({display:"flex",flexDirection:"column"},(0,h.k9)({theme:t},(0,h.P$)({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e})));if(e.spacing){let o=(0,m.hB)(t),r=Object.keys(t.breakpoints.values).reduce((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t),{}),i=(0,h.P$)({values:e.direction,base:r}),a=(0,h.P$)({values:e.spacing,base:r});"object"==typeof i&&Object.keys(i).forEach((e,t,n)=>{let o=i[e];if(!o){let o=t>0?i[n[t-1]]:"column";i[e]=o}}),n=(0,s.Z)(n,(0,h.k9)({theme:t},a,(t,n)=>e.useFlexGap?{gap:(0,m.NA)(o,t)}:{"& > :not(style) ~ :not(style)":{margin:0,[`margin${_(n?i[n]:e.direction)}`]:(0,m.NA)(o,t)}}))}return(0,h.dt)(t.breakpoints,n)};var x=n(50645),O=n(88930);let E=function(e={}){let{createStyledComponent:t=y,useThemeProps:n=w,componentName:s="MuiStack"}=e,u=()=>(0,l.Z)({root:["root"]},e=>(0,c.Z)(s,e),{}),f=t(k),d=i.forwardRef(function(e,t){let s=n(e),l=(0,p.Z)(s),{component:c="div",direction:d="column",spacing:h=0,divider:m,children:b,className:y,useFlexGap:w=!1}=l,_=(0,o.Z)(l,g),k=u();return(0,v.jsx)(f,(0,r.Z)({as:c,ownerState:{direction:d,spacing:h,useFlexGap:w},ref:t,className:(0,a.Z)(k.root,y)},_,{children:m?function(e,t){let n=i.Children.toArray(e).filter(Boolean);return n.reduce((e,o,r)=>(e.push(o),rt.root}),useThemeProps:e=>(0,O.Z)({props:e,name:"JoyStack"})});var Z=E},96263:function(e,t,n){var o=n(9312);let r=(0,o.ZP)();t.Z=r},90214:function(e,t,n){n.d(t,{Z:function(){return X}});var o=n(88684),r=n(60456),i=n(89301),a=n(61085),s=n(8683),l=n.n(s),c=n(29333),u=n(49175),f=n(60618),p=n(23254),d=n(53457),h=n(38358),m=n(98861),v=n(86006),g=v.createContext(null);function b(e){return e?Array.isArray(e)?e:[e]:[]}var y=n(98498);function w(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function _(e){return e.ownerDocument.defaultView}function k(e){for(var t=[],n=null==e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=_(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some(function(e){return o.includes(e)})&&t.push(n),n=n.parentElement}return t}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function O(e){return x(parseFloat(e),0)}function E(e,t){var n=(0,o.Z)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement)){var t=_(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,s=t.borderLeftWidth,l=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,f=e.clientHeight,p=e.offsetWidth,d=e.clientWidth,h=O(i),m=O(a),v=O(s),g=O(l),b=x(Math.round(c.width/p*1e3)/1e3),y=x(Math.round(c.height/u*1e3)/1e3),w=h*y,k=v*b,E=0,Z=0;if("clip"===o){var C=O(r);E=C*b,Z=C*y}var M=c.x+k-E,R=c.y+w-Z,A=M+c.width+2*E-k-g*b-(p-d-v-g)*b,S=R+c.height+2*Z-w-m*y-(u-f-h-m)*y;n.left=Math.max(n.left,M),n.top=Math.max(n.top,R),n.right=Math.min(n.right,A),n.bottom=Math.min(n.bottom,S)}}),n}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t),o=n.match(/^(.*)\%$/);return o?e*(parseFloat(o[1])/100):parseFloat(n)}function C(e,t){var n=(0,r.Z)(t||[],2),o=n[0],i=n[1];return[Z(e.width,o),Z(e.height,i)]}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function R(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function A(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,o){return o===t?n[e]||"c":e}).join("")}var S=n(90151);n(65493);var j=n(66643),$=n(40431),T=n(78641),P=n(92510);function N(e){var t=e.prefixCls,n=e.align,o=e.arrow,r=e.arrowPos,i=o||{},a=i.className,s=i.content,c=r.x,u=r.y,f=v.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(!1!==n.autoArrow){var d=n.points[0],h=n.points[1],m=d[0],g=d[1],b=h[0],y=h[1];m!==b&&["t","b"].includes(m)?"t"===m?p.top=0:p.bottom=0:p.top=void 0===u?0:u,g!==y&&["l","r"].includes(g)?"l"===g?p.left=0:p.right=0:p.left=void 0===c?0:c}return v.createElement("div",{ref:f,className:l()("".concat(t,"-arrow"),a),style:p},s)}function L(e){var t=e.prefixCls,n=e.open,o=e.zIndex,r=e.mask,i=e.motion;return r?v.createElement(T.ZP,(0,$.Z)({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return v.createElement("div",{style:{zIndex:o},className:l()("".concat(t,"-mask"),n)})}):null}var z=v.memo(function(e){return e.children},function(e,t){return t.cache}),D=v.forwardRef(function(e,t){var n=e.popup,i=e.className,a=e.prefixCls,s=e.style,u=e.target,f=e.onVisibleChanged,p=e.open,d=e.keepDom,m=e.onClick,g=e.mask,b=e.arrow,y=e.arrowPos,w=e.align,_=e.motion,k=e.maskMotion,x=e.forceRender,O=e.getPopupContainer,E=e.autoDestroy,Z=e.portal,C=e.zIndex,M=e.onMouseEnter,R=e.onMouseLeave,A=e.ready,S=e.offsetX,j=e.offsetY,D=e.onAlign,B=e.onPrepare,V=e.stretch,X=e.targetWidth,H=e.targetHeight,W="function"==typeof n?n():n,I=(null==O?void 0:O.length)>0,Y=v.useState(!O||!I),F=(0,r.Z)(Y,2),q=F[0],G=F[1];if((0,h.Z)(function(){!q&&I&&u&&G(!0)},[q,I,u]),!q)return null;var Q=A||!p?{left:S,top:j}:{left:"-1000vw",top:"-1000vh"},J={};return V&&(V.includes("height")&&H?J.height=H:V.includes("minHeight")&&H&&(J.minHeight=H),V.includes("width")&&X?J.width=X:V.includes("minWidth")&&X&&(J.minWidth=X)),p||(J.pointerEvents="none"),v.createElement(Z,{open:x||p||d,getContainer:O&&function(){return O(u)},autoDestroy:E},v.createElement(L,{prefixCls:a,open:p,zIndex:C,mask:g,motion:k}),v.createElement(c.Z,{onResize:D,disabled:!p},function(e){return v.createElement(T.ZP,(0,$.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(a,"-hidden")},_,{onAppearPrepare:B,onEnterPrepare:B,visible:p,onVisibleChanged:function(e){var t;null==_||null===(t=_.onVisibleChanged)||void 0===t||t.call(_,e),f(e)}}),function(n,r){var c=n.className,u=n.style,f=l()(a,c,i);return v.createElement("div",{ref:(0,P.sQ)(e,t,r),className:f,style:(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},Q),J),u),{},{boxSizing:"border-box",zIndex:C},s),onMouseEnter:M,onMouseLeave:R,onClick:m},b&&v.createElement(N,{prefixCls:a,arrow:b,arrowPos:y,align:w}),v.createElement(z,{cache:!p},W))})}))}),B=v.forwardRef(function(e,t){var n=e.children,o=e.getTriggerDOMNode,r=(0,P.Yr)(n),i=v.useCallback(function(e){(0,P.mH)(t,o?o(e):e)},[o]),a=(0,P.x1)(i,n.ref);return r?v.cloneElement(n,{ref:a}):n}),V=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"],X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.Z;return v.forwardRef(function(t,n){var a,s,O,Z,$,T,P,N,L,z,X,H,W,I,Y,F,q=t.prefixCls,G=void 0===q?"rc-trigger-popup":q,Q=t.children,J=t.action,U=t.showAction,K=t.hideAction,ee=t.popupVisible,et=t.defaultPopupVisible,en=t.onPopupVisibleChange,eo=t.afterPopupVisibleChange,er=t.mouseEnterDelay,ei=t.mouseLeaveDelay,ea=void 0===ei?.1:ei,es=t.focusDelay,el=t.blurDelay,ec=t.mask,eu=t.maskClosable,ef=t.getPopupContainer,ep=t.forceRender,ed=t.autoDestroy,eh=t.destroyPopupOnHide,em=t.popup,ev=t.popupClassName,eg=t.popupStyle,eb=t.popupPlacement,ey=t.builtinPlacements,ew=void 0===ey?{}:ey,e_=t.popupAlign,ek=t.zIndex,ex=t.stretch,eO=t.getPopupClassNameFromAlign,eE=t.alignPoint,eZ=t.onPopupClick,eC=t.onPopupAlign,eM=t.arrow,eR=t.popupMotion,eA=t.maskMotion,eS=t.popupTransitionName,ej=t.popupAnimation,e$=t.maskTransitionName,eT=t.maskAnimation,eP=t.className,eN=t.getTriggerDOMNode,eL=(0,i.Z)(t,V),ez=v.useState(!1),eD=(0,r.Z)(ez,2),eB=eD[0],eV=eD[1];(0,h.Z)(function(){eV((0,m.Z)())},[]);var eX=v.useRef({}),eH=v.useContext(g),eW=v.useMemo(function(){return{registerSubPopup:function(e,t){eX.current[e]=t,null==eH||eH.registerSubPopup(e,t)}}},[eH]),eI=(0,d.Z)(),eY=v.useState(null),eF=(0,r.Z)(eY,2),eq=eF[0],eG=eF[1],eQ=(0,p.Z)(function(e){(0,u.S)(e)&&eq!==e&&eG(e),null==eH||eH.registerSubPopup(eI,e)}),eJ=v.useState(null),eU=(0,r.Z)(eJ,2),eK=eU[0],e0=eU[1],e1=(0,p.Z)(function(e){(0,u.S)(e)&&eK!==e&&e0(e)}),e2=v.Children.only(Q),e8=(null==e2?void 0:e2.props)||{},e5={},e3=(0,p.Z)(function(e){var t,n;return(null==eK?void 0:eK.contains(e))||(null===(t=(0,f.A)(eK))||void 0===t?void 0:t.host)===e||e===eK||(null==eq?void 0:eq.contains(e))||(null===(n=(0,f.A)(eq))||void 0===n?void 0:n.host)===e||e===eq||Object.values(eX.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),e4=w(G,eR,ej,eS),e6=w(G,eA,eT,e$),e9=v.useState(et||!1),e7=(0,r.Z)(e9,2),te=e7[0],tt=e7[1],tn=null!=ee?ee:te,to=(0,p.Z)(function(e){void 0===ee&&tt(e)});(0,h.Z)(function(){tt(ee||!1)},[ee]);var tr=v.useRef(tn);tr.current=tn;var ti=(0,p.Z)(function(e){tn!==e&&(to(e),null==en||en(e))}),ta=v.useRef(),ts=function(){clearTimeout(ta.current)},tl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ts(),0===t?ti(e):ta.current=setTimeout(function(){ti(e)},1e3*t)};v.useEffect(function(){return ts},[]);var tc=v.useState(!1),tu=(0,r.Z)(tc,2),tf=tu[0],tp=tu[1];(0,h.Z)(function(e){(!e||tn)&&tp(!0)},[tn]);var td=v.useState(null),th=(0,r.Z)(td,2),tm=th[0],tv=th[1],tg=v.useState([0,0]),tb=(0,r.Z)(tg,2),ty=tb[0],tw=tb[1],t_=function(e){tw([e.clientX,e.clientY])},tk=(a=eE?ty:eK,s=v.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ew[eb]||{}}),Z=(O=(0,r.Z)(s,2))[0],$=O[1],T=v.useRef(0),P=v.useMemo(function(){return eq?k(eq):[]},[eq]),N=v.useRef({}),tn||(N.current={}),L=(0,p.Z)(function(){if(eq&&a&&tn){var e,t,n,i,s,l=eq.style.left,c=eq.style.top,f=eq.ownerDocument,p=_(eq),d=(0,o.Z)((0,o.Z)({},ew[eb]),e_);if(eq.style.left="0",eq.style.top="0",Array.isArray(a))e={x:a[0],y:a[1],width:0,height:0};else{var h=a.getBoundingClientRect();e={x:h.x,y:h.y,width:h.width,height:h.height}}var m=eq.getBoundingClientRect(),v=p.getComputedStyle(eq),g=v.width,b=v.height,w=f.documentElement,k=w.clientWidth,O=w.clientHeight,Z=w.scrollWidth,S=w.scrollHeight,j=w.scrollTop,T=w.scrollLeft,L=m.height,z=m.width,D=e.height,B=e.width,V=d.htmlRegion,X="visible",H="visibleFirst";"scroll"!==V&&V!==H&&(V=X);var W=V===H,I=E({left:-T,top:-j,right:Z-T,bottom:S-j},P),Y=E({left:0,top:0,right:k,bottom:O},P),F=V===X?Y:I,q=W?Y:F;eq.style.left=l,eq.style.top=c;var G=x(Math.round(z/parseFloat(g)*1e3)/1e3),Q=x(Math.round(L/parseFloat(b)*1e3)/1e3);if(!(0===G||0===Q||(0,u.S)(a)&&!(0,y.Z)(a))){var J=d.offset,U=d.targetOffset,K=C(m,J),ee=(0,r.Z)(K,2),et=ee[0],en=ee[1],eo=C(e,U),er=(0,r.Z)(eo,2),ei=er[0],ea=er[1];e.x-=ei,e.y-=ea;var es=d.points||[],el=(0,r.Z)(es,2),ec=el[0],eu=M(el[1]),ef=M(ec),ep=R(e,eu),ed=R(m,ef),eh=(0,o.Z)({},d),em=ep.x-ed.x+et,ev=ep.y-ed.y+en,eg=e2(em,ev),ey=e2(em,ev,Y),ek=R(e,["t","l"]),ex=R(m,["t","l"]),eO=R(e,["b","r"]),eE=R(m,["b","r"]),eZ=d.overflow||{},eM=eZ.adjustX,eR=eZ.adjustY,eA=eZ.shiftX,eS=eZ.shiftY,ej=function(e){return"boolean"==typeof e?e:e>=0};e8();var e$=ej(eR),eT=ef[0]===eu[0];if(e$&&"t"===ef[0]&&(n>q.bottom||N.current.bt)){var eP=ev;eT?eP-=L-D:eP=ek.y-eE.y-en;var eN=e2(em,eP),eL=e2(em,eP,Y);eN>eg||eN===eg&&(!W||eL>=ey)?(N.current.bt=!0,ev=eP,eh.points=[A(ef,0),A(eu,0)]):N.current.bt=!1}if(e$&&"b"===ef[0]&&(teg||eD===eg&&(!W||eB>=ey)?(N.current.tb=!0,ev=ez,eh.points=[A(ef,0),A(eu,0)]):N.current.tb=!1}var eV=ej(eM),eX=ef[1]===eu[1];if(eV&&"l"===ef[1]&&(s>q.right||N.current.rl)){var eH=em;eX?eH-=z-B:eH=ek.x-eE.x-et;var eW=e2(eH,ev),eI=e2(eH,ev,Y);eW>eg||eW===eg&&(!W||eI>=ey)?(N.current.rl=!0,em=eH,eh.points=[A(ef,1),A(eu,1)]):N.current.rl=!1}if(eV&&"r"===ef[1]&&(ieg||eF===eg&&(!W||eG>=ey)?(N.current.lr=!0,em=eY,eh.points=[A(ef,1),A(eu,1)]):N.current.lr=!1}e8();var eQ=!0===eA?0:eA;"number"==typeof eQ&&(iY.right&&(em-=s-Y.right,e.x>Y.right-eQ&&(em+=e.x-Y.right+eQ)));var eJ=!0===eS?0:eS;"number"==typeof eJ&&(tY.bottom&&(ev-=n-Y.bottom,e.y>Y.bottom-eJ&&(ev+=e.y-Y.bottom+eJ)));var eU=m.x+em,eK=m.y+ev,e0=e.x,e1=e.y;null==eC||eC(eq,eh),$({ready:!0,offsetX:em/G,offsetY:ev/Q,arrowX:((Math.max(eU,e0)+Math.min(eU+z,e0+B))/2-eU)/G,arrowY:((Math.max(eK,e1)+Math.min(eK+L,e1+D))/2-eK)/Q,scaleX:G,scaleY:Q,align:eh})}function e2(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F,o=m.x+e,r=m.y+t,i=Math.max(o,n.left),a=Math.max(r,n.top);return Math.max(0,(Math.min(o+z,n.right)-i)*(Math.min(r+L,n.bottom)-a))}function e8(){n=(t=m.y+ev)+L,s=(i=m.x+em)+z}}}),z=function(){$(function(e){return(0,o.Z)((0,o.Z)({},e),{},{ready:!1})})},(0,h.Z)(z,[eb]),(0,h.Z)(function(){tn||z()},[tn]),[Z.ready,Z.offsetX,Z.offsetY,Z.arrowX,Z.arrowY,Z.scaleX,Z.scaleY,Z.align,function(){T.current+=1;var e=T.current;Promise.resolve().then(function(){T.current===e&&L()})}]),tx=(0,r.Z)(tk,9),tO=tx[0],tE=tx[1],tZ=tx[2],tC=tx[3],tM=tx[4],tR=tx[5],tA=tx[6],tS=tx[7],tj=tx[8],t$=(0,p.Z)(function(){tf||tj()});(0,h.Z)(function(){if(tn&&eK&&eq){var e=k(eK),t=k(eq),n=_(eq),o=new Set([n].concat((0,S.Z)(e),(0,S.Z)(t)));function r(){t$()}return o.forEach(function(e){e.addEventListener("scroll",r,{passive:!0})}),n.addEventListener("resize",r,{passive:!0}),t$(),function(){o.forEach(function(e){e.removeEventListener("scroll",r),n.removeEventListener("resize",r)})}}},[tn,eK,eq]),(0,h.Z)(function(){t$()},[ty,eb]),(0,h.Z)(function(){tn&&!(null!=ew&&ew[eb])&&t$()},[JSON.stringify(e_)]);var tT=v.useMemo(function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}(null===(s=e[l])||void 0===s?void 0:s.points,r,o))return"".concat(t,"-placement-").concat(l)}return""}(ew,G,tS,eE);return l()(e,null==eO?void 0:eO(tS))},[tS,eO,ew,G,eE]);v.useImperativeHandle(n,function(){return{forceAlign:t$}}),(0,h.Z)(function(){tm&&(tj(),tm(),tv(null))},[tm]);var tP=v.useState(0),tN=(0,r.Z)(tP,2),tL=tN[0],tz=tN[1],tD=v.useState(0),tB=(0,r.Z)(tD,2),tV=tB[0],tX=tB[1],tH=(X=void 0===J?"hover":J,v.useMemo(function(){var e=b(null!=U?U:X),t=b(null!=K?K:X),n=new Set(e),o=new Set(t);return eB&&(n.has("hover")&&(n.delete("hover"),n.add("click")),o.has("hover")&&(o.delete("hover"),o.add("click"))),[n,o]},[eB,X,U,K])),tW=(0,r.Z)(tH,2),tI=tW[0],tY=tW[1],tF=function(e,t,n,o){e5[e]=function(r){var i;null==o||o(r),tl(t,n);for(var a=arguments.length,s=Array(a>1?a-1:0),l=1;l1?n-1:0),r=1;r1?n-1:0),r=1;r{let i=e/2,a=1*n/Math.sqrt(2),s=i-n*(1-1/Math.sqrt(2)),l=i-t*(1/Math.sqrt(2)),c=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),u=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),f=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${f}px 100%, 50% ${f}px, ${2*i-f}px 100%, ${f}px 100%)`,`path('M 0 ${i} A ${n} ${n} 0 0 0 ${a} ${s} L ${l} ${c} A ${t} ${t} 0 0 1 ${2*i-l} ${c} L ${2*i-a} ${s} A ${n} ${n} 0 0 0 ${2*i-0} ${i} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:u,height:u,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},r=8;function i(e){let{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{dropdownArrowOffset:o,dropdownArrowOffsetVertical:n?r:o}}function a(e,t){var n,r,a,s,l,c,u,f;let{componentCls:p,sizePopupArrow:d,borderRadiusXS:h,borderRadiusOuter:m,boxShadowPopoverArrow:v}=e,{colorBg:g,contentRadius:b=e.borderRadiusLG,limitVerticalRadius:y,arrowDistance:w=0,arrowPlacement:_={left:!0,right:!0,top:!0,bottom:!0}}=t,{dropdownArrowOffsetVertical:k,dropdownArrowOffset:x}=i({contentRadius:b,limitVerticalRadius:y});return{[p]:Object.assign(Object.assign(Object.assign(Object.assign({[`${p}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},o(d,h,m,g,v)),{"&:before":{background:g}})]},(n=!!_.top,r={[`&-placement-top ${p}-arrow,&-placement-topLeft ${p}-arrow,&-placement-topRight ${p}-arrow`]:{bottom:w,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${p}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${p}-arrow`]:{left:{_skip_check_:!0,value:x}},[`&-placement-topRight ${p}-arrow`]:{right:{_skip_check_:!0,value:x}}},n?r:{})),(a=!!_.bottom,s={[`&-placement-bottom ${p}-arrow,&-placement-bottomLeft ${p}-arrow,&-placement-bottomRight ${p}-arrow`]:{top:w,transform:"translateY(-100%)"},[`&-placement-bottom ${p}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${p}-arrow`]:{left:{_skip_check_:!0,value:x}},[`&-placement-bottomRight ${p}-arrow`]:{right:{_skip_check_:!0,value:x}}},a?s:{})),(l=!!_.left,c={[`&-placement-left ${p}-arrow,&-placement-leftTop ${p}-arrow,&-placement-leftBottom ${p}-arrow`]:{right:{_skip_check_:!0,value:w},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${p}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${p}-arrow`]:{top:k},[`&-placement-leftBottom ${p}-arrow`]:{bottom:k}},l?c:{})),(u=!!_.right,f={[`&-placement-right ${p}-arrow,&-placement-rightTop ${p}-arrow,&-placement-rightBottom ${p}-arrow`]:{left:{_skip_check_:!0,value:w},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${p}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${p}-arrow`]:{top:k},[`&-placement-rightBottom ${p}-arrow`]:{bottom:k}},u?f:{}))}}},83688:function(e,t,n){n.d(t,{i:function(){return o}});let o=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},15241:function(e,t,n){n.d(t,{Z:function(){return I}});var o=n(8683),r=n.n(o),i=n(99753),a=n(63940),s=n(86006),l=n(80716),c=n(20798);let u={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},f={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},p=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);var d=n(52593),h=n(79746),m=n(12381),v=n(11717),g=n(47794),b=n(99528),y=n(85207),w=n(31508),_=n(33058),k=n(89931),x=n(70333),O=n(41433),E=n(57389);let Z=(e,t)=>new E.C(e).setAlpha(t).toRgbString(),C=(e,t)=>{let n=new E.C(e);return n.lighten(t).toHexString()},M=e=>{let t=(0,x.R_)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},R=(e,t)=>{let n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:Z(o,.85),colorTextSecondary:Z(o,.65),colorTextTertiary:Z(o,.45),colorTextQuaternary:Z(o,.25),colorFill:Z(o,.18),colorFillSecondary:Z(o,.12),colorFillTertiary:Z(o,.08),colorFillQuaternary:Z(o,.04),colorBgElevated:C(n,12),colorBgContainer:C(n,8),colorBgLayout:C(n,0),colorBgSpotlight:C(n,26),colorBorder:C(n,26),colorBorderSecondary:C(n,19)}};var A={defaultConfig:w.u_,defaultSeed:w.u_.token,useToken:function(){let[e,t,n]=(0,w.dQ)();return{theme:e,token:t,hashId:n}},defaultAlgorithm:g.Z,darkAlgorithm:(e,t)=>{let n=Object.keys(b.M).map(t=>{let n=(0,x.R_)(e[t],{theme:"dark"});return Array(10).fill(1).reduce((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{}),o=null!=t?t:(0,g.Z)(e);return Object.assign(Object.assign(Object.assign({},o),n),(0,O.Z)(e,{generateColorPalettes:M,generateNeutralColorPalettes:R}))},compactAlgorithm:(e,t)=>{let n=null!=t?t:(0,g.Z)(e),o=n.fontSizeSM,r=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){let{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}(null!=t?t:e)),(0,k.Z)(o)),{controlHeight:r}),(0,_.Z)(Object.assign(Object.assign({},n),{controlHeight:r})))},getDesignToken:e=>{let t=(null==e?void 0:e.algorithm)?(0,v.jG)(e.algorithm):(0,v.jG)(g.Z),n=Object.assign(Object.assign({},b.Z),null==e?void 0:e.token);return(0,v.t2)(n,{override:null==e?void 0:e.token},t,y.Z)}},S=n(98663),j=n(87270),$=n(83688),T=n(70721),P=n(40650);let N=e=>{var t;let{componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:u,paddingSM:f,paddingXS:p,tooltipRadiusOuter:d}=e;return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,S.Wf)(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:o,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:l,minHeight:l,padding:`${f/2}px ${p}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:u,boxSizing:"border-box"},"&-placement-left,&-placement-leftTop,&-placement-leftBottom,&-placement-right,&-placement-rightTop,&-placement-rightBottom":{[`${n}-inner`]:{borderRadius:Math.min(a,c.qN)}},[`${n}-content`]:{position:"relative"}}),(t=(e,t)=>{let{darkColor:o}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:o},[`${n}-arrow`]:{"--antd-arrow-background-color":o}}}},$.i.reduce((n,o)=>{let r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],s=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:s}))},{}))),{"&-rtl":{direction:"rtl"}})},(0,c.ZP)((0,T.TS)(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:a,limitVerticalRadius:!0}),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]};var L=(e,t)=>{let n=(0,P.Z)("Tooltip",e=>{if(!1===t)return[];let{borderRadius:n,colorTextLightSolid:o,colorBgDefault:r,borderRadiusOuter:i}=e,a=(0,T.TS)(e,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:r,tooltipRadiusOuter:i>4?4:i});return[N(a),(0,j._y)(e,"zoom-big-fast")]},e=>{let{zIndexPopupBase:t,colorBgSpotlight:n}=e;return{zIndexPopup:t+70,colorBgDefault:n}},{resetStyle:!1});return n(e)},z=n(90151);let D=$.i.map(e=>`${e}-inverse`);function B(e,t){let n=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t?[].concat((0,z.Z)(D),(0,z.Z)($.i)).includes(e):$.i.includes(e)}(t),o=r()({[`${e}-${t}`]:t&&n}),i={},a={};return t&&!n&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:o,overlayStyle:i,arrowStyle:a}}var V=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let{useToken:X}=A,H=(e,t)=>{let n={},o=Object.assign({},e);return t.forEach(t=>{e&&t in e&&(n[t]=e[t],delete o[t])}),{picked:n,omitted:o}},W=s.forwardRef((e,t)=>{var n,o;let{prefixCls:v,openClassName:g,getTooltipContainer:b,overlayClassName:y,color:w,overlayInnerStyle:_,children:k,afterOpenChange:x,afterVisibleChange:O,destroyTooltipOnHide:E,arrow:Z=!0,title:C,overlay:M,builtinPlacements:R,arrowPointAtCenter:A=!1,autoAdjustOverflow:S=!0}=e,j=!!Z,{token:$}=X(),{getPopupContainer:T,getPrefixCls:P,direction:N}=s.useContext(h.E_),z=s.useRef(null),D=()=>{var e;null===(e=z.current)||void 0===e||e.forceAlign()};s.useImperativeHandle(t,()=>({forceAlign:D,forcePopupAlign:()=>{D()}}));let[W,I]=(0,a.Z)(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(o=e.defaultOpen)&&void 0!==o?o:e.defaultVisible}),Y=!C&&!M&&0!==C,F=s.useMemo(()=>{var e,t;let n=A;return"object"==typeof Z&&(n=null!==(t=null!==(e=Z.pointAtCenter)&&void 0!==e?e:Z.arrowPointAtCenter)&&void 0!==t?t:A),R||function(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(u).forEach(e=>{let d=o&&f[e]||u[e],h=Object.assign(Object.assign({},d),{offset:[0,0]});switch(l[e]=h,p.has(e)&&(h.autoArrow=!1),e){case"top":case"topLeft":case"topRight":h.offset[1]=-s-r;break;case"bottom":case"bottomLeft":case"bottomRight":h.offset[1]=s+r;break;case"left":case"leftTop":case"leftBottom":h.offset[0]=-s-r;break;case"right":case"rightTop":case"rightBottom":h.offset[0]=s+r}let m=(0,c.fS)({contentRadius:i,limitVerticalRadius:!0});if(o)switch(e){case"topLeft":case"bottomLeft":h.offset[0]=-m.dropdownArrowOffset-s;break;case"topRight":case"bottomRight":h.offset[0]=m.dropdownArrowOffset+s;break;case"leftTop":case"rightTop":h.offset[1]=-m.dropdownArrowOffset-s;break;case"leftBottom":case"rightBottom":h.offset[1]=m.dropdownArrowOffset+s}h.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};let r=o&&"object"==typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.dropdownArrowOffset+n;break;case"left":case"right":i.shiftY=2*t.dropdownArrowOffsetVertical+n}let a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,m,t,n),a&&(h.htmlRegion="visibleFirst")}),l}({arrowPointAtCenter:n,autoAdjustOverflow:S,arrowWidth:j?$.sizePopupArrow:0,borderRadius:$.borderRadius,offset:$.marginXXS,visibleFirst:!0})},[A,Z,R,$]),q=s.useMemo(()=>0===C?C:M||C||"",[M,C]),G=s.createElement(m.BR,null,"function"==typeof q?q():q),{getPopupContainer:Q,placement:J="top",mouseEnterDelay:U=.1,mouseLeaveDelay:K=.1,overlayStyle:ee,rootClassName:et}=e,en=V(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),eo=P("tooltip",v),er=P(),ei=e["data-popover-inject"],ea=W;"open"in e||"visible"in e||!Y||(ea=!1);let es=function(e,t){let n=e.type;if((!0===n.__ANT_BUTTON||"button"===e.type)&&e.props.disabled||!0===n.__ANT_SWITCH&&(e.props.disabled||e.props.loading)||!0===n.__ANT_RADIO&&e.props.disabled){let{picked:n,omitted:o}=H(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=Object.assign(Object.assign({display:"inline-block"},n),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),a=Object.assign(Object.assign({},o),{pointerEvents:"none"}),l=(0,d.Tm)(e,{style:a,className:null});return s.createElement("span",{style:i,className:r()(e.props.className,`${t}-disabled-compatible-wrapper`)},l)}return e}((0,d.l$)(k)&&!(0,d.M2)(k)?k:s.createElement("span",null,k),eo),el=es.props,ec=el.className&&"string"!=typeof el.className?el.className:r()(el.className,{[g||`${eo}-open`]:!0}),[eu,ef]=L(eo,!ei),ep=B(eo,w),ed=Object.assign(Object.assign({},_),ep.overlayStyle),eh=ep.arrowStyle,em=r()(y,{[`${eo}-rtl`]:"rtl"===N},ep.className,et,ef);return eu(s.createElement(i.Z,Object.assign({},en,{showArrow:j,placement:J,mouseEnterDelay:U,mouseLeaveDelay:K,prefixCls:eo,overlayClassName:em,overlayStyle:Object.assign(Object.assign({},eh),ee),getTooltipContainer:Q||b||T,ref:z,builtinPlacements:F,overlay:G,visible:ea,onVisibleChange:t=>{var n,o;I(!Y&&t),Y||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!=x?x:O,overlayInnerStyle:ed,arrowContent:s.createElement("span",{className:`${eo}-arrow-content`}),motion:{motionName:(0,l.mL)(er,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!E}),ea?(0,d.Tm)(es,{className:ec}):es))});W._InternalPanelDoNotUseOrYouWillBeFired=function(e){let{prefixCls:t,className:n,placement:o="top",title:a,color:l,overlayInnerStyle:c}=e,{getPrefixCls:u}=s.useContext(h.E_),f=u("tooltip",t),[p,d]=L(f,!0),m=B(f,l),v=Object.assign(Object.assign({},c),m.overlayStyle),g=m.arrowStyle;return p(s.createElement("div",{className:r()(d,f,`${f}-pure`,`${f}-placement-${o}`,n,m.className),style:g},s.createElement("div",{className:`${f}-arrow`}),s.createElement(i.G,Object.assign({},e,{className:d,prefixCls:f,overlayInnerStyle:v}),a)))};var I=W},29333:function(e,t,n){n.d(t,{Z:function(){return D}});var o=n(40431),r=n(86006),i=n(25912);n(5004);var a=n(88684),s=n(92510),l=n(49175),c=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,o){return e[0]===t&&(n=o,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n0},e.prototype.connect_=function(){u&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){u&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;d.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),v=function(e,t){for(var n=0,o=Object.keys(t);n0},e}(),Z="undefined"!=typeof WeakMap?new WeakMap:new c,C=function e(t){if(!(this instanceof e))throw TypeError("Cannot call a class as a function.");if(!arguments.length)throw TypeError("1 argument required, but only 0 present.");var n=m.getInstance(),o=new E(t,n,this);Z.set(this,o)};["observe","unobserve","disconnect"].forEach(function(e){C.prototype[e]=function(){var t;return(t=Z.get(this))[e].apply(t,arguments)}});var M=void 0!==f.ResizeObserver?f.ResizeObserver:C,R=new Map,A=new M(function(e){e.forEach(function(e){var t,n=e.target;null===(t=R.get(n))||void 0===t||t.forEach(function(e){return e(n)})})}),S=n(18050),j=n(49449),$=n(43663),T=n(38340),P=function(e){(0,$.Z)(n,e);var t=(0,T.Z)(n);function n(){return(0,S.Z)(this,n),t.apply(this,arguments)}return(0,j.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component),N=r.createContext(null),L=r.forwardRef(function(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),c=r.useRef(null),u=r.useContext(N),f="function"==typeof n,p=f?n(i):n,d=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!f&&r.isValidElement(p)&&(0,s.Yr)(p),m=h?p.ref:null,v=r.useMemo(function(){return(0,s.sQ)(m,i)},[m,i]),g=function(){return(0,l.Z)(i.current)||(0,l.Z)(c.current)};r.useImperativeHandle(t,function(){return g()});var b=r.useRef(e);b.current=e;var y=r.useCallback(function(e){var t=b.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,s=r.height,l=e.offsetWidth,c=e.offsetHeight,f=Math.floor(i),p=Math.floor(s);if(d.current.width!==f||d.current.height!==p||d.current.offsetWidth!==l||d.current.offsetHeight!==c){var h={width:f,height:p,offsetWidth:l,offsetHeight:c};d.current=h;var m=l===Math.round(i)?i:l,v=c===Math.round(s)?s:c,g=(0,a.Z)((0,a.Z)({},h),{},{offsetWidth:m,offsetHeight:v});null==u||u(g,e,o),n&&Promise.resolve().then(function(){n(g,e)})}},[]);return r.useEffect(function(){var e=g();return e&&!o&&(R.has(e)||(R.set(e,new Set),A.observe(e)),R.get(e).add(y)),function(){R.has(e)&&(R.get(e).delete(y),R.get(e).size||(A.unobserve(e),R.delete(e)))}},[i.current,o]),r.createElement(P,{ref:c},h?r.cloneElement(p,{ref:v}):p)}),z=r.forwardRef(function(e,t){var n=e.children;return("function"==typeof n?[n]:(0,i.Z)(n)).map(function(n,i){var a=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(i);return r.createElement(L,(0,o.Z)({},e,{key:a,ref:0===i?t:void 0}),n)})});z.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(N),s=r.useCallback(function(e,t,r){o.current+=1;var s=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then(function(){s===o.current&&(null==n||n(i.current),i.current=[])}),null==a||a(e,t,r)},[n,a]);return r.createElement(N.Provider,{value:s},t)};var D=z},99753:function(e,t,n){n.d(t,{G:function(){return h},Z:function(){return v}});var o=n(40431),r=n(88684),i=n(89301),a=n(90214),s=n(86006),l={shiftX:64,adjustY:1},c={adjustX:1,shiftY:!0},u=[0,0],f={left:{points:["cr","cl"],overflow:c,offset:[-4,0],targetOffset:u},right:{points:["cl","cr"],overflow:c,offset:[4,0],targetOffset:u},top:{points:["bc","tc"],overflow:l,offset:[0,-4],targetOffset:u},bottom:{points:["tc","bc"],overflow:l,offset:[0,4],targetOffset:u},topLeft:{points:["bl","tl"],overflow:l,offset:[0,-4],targetOffset:u},leftTop:{points:["tr","tl"],overflow:c,offset:[-4,0],targetOffset:u},topRight:{points:["br","tr"],overflow:l,offset:[0,-4],targetOffset:u},rightTop:{points:["tl","tr"],overflow:c,offset:[4,0],targetOffset:u},bottomRight:{points:["tr","br"],overflow:l,offset:[0,4],targetOffset:u},rightBottom:{points:["bl","br"],overflow:c,offset:[4,0],targetOffset:u},bottomLeft:{points:["tl","bl"],overflow:l,offset:[0,4],targetOffset:u},leftBottom:{points:["br","bl"],overflow:c,offset:[-4,0],targetOffset:u}},p=n(8683),d=n.n(p);function h(e){var t=e.children,n=e.prefixCls,o=e.id,r=e.overlayInnerStyle,i=e.className,a=e.style;return s.createElement("div",{className:d()("".concat(n,"-content"),i),style:a},s.createElement("div",{className:"".concat(n,"-inner"),id:o,role:"tooltip",style:r},"function"==typeof t?t():t))}var m=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],v=(0,s.forwardRef)(function(e,t){var n=e.overlayClassName,l=e.trigger,c=e.mouseEnterDelay,u=e.mouseLeaveDelay,p=e.overlayStyle,d=e.prefixCls,v=void 0===d?"rc-tooltip":d,g=e.children,b=e.onVisibleChange,y=e.afterVisibleChange,w=e.transitionName,_=e.animation,k=e.motion,x=e.placement,O=e.align,E=e.destroyTooltipOnHide,Z=e.defaultVisible,C=e.getTooltipContainer,M=e.overlayInnerStyle,R=(e.arrowContent,e.overlay),A=e.id,S=e.showArrow,j=(0,i.Z)(e,m),$=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,function(){return $.current});var T=(0,r.Z)({},j);return"visible"in e&&(T.popupVisible=e.visible),s.createElement(a.Z,(0,o.Z)({popupClassName:n,prefixCls:v,popup:function(){return s.createElement(h,{key:"content",prefixCls:v,id:A,overlayInnerStyle:M},R)},action:void 0===l?["hover"]:l,builtinPlacements:f,popupPlacement:void 0===x?"right":x,ref:$,popupAlign:void 0===O?{}:O,getPopupContainer:C,onPopupVisibleChange:b,afterPopupVisibleChange:y,popupTransitionName:w,popupAnimation:_,popupMotion:k,defaultPopupVisible:Z,autoDestroy:void 0!==E&&E,mouseLeaveDelay:void 0===u?.1:u,popupStyle:p,mouseEnterDelay:void 0===c?0:c,arrow:void 0===S||S},T),g)})},98861:function(e,t){t.Z=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/2-a60cf38d8ab305bb.js b/pilot/server/static/_next/static/chunks/2-a60cf38d8ab305bb.js deleted file mode 100644 index 6f2e6fe07..000000000 --- a/pilot/server/static/_next/static/chunks/2-a60cf38d8ab305bb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2],{95131:function(i,o,e){e.d(o,{Z:function(){return l}});var a=e(40431),n=e(86006),t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},r=e(1240),l=n.forwardRef(function(i,o){return n.createElement(r.Z,(0,a.Z)({},i,{ref:o,icon:t}))})},29382:function(i,o,e){var a=e(78997);o.Z=void 0;var n=a(e(76906)),t=e(9268),r=(0,n.default)([(0,t.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,t.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");o.Z=r},74852:function(i,o,e){var a=e(78997);o.Z=void 0;var n=a(e(76906)),t=e(9268),r=(0,n.default)((0,t.jsx)("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3zM12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"}),"WarningRounded");o.Z=r},50318:function(i,o,e){e.d(o,{Z:function(){return M}});var a=e(46750),n=e(40431),t=e(86006),r=e(89791),l=e(53832),d=e(47562),s=e(50645),c=e(88930),u=e(18587);function v(i){return(0,u.d6)("MuiDivider",i)}(0,u.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var g=e(326),p=e(9268);let m=["className","children","component","inset","orientation","role","slots","slotProps"],f=i=>{let{orientation:o,inset:e}=i,a={root:["root",o,e&&`inset${(0,l.Z)(e)}`]};return(0,d.Z)(a,v,{})},h=(0,s.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,o)=>o.root})(({theme:i,ownerState:o})=>(0,n.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===o.inset&&{"--_Divider-inset":"0px"},"context"===o.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===o.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===o.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},o.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===o.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===o.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===o.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===o.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===o.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===o.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===o.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===o.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===o.orientation?"initial":"var(--Divider-thickness)"})),D=t.forwardRef(function(i,o){let e=(0,c.Z)({props:i,name:"JoyDivider"}),{className:t,children:l,component:d=null!=l?"div":"hr",inset:s,orientation:u="horizontal",role:v="hr"!==d?"separator":void 0,slots:D={},slotProps:M={}}=e,y=(0,a.Z)(e,m),b=(0,n.Z)({},e,{inset:s,role:v,orientation:u,component:d}),x=f(b),S=(0,n.Z)({},y,{component:d,slots:D,slotProps:M}),[Z,C]=(0,g.Z)("root",{ref:o,className:(0,r.Z)(x.root,t),elementType:h,externalForwardedProps:S,ownerState:b,additionalProps:(0,n.Z)({as:d,role:v},"separator"===v&&"vertical"===u&&{"aria-orientation":"vertical"})});return(0,p.jsx)(Z,(0,n.Z)({},C,{children:l}))});D.muiName="Divider";var M=D},30530:function(i,o,e){e.d(o,{Z:function(){return Z}});var a=e(46750),n=e(40431),t=e(86006),r=e(89791),l=e(47562),d=e(53832),s=e(44542),c=e(50645),u=e(88930),v=e(47093),g=e(5737),p=e(18587);function m(i){return(0,p.d6)("MuiModalDialog",i)}(0,p.sI)("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]);var f=e(66752),h=e(69586),D=e(326),M=e(9268);let y=["className","children","color","component","variant","size","layout","slots","slotProps"],b=i=>{let{variant:o,color:e,size:a,layout:n}=i,t={root:["root",o&&`variant${(0,d.Z)(o)}`,e&&`color${(0,d.Z)(e)}`,a&&`size${(0,d.Z)(a)}`,n&&`layout${(0,d.Z)(n)}`]};return(0,l.Z)(t,m,{})},x=(0,c.Z)(g.U,{name:"JoyModalDialog",slot:"Root",overridesResolver:(i,o)=>o.root})(({theme:i,ownerState:o})=>(0,n.Z)({"--Divider-inset":"calc(-1 * var(--ModalDialog-padding))","--ModalClose-radius":"max((var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===o.size&&{"--ModalDialog-padding":i.spacing(2),"--ModalDialog-radius":i.vars.radius.sm,"--ModalDialog-gap":i.spacing(.75),"--ModalDialog-titleOffset":i.spacing(.25),"--ModalDialog-descriptionOffset":i.spacing(.25),"--ModalClose-inset":i.spacing(1.25),fontSize:i.vars.fontSize.sm},"md"===o.size&&{"--ModalDialog-padding":i.spacing(2.5),"--ModalDialog-radius":i.vars.radius.md,"--ModalDialog-gap":i.spacing(1.5),"--ModalDialog-titleOffset":i.spacing(.25),"--ModalDialog-descriptionOffset":i.spacing(.75),"--ModalClose-inset":i.spacing(1.5),fontSize:i.vars.fontSize.md},"lg"===o.size&&{"--ModalDialog-padding":i.spacing(3),"--ModalDialog-radius":i.vars.radius.md,"--ModalDialog-gap":i.spacing(2),"--ModalDialog-titleOffset":i.spacing(.75),"--ModalDialog-descriptionOffset":i.spacing(1),"--ModalClose-inset":i.spacing(1.5),fontSize:i.vars.fontSize.lg},{boxSizing:"border-box",boxShadow:i.shadow.md,borderRadius:"var(--ModalDialog-radius)",fontFamily:i.vars.fontFamily.body,lineHeight:i.vars.lineHeight.md,padding:"var(--ModalDialog-padding)",minWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-minWidth, 300px))",outline:0,position:"absolute",display:"flex",flexDirection:"column"},"fullscreen"===o.layout&&{top:0,left:0,right:0,bottom:0,border:0,borderRadius:0},"center"===o.layout&&{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-maxWidth, 100vw))",maxHeight:"calc(100% - 2 * var(--ModalDialog-padding))"},{[`& [id="${o["aria-labelledby"]}"]`]:{"--Typography-margin":"calc(-1 * var(--ModalDialog-titleOffset)) 0 var(--ModalDialog-gap) 0","--Typography-fontSize":"1.125em",[`& + [id="${o["aria-describedby"]}"]`]:{"--unstable_ModalDialog-descriptionOffset":"calc(-1 * var(--ModalDialog-descriptionOffset))"}},[`& [id="${o["aria-describedby"]}"]`]:{"--Typography-fontSize":"1em","--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 0 0","&:not(:last-child)":{"--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 var(--ModalDialog-gap) 0"}}})),S=t.forwardRef(function(i,o){let e=(0,u.Z)({props:i,name:"JoyModalDialog"}),{className:l,children:d,color:c="neutral",component:g="div",variant:p="outlined",size:m="md",layout:S="center",slots:Z={},slotProps:C={}}=e,z=(0,a.Z)(e,y),{getColor:$}=(0,v.VT)(p),k=$(i.color,c),E=(0,n.Z)({},e,{color:k,component:g,layout:S,size:m,variant:p}),P=b(E),O=(0,n.Z)({},z,{component:g,slots:Z,slotProps:C}),w=t.useMemo(()=>({variant:p,color:"context"===k?void 0:k}),[k,p]),[T,R]=(0,D.Z)("root",{ref:o,className:(0,r.Z)(P.root,l),elementType:x,externalForwardedProps:O,ownerState:E,additionalProps:{as:g,role:"dialog","aria-modal":"true"}});return(0,M.jsx)(f.Z.Provider,{value:m,children:(0,M.jsx)(h.Z.Provider,{value:w,children:(0,M.jsx)(T,(0,n.Z)({},R,{children:t.Children.map(d,i=>{if(!t.isValidElement(i))return i;if((0,s.Z)(i,["Divider"])){let o={};return o.inset="inset"in i.props?i.props.inset:"context",t.cloneElement(i,o)}return i})}))})})});var Z=S},66752:function(i,o,e){var a=e(86006);let n=a.createContext(void 0);o.Z=n},69586:function(i,o,e){var a=e(86006);let n=a.createContext(void 0);o.Z=n},3146:function(i,o,e){e.d(o,{Z:function(){return n}});var a=e(86006);function n(){let[,i]=a.useReducer(i=>i+1,0);return i}},6783:function(i,o,e){var a=e(86006),n=e(67044),t=e(91295);o.Z=(i,o)=>{let e=a.useContext(n.Z),r=a.useMemo(()=>{var a;let n=o||t.Z[i],r=null!==(a=null==e?void 0:e[i])&&void 0!==a?a:{};return Object.assign(Object.assign({},"function"==typeof n?n():n),r||{})},[i,o,e]),l=a.useMemo(()=>{let i=null==e?void 0:e.locale;return(null==e?void 0:e.exist)&&!i?t.Z.locale:i},[e]);return[r,l]}},75872:function(i,o,e){e.d(o,{c:function(){return a}});function a(i){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:e}=i,a=`${e}-compact`;return{[a]:Object.assign(Object.assign({},function(i,o,e){let{focusElCls:a,focus:n,borderElCls:t}=e,r=t?"> *":"",l=["hover",n?"focus":null,"active"].filter(Boolean).map(i=>`&:${i} ${r}`).join(",");return{[`&-item:not(${o}-last-item)`]:{marginInlineEnd:-i.lineWidth},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},a?{[`&${a}`]:{zIndex:2}}:{}),{[`&[disabled] ${r}`]:{zIndex:0}})}}(i,a,o)),function(i,o,e){let{borderElCls:a}=e,n=a?`> ${a}`:"";return{[`&-item:not(${o}-first-item):not(${o}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${o}-last-item)${o}-first-item`]:{[`& ${n}, &${i}-sm ${n}, &${i}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${o}-first-item)${o}-last-item`]:{[`& ${n}, &${i}-sm ${n}, &${i}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(e,a,o))}}},73234:function(i,o,e){e.d(o,{Z:function(){return n}});var a=e(88684);function n(i,o){var e=(0,a.Z)({},i);return Array.isArray(o)&&o.forEach(function(i){delete e[i]}),e}},42442:function(i,o,e){e.d(o,{Z:function(){return r}});var a=e(88684),n="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function t(i,o){return 0===i.indexOf(o)}function r(i){var o,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o=!1===e?{aria:!0,data:!0,attr:!0}:!0===e?{aria:!0}:(0,a.Z)({},e);var r={};return Object.keys(i).forEach(function(e){(o.aria&&("role"===e||t(e,"aria-"))||o.data&&t(e,"data-")||o.attr&&n.includes(e))&&(r[e]=i[e])}),r}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/207-2d692c761ec68010.js b/pilot/server/static/_next/static/chunks/207-2d692c761ec68010.js deleted file mode 100644 index a0f0d9691..000000000 --- a/pilot/server/static/_next/static/chunks/207-2d692c761ec68010.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[207],{95131:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(40431),o=n(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))})},44334:function(e,t,n){n.d(t,{Z:function(){return x}});var r=n(46750),o=n(40431),i=n(86006),a=n(53832),l=n(47562),c=n(89791),s=n(88930),u=n(326),d=n(50645),p=n(13809);function m(e){return(0,p.Z)("MuiBreadcrumbs",e)}(0,n(88539).Z)("MuiBreadcrumbs",["root","ol","li","separator","sizeSm","sizeMd","sizeLg"]);var f=n(9268);let g=["children","className","size","separator","component","slots","slotProps"],h=e=>{let{size:t}=e,n={root:["root",t&&`size${(0,a.Z)(t)}`],li:["li"],ol:["ol"],separator:["separator"]};return(0,l.Z)(n,m,{})},v=(0,d.Z)("nav",{name:"JoyBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,o.Z)({},"sm"===t.size&&{"--Breadcrumbs-gap":"0.25rem",fontSize:e.vars.fontSize.sm,padding:"0.5rem"},"md"===t.size&&{"--Breadcrumbs-gap":"0.375rem",fontSize:e.vars.fontSize.md,padding:"0.75rem"},"lg"===t.size&&{"--Breadcrumbs-gap":"0.5rem",fontSize:e.vars.fontSize.lg,padding:"1rem"},{lineHeight:1})),b=(0,d.Z)("ol",{name:"JoyBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),S=(0,d.Z)("li",{name:"JoyBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({}),$=(0,d.Z)("li",{name:"JoyBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginInline:"var(--Breadcrumbs-gap)"}),y=i.forwardRef(function(e,t){let n=(0,s.Z)({props:e,name:"JoyBreadcrumbs"}),{children:a,className:l,size:d="md",separator:p="/",component:m,slots:y={},slotProps:x={}}=n,E=(0,r.Z)(n,g),w=(0,o.Z)({},n,{separator:p,size:d}),C=h(w),I=(0,o.Z)({},E,{component:m,slots:y,slotProps:x}),[O,Z]=(0,u.Z)("root",{ref:t,className:(0,c.Z)(C.root,l),elementType:v,externalForwardedProps:I,ownerState:w}),[R,k]=(0,u.Z)("ol",{className:C.ol,elementType:b,externalForwardedProps:I,ownerState:w}),[M,N]=(0,u.Z)("li",{className:C.li,elementType:S,externalForwardedProps:I,ownerState:w}),[z,P]=(0,u.Z)("separator",{additionalProps:{"aria-hidden":!0},className:C.separator,elementType:$,externalForwardedProps:I,ownerState:w}),T=i.Children.toArray(a).filter(e=>i.isValidElement(e)).map((e,t)=>(0,f.jsx)(M,(0,o.Z)({},N,{children:e}),`child-${t}`));return(0,f.jsx)(O,(0,o.Z)({},Z,{children:(0,f.jsx)(R,(0,o.Z)({},k,{children:T.reduce((e,t,n)=>(ne+1,0);return e}},29766:function(e,t,n){n.d(t,{Z:function(){return nm}});var r,o,i=n(40431),a=n(86006),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},c=n(1240),s=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:l}))}),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},d=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:u}))}),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},m=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:p}))}),f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},g=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:f}))}),h=n(8683),v=n.n(h),b=n(65877),S=n(88684),$=n(18050),y=n(49449),x=n(43663),E=n(38340),w=n(42442),C={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},I=function(e){(0,x.Z)(n,e);var t=(0,E.Z)(n);function n(){var e;(0,$.Z)(this,n);for(var r=arguments.length,o=Array(r),i=0;i=0||t.relatedTarget.className.indexOf("".concat(i,"-item"))>=0)||o(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===C.ENTER||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,y.Z)(n,[{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some(function(e){return e.toString()===t.toString()})?n:n.concat([t.toString()]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,o=t.rootPrefixCls,i=t.changeSize,l=t.quickGo,c=t.goButton,s=t.selectComponentClass,u=t.buildOptionText,d=t.selectPrefixCls,p=t.disabled,m=this.state.goInputText,f="".concat(o,"-options"),g=null,h=null,v=null;if(!i&&!l)return null;var b=this.getPageSizeOptions();if(i&&s){var S=b.map(function(t,n){return a.createElement(s.Option,{key:n,value:t.toString()},(u||e.buildOptionText)(t))});g=a.createElement(s,{disabled:p,prefixCls:d,showSearch:!1,className:"".concat(f,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(n||b[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":r.page_size,defaultOpen:!1},S)}return l&&(c&&(v="boolean"==typeof c?a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:p,className:"".concat(f,"-quick-jumper-button")},r.jump_to_confirm):a.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),h=a.createElement("div",{className:"".concat(f,"-quick-jumper")},r.jump_to,a.createElement("input",{disabled:p,type:"text",value:m,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,v)),a.createElement("li",{className:"".concat(f)},g,h)}}]),n}(a.Component);I.defaultProps={pageSizeOptions:["10","20","50","100"]};var O=function(e){var t,n=e.rootPrefixCls,r=e.page,o=e.active,i=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(n,"-item"),p=v()(d,"".concat(d,"-").concat(r),(t={},(0,b.Z)(t,"".concat(d,"-active"),o),(0,b.Z)(t,"".concat(d,"-disabled"),!r),(0,b.Z)(t,e.className,i),t));return a.createElement("li",{title:l?r.toString():null,className:p,onClick:function(){c(r)},onKeyPress:function(e){s(e,c,r)},tabIndex:0},u(r,"page",a.createElement("a",{rel:"nofollow"},r)))};function Z(){}function R(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function k(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var M=function(e){(0,x.Z)(n,e);var t=(0,E.Z)(n);function n(e){(0,$.Z)(this,n),(r=t.call(this,e)).paginationNode=a.createRef(),r.getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(k(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,o=e||a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(o=a.createElement(e,(0,S.Z)({},r.props))),o},r.isValid=function(e){var t=r.props.total;return R(e)&&e!==r.state.current&&R(t)&&t>0},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper;return!(e.total<=r.state.pageSize)&&t},r.handleKeyDown=function(e){(e.keyCode===C.ARROW_UP||e.keyCode===C.ARROW_DOWN)&&e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===C.ENTER?r.handleChange(t):e.keyCode===C.ARROW_UP?r.handleChange(t-1):e.keyCode===C.ARROW_DOWN&&r.handleChange(t+1)},r.handleBlur=function(e){var t=r.getValidValue(e);r.handleChange(t)},r.changePageSize=function(e){var t=r.state.current,n=k(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"!=typeof e||("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props,n=t.disabled,o=t.onChange,i=r.state,a=i.pageSize,l=i.current,c=i.currentInputValue;if(r.isValid(e)&&!n){var s=k(void 0,r.state,r.props),u=e;return e>s?u=s:e<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==c&&r.setState({currentInputValue:u}),o(u,a),u}return l},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current2?n-2:0),o=2;o=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.style,o=e.disabled,l=e.hideOnSinglePage,c=e.total,s=e.locale,u=e.showQuickJumper,d=e.showLessItems,p=e.showTitle,m=e.showTotal,f=e.simple,g=e.itemRender,h=e.showPrevNextJumpers,S=e.jumpPrevIcon,$=e.jumpNextIcon,y=e.selectComponentClass,x=e.selectPrefixCls,E=e.pageSizeOptions,C=this.state,Z=C.current,R=C.pageSize,M=C.currentInputValue;if(!0===l&&c<=R)return null;var N=k(void 0,this.state,this.props),z=[],P=null,T=null,H=null,D=null,j=null,B=u&&u.goButton,L=d?1:2,A=Z-1>0?Z-1:0,W=Z+1c?c:Z*R]));if(f)return B&&(j="boolean"==typeof B?a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},s.jump_to_confirm):a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},B),j=a.createElement("li",{title:p?"".concat(s.jump_to).concat(Z,"/").concat(N):null,className:"".concat(t,"-simple-pager")},j)),a.createElement("ul",(0,i.Z)({className:v()(t,"".concat(t,"-simple"),(0,b.Z)({},"".concat(t,"-disabled"),o),n),style:r,ref:this.paginationNode},_),V,a.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:v()("".concat(t,"-prev"),(0,b.Z)({},"".concat(t,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(A)),a.createElement("li",{title:p?"".concat(Z,"/").concat(N):null,className:"".concat(t,"-simple-pager")},a.createElement("input",{type:"text",value:M,disabled:o,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),a.createElement("span",{className:"".concat(t,"-slash")},"/"),N),a.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:v()("".concat(t,"-next"),(0,b.Z)({},"".concat(t,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(W)),j);if(N<=3+2*L){var K={locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:p,itemRender:g};N||z.push(a.createElement(O,(0,i.Z)({},K,{key:"noPager",page:1,className:"".concat(t,"-item-disabled")})));for(var F=1;F<=N;F+=1){var X=Z===F;z.push(a.createElement(O,(0,i.Z)({},K,{key:F,page:F,active:X})))}}else{var U=d?s.prev_3:s.prev_5,G=d?s.next_3:s.next_5;h&&(P=a.createElement("li",{title:p?U:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:v()("".concat(t,"-jump-prev"),(0,b.Z)({},"".concat(t,"-jump-prev-custom-icon"),!!S))},g(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(S,"prev page"))),T=a.createElement("li",{title:p?G:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:v()("".concat(t,"-jump-next"),(0,b.Z)({},"".concat(t,"-jump-next-custom-icon"),!!$))},g(this.getJumpNextPage(),"jump-next",this.getItemIcon($,"next page")))),D=a.createElement(O,{locale:s,last:!0,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:N,page:N,active:!1,showTitle:p,itemRender:g}),H=a.createElement(O,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:g});var Y=Math.max(1,Z-L),J=Math.min(Z+L,N);Z-1<=L&&(J=1+2*L),N-Z<=L&&(Y=N-2*L);for(var Q=Y;Q<=J;Q+=1){var q=Z===Q;z.push(a.createElement(O,{locale:s,rootPrefixCls:t,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Q,page:Q,active:q,showTitle:p,itemRender:g}))}Z-1>=2*L&&3!==Z&&(z[0]=(0,a.cloneElement)(z[0],{className:"".concat(t,"-item-after-jump-prev")}),z.unshift(P)),N-Z>=2*L&&Z!==N-2&&(z[z.length-1]=(0,a.cloneElement)(z[z.length-1],{className:"".concat(t,"-item-before-jump-next")}),z.push(T)),1!==Y&&z.unshift(H),J!==N&&z.push(D)}var ee=!this.hasPrev()||!N,et=!this.hasNext()||!N;return a.createElement("ul",(0,i.Z)({className:v()(t,n,(0,b.Z)({},"".concat(t,"-disabled"),o)),style:r,ref:this.paginationNode},_),V,a.createElement("li",{title:p?s.prev_page:null,onClick:this.prev,tabIndex:ee?null:0,onKeyPress:this.runIfEnterPrev,className:v()("".concat(t,"-prev"),(0,b.Z)({},"".concat(t,"-disabled"),ee)),"aria-disabled":ee},this.renderPrev(A)),z,a.createElement("li",{title:p?s.next_page:null,onClick:this.next,tabIndex:et?null:0,onKeyPress:this.runIfEnterNext,className:v()("".concat(t,"-next"),(0,b.Z)({},"".concat(t,"-disabled"),et)),"aria-disabled":et},this.renderNext(W)),a.createElement(I,{disabled:o,locale:s,rootPrefixCls:t,selectComponentClass:y,selectPrefixCls:x,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Z,pageSize:R,pageSizeOptions:E,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,o=k(e.pageSize,t,e);r=r>o?o:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(a.Component);M.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Z,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Z,locale:{items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var N=n(91219),z=n(79746),P=n(30069),T=n(3146),H=n(31508);let D=["xxl","xl","lg","md","sm","xs"],j=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),B=e=>{let t=[].concat(D).reverse();return t.forEach((n,r)=>{let o=n.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(e[i]<=e[a]))throw Error(`${i}<=${a} fails : !(${e[i]}<=${e[a]})`);if(r0)||void 0===arguments[0]||arguments[0],t=(0,a.useRef)({}),n=(0,T.Z)(),r=function(){let[,e]=(0,H.dQ)(),t=j(B(e));return a.useMemo(()=>{let e=new Map,n=-1,r={};return{matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},unregister(){Object.keys(t).forEach(e=>{let n=t[e],r=this.matchHandlers[n];null==r||r.mql.removeListener(null==r?void 0:r.listener)}),e.clear()},register(){Object.keys(t).forEach(e=>{let n=t[e],o=t=>{let{matches:n}=t;this.dispatch(Object.assign(Object.assign({},r),{[e]:n}))},i=window.matchMedia(n);i.addListener(o),this.matchHandlers[n]={mql:i,listener:o},o(i)})},responsiveMap:t}},[e])}();return(0,a.useEffect)(()=>{let o=r.subscribe(r=>{t.current=r,e&&n()});return()=>r.unsubscribe(o)},[]),t.current},A=n(6783),W=n(90151),_=n(60456),V=n(89301),K=n(965),F=n(63940),X=n(5004),U=n(38358),G=n(98861),Y=n(48580),J=n(92510),Q=a.createContext(null);function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=a.useRef(null),n=a.useRef(null);return a.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(r){(r||null===t.current)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var ee=n(35960),et=function(e){var t,n=e.className,r=e.customizeIcon,o=e.customizeIconProps,i=e.onMouseDown,l=e.onClick,c=e.children;return t="function"==typeof r?r(o):r,a.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),i&&i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==t?t:a.createElement("span",{className:v()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},c))},en=a.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=e.id,l=e.inputElement,c=e.disabled,s=e.tabIndex,u=e.autoFocus,d=e.autoComplete,p=e.editable,m=e.activeDescendantId,f=e.value,g=e.maxLength,h=e.onKeyDown,b=e.onMouseDown,$=e.onChange,y=e.onPaste,x=e.onCompositionStart,E=e.onCompositionEnd,w=e.open,C=e.attrs,I=l||a.createElement("input",null),O=I,Z=O.ref,R=O.props,k=R.onKeyDown,M=R.onChange,N=R.onMouseDown,z=R.onCompositionStart,P=R.onCompositionEnd,T=R.style;return(0,X.Kp)(!("maxLength"in I.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),I=a.cloneElement(I,(0,S.Z)((0,S.Z)((0,S.Z)({type:"search"},R),{},{id:i,ref:(0,J.sQ)(t,Z),disabled:c,tabIndex:s,autoComplete:d||"off",autoFocus:u,className:v()("".concat(o,"-selection-search-input"),null===(n=I)||void 0===n?void 0:null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":w,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":m},C),{},{value:p?f:"",maxLength:g,readOnly:!p,unselectable:p?null:"on",style:(0,S.Z)((0,S.Z)({},T),{},{opacity:p?null:0}),onKeyDown:function(e){h(e),k&&k(e)},onMouseDown:function(e){b(e),N&&N(e)},onChange:function(e){$(e),M&&M(e)},onCompositionStart:function(e){x(e),z&&z(e)},onCompositionEnd:function(e){E(e),P&&P(e)},onPaste:y}))});function er(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}en.displayName="Input";var eo="undefined"!=typeof window&&window.document&&window.document.documentElement;function ei(e){return["string","number"].includes((0,K.Z)(e))}function ea(e){var t=void 0;return e&&(ei(e.title)?t=e.title.toString():ei(e.label)&&(t=e.label.toString())),t}function el(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var ec=function(e){e.preventDefault(),e.stopPropagation()},es=function(e){var t,n,r=e.id,o=e.prefixCls,i=e.values,l=e.open,c=e.searchValue,s=e.autoClearSearchValue,u=e.inputRef,d=e.placeholder,p=e.disabled,m=e.mode,f=e.showSearch,g=e.autoFocus,h=e.autoComplete,S=e.activeDescendantId,$=e.tabIndex,y=e.removeIcon,x=e.maxTagCount,E=e.maxTagTextLength,C=e.maxTagPlaceholder,I=void 0===C?function(e){return"+ ".concat(e.length," ...")}:C,O=e.tagRender,Z=e.onToggleOpen,R=e.onRemove,k=e.onInputChange,M=e.onInputPaste,N=e.onInputKeyDown,z=e.onInputMouseDown,P=e.onInputCompositionStart,T=e.onInputCompositionEnd,H=a.useRef(null),D=(0,a.useState)(0),j=(0,_.Z)(D,2),B=j[0],L=j[1],A=(0,a.useState)(!1),W=(0,_.Z)(A,2),V=W[0],K=W[1],F="".concat(o,"-selection"),X=l||"multiple"===m&&!1===s||"tags"===m?c:"",U="tags"===m||"multiple"===m&&!1===s||f&&(l||V);function G(e,t,n,r,o){return a.createElement("span",{className:v()("".concat(F,"-item"),(0,b.Z)({},"".concat(F,"-item-disabled"),n)),title:ea(e)},a.createElement("span",{className:"".concat(F,"-item-content")},t),r&&a.createElement(et,{className:"".concat(F,"-item-remove"),onMouseDown:ec,onClick:o,customizeIcon:y},"\xd7"))}t=function(){L(H.current.scrollWidth)},n=[X],eo?a.useLayoutEffect(t,n):a.useEffect(t,n);var Y=a.createElement("div",{className:"".concat(F,"-search"),style:{width:B},onFocus:function(){K(!0)},onBlur:function(){K(!1)}},a.createElement(en,{ref:u,open:l,prefixCls:o,id:r,inputElement:null,disabled:p,autoFocus:g,autoComplete:h,editable:U,activeDescendantId:S,value:X,onKeyDown:N,onMouseDown:z,onChange:k,onPaste:M,onCompositionStart:P,onCompositionEnd:T,tabIndex:$,attrs:(0,w.Z)(e,!0)}),a.createElement("span",{ref:H,className:"".concat(F,"-search-mirror"),"aria-hidden":!0},X,"\xa0")),J=a.createElement(ee.Z,{prefixCls:"".concat(F,"-overflow"),data:i,renderItem:function(e){var t,n=e.disabled,r=e.label,o=e.value,i=!p&&!n,c=r;if("number"==typeof E&&("string"==typeof r||"number"==typeof r)){var s=String(c);s.length>E&&(c="".concat(s.slice(0,E),"..."))}var u=function(t){t&&t.stopPropagation(),R(e)};return"function"==typeof O?(t=c,a.createElement("span",{onMouseDown:function(e){ec(e),Z(!l)}},O({label:t,value:o,disabled:n,closable:i,onClose:u}))):G(e,c,n,i,u)},renderRest:function(e){var t="function"==typeof I?I(e):I;return G({title:t},t,!1)},suffix:Y,itemKey:el,maxCount:x});return a.createElement(a.Fragment,null,J,!i.length&&!X&&a.createElement("span",{className:"".concat(F,"-placeholder")},d))},eu=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,o=e.inputRef,i=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,p=e.values,m=e.placeholder,f=e.tabIndex,g=e.showSearch,h=e.searchValue,v=e.activeValue,b=e.maxLength,S=e.onInputKeyDown,$=e.onInputMouseDown,y=e.onInputChange,x=e.onInputPaste,E=e.onInputCompositionStart,C=e.onInputCompositionEnd,I=e.title,O=a.useState(!1),Z=(0,_.Z)(O,2),R=Z[0],k=Z[1],M="combobox"===u,N=M||g,z=p[0],P=h||"";M&&v&&!R&&(P=v),a.useEffect(function(){M&&k(!1)},[M,v]);var T=("combobox"===u||!!d||!!g)&&!!P,H=void 0===I?ea(z):I;return a.createElement(a.Fragment,null,a.createElement("span",{className:"".concat(n,"-selection-search")},a.createElement(en,{ref:o,prefixCls:n,id:r,open:d,inputElement:t,disabled:i,autoFocus:l,autoComplete:c,editable:N,activeDescendantId:s,value:P,onKeyDown:S,onMouseDown:$,onChange:function(e){k(!0),y(e)},onPaste:x,onCompositionStart:E,onCompositionEnd:C,tabIndex:f,attrs:(0,w.Z)(e,!0),maxLength:M?b:void 0})),!M&&z?a.createElement("span",{className:"".concat(n,"-selection-item"),title:H,style:T?{visibility:"hidden"}:void 0},z.label):null,z?null:a.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:T?{visibility:"hidden"}:void 0},m))},ed=a.forwardRef(function(e,t){var n=(0,a.useRef)(null),r=(0,a.useRef)(!1),o=e.prefixCls,l=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.autoClearSearchValue,p=e.onSearch,m=e.onSearchSubmit,f=e.onToggleOpen,g=e.onInputKeyDown,h=e.domRef;a.useImperativeHandle(t,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var v=q(0),b=(0,_.Z)(v,2),S=b[0],$=b[1],y=(0,a.useRef)(null),x=function(e){!1!==p(e,!0,r.current)&&f(!0)},E={inputRef:n,onInputKeyDown:function(e){var t=e.which;(t===Y.Z.UP||t===Y.Z.DOWN)&&e.preventDefault(),g&&g(e),t!==Y.Z.ENTER||"tags"!==c||r.current||l||null==m||m(e.target.value),[Y.Z.ESC,Y.Z.SHIFT,Y.Z.BACKSPACE,Y.Z.TAB,Y.Z.WIN_KEY,Y.Z.ALT,Y.Z.META,Y.Z.WIN_KEY_RIGHT,Y.Z.CTRL,Y.Z.SEMICOLON,Y.Z.EQUALS,Y.Z.CAPS_LOCK,Y.Z.CONTEXT_MENU,Y.Z.F1,Y.Z.F2,Y.Z.F3,Y.Z.F4,Y.Z.F5,Y.Z.F6,Y.Z.F7,Y.Z.F8,Y.Z.F9,Y.Z.F10,Y.Z.F11,Y.Z.F12].includes(t)||f(!0)},onInputMouseDown:function(){$(!0)},onInputChange:function(e){var t=e.target.value;if(u&&y.current&&/[\r\n]/.test(y.current)){var n=y.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,y.current)}y.current=null,x(t)},onInputPaste:function(e){var t=e.clipboardData.getData("text");y.current=t},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&x(e.target.value)}},w="multiple"===c||"tags"===c?a.createElement(es,(0,i.Z)({},e,E)):a.createElement(eu,(0,i.Z)({},e,E));return a.createElement("div",{ref:h,className:"".concat(o,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=S();e.target===n.current||t||"combobox"===c||e.preventDefault(),("combobox"===c||s&&t)&&l||(l&&!1!==d&&p("",!0,!1),f())}},w)});ed.displayName="Selector";var ep=n(90214),em=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ef=function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},eg=a.forwardRef(function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),o=e.children,l=e.popupElement,c=e.containerWidth,s=e.animation,u=e.transitionName,d=e.dropdownStyle,p=e.dropdownClassName,m=e.direction,f=e.placement,g=e.builtinPlacements,h=e.dropdownMatchSelectWidth,$=e.dropdownRender,y=e.dropdownAlign,x=e.getPopupContainer,E=e.empty,w=e.getTriggerDOMNode,C=e.onPopupVisibleChange,I=e.onPopupMouseEnter,O=(0,V.Z)(e,em),Z="".concat(n,"-dropdown"),R=l;$&&(R=$(l));var k=a.useMemo(function(){return g||ef(h)},[g,h]),M=s?"".concat(Z,"-").concat(s):u,N=a.useRef(null);a.useImperativeHandle(t,function(){return{getPopupElement:function(){return N.current}}});var z=(0,S.Z)({minWidth:c},d);return"number"==typeof h?z.width=h:h&&(z.width=c),a.createElement(ep.Z,(0,i.Z)({},O,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:f||("rtl"===(void 0===m?"ltr":m)?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:Z,popupTransitionName:M,popup:a.createElement("div",{ref:N,onMouseEnter:I},R),popupAlign:y,popupVisible:r,getPopupContainer:x,popupClassName:v()(p,(0,b.Z)({},"".concat(Z,"-empty"),E)),popupStyle:z,getTriggerDOMNode:w,onPopupVisibleChange:C}),o)});eg.displayName="SelectTrigger";var eh=n(29221);function ev(e,t){var n,r=e.key;return("value"in e&&(n=e.value),null!=r)?r:void 0!==n?n:"rc-index-key-".concat(t)}function eb(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function eS(e){var t=(0,S.Z)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,X.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var e$=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ey=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ex(e){return"tags"===e||"multiple"===e}var eE=a.forwardRef(function(e,t){var n,r,o,l,c,s,u,d,p,m=e.id,f=e.prefixCls,g=e.className,h=e.showSearch,$=e.tagRender,y=e.direction,x=e.omitDomProps,E=e.displayValues,w=e.onDisplayValuesChange,C=e.emptyOptions,I=e.notFoundContent,O=void 0===I?"Not Found":I,Z=e.onClear,R=e.mode,k=e.disabled,M=e.loading,N=e.getInputElement,z=e.getRawInputElement,P=e.open,T=e.defaultOpen,H=e.onDropdownVisibleChange,D=e.activeValue,j=e.onActiveValueChange,B=e.activeDescendantId,L=e.searchValue,A=e.autoClearSearchValue,X=e.onSearch,ee=e.onSearchSplit,en=e.tokenSeparators,er=e.allowClear,eo=e.showArrow,ei=e.inputIcon,ea=e.clearIcon,el=e.OptionList,ec=e.animation,es=e.transitionName,eu=e.dropdownStyle,ep=e.dropdownClassName,em=e.dropdownMatchSelectWidth,ef=e.dropdownRender,ev=e.dropdownAlign,eb=e.placement,eS=e.builtinPlacements,eE=e.getPopupContainer,ew=e.showAction,eC=void 0===ew?[]:ew,eI=e.onFocus,eO=e.onBlur,eZ=e.onKeyUp,eR=e.onKeyDown,ek=e.onMouseDown,eM=(0,V.Z)(e,e$),eN=ex(R),ez=(void 0!==h?h:eN)||"combobox"===R,eP=(0,S.Z)({},eM);ey.forEach(function(e){delete eP[e]}),null==x||x.forEach(function(e){delete eP[e]});var eT=a.useState(!1),eH=(0,_.Z)(eT,2),eD=eH[0],ej=eH[1];a.useEffect(function(){ej((0,G.Z)())},[]);var eB=a.useRef(null),eL=a.useRef(null),eA=a.useRef(null),eW=a.useRef(null),e_=a.useRef(null),eV=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=a.useState(!1),n=(0,_.Z)(t,2),r=n[0],o=n[1],i=a.useRef(null),l=function(){window.clearTimeout(i.current)};return a.useEffect(function(){return l},[]),[r,function(t,n){l(),i.current=window.setTimeout(function(){o(t),n&&n()},e)},l]}(),eK=(0,_.Z)(eV,3),eF=eK[0],eX=eK[1],eU=eK[2];a.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=eW.current)||void 0===e?void 0:e.focus,blur:null===(t=eW.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=e_.current)||void 0===t?void 0:t.scrollTo(e)}}});var eG=a.useMemo(function(){if("combobox"!==R)return L;var e,t=null===(e=E[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[L,R,E]),eY="combobox"===R&&"function"==typeof N&&N()||null,eJ="function"==typeof z&&z(),eQ=(0,J.x1)(eL,null==eJ?void 0:null===(l=eJ.props)||void 0===l?void 0:l.ref),eq=a.useState(!1),e0=(0,_.Z)(eq,2),e1=e0[0],e2=e0[1];(0,U.Z)(function(){e2(!0)},[]);var e3=(0,F.Z)(!1,{defaultValue:T,value:P}),e6=(0,_.Z)(e3,2),e4=e6[0],e5=e6[1],e9=!!e1&&e4,e7=!O&&C;(k||e7&&e9&&"combobox"===R)&&(e9=!1);var e8=!e7&&e9,te=a.useCallback(function(e){var t=void 0!==e?e:!e9;k||(e5(t),e9!==t&&(null==H||H(t)))},[k,e9,e5,H]),tt=a.useMemo(function(){return(en||[]).some(function(e){return["\n","\r\n"].includes(e)})},[en]),tn=function(e,t,n){var r=!0,o=e;null==j||j(null);var i=n?null:function(e,t){if(!t||!t.length)return null;var n=!1,r=function e(t,r){var o=(0,eh.Z)(r),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return n=n||l.length>1,l.reduce(function(t,n){return[].concat((0,W.Z)(t),(0,W.Z)(e(n,a)))},[]).filter(function(e){return e})}(e,t);return n?r:null}(e,en);return"combobox"!==R&&i&&(o="",null==ee||ee(i),te(!1),r=!1),X&&eG!==o&&X(o,{source:t?"typing":"effect"}),r};a.useEffect(function(){e9||eN||"combobox"===R||tn("",!1,!1)},[e9]),a.useEffect(function(){e4&&k&&e5(!1),k&&eX(!1)},[k]);var tr=q(),to=(0,_.Z)(tr,2),ti=to[0],ta=to[1],tl=a.useRef(!1),tc=[];a.useEffect(function(){return function(){tc.forEach(function(e){return clearTimeout(e)}),tc.splice(0,tc.length)}},[]);var ts=a.useState(null),tu=(0,_.Z)(ts,2),td=tu[0],tp=tu[1],tm=a.useState({}),tf=(0,_.Z)(tm,2)[1];(0,U.Z)(function(){if(e8){var e,t=Math.ceil(null===(e=eB.current)||void 0===e?void 0:e.offsetWidth);td===t||Number.isNaN(t)||tp(t)}},[e8]),eJ&&(s=function(e){te(e)}),n=function(){var e;return[eB.current,null===(e=eA.current)||void 0===e?void 0:e.getPopupElement()]},r=!!eJ,(o=a.useRef(null)).current={open:e8,triggerOpen:te,customizedTrigger:r},a.useEffect(function(){function e(e){if(null===(t=o.current)||void 0===t||!t.customizedTrigger){var t,r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),o.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tg=a.useMemo(function(){return(0,S.Z)((0,S.Z)({},e),{},{notFoundContent:O,open:e9,triggerOpen:e8,id:m,showSearch:ez,multiple:eN,toggleOpen:te})},[e,O,e8,e9,m,ez,eN,te]),th=void 0!==eo?eo:M||!eN&&"combobox"!==R;th&&(u=a.createElement(et,{className:v()("".concat(f,"-arrow"),(0,b.Z)({},"".concat(f,"-arrow-loading"),M)),customizeIcon:ei,customizeIconProps:{loading:M,searchValue:eG,open:e9,focused:eF,showSearch:ez}})),!k&&er&&(E.length||eG)&&!("combobox"===R&&""===eG)&&(d=a.createElement(et,{className:"".concat(f,"-clear"),onMouseDown:function(){var e;null==Z||Z(),null===(e=eW.current)||void 0===e||e.focus(),w([],{type:"clear",values:E}),tn("",!1,!1)},customizeIcon:ea},"\xd7"));var tv=a.createElement(el,{ref:e_}),tb=v()(f,g,(c={},(0,b.Z)(c,"".concat(f,"-focused"),eF),(0,b.Z)(c,"".concat(f,"-multiple"),eN),(0,b.Z)(c,"".concat(f,"-single"),!eN),(0,b.Z)(c,"".concat(f,"-allow-clear"),er),(0,b.Z)(c,"".concat(f,"-show-arrow"),th),(0,b.Z)(c,"".concat(f,"-disabled"),k),(0,b.Z)(c,"".concat(f,"-loading"),M),(0,b.Z)(c,"".concat(f,"-open"),e9),(0,b.Z)(c,"".concat(f,"-customize-input"),eY),(0,b.Z)(c,"".concat(f,"-show-search"),ez),c)),tS=a.createElement(eg,{ref:eA,disabled:k,prefixCls:f,visible:e8,popupElement:tv,containerWidth:td,animation:ec,transitionName:es,dropdownStyle:eu,dropdownClassName:ep,direction:y,dropdownMatchSelectWidth:em,dropdownRender:ef,dropdownAlign:ev,placement:eb,builtinPlacements:eS,getPopupContainer:eE,empty:C,getTriggerDOMNode:function(){return eL.current},onPopupVisibleChange:s,onPopupMouseEnter:function(){tf({})}},eJ?a.cloneElement(eJ,{ref:eQ}):a.createElement(ed,(0,i.Z)({},e,{domRef:eL,prefixCls:f,inputElement:eY,ref:eW,id:m,showSearch:ez,autoClearSearchValue:A,mode:R,activeDescendantId:B,tagRender:$,values:E,open:e9,onToggleOpen:te,activeValue:D,searchValue:eG,onSearch:tn,onSearchSubmit:function(e){e&&e.trim()&&X(e,{source:"submit"})},onRemove:function(e){w(E.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:tt})));return p=eJ?tS:a.createElement("div",(0,i.Z)({className:tb},eP,{ref:eB,onMouseDown:function(e){var t,n=e.target,r=null===(t=eA.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=tc.indexOf(o);-1!==t&&tc.splice(t,1),eU(),eD||r.contains(document.activeElement)||null===(e=eW.current)||void 0===e||e.focus()});tc.push(o)}for(var i=arguments.length,a=Array(i>1?i-1:0),l=1;l=0;a-=1){var l=o[a];if(!l.disabled){o.splice(a,1),i=l;break}}i&&w(o,{type:"remove",values:[i]})}for(var c=arguments.length,s=Array(c>1?c-1:0),u=1;u1?n-1:0),o=1;on},e}return(0,y.Z)(n,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(e){e.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var e=this.state,t=e.dragging,n=e.visible,r=this.props,o=r.prefixCls,i=r.direction,l=this.getSpinHeight(),c=this.getTop(),s=this.showScroll(),u=s&&n;return a.createElement("div",{ref:this.scrollbarRef,className:v()("".concat(o,"-scrollbar"),(0,b.Z)({},"".concat(o,"-scrollbar-show"),s)),style:(0,S.Z)((0,S.Z)({width:8,top:0,bottom:0},"rtl"===i?{left:0}:{right:0}),{},{position:"absolute",display:u?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},a.createElement("div",{ref:this.thumbRef,className:v()("".concat(o,"-scrollbar-thumb"),(0,b.Z)({},"".concat(o,"-scrollbar-thumb-moving"),t)),style:{width:"100%",height:l,top:c,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),n}(a.Component);function eW(e){var t=e.children,n=e.setRef,r=a.useCallback(function(e){n(e)},[]);return a.cloneElement(t,{ref:r})}var e_=n(49175),eV=function(){function e(){(0,$.Z)(this,e),this.maps=void 0,this.maps=Object.create(null)}return(0,y.Z)(e,[{key:"set",value:function(e,t){this.maps[e]=t}},{key:"get",value:function(e){return this.maps[e]}}]),e}(),eK=("undefined"==typeof navigator?"undefined":(0,K.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),eF=function(e,t){var n=(0,a.useRef)(!1),r=(0,a.useRef)(null),o=(0,a.useRef)({top:e,bottom:t});return o.current.top=e,o.current.bottom=t,function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e<0&&o.current.top||e>0&&o.current.bottom;return t&&i?(clearTimeout(r.current),n.current=!1):(!i||n.current)&&(clearTimeout(r.current),n.current=!0,r.current=setTimeout(function(){n.current=!1},50)),!n.current&&i}},eX=14/15,eU=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],eG=[],eY={overflowY:"auto",overflowAnchor:"none"},eJ=a.forwardRef(function(e,t){var n,r,o,l,c,s,u,d,p,m,f,g,h,$,y,x,E,w,C,I,O,Z,R,k,M,N,z=e.prefixCls,P=void 0===z?"rc-virtual-list":z,T=e.className,H=e.height,D=e.itemHeight,j=e.fullHeight,B=e.style,L=e.data,A=e.children,W=e.itemKey,F=e.virtual,X=e.direction,G=e.component,Y=void 0===G?"div":G,J=e.onScroll,Q=e.onVisibleChange,q=e.innerProps,ee=(0,V.Z)(e,eU),et=!!(!1!==F&&H&&D),en=et&&L&&D*L.length>H,er=(0,a.useState)(0),eo=(0,_.Z)(er,2),ei=eo[0],ea=eo[1],el=(0,a.useState)(!1),ec=(0,_.Z)(el,2),es=ec[0],eu=ec[1],ed=v()(P,(0,b.Z)({},"".concat(P,"-rtl"),"rtl"===X),T),ep=L||eG,em=(0,a.useRef)(),ef=(0,a.useRef)(),eg=(0,a.useRef)(),eh=a.useCallback(function(e){return"function"==typeof W?W(e):null==e?void 0:e[W]},[W]);function ev(e){ea(function(t){var n,r=(n="function"==typeof e?e(t):e,Number.isNaN(eP.current)||(n=Math.min(n,eP.current)),n=Math.max(n,0));return em.current.scrollTop=r,r})}var eb=(0,a.useRef)({start:0,end:ep.length}),eS=(0,a.useRef)(),e$=(r=a.useState(ep),l=(o=(0,_.Z)(r,2))[0],c=o[1],s=a.useState(null),d=(u=(0,_.Z)(s,2))[0],p=u[1],a.useEffect(function(){var e=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i=ei&&void 0===t&&(t=a,n=o),s>ei+H&&void 0===r&&(r=a),o=s}return void 0===t&&(t=0,n=0,r=Math.ceil(H/D)),void 0===r&&(r=ep.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,ep.length),offset:n}},[en,et,ei,ep,eO,H]),eR=eZ.scrollHeight,ek=eZ.start,eM=eZ.end,eN=eZ.offset;eb.current.start=ek,eb.current.end=eM;var ez=eR-H,eP=(0,a.useRef)(ez);eP.current=ez;var eT=ei<=0,eH=ei>=ez,eD=eF(eT,eH),eL=(m=function(e){ev(function(t){return t+e})},f=(0,a.useRef)(0),g=(0,a.useRef)(null),h=(0,a.useRef)(null),$=(0,a.useRef)(!1),y=eF(eT,eH),[function(e){if(et){eB.Z.cancel(g.current);var t=e.deltaY;f.current+=t,h.current=t,y(t)||(eK||e.preventDefault(),g.current=(0,eB.Z)(function(){var e=$.current?10:1;m(f.current*e),f.current=0}))}},function(e){et&&($.current=e.detail===h.current)}]),eJ=(0,_.Z)(eL,2),eQ=eJ[0],eq=eJ[1];x=function(e,t){return!eD(e,t)&&(eQ({preventDefault:function(){},deltaY:e}),!0)},w=(0,a.useRef)(!1),C=(0,a.useRef)(0),I=(0,a.useRef)(null),O=(0,a.useRef)(null),Z=function(e){if(w.current){var t=Math.ceil(e.touches[0].pageY),n=C.current-t;C.current=t,x(n)&&e.preventDefault(),clearInterval(O.current),O.current=setInterval(function(){(!x(n*=eX,!0)||.1>=Math.abs(n))&&clearInterval(O.current)},16)}},R=function(){w.current=!1,E()},k=function(e){E(),1!==e.touches.length||w.current||(w.current=!0,C.current=Math.ceil(e.touches[0].pageY),I.current=e.target,I.current.addEventListener("touchmove",Z),I.current.addEventListener("touchend",R))},E=function(){I.current&&(I.current.removeEventListener("touchmove",Z),I.current.removeEventListener("touchend",R))},(0,U.Z)(function(){return et&&em.current.addEventListener("touchstart",k),function(){var e;null===(e=em.current)||void 0===e||e.removeEventListener("touchstart",k),E(),clearInterval(O.current)}},[et]),(0,U.Z)(function(){function e(e){et&&e.preventDefault()}return em.current.addEventListener("wheel",eQ),em.current.addEventListener("DOMMouseScroll",eq),em.current.addEventListener("MozMousePixelScroll",e),function(){em.current&&(em.current.removeEventListener("wheel",eQ),em.current.removeEventListener("DOMMouseScroll",eq),em.current.removeEventListener("MozMousePixelScroll",e))}},[et]);var e0=(M=function(){var e;null===(e=eg.current)||void 0===e||e.delayHidden()},N=a.useRef(),function(e){if(null==e){M();return}if(eB.Z.cancel(N.current),"number"==typeof e)ev(e);else if(e&&"object"===(0,K.Z)(e)){var t,n=e.align;t="index"in e?e.index:ep.findIndex(function(t){return eh(t)===e.key});var r=e.offset,o=void 0===r?0:r;!function e(r,i){if(!(r<0)&&em.current){var a=em.current.clientHeight,l=!1,c=i;if(a){for(var s=0,u=0,d=0,p=Math.min(ep.length,t),m=0;m<=p;m+=1){var f=eh(ep[m]);u=s;var g=eI.get(f);s=d=u+(void 0===g?D:g),m===t&&void 0===g&&(l=!0)}var h=null;switch(i||n){case"top":h=u-o;break;case"bottom":h=d-a+o;break;default:var v=em.current.scrollTop;uv+a&&(c="bottom")}null!==h&&h!==em.current.scrollTop&&ev(h)}N.current=(0,eB.Z)(function(){l&&eC(),e(r-1,c)},2)}}(3)}});a.useImperativeHandle(t,function(){return{scrollTo:e0}}),(0,U.Z)(function(){Q&&Q(ep.slice(ek,eM+1),ep)},[ek,eM,ep]);var e1=ep.slice(ek,eM+1).map(function(e,t){var n=A(e,ek+t,{}),r=eh(e);return a.createElement(eW,{key:r,setRef:function(t){return ew(e,t)}},n)}),e2=null;return H&&(e2=(0,S.Z)((0,b.Z)({},void 0===j||j?"height":"maxHeight",H),eY),et&&(e2.overflowY="hidden",es&&(e2.pointerEvents="none"))),a.createElement("div",(0,i.Z)({style:(0,S.Z)((0,S.Z)({},B),{},{position:"relative"}),className:ed},ee),a.createElement(Y,{className:"".concat(P,"-holder"),style:e2,ref:em,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==ei&&ev(t),null==J||J(e)}},a.createElement(ej,{prefixCls:P,height:eR,offset:eN,onInnerResize:eC,ref:ef,innerProps:q},e1)),et&&a.createElement(eA,{ref:eg,prefixCls:P,scrollTop:ei,height:H,scrollHeight:eR,count:ep.length,direction:X,onScroll:function(e){ev(e)},onStartMove:function(){eu(!0)},onStopMove:function(){eu(!1)}}))});eJ.displayName="List";var eQ=a.createContext(null),eq=["disabled","title","children","style","className"];function e0(e){return"string"==typeof e||"number"==typeof e}var e1=a.forwardRef(function(e,t){var n=a.useContext(Q),r=n.prefixCls,o=n.id,l=n.open,c=n.multiple,s=n.mode,u=n.searchValue,d=n.toggleOpen,p=n.notFoundContent,m=n.onPopupScroll,f=a.useContext(eQ),g=f.flattenOptions,h=f.onActiveValue,S=f.defaultActiveFirstOption,$=f.onSelect,y=f.menuItemSelectedIcon,x=f.rawValues,E=f.fieldNames,C=f.virtual,I=f.direction,O=f.listHeight,Z=f.listItemHeight,R="".concat(r,"-item"),k=(0,eT.Z)(function(){return g},[l,g],function(e,t){return t[0]&&e[1]!==t[1]}),M=a.useRef(null),N=function(e){e.preventDefault()},z=function(e){M.current&&M.current.scrollTo("number"==typeof e?{index:e}:e)},P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=k.length,r=0;r1&&void 0!==arguments[1]&&arguments[1];j(e);var n={source:t?"keyboard":"mouse"},r=k[e];if(!r){h(null,-1,n);return}h(r.value,e,n)};(0,a.useEffect)(function(){B(!1!==S?P(0):-1)},[k.length,u]);var L=a.useCallback(function(e){return x.has(e)&&"combobox"!==s},[s,(0,W.Z)(x).toString(),x.size]);(0,a.useEffect)(function(){var e,t=setTimeout(function(){if(!c&&l&&1===x.size){var e=Array.from(x)[0],t=k.findIndex(function(t){return t.data.value===e});-1!==t&&(B(t),z(t))}});return l&&(null===(e=M.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[l,u,g.length]);var A=function(e){void 0!==e&&$(e,{selected:!x.has(e)}),c||d(!1)};if(a.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Y.Z.N:case Y.Z.P:case Y.Z.UP:case Y.Z.DOWN:var r=0;if(t===Y.Z.UP?r=-1:t===Y.Z.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Y.Z.N?r=1:t===Y.Z.P&&(r=-1)),0!==r){var o=P(D+r,r);z(o),B(o,!0)}break;case Y.Z.ENTER:var i=k[D];i&&!i.data.disabled?A(i.value):A(void 0),l&&e.preventDefault();break;case Y.Z.ESC:d(!1),l&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){z(e)}}}),0===k.length)return a.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(R,"-empty"),onMouseDown:N},p);var K=Object.keys(E).map(function(e){return E[e]}),F=function(e){return e.label};function X(e,t){return{role:e.group?"presentation":"option",id:"".concat(o,"_list_").concat(t)}}var U=function(e){var t=k[e];if(!t)return null;var n=t.data||{},r=n.value,o=t.group,l=(0,w.Z)(n,!0),c=F(t);return t?a.createElement("div",(0,i.Z)({"aria-label":"string"!=typeof c||o?null:c},l,{key:e},X(t,e),{"aria-selected":L(r)}),r):null},G={role:"listbox",id:"".concat(o,"_list")};return a.createElement(a.Fragment,null,C&&a.createElement("div",(0,i.Z)({},G,{style:{height:0,width:0,overflow:"hidden"}}),U(D-1),U(D),U(D+1)),a.createElement(eJ,{itemKey:"key",ref:M,data:k,height:O,itemHeight:Z,fullHeight:!1,onMouseDown:N,onScroll:m,virtual:C,direction:I,innerProps:C?null:G},function(e,t){var n=e.group,r=e.groupOption,o=e.data,l=e.label,c=e.value,s=o.key;if(n){var u,d,p=null!==(d=o.title)&&void 0!==d?d:e0(l)?l.toString():void 0;return a.createElement("div",{className:v()(R,"".concat(R,"-group")),title:p},void 0!==l?l:s)}var m=o.disabled,f=o.title,g=(o.children,o.style),h=o.className,S=(0,V.Z)(o,eq),$=(0,eH.Z)(S,K),x=L(c),E="".concat(R,"-option"),I=v()(R,E,h,(u={},(0,b.Z)(u,"".concat(E,"-grouped"),r),(0,b.Z)(u,"".concat(E,"-active"),D===t&&!m),(0,b.Z)(u,"".concat(E,"-disabled"),m),(0,b.Z)(u,"".concat(E,"-selected"),x),u)),O=F(e),Z=!y||"function"==typeof y||x,k="number"==typeof O?O:O||c,M=e0(k)?k.toString():void 0;return void 0!==f&&(M=f),a.createElement("div",(0,i.Z)({},(0,w.Z)($),C?{}:X(e,t),{"aria-selected":x,className:I,title:M,onMouseMove:function(){D===t||m||B(t)},onClick:function(){m||A(c)},style:g}),a.createElement("div",{className:"".concat(E,"-content")},k),a.isValidElement(y)||x,Z&&a.createElement(et,{className:"".concat(R,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:x}},x?"✓":null))}))});e1.displayName="OptionList";var e2=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],e3=["inputValue"],e6=a.forwardRef(function(e,t){var n,r,o,l,c,s=e.id,u=e.mode,d=e.prefixCls,p=e.backfill,m=e.fieldNames,f=e.inputValue,g=e.searchValue,h=e.onSearch,v=e.autoClearSearchValue,$=void 0===v||v,y=e.onSelect,x=e.onDeselect,E=e.dropdownMatchSelectWidth,w=void 0===E||E,C=e.filterOption,I=e.filterSort,O=e.optionFilterProp,Z=e.optionLabelProp,R=e.options,k=e.children,M=e.defaultActiveFirstOption,N=e.menuItemSelectedIcon,z=e.virtual,P=e.direction,T=e.listHeight,H=void 0===T?200:T,D=e.listItemHeight,j=void 0===D?20:D,B=e.value,L=e.defaultValue,A=e.labelInValue,X=e.onChange,U=(0,V.Z)(e,e2),G=(n=a.useState(),o=(r=(0,_.Z)(n,2))[0],l=r[1],a.useEffect(function(){var e;l("rc_select_".concat((eZ?(e=eO,eO+=1):e="TEST_OR_SSR",e)))},[]),s||o),Y=ex(u),J=!!(!R&&k),Q=a.useMemo(function(){return(void 0!==C||"combobox"!==u)&&C},[C,u]),q=a.useMemo(function(){return eb(m,J)},[JSON.stringify(m),J]),ee=(0,F.Z)("",{value:void 0!==g?g:f,postState:function(e){return e||""}}),et=(0,_.Z)(ee,2),en=et[0],eo=et[1],ei=a.useMemo(function(){var e=R;R||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,eR.Z)(t).map(function(t,r){if(!a.isValidElement(t)||!t.type)return null;var o,i,l,c,s,u=t.type.isSelectOptGroup,d=t.key,p=t.props,m=p.children,f=(0,V.Z)(p,eM);return n||!u?(o=t.key,l=(i=t.props).children,c=i.value,s=(0,V.Z)(i,ek),(0,S.Z)({key:o,value:void 0!==c?c:o,children:l},s)):(0,S.Z)((0,S.Z)({key:"__RC_SELECT_GRP__".concat(null===d?r:d,"__"),label:d},f),{},{options:e(m)})}).filter(function(e){return e})}(k));var t=new Map,n=new Map,r=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(o){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=eb(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return!function e(t,n){t.forEach(function(t){if(!n&&c in t){var i=t[s];void 0===i&&r&&(i=t.label),o.push({key:ev(t,o.length),group:!0,data:t,label:i}),e(t[c],!0)}else{var u=t[l];o.push({key:ev(t,o.length),groupOption:n,data:t,label:t[a],value:u})}})}(e,!1),o}(eH,{fieldNames:q,childrenAsData:J})},[eH,q,J]),ej=function(e){var t=es(e);if(em(t),X&&(t.length!==eh.length||t.some(function(e,t){var n;return(null===(n=eh[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=A?t:t.map(function(e){return e.value}),r=t.map(function(e){return eS(e$(e.value))});X(Y?n:n[0],Y?r:r[0])}},eB=a.useState(null),eL=(0,_.Z)(eB,2),eA=eL[0],eW=eL[1],e_=a.useState(0),eV=(0,_.Z)(e_,2),eK=eV[0],eF=eV[1],eX=void 0!==M?M:"combobox"!==u,eU=a.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source;eF(t),p&&"combobox"===u&&null!==e&&"keyboard"===(void 0===r?"keyboard":r)&&eW(String(e))},[p,u]),eG=function(e,t,n){var r=function(){var t,n=e$(e);return[A?{label:null==n?void 0:n[q.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,eS(n)]};if(t&&y){var o=r(),i=(0,_.Z)(o,2);y(i[0],i[1])}else if(!t&&x&&"clear"!==n){var a=r(),l=(0,_.Z)(a,2);x(l[0],l[1])}},eY=eN(function(e,t){var n=!Y||t.selected;ej(n?Y?[].concat((0,W.Z)(eh),[e]):[e]:eh.filter(function(t){return t.value!==e})),eG(e,n),"combobox"===u?eW(""):(!ex||$)&&(eo(""),eW(""))}),eJ=a.useMemo(function(){var e=!1!==z&&!1!==w;return(0,S.Z)((0,S.Z)({},ei),{},{flattenOptions:eD,onActiveValue:eU,defaultActiveFirstOption:eX,onSelect:eY,menuItemSelectedIcon:N,rawValues:eI,fieldNames:q,virtual:e,direction:P,listHeight:H,listItemHeight:j,childrenAsData:J})},[ei,eD,eU,eX,eY,N,eI,q,z,w,H,j,J]);return a.createElement(eQ.Provider,{value:eJ},a.createElement(eE,(0,i.Z)({},U,{id:G,prefixCls:void 0===d?"rc-select":d,ref:t,omitDomProps:e3,mode:u,displayValues:ey,onDisplayValuesChange:function(e,t){ej(e);var n=t.type,r=t.values;("remove"===n||"clear"===n)&&r.forEach(function(e){eG(e.value,!1,n)})},direction:P,searchValue:en,onSearch:function(e,t){if(eo(e),eW(null),"submit"===t.source){var n=(e||"").trim();n&&(ej(Array.from(new Set([].concat((0,W.Z)(eI),[n])))),eG(n,!0),eo(""));return}"blur"!==t.source&&("combobox"===u&&ej(e),null==h||h(e))},autoClearSearchValue:$,onSearchSplit:function(e){var t=e;"tags"!==u&&(t=e.map(function(e){var t=el.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,W.Z)(eI),(0,W.Z)(t))));ej(n),n.forEach(function(e){eG(e,!0)})},dropdownMatchSelectWidth:w,OptionList:e1,emptyOptions:!eD.length,activeValue:eA,activeDescendantId:"".concat(G,"_list_").concat(eK)})))});e6.Option=eP,e6.OptGroup=ez;var e4=n(17583),e5=n(80716);let e9=(e,t)=>t||e;var e7=n(20538),e8=n(57389),te=n(40650),tt=n(70721);let tn=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorText},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-description`]:{color:e.colorTextDisabled},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}};var tr=(0,te.Z)("Empty",e=>{let{componentCls:t,controlHeightLG:n}=e,r=(0,tt.TS)(e,{emptyImgCls:`${t}-img`,emptyImgHeight:2.5*n,emptyImgHeightMD:n,emptyImgHeightSM:.875*n});return[tn(r)]}),to=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let ti=a.createElement(()=>{let[,e]=(0,H.dQ)(),t=new e8.C(e.colorBgBase),n=t.toHsl().l<.5?{opacity:.65}:{};return a.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{fill:"none",fillRule:"evenodd"},a.createElement("g",{transform:"translate(24 31.67)"},a.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),a.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),a.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),a.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),a.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),a.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),a.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},a.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),a.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),ta=a.createElement(()=>{let[,e]=(0,H.dQ)(),{colorFill:t,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:o}=e,{borderColor:i,shadowColor:l,contentColor:c}=(0,a.useMemo)(()=>({borderColor:new e8.C(t).onBackground(o).toHexShortString(),shadowColor:new e8.C(n).onBackground(o).toHexShortString(),contentColor:new e8.C(r).onBackground(o).toHexShortString()}),[t,n,r,o]);return a.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},a.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},a.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),a.createElement("g",{fillRule:"nonzero",stroke:i},a.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),a.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},null),tl=e=>{var{className:t,rootClassName:n,prefixCls:r,image:o=ti,description:i,children:l,imageStyle:c}=e,s=to(e,["className","rootClassName","prefixCls","image","description","children","imageStyle"]);let{getPrefixCls:u,direction:d}=a.useContext(z.E_),p=u("empty",r),[m,f]=tr(p),[g]=(0,A.Z)("Empty"),h=void 0!==i?i:null==g?void 0:g.description,b="string"==typeof h?h:"empty",S=null;return S="string"==typeof o?a.createElement("img",{alt:b,src:o}):o,m(a.createElement("div",Object.assign({className:v()(f,p,{[`${p}-normal`]:o===ta,[`${p}-rtl`]:"rtl"===d},t,n)},s),a.createElement("div",{className:`${p}-image`,style:c},S),h&&a.createElement("div",{className:`${p}-description`},h),l&&a.createElement("div",{className:`${p}-footer`},l)))};tl.PRESENTED_IMAGE_DEFAULT=ti,tl.PRESENTED_IMAGE_SIMPLE=ta;var tc=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,a.useContext)(z.E_),r=n("empty");switch(t){case"Table":case"List":return a.createElement(tl,{image:tl.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return a.createElement(tl,{image:tl.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});default:return a.createElement(tl,null)}},ts=n(21440),tu=n(12381),td=n(98663),tp=n(75872),tm=n(53279),tf=n(11717),tg=n(29138);let th=new tf.E4("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tv=new tf.E4("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),tb=new tf.E4("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tS=new tf.E4("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),t$=new tf.E4("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ty=new tf.E4("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),tx=new tf.E4("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),tE=new tf.E4("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),tw={"move-up":{inKeyframes:tx,outKeyframes:tE},"move-down":{inKeyframes:th,outKeyframes:tv},"move-left":{inKeyframes:tb,outKeyframes:tS},"move-right":{inKeyframes:t$,outKeyframes:ty}},tC=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=tw[t];return[(0,tg.R)(r,o,i,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},tI=e=>{let{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}};var tO=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},(0,td.Wf)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft - `]:{animationName:tm.fJ},[` - &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft, - &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft - `]:{animationName:tm.Qt},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:tm.Uw},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:tm.ly},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},tI(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign(Object.assign({flex:"auto"},td.vS),{"> *":Object.assign({},td.vS)}),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:2*e.controlPaddingHorizontal}}}),"&-rtl":{direction:"rtl"}})},(0,tm.oN)(e,"slide-up"),(0,tm.oN)(e,"slide-down"),tC(e,"move-up"),tC(e,"move-down")]};let tZ=e=>{let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e,o=(n-t)/2-r;return[o,Math.ceil(o/2)]};function tR(e,t){let{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,i=e.controlHeightSM,[a]=tZ(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-2}px 4px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"2px 0",lineHeight:`${i}px`,visibility:"hidden",content:'"\\a0"'}},[` - &${n}-show-arrow ${n}-selector, - &${n}-allow-clear ${n}-selector - `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:i,marginTop:2,marginBottom:2,lineHeight:`${i-2*e.lineWidth}px`,background:e.colorFillSecondary,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:4,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,td.Ro)()),{display:"inline-flex",alignItems:"center",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-a,[` - &-input, - &-mirror - `]:{height:i,fontFamily:e.fontFamily,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}var tk=e=>{let{componentCls:t}=e,n=(0,tt.TS)(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=(0,tt.TS)(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),[,o]=tZ(e);return[tR(e),tR(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.controlPaddingHorizontalSM-e.lineWidth},[`${t}-selection-search`]:{marginInlineStart:o}}},tR(r,"lg")]};function tM(e,t){let{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.controlHeight-2*e.lineWidth,a=Math.ceil(1.25*e.fontSize),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:Object.assign(Object.assign({},(0,td.Wf)(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[` - ${n}-selection-item, - ${n}-selection-placeholder - `]:{padding:0,lineHeight:`${i}px`,transition:`all ${e.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${i}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[`&:after,${n}-selection-item:after,${n}-selection-placeholder:after`]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${n}-show-arrow ${n}-selection-item, - &${n}-show-arrow ${n}-selection-placeholder - `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}let tN=e=>{let{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},tz=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{componentCls:r,borderHoverColor:o,outlineColor:i,antCls:a}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:Object.assign(Object.assign({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o}})}}},tP=e=>{let{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},tT=e=>{let{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,td.Wf)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},tN(e)),tP(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal"},td.vS),{"> *":Object.assign({lineHeight:"inherit"},td.vS)}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},td.vS),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,td.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},tH=e=>{let{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},tT(e),function(e){let{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[tM(e),tM((0,tt.TS)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+1.5*e.fontSize},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:1.5*e.fontSize}}}},tM((0,tt.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),tk(e),tO(e),{[`${t}-rtl`]:{direction:"rtl"}},tz(t,(0,tt.TS)(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),tz(`${t}-status-error`,(0,tt.TS)(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),tz(`${t}-status-warning`,(0,tt.TS)(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),(0,tp.c)(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]};var tD=(0,te.Z)("Select",(e,t)=>{let{rootPrefixCls:n}=t,r=(0,tt.TS)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[tH(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let tj=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible"};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}};var tB=n(95131),tL=n(56222),tA=n(31533),tW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},t_=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:tW}))}),tV=n(75710),tK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},tF=a.forwardRef(function(e,t){return a.createElement(c.Z,(0,i.Z)({},e,{ref:t,icon:tK}))}),tX=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let tU="SECRET_COMBOBOX_MODE_DO_NOT_USE",tG=a.forwardRef((e,t)=>{let n;var r,{prefixCls:o,bordered:i=!0,className:l,rootClassName:c,getPopupContainer:s,popupClassName:u,dropdownClassName:d,listHeight:p=256,placement:m,listItemHeight:f=24,size:g,disabled:h,notFoundContent:b,status:S,showArrow:$,builtinPlacements:y,dropdownMatchSelectWidth:x,popupMatchSelectWidth:E,direction:w}=e,C=tX(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction"]);let{getPopupContainer:I,getPrefixCls:O,renderEmpty:Z,direction:R,virtual:k,popupMatchSelectWidth:M,popupOverflow:N,select:T}=a.useContext(z.E_),H=O("select",o),D=O(),j=null!=w?w:R,{compactSize:B,compactItemClassnames:L}=(0,tu.ri)(H,j),[A,W]=tD(H),_=a.useMemo(()=>{let{mode:e}=C;return"combobox"===e?void 0:e===tU?"combobox":e},[C.mode]),V=null==$||$,K=null!==(r=null!=E?E:x)&&void 0!==r?r:M,{status:F,hasFeedback:X,isFormItemInput:U,feedbackIcon:G}=a.useContext(ts.aM),Y=e9(F,S);n=void 0!==b?b:"combobox"===_?null:(null==Z?void 0:Z("Select"))||a.createElement(tc,{componentName:"Select"});let{suffixIcon:J,itemIcon:Q,removeIcon:q,clearIcon:ee}=function(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:l,hasFeedback:c,prefixCls:s,showArrow:u,feedbackIcon:d}=e,p=null!=n?n:a.createElement(tL.Z,null),m=e=>a.createElement(a.Fragment,null,!1!==u&&e,c&&d),f=null;if(void 0!==t)f=m(t);else if(i)f=m(a.createElement(tV.Z,{spin:!0}));else{let e=`${s}-suffix`;f=t=>{let{open:n,showSearch:r}=t;return n&&r?m(a.createElement(tF,{className:e})):m(a.createElement(t_,{className:e}))}}let g=null;return g=void 0!==r?r:l?a.createElement(tB.Z,null):null,{clearIcon:p,suffixIcon:f,itemIcon:g,removeIcon:void 0!==o?o:a.createElement(tA.Z,null)}}(Object.assign(Object.assign({},C),{multiple:"multiple"===_||"tags"===_,hasFeedback:X,feedbackIcon:G,showArrow:V,prefixCls:H})),et=(0,eH.Z)(C,["suffixIcon","itemIcon"]),en=v()(u||d,{[`${H}-dropdown-${j}`]:"rtl"===j},c,W),er=(0,P.Z)(e=>{var t;return null!==(t=null!=B?B:g)&&void 0!==t?t:e}),eo=a.useContext(e7.Z),ei=v()({[`${H}-lg`]:"large"===er,[`${H}-sm`]:"small"===er,[`${H}-rtl`]:"rtl"===j,[`${H}-borderless`]:!i,[`${H}-in-form-item`]:U},v()({[`${H}-status-success`]:"success"===Y,[`${H}-status-warning`]:"warning"===Y,[`${H}-status-error`]:"error"===Y,[`${H}-status-validating`]:"validating"===Y,[`${H}-has-feedback`]:X}),L,l,c,W),ea=a.useMemo(()=>void 0!==m?m:"rtl"===j?"bottomRight":"bottomLeft",[m,j]),el=y||tj(N);return A(a.createElement(e6,Object.assign({ref:t,virtual:k,showSearch:null==T?void 0:T.showSearch},et,{dropdownMatchSelectWidth:K,builtinPlacements:el,transitionName:(0,e5.mL)(D,(0,e5.q0)(m),C.transitionName),listHeight:p,listItemHeight:f,mode:_,prefixCls:H,placement:ea,direction:j,inputIcon:J,menuItemSelectedIcon:Q,removeIcon:q,clearIcon:ee,notFoundContent:n,className:ei,getPopupContainer:s||I,dropdownClassName:en,showArrow:X||V,disabled:null!=h?h:eo})))});tG.SECRET_COMBOBOX_MODE_DO_NOT_USE=tU,tG.Option=eP,tG.OptGroup=ez,tG._InternalPanelDoNotUseOrYouWillBeFired=function(e){let{prefixCls:t,style:n}=e,i=a.useRef(null),[l,c]=a.useState(0),[s,u]=a.useState(0),[d,p]=(0,F.Z)(!1,{value:e.open}),{getPrefixCls:m}=a.useContext(z.E_),f=m("select",t);a.useEffect(()=>{if(p(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;c(t.offsetHeight+8),u(t.offsetWidth)}),t=setInterval(()=>{var n;let o=r?`.${r(f)}`:`.${f}-dropdown`,a=null===(n=i.current)||void 0===n?void 0:n.querySelector(o);a&&(clearInterval(t),e.observe(a))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let g=Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},n),{margin:0}),open:d,visible:d,getPopupContainer:()=>i.current});return o&&(g=o(g)),a.createElement(e4.ZP,{theme:{token:{motion:!1}}},a.createElement("div",{ref:i,style:{paddingBottom:l,position:"relative",minWidth:s}},a.createElement(tG,Object.assign({},g))))};let tY=e=>a.createElement(tG,Object.assign({},e,{showSearch:!0,size:"small"})),tJ=e=>a.createElement(tG,Object.assign({},e,{showSearch:!0,size:"middle"}));tY.Option=tG.Option,tJ.Option=tG.Option;let tQ=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),tq=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),t0=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),t1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},tq((0,tt.TS)(e,{inputBorderHoverColor:e.colorBorder})))}),t2=e=>{let{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:r,borderRadius:o}},t3=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),t6=(e,t)=>{let{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:i,colorWarningOutline:a,colorErrorBorderHover:l,colorWarningBorderHover:c}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":Object.assign({},t0((0,tt.TS)(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:i}))),[`${n}-prefix, ${n}-suffix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:c},"&:focus, &-focused":Object.assign({},t0((0,tt.TS)(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:a}))),[`${n}-prefix, ${n}-suffix`]:{color:o}}}},t4=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},tQ(e.colorTextPlaceholder)),{"&:hover":Object.assign({},tq(e)),"&:focus, &-focused":Object.assign({},t0(e)),"&-disabled, &[disabled]":Object.assign({},t1(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},t2(e)),"&-sm":Object.assign({},t3(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),t5=e=>{let{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},t2(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},t3(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,td.dF)()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${t}-affix-wrapper, - & > ${t}-number-affix-wrapper, - & > ${n}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, - & > ${n}-select-auto-complete ${t}, - & > ${n}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${n}-select:first-child > ${n}-select-selector, - & > ${n}-select-auto-complete:first-child ${t}, - & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${n}-select:last-child > ${n}-select-selector, - & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},t9=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=(n-2*r-16)/2;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,td.Wf)(e)),t4(e)),t6(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},t7=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}}}},t8=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t4(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},tq(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),t7(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),t6(e,`${t}-affix-wrapper`))}},ne=e=>{let{componentCls:t,colorError:n,colorWarning:r,borderRadiusLG:o,borderRadiusSM:i}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},(0,td.Wf)(e)),t5(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:i}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-disabled":{[`${t}-group-addon`]:Object.assign({},t1(e))},[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},nt=e=>{let{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function nn(e){return(0,tt.TS)(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}let nr=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:-e.fontSize*e.lineHeight,insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${r}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:n}},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};(0,te.Z)("Input",e=>{let t=nn(e);return[t9(t),nr(t),t8(t),ne(t),nt(t),(0,tp.c)(t)]});let no=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` - &:hover ${t}-item:not(${t}-item-active), - &:active ${t}-item:not(${t}-item-active), - &:hover ${t}-item-link, - &:active ${t}-item-link - `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ni=e=>{let{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:`${e.itemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:`${e.itemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,input:Object.assign(Object.assign({},t3(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},na=e=>{let{componentCls:t}=e;return{[` - &${t}-simple ${t}-prev, - &${t}-simple ${t}-next - `]:{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:`${e.itemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},nl=e=>{let{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},(0,td.oN)(e))},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:`${e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:Object.assign({},(0,td.oN)(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},t4(e)),{width:1.25*e.controlHeightLG,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},nc=e=>{let{componentCls:t}=e;return{[`${t}-item`]:Object.assign(Object.assign({display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:`${e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},(0,td.Qy)(e)),{"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},ns=e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,td.Wf)(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.itemSize-2}px`,verticalAlign:"middle"}}),nc(e)),nl(e)),na(e)),ni(e)),no(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},nu=e=>{let{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}};var nd=(0,te.Z)("Pagination",e=>{let t=(0,tt.TS)(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:1.1*e.controlHeightLG,paginationItemPaddingInline:1.5*e.marginXXS,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},nn(e));return[ns(t),e.wireframe&&nu(t)]},e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0})),np=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},nm=e=>{var{prefixCls:t,selectPrefixCls:n,className:r,rootClassName:o,size:i,locale:l,selectComponentClass:c,responsive:u,showSizeChanger:p}=e,f=np(e,["prefixCls","selectPrefixCls","className","rootClassName","size","locale","selectComponentClass","responsive","showSizeChanger"]);let{xs:h}=L(u),{getPrefixCls:b,direction:S,pagination:$={}}=a.useContext(z.E_),y=b("pagination",t),[x,E]=nd(y),w=null!=p?p:$.showSizeChanger,C=a.useMemo(()=>{let e=a.createElement("span",{className:`${y}-item-ellipsis`},"•••"),t=a.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===S?a.createElement(g,null):a.createElement(m,null)),n=a.createElement("button",{className:`${y}-item-link`,type:"button",tabIndex:-1},"rtl"===S?a.createElement(m,null):a.createElement(g,null)),r=a.createElement("a",{className:`${y}-item-link`},a.createElement("div",{className:`${y}-item-container`},"rtl"===S?a.createElement(d,{className:`${y}-item-link-icon`}):a.createElement(s,{className:`${y}-item-link-icon`}),e)),o=a.createElement("a",{className:`${y}-item-link`},a.createElement("div",{className:`${y}-item-container`},"rtl"===S?a.createElement(s,{className:`${y}-item-link-icon`}):a.createElement(d,{className:`${y}-item-link-icon`}),e));return{prevIcon:t,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:o}},[S,y]),[I]=(0,A.Z)("Pagination",N.Z),O=Object.assign(Object.assign({},I),l),Z=(0,P.Z)(i),R="small"===Z||!!(h&&!Z&&u),k=b("select",n),T=v()({[`${y}-mini`]:R,[`${y}-rtl`]:"rtl"===S},r,o,E);return x(a.createElement(M,Object.assign({},C,f,{prefixCls:y,selectPrefixCls:k,className:T,selectComponentClass:c||(R?tY:tJ),locale:O,showSizeChanger:w})))}},23910:function(e,t,n){n.d(t,{Z:function(){return O}});var r=n(8683),o=n.n(r),i=n(86006);let a=e=>e?"function"==typeof e?e():e:null;var l=n(80716),c=n(79746),s=n(15241),u=n(99753),d=n(98663),p=n(87270),m=n(20798),f=n(83688),g=n(40650),h=n(70721);let v=e=>{let{componentCls:t,popoverColor:n,minWidth:r,fontWeightStrong:o,popoverPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,marginXS:u,colorBgElevated:p,popoverBg:f}=e;return[{[t]:Object.assign(Object.assign({},(0,d.Wf)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":p,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o},[`${t}-inner-content`]:{color:n}})},(0,m.ZP)(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},b=e=>{let{componentCls:t}=e;return{[t]:f.i.map(n=>{let r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},S=e=>{let{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:i,controlHeight:a,fontSize:l,lineHeight:c,padding:s}=e,u=a-Math.round(l*c);return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${u/2}px ${s}px ${u/2-n}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${i}px ${s}px`}}}};var $=(0,g.Z)("Popover",e=>{let{colorBgElevated:t,colorText:n,wireframe:r}=e,o=(0,h.TS)(e,{popoverPadding:12,popoverBg:t,popoverColor:n});return[v(o),b(o),r&&S(o),(0,p._y)(o,"zoom-big")]},e=>({width:177,minWidth:177,zIndexPopup:e.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]}),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let x=(e,t,n)=>{if(t||n)return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${e}-title`},a(t)),i.createElement("div",{className:`${e}-inner-content`},a(n)))};function E(e){let{hashId:t,prefixCls:n,className:r,style:a,placement:l="top",title:c,content:s,children:d}=e;return i.createElement("div",{className:o()(t,n,`${n}-pure`,`${n}-placement-${l}`,r),style:a},i.createElement("div",{className:`${n}-arrow`}),i.createElement(u.G,Object.assign({},e,{className:t,prefixCls:n}),d||x(n,c,s)))}var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let C=e=>{let{title:t,content:n,prefixCls:r}=e;return i.createElement(i.Fragment,null,t&&i.createElement("div",{className:`${r}-title`},a(t)),i.createElement("div",{className:`${r}-inner-content`},a(n)))},I=i.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:a,overlayClassName:u,placement:d="top",trigger:p="hover",mouseEnterDelay:m=.1,mouseLeaveDelay:f=.1,overlayStyle:g={}}=e,h=w(e,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:v}=i.useContext(c.E_),b=v("popover",n),[S,y]=$(b),x=v(),E=o()(u,y);return S(i.createElement(s.Z,Object.assign({placement:d,trigger:p,mouseEnterDelay:m,mouseLeaveDelay:f,overlayStyle:g},h,{prefixCls:b,overlayClassName:E,ref:t,overlay:r||a?i.createElement(C,{prefixCls:b,title:r,content:a}):null,transitionName:(0,l.mL)(x,"zoom-big",h.transitionName),"data-popover-inject":!0})))});I._InternalPanelDoNotUseOrYouWillBeFired=function(e){let{prefixCls:t}=e,n=y(e,["prefixCls"]),{getPrefixCls:r}=i.useContext(c.E_),o=r("popover",t),[a,l]=$(o);return a(i.createElement(E,Object.assign({},n,{prefixCls:o,hashId:l})))};var O=I},53279:function(e,t,n){n.d(t,{Qt:function(){return l},Uw:function(){return a},fJ:function(){return i},ly:function(){return c},oN:function(){return f}});var r=n(11717),o=n(29138);let i=new r.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new r.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new r.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new r.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s=new r.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new r.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new r.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new r.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),m={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:l,outKeyframes:c},"slide-left":{inKeyframes:s,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:p}},f=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=m[t];return[(0,o.R)(r,i,a,e.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},35960:function(e,t,n){n.d(t,{Z:function(){return R}});var r=n(40431),o=n(88684),i=n(60456),a=n(89301),l=n(86006),c=n(8683),s=n.n(c),u=n(29333),d=n(38358),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],m=void 0,f=l.forwardRef(function(e,t){var n,i=e.prefixCls,c=e.invalidate,d=e.item,f=e.renderItem,g=e.responsive,h=e.responsiveDisabled,v=e.registerSize,b=e.itemKey,S=e.className,$=e.style,y=e.children,x=e.display,E=e.order,w=e.component,C=void 0===w?"div":w,I=(0,a.Z)(e,p),O=g&&!x;l.useEffect(function(){return function(){v(b,null)}},[]);var Z=f&&d!==m?f(d):y;c||(n={opacity:O?0:1,height:O?0:m,overflowY:O?"hidden":m,order:g?E:m,pointerEvents:O?"none":m,position:O?"absolute":m});var R={};O&&(R["aria-hidden"]=!0);var k=l.createElement(C,(0,r.Z)({className:s()(!c&&i,S),style:(0,o.Z)((0,o.Z)({},n),$)},R,I,{ref:t}),Z);return g&&(k=l.createElement(u.Z,{onResize:function(e){v(b,e.offsetWidth)},disabled:h},k)),k});f.displayName="Item";var g=n(23254),h=n(8431),v=n(66643);function b(e,t){var n=l.useState(t),r=(0,i.Z)(n,2),o=r[0],a=r[1];return[o,(0,g.Z)(function(t){e(function(){a(t)})})]}var S=l.createContext(null),$=["component"],y=["className"],x=["className"],E=l.forwardRef(function(e,t){var n=l.useContext(S);if(!n){var o=e.component,i=void 0===o?"div":o,c=(0,a.Z)(e,$);return l.createElement(i,(0,r.Z)({},c,{ref:t}))}var u=n.className,d=(0,a.Z)(n,y),p=e.className,m=(0,a.Z)(e,x);return l.createElement(S.Provider,{value:null},l.createElement(f,(0,r.Z)({ref:t,className:s()(u,p)},d,m)))});E.displayName="RawItem";var w=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],C="responsive",I="invalidate";function O(e){return"+ ".concat(e.length," ...")}var Z=l.forwardRef(function(e,t){var n,c,p=e.prefixCls,m=void 0===p?"rc-overflow":p,g=e.data,$=void 0===g?[]:g,y=e.renderItem,x=e.renderRawItem,E=e.itemKey,Z=e.itemWidth,R=void 0===Z?10:Z,k=e.ssr,M=e.style,N=e.className,z=e.maxCount,P=e.renderRest,T=e.renderRawRest,H=e.suffix,D=e.component,j=void 0===D?"div":D,B=e.itemComponent,L=e.onVisibleChange,A=(0,a.Z)(e,w),W="full"===k,_=(n=l.useRef(null),function(e){n.current||(n.current=[],function(e){if("undefined"==typeof MessageChannel)(0,v.Z)(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,h.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})})),n.current.push(e)}),V=b(_,null),K=(0,i.Z)(V,2),F=K[0],X=K[1],U=F||0,G=b(_,new Map),Y=(0,i.Z)(G,2),J=Y[0],Q=Y[1],q=b(_,0),ee=(0,i.Z)(q,2),et=ee[0],en=ee[1],er=b(_,0),eo=(0,i.Z)(er,2),ei=eo[0],ea=eo[1],el=b(_,0),ec=(0,i.Z)(el,2),es=ec[0],eu=ec[1],ed=(0,l.useState)(null),ep=(0,i.Z)(ed,2),em=ep[0],ef=ep[1],eg=(0,l.useState)(null),eh=(0,i.Z)(eg,2),ev=eh[0],eb=eh[1],eS=l.useMemo(function(){return null===ev&&W?Number.MAX_SAFE_INTEGER:ev||0},[ev,F]),e$=(0,l.useState)(!1),ey=(0,i.Z)(e$,2),ex=ey[0],eE=ey[1],ew="".concat(m,"-item"),eC=Math.max(et,ei),eI=z===C,eO=$.length&&eI,eZ=z===I,eR=eO||"number"==typeof z&&$.length>z,ek=(0,l.useMemo)(function(){var e=$;return eO?e=null===F&&W?$:$.slice(0,Math.min($.length,U/R)):"number"==typeof z&&(e=$.slice(0,z)),e},[$,R,F,z,eO]),eM=(0,l.useMemo)(function(){return eO?$.slice(eS+1):$.slice(ek.length)},[$,ek,eO,eS]),eN=(0,l.useCallback)(function(e,t){var n;return"function"==typeof E?E(e):null!==(n=E&&(null==e?void 0:e[E]))&&void 0!==n?n:t},[E]),ez=(0,l.useCallback)(y||function(e){return e},[y]);function eP(e,t,n){(ev!==e||void 0!==t&&t!==em)&&(eb(e),n||(eE(e<$.length-1),null==L||L(e)),void 0!==t&&ef(t))}function eT(e,t){Q(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function eH(e){return J.get(eN(ek[e],e))}(0,d.Z)(function(){if(U&&"number"==typeof eC&&ek){var e=es,t=ek.length,n=t-1;if(!t){eP(0,null);return}for(var r=0;rU){eP(r-1,e-o-es+ei);break}}H&&eH(0)+es>U&&ef(null)}},[U,J,ei,es,eN,ek]);var eD=ex&&!!eM.length,ej={};null!==em&&eO&&(ej={position:"absolute",left:em,top:0});var eB={prefixCls:ew,responsive:eO,component:B,invalidate:eZ},eL=x?function(e,t){var n=eN(e,t);return l.createElement(S.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},eB),{},{order:t,item:e,itemKey:n,registerSize:eT,display:t<=eS})},x(e,t))}:function(e,t){var n=eN(e,t);return l.createElement(f,(0,r.Z)({},eB,{order:t,key:n,item:e,renderItem:ez,itemKey:n,registerSize:eT,display:t<=eS}))},eA={order:eD?eS:Number.MAX_SAFE_INTEGER,className:"".concat(ew,"-rest"),registerSize:function(e,t){ea(t),en(ei)},display:eD};if(T)T&&(c=l.createElement(S.Provider,{value:(0,o.Z)((0,o.Z)({},eB),eA)},T(eM)));else{var eW=P||O;c=l.createElement(f,(0,r.Z)({},eB,eA),"function"==typeof eW?eW(eM):eW)}var e_=l.createElement(j,(0,r.Z)({className:s()(!eZ&&m,N),style:M,ref:t},A),ek.map(eL),eR?c:null,H&&l.createElement(f,(0,r.Z)({},eB,{responsive:eI,responsiveDisabled:!eO,order:eS,className:"".concat(ew,"-suffix"),registerSize:function(e,t){eu(t)},display:!0,style:ej}),H));return eI&&(e_=l.createElement(u.Z,{onResize:function(e,t){X(t.clientWidth)},disabled:!eO},e_)),e_});Z.displayName="Overflow",Z.Item=E,Z.RESPONSIVE=C,Z.INVALIDATE=I;var R=Z}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/2274-8dc83f4d32a012b3.js b/pilot/server/static/_next/static/chunks/2149-aecea03e84eb1ce0.js similarity index 56% rename from pilot/server/static/_next/static/chunks/2274-8dc83f4d32a012b3.js rename to pilot/server/static/_next/static/chunks/2149-aecea03e84eb1ce0.js index bf6a94dff..93fd0782b 100644 --- a/pilot/server/static/_next/static/chunks/2274-8dc83f4d32a012b3.js +++ b/pilot/server/static/_next/static/chunks/2149-aecea03e84eb1ce0.js @@ -1,19 +1,17 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2274],{31515:function(e,t,r){r.d(t,{Z:function(){return l}});var o=r(40431),n=r(86006),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i=r(1240),l=n.forwardRef(function(e,t){return n.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},72474:function(e,t,r){r.d(t,{Z:function(){return l}});var o=r(40431),n=r(86006),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},i=r(1240),l=n.forwardRef(function(e,t){return n.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},59534:function(e,t,r){var o=r(78997);t.Z=void 0;var n=o(r(76906)),a=r(9268),i=(0,n.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined");t.Z=i},47611:function(e,t,r){r.d(t,{Z:function(){return D}});var o=r(46750),n=r(40431),a=r(86006),i=r(53832),l=r(47562),c=r(24263),s=r(21454),d=r(99179),u=r(50645),p=r(88930),m=r(47093),h=r(326),f=r(18587);function g(e){return(0,f.d6)("MuiSwitch",e)}let v=(0,f.sI)("MuiSwitch",["root","checked","disabled","action","input","thumb","track","focusVisible","readOnly","colorPrimary","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid","startDecorator","endDecorator"]);var b=r(31857),y=r(9268);let $=["checked","defaultChecked","disabled","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","id","color","variant","size","startDecorator","endDecorator","component","slots","slotProps"],w=e=>{let{checked:t,disabled:r,focusVisible:o,readOnly:n,color:a,variant:c}=e,s={root:["root",t&&"checked",r&&"disabled",o&&"focusVisible",n&&"readOnly",c&&`variant${(0,i.Z)(c)}`,a&&`color${(0,i.Z)(a)}`],thumb:["thumb",t&&"checked"],track:["track",t&&"checked"],action:["action",o&&"focusVisible"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(s,g,{})},x=({theme:e,ownerState:t})=>(r={})=>{var o;let n=(null==(o=e.variants[`${t.variant}${r.state||""}`])?void 0:o[t.color])||{};return{"--Switch-trackBackground":n.backgroundColor,"--Switch-trackColor":n.color,"--Switch-trackBorderColor":"outlined"===t.variant?n.borderColor:"currentColor","--Switch-thumbBackground":n.color,"--Switch-thumbColor":n.backgroundColor}},S=(0,u.Z)("div",{name:"JoySwitch",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;let o=x({theme:e,ownerState:t});return(0,n.Z)({"--variant-borderWidth":null==(r=e.variants[t.variant])||null==(r=r[t.color])?void 0:r["--variant-borderWidth"],"--Switch-trackRadius":e.vars.radius.lg,"--Switch-thumbShadow":"soft"===t.variant?"none":"0 0 0 1px var(--Switch-trackBackground)"},"sm"===t.size&&{"--Switch-trackWidth":"40px","--Switch-trackHeight":"20px","--Switch-thumbSize":"12px","--Switch-gap":"6px",fontSize:e.vars.fontSize.sm},"md"===t.size&&{"--Switch-trackWidth":"48px","--Switch-trackHeight":"24px","--Switch-thumbSize":"16px","--Switch-gap":"8px",fontSize:e.vars.fontSize.md},"lg"===t.size&&{"--Switch-trackWidth":"64px","--Switch-trackHeight":"32px","--Switch-thumbSize":"24px","--Switch-gap":"12px"},{"--unstable_paddingBlock":"max((var(--Switch-trackHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Switch-thumbSize)) / 2, 0px)","--Switch-thumbRadius":"max(var(--Switch-trackRadius) - var(--unstable_paddingBlock), min(var(--unstable_paddingBlock) / 2, var(--Switch-trackRadius) / 2))","--Switch-thumbWidth":"var(--Switch-thumbSize)","--Switch-thumbOffset":"max((var(--Switch-trackHeight) - var(--Switch-thumbSize)) / 2, 0px)"},o(),{"&:hover":(0,n.Z)({},o({state:"Hover"})),[`&.${v.checked}`]:(0,n.Z)({},o(),{"&:hover":(0,n.Z)({},o({state:"Hover"}))}),[`&.${v.disabled}`]:(0,n.Z)({pointerEvents:"none",color:e.vars.palette.text.tertiary},o({state:"Disabled"})),display:"inline-flex",alignItems:"center",alignSelf:"center",fontFamily:e.vars.fontFamily.body,position:"relative",padding:"calc((var(--Switch-thumbSize) / 2) - (var(--Switch-trackHeight) / 2)) calc(-1 * var(--Switch-thumbOffset))",backgroundColor:"initial",border:"none",margin:"var(--unstable_Switch-margin)"})}),k=(0,u.Z)("div",{name:"JoySwitch",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e})=>({borderRadius:"var(--Switch-trackRadius)",position:"absolute",top:0,left:0,bottom:0,right:0,[e.focus.selector]:e.focus.default})),C=(0,u.Z)("input",{name:"JoySwitch",slot:"Input",overridesResolver:(e,t)=>t.input})({margin:0,height:"100%",width:"100%",opacity:0,position:"absolute",cursor:"pointer"}),E=(0,u.Z)("span",{name:"JoySwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>(0,n.Z)({position:"relative",color:"var(--Switch-trackColor)",height:"var(--Switch-trackHeight)",width:"var(--Switch-trackWidth)",display:"flex",flexShrink:0,justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",border:"var(--variant-borderWidth, 0px) solid",borderColor:"var(--Switch-trackBorderColor)",backgroundColor:"var(--Switch-trackBackground)",borderRadius:"var(--Switch-trackRadius)",fontFamily:e.vars.fontFamily.body},"sm"===t.size&&{fontSize:e.vars.fontSize.xs},"md"===t.size&&{fontSize:e.vars.fontSize.sm},"lg"===t.size&&{fontSize:e.vars.fontSize.md})),Z=(0,u.Z)("span",{name:"JoySwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})({"--Icon-fontSize":"calc(var(--Switch-thumbSize) * 0.75)",display:"inline-flex",justifyContent:"center",alignItems:"center",position:"absolute",top:"50%",left:"calc(50% - var(--Switch-trackWidth) / 2 + var(--Switch-thumbWidth) / 2 + var(--Switch-thumbOffset))",transform:"translate(-50%, -50%)",width:"var(--Switch-thumbWidth)",height:"var(--Switch-thumbSize)",borderRadius:"var(--Switch-thumbRadius)",boxShadow:"var(--Switch-thumbShadow)",color:"var(--Switch-thumbColor)",backgroundColor:"var(--Switch-thumbBackground)",[`&.${v.checked}`]:{left:"calc(50% + var(--Switch-trackWidth) / 2 - var(--Switch-thumbWidth) / 2 - var(--Switch-thumbOffset))"}}),O=(0,u.Z)("span",{name:"JoySwitch",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"var(--Switch-gap)"}),T=(0,u.Z)("span",{name:"JoySwitch",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"var(--Switch-gap)"}),z=a.forwardRef(function(e,t){var r,i,l,u,f;let g=(0,p.Z)({props:e,name:"JoySwitch"}),{checked:v,defaultChecked:x,disabled:z,onBlur:D,onChange:I,onFocus:R,onFocusVisible:j,readOnly:N,id:H,color:M,variant:P="solid",size:F="md",startDecorator:B,endDecorator:L,component:W,slots:A={},slotProps:_={}}=g,X=(0,o.Z)(g,$),U=a.useContext(b.Z),V=null!=(r=null!=(i=e.disabled)?i:null==U?void 0:U.disabled)?r:z,J=null!=(l=null!=(u=e.size)?u:null==U?void 0:U.size)?l:F,{getColor:q}=(0,m.VT)(P),G=q(e.color,null!=U&&U.error?"danger":null!=(f=null==U?void 0:U.color)?f:M),{getInputProps:K,checked:Q,disabled:Y,focusVisible:ee,readOnly:et}=function(e){let{checked:t,defaultChecked:r,disabled:o,onBlur:i,onChange:l,onFocus:u,onFocusVisible:p,readOnly:m,required:h}=e,[f,g]=(0,c.Z)({controlled:t,default:!!r,name:"Switch",state:"checked"}),v=e=>t=>{var r;t.nativeEvent.defaultPrevented||(g(t.target.checked),null==l||l(t),null==(r=e.onChange)||r.call(e,t))},{isFocusVisibleRef:b,onBlur:y,onFocus:$,ref:w}=(0,s.Z)(),[x,S]=a.useState(!1);o&&x&&S(!1),a.useEffect(()=>{b.current=x},[x,b]);let k=a.useRef(null),C=e=>t=>{var r;k.current||(k.current=t.currentTarget),$(t),!0===b.current&&(S(!0),null==p||p(t)),null==u||u(t),null==(r=e.onFocus)||r.call(e,t)},E=e=>t=>{var r;y(t),!1===b.current&&S(!1),null==i||i(t),null==(r=e.onBlur)||r.call(e,t)},Z=(0,d.Z)(w,k);return{checked:f,disabled:!!o,focusVisible:x,getInputProps:(e={})=>(0,n.Z)({checked:t,defaultChecked:r,disabled:o,readOnly:m,ref:Z,required:h,type:"checkbox"},e,{onChange:v(e),onFocus:C(e),onBlur:E(e)}),inputRef:Z,readOnly:!!m}}({checked:v,defaultChecked:x,disabled:V,onBlur:D,onChange:I,onFocus:R,onFocusVisible:j,readOnly:N}),er=(0,n.Z)({},g,{id:H,checked:Q,disabled:Y,focusVisible:ee,readOnly:et,color:Q?G||"primary":G||"neutral",variant:P,size:J}),eo=w(er),en=(0,n.Z)({},X,{component:W,slots:A,slotProps:_}),[ea,ei]=(0,h.Z)("root",{ref:t,className:eo.root,elementType:S,externalForwardedProps:en,ownerState:er}),[el,ec]=(0,h.Z)("startDecorator",{additionalProps:{"aria-hidden":!0},className:eo.startDecorator,elementType:O,externalForwardedProps:en,ownerState:er}),[es,ed]=(0,h.Z)("endDecorator",{additionalProps:{"aria-hidden":!0},className:eo.endDecorator,elementType:T,externalForwardedProps:en,ownerState:er}),[eu,ep]=(0,h.Z)("track",{className:eo.track,elementType:E,externalForwardedProps:en,ownerState:er}),[em,eh]=(0,h.Z)("thumb",{className:eo.thumb,elementType:Z,externalForwardedProps:en,ownerState:er}),[ef,eg]=(0,h.Z)("action",{className:eo.action,elementType:k,externalForwardedProps:en,ownerState:er}),[ev,eb]=(0,h.Z)("input",{additionalProps:{id:null!=H?H:null==U?void 0:U.htmlFor,"aria-describedby":null==U?void 0:U["aria-describedby"]},className:eo.input,elementType:C,externalForwardedProps:en,getSlotProps:K,ownerState:er});return(0,y.jsxs)(ea,(0,n.Z)({},ei,{children:[B&&(0,y.jsx)(el,(0,n.Z)({},ec,{children:"function"==typeof B?B(er):B})),(0,y.jsxs)(eu,(0,n.Z)({},ep,{children:[null==ep?void 0:ep.children,(0,y.jsx)(em,(0,n.Z)({},eh))]})),(0,y.jsx)(ef,(0,n.Z)({},eg,{children:(0,y.jsx)(ev,(0,n.Z)({},eb))})),L&&(0,y.jsx)(es,(0,n.Z)({},ed,{children:"function"==typeof L?L(er):L}))]}))});var D=z},96323:function(e,t,r){r.d(t,{Z:function(){return j}});var o=r(46750),n=r(40431),a=r(86006),i=r(53832),l=r(47562),c=r(8431),s=r(99179),d=r(30165),u=r(22099),p=r(11059),m=r(9268);let h=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}let g={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function v(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}let b=a.forwardRef(function(e,t){let{onChange:r,maxRows:i,minRows:l=1,style:b,value:y}=e,$=(0,o.Z)(e,h),{current:w}=a.useRef(null!=y),x=a.useRef(null),S=(0,s.Z)(t,x),k=a.useRef(null),C=a.useRef(0),[E,Z]=a.useState({outerHeightStyle:0}),O=a.useCallback(()=>{let t=x.current,r=(0,d.Z)(t),o=r.getComputedStyle(t);if("0px"===o.width)return{outerHeightStyle:0};let n=k.current;n.style.width=o.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");let a=o.boxSizing,c=f(o.paddingBottom)+f(o.paddingTop),s=f(o.borderBottomWidth)+f(o.borderTopWidth),u=n.scrollHeight;n.value="x";let p=n.scrollHeight,m=u;l&&(m=Math.max(Number(l)*p,m)),i&&(m=Math.min(Number(i)*p,m)),m=Math.max(m,p);let h=m+("border-box"===a?c+s:0),g=1>=Math.abs(m-u);return{outerHeightStyle:h,overflow:g}},[i,l,e.placeholder]),T=(e,t)=>{let{outerHeightStyle:r,overflow:o}=t;return C.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==o)?(C.current+=1,{overflow:o,outerHeightStyle:r}):e},z=a.useCallback(()=>{let e=O();v(e)||Z(t=>T(t,e))},[O]),D=()=>{let e=O();v(e)||c.flushSync(()=>{Z(t=>T(t,e))})};return a.useEffect(()=>{let e;let t=(0,u.Z)(()=>{C.current=0,x.current&&D()}),r=x.current,o=(0,d.Z)(r);return o.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(r),()=>{t.clear(),o.removeEventListener("resize",t),e&&e.disconnect()}}),(0,p.Z)(()=>{z()}),a.useEffect(()=>{C.current=0},[y]),(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("textarea",(0,n.Z)({value:y,onChange:e=>{C.current=0,w||z(),r&&r(e)},ref:S,rows:l,style:(0,n.Z)({height:E.outerHeightStyle,overflow:E.overflow?"hidden":void 0},b)},$)),(0,m.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,n.Z)({},g.shadow,b,{paddingTop:0,paddingBottom:0})})]})});var y=r(50645),$=r(88930),w=r(47093),x=r(326),S=r(18587);function k(e){return(0,S.d6)("MuiTextarea",e)}let C=(0,S.sI)("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]);var E=r(17795);let Z=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],O=e=>{let{disabled:t,variant:r,color:o,size:n}=e,a={root:["root",t&&"disabled",r&&`variant${(0,i.Z)(r)}`,o&&`color${(0,i.Z)(o)}`,n&&`size${(0,i.Z)(n)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(a,k,{})},T=(0,y.Z)("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,o,a,i,l;let c=null==(r=e.variants[`${t.variant}`])?void 0:r[t.color];return[(0,n.Z)({"--Textarea-radius":e.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.5,"--Textarea-focused":"0","--Textarea-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Textarea-focusedHighlight":e.vars.palette.focusVisible}:{"--Textarea-focusedHighlight":null==(o=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:o[500]},"sm"===t.size&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.25rem"},"md"===t.size&&{"--Textarea-minHeight":"2.5rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(2rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===t.size&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.75rem"},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box",minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)",fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md,lineHeight:e.vars.lineHeight.md},"sm"===t.size&&{fontSize:e.vars.fontSize.sm,lineHeight:e.vars.lineHeight.sm},{"&:before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),(0,n.Z)({},c,{backgroundColor:null!=(a=null==c?void 0:c.backgroundColor)?a:e.vars.palette.background.surface,"&:hover":(0,n.Z)({},null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],{backgroundColor:null,cursor:"text"}),[`&.${C.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color],"&:focus-within::before":{"--Textarea-focused":"1"}})]}),z=(0,y.Z)(b,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(e,t)=>t.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),D=(0,y.Z)("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({theme:e})=>({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:e.vars.palette.text.tertiary,cursor:"initial"})),I=(0,y.Z)("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({theme:e})=>({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:e.vars.palette.text.tertiary,cursor:"initial"})),R=a.forwardRef(function(e,t){var r,a,i,l,c,s,d;let u=(0,$.Z)({props:e,name:"JoyTextarea"}),p=(0,E.Z)(u,C),{propsToForward:h,rootStateClasses:f,inputStateClasses:g,getRootProps:v,getInputProps:b,formControl:y,focused:S,error:k=!1,disabled:R=!1,size:j="md",color:N="neutral",variant:H="outlined",startDecorator:M,endDecorator:P,minRows:F,maxRows:B,component:L,slots:W={},slotProps:A={}}=p,_=(0,o.Z)(p,Z),X=null!=(r=null!=(a=e.disabled)?a:null==y?void 0:y.disabled)?r:R,U=null!=(i=null!=(l=e.error)?l:null==y?void 0:y.error)?i:k,V=null!=(c=null!=(s=e.size)?s:null==y?void 0:y.size)?c:j,{getColor:J}=(0,w.VT)(H),q=J(e.color,U?"danger":null!=(d=null==y?void 0:y.color)?d:N),G=(0,n.Z)({},u,{color:q,disabled:X,error:U,focused:S,size:V,variant:H}),K=O(G),Q=(0,n.Z)({},_,{component:L,slots:W,slotProps:A}),[Y,ee]=(0,x.Z)("root",{ref:t,className:[K.root,f],elementType:T,externalForwardedProps:Q,getSlotProps:v,ownerState:G}),[et,er]=(0,x.Z)("textarea",{additionalProps:{id:null==y?void 0:y.htmlFor,"aria-describedby":null==y?void 0:y["aria-describedby"]},className:[K.textarea,g],elementType:z,internalForwardedProps:(0,n.Z)({},h,{minRows:F,maxRows:B}),externalForwardedProps:Q,getSlotProps:b,ownerState:G}),[eo,en]=(0,x.Z)("startDecorator",{className:K.startDecorator,elementType:D,externalForwardedProps:Q,ownerState:G}),[ea,ei]=(0,x.Z)("endDecorator",{className:K.endDecorator,elementType:I,externalForwardedProps:Q,ownerState:G});return(0,m.jsxs)(Y,(0,n.Z)({},ee,{children:[M&&(0,m.jsx)(eo,(0,n.Z)({},en,{children:M})),(0,m.jsx)(et,(0,n.Z)({},er)),P&&(0,m.jsx)(ea,(0,n.Z)({},ei,{children:P}))]}))});var j=R},57406:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},96390:function(e,t,r){r.d(t,{J$:function(){return l}});var o=r(84596),n=r(29138);let a=new o.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new o.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:r}=e,o=`${r}-fade`,l=t?"&":"";return[(0,n.R)(o,a,i,e.motionDurationMid,t),{[` +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2149],{72474:function(e,t,r){r.d(t,{Z:function(){return l}});var o=r(40431),n=r(86006),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},i=r(1240),l=n.forwardRef(function(e,t){return n.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},59534:function(e,t,r){var o=r(78997);t.Z=void 0;var n=o(r(76906)),a=r(9268),i=(0,n.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined");t.Z=i},68949:function(e,t,r){var o=r(78997);t.Z=void 0;var n=o(r(76906)),a=r(9268),i=(0,n.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");t.Z=i},47611:function(e,t,r){r.d(t,{Z:function(){return j}});var o=r(46750),n=r(40431),a=r(86006),i=r(53832),l=r(47562),c=r(24263),s=r(21454),d=r(99179),u=r(50645),p=r(88930),m=r(47093),h=r(326),f=r(18587);function g(e){return(0,f.d6)("MuiSwitch",e)}let v=(0,f.sI)("MuiSwitch",["root","checked","disabled","action","input","thumb","track","focusVisible","readOnly","colorPrimary","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid","startDecorator","endDecorator"]);var b=r(31857),y=r(9268);let w=["checked","defaultChecked","disabled","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","id","color","variant","size","startDecorator","endDecorator","component","slots","slotProps"],x=e=>{let{checked:t,disabled:r,focusVisible:o,readOnly:n,color:a,variant:c}=e,s={root:["root",t&&"checked",r&&"disabled",o&&"focusVisible",n&&"readOnly",c&&`variant${(0,i.Z)(c)}`,a&&`color${(0,i.Z)(a)}`],thumb:["thumb",t&&"checked"],track:["track",t&&"checked"],action:["action",o&&"focusVisible"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(s,g,{})},$=({theme:e,ownerState:t})=>(r={})=>{var o;let n=(null==(o=e.variants[`${t.variant}${r.state||""}`])?void 0:o[t.color])||{};return{"--Switch-trackBackground":n.backgroundColor,"--Switch-trackColor":n.color,"--Switch-trackBorderColor":"outlined"===t.variant?n.borderColor:"currentColor","--Switch-thumbBackground":n.color,"--Switch-thumbColor":n.backgroundColor}},S=(0,u.Z)("div",{name:"JoySwitch",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;let o=$({theme:e,ownerState:t});return(0,n.Z)({"--variant-borderWidth":null==(r=e.variants[t.variant])||null==(r=r[t.color])?void 0:r["--variant-borderWidth"],"--Switch-trackRadius":e.vars.radius.lg,"--Switch-thumbShadow":"soft"===t.variant?"none":"0 0 0 1px var(--Switch-trackBackground)"},"sm"===t.size&&{"--Switch-trackWidth":"40px","--Switch-trackHeight":"20px","--Switch-thumbSize":"12px","--Switch-gap":"6px",fontSize:e.vars.fontSize.sm},"md"===t.size&&{"--Switch-trackWidth":"48px","--Switch-trackHeight":"24px","--Switch-thumbSize":"16px","--Switch-gap":"8px",fontSize:e.vars.fontSize.md},"lg"===t.size&&{"--Switch-trackWidth":"64px","--Switch-trackHeight":"32px","--Switch-thumbSize":"24px","--Switch-gap":"12px"},{"--unstable_paddingBlock":"max((var(--Switch-trackHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Switch-thumbSize)) / 2, 0px)","--Switch-thumbRadius":"max(var(--Switch-trackRadius) - var(--unstable_paddingBlock), min(var(--unstable_paddingBlock) / 2, var(--Switch-trackRadius) / 2))","--Switch-thumbWidth":"var(--Switch-thumbSize)","--Switch-thumbOffset":"max((var(--Switch-trackHeight) - var(--Switch-thumbSize)) / 2, 0px)"},o(),{"&:hover":(0,n.Z)({},o({state:"Hover"})),[`&.${v.checked}`]:(0,n.Z)({},o(),{"&:hover":(0,n.Z)({},o({state:"Hover"}))}),[`&.${v.disabled}`]:(0,n.Z)({pointerEvents:"none",color:e.vars.palette.text.tertiary},o({state:"Disabled"})),display:"inline-flex",alignItems:"center",alignSelf:"center",fontFamily:e.vars.fontFamily.body,position:"relative",padding:"calc((var(--Switch-thumbSize) / 2) - (var(--Switch-trackHeight) / 2)) calc(-1 * var(--Switch-thumbOffset))",backgroundColor:"initial",border:"none",margin:"var(--unstable_Switch-margin)"})}),k=(0,u.Z)("div",{name:"JoySwitch",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e})=>({borderRadius:"var(--Switch-trackRadius)",position:"absolute",top:0,left:0,bottom:0,right:0,[e.focus.selector]:e.focus.default})),C=(0,u.Z)("input",{name:"JoySwitch",slot:"Input",overridesResolver:(e,t)=>t.input})({margin:0,height:"100%",width:"100%",opacity:0,position:"absolute",cursor:"pointer"}),E=(0,u.Z)("span",{name:"JoySwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>(0,n.Z)({position:"relative",color:"var(--Switch-trackColor)",height:"var(--Switch-trackHeight)",width:"var(--Switch-trackWidth)",display:"flex",flexShrink:0,justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",border:"var(--variant-borderWidth, 0px) solid",borderColor:"var(--Switch-trackBorderColor)",backgroundColor:"var(--Switch-trackBackground)",borderRadius:"var(--Switch-trackRadius)",fontFamily:e.vars.fontFamily.body},"sm"===t.size&&{fontSize:e.vars.fontSize.xs},"md"===t.size&&{fontSize:e.vars.fontSize.sm},"lg"===t.size&&{fontSize:e.vars.fontSize.md})),Z=(0,u.Z)("span",{name:"JoySwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})({"--Icon-fontSize":"calc(var(--Switch-thumbSize) * 0.75)",display:"inline-flex",justifyContent:"center",alignItems:"center",position:"absolute",top:"50%",left:"calc(50% - var(--Switch-trackWidth) / 2 + var(--Switch-thumbWidth) / 2 + var(--Switch-thumbOffset))",transform:"translate(-50%, -50%)",width:"var(--Switch-thumbWidth)",height:"var(--Switch-thumbSize)",borderRadius:"var(--Switch-thumbRadius)",boxShadow:"var(--Switch-thumbShadow)",color:"var(--Switch-thumbColor)",backgroundColor:"var(--Switch-thumbBackground)",[`&.${v.checked}`]:{left:"calc(50% + var(--Switch-trackWidth) / 2 - var(--Switch-thumbWidth) / 2 - var(--Switch-thumbOffset))"}}),O=(0,u.Z)("span",{name:"JoySwitch",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"var(--Switch-gap)"}),T=(0,u.Z)("span",{name:"JoySwitch",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"var(--Switch-gap)"}),z=a.forwardRef(function(e,t){var r,i,l,u,f;let g=(0,p.Z)({props:e,name:"JoySwitch"}),{checked:v,defaultChecked:$,disabled:z,onBlur:j,onChange:D,onFocus:R,onFocusVisible:I,readOnly:N,id:H,color:P,variant:F="solid",size:M="md",startDecorator:B,endDecorator:L,component:W,slots:A={},slotProps:_={}}=g,X=(0,o.Z)(g,w),V=a.useContext(b.Z),U=null!=(r=null!=(i=e.disabled)?i:null==V?void 0:V.disabled)?r:z,J=null!=(l=null!=(u=e.size)?u:null==V?void 0:V.size)?l:M,{getColor:q}=(0,m.VT)(F),G=q(e.color,null!=V&&V.error?"danger":null!=(f=null==V?void 0:V.color)?f:P),{getInputProps:K,checked:Q,disabled:Y,focusVisible:ee,readOnly:et}=function(e){let{checked:t,defaultChecked:r,disabled:o,onBlur:i,onChange:l,onFocus:u,onFocusVisible:p,readOnly:m,required:h}=e,[f,g]=(0,c.Z)({controlled:t,default:!!r,name:"Switch",state:"checked"}),v=e=>t=>{var r;t.nativeEvent.defaultPrevented||(g(t.target.checked),null==l||l(t),null==(r=e.onChange)||r.call(e,t))},{isFocusVisibleRef:b,onBlur:y,onFocus:w,ref:x}=(0,s.Z)(),[$,S]=a.useState(!1);o&&$&&S(!1),a.useEffect(()=>{b.current=$},[$,b]);let k=a.useRef(null),C=e=>t=>{var r;k.current||(k.current=t.currentTarget),w(t),!0===b.current&&(S(!0),null==p||p(t)),null==u||u(t),null==(r=e.onFocus)||r.call(e,t)},E=e=>t=>{var r;y(t),!1===b.current&&S(!1),null==i||i(t),null==(r=e.onBlur)||r.call(e,t)},Z=(0,d.Z)(x,k);return{checked:f,disabled:!!o,focusVisible:$,getInputProps:(e={})=>(0,n.Z)({checked:t,defaultChecked:r,disabled:o,readOnly:m,ref:Z,required:h,type:"checkbox"},e,{onChange:v(e),onFocus:C(e),onBlur:E(e)}),inputRef:Z,readOnly:!!m}}({checked:v,defaultChecked:$,disabled:U,onBlur:j,onChange:D,onFocus:R,onFocusVisible:I,readOnly:N}),er=(0,n.Z)({},g,{id:H,checked:Q,disabled:Y,focusVisible:ee,readOnly:et,color:Q?G||"primary":G||"neutral",variant:F,size:J}),eo=x(er),en=(0,n.Z)({},X,{component:W,slots:A,slotProps:_}),[ea,ei]=(0,h.Z)("root",{ref:t,className:eo.root,elementType:S,externalForwardedProps:en,ownerState:er}),[el,ec]=(0,h.Z)("startDecorator",{additionalProps:{"aria-hidden":!0},className:eo.startDecorator,elementType:O,externalForwardedProps:en,ownerState:er}),[es,ed]=(0,h.Z)("endDecorator",{additionalProps:{"aria-hidden":!0},className:eo.endDecorator,elementType:T,externalForwardedProps:en,ownerState:er}),[eu,ep]=(0,h.Z)("track",{className:eo.track,elementType:E,externalForwardedProps:en,ownerState:er}),[em,eh]=(0,h.Z)("thumb",{className:eo.thumb,elementType:Z,externalForwardedProps:en,ownerState:er}),[ef,eg]=(0,h.Z)("action",{className:eo.action,elementType:k,externalForwardedProps:en,ownerState:er}),[ev,eb]=(0,h.Z)("input",{additionalProps:{id:null!=H?H:null==V?void 0:V.htmlFor,"aria-describedby":null==V?void 0:V["aria-describedby"]},className:eo.input,elementType:C,externalForwardedProps:en,getSlotProps:K,ownerState:er});return(0,y.jsxs)(ea,(0,n.Z)({},ei,{children:[B&&(0,y.jsx)(el,(0,n.Z)({},ec,{children:"function"==typeof B?B(er):B})),(0,y.jsxs)(eu,(0,n.Z)({},ep,{children:[null==ep?void 0:ep.children,(0,y.jsx)(em,(0,n.Z)({},eh))]})),(0,y.jsx)(ef,(0,n.Z)({},eg,{children:(0,y.jsx)(ev,(0,n.Z)({},eb))})),L&&(0,y.jsx)(es,(0,n.Z)({},ed,{children:"function"==typeof L?L(er):L}))]}))});var j=z},96323:function(e,t,r){r.d(t,{Z:function(){return I}});var o=r(46750),n=r(40431),a=r(86006),i=r(53832),l=r(47562),c=r(8431),s=r(99179),d=r(30165),u=r(22099),p=r(11059),m=r(9268);let h=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}let g={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function v(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}let b=a.forwardRef(function(e,t){let{onChange:r,maxRows:i,minRows:l=1,style:b,value:y}=e,w=(0,o.Z)(e,h),{current:x}=a.useRef(null!=y),$=a.useRef(null),S=(0,s.Z)(t,$),k=a.useRef(null),C=a.useRef(0),[E,Z]=a.useState({outerHeightStyle:0}),O=a.useCallback(()=>{let t=$.current,r=(0,d.Z)(t),o=r.getComputedStyle(t);if("0px"===o.width)return{outerHeightStyle:0};let n=k.current;n.style.width=o.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");let a=o.boxSizing,c=f(o.paddingBottom)+f(o.paddingTop),s=f(o.borderBottomWidth)+f(o.borderTopWidth),u=n.scrollHeight;n.value="x";let p=n.scrollHeight,m=u;l&&(m=Math.max(Number(l)*p,m)),i&&(m=Math.min(Number(i)*p,m)),m=Math.max(m,p);let h=m+("border-box"===a?c+s:0),g=1>=Math.abs(m-u);return{outerHeightStyle:h,overflow:g}},[i,l,e.placeholder]),T=(e,t)=>{let{outerHeightStyle:r,overflow:o}=t;return C.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==o)?(C.current+=1,{overflow:o,outerHeightStyle:r}):e},z=a.useCallback(()=>{let e=O();v(e)||Z(t=>T(t,e))},[O]),j=()=>{let e=O();v(e)||c.flushSync(()=>{Z(t=>T(t,e))})};return a.useEffect(()=>{let e;let t=(0,u.Z)(()=>{C.current=0,$.current&&j()}),r=$.current,o=(0,d.Z)(r);return o.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(r),()=>{t.clear(),o.removeEventListener("resize",t),e&&e.disconnect()}}),(0,p.Z)(()=>{z()}),a.useEffect(()=>{C.current=0},[y]),(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("textarea",(0,n.Z)({value:y,onChange:e=>{C.current=0,x||z(),r&&r(e)},ref:S,rows:l,style:(0,n.Z)({height:E.outerHeightStyle,overflow:E.overflow?"hidden":void 0},b)},w)),(0,m.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,n.Z)({},g.shadow,b,{paddingTop:0,paddingBottom:0})})]})});var y=r(50645),w=r(88930),x=r(47093),$=r(326),S=r(18587);function k(e){return(0,S.d6)("MuiTextarea",e)}let C=(0,S.sI)("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]);var E=r(17795);let Z=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],O=e=>{let{disabled:t,variant:r,color:o,size:n}=e,a={root:["root",t&&"disabled",r&&`variant${(0,i.Z)(r)}`,o&&`color${(0,i.Z)(o)}`,n&&`size${(0,i.Z)(n)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(a,k,{})},T=(0,y.Z)("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,o,a,i,l;let c=null==(r=e.variants[`${t.variant}`])?void 0:r[t.color];return[(0,n.Z)({"--Textarea-radius":e.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.5,"--Textarea-focused":"0","--Textarea-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Textarea-focusedHighlight":e.vars.palette.focusVisible}:{"--Textarea-focusedHighlight":null==(o=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:o[500]},"sm"===t.size&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.25rem"},"md"===t.size&&{"--Textarea-minHeight":"2.5rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(2rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===t.size&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.75rem"},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box",minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)",fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md,lineHeight:e.vars.lineHeight.md},"sm"===t.size&&{fontSize:e.vars.fontSize.sm,lineHeight:e.vars.lineHeight.sm},{"&:before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),(0,n.Z)({},c,{backgroundColor:null!=(a=null==c?void 0:c.backgroundColor)?a:e.vars.palette.background.surface,"&:hover":(0,n.Z)({},null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],{backgroundColor:null,cursor:"text"}),[`&.${C.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color],"&:focus-within::before":{"--Textarea-focused":"1"}})]}),z=(0,y.Z)(b,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(e,t)=>t.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),j=(0,y.Z)("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({theme:e})=>({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:e.vars.palette.text.tertiary,cursor:"initial"})),D=(0,y.Z)("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({theme:e})=>({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:e.vars.palette.text.tertiary,cursor:"initial"})),R=a.forwardRef(function(e,t){var r,a,i,l,c,s,d;let u=(0,w.Z)({props:e,name:"JoyTextarea"}),p=(0,E.Z)(u,C),{propsToForward:h,rootStateClasses:f,inputStateClasses:g,getRootProps:v,getInputProps:b,formControl:y,focused:S,error:k=!1,disabled:R=!1,size:I="md",color:N="neutral",variant:H="outlined",startDecorator:P,endDecorator:F,minRows:M,maxRows:B,component:L,slots:W={},slotProps:A={}}=p,_=(0,o.Z)(p,Z),X=null!=(r=null!=(a=e.disabled)?a:null==y?void 0:y.disabled)?r:R,V=null!=(i=null!=(l=e.error)?l:null==y?void 0:y.error)?i:k,U=null!=(c=null!=(s=e.size)?s:null==y?void 0:y.size)?c:I,{getColor:J}=(0,x.VT)(H),q=J(e.color,V?"danger":null!=(d=null==y?void 0:y.color)?d:N),G=(0,n.Z)({},u,{color:q,disabled:X,error:V,focused:S,size:U,variant:H}),K=O(G),Q=(0,n.Z)({},_,{component:L,slots:W,slotProps:A}),[Y,ee]=(0,$.Z)("root",{ref:t,className:[K.root,f],elementType:T,externalForwardedProps:Q,getSlotProps:v,ownerState:G}),[et,er]=(0,$.Z)("textarea",{additionalProps:{id:null==y?void 0:y.htmlFor,"aria-describedby":null==y?void 0:y["aria-describedby"]},className:[K.textarea,g],elementType:z,internalForwardedProps:(0,n.Z)({},h,{minRows:M,maxRows:B}),externalForwardedProps:Q,getSlotProps:b,ownerState:G}),[eo,en]=(0,$.Z)("startDecorator",{className:K.startDecorator,elementType:j,externalForwardedProps:Q,ownerState:G}),[ea,ei]=(0,$.Z)("endDecorator",{className:K.endDecorator,elementType:D,externalForwardedProps:Q,ownerState:G});return(0,m.jsxs)(Y,(0,n.Z)({},ee,{children:[P&&(0,m.jsx)(eo,(0,n.Z)({},en,{children:P})),(0,m.jsx)(et,(0,n.Z)({},er)),F&&(0,m.jsx)(ea,(0,n.Z)({},ei,{children:F}))]}))});var I=R},96390:function(e,t,r){r.d(t,{J$:function(){return l}});var o=r(84596),n=r(29138);let a=new o.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new o.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:r}=e,o=`${r}-fade`,l=t?"&":"";return[(0,n.R)(o,a,i,e.motionDurationMid,t),{[` ${l}${o}-enter, ${l}${o}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${o}-leave`]:{animationTimingFunction:"linear"}}]}},53195:function(e,t,r){r.d(t,{default:function(){return tl}});var o=r(86006),n=r(90151),a=r(8683),i=r.n(a),l=r(40431),c=r(18050),s=r(49449),d=r(43663),u=r(38340),p=r(65877),m=r(89301),h=r(71971),f=r(965),g=r(27859),v=r(42442);function b(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function y(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var o=e.data[t];if(Array.isArray(o)){o.forEach(function(e){r.append("".concat(t,"[]"),e)});return}r.append(t,o)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var r;return e.onError(((r=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,r.method=e.method,r.url=e.action,r),b(t))}return e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(e){null!==o[e]&&t.setRequestHeader(e,o[e])}),t.send(r),{abort:function(){t.abort()}}}var $=+new Date,w=0;function x(){return"rc-upload-".concat($,"-").concat(++w)}var S=r(5004),k=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),o=e.name||"",n=e.type||"",a=n.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=o.toLowerCase(),i=t.toLowerCase(),l=[i];return(".jpg"===i||".jpeg"===i)&&(l=[".jpg",".jpeg"]),l.some(function(e){return r.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):n===t||!!/^\w+$/.test(t)&&((0,S.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0},C=function(e,t,r){var o=function e(o,n){if(o.path=n||"",o.isFile)o.file(function(e){r(e)&&(o.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(o.isDirectory){var a,i,l;a=function(t){t.forEach(function(t){e(t,"".concat(n).concat(o.name,"/"))})},i=o.createReader(),l=[],function e(){i.readEntries(function(t){var r=Array.prototype.slice.apply(t);l=l.concat(r),r.length?e():a(l)})}()}};e.forEach(function(e){o(e.webkitGetAsEntry())})},E=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Z=function(e){(0,d.Z)(r,e);var t=(0,u.Z)(r);function r(){(0,c.Z)(this,r);for(var e,o,a=arguments.length,i=Array(a),l=0;l{let{uid:r}=t;return r===e.uid});return -1===o?r.push(e):r[o]=e,r}function K(e,t){let r=void 0!==e.uid?"uid":"name";return t.filter(t=>t[r]===e[r])[0]}let Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),r=t[t.length-1],o=r.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},Y=e=>0===e.indexOf("image/"),ee=e=>{if(e.type&&!e.thumbUrl)return Y(e.type);let t=e.thumbUrl||e.url||"",r=Q(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r))||!/^data:/.test(t)&&!r};function et(e){return new Promise(t=>{if(!e.type||!Y(e.type)){t("");return}let r=document.createElement("canvas");r.width=200,r.height=200,r.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(r);let o=r.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:e,height:a}=n,i=200,l=200,c=0,s=0;e>a?s=-((l=a*(200/e))-i)/2:c=-((i=e*(200/a))-l)/2,o.drawImage(n,c,s,i,l);let d=r.toDataURL();document.body.removeChild(r),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.addEventListener("load",()=>{t.result&&(n.src=t.result)}),t.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}var er={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eo=o.forwardRef(function(e,t){return o.createElement(M.Z,(0,l.Z)({},e,{ref:t,icon:er}))}),en={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ea=o.forwardRef(function(e,t){return o.createElement(M.Z,(0,l.Z)({},e,{ref:t,icon:en}))}),ei=r(31515),el=r(34777),ec=r(95131),es=r(56222),ed=r(31533),eu=r(73234),ep=r(88684),em={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},eh=function(){var e=(0,o.useRef)([]),t=(0,o.useRef)(null);return(0,o.useEffect)(function(){var r=Date.now(),o=!1;e.current.forEach(function(e){if(e){o=!0;var n=e.style;n.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(n.transitionDuration="0s, 0s")}}),o&&(t.current=Date.now())}),e.current},ef=r(60456),eg=r(71693),ev=0,eb=(0,eg.Z)(),ey=function(e){var t=o.useState(),r=(0,ef.Z)(t,2),n=r[0],a=r[1];return o.useEffect(function(){var e;a("rc_progress_".concat((eb?(e=ev,ev+=1):e="TEST_OR_SSR",e)))},[]),e||n},e$=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ew(e){return+e.replace("%","")}function ex(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var eS=function(e,t,r,o,n,a,i,l,c,s){var d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,u=(100-o)/100*t;return"round"===c&&100!==o&&(u+=s/2)>=t&&(u=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:u+d,transform:"rotate(".concat(n+r/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[i]),"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ek=function(e){var t,r,n,a,c=(0,ep.Z)((0,ep.Z)({},em),e),s=c.id,d=c.prefixCls,u=c.steps,p=c.strokeWidth,h=c.trailWidth,g=c.gapDegree,v=void 0===g?0:g,b=c.gapPosition,y=c.trailColor,$=c.strokeLinecap,w=c.style,x=c.className,S=c.strokeColor,k=c.percent,C=(0,m.Z)(c,e$),E=ey(s),Z="".concat(E,"-gradient"),O=50-p/2,T=2*Math.PI*O,z=v>0?90+v/2:-90,D=T*((360-v)/360),I="object"===(0,f.Z)(u)?u:{count:u,space:2},R=I.count,j=I.space,N=eS(T,D,0,100,z,v,b,y,$,p),H=ex(k),M=ex(S),P=M.find(function(e){return e&&"object"===(0,f.Z)(e)}),F=eh();return o.createElement("svg",(0,l.Z)({className:i()("".concat(d,"-circle"),x),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:w,id:s,role:"presentation"},C),P&&o.createElement("defs",null,o.createElement("linearGradient",{id:Z,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(P).sort(function(e,t){return ew(e)-ew(t)}).map(function(e,t){return o.createElement("stop",{key:t,offset:e,stopColor:P[e]})}))),!R&&o.createElement("circle",{className:"".concat(d,"-circle-trail"),r:O,cx:0,cy:0,stroke:y,strokeLinecap:$,strokeWidth:h||p,style:N}),R?(t=Math.round(R*(H[0]/100)),r=100/R,n=0,Array(R).fill(null).map(function(e,a){var i=a<=t-1?M[0]:y,l=i&&"object"===(0,f.Z)(i)?"url(#".concat(Z,")"):void 0,c=eS(T,D,n,r,z,v,b,i,"butt",p,j);return n+=(D-c.strokeDashoffset+j)*100/D,o.createElement("circle",{key:a,className:"".concat(d,"-circle-path"),r:O,cx:0,cy:0,stroke:l,strokeWidth:p,opacity:1,style:c,ref:function(e){F[a]=e}})})):(a=0,H.map(function(e,t){var r=M[t]||M[M.length-1],n=r&&"object"===(0,f.Z)(r)?"url(#".concat(Z,")"):void 0,i=eS(T,D,a,e,z,v,b,r,$,p);return a+=e,o.createElement("circle",{key:t,className:"".concat(d,"-circle-path"),r:O,cx:0,cy:0,stroke:n,strokeLinecap:$,strokeWidth:p,opacity:0===e?0:1,style:i,ref:function(e){F[t]=e}})}).reverse()))},eC=r(15241),eE=r(70333);function eZ(e){return!e||e<0?0:e>100?100:e}function eO(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}let eT=e=>{let{percent:t,success:r,successPercent:o}=e,n=eZ(eO({success:r,successPercent:o}));return[n,eZ(eZ(t)-n)]},ez=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:o}=t;return[o||eE.ez.green,r||null]},eD=(e,t,r)=>{var o,n,a,i;let l=-1,c=-1;if("step"===t){let t=r.steps,o=r.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=o?o:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=e,l*=t}else if("line"===t){let t=null==r?void 0:r.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:(l=null!==(n=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==n?n:120,c=null!==(i=null!==(a=e[0])&&void 0!==a?a:e[1])&&void 0!==i?i:120));return[l,c]},eI=e=>3/e*100;var eR=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:l,width:c=120,type:s,children:d,success:u,size:p=c}=e,[m,h]=eD(p,"circle"),{strokeWidth:f}=e;void 0===f&&(f=Math.max(eI(m),6));let g=o.useMemo(()=>l||0===l?l:"dashboard"===s?75:void 0,[l,s]),v=a||"dashboard"===s&&"bottom"||void 0,b="[object Object]"===Object.prototype.toString.call(e.strokeColor),y=ez({success:u,strokeColor:e.strokeColor}),$=i()(`${t}-inner`,{[`${t}-circle-gradient`]:b}),w=o.createElement(ek,{percent:eT(e),strokeWidth:f,trailWidth:f,strokeColor:y,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:g,gapPosition:v});return o.createElement("div",{className:$,style:{width:m,height:h,fontSize:.15*m+6}},m<=20?o.createElement(eC.Z,{title:d},o.createElement("span",null,w)):o.createElement(o.Fragment,null,w,d))},ej=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let eN=e=>{let t=[];return Object.keys(e).forEach(r=>{let o=parseFloat(r.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[r]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:r}=e;return`${r} ${t}%`}).join(", ")},eH=(e,t)=>{let{from:r=eE.ez.blue,to:o=eE.ez.blue,direction:n="rtl"===t?"to left":"to right"}=e,a=ej(e,["from","to","direction"]);if(0!==Object.keys(a).length){let e=eN(a);return{backgroundImage:`linear-gradient(${n}, ${e})`}}return{backgroundImage:`linear-gradient(${n}, ${r}, ${o})`}};var eM=e=>{let{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:i,strokeColor:l,strokeLinecap:c="round",children:s,trailColor:d=null,success:u}=e,p=l&&"string"!=typeof l?eH(l,r):{backgroundColor:l},m="square"===c||"butt"===c?0:void 0,h=null!=a?a:[-1,i||("small"===a?6:8)],[f,g]=eD(h,"line",{strokeWidth:i}),v=Object.assign({width:`${eZ(n)}%`,height:g,borderRadius:m},p),b=eO(e),y={width:`${eZ(b)}%`,height:g,borderRadius:m,backgroundColor:null==u?void 0:u.strokeColor};return o.createElement(o.Fragment,null,o.createElement("div",{className:`${t}-outer`,style:{width:f<0?"100%":f,height:g}},o.createElement("div",{className:`${t}-inner`,style:{backgroundColor:d||void 0,borderRadius:m}},o.createElement("div",{className:`${t}-bg`,style:v}),void 0!==b?o.createElement("div",{className:`${t}-success-bg`,style:y}):null)),s)},eP=e=>{let{size:t,steps:r,percent:n=0,strokeWidth:a=8,strokeColor:l,trailColor:c=null,prefixCls:s,children:d}=e,u=Math.round(r*(n/100)),p=null!=t?t:["small"===t?2:14,a],[m,h]=eD(p,"step",{steps:r,strokeWidth:a}),f=m/r,g=Array(r);for(let e=0;e{let t=e?"100%":"-100%";return new eF.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},e_=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,eB.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:eA(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:eA(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},eX=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},eU=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},eV=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var eJ=(0,eL.Z)("Progress",e=>{let t=e.marginXXS/2,r=(0,eW.TS)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[e_(r),eX(r),eU(r),eV(r)]}),eq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let eG=["normal","exception","active","success"],eK=o.forwardRef((e,t)=>{let r;let{prefixCls:n,className:a,rootClassName:l,steps:c,strokeColor:s,percent:d=0,size:u="default",showInfo:p=!0,type:m="line",status:h,format:f,style:g}=e,v=eq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),b=o.useMemo(()=>{var t,r;let o=eO(e);return parseInt(void 0!==o?null===(t=null!=o?o:0)||void 0===t?void 0:t.toString():null===(r=null!=d?d:0)||void 0===r?void 0:r.toString(),10)},[d,e.success,e.successPercent]),y=o.useMemo(()=>!eG.includes(h)&&b>=100?"success":h||"normal",[h,b]),{getPrefixCls:$,direction:w,progress:x}=o.useContext(I.E_),S=$("progress",n),[k,C]=eJ(S),E=o.useMemo(()=>{let t;if(!p)return null;let r=eO(e),n=f||(e=>`${e}%`),a="line"===m;return f||"exception"!==y&&"success"!==y?t=n(eZ(d),eZ(r)):"exception"===y?t=a?o.createElement(es.Z,null):o.createElement(ed.Z,null):"success"===y&&(t=a?o.createElement(el.Z,null):o.createElement(ec.Z,null)),o.createElement("span",{className:`${S}-text`,title:"string"==typeof t?t:void 0},t)},[p,d,b,y,m,S,f]),Z=Array.isArray(s)?s[0]:s,O="string"==typeof s||Array.isArray(s)?s:void 0;"line"===m?r=c?o.createElement(eP,Object.assign({},e,{strokeColor:O,prefixCls:S,steps:c}),E):o.createElement(eM,Object.assign({},e,{strokeColor:Z,prefixCls:S,direction:w}),E):("circle"===m||"dashboard"===m)&&(r=o.createElement(eR,Object.assign({},e,{strokeColor:Z,prefixCls:S,progressStatus:y}),E));let T=i()(S,`${S}-status-${y}`,`${S}-${"dashboard"===m&&"circle"||c&&"steps"||m}`,{[`${S}-inline-circle`]:"circle"===m&&eD(u,"circle")[0]<=20,[`${S}-show-info`]:p,[`${S}-${u}`]:"string"==typeof u,[`${S}-rtl`]:"rtl"===w},null==x?void 0:x.className,a,l,C);return k(o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==x?void 0:x.style),g),className:T,role:"progressbar","aria-valuenow":b},(0,eu.Z)(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))}),eQ=o.forwardRef((e,t)=>{var r,n;let{prefixCls:a,className:l,style:c,locale:s,listType:d,file:u,items:p,progress:m,iconRender:h,actionIconRender:f,itemRender:g,isImgUrl:v,showPreviewIcon:b,showRemoveIcon:y,showDownloadIcon:$,previewIcon:w,removeIcon:x,downloadIcon:S,onPreview:k,onDownload:C,onClose:E}=e,{status:Z}=u,[O,T]=o.useState(Z);o.useEffect(()=>{"removed"!==Z&&T(Z)},[Z]);let[z,D]=o.useState(!1);o.useEffect(()=>{let e=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(e)}},[]);let R=h(u),j=o.createElement("div",{className:`${a}-icon`},R);if("picture"===d||"picture-card"===d||"picture-circle"===d){if("uploading"!==O&&(u.thumbUrl||u.url)){let e=(null==v?void 0:v(u))?o.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:`${a}-list-item-image`,crossOrigin:u.crossOrigin}):R,t=i()(`${a}-list-item-thumbnail`,{[`${a}-list-item-file`]:v&&!v(u)});j=o.createElement("a",{className:t,onClick:e=>k(u,e),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=i()(`${a}-list-item-thumbnail`,{[`${a}-list-item-file`]:"uploading"!==O});j=o.createElement("div",{className:e},R)}}let N=i()(`${a}-list-item`,`${a}-list-item-${O}`),H="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,M=y?f(("function"==typeof x?x(u):x)||o.createElement(eo,null),()=>E(u),a,s.removeFile):null,P=$&&"done"===O?f(("function"==typeof S?S(u):S)||o.createElement(ea,null),()=>C(u),a,s.downloadFile):null,F="picture-card"!==d&&"picture-circle"!==d&&o.createElement("span",{key:"download-delete",className:i()(`${a}-list-item-actions`,{picture:"picture"===d})},P,M),B=i()(`${a}-list-item-name`),L=u.url?[o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:B,title:u.name},H,{href:u.url,onClick:e=>k(u,e)}),u.name),F]:[o.createElement("span",{key:"view",className:B,onClick:e=>k(u,e),title:u.name},u.name),F],W=b?o.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>k(u,e),title:s.previewFile},"function"==typeof w?w(u):w||o.createElement(ei.Z,null)):null,A=("picture-card"===d||"picture-circle"===d)&&"uploading"!==O&&o.createElement("span",{className:`${a}-list-item-actions`},W,"done"===O&&P,M),{getPrefixCls:X}=o.useContext(I.E_),U=X(),V=o.createElement("div",{className:N},j,L,A,z&&o.createElement(_.ZP,{motionName:`${U}-fade`,visible:"uploading"===O,motionDeadline:2e3},e=>{let{className:t}=e,r="percent"in u?o.createElement(eK,Object.assign({},m,{type:"line",percent:u.percent,"aria-label":u["aria-label"],"aria-labelledby":u["aria-labelledby"]})):null;return o.createElement("div",{className:i()(`${a}-list-item-progress`,t)},r)})),J=u.response&&"string"==typeof u.response?u.response:(null===(r=u.error)||void 0===r?void 0:r.statusText)||(null===(n=u.error)||void 0===n?void 0:n.message)||s.uploadError,q="error"===O?o.createElement(eC.Z,{title:J,getPopupContainer:e=>e.parentNode},V):V;return o.createElement("div",{className:i()(`${a}-list-item-container`,l),style:c,ref:t},g?g(q,u,p,{download:C.bind(null,u),preview:k.bind(null,u),remove:E.bind(null,u)}):q)}),eY=o.forwardRef((e,t)=>{let{listType:r="text",previewFile:a=et,onPreview:l,onDownload:c,onRemove:s,locale:d,iconRender:u,isImageUrl:p=ee,prefixCls:m,items:h=[],showPreviewIcon:f=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:b,previewIcon:y,downloadIcon:$,progress:w={size:[-1,2],showInfo:!1},appendAction:x,appendActionVisible:S=!0,itemRender:k,disabled:C}=e,E=(0,X.Z)(),[Z,O]=o.useState(!1);o.useEffect(()=>{("picture"===r||"picture-card"===r||"picture-circle"===r)&&(h||[]).forEach(e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then(t=>{e.thumbUrl=t||"",E()}))})},[r,h,a]),o.useEffect(()=>{O(!0)},[]);let T=(e,t)=>{if(l)return null==t||t.preventDefault(),l(e)},z=e=>{"function"==typeof c?c(e):e.url&&window.open(e.url)},D=e=>{null==s||s(e)},R=e=>{if(u)return u(e,r);let t="uploading"===e.status,n=p&&p(e)?o.createElement(A,null):o.createElement(P,null),a=t?o.createElement(F.Z,null):o.createElement(L,null);return"picture"===r?a=t?o.createElement(F.Z,null):n:("picture-card"===r||"picture-circle"===r)&&(a=t?d.uploading:n),a},j=(e,t,r,n)=>{let a={type:"text",size:"small",title:n,onClick:r=>{t(),(0,V.l$)(e)&&e.props.onClick&&e.props.onClick(r)},className:`${r}-list-item-action`,disabled:C};if((0,V.l$)(e)){let t=(0,V.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return o.createElement(J.ZP,Object.assign({},a,{icon:t}))}return o.createElement(J.ZP,Object.assign({},a),o.createElement("span",null,e))};o.useImperativeHandle(t,()=>({handlePreview:T,handleDownload:z}));let{getPrefixCls:N}=o.useContext(I.E_),H=N("upload",m),M=N(),B=i()(`${H}-list`,`${H}-list-${r}`),W=(0,n.Z)(h.map(e=>({key:e.uid,file:e}))),q="picture-card"===r||"picture-circle"===r?"animate-inline":"animate",G={motionDeadline:2e3,motionName:`${H}-${q}`,keys:W,motionAppear:Z},K=o.useMemo(()=>{let e=Object.assign({},(0,U.Z)(M));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[M]);return"picture-card"!==r&&"picture-circle"!==r&&(G=Object.assign(Object.assign({},K),G)),o.createElement("div",{className:B},o.createElement(_.V4,Object.assign({},G,{component:!1}),e=>{let{key:t,file:n,className:a,style:i}=e;return o.createElement(eQ,{key:t,locale:d,prefixCls:H,className:a,style:i,file:n,items:h,progress:w,listType:r,isImgUrl:p,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:v,removeIcon:b,previewIcon:y,downloadIcon:$,iconRender:R,actionIconRender:j,itemRender:k,onPreview:T,onDownload:z,onClose:D})}),x&&o.createElement(_.ZP,Object.assign({},G,{visible:S,forceRender:!0}),e=>{let{className:t,style:r}=e;return(0,V.Tm)(x,e=>({className:i()(e.className,t),style:Object.assign(Object.assign(Object.assign({},r),{pointerEvents:t?"none":void 0}),e.style)}))}))});var e0=r(57406),e1=e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${r}, + `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${o}-leave`]:{animationTimingFunction:"linear"}}]}},53195:function(e,t,r){r.d(t,{default:function(){return tl}});var o=r(86006),n=r(90151),a=r(8683),i=r.n(a),l=r(40431),c=r(18050),s=r(49449),d=r(43663),u=r(38340),p=r(65877),m=r(89301),h=r(71971),f=r(965),g=r(27859),v=r(42442);function b(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function y(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var o=e.data[t];if(Array.isArray(o)){o.forEach(function(e){r.append("".concat(t,"[]"),e)});return}r.append(t,o)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var r;return e.onError(((r=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,r.method=e.method,r.url=e.action,r),b(t))}return e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(e){null!==o[e]&&t.setRequestHeader(e,o[e])}),t.send(r),{abort:function(){t.abort()}}}var w=+new Date,x=0;function $(){return"rc-upload-".concat(w,"-").concat(++x)}var S=r(5004),k=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),o=e.name||"",n=e.type||"",a=n.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=o.toLowerCase(),i=t.toLowerCase(),l=[i];return(".jpg"===i||".jpeg"===i)&&(l=[".jpg",".jpeg"]),l.some(function(e){return r.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):n===t||!!/^\w+$/.test(t)&&((0,S.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0},C=function(e,t,r){var o=function e(o,n){if(o.path=n||"",o.isFile)o.file(function(e){r(e)&&(o.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(o.isDirectory){var a,i,l;a=function(t){t.forEach(function(t){e(t,"".concat(n).concat(o.name,"/"))})},i=o.createReader(),l=[],function e(){i.readEntries(function(t){var r=Array.prototype.slice.apply(t);l=l.concat(r),r.length?e():a(l)})}()}};e.forEach(function(e){o(e.webkitGetAsEntry())})},E=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Z=function(e){(0,d.Z)(r,e);var t=(0,u.Z)(r);function r(){(0,c.Z)(this,r);for(var e,o,a=arguments.length,i=Array(a),l=0;l{let{uid:r}=t;return r===e.uid});return -1===o?r.push(e):r[o]=e,r}function K(e,t){let r=void 0!==e.uid?"uid":"name";return t.filter(t=>t[r]===e[r])[0]}let Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),r=t[t.length-1],o=r.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},Y=e=>0===e.indexOf("image/"),ee=e=>{if(e.type&&!e.thumbUrl)return Y(e.type);let t=e.thumbUrl||e.url||"",r=Q(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r))||!/^data:/.test(t)&&!r};function et(e){return new Promise(t=>{if(!e.type||!Y(e.type)){t("");return}let r=document.createElement("canvas");r.width=200,r.height=200,r.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(r);let o=r.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:e,height:a}=n,i=200,l=200,c=0,s=0;e>a?s=-((l=a*(200/e))-i)/2:c=-((i=e*(200/a))-l)/2,o.drawImage(n,c,s,i,l);let d=r.toDataURL();document.body.removeChild(r),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.addEventListener("load",()=>{t.result&&(n.src=t.result)}),t.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}var er={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eo=o.forwardRef(function(e,t){return o.createElement(P.Z,(0,l.Z)({},e,{ref:t,icon:er}))}),en={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ea=o.forwardRef(function(e,t){return o.createElement(P.Z,(0,l.Z)({},e,{ref:t,icon:en}))}),ei=r(31515),el=r(34777),ec=r(95131),es=r(56222),ed=r(31533),eu=r(73234),ep=r(88684),em={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},eh=function(){var e=(0,o.useRef)([]),t=(0,o.useRef)(null);return(0,o.useEffect)(function(){var r=Date.now(),o=!1;e.current.forEach(function(e){if(e){o=!0;var n=e.style;n.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(n.transitionDuration="0s, 0s")}}),o&&(t.current=Date.now())}),e.current},ef=r(60456),eg=r(71693),ev=0,eb=(0,eg.Z)(),ey=function(e){var t=o.useState(),r=(0,ef.Z)(t,2),n=r[0],a=r[1];return o.useEffect(function(){var e;a("rc_progress_".concat((eb?(e=ev,ev+=1):e="TEST_OR_SSR",e)))},[]),e||n},ew=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ex(e){return+e.replace("%","")}function e$(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var eS=function(e,t,r,o,n,a,i,l,c,s){var d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,u=(100-o)/100*t;return"round"===c&&100!==o&&(u+=s/2)>=t&&(u=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:u+d,transform:"rotate(".concat(n+r/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[i]),"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ek=function(e){var t,r,n,a,c=(0,ep.Z)((0,ep.Z)({},em),e),s=c.id,d=c.prefixCls,u=c.steps,p=c.strokeWidth,h=c.trailWidth,g=c.gapDegree,v=void 0===g?0:g,b=c.gapPosition,y=c.trailColor,w=c.strokeLinecap,x=c.style,$=c.className,S=c.strokeColor,k=c.percent,C=(0,m.Z)(c,ew),E=ey(s),Z="".concat(E,"-gradient"),O=50-p/2,T=2*Math.PI*O,z=v>0?90+v/2:-90,j=T*((360-v)/360),D="object"===(0,f.Z)(u)?u:{count:u,space:2},R=D.count,I=D.space,N=eS(T,j,0,100,z,v,b,y,w,p),H=e$(k),P=e$(S),F=P.find(function(e){return e&&"object"===(0,f.Z)(e)}),M=eh();return o.createElement("svg",(0,l.Z)({className:i()("".concat(d,"-circle"),$),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:x,id:s,role:"presentation"},C),F&&o.createElement("defs",null,o.createElement("linearGradient",{id:Z,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(F).sort(function(e,t){return ex(e)-ex(t)}).map(function(e,t){return o.createElement("stop",{key:t,offset:e,stopColor:F[e]})}))),!R&&o.createElement("circle",{className:"".concat(d,"-circle-trail"),r:O,cx:0,cy:0,stroke:y,strokeLinecap:w,strokeWidth:h||p,style:N}),R?(t=Math.round(R*(H[0]/100)),r=100/R,n=0,Array(R).fill(null).map(function(e,a){var i=a<=t-1?P[0]:y,l=i&&"object"===(0,f.Z)(i)?"url(#".concat(Z,")"):void 0,c=eS(T,j,n,r,z,v,b,i,"butt",p,I);return n+=(j-c.strokeDashoffset+I)*100/j,o.createElement("circle",{key:a,className:"".concat(d,"-circle-path"),r:O,cx:0,cy:0,stroke:l,strokeWidth:p,opacity:1,style:c,ref:function(e){M[a]=e}})})):(a=0,H.map(function(e,t){var r=P[t]||P[P.length-1],n=r&&"object"===(0,f.Z)(r)?"url(#".concat(Z,")"):void 0,i=eS(T,j,a,e,z,v,b,r,w,p);return a+=e,o.createElement("circle",{key:t,className:"".concat(d,"-circle-path"),r:O,cx:0,cy:0,stroke:n,strokeLinecap:w,strokeWidth:p,opacity:0===e?0:1,style:i,ref:function(e){M[t]=e}})}).reverse()))},eC=r(15241),eE=r(70333);function eZ(e){return!e||e<0?0:e>100?100:e}function eO(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}let eT=e=>{let{percent:t,success:r,successPercent:o}=e,n=eZ(eO({success:r,successPercent:o}));return[n,eZ(eZ(t)-n)]},ez=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:o}=t;return[o||eE.ez.green,r||null]},ej=(e,t,r)=>{var o,n,a,i;let l=-1,c=-1;if("step"===t){let t=r.steps,o=r.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=o?o:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=e,l*=t}else if("line"===t){let t=null==r?void 0:r.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:(l=null!==(n=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==n?n:120,c=null!==(i=null!==(a=e[0])&&void 0!==a?a:e[1])&&void 0!==i?i:120));return[l,c]},eD=e=>3/e*100;var eR=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:l,width:c=120,type:s,children:d,success:u,size:p=c}=e,[m,h]=ej(p,"circle"),{strokeWidth:f}=e;void 0===f&&(f=Math.max(eD(m),6));let g=o.useMemo(()=>l||0===l?l:"dashboard"===s?75:void 0,[l,s]),v=a||"dashboard"===s&&"bottom"||void 0,b="[object Object]"===Object.prototype.toString.call(e.strokeColor),y=ez({success:u,strokeColor:e.strokeColor}),w=i()(`${t}-inner`,{[`${t}-circle-gradient`]:b}),x=o.createElement(ek,{percent:eT(e),strokeWidth:f,trailWidth:f,strokeColor:y,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:g,gapPosition:v});return o.createElement("div",{className:w,style:{width:m,height:h,fontSize:.15*m+6}},m<=20?o.createElement(eC.Z,{title:d},o.createElement("span",null,x)):o.createElement(o.Fragment,null,x,d))},eI=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let eN=e=>{let t=[];return Object.keys(e).forEach(r=>{let o=parseFloat(r.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[r]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:r}=e;return`${r} ${t}%`}).join(", ")},eH=(e,t)=>{let{from:r=eE.ez.blue,to:o=eE.ez.blue,direction:n="rtl"===t?"to left":"to right"}=e,a=eI(e,["from","to","direction"]);if(0!==Object.keys(a).length){let e=eN(a);return{backgroundImage:`linear-gradient(${n}, ${e})`}}return{backgroundImage:`linear-gradient(${n}, ${r}, ${o})`}};var eP=e=>{let{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:i,strokeColor:l,strokeLinecap:c="round",children:s,trailColor:d=null,success:u}=e,p=l&&"string"!=typeof l?eH(l,r):{backgroundColor:l},m="square"===c||"butt"===c?0:void 0,h=null!=a?a:[-1,i||("small"===a?6:8)],[f,g]=ej(h,"line",{strokeWidth:i}),v=Object.assign({width:`${eZ(n)}%`,height:g,borderRadius:m},p),b=eO(e),y={width:`${eZ(b)}%`,height:g,borderRadius:m,backgroundColor:null==u?void 0:u.strokeColor};return o.createElement(o.Fragment,null,o.createElement("div",{className:`${t}-outer`,style:{width:f<0?"100%":f,height:g}},o.createElement("div",{className:`${t}-inner`,style:{backgroundColor:d||void 0,borderRadius:m}},o.createElement("div",{className:`${t}-bg`,style:v}),void 0!==b?o.createElement("div",{className:`${t}-success-bg`,style:y}):null)),s)},eF=e=>{let{size:t,steps:r,percent:n=0,strokeWidth:a=8,strokeColor:l,trailColor:c=null,prefixCls:s,children:d}=e,u=Math.round(r*(n/100)),p=null!=t?t:["small"===t?2:14,a],[m,h]=ej(p,"step",{steps:r,strokeWidth:a}),f=m/r,g=Array(r);for(let e=0;e{let t=e?"100%":"-100%";return new eM.E4(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},e_=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,eB.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:eA(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:eA(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},eX=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},eV=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},eU=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var eJ=(0,eL.Z)("Progress",e=>{let t=e.marginXXS/2,r=(0,eW.TS)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[e_(r),eX(r),eV(r),eU(r)]}),eq=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let eG=["normal","exception","active","success"],eK=o.forwardRef((e,t)=>{let r;let{prefixCls:n,className:a,rootClassName:l,steps:c,strokeColor:s,percent:d=0,size:u="default",showInfo:p=!0,type:m="line",status:h,format:f,style:g}=e,v=eq(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),b=o.useMemo(()=>{var t,r;let o=eO(e);return parseInt(void 0!==o?null===(t=null!=o?o:0)||void 0===t?void 0:t.toString():null===(r=null!=d?d:0)||void 0===r?void 0:r.toString(),10)},[d,e.success,e.successPercent]),y=o.useMemo(()=>!eG.includes(h)&&b>=100?"success":h||"normal",[h,b]),{getPrefixCls:w,direction:x,progress:$}=o.useContext(D.E_),S=w("progress",n),[k,C]=eJ(S),E=o.useMemo(()=>{let t;if(!p)return null;let r=eO(e),n=f||(e=>`${e}%`),a="line"===m;return f||"exception"!==y&&"success"!==y?t=n(eZ(d),eZ(r)):"exception"===y?t=a?o.createElement(es.Z,null):o.createElement(ed.Z,null):"success"===y&&(t=a?o.createElement(el.Z,null):o.createElement(ec.Z,null)),o.createElement("span",{className:`${S}-text`,title:"string"==typeof t?t:void 0},t)},[p,d,b,y,m,S,f]),Z=Array.isArray(s)?s[0]:s,O="string"==typeof s||Array.isArray(s)?s:void 0;"line"===m?r=c?o.createElement(eF,Object.assign({},e,{strokeColor:O,prefixCls:S,steps:c}),E):o.createElement(eP,Object.assign({},e,{strokeColor:Z,prefixCls:S,direction:x}),E):("circle"===m||"dashboard"===m)&&(r=o.createElement(eR,Object.assign({},e,{strokeColor:Z,prefixCls:S,progressStatus:y}),E));let T=i()(S,`${S}-status-${y}`,`${S}-${"dashboard"===m&&"circle"||c&&"steps"||m}`,{[`${S}-inline-circle`]:"circle"===m&&ej(u,"circle")[0]<=20,[`${S}-show-info`]:p,[`${S}-${u}`]:"string"==typeof u,[`${S}-rtl`]:"rtl"===x},null==$?void 0:$.className,a,l,C);return k(o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null==$?void 0:$.style),g),className:T,role:"progressbar","aria-valuenow":b},(0,eu.Z)(v,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))}),eQ=o.forwardRef((e,t)=>{var r,n;let{prefixCls:a,className:l,style:c,locale:s,listType:d,file:u,items:p,progress:m,iconRender:h,actionIconRender:f,itemRender:g,isImgUrl:v,showPreviewIcon:b,showRemoveIcon:y,showDownloadIcon:w,previewIcon:x,removeIcon:$,downloadIcon:S,onPreview:k,onDownload:C,onClose:E}=e,{status:Z}=u,[O,T]=o.useState(Z);o.useEffect(()=>{"removed"!==Z&&T(Z)},[Z]);let[z,j]=o.useState(!1);o.useEffect(()=>{let e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);let R=h(u),I=o.createElement("div",{className:`${a}-icon`},R);if("picture"===d||"picture-card"===d||"picture-circle"===d){if("uploading"!==O&&(u.thumbUrl||u.url)){let e=(null==v?void 0:v(u))?o.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:`${a}-list-item-image`,crossOrigin:u.crossOrigin}):R,t=i()(`${a}-list-item-thumbnail`,{[`${a}-list-item-file`]:v&&!v(u)});I=o.createElement("a",{className:t,onClick:e=>k(u,e),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=i()(`${a}-list-item-thumbnail`,{[`${a}-list-item-file`]:"uploading"!==O});I=o.createElement("div",{className:e},R)}}let N=i()(`${a}-list-item`,`${a}-list-item-${O}`),H="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,P=y?f(("function"==typeof $?$(u):$)||o.createElement(eo,null),()=>E(u),a,s.removeFile):null,F=w&&"done"===O?f(("function"==typeof S?S(u):S)||o.createElement(ea,null),()=>C(u),a,s.downloadFile):null,M="picture-card"!==d&&"picture-circle"!==d&&o.createElement("span",{key:"download-delete",className:i()(`${a}-list-item-actions`,{picture:"picture"===d})},F,P),B=i()(`${a}-list-item-name`),L=u.url?[o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:B,title:u.name},H,{href:u.url,onClick:e=>k(u,e)}),u.name),M]:[o.createElement("span",{key:"view",className:B,onClick:e=>k(u,e),title:u.name},u.name),M],W=b?o.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>k(u,e),title:s.previewFile},"function"==typeof x?x(u):x||o.createElement(ei.Z,null)):null,A=("picture-card"===d||"picture-circle"===d)&&"uploading"!==O&&o.createElement("span",{className:`${a}-list-item-actions`},W,"done"===O&&F,P),{getPrefixCls:X}=o.useContext(D.E_),V=X(),U=o.createElement("div",{className:N},I,L,A,z&&o.createElement(_.ZP,{motionName:`${V}-fade`,visible:"uploading"===O,motionDeadline:2e3},e=>{let{className:t}=e,r="percent"in u?o.createElement(eK,Object.assign({},m,{type:"line",percent:u.percent,"aria-label":u["aria-label"],"aria-labelledby":u["aria-labelledby"]})):null;return o.createElement("div",{className:i()(`${a}-list-item-progress`,t)},r)})),J=u.response&&"string"==typeof u.response?u.response:(null===(r=u.error)||void 0===r?void 0:r.statusText)||(null===(n=u.error)||void 0===n?void 0:n.message)||s.uploadError,q="error"===O?o.createElement(eC.Z,{title:J,getPopupContainer:e=>e.parentNode},U):U;return o.createElement("div",{className:i()(`${a}-list-item-container`,l),style:c,ref:t},g?g(q,u,p,{download:C.bind(null,u),preview:k.bind(null,u),remove:E.bind(null,u)}):q)}),eY=o.forwardRef((e,t)=>{let{listType:r="text",previewFile:a=et,onPreview:l,onDownload:c,onRemove:s,locale:d,iconRender:u,isImageUrl:p=ee,prefixCls:m,items:h=[],showPreviewIcon:f=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:b,previewIcon:y,downloadIcon:w,progress:x={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:S=!0,itemRender:k,disabled:C}=e,E=(0,X.Z)(),[Z,O]=o.useState(!1);o.useEffect(()=>{("picture"===r||"picture-card"===r||"picture-circle"===r)&&(h||[]).forEach(e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then(t=>{e.thumbUrl=t||"",E()}))})},[r,h,a]),o.useEffect(()=>{O(!0)},[]);let T=(e,t)=>{if(l)return null==t||t.preventDefault(),l(e)},z=e=>{"function"==typeof c?c(e):e.url&&window.open(e.url)},j=e=>{null==s||s(e)},R=e=>{if(u)return u(e,r);let t="uploading"===e.status,n=p&&p(e)?o.createElement(A,null):o.createElement(F,null),a=t?o.createElement(M.Z,null):o.createElement(L,null);return"picture"===r?a=t?o.createElement(M.Z,null):n:("picture-card"===r||"picture-circle"===r)&&(a=t?d.uploading:n),a},I=(e,t,r,n)=>{let a={type:"text",size:"small",title:n,onClick:r=>{t(),(0,U.l$)(e)&&e.props.onClick&&e.props.onClick(r)},className:`${r}-list-item-action`,disabled:C};if((0,U.l$)(e)){let t=(0,U.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return o.createElement(J.ZP,Object.assign({},a,{icon:t}))}return o.createElement(J.ZP,Object.assign({},a),o.createElement("span",null,e))};o.useImperativeHandle(t,()=>({handlePreview:T,handleDownload:z}));let{getPrefixCls:N}=o.useContext(D.E_),H=N("upload",m),P=N(),B=i()(`${H}-list`,`${H}-list-${r}`),W=(0,n.Z)(h.map(e=>({key:e.uid,file:e}))),q="picture-card"===r||"picture-circle"===r?"animate-inline":"animate",G={motionDeadline:2e3,motionName:`${H}-${q}`,keys:W,motionAppear:Z},K=o.useMemo(()=>{let e=Object.assign({},(0,V.Z)(P));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[P]);return"picture-card"!==r&&"picture-circle"!==r&&(G=Object.assign(Object.assign({},K),G)),o.createElement("div",{className:B},o.createElement(_.V4,Object.assign({},G,{component:!1}),e=>{let{key:t,file:n,className:a,style:i}=e;return o.createElement(eQ,{key:t,locale:d,prefixCls:H,className:a,style:i,file:n,items:h,progress:x,listType:r,isImgUrl:p,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:v,removeIcon:b,previewIcon:y,downloadIcon:w,iconRender:R,actionIconRender:I,itemRender:k,onPreview:T,onDownload:z,onClose:j})}),$&&o.createElement(_.ZP,Object.assign({},G,{visible:S,forceRender:!0}),e=>{let{className:t,style:r}=e;return(0,U.Tm)($,e=>({className:i()(e.className,t),style:Object.assign(Object.assign(Object.assign({},r),{pointerEvents:t?"none":void 0}),e.style)}))}))});var e0=r(57406),e1=e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${r}, p${t}-text, p${t}-hint `]:{color:e.colorTextDisabled}}}}}},e2=e=>{let{componentCls:t,antCls:r,iconCls:o,fontSize:n,lineHeight:a}=e,i=`${t}-list-item`,l=`${i}-actions`,c=`${i}-action`,s=Math.round(n*a);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,eB.dF)()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*n,marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},eB.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[c]:{opacity:0},[`${c}${r}-btn-sm`]:{height:s,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${c}:focus, &.picture ${c} - `]:{opacity:1},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:n},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:n+e.paddingXS,fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[l]:{[`${o}, ${o}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},e3=r(96390);let e4=new eF.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),e6=new eF.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var e8=e=>{let{componentCls:t}=e,r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:e4},[`${r}-leave`]:{animationName:e6}}},{[`${t}-wrapper`]:(0,e3.J$)(e)},e4,e6]},e7=r(57389);let e5=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:o,uploadProgressOffset:n}=e,a=`${t}-list`,i=`${a}-item`;return{[`${t}-wrapper`]:{[` + `]:{opacity:1},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:n},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:n+e.paddingXS,fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[l]:{[`${o}, ${o}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},e3=r(96390);let e4=new eM.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),e6=new eM.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var e8=e=>{let{componentCls:t}=e,r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:e4},[`${r}-leave`]:{animationName:e6}}},{[`${t}-wrapper`]:(0,e3.J$)(e)},e4,e6]},e7=r(57389);let e5=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:o,uploadProgressOffset:n}=e,a=`${t}-list`,i=`${a}-item`;return{[`${t}-wrapper`]:{[` ${a}${a}-picture, ${a}${a}-picture-card, ${a}${a}-picture-circle `]:{[i]:{position:"relative",height:o+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:Object.assign(Object.assign({},eB.vS),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:n,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${r}`]:{[`svg path[fill='${eE.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${eE.iN.primary}']`]:{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${i}`]:{[`&, &::before, ${i}-thumbnail`]:{borderRadius:"50%"}}}}},e9=e=>{let{componentCls:t,iconCls:r,fontSizeLG:o,colorTextLightSolid:n}=e,a=`${t}-list`,i=`${a}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,eB.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{[`${a}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${r}-eye, ${r}-download, ${r}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${i}-actions, ${i}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new e7.C(n).setAlpha(.65).toRgbString(),"&:hover":{color:n}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var te=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};let tt=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,eB.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}};var tr=(0,eL.Z)("Upload",e=>{let{fontSizeHeading3:t,fontSize:r,lineHeight:o,lineWidth:n,controlHeightLG:a}=e,i=(0,eW.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(r*o)/2+n,uploadPicCardSize:2.55*a});return[tt(i),e1(i),e5(i),e9(i),e2(i),e8(i),te(i),(0,e0.Z)(i)]},e=>({actionsColor:e.colorTextDescription}));let to=`__LIST_IGNORE_${Date.now()}__`,tn=o.forwardRef((e,t)=>{var r;let{fileList:a,defaultFileList:l,onRemove:c,showUploadList:s=!0,listType:d="text",onPreview:u,onDownload:p,onChange:m,onDrop:h,previewFile:f,disabled:g,locale:v,iconRender:b,isImageUrl:y,progress:$,prefixCls:w,className:x,type:S="select",children:k,style:C,itemRender:E,maxCount:Z,data:O={},multiple:H=!1,action:M="",accept:P="",supportServerRender:F=!0}=e,B=o.useContext(R.Z),L=null!=g?g:B,[W,A]=(0,z.Z)(l||[],{value:a,postState:e=>null!=e?e:[]}),[_,X]=o.useState("drop"),U=o.useRef(null);o.useMemo(()=>{let e=Date.now();(a||[]).forEach((t,r)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${r}__`)})},[a]);let V=(e,t,r)=>{let o=(0,n.Z)(t),a=!1;1===Z?o=o.slice(-1):Z&&(a=o.length>Z,o=o.slice(0,Z)),(0,D.flushSync)(()=>{A(o)});let i={file:e,fileList:o};r&&(i.event=r),(!a||o.some(t=>t.uid===e.uid))&&(0,D.flushSync)(()=>{null==m||m(i)})},J=e=>{let t=e.filter(e=>!e.file[to]);if(!t.length)return;let r=t.map(e=>q(e.file)),o=(0,n.Z)(W);r.forEach(e=>{o=G(e,o)}),r.forEach((e,r)=>{let n=e;if(t[r].parsedFile)e.status="uploading";else{let t;let{originFileObj:r}=e;try{t=new File([r],r.name,{type:r.type})}catch(e){(t=new Blob([r],{type:r.type})).name=r.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,n=t}V(n,o)})},Q=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!K(t,W))return;let o=q(t);o.status="done",o.percent=100,o.response=e,o.xhr=r;let n=G(o,W);V(o,n)},Y=(e,t)=>{if(!K(t,W))return;let r=q(t);r.status="uploading",r.percent=e.percent;let o=G(r,W);V(r,o,e)},ee=(e,t,r)=>{if(!K(r,W))return;let o=q(r);o.error=e,o.response=t,o.status="error";let n=G(o,W);V(o,n)},et=e=>{let t;Promise.resolve("function"==typeof c?c(e):c).then(r=>{var o;if(!1===r)return;let n=function(e,t){let r=void 0!==e.uid?"uid":"name",o=t.filter(t=>t[r]!==e[r]);return o.length===t.length?null:o}(e,W);n&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==W||W.forEach(e=>{let r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null===(o=U.current)||void 0===o||o.abort(t),V(t,n))})},er=e=>{X(e.type),"drop"===e.type&&(null==h||h(e))};o.useImperativeHandle(t,()=>({onBatchStart:J,onSuccess:Q,onProgress:Y,onError:ee,fileList:W,upload:U.current}));let{getPrefixCls:eo,direction:en,upload:ea}=o.useContext(I.E_),ei=eo("upload",w),el=Object.assign(Object.assign({onBatchStart:J,onError:ee,onProgress:Y,onSuccess:Q},e),{data:O,multiple:H,action:M,accept:P,supportServerRender:F,prefixCls:ei,disabled:L,beforeUpload:(t,r)=>{var o,n,a,i;return o=void 0,n=void 0,a=void 0,i=function*(){let{beforeUpload:o,transformFile:n}=e,a=t;if(o){let e=yield o(t,r);if(!1===e)return!1;if(delete t[to],e===to)return Object.defineProperty(t,to,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return n&&(a=yield n(a)),a},new(a||(a=Promise))(function(e,t){function r(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var o;t.done?e(t.value):((o=t.value)instanceof a?o:new a(function(e){e(o)})).then(r,l)}c((i=i.apply(o,n||[])).next())})},onChange:void 0});delete el.className,delete el.style,(!k||L)&&delete el.id;let[ec,es]=tr(ei),[ed]=(0,j.Z)("Upload",N.Z.Upload),{showRemoveIcon:eu,showPreviewIcon:ep,showDownloadIcon:em,removeIcon:eh,previewIcon:ef,downloadIcon:eg}="boolean"==typeof s?{}:s,ev=(e,t)=>s?o.createElement(eY,{prefixCls:ei,listType:d,items:W,previewFile:f,onPreview:u,onDownload:p,onRemove:et,showRemoveIcon:!L&&eu,showPreviewIcon:ep,showDownloadIcon:em,removeIcon:eh,previewIcon:ef,downloadIcon:eg,iconRender:b,locale:Object.assign(Object.assign({},ed),v),isImageUrl:y,progress:$,appendAction:e,appendActionVisible:t,itemRender:E,disabled:L}):e,eb=i()(`${ei}-wrapper`,x,es,null==ea?void 0:ea.className,{[`${ei}-rtl`]:"rtl"===en,[`${ei}-picture-card-wrapper`]:"picture-card"===d,[`${ei}-picture-circle-wrapper`]:"picture-circle"===d}),ey=Object.assign(Object.assign({},null==ea?void 0:ea.style),C);if("drag"===S){let e=i()(es,ei,`${ei}-drag`,{[`${ei}-drag-uploading`]:W.some(e=>"uploading"===e.status),[`${ei}-drag-hover`]:"dragover"===_,[`${ei}-disabled`]:L,[`${ei}-rtl`]:"rtl"===en});return ec(o.createElement("span",{className:eb},o.createElement("div",{className:e,style:ey,onDrop:er,onDragOver:er,onDragLeave:er},o.createElement(T,Object.assign({},el,{ref:U,className:`${ei}-btn`}),o.createElement("div",{className:`${ei}-drag-container`},k))),ev()))}let e$=i()(ei,`${ei}-select`,{[`${ei}-disabled`]:L}),ew=(r=k?void 0:{display:"none"},o.createElement("div",{className:e$,style:r},o.createElement(T,Object.assign({},el,{ref:U}))));return ec("picture-card"===d||"picture-circle"===d?o.createElement("span",{className:eb},ev(ew,!!k)):o.createElement("span",{className:eb},ew,ev()))});var ta=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let ti=o.forwardRef((e,t)=>{var{style:r,height:n}=e,a=ta(e,["style","height"]);return o.createElement(tn,Object.assign({ref:t},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))});tn.Dragger=ti,tn.LIST_IGNORE=to;var tl=tn}}]); \ No newline at end of file + `]:Object.assign(Object.assign({},(0,eB.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{[`${a}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${r}-eye, ${r}-download, ${r}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${i}-actions, ${i}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new e7.C(n).setAlpha(.65).toRgbString(),"&:hover":{color:n}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var te=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};let tt=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,eB.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}};var tr=(0,eL.Z)("Upload",e=>{let{fontSizeHeading3:t,fontSize:r,lineHeight:o,lineWidth:n,controlHeightLG:a}=e,i=(0,eW.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(r*o)/2+n,uploadPicCardSize:2.55*a});return[tt(i),e1(i),e5(i),e9(i),e2(i),e8(i),te(i),(0,e0.Z)(i)]},e=>({actionsColor:e.colorTextDescription}));let to=`__LIST_IGNORE_${Date.now()}__`,tn=o.forwardRef((e,t)=>{var r;let{fileList:a,defaultFileList:l,onRemove:c,showUploadList:s=!0,listType:d="text",onPreview:u,onDownload:p,onChange:m,onDrop:h,previewFile:f,disabled:g,locale:v,iconRender:b,isImageUrl:y,progress:w,prefixCls:x,className:$,type:S="select",children:k,style:C,itemRender:E,maxCount:Z,data:O={},multiple:H=!1,action:P="",accept:F="",supportServerRender:M=!0}=e,B=o.useContext(R.Z),L=null!=g?g:B,[W,A]=(0,z.Z)(l||[],{value:a,postState:e=>null!=e?e:[]}),[_,X]=o.useState("drop"),V=o.useRef(null);o.useMemo(()=>{let e=Date.now();(a||[]).forEach((t,r)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${r}__`)})},[a]);let U=(e,t,r)=>{let o=(0,n.Z)(t),a=!1;1===Z?o=o.slice(-1):Z&&(a=o.length>Z,o=o.slice(0,Z)),(0,j.flushSync)(()=>{A(o)});let i={file:e,fileList:o};r&&(i.event=r),(!a||o.some(t=>t.uid===e.uid))&&(0,j.flushSync)(()=>{null==m||m(i)})},J=e=>{let t=e.filter(e=>!e.file[to]);if(!t.length)return;let r=t.map(e=>q(e.file)),o=(0,n.Z)(W);r.forEach(e=>{o=G(e,o)}),r.forEach((e,r)=>{let n=e;if(t[r].parsedFile)e.status="uploading";else{let t;let{originFileObj:r}=e;try{t=new File([r],r.name,{type:r.type})}catch(e){(t=new Blob([r],{type:r.type})).name=r.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,n=t}U(n,o)})},Q=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!K(t,W))return;let o=q(t);o.status="done",o.percent=100,o.response=e,o.xhr=r;let n=G(o,W);U(o,n)},Y=(e,t)=>{if(!K(t,W))return;let r=q(t);r.status="uploading",r.percent=e.percent;let o=G(r,W);U(r,o,e)},ee=(e,t,r)=>{if(!K(r,W))return;let o=q(r);o.error=e,o.response=t,o.status="error";let n=G(o,W);U(o,n)},et=e=>{let t;Promise.resolve("function"==typeof c?c(e):c).then(r=>{var o;if(!1===r)return;let n=function(e,t){let r=void 0!==e.uid?"uid":"name",o=t.filter(t=>t[r]!==e[r]);return o.length===t.length?null:o}(e,W);n&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==W||W.forEach(e=>{let r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null===(o=V.current)||void 0===o||o.abort(t),U(t,n))})},er=e=>{X(e.type),"drop"===e.type&&(null==h||h(e))};o.useImperativeHandle(t,()=>({onBatchStart:J,onSuccess:Q,onProgress:Y,onError:ee,fileList:W,upload:V.current}));let{getPrefixCls:eo,direction:en,upload:ea}=o.useContext(D.E_),ei=eo("upload",x),el=Object.assign(Object.assign({onBatchStart:J,onError:ee,onProgress:Y,onSuccess:Q},e),{data:O,multiple:H,action:P,accept:F,supportServerRender:M,prefixCls:ei,disabled:L,beforeUpload:(t,r)=>{var o,n,a,i;return o=void 0,n=void 0,a=void 0,i=function*(){let{beforeUpload:o,transformFile:n}=e,a=t;if(o){let e=yield o(t,r);if(!1===e)return!1;if(delete t[to],e===to)return Object.defineProperty(t,to,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return n&&(a=yield n(a)),a},new(a||(a=Promise))(function(e,t){function r(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var o;t.done?e(t.value):((o=t.value)instanceof a?o:new a(function(e){e(o)})).then(r,l)}c((i=i.apply(o,n||[])).next())})},onChange:void 0});delete el.className,delete el.style,(!k||L)&&delete el.id;let[ec,es]=tr(ei),[ed]=(0,I.Z)("Upload",N.Z.Upload),{showRemoveIcon:eu,showPreviewIcon:ep,showDownloadIcon:em,removeIcon:eh,previewIcon:ef,downloadIcon:eg}="boolean"==typeof s?{}:s,ev=(e,t)=>s?o.createElement(eY,{prefixCls:ei,listType:d,items:W,previewFile:f,onPreview:u,onDownload:p,onRemove:et,showRemoveIcon:!L&&eu,showPreviewIcon:ep,showDownloadIcon:em,removeIcon:eh,previewIcon:ef,downloadIcon:eg,iconRender:b,locale:Object.assign(Object.assign({},ed),v),isImageUrl:y,progress:w,appendAction:e,appendActionVisible:t,itemRender:E,disabled:L}):e,eb=i()(`${ei}-wrapper`,$,es,null==ea?void 0:ea.className,{[`${ei}-rtl`]:"rtl"===en,[`${ei}-picture-card-wrapper`]:"picture-card"===d,[`${ei}-picture-circle-wrapper`]:"picture-circle"===d}),ey=Object.assign(Object.assign({},null==ea?void 0:ea.style),C);if("drag"===S){let e=i()(es,ei,`${ei}-drag`,{[`${ei}-drag-uploading`]:W.some(e=>"uploading"===e.status),[`${ei}-drag-hover`]:"dragover"===_,[`${ei}-disabled`]:L,[`${ei}-rtl`]:"rtl"===en});return ec(o.createElement("span",{className:eb},o.createElement("div",{className:e,style:ey,onDrop:er,onDragOver:er,onDragLeave:er},o.createElement(T,Object.assign({},el,{ref:V,className:`${ei}-btn`}),o.createElement("div",{className:`${ei}-drag-container`},k))),ev()))}let ew=i()(ei,`${ei}-select`,{[`${ei}-disabled`]:L}),ex=(r=k?void 0:{display:"none"},o.createElement("div",{className:ew,style:r},o.createElement(T,Object.assign({},el,{ref:V}))));return ec("picture-card"===d||"picture-circle"===d?o.createElement("span",{className:eb},ev(ex,!!k)):o.createElement("span",{className:eb},ex,ev()))});var ta=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let ti=o.forwardRef((e,t)=>{var{style:r,height:n}=e,a=ta(e,["style","height"]);return o.createElement(tn,Object.assign({ref:t},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))});tn.Dragger=ti,tn.LIST_IGNORE=to;var tl=tn}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/230-9b7eec94114cc7c3.js b/pilot/server/static/_next/static/chunks/230-9b7eec94114cc7c3.js deleted file mode 100644 index 5ff59b39e..000000000 --- a/pilot/server/static/_next/static/chunks/230-9b7eec94114cc7c3.js +++ /dev/null @@ -1,4 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[230],{76906:function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=t(82833)},53113:function(r,e,t){"use strict";var n=t(46750),o=t(40431),i=t(86006),a=t(46319),s=t(47562),l=t(53832),c=t(99179),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(94244),v=t(77614),m=t(42858),h=t(9268);let b=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],Z=r=>{let{color:e,disabled:t,focusVisible:n,focusVisibleClassName:o,fullWidth:i,size:a,variant:c,loading:u}=r,d={root:["root",t&&"disabled",n&&"focusVisible",i&&"fullWidth",c&&`variant${(0,l.Z)(c)}`,e&&`color${(0,l.Z)(e)}`,a&&`size${(0,l.Z)(a)}`,u&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},f=(0,s.Z)(d,v.F,{});return n&&o&&(f.root+=` ${o}`),f},y=(0,u.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),k=(0,u.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),x=(0,u.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(r,e)=>e.loadingIndicatorCenter})(({theme:r,ownerState:e})=>{var t,n;return(0,o.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=r.variants[e.variant])||null==(t=t[e.color])?void 0:t.color},e.disabled&&{color:null==(n=r.variants[`${e.variant}Disabled`])||null==(n=n[e.color])?void 0:n.color})}),C=(0,u.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},"sm"===e.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===e.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===e.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:r.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${r.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:r.vars.fontFamily.body,fontWeight:r.vars.fontWeight.lg,lineHeight:1},e.fullWidth&&{width:"100%"},{[r.focus.selector]:r.focus.default}),null==(t=r.variants[e.variant])?void 0:t[e.color],{"&:hover":{"@media (hover: hover)":null==(n=r.variants[`${e.variant}Hover`])?void 0:n[e.color]}},{"&:active":null==(i=r.variants[`${e.variant}Active`])?void 0:i[e.color]},(0,o.Z)({[`&.${v.Z.disabled}`]:null==(a=r.variants[`${e.variant}Disabled`])?void 0:a[e.color]},"center"===e.loadingPosition&&{[`&.${v.Z.loading}`]:{color:"transparent"}})]}),z=i.forwardRef(function(r,e){var t;let s=(0,d.Z)({props:r,name:"JoyButton"}),{children:l,action:u,color:v="primary",variant:z="solid",size:S="md",fullWidth:P=!1,startDecorator:T,endDecorator:$,loading:I=!1,loadingPosition:w="center",loadingIndicator:_,disabled:A,component:B,slots:R={},slotProps:D={}}=s,M=(0,n.Z)(s,b),N=i.useContext(m.Z),O=r.variant||N.variant||z,W=r.size||N.size||S,{getColor:F}=(0,f.VT)(O),j=F(r.color,N.color||v),E=null!=(t=r.disabled)?t:N.disabled||A||I,H=i.useRef(null),V=(0,c.Z)(H,e),{focusVisible:J,setFocusVisible:L,getRootProps:U}=(0,a.Z)((0,o.Z)({},s,{disabled:E,rootRef:V})),K=null!=_?_:(0,h.jsx)(p.Z,(0,o.Z)({},"context"!==j&&{color:j},{thickness:{sm:2,md:3,lg:4}[W]||3}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var r;L(!0),null==(r=H.current)||r.focus()}}),[L]);let q=(0,o.Z)({},s,{color:j,fullWidth:P,variant:O,size:W,focusVisible:J,loading:I,loadingPosition:w,disabled:E}),G=Z(q),X=(0,o.Z)({},M,{component:B,slots:R,slotProps:D}),[Q,Y]=(0,g.Z)("root",{ref:e,className:G.root,elementType:C,externalForwardedProps:X,getSlotProps:U,ownerState:q}),[rr,re]=(0,g.Z)("startDecorator",{className:G.startDecorator,elementType:y,externalForwardedProps:X,ownerState:q}),[rt,rn]=(0,g.Z)("endDecorator",{className:G.endDecorator,elementType:k,externalForwardedProps:X,ownerState:q}),[ro,ri]=(0,g.Z)("loadingIndicatorCenter",{className:G.loadingIndicatorCenter,elementType:x,externalForwardedProps:X,ownerState:q});return(0,h.jsxs)(Q,(0,o.Z)({},Y,{children:[(T||I&&"start"===w)&&(0,h.jsx)(rr,(0,o.Z)({},re,{children:I&&"start"===w?K:T})),l,I&&"center"===w&&(0,h.jsx)(ro,(0,o.Z)({},ri,{children:K})),($||I&&"end"===w)&&(0,h.jsx)(rt,(0,o.Z)({},rn,{children:I&&"end"===w?K:$}))]}))});z.muiName="Button",e.Z=z},77614:function(r,e,t){"use strict";t.d(e,{F:function(){return o}});var n=t(18587);function o(r){return(0,n.d6)("MuiButton",r)}let i=(0,n.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);e.Z=i},42858:function(r,e,t){"use strict";var n=t(86006);let o=n.createContext({});e.Z=o},94244:function(r,e,t){"use strict";t.d(e,{Z:function(){return $}});var n=t(40431),o=t(46750),i=t(86006),a=t(89791),s=t(53832),l=t(47562),c=t(72120),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(18587);function v(r){return(0,p.d6)("MuiCircularProgress",r)}(0,p.sI)("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=t(9268);let h=r=>r,b,Z=["color","backgroundColor"],y=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],k=(0,c.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),x=r=>{let{determinate:e,color:t,variant:n,size:o}=r,i={root:["root",e&&"determinate",t&&`color${(0,s.Z)(t)}`,n&&`variant${(0,s.Z)(n)}`,o&&`size${(0,s.Z)(o)}`],svg:["svg"],track:["track"],progress:["progress"]};return(0,l.Z)(i,v,{})},C=(0,u.Z)("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t;let i=(null==(t=e.variants[r.variant])?void 0:t[r.color])||{},{color:a,backgroundColor:s}=i,l=(0,o.Z)(i,Z);return(0,n.Z)({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":a,"--CircularProgress-percent":r.value,"--CircularProgress-linecap":"round"},"sm"===r.size&&{"--CircularProgress-trackThickness":"3px","--CircularProgress-progressThickness":"3px","--_root-size":"var(--CircularProgress-size, 24px)"},"sm"===r.instanceSize&&{"--CircularProgress-size":"24px"},"md"===r.size&&{"--CircularProgress-trackThickness":"6px","--CircularProgress-progressThickness":"6px","--_root-size":"var(--CircularProgress-size, 40px)"},"md"===r.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===r.size&&{"--CircularProgress-trackThickness":"8px","--CircularProgress-progressThickness":"8px","--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===r.instanceSize&&{"--CircularProgress-size":"64px"},r.thickness&&{"--CircularProgress-trackThickness":`${r.thickness}px`,"--CircularProgress-progressThickness":`${r.thickness}px`},{"--_thickness-diff":"calc(var(--CircularProgress-trackThickness) - var(--CircularProgress-progressThickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--CircularProgress-trackThickness), var(--CircularProgress-progressThickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:a},r.children&&{fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},l,"outlined"===r.variant&&{"&:before":(0,n.Z)({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},l)})}),z=(0,u.Z)("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(r,e)=>e.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),S=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(r,e)=>e.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--CircularProgress-trackThickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--CircularProgress-trackThickness)",stroke:"var(--CircularProgress-trackColor)"}),P=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(r,e)=>e.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--CircularProgress-progressThickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--CircularProgress-progressThickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:r})=>!r.determinate&&(0,c.iv)(b||(b=h` - animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running) - ${0}; - `),k)),T=i.forwardRef(function(r,e){let t=(0,d.Z)({props:r,name:"JoyCircularProgress"}),{children:i,className:s,color:l="primary",size:c="md",variant:u="soft",thickness:p,determinate:v=!1,value:h=v?0:25,component:b,slots:Z={},slotProps:k={}}=t,T=(0,o.Z)(t,y),{getColor:$}=(0,f.VT)(u),I=$(r.color,l),w=(0,n.Z)({},t,{color:I,size:c,variant:u,thickness:p,value:h,determinate:v,instanceSize:r.size}),_=x(w),A=(0,n.Z)({},T,{component:b,slots:Z,slotProps:k}),[B,R]=(0,g.Z)("root",{ref:e,className:(0,a.Z)(_.root,s),elementType:C,externalForwardedProps:A,ownerState:w,additionalProps:(0,n.Z)({role:"progressbar",style:{"--CircularProgress-percent":h}},h&&v&&{"aria-valuenow":"number"==typeof h?Math.round(h):Math.round(Number(h||0))})}),[D,M]=(0,g.Z)("svg",{className:_.svg,elementType:z,externalForwardedProps:A,ownerState:w}),[N,O]=(0,g.Z)("track",{className:_.track,elementType:S,externalForwardedProps:A,ownerState:w}),[W,F]=(0,g.Z)("progress",{className:_.progress,elementType:P,externalForwardedProps:A,ownerState:w});return(0,m.jsxs)(B,(0,n.Z)({},R,{children:[(0,m.jsxs)(D,(0,n.Z)({},M,{children:[(0,m.jsx)(N,(0,n.Z)({},O)),(0,m.jsx)(W,(0,n.Z)({},F))]})),i]}))});var $=T},46319:function(r,e,t){"use strict";t.d(e,{Z:function(){return l}});var n=t(40431),o=t(86006),i=t(21454),a=t(99179),s=t(87862);function l(r={}){let{disabled:e=!1,focusableWhenDisabled:t,href:l,rootRef:c,tabIndex:u,to:d,type:f}=r,g=o.useRef(),[p,v]=o.useState(!1),{isFocusVisibleRef:m,onFocus:h,onBlur:b,ref:Z}=(0,i.Z)(),[y,k]=o.useState(!1);e&&!t&&y&&k(!1),o.useEffect(()=>{m.current=y},[y,m]);let[x,C]=o.useState(""),z=r=>e=>{var t;y&&e.preventDefault(),null==(t=r.onMouseLeave)||t.call(r,e)},S=r=>e=>{var t;b(e),!1===m.current&&k(!1),null==(t=r.onBlur)||t.call(r,e)},P=r=>e=>{var t,n;g.current||(g.current=e.currentTarget),h(e),!0===m.current&&(k(!0),null==(n=r.onFocusVisible)||n.call(r,e)),null==(t=r.onFocus)||t.call(r,e)},T=()=>{let r=g.current;return"BUTTON"===x||"INPUT"===x&&["button","submit","reset"].includes(null==r?void 0:r.type)||"A"===x&&(null==r?void 0:r.href)},$=r=>t=>{if(!e){var n;null==(n=r.onClick)||n.call(r,t)}},I=r=>t=>{var n;e||(v(!0),document.addEventListener("mouseup",()=>{v(!1)},{once:!0})),null==(n=r.onMouseDown)||n.call(r,t)},w=r=>t=>{var n,o;null==(n=r.onKeyDown)||n.call(r,t),!t.defaultMuiPrevented&&(t.target!==t.currentTarget||T()||" "!==t.key||t.preventDefault(),t.target!==t.currentTarget||" "!==t.key||e||v(!0),t.target!==t.currentTarget||T()||"Enter"!==t.key||e||(null==(o=r.onClick)||o.call(r,t),t.preventDefault()))},_=r=>t=>{var n,o;t.target===t.currentTarget&&v(!1),null==(n=r.onKeyUp)||n.call(r,t),t.target!==t.currentTarget||T()||e||" "!==t.key||t.defaultMuiPrevented||null==(o=r.onClick)||o.call(r,t)},A=o.useCallback(r=>{var e;C(null!=(e=null==r?void 0:r.tagName)?e:"")},[]),B=(0,a.Z)(A,c,Z,g),R={};return"BUTTON"===x?(R.type=null!=f?f:"button",t?R["aria-disabled"]=e:R.disabled=e):""!==x&&(l||d||(R.role="button",R.tabIndex=null!=u?u:0),e&&(R["aria-disabled"]=e,R.tabIndex=t?null!=u?u:0:-1)),{getRootProps:(e={})=>{let t=(0,s.Z)(r),o=(0,n.Z)({},t,e);return delete o.onFocusVisible,(0,n.Z)({type:f},o,R,{onBlur:S(o),onClick:$(o),onFocus:P(o),onKeyDown:w(o),onKeyUp:_(o),onMouseDown:I(o),onMouseLeave:z(o),ref:B})},focusVisible:y,setFocusVisible:k,active:p,rootRef:B}}},82833:function(r,e,t){"use strict";t.r(e),t.d(e,{capitalize:function(){return o},createChainedFunction:function(){return i},createSvgIcon:function(){return rr},debounce:function(){return re},deprecatedPropType:function(){return rt},isMuiElement:function(){return rn},ownerDocument:function(){return ro},ownerWindow:function(){return ri},requirePropFactory:function(){return ra},setRef:function(){return rs},unstable_ClassNameGenerator:function(){return rv},unstable_useEnhancedEffect:function(){return rl},unstable_useId:function(){return rc},unsupportedProp:function(){return ru},useControlled:function(){return rd},useEventCallback:function(){return rf},useForkRef:function(){return rg},useIsFocusVisible:function(){return rp}});var n=t(47327),o=t(53832).Z,i=function(...r){return r.reduce((r,e)=>null==e?r:function(...t){r.apply(this,t),e.apply(this,t)},()=>{})},a=t(40431),s=t(86006),l=t(46750),c=t(89791),u=t(47562),d=t(38295),f=t(16066),g=t(95135),p=t(89587),v=t(2272),m=t(51579),h=t(23343),b={black:"#000",white:"#fff"},Z={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"},y={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"},k={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"},x={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"},C={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"},z={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"},S={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"};let P=["mode","contrastThreshold","tonalOffset"],T={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:b.white,default:b.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}},$={text:{primary:b.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:b.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 I(r,e,t,n){let o=n.light||n,i=n.dark||1.5*n;r[e]||(r.hasOwnProperty(t)?r[e]=r[t]:"light"===e?r.light=(0,h.$n)(r.main,o):"dark"===e&&(r.dark=(0,h._j)(r.main,i)))}let w=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],_={textTransform:"uppercase"},A='"Roboto", "Helvetica", "Arial", sans-serif';function B(...r){return`${r[0]}px ${r[1]}px ${r[2]}px ${r[3]}px rgba(0,0,0,0.2),${r[4]}px ${r[5]}px ${r[6]}px ${r[7]}px rgba(0,0,0,0.14),${r[8]}px ${r[9]}px ${r[10]}px ${r[11]}px rgba(0,0,0,0.12)`}let R=["none",B(0,2,1,-1,0,1,1,0,0,1,3,0),B(0,3,1,-2,0,2,2,0,0,1,5,0),B(0,3,3,-2,0,3,4,0,0,1,8,0),B(0,2,4,-1,0,4,5,0,0,1,10,0),B(0,3,5,-1,0,5,8,0,0,1,14,0),B(0,3,5,-1,0,6,10,0,0,1,18,0),B(0,4,5,-2,0,7,10,1,0,2,16,1),B(0,5,5,-3,0,8,10,1,0,3,14,2),B(0,5,6,-3,0,9,12,1,0,3,16,2),B(0,6,6,-3,0,10,14,1,0,4,18,3),B(0,6,7,-4,0,11,15,1,0,4,20,3),B(0,7,8,-4,0,12,17,2,0,5,22,4),B(0,7,8,-4,0,13,19,2,0,5,24,4),B(0,7,9,-4,0,14,21,2,0,5,26,4),B(0,8,9,-5,0,15,22,2,0,6,28,5),B(0,8,10,-5,0,16,24,2,0,6,30,5),B(0,8,11,-5,0,17,26,2,0,6,32,5),B(0,9,11,-5,0,18,28,2,0,7,34,6),B(0,9,12,-6,0,19,29,2,0,7,36,6),B(0,10,13,-6,0,20,31,3,0,8,38,7),B(0,10,13,-6,0,21,33,3,0,8,40,7),B(0,10,14,-6,0,22,35,3,0,8,42,7),B(0,11,14,-7,0,23,36,3,0,9,44,8),B(0,11,15,-7,0,24,38,3,0,9,46,8)],D=["duration","easing","delay"],M={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)"},N={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function O(r){return`${Math.round(r)}ms`}function W(r){if(!r)return 0;let e=r/36;return Math.round((4+15*e**.25+e/5)*10)}var F={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};let j=["breakpoints","mixins","spacing","palette","transitions","typography","shape"],E=function(r={}){var e;let{mixins:t={},palette:n={},transitions:o={},typography:i={}}=r,s=(0,l.Z)(r,j);if(r.vars)throw Error((0,f.Z)(18));let c=function(r){let{mode:e="light",contrastThreshold:t=3,tonalOffset:n=.2}=r,o=(0,l.Z)(r,P),i=r.primary||function(r="light"){return"dark"===r?{main:C[200],light:C[50],dark:C[400]}:{main:C[700],light:C[400],dark:C[800]}}(e),s=r.secondary||function(r="light"){return"dark"===r?{main:y[200],light:y[50],dark:y[400]}:{main:y[500],light:y[300],dark:y[700]}}(e),c=r.error||function(r="light"){return"dark"===r?{main:k[500],light:k[300],dark:k[700]}:{main:k[700],light:k[400],dark:k[800]}}(e),u=r.info||function(r="light"){return"dark"===r?{main:z[400],light:z[300],dark:z[700]}:{main:z[700],light:z[500],dark:z[900]}}(e),d=r.success||function(r="light"){return"dark"===r?{main:S[400],light:S[300],dark:S[700]}:{main:S[800],light:S[500],dark:S[900]}}(e),p=r.warning||function(r="light"){return"dark"===r?{main:x[400],light:x[300],dark:x[700]}:{main:"#ed6c02",light:x[500],dark:x[900]}}(e);function v(r){let e=(0,h.mi)(r,$.text.primary)>=t?$.text.primary:T.text.primary;return e}let m=({color:r,name:e,mainShade:t=500,lightShade:o=300,darkShade:i=700})=>{if(!(r=(0,a.Z)({},r)).main&&r[t]&&(r.main=r[t]),!r.hasOwnProperty("main"))throw Error((0,f.Z)(11,e?` (${e})`:"",t));if("string"!=typeof r.main)throw Error((0,f.Z)(12,e?` (${e})`:"",JSON.stringify(r.main)));return I(r,"light",o,n),I(r,"dark",i,n),r.contrastText||(r.contrastText=v(r.main)),r},w=(0,g.Z)((0,a.Z)({common:(0,a.Z)({},b),mode:e,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:d,name:"success"}),grey:Z,contrastThreshold:t,getContrastText:v,augmentColor:m,tonalOffset:n},{dark:$,light:T}[e]),o);return w}(n),u=(0,p.Z)(r),d=(0,g.Z)(u,{mixins:(e=u.breakpoints,(0,a.Z)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)),palette:c,shadows:R.slice(),typography:function(r,e){let t="function"==typeof e?e(r):e,{fontFamily:n=A,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:p}=t,v=(0,l.Z)(t,w),m=o/14,h=p||(r=>`${r/d*m}rem`),b=(r,e,t,o,i)=>(0,a.Z)({fontFamily:n,fontWeight:r,fontSize:h(e),lineHeight:t},n===A?{letterSpacing:`${Math.round(1e5*(o/e))/1e5}em`}:{},i,f),Z={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(s,48,1.167,0),h4:b(s,34,1.235,.25),h5:b(s,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(s,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(s,16,1.5,.15),body2:b(s,14,1.43,.15),button:b(c,14,1.75,.4,_),caption:b(s,12,1.66,.4),overline:b(s,12,2.66,1,_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,g.Z)((0,a.Z)({htmlFontSize:d,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:u},Z),v,{clone:!1})}(c,i),transitions:function(r){let e=(0,a.Z)({},M,r.easing),t=(0,a.Z)({},N,r.duration);return(0,a.Z)({getAutoHeightDuration:W,create:(r=["all"],n={})=>{let{duration:o=t.standard,easing:i=e.easeInOut,delay:a=0}=n;return(0,l.Z)(n,D),(Array.isArray(r)?r:[r]).map(r=>`${r} ${"string"==typeof o?o:O(o)} ${i} ${"string"==typeof a?a:O(a)}`).join(",")}},r,{easing:e,duration:t})}(o),zIndex:(0,a.Z)({},F)});return(d=[].reduce((r,e)=>(0,g.Z)(r,e),d=(0,g.Z)(d,s))).unstable_sxConfig=(0,a.Z)({},v.Z,null==s?void 0:s.unstable_sxConfig),d.unstable_sx=function(r){return(0,m.Z)({sx:r,theme:this})},d}();var H="$$material",V=t(9312);let J=(0,V.ZP)({themeId:H,defaultTheme:E,rootShouldForwardProp:r=>(0,V.x9)(r)&&"classes"!==r});var L=t(88539),U=t(13809);function K(r){return(0,U.Z)("MuiSvgIcon",r)}(0,L.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var q=t(9268);let G=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X=r=>{let{color:e,fontSize:t,classes:n}=r,i={root:["root","inherit"!==e&&`color${o(e)}`,`fontSize${o(t)}`]};return(0,u.Z)(i,K,n)},Q=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(r,e)=>{let{ownerState:t}=r;return[e.root,"inherit"!==t.color&&e[`color${o(t.color)}`],e[`fontSize${o(t.fontSize)}`]]}})(({theme:r,ownerState:e})=>{var t,n,o,i,a,s,l,c,u,d,f,g,p,v,m,h,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=r.transitions)?void 0:null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(o=r.transitions)?void 0:null==(i=o.duration)?void 0:i.shorter}),fontSize:({inherit:"inherit",small:(null==(a=r.typography)?void 0:null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=r.typography)?void 0:null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=r.typography)?void 0:null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"})[e.fontSize],color:null!=(f=null==(g=(r.vars||r).palette)?void 0:null==(p=g[e.color])?void 0:p.main)?f:({action:null==(v=(r.vars||r).palette)?void 0:null==(m=v.action)?void 0:m.active,disabled:null==(h=(r.vars||r).palette)?void 0:null==(b=h.action)?void 0:b.disabled,inherit:void 0})[e.color]}}),Y=s.forwardRef(function(r,e){let t=function({props:r,name:e}){return(0,d.Z)({props:r,name:e,defaultTheme:E,themeId:H})}({props:r,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:u="svg",fontSize:f="medium",htmlColor:g,inheritViewBox:p=!1,titleAccess:v,viewBox:m="0 0 24 24"}=t,h=(0,l.Z)(t,G),b=s.isValidElement(n)&&"svg"===n.type,Z=(0,a.Z)({},t,{color:i,component:u,fontSize:f,instanceFontSize:r.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:b}),y={};p||(y.viewBox=m);let k=X(Z);return(0,q.jsxs)(Q,(0,a.Z)({as:u,className:(0,c.Z)(k.root,o),focusable:"false",color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:e},y,h,b&&n.props,{ownerState:Z,children:[b?n.props.children:n,v?(0,q.jsx)("title",{children:v}):null]}))});function rr(r,e){function t(t,n){return(0,q.jsx)(Y,(0,a.Z)({"data-testid":`${e}Icon`,ref:n},t,{children:r}))}return t.muiName=Y.muiName,s.memo(s.forwardRef(t))}Y.muiName="SvgIcon";var re=t(22099).Z,rt=function(r,e){return()=>null},rn=t(44542).Z,ro=t(47375).Z,ri=t(30165).Z,ra=function(r,e){return()=>null},rs=t(65464).Z,rl=t(11059).Z,rc=t(49657).Z,ru=function(r,e,t,n,o){return null},rd=t(24263).Z,rf=t(66519).Z,rg=t(99179).Z,rp=t(21454).Z;let rv={configure:r=>{n.Z.configure(r)}}},22099:function(r,e,t){"use strict";function n(r,e=166){let t;function n(...o){clearTimeout(t),t=setTimeout(()=>{r.apply(this,o)},e)}return n.clear=()=>{clearTimeout(t)},n}t.d(e,{Z:function(){return n}})},47375:function(r,e,t){"use strict";function n(r){return r&&r.ownerDocument||document}t.d(e,{Z:function(){return n}})},30165:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(47375);function o(r){let e=(0,n.Z)(r);return e.defaultView||window}},24263:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(86006);function o({controlled:r,default:e,name:t,state:o="value"}){let{current:i}=n.useRef(void 0!==r),[a,s]=n.useState(e),l=i?r:a,c=n.useCallback(r=>{i||s(r)},[]);return[l,c]}},11059:function(r,e,t){"use strict";var n=t(86006);let o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;e.Z=o},66519:function(r,e,t){"use strict";var n=t(86006),o=t(11059);e.Z=function(r){let e=n.useRef(r);return(0,o.Z)(()=>{e.current=r}),n.useCallback((...r)=>(0,e.current)(...r),[])}},49657:function(r,e,t){"use strict";t.d(e,{Z:function(){return s}});var n,o=t(86006);let i=0,a=(n||(n=t.t(o,2)))["useId".toString()];function s(r){if(void 0!==a){let e=a();return null!=r?r:e}return function(r){let[e,t]=o.useState(r),n=r||e;return o.useEffect(()=>{null==e&&t(`mui-${i+=1}`)},[e]),n}(r)}},78997:function(r){r.exports=function(r){return r&&r.__esModule?r:{default:r}},r.exports.__esModule=!0,r.exports.default=r.exports}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/272-bbed3d96ad8d77ee.js b/pilot/server/static/_next/static/chunks/272-bbed3d96ad8d77ee.js deleted file mode 100644 index c69b2458a..000000000 --- a/pilot/server/static/_next/static/chunks/272-bbed3d96ad8d77ee.js +++ /dev/null @@ -1,4 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[272],{73811:function(r,e,t){"use strict";t.d(e,{Z:function(){return l}});var n=t(40431),o=t(86006),i=t(21454),a=t(99179),s=t(50487);function l(r={}){let{disabled:e=!1,focusableWhenDisabled:t,href:l,rootRef:c,tabIndex:u,to:d,type:f}=r,g=o.useRef(),[p,v]=o.useState(!1),{isFocusVisibleRef:m,onFocus:h,onBlur:b,ref:Z}=(0,i.Z)(),[y,k]=o.useState(!1);e&&!t&&y&&k(!1),o.useEffect(()=>{m.current=y},[y,m]);let[x,C]=o.useState(""),z=r=>e=>{var t;y&&e.preventDefault(),null==(t=r.onMouseLeave)||t.call(r,e)},S=r=>e=>{var t;b(e),!1===m.current&&k(!1),null==(t=r.onBlur)||t.call(r,e)},P=r=>e=>{var t,n;g.current||(g.current=e.currentTarget),h(e),!0===m.current&&(k(!0),null==(n=r.onFocusVisible)||n.call(r,e)),null==(t=r.onFocus)||t.call(r,e)},T=()=>{let r=g.current;return"BUTTON"===x||"INPUT"===x&&["button","submit","reset"].includes(null==r?void 0:r.type)||"A"===x&&(null==r?void 0:r.href)},I=r=>t=>{if(!e){var n;null==(n=r.onClick)||n.call(r,t)}},$=r=>t=>{var n;e||(v(!0),document.addEventListener("mouseup",()=>{v(!1)},{once:!0})),null==(n=r.onMouseDown)||n.call(r,t)},w=r=>t=>{var n,o;null==(n=r.onKeyDown)||n.call(r,t),!t.defaultMuiPrevented&&(t.target!==t.currentTarget||T()||" "!==t.key||t.preventDefault(),t.target!==t.currentTarget||" "!==t.key||e||v(!0),t.target!==t.currentTarget||T()||"Enter"!==t.key||e||(null==(o=r.onClick)||o.call(r,t),t.preventDefault()))},_=r=>t=>{var n,o;t.target===t.currentTarget&&v(!1),null==(n=r.onKeyUp)||n.call(r,t),t.target!==t.currentTarget||T()||e||" "!==t.key||t.defaultMuiPrevented||null==(o=r.onClick)||o.call(r,t)},A=o.useCallback(r=>{var e;C(null!=(e=null==r?void 0:r.tagName)?e:"")},[]),B=(0,a.Z)(A,c,Z,g),R={};return"BUTTON"===x?(R.type=null!=f?f:"button",t?R["aria-disabled"]=e:R.disabled=e):""!==x&&(l||d||(R.role="button",R.tabIndex=null!=u?u:0),e&&(R["aria-disabled"]=e,R.tabIndex=t?null!=u?u:0:-1)),{getRootProps:(e={})=>{let t=(0,s.Z)(r),o=(0,n.Z)({},t,e);return delete o.onFocusVisible,(0,n.Z)({type:f},o,R,{onBlur:S(o),onClick:I(o),onFocus:P(o),onKeyDown:w(o),onKeyUp:_(o),onMouseDown:$(o),onMouseLeave:z(o),ref:B})},focusVisible:y,setFocusVisible:k,active:p,rootRef:B}}},76906:function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=t(16806)},90545:function(r,e,t){"use strict";t.d(e,{Z:function(){return h}});var n=t(40431),o=t(46750),i=t(86006),a=t(73702),s=t(4323),l=t(51579),c=t(86601),u=t(95887),d=t(9268);let f=["className","component"];var g=t(47327),p=t(98918),v=t(8622);let m=function(r={}){let{themeId:e,defaultTheme:t,defaultClassName:g="MuiBox-root",generateClassName:p}=r,v=(0,s.ZP)("div",{shouldForwardProp:r=>"theme"!==r&&"sx"!==r&&"as"!==r})(l.Z),m=i.forwardRef(function(r,i){let s=(0,u.Z)(t),l=(0,c.Z)(r),{className:m,component:h="div"}=l,b=(0,o.Z)(l,f);return(0,d.jsx)(v,(0,n.Z)({as:h,ref:i,className:(0,a.Z)(m,p?p(g):g),theme:e&&s[e]||s},b))});return m}({themeId:v.Z,defaultTheme:p.Z,defaultClassName:"MuiBox-root",generateClassName:g.Z.generate});var h=m},53113:function(r,e,t){"use strict";var n=t(46750),o=t(40431),i=t(86006),a=t(73811),s=t(47562),l=t(53832),c=t(99179),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(94244),v=t(77614),m=t(42858),h=t(9268);let b=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],Z=r=>{let{color:e,disabled:t,focusVisible:n,focusVisibleClassName:o,fullWidth:i,size:a,variant:c,loading:u}=r,d={root:["root",t&&"disabled",n&&"focusVisible",i&&"fullWidth",c&&`variant${(0,l.Z)(c)}`,e&&`color${(0,l.Z)(e)}`,a&&`size${(0,l.Z)(a)}`,u&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},f=(0,s.Z)(d,v.F,{});return n&&o&&(f.root+=` ${o}`),f},y=(0,u.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),k=(0,u.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),x=(0,u.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(r,e)=>e.loadingIndicatorCenter})(({theme:r,ownerState:e})=>{var t,n;return(0,o.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=r.variants[e.variant])||null==(t=t[e.color])?void 0:t.color},e.disabled&&{color:null==(n=r.variants[`${e.variant}Disabled`])||null==(n=n[e.color])?void 0:n.color})}),C=(0,u.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},"sm"===e.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===e.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===e.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:r.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${r.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:r.vars.fontFamily.body,fontWeight:r.vars.fontWeight.lg,lineHeight:1},e.fullWidth&&{width:"100%"},{[r.focus.selector]:r.focus.default}),null==(t=r.variants[e.variant])?void 0:t[e.color],{"&:hover":{"@media (hover: hover)":null==(n=r.variants[`${e.variant}Hover`])?void 0:n[e.color]}},{"&:active":null==(i=r.variants[`${e.variant}Active`])?void 0:i[e.color]},(0,o.Z)({[`&.${v.Z.disabled}`]:null==(a=r.variants[`${e.variant}Disabled`])?void 0:a[e.color]},"center"===e.loadingPosition&&{[`&.${v.Z.loading}`]:{color:"transparent"}})]}),z=i.forwardRef(function(r,e){var t;let s=(0,d.Z)({props:r,name:"JoyButton"}),{children:l,action:u,color:v="primary",variant:z="solid",size:S="md",fullWidth:P=!1,startDecorator:T,endDecorator:I,loading:$=!1,loadingPosition:w="center",loadingIndicator:_,disabled:A,component:B,slots:R={},slotProps:D={}}=s,N=(0,n.Z)(s,b),M=i.useContext(m.Z),O=r.variant||M.variant||z,F=r.size||M.size||S,{getColor:W}=(0,f.VT)(O),j=W(r.color,M.color||v),E=null!=(t=r.disabled)?t:M.disabled||A||$,H=i.useRef(null),V=(0,c.Z)(H,e),{focusVisible:J,setFocusVisible:L,getRootProps:U}=(0,a.Z)((0,o.Z)({},s,{disabled:E,rootRef:V})),K=null!=_?_:(0,h.jsx)(p.Z,(0,o.Z)({},"context"!==j&&{color:j},{thickness:{sm:2,md:3,lg:4}[F]||3}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var r;L(!0),null==(r=H.current)||r.focus()}}),[L]);let q=(0,o.Z)({},s,{color:j,fullWidth:P,variant:O,size:F,focusVisible:J,loading:$,loadingPosition:w,disabled:E}),G=Z(q),X=(0,o.Z)({},N,{component:B,slots:R,slotProps:D}),[Q,Y]=(0,g.Z)("root",{ref:e,className:G.root,elementType:C,externalForwardedProps:X,getSlotProps:U,ownerState:q}),[rr,re]=(0,g.Z)("startDecorator",{className:G.startDecorator,elementType:y,externalForwardedProps:X,ownerState:q}),[rt,rn]=(0,g.Z)("endDecorator",{className:G.endDecorator,elementType:k,externalForwardedProps:X,ownerState:q}),[ro,ri]=(0,g.Z)("loadingIndicatorCenter",{className:G.loadingIndicatorCenter,elementType:x,externalForwardedProps:X,ownerState:q});return(0,h.jsxs)(Q,(0,o.Z)({},Y,{children:[(T||$&&"start"===w)&&(0,h.jsx)(rr,(0,o.Z)({},re,{children:$&&"start"===w?K:T})),l,$&&"center"===w&&(0,h.jsx)(ro,(0,o.Z)({},ri,{children:K})),(I||$&&"end"===w)&&(0,h.jsx)(rt,(0,o.Z)({},rn,{children:$&&"end"===w?K:I}))]}))});z.muiName="Button",e.Z=z},77614:function(r,e,t){"use strict";t.d(e,{F:function(){return o}});var n=t(18587);function o(r){return(0,n.d6)("MuiButton",r)}let i=(0,n.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);e.Z=i},42858:function(r,e,t){"use strict";var n=t(86006);let o=n.createContext({});e.Z=o},94244:function(r,e,t){"use strict";t.d(e,{Z:function(){return I}});var n=t(40431),o=t(46750),i=t(86006),a=t(89791),s=t(53832),l=t(47562),c=t(72120),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(18587);function v(r){return(0,p.d6)("MuiCircularProgress",r)}(0,p.sI)("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=t(9268);let h=r=>r,b,Z=["color","backgroundColor"],y=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],k=(0,c.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),x=r=>{let{determinate:e,color:t,variant:n,size:o}=r,i={root:["root",e&&"determinate",t&&`color${(0,s.Z)(t)}`,n&&`variant${(0,s.Z)(n)}`,o&&`size${(0,s.Z)(o)}`],svg:["svg"],track:["track"],progress:["progress"]};return(0,l.Z)(i,v,{})},C=(0,u.Z)("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t;let i=(null==(t=e.variants[r.variant])?void 0:t[r.color])||{},{color:a,backgroundColor:s}=i,l=(0,o.Z)(i,Z);return(0,n.Z)({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":a,"--CircularProgress-percent":r.value,"--CircularProgress-linecap":"round"},"sm"===r.size&&{"--CircularProgress-trackThickness":"3px","--CircularProgress-progressThickness":"3px","--_root-size":"var(--CircularProgress-size, 24px)"},"sm"===r.instanceSize&&{"--CircularProgress-size":"24px"},"md"===r.size&&{"--CircularProgress-trackThickness":"6px","--CircularProgress-progressThickness":"6px","--_root-size":"var(--CircularProgress-size, 40px)"},"md"===r.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===r.size&&{"--CircularProgress-trackThickness":"8px","--CircularProgress-progressThickness":"8px","--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===r.instanceSize&&{"--CircularProgress-size":"64px"},r.thickness&&{"--CircularProgress-trackThickness":`${r.thickness}px`,"--CircularProgress-progressThickness":`${r.thickness}px`},{"--_thickness-diff":"calc(var(--CircularProgress-trackThickness) - var(--CircularProgress-progressThickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--CircularProgress-trackThickness), var(--CircularProgress-progressThickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:a},r.children&&{fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},l,"outlined"===r.variant&&{"&:before":(0,n.Z)({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},l)})}),z=(0,u.Z)("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(r,e)=>e.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),S=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(r,e)=>e.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--CircularProgress-trackThickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--CircularProgress-trackThickness)",stroke:"var(--CircularProgress-trackColor)"}),P=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(r,e)=>e.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--CircularProgress-progressThickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--CircularProgress-progressThickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:r})=>!r.determinate&&(0,c.iv)(b||(b=h` - animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running) - ${0}; - `),k)),T=i.forwardRef(function(r,e){let t=(0,d.Z)({props:r,name:"JoyCircularProgress"}),{children:i,className:s,color:l="primary",size:c="md",variant:u="soft",thickness:p,determinate:v=!1,value:h=v?0:25,component:b,slots:Z={},slotProps:k={}}=t,T=(0,o.Z)(t,y),{getColor:I}=(0,f.VT)(u),$=I(r.color,l),w=(0,n.Z)({},t,{color:$,size:c,variant:u,thickness:p,value:h,determinate:v,instanceSize:r.size}),_=x(w),A=(0,n.Z)({},T,{component:b,slots:Z,slotProps:k}),[B,R]=(0,g.Z)("root",{ref:e,className:(0,a.Z)(_.root,s),elementType:C,externalForwardedProps:A,ownerState:w,additionalProps:(0,n.Z)({role:"progressbar",style:{"--CircularProgress-percent":h}},h&&v&&{"aria-valuenow":"number"==typeof h?Math.round(h):Math.round(Number(h||0))})}),[D,N]=(0,g.Z)("svg",{className:_.svg,elementType:z,externalForwardedProps:A,ownerState:w}),[M,O]=(0,g.Z)("track",{className:_.track,elementType:S,externalForwardedProps:A,ownerState:w}),[F,W]=(0,g.Z)("progress",{className:_.progress,elementType:P,externalForwardedProps:A,ownerState:w});return(0,m.jsxs)(B,(0,n.Z)({},R,{children:[(0,m.jsxs)(D,(0,n.Z)({},N,{children:[(0,m.jsx)(M,(0,n.Z)({},O)),(0,m.jsx)(F,(0,n.Z)({},W))]})),i]}))});var I=T},16806:function(r,e,t){"use strict";t.r(e),t.d(e,{capitalize:function(){return o},createChainedFunction:function(){return i},createSvgIcon:function(){return rr},debounce:function(){return re},deprecatedPropType:function(){return rt},isMuiElement:function(){return rn},ownerDocument:function(){return ro},ownerWindow:function(){return ri},requirePropFactory:function(){return ra},setRef:function(){return rs},unstable_ClassNameGenerator:function(){return rv},unstable_useEnhancedEffect:function(){return rl},unstable_useId:function(){return rc},unsupportedProp:function(){return ru},useControlled:function(){return rd},useEventCallback:function(){return rf},useForkRef:function(){return rg},useIsFocusVisible:function(){return rp}});var n=t(47327),o=t(53832).Z,i=function(...r){return r.reduce((r,e)=>null==e?r:function(...t){r.apply(this,t),e.apply(this,t)},()=>{})},a=t(40431),s=t(86006),l=t(46750),c=function(){for(var r,e,t=0,n="";t=t?I.text.primary:T.text.primary;return e}let m=({color:r,name:e,mainShade:t=500,lightShade:o=300,darkShade:i=700})=>{if(!(r=(0,a.Z)({},r)).main&&r[t]&&(r.main=r[t]),!r.hasOwnProperty("main"))throw Error((0,f.Z)(11,e?` (${e})`:"",t));if("string"!=typeof r.main)throw Error((0,f.Z)(12,e?` (${e})`:"",JSON.stringify(r.main)));return $(r,"light",o,n),$(r,"dark",i,n),r.contrastText||(r.contrastText=v(r.main)),r},w=(0,g.Z)((0,a.Z)({common:(0,a.Z)({},b),mode:e,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:d,name:"success"}),grey:Z,contrastThreshold:t,getContrastText:v,augmentColor:m,tonalOffset:n},{dark:I,light:T}[e]),o);return w}(n),u=(0,p.Z)(r),d=(0,g.Z)(u,{mixins:(e=u.breakpoints,(0,a.Z)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)),palette:c,shadows:R.slice(),typography:function(r,e){let t="function"==typeof e?e(r):e,{fontFamily:n=A,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:p}=t,v=(0,l.Z)(t,w),m=o/14,h=p||(r=>`${r/d*m}rem`),b=(r,e,t,o,i)=>(0,a.Z)({fontFamily:n,fontWeight:r,fontSize:h(e),lineHeight:t},n===A?{letterSpacing:`${Math.round(1e5*(o/e))/1e5}em`}:{},i,f),Z={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(s,48,1.167,0),h4:b(s,34,1.235,.25),h5:b(s,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(s,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(s,16,1.5,.15),body2:b(s,14,1.43,.15),button:b(c,14,1.75,.4,_),caption:b(s,12,1.66,.4),overline:b(s,12,2.66,1,_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,g.Z)((0,a.Z)({htmlFontSize:d,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:u},Z),v,{clone:!1})}(c,i),transitions:function(r){let e=(0,a.Z)({},N,r.easing),t=(0,a.Z)({},M,r.duration);return(0,a.Z)({getAutoHeightDuration:F,create:(r=["all"],n={})=>{let{duration:o=t.standard,easing:i=e.easeInOut,delay:a=0}=n;return(0,l.Z)(n,D),(Array.isArray(r)?r:[r]).map(r=>`${r} ${"string"==typeof o?o:O(o)} ${i} ${"string"==typeof a?a:O(a)}`).join(",")}},r,{easing:e,duration:t})}(o),zIndex:(0,a.Z)({},W)});return(d=[].reduce((r,e)=>(0,g.Z)(r,e),d=(0,g.Z)(d,s))).unstable_sxConfig=(0,a.Z)({},v.Z,null==s?void 0:s.unstable_sxConfig),d.unstable_sx=function(r){return(0,m.Z)({sx:r,theme:this})},d}();var H="$$material",V=t(9312);let J=(0,V.ZP)({themeId:H,defaultTheme:E,rootShouldForwardProp:r=>(0,V.x9)(r)&&"classes"!==r});var L=t(88539),U=t(13809);function K(r){return(0,U.Z)("MuiSvgIcon",r)}(0,L.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var q=t(9268);let G=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X=r=>{let{color:e,fontSize:t,classes:n}=r,i={root:["root","inherit"!==e&&`color${o(e)}`,`fontSize${o(t)}`]};return(0,u.Z)(i,K,n)},Q=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(r,e)=>{let{ownerState:t}=r;return[e.root,"inherit"!==t.color&&e[`color${o(t.color)}`],e[`fontSize${o(t.fontSize)}`]]}})(({theme:r,ownerState:e})=>{var t,n,o,i,a,s,l,c,u,d,f,g,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=r.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(o=r.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:({inherit:"inherit",small:(null==(i=r.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=r.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=r.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"})[e.fontSize],color:null!=(d=null==(f=(r.vars||r).palette)||null==(f=f[e.color])?void 0:f.main)?d:({action:null==(g=(r.vars||r).palette)||null==(g=g.action)?void 0:g.active,disabled:null==(p=(r.vars||r).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0})[e.color]}}),Y=s.forwardRef(function(r,e){let t=function({props:r,name:e}){return(0,d.Z)({props:r,name:e,defaultTheme:E,themeId:H})}({props:r,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:u="svg",fontSize:f="medium",htmlColor:g,inheritViewBox:p=!1,titleAccess:v,viewBox:m="0 0 24 24"}=t,h=(0,l.Z)(t,G),b=s.isValidElement(n)&&"svg"===n.type,Z=(0,a.Z)({},t,{color:i,component:u,fontSize:f,instanceFontSize:r.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:b}),y={};p||(y.viewBox=m);let k=X(Z);return(0,q.jsxs)(Q,(0,a.Z)({as:u,className:c(k.root,o),focusable:"false",color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:e},y,h,b&&n.props,{ownerState:Z,children:[b?n.props.children:n,v?(0,q.jsx)("title",{children:v}):null]}))});function rr(r,e){function t(t,n){return(0,q.jsx)(Y,(0,a.Z)({"data-testid":`${e}Icon`,ref:n},t,{children:r}))}return t.muiName=Y.muiName,s.memo(s.forwardRef(t))}Y.muiName="SvgIcon";var re=t(22099).Z,rt=function(r,e){return()=>null},rn=t(44542).Z,ro=t(47375).Z,ri=t(30165).Z,ra=function(r,e){return()=>null},rs=t(65464).Z,rl=t(11059).Z,rc=t(49657).Z,ru=function(r,e,t,n,o){return null},rd=t(24263).Z,rf=t(66519).Z,rg=t(99179).Z,rp=t(21454).Z;let rv={configure:r=>{n.Z.configure(r)}}},22099:function(r,e,t){"use strict";function n(r,e=166){let t;function n(...o){clearTimeout(t),t=setTimeout(()=>{r.apply(this,o)},e)}return n.clear=()=>{clearTimeout(t)},n}t.d(e,{Z:function(){return n}})},47375:function(r,e,t){"use strict";function n(r){return r&&r.ownerDocument||document}t.d(e,{Z:function(){return n}})},30165:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(47375);function o(r){let e=(0,n.Z)(r);return e.defaultView||window}},24263:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(86006);function o({controlled:r,default:e,name:t,state:o="value"}){let{current:i}=n.useRef(void 0!==r),[a,s]=n.useState(e),l=i?r:a,c=n.useCallback(r=>{i||s(r)},[]);return[l,c]}},11059:function(r,e,t){"use strict";var n=t(86006);let o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;e.Z=o},66519:function(r,e,t){"use strict";var n=t(86006),o=t(11059);e.Z=function(r){let e=n.useRef(r);return(0,o.Z)(()=>{e.current=r}),n.useCallback((...r)=>(0,e.current)(...r),[])}},49657:function(r,e,t){"use strict";t.d(e,{Z:function(){return s}});var n,o=t(86006);let i=0,a=(n||(n=t.t(o,2)))["useId".toString()];function s(r){if(void 0!==a){let e=a();return null!=r?r:e}return function(r){let[e,t]=o.useState(r),n=r||e;return o.useEffect(()=>{null==e&&t(`mui-${i+=1}`)},[e]),n}(r)}},78997:function(r){r.exports=function(r){return r&&r.__esModule?r:{default:r}},r.exports.__esModule=!0,r.exports.default=r.exports}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/3191-4eb9ded63b9b34b9.js b/pilot/server/static/_next/static/chunks/3191-4eb9ded63b9b34b9.js deleted file mode 100644 index 9404d7e55..000000000 --- a/pilot/server/static/_next/static/chunks/3191-4eb9ded63b9b34b9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3191],{50318:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var r=i(46750),n=i(40431),o=i(86006),a=i(89791),l=i(53832),s=i(47562),d=i(50645),u=i(88930),c=i(18587);function f(e){return(0,c.d6)("MuiDivider",e)}(0,c.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var p=i(326),m=i(9268);let v=["className","children","component","inset","orientation","role","slots","slotProps"],g=e=>{let{orientation:t,inset:i}=e,r={root:["root",t,i&&`inset${(0,l.Z)(i)}`]};return(0,s.Z)(r,f,{})},h=(0,d.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,n.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===t.inset&&{"--_Divider-inset":"0px"},"context"===t.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===t.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===t.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},t.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===t.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===t.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===t.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===t.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===t.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===t.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===t.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===t.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===t.orientation?"initial":"var(--Divider-thickness)"})),b=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyDivider"}),{className:o,children:l,component:s=null!=l?"div":"hr",inset:d,orientation:c="horizontal",role:f="hr"!==s?"separator":void 0,slots:b={},slotProps:y={}}=i,_=(0,r.Z)(i,v),w=(0,n.Z)({},i,{inset:d,role:f,orientation:c,component:s}),S=g(w),x=(0,n.Z)({},_,{component:s,slots:b,slotProps:y}),[P,C]=(0,p.Z)("root",{ref:t,className:(0,a.Z)(S.root,o),elementType:h,externalForwardedProps:x,ownerState:w,additionalProps:(0,n.Z)({as:s,role:f},"separator"===f&&"vertical"===c&&{"aria-orientation":"vertical"})});return(0,m.jsx)(P,(0,n.Z)({},C,{children:l}))});b.muiName="Divider";var y=b},85962:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return b}});let r=i(26927),n=i(25909),o=n._(i(86006)),a=r._(i(72930)),l=i(12325),s=i(46374),d=i(80168);i(17653);let u=r._(i(35840)),c={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function f(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function m(e,t,i,r,n,o,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===i&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,n=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}})}function v(e){let[t,i]=o.version.split("."),r=parseInt(t,10),n=parseInt(i,10);return r>18||18===r&&n>=3?{fetchPriority:e}:{fetchpriority:e}}let g=(0,o.forwardRef)((e,t)=>{let{imgAttributes:i,heightInt:r,widthInt:n,qualityInt:a,className:l,imgStyle:s,blurStyle:d,isLazy:u,fetchPriority:c,fill:f,placeholder:p,loading:g,srcString:h,config:b,unoptimized:y,loader:_,onLoadRef:w,onLoadingCompleteRef:S,setBlurComplete:x,setShowAltText:P,onLoad:C,onError:D,...j}=e;return g=u?"lazy":g,o.default.createElement("img",{...j,...v(c),loading:g,width:n,height:r,decoding:"async","data-nimg":f?"fill":"1",className:l,style:{...s,...d},...i,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(D&&(e.src=e.src),e.complete&&m(e,h,p,w,S,x,y))},[h,p,w,S,x,D,y,t]),onLoad:e=>{let t=e.currentTarget;m(t,h,p,w,S,x,y)},onError:e=>{P(!0),"blur"===p&&x(!0),D&&D(e)}})}),h=(0,o.forwardRef)((e,t)=>{var i;let r,n,{src:m,sizes:h,unoptimized:b=!1,priority:y=!1,loading:_,className:w,quality:S,width:x,height:P,fill:C,style:D,onLoad:j,onLoadingComplete:E,placeholder:k="empty",blurDataURL:O,fetchPriority:M,layout:z,objectFit:I,objectPosition:A,lazyBoundary:R,lazyRoot:N,...Z}=e,B=(0,o.useContext)(d.ImageConfigContext),F=(0,o.useMemo)(()=>{let e=c||B||s.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),i=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i}},[B]),U=Z.loader||u.default;delete Z.loader;let T="__next_img_default"in U;if(T){if("custom"===F.loader)throw Error('Image with src "'+m+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=U;U=t=>{let{config:i,...r}=t;return e(r)}}if(z){"fill"===z&&(C=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[z];e&&(D={...D,...e});let t={responsive:"100vw",fill:"100vw"}[z];t&&!h&&(h=t)}let W="",L=p(x),G=p(P);if("object"==typeof(i=m)&&(f(i)||void 0!==i.src)){let e=f(m)?m.default:m;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,n=e.blurHeight,O=O||e.blurDataURL,W=e.src,!C){if(L||G){if(L&&!G){let t=L/e.width;G=Math.round(e.height*t)}else if(!L&&G){let t=G/e.height;L=Math.round(e.width*t)}}else L=e.width,G=e.height}}let V=!y&&("lazy"===_||void 0===_);(!(m="string"==typeof m?m:W)||m.startsWith("data:")||m.startsWith("blob:"))&&(b=!0,V=!1),F.unoptimized&&(b=!0),T&&m.endsWith(".svg")&&!F.dangerouslyAllowSVG&&(b=!0),y&&(M="high");let[H,J]=(0,o.useState)(!1),[$,q]=(0,o.useState)(!1),Y=p(S),K=Object.assign(C?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:I,objectPosition:A}:{},$?{}:{color:"transparent"},D),Q="blur"===k&&O&&!H?{backgroundSize:K.objectFit||"cover",backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:L,heightInt:G,blurWidth:r,blurHeight:n,blurDataURL:O,objectFit:K.objectFit})+'")'}:{},X=function(e){let{config:t,src:i,unoptimized:r,width:n,quality:o,sizes:a,loader:l}=e;if(r)return{src:i,srcSet:void 0,sizes:void 0};let{widths:s,kind:d}=function(e,t,i){let{deviceSizes:r,allSizes:n}=e;if(i){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(i);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:n.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:n,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>n.find(t=>t>=e)||n[n.length-1]))];return{widths:o,kind:"x"}}(t,n,a),u=s.length-1;return{sizes:a||"w"!==d?a:"100vw",srcSet:s.map((e,r)=>l({config:t,src:i,quality:o,width:e})+" "+("w"===d?e:r+1)+d).join(", "),src:l({config:t,src:i,quality:o,width:s[u]})}}({config:F,src:m,unoptimized:b,width:L,quality:Y,sizes:h,loader:U}),ee=m,et=(0,o.useRef)(j);(0,o.useEffect)(()=>{et.current=j},[j]);let ei=(0,o.useRef)(E);(0,o.useEffect)(()=>{ei.current=E},[E]);let er={isLazy:V,imgAttributes:X,heightInt:G,widthInt:L,qualityInt:Y,className:w,imgStyle:K,blurStyle:Q,loading:_,config:F,fetchPriority:M,fill:C,unoptimized:b,placeholder:k,loader:U,srcString:ee,onLoadRef:et,onLoadingCompleteRef:ei,setBlurComplete:J,setShowAltText:q,...Z};return o.default.createElement(o.default.Fragment,null,o.default.createElement(g,{...er,ref:t}),y?o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+X.src+X.srcSet+X.sizes,rel:"preload",as:"image",href:X.srcSet?void 0:X.src,imageSrcSet:X.srcSet,imageSizes:X.sizes,crossOrigin:Z.crossOrigin,referrerPolicy:Z.referrerPolicy,...v(M)})):null)}),b=h;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64626:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return o}});let r=i(26927),n=r._(i(86006)),o=n.default.createContext({})},47290:function(e,t){"use strict";function i(e){let{ampFirst:t=!1,hybrid:i=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||i&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return i}})},72930:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{defaultHead:function(){return u},default:function(){return m}});let r=i(26927),n=i(25909),o=n._(i(86006)),a=r._(i(69488)),l=i(64626),s=i(46436),d=i(47290);function u(e){void 0===e&&(e=!1);let t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}i(17653);let f=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:i}=t;return e.reduce(c,[]).reverse().concat(u(i).reverse()).filter(function(){let e=new Set,t=new Set,i=new Set,r={};return n=>{let o=!0,a=!1;if(n.key&&"number"!=typeof n.key&&n.key.indexOf("$")>0){a=!0;let t=n.key.slice(n.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(n.type){case"title":case"base":t.has(n.type)?o=!1:t.add(n.type);break;case"meta":for(let e=0,t=f.length;e{let r=e.key||t;if(!i&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,i=(0,o.useContext)(l.AmpStateContext),r=(0,o.useContext)(s.HeadManagerContext);return o.default.createElement(a.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,d.isInAmpMode)(i)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12325:function(e,t){"use strict";function i(e){let{widthInt:t,heightInt:i,blurWidth:r,blurHeight:n,blurDataURL:o,objectFit:a}=e,l=r||t,s=n||i,d=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+s+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&n?"1":"20")+"'/%3E"+d+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return i}})},80168:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let r=i(26927),n=r._(i(86006)),o=i(46374),a=n.default.createContext(o.imageConfigDefault)},46374:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{VALID_LOADERS:function(){return i},imageConfigDefault:function(){return r}});let i=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},35840:function(e,t){"use strict";function i(e){let{config:t,src:i,width:r,quality:n}=e;return t.path+"?url="+encodeURIComponent(i)+"&w="+r+"&q="+(n||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),i.__next_img_default=!0;let r=i},69488:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=i(25909),n=r._(i(86006)),o=n.useLayoutEffect,a=n.useEffect;function l(e){let{headManager:t,reduceComponentsToState:i}=e;function r(){if(t&&t.mountedInstances){let r=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(i(r,e))}}return o(()=>{var i;return null==t||null==(i=t.mountedInstances)||i.add(e.children),()=>{var i;null==t||null==(i=t.mountedInstances)||i.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=r),()=>{t&&(t._pendingUpdate=r)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},17653:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return i}});let i=e=>{}},76394:function(e,t,i){e.exports=i(85962)}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/320-63dc542e9a7120d1.js b/pilot/server/static/_next/static/chunks/320-63dc542e9a7120d1.js deleted file mode 100644 index f77ddf1c0..000000000 --- a/pilot/server/static/_next/static/chunks/320-63dc542e9a7120d1.js +++ /dev/null @@ -1,68 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[320],{71990:function(e,t,n){"use strict";async function a(e,t){let n;let a=e.getReader();for(;!(n=await a.read()).done;)t(n.value)}function r(){return{data:"",event:"",id:"",retry:void 0}}n.d(t,{a:function(){return o},L:function(){return l}});var i=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&0>t.indexOf(a)&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,a=Object.getOwnPropertySymbols(e);rt.indexOf(a[r])&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n};let o="text/event-stream",s="last-event-id";function l(e,t){var{signal:n,headers:l,onopen:u,onmessage:d,onclose:p,onerror:g,openWhenHidden:m,fetch:f}=t,b=i(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,i)=>{let h;let E=Object.assign({},l);function y(){h.abort(),document.hidden||w()}E.accept||(E.accept=o),m||document.addEventListener("visibilitychange",y);let S=1e3,v=0;function T(){document.removeEventListener("visibilitychange",y),window.clearTimeout(v),h.abort()}null==n||n.addEventListener("abort",()=>{T(),t()});let _=null!=f?f:window.fetch,A=null!=u?u:c;async function w(){var n,o;h=new AbortController;try{let n,i,l,c;let u=await _(e,Object.assign(Object.assign({},b),{headers:E,signal:h.signal}));await A(u),await a(u.body,(o=function(e,t,n){let a=r(),i=new TextDecoder;return function(o,s){if(0===o.length)null==n||n(a),a=r();else if(s>0){let n=i.decode(o.subarray(0,s)),r=s+(32===o[s+1]?2:1),l=i.decode(o.subarray(r));switch(n){case"data":a.data=a.data?a.data+"\n"+l:l;break;case"event":a.event=l;break;case"id":e(a.id=l);break;case"retry":let c=parseInt(l,10);isNaN(c)||t(a.retry=c)}}}}(e=>{e?E[s]=e:delete E[s]},e=>{S=e},d),c=!1,function(e){void 0===n?(n=e,i=0,l=-1):n=function(e,t){let n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(n,e);let t=n.length,a=0;for(;i{let{variant:t,color:n}=e,a={root:["root"],content:["content",t&&`variant${(0,s.Z)(t)}`,n&&`color${(0,s.Z)(n)}`]};return(0,o.Z)(a,p.x,{})},b=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>{let t="number"==typeof e.minHeight?`${e.minHeight}px`:e.minHeight,n="number"==typeof e.maxHeight?`${e.maxHeight}px`:e.maxHeight;return{"--AspectRatio-paddingBottom":`clamp(var(--AspectRatio-minHeight), calc(100% / (${e.ratio})), var(--AspectRatio-maxHeight))`,"--AspectRatio-maxHeight":n||"9999px","--AspectRatio-minHeight":t||"0px",borderRadius:"var(--AspectRatio-radius)",flexDirection:"column",margin:"var(--AspectRatio-margin)"}}),h=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var n;return[{flex:1,position:"relative",borderRadius:"inherit",height:0,paddingBottom:"calc(var(--AspectRatio-paddingBottom) - 2 * var(--variant-borderWidth, 0px))",overflow:"hidden",transition:"inherit","& [data-first-child]":{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",position:"absolute",width:"100%",height:"100%",objectFit:t.objectFit,margin:0,padding:0,"& > img":{width:"100%",height:"100%",objectFit:t.objectFit}}},null==(n=e.variants[t.variant])?void 0:n[t.color]]}),E=i.forwardRef(function(e,t){let n=(0,l.Z)({props:e,name:"JoyAspectRatio"}),{children:o,ratio:s="16 / 9",minHeight:u,maxHeight:p,objectFit:E="cover",color:y="neutral",variant:S="soft",component:v,slots:T={},slotProps:_={}}=n,A=(0,r.Z)(n,m),{getColor:w}=(0,d.VT)(S),R=w(e.color,y),I=(0,a.Z)({},n,{minHeight:u,maxHeight:p,objectFit:E,ratio:s,color:R,variant:S}),k=f(I),N=(0,a.Z)({},A,{component:v,slots:T,slotProps:_}),[C,x]=(0,c.Z)("root",{ref:t,className:k.root,elementType:b,externalForwardedProps:N,ownerState:I}),[O,L]=(0,c.Z)("content",{className:k.content,elementType:h,externalForwardedProps:N,ownerState:I});return(0,g.jsx)(C,(0,a.Z)({},x,{children:(0,g.jsx)(O,(0,a.Z)({},L,{children:i.Children.map(o,(e,t)=>0===t&&i.isValidElement(e)?i.cloneElement(e,{"data-first-child":""}):e)}))}))});t.Z=E},73141:function(e,t,n){"use strict";n.d(t,{x:function(){return r}});var a=n(18587);function r(e){return(0,a.d6)("MuiAspectRatio",e)}let i=(0,a.sI)("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);t.Z=i},90022:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var a=n(46750),r=n(40431),i=n(86006),o=n(89791),s=n(47562),l=n(53832),c=n(44542),u=n(88930),d=n(50645),p=n(47093),g=n(18587);function m(e){return(0,g.d6)("MuiCard",e)}(0,g.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var f=n(81439),b=n(326),h=n(9268);let E=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],y=e=>{let{size:t,variant:n,color:a,orientation:r}=e,i={root:["root",r,n&&`variant${(0,l.Z)(n)}`,a&&`color${(0,l.Z)(a)}`,t&&`size${(0,l.Z)(t)}`]};return(0,s.Z)(i,m,{})},S=(0,d.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n,a;return[(0,r.Z)({"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":(0,f.V)({theme:e,ownerState:t},"borderRadius","var(--Card-radius)"),"--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.5rem",gap:"0.375rem 0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",boxShadow:e.shadow.sm,backgroundColor:e.vars.palette.background.surface,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"}),null==(n=e.variants[t.variant])?void 0:n[t.color],"context"!==t.color&&t.invertedColors&&(null==(a=e.colorInversion[t.variant])?void 0:a[t.color])]}),v=i.forwardRef(function(e,t){let n=(0,u.Z)({props:e,name:"JoyCard"}),{className:s,color:l="neutral",component:d="div",invertedColors:g=!1,size:m="md",variant:f="plain",children:v,orientation:T="vertical",slots:_={},slotProps:A={}}=n,w=(0,a.Z)(n,E),{getColor:R}=(0,p.VT)(f),I=R(e.color,l),k=(0,r.Z)({},n,{color:I,component:d,orientation:T,size:m,variant:f}),N=y(k),C=(0,r.Z)({},w,{component:d,slots:_,slotProps:A}),[x,O]=(0,b.Z)("root",{ref:t,className:(0,o.Z)(N.root,s),elementType:S,externalForwardedProps:C,ownerState:k}),L=(0,h.jsx)(x,(0,r.Z)({},O,{children:i.Children.map(v,(e,t)=>{if(!i.isValidElement(e))return e;let n={};if((0,c.Z)(e,["Divider"])){n.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===T?"horizontal":"vertical";n.orientation="orientation"in e.props?e.props.orientation:t}return(0,c.Z)(e,["CardOverflow"])&&("horizontal"===T&&(n["data-parent"]="Card-horizontal"),"vertical"===T&&(n["data-parent"]="Card-vertical")),0===t&&(n["data-first-child"]=""),t===i.Children.count(v)-1&&(n["data-last-child"]=""),i.cloneElement(e,n)})}));return g?(0,h.jsx)(p.do,{variant:f,children:L}):L});var T=v},8997:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var a=n(40431),r=n(46750),i=n(86006),o=n(89791),s=n(47562),l=n(88930),c=n(50645),u=n(18587);function d(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let p=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=n(326),m=n(9268);let f=["className","component","children","orientation","slots","slotProps"],b=()=>(0,s.Z)({root:["root"]},d,{}),h=(0,c.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:1,zIndex:1,columnGap:"calc(0.75 * var(--Card-padding))",padding:"var(--unstable_padding)",[`.${p.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),E=i.forwardRef(function(e,t){let n=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:i,component:s="div",children:c,orientation:u="vertical",slots:d={},slotProps:p={}}=n,E=(0,r.Z)(n,f),y=(0,a.Z)({},E,{component:s,slots:d,slotProps:p}),S=(0,a.Z)({},n,{component:s,orientation:u}),v=b(),[T,_]=(0,g.Z)("root",{ref:t,className:(0,o.Z)(v.root,i),elementType:h,externalForwardedProps:y,ownerState:S});return(0,m.jsx)(T,(0,a.Z)({},_,{children:c}))});var y=E},45642:function(e,t,n){"use strict";n.d(t,{Z:function(){return $}});var a=n(40431),r=n(46750),i=n(86006),o=n(89791),s=n(47562),l=n(13809),c=n(44542),u=n(96263),d=n(38295),p=n(95887),g=n(86601),m=n(89587);let f=(e,t)=>e.filter(e=>t.includes(e)),b=(e,t,n)=>{let a=e.keys[0];if(Array.isArray(t))t.forEach((t,a)=>{n((t,n)=>{a<=e.keys.length-1&&(0===a?Object.assign(t,n):t[e.up(e.keys[a])]=n)},t)});else if(t&&"object"==typeof t){let r=Object.keys(t).length>e.keys.length?e.keys:f(e.keys,Object.keys(t));r.forEach(r=>{if(-1!==e.keys.indexOf(r)){let i=t[r];void 0!==i&&n((t,n)=>{a===r?Object.assign(t,n):t[e.up(r)]=n},i)}})}else("number"==typeof t||"string"==typeof t)&&n((e,t)=>{Object.assign(e,t)},t)};function h(e){return e?`Level${e}`:""}function E(e){return e.unstable_level>0&&e.container}function y(e){return function(t){return`var(--Grid-${t}Spacing${h(e.unstable_level)})`}}function S(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${h(e.unstable_level-1)})`}}function v(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${h(e.unstable_level-1)})`}let T=({theme:e,ownerState:t})=>{let n=y(t),a={};return b(e.breakpoints,t.gridSize,(e,r)=>{let i={};!0===r&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(i={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / ${v(t)}${E(t)?` + ${n("column")}`:""})`}),e(a,i)}),a},_=({theme:e,ownerState:t})=>{let n={};return b(e.breakpoints,t.gridOffset,(e,a)=>{let r={};"auto"===a&&(r={marginLeft:"auto"}),"number"==typeof a&&(r={marginLeft:0===a?"0px":`calc(100% * ${a} / ${v(t)})`}),e(n,r)}),n},A=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=E(t)?{[`--Grid-columns${h(t.unstable_level)}`]:v(t)}:{"--Grid-columns":12};return b(e.breakpoints,t.columns,(e,a)=>{e(n,{[`--Grid-columns${h(t.unstable_level)}`]:a})}),n},w=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=S(t),a=E(t)?{[`--Grid-rowSpacing${h(t.unstable_level)}`]:n("row")}:{};return b(e.breakpoints,t.rowSpacing,(n,r)=>{var i;n(a,{[`--Grid-rowSpacing${h(t.unstable_level)}`]:"string"==typeof r?r:null==(i=e.spacing)?void 0:i.call(e,r)})}),a},R=({theme:e,ownerState:t})=>{if(!t.container)return{};let n=S(t),a=E(t)?{[`--Grid-columnSpacing${h(t.unstable_level)}`]:n("column")}:{};return b(e.breakpoints,t.columnSpacing,(n,r)=>{var i;n(a,{[`--Grid-columnSpacing${h(t.unstable_level)}`]:"string"==typeof r?r:null==(i=e.spacing)?void 0:i.call(e,r)})}),a},I=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return b(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},k=({ownerState:e})=>{let t=y(e),n=S(e);return(0,a.Z)({minWidth:0,boxSizing:"border-box"},e.container&&(0,a.Z)({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||E(e))&&(0,a.Z)({padding:`calc(${n("row")} / 2) calc(${n("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${n("row")} 0px 0px ${n("column")}`}))},N=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)}),t},C=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,a])=>{n(a)&&t.push(`spacing-${e}-${String(a)}`)}),t}return[]},x=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];var O=n(9268);let L=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],D=(0,m.Z)(),P=(0,u.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function M(e){return(0,d.Z)({props:e,name:"MuiGrid",defaultTheme:D})}var F=n(50645),U=n(88930);let B=function(e={}){let{createStyledComponent:t=P,useThemeProps:n=M,componentName:u="MuiGrid"}=e,d=i.createContext(void 0),m=(e,t)=>{let{container:n,direction:a,spacing:r,wrap:i,gridSize:o}=e,c={root:["root",n&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...x(a),...N(o),...n?C(r,t.breakpoints.keys[0]):[]]};return(0,s.Z)(c,e=>(0,l.Z)(u,e),{})},f=t(A,R,w,T,I,k,_),b=i.forwardRef(function(e,t){var s,l,u,b,h,E,y,S;let v=(0,p.Z)(),T=n(e),_=(0,g.Z)(T),A=i.useContext(d),{className:w,children:R,columns:I=12,container:k=!1,component:N="div",direction:C="row",wrap:x="wrap",spacing:D=0,rowSpacing:P=D,columnSpacing:M=D,disableEqualOverflow:F,unstable_level:U=0}=_,B=(0,r.Z)(_,L),$=F;U&&void 0!==F&&($=e.disableEqualOverflow);let G={},z={},H={};Object.entries(B).forEach(([e,t])=>{void 0!==v.breakpoints.values[e]?G[e]=t:void 0!==v.breakpoints.values[e.replace("Offset","")]?z[e.replace("Offset","")]=t:H[e]=t});let j=null!=(s=e.columns)?s:U?void 0:I,V=null!=(l=e.spacing)?l:U?void 0:D,W=null!=(u=null!=(b=e.rowSpacing)?b:e.spacing)?u:U?void 0:P,Z=null!=(h=null!=(E=e.columnSpacing)?E:e.spacing)?h:U?void 0:M,q=(0,a.Z)({},_,{level:U,columns:j,container:k,direction:C,wrap:x,spacing:V,rowSpacing:W,columnSpacing:Z,gridSize:G,gridOffset:z,disableEqualOverflow:null!=(y=null!=(S=$)?S:A)&&y,parentDisableEqualOverflow:A}),Y=m(q,v),K=(0,O.jsx)(f,(0,a.Z)({ref:t,as:N,ownerState:q,className:(0,o.Z)(Y.root,w)},H,{children:i.Children.map(R,e=>{if(i.isValidElement(e)&&(0,c.Z)(e,["Grid"])){var t;return i.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:U+1})}return e})}));return void 0!==$&&$!==(null!=A&&A)&&(K=(0,O.jsx)(d.Provider,{value:$,children:K})),K});return b.muiName="Grid",b}({createStyledComponent:(0,F.Z)("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,U.Z)({props:e,name:"JoyGrid"})});var $=B},64747:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var a,r=n(46750),i=n(40431),o=n(86006),s=n(47562),l=n(53832),c=n(46319),u=n(326),d=n(50645),p=n(88930),g=n(47093),m=n(53047),f=n(18587);function b(e){return(0,f.d6)("MuiModalClose",e)}(0,f.sI)("MuiModalClose",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg"]);var h=n(19595),E=n(9268),y=(0,h.Z)((0,E.jsx)("path",{d:"M19 6.41 17.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"),S=n(87154),v=n(66752),T=n(69586);let _=["component","color","variant","size","onClick","slots","slotProps"],A=e=>{let{variant:t,color:n,disabled:a,focusVisible:r,size:i}=e,o={root:["root",a&&"disabled",r&&"focusVisible",t&&`variant${(0,l.Z)(t)}`,n&&`color${(0,l.Z)(n)}`,i&&`size${(0,l.Z)(i)}`]};return(0,s.Z)(o,b,{})},w=(0,d.Z)(m.Qh,{name:"JoyModalClose",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var n;return(0,i.Z)({},"sm"===e.size&&{"--IconButton-size":"28px"},"md"===e.size&&{"--IconButton-size":"36px"},"lg"===e.size&&{"--IconButton-size":"40px"},{position:"absolute",top:`var(--ModalClose-inset, ${t.spacing(1)})`,right:`var(--ModalClose-inset, ${t.spacing(1)})`,borderRadius:`var(--ModalClose-radius, ${t.vars.radius.sm})`},!(null!=(n=t.variants[e.variant])&&null!=(n=n[e.color])&&n.backgroundColor)&&{color:t.vars.palette.text.secondary})}),R={plain:"plain",outlined:"plain",soft:"soft",solid:"solid"},I=o.forwardRef(function(e,t){var n,s,l,d,m;let f=(0,p.Z)({props:e,name:"JoyModalClose"}),{component:b="button",color:h="neutral",variant:I="plain",size:k="md",onClick:N,slots:C={},slotProps:x={}}=f,O=(0,r.Z)(f,_),L=o.useContext(S.Z),D=o.useContext(T.Z),P=null!=(n=null!=(s=e.variant)?s:R[null==D?void 0:D.variant])?n:I,{getColor:M}=(0,g.VT)(P),F=M(e.color,null!=(l=null==D?void 0:D.color)?l:h),U=o.useContext(v.Z),B=null!=(d=null!=(m=e.size)?m:U)?d:k,{focusVisible:$,getRootProps:G}=(0,c.Z)((0,i.Z)({},f,{rootRef:t})),z=(0,i.Z)({},f,{color:F,component:b,variant:P,size:B,focusVisible:$}),H=A(z),[j,V]=(0,u.Z)("root",{ref:t,elementType:w,getSlotProps:G,externalForwardedProps:(0,i.Z)({onClick:e=>{null==L||L(e,"closeClick"),null==N||N(e)}},O,{component:b,slots:C,slotProps:x}),className:H.root,ownerState:z});return(0,E.jsx)(j,(0,i.Z)({},V,{children:a||(a=(0,E.jsx)(y,{}))}))});var k=I},30530:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var a=n(46750),r=n(40431),i=n(86006),o=n(89791),s=n(47562),l=n(53832),c=n(44542),u=n(50645),d=n(88930),p=n(47093),g=n(5737),m=n(18587);function f(e){return(0,m.d6)("MuiModalDialog",e)}(0,m.sI)("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]);var b=n(66752),h=n(69586),E=n(326),y=n(9268);let S=["className","children","color","component","variant","size","layout","slots","slotProps"],v=e=>{let{variant:t,color:n,size:a,layout:r}=e,i={root:["root",t&&`variant${(0,l.Z)(t)}`,n&&`color${(0,l.Z)(n)}`,a&&`size${(0,l.Z)(a)}`,r&&`layout${(0,l.Z)(r)}`]};return(0,s.Z)(i,f,{})},T=(0,u.Z)(g.U,{name:"JoyModalDialog",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,r.Z)({"--Divider-inset":"calc(-1 * var(--ModalDialog-padding))","--ModalClose-radius":"max((var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===t.size&&{"--ModalDialog-padding":e.spacing(2),"--ModalDialog-radius":e.vars.radius.sm,"--ModalDialog-gap":e.spacing(.75),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.25),"--ModalClose-inset":e.spacing(1.25),fontSize:e.vars.fontSize.sm},"md"===t.size&&{"--ModalDialog-padding":e.spacing(2.5),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(1.5),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.75),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.md},"lg"===t.size&&{"--ModalDialog-padding":e.spacing(3),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(2),"--ModalDialog-titleOffset":e.spacing(.75),"--ModalDialog-descriptionOffset":e.spacing(1),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.lg},{boxSizing:"border-box",boxShadow:e.shadow.md,borderRadius:"var(--ModalDialog-radius)",fontFamily:e.vars.fontFamily.body,lineHeight:e.vars.lineHeight.md,padding:"var(--ModalDialog-padding)",minWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-minWidth, 300px))",outline:0,position:"absolute",display:"flex",flexDirection:"column"},"fullscreen"===t.layout&&{top:0,left:0,right:0,bottom:0,border:0,borderRadius:0},"center"===t.layout&&{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-maxWidth, 100vw))",maxHeight:"calc(100% - 2 * var(--ModalDialog-padding))"},{[`& [id="${t["aria-labelledby"]}"]`]:{"--Typography-margin":"calc(-1 * var(--ModalDialog-titleOffset)) 0 var(--ModalDialog-gap) 0","--Typography-fontSize":"1.125em",[`& + [id="${t["aria-describedby"]}"]`]:{"--unstable_ModalDialog-descriptionOffset":"calc(-1 * var(--ModalDialog-descriptionOffset))"}},[`& [id="${t["aria-describedby"]}"]`]:{"--Typography-fontSize":"1em","--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 0 0","&:not(:last-child)":{"--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 var(--ModalDialog-gap) 0"}}})),_=i.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"JoyModalDialog"}),{className:s,children:l,color:u="neutral",component:g="div",variant:m="outlined",size:f="md",layout:_="center",slots:A={},slotProps:w={}}=n,R=(0,a.Z)(n,S),{getColor:I}=(0,p.VT)(m),k=I(e.color,u),N=(0,r.Z)({},n,{color:k,component:g,layout:_,size:f,variant:m}),C=v(N),x=(0,r.Z)({},R,{component:g,slots:A,slotProps:w}),O=i.useMemo(()=>({variant:m,color:"context"===k?void 0:k}),[k,m]),[L,D]=(0,E.Z)("root",{ref:t,className:(0,o.Z)(C.root,s),elementType:T,externalForwardedProps:x,ownerState:N,additionalProps:{as:g,role:"dialog","aria-modal":"true"}});return(0,y.jsx)(b.Z.Provider,{value:f,children:(0,y.jsx)(h.Z.Provider,{value:O,children:(0,y.jsx)(L,(0,r.Z)({},D,{children:i.Children.map(l,e=>{if(!i.isValidElement(e))return e;if((0,c.Z)(e,["Divider"])){let t={};return t.inset="inset"in e.props?e.props.inset:"context",i.cloneElement(e,t)}return e})}))})})});var A=_},66752:function(e,t,n){"use strict";var a=n(86006);let r=a.createContext(void 0);t.Z=r},69586:function(e,t,n){"use strict";var a=n(86006);let r=a.createContext(void 0);t.Z=r},46571:function(e,t,n){"use strict";n.d(t,{Z:function(){return I}});var a=n(40431),r=n(46750),i=n(86006),o=n(47562),s=n(49657),l=n(99179),c=n(11059),u=n(47874),d=n(1349),p=n(80710),g=n(326),m=n(70092),f=n(50645),b=n(88930),h=n(47093),E=n(18587);function y(e){return(0,E.d6)("MuiOption",e)}let S=(0,E.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var v=n(76620),T=n(9268);let _=["component","children","disabled","value","label","variant","color","slots","slotProps"],A=e=>{let{disabled:t,highlighted:n,selected:a}=e;return(0,o.Z)({root:["root",t&&"disabled",n&&"highlighted",a&&"selected"]},y,{})},w=(0,f.Z)(m.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;let a=null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color];return{[`&.${S.highlighted}`]:{backgroundColor:null==a?void 0:a.backgroundColor}}}),R=i.forwardRef(function(e,t){var n;let o=(0,b.Z)({props:e,name:"JoyOption"}),{component:m="li",children:f,disabled:E=!1,value:y,label:S,variant:R="plain",color:I="neutral",slots:k={},slotProps:N={}}=o,C=(0,r.Z)(o,_),x=i.useContext(v.Z),O=i.useRef(null),L=(0,l.Z)(O,t),D=null!=S?S:"string"==typeof f?f:null==(n=O.current)?void 0:n.innerText,{getRootProps:P,selected:M,highlighted:F,index:U}=function(e){let{value:t,label:n,disabled:r,rootRef:o,id:g}=e,{getRootProps:m,rootRef:f,highlighted:b,selected:h}=function(e){let t;let{handlePointerOverEvents:n=!1,item:r,rootRef:o}=e,s=i.useRef(null),p=(0,l.Z)(s,o),g=i.useContext(d.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:m,getItemState:f,registerHighlightChangeHandler:b,registerSelectionChangeHandler:h}=g,{highlighted:E,selected:y,focusable:S}=f(r),v=function(){let[,e]=i.useState({});return i.useCallback(()=>{e({})},[])}();(0,c.Z)(()=>b(function(e){e!==r||E?e!==r&&E&&v():v()})),(0,c.Z)(()=>h(function(e){y?e.includes(r)||v():e.includes(r)&&v()}),[h,v,y,r]);let T=i.useCallback(e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.defaultPrevented||m({type:u.F.itemClick,item:r,event:t})},[m,r]),_=i.useCallback(e=>t=>{var n;null==(n=e.onMouseOver)||n.call(e,t),t.defaultPrevented||m({type:u.F.itemHover,item:r,event:t})},[m,r]);return S&&(t=E?0:-1),{getRootProps:(e={})=>(0,a.Z)({},e,{onClick:T(e),onPointerOver:n?_(e):void 0,ref:p,tabIndex:t}),highlighted:E,rootRef:p,selected:y}}({item:t}),E=(0,s.Z)(g),y=i.useRef(null),S=i.useMemo(()=>({disabled:r,label:n,value:t,ref:y,id:E}),[r,n,t,E]),{index:v}=function(e,t){let n=i.useContext(p.s);if(null===n)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:a}=n,[r,o]=i.useState("function"==typeof e?void 0:e);return(0,c.Z)(()=>{let{id:n,deregister:r}=a(e,t);return o(n),r},[a,t,e]),{id:r,index:void 0!==r?n.getItemIndex(r):-1,totalItemCount:n.totalSubitemCount}}(t,S),T=(0,l.Z)(o,y,f);return{getRootProps:(e={})=>(0,a.Z)({},e,m(e),{id:E,ref:T,role:"option","aria-selected":h}),highlighted:b,index:v,selected:h,rootRef:T}}({disabled:E,label:D,value:y,rootRef:L}),{getColor:B}=(0,h.VT)(R),$=B(e.color,M?"primary":I),G=(0,a.Z)({},o,{disabled:E,selected:M,highlighted:F,index:U,component:m,variant:R,color:$,row:x}),z=A(G),H=(0,a.Z)({},C,{component:m,slots:k,slotProps:N}),[j,V]=(0,g.Z)("root",{ref:t,getSlotProps:P,elementType:w,externalForwardedProps:H,className:z.root,ownerState:G});return(0,T.jsx)(j,(0,a.Z)({},V,{children:f}))});var I=R},12025:function(e,t,n){"use strict";n.d(t,{Z:function(){return tR}});var a,r,i,o,s,l,c=n(46750),u=n(40431),d=n(86006),p=n(89791),g=n(53832),m=n(99179),f=n(11059),b=n(47375);function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function E(e){var t=h(e).Element;return e instanceof t||e instanceof Element}function y(e){var t=h(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function S(e){if("undefined"==typeof ShadowRoot)return!1;var t=h(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var v=Math.max,T=Math.min,_=Math.round;function A(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function w(){return!/^((?!chrome|android).)*safari/i.test(A())}function R(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),r=1,i=1;t&&y(e)&&(r=e.offsetWidth>0&&_(a.width)/e.offsetWidth||1,i=e.offsetHeight>0&&_(a.height)/e.offsetHeight||1);var o=(E(e)?h(e):window).visualViewport,s=!w()&&n,l=(a.left+(s&&o?o.offsetLeft:0))/r,c=(a.top+(s&&o?o.offsetTop:0))/i,u=a.width/r,d=a.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function I(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function N(e){return((E(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return R(N(e)).left+I(e).scrollLeft}function x(e){return h(e).getComputedStyle(e)}function O(e){var t=x(e),n=t.overflow,a=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function L(e){var t=R(e),n=e.offsetWidth,a=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-a)&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function D(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(S(e)?e.host:null)||N(e)}function P(e,t){void 0===t&&(t=[]);var n,a=function e(t){return["html","body","#document"].indexOf(k(t))>=0?t.ownerDocument.body:y(t)&&O(t)?t:e(D(t))}(e),r=a===(null==(n=e.ownerDocument)?void 0:n.body),i=h(a),o=r?[i].concat(i.visualViewport||[],O(a)?a:[]):a,s=t.concat(o);return r?s:s.concat(P(D(o)))}function M(e){return y(e)&&"fixed"!==x(e).position?e.offsetParent:null}function F(e){for(var t=h(e),n=M(e);n&&["table","td","th"].indexOf(k(n))>=0&&"static"===x(n).position;)n=M(n);return n&&("html"===k(n)||"body"===k(n)&&"static"===x(n).position)?t:n||function(e){var t=/firefox/i.test(A());if(/Trident/i.test(A())&&y(e)&&"fixed"===x(e).position)return null;var n=D(e);for(S(n)&&(n=n.host);y(n)&&0>["html","body"].indexOf(k(n));){var a=x(n);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return n;n=n.parentNode}return null}(e)||t}var U="bottom",B="right",$="left",G="auto",z=["top",U,B,$],H="start",j="viewport",V="popper",W=z.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),Z=[].concat(z,[G]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),q=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],Y={placement:"bottom",modifiers:[],strategy:"absolute"};function K(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function et(e){var t,n=e.reference,a=e.element,r=e.placement,i=r?Q(r):null,o=r?J(r):null,s=n.x+n.width/2-a.width/2,l=n.y+n.height/2-a.height/2;switch(i){case"top":t={x:s,y:n.y-a.height};break;case U:t={x:s,y:n.y+n.height};break;case B:t={x:n.x+n.width,y:l};break;case $:t={x:n.x-a.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?ee(i):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case H:t[c]=t[c]-(n[u]/2-a[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-a[u]/2)}}return t}var en={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ea(e){var t,n,a,r,i,o,s,l=e.popper,c=e.popperRect,u=e.placement,d=e.variation,p=e.offsets,g=e.position,m=e.gpuAcceleration,f=e.adaptive,b=e.roundOffsets,E=e.isFixed,y=p.x,S=void 0===y?0:y,v=p.y,T=void 0===v?0:v,A="function"==typeof b?b({x:S,y:T}):{x:S,y:T};S=A.x,T=A.y;var w=p.hasOwnProperty("x"),R=p.hasOwnProperty("y"),I=$,k="top",C=window;if(f){var O=F(l),L="clientHeight",D="clientWidth";O===h(l)&&"static"!==x(O=N(l)).position&&"absolute"===g&&(L="scrollHeight",D="scrollWidth"),("top"===u||(u===$||u===B)&&"end"===d)&&(k=U,T-=(E&&O===C&&C.visualViewport?C.visualViewport.height:O[L])-c.height,T*=m?1:-1),(u===$||("top"===u||u===U)&&"end"===d)&&(I=B,S-=(E&&O===C&&C.visualViewport?C.visualViewport.width:O[D])-c.width,S*=m?1:-1)}var P=Object.assign({position:g},f&&en),M=!0===b?(t={x:S,y:T},n=h(l),a=t.x,r=t.y,{x:_(a*(i=n.devicePixelRatio||1))/i||0,y:_(r*i)/i||0}):{x:S,y:T};return(S=M.x,T=M.y,m)?Object.assign({},P,((s={})[k]=R?"0":"",s[I]=w?"0":"",s.transform=1>=(C.devicePixelRatio||1)?"translate("+S+"px, "+T+"px)":"translate3d("+S+"px, "+T+"px, 0)",s)):Object.assign({},P,((o={})[k]=R?T+"px":"",o[I]=w?S+"px":"",o.transform="",o))}var er={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return er[e]})}var eo={start:"end",end:"start"};function es(e){return e.replace(/start|end/g,function(e){return eo[e]})}function el(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&S(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ec(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eu(e,t,n){var a,r,i,o,s,l,c,u,d,p;return t===j?ec(function(e,t){var n=h(e),a=N(e),r=n.visualViewport,i=a.clientWidth,o=a.clientHeight,s=0,l=0;if(r){i=r.width,o=r.height;var c=w();(c||!c&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:o,x:s+C(e),y:l}}(e,n)):E(t)?((a=R(t,!1,"fixed"===n)).top=a.top+t.clientTop,a.left=a.left+t.clientLeft,a.bottom=a.top+t.clientHeight,a.right=a.left+t.clientWidth,a.width=t.clientWidth,a.height=t.clientHeight,a.x=a.left,a.y=a.top,a):ec((r=N(e),o=N(r),s=I(r),l=null==(i=r.ownerDocument)?void 0:i.body,c=v(o.scrollWidth,o.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=v(o.scrollHeight,o.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-s.scrollLeft+C(r),p=-s.scrollTop,"rtl"===x(l||o).direction&&(d+=v(o.clientWidth,l?l.clientWidth:0)-c),{width:c,height:u,x:d,y:p}))}function ed(){return{top:0,right:0,bottom:0,left:0}}function ep(e){return Object.assign({},ed(),e)}function eg(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function em(e,t){void 0===t&&(t={});var n,a,r,i,o,s,l,c=t,u=c.placement,d=void 0===u?e.placement:u,p=c.strategy,g=void 0===p?e.strategy:p,m=c.boundary,f=c.rootBoundary,b=c.elementContext,h=void 0===b?V:b,S=c.altBoundary,_=c.padding,A=void 0===_?0:_,w=ep("number"!=typeof A?A:eg(A,z)),I=e.rects.popper,C=e.elements[void 0!==S&&S?h===V?"reference":V:h],O=(n=E(C)?C:C.contextElement||N(e.elements.popper),s=(o=[].concat("clippingParents"===(a=void 0===m?"clippingParents":m)?(r=P(D(n)),E(i=["absolute","fixed"].indexOf(x(n).position)>=0&&y(n)?F(n):n)?r.filter(function(e){return E(e)&&el(e,i)&&"body"!==k(e)}):[]):[].concat(a),[void 0===f?j:f]))[0],(l=o.reduce(function(e,t){var a=eu(n,t,g);return e.top=v(a.top,e.top),e.right=T(a.right,e.right),e.bottom=T(a.bottom,e.bottom),e.left=v(a.left,e.left),e},eu(n,s,g))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),L=R(e.elements.reference),M=et({reference:L,element:I,strategy:"absolute",placement:d}),$=ec(Object.assign({},I,M)),G=h===V?$:L,H={top:O.top-G.top+w.top,bottom:G.bottom-O.bottom+w.bottom,left:O.left-G.left+w.left,right:G.right-O.right+w.right},W=e.modifiersData.offset;if(h===V&&W){var Z=W[d];Object.keys(H).forEach(function(e){var t=[B,U].indexOf(e)>=0?1:-1,n=["top",U].indexOf(e)>=0?"y":"x";H[e]+=Z[n]*t})}return H}function ef(e,t,n){return v(e,T(t,n))}function eb(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eh(e){return["top",B,U,$].some(function(t){return e[t]>=0})}var eE=(i=void 0===(r=(a={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,i=void 0===r||r,o=a.resize,s=void 0===o||o,l=h(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,X)}),s&&l.addEventListener("resize",n.update,X),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,X)}),s&&l.removeEventListener("resize",n.update,X)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=et({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,a=n.gpuAcceleration,r=n.adaptive,i=n.roundOffsets,o=void 0===i||i,s={placement:Q(t.placement),variation:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===a||a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ea(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:o})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ea(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},a=t.attributes[e]||{},r=t.elements[e];y(r)&&k(r)&&(Object.assign(r.style,n),Object.keys(a).forEach(function(e){var t=a[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var a=t.elements[e],r=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});y(a)&&k(a)&&(Object.assign(a.style,i),Object.keys(r).forEach(function(e){a.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,a=e.name,r=n.offset,i=void 0===r?[0,0]:r,o=Z.reduce(function(e,n){var a,r,o,s,l,c;return e[n]=(a=t.rects,o=[$,"top"].indexOf(r=Q(n))>=0?-1:1,l=(s="function"==typeof i?i(Object.assign({},a,{placement:n})):i)[0],c=s[1],l=l||0,c=(c||0)*o,[$,B].indexOf(r)>=0?{x:c,y:l}:{x:l,y:c}),e},{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var r=n.mainAxis,i=void 0===r||r,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,m=void 0===g||g,f=n.allowedAutoPlacements,b=t.options.placement,h=Q(b)===b,E=l||(h||!m?[ei(b)]:function(e){if(Q(e)===G)return[];var t=ei(e);return[es(e),t,es(t)]}(b)),y=[b].concat(E).reduce(function(e,n){var a,r,i,o,s,l,p,g,b,h,E,y;return e.concat(Q(n)===G?(r=(a={placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:f}).placement,i=a.boundary,o=a.rootBoundary,s=a.padding,l=a.flipVariations,g=void 0===(p=a.allowedAutoPlacements)?Z:p,0===(E=(h=(b=J(r))?l?W:W.filter(function(e){return J(e)===b}):z).filter(function(e){return g.indexOf(e)>=0})).length&&(E=h),Object.keys(y=E.reduce(function(e,n){return e[n]=em(t,{placement:n,boundary:i,rootBoundary:o,padding:s})[Q(n)],e},{})).sort(function(e,t){return y[e]-y[t]})):n)},[]),S=t.rects.reference,v=t.rects.popper,T=new Map,_=!0,A=y[0],w=0;w=0,C=N?"width":"height",x=em(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),O=N?k?B:$:k?U:"top";S[C]>v[C]&&(O=ei(O));var L=ei(O),D=[];if(i&&D.push(x[I]<=0),s&&D.push(x[O]<=0,x[L]<=0),D.every(function(e){return e})){A=R,_=!1;break}T.set(R,D)}if(_)for(var P=m?3:1,M=function(e){var t=y.find(function(t){var n=T.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return A=t,"break"},F=P;F>0&&"break"!==M(F);F--);t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,a=e.name,r=n.mainAxis,i=n.altAxis,o=n.boundary,s=n.rootBoundary,l=n.altBoundary,c=n.padding,u=n.tether,d=void 0===u||u,p=n.tetherOffset,g=void 0===p?0:p,m=em(t,{boundary:o,rootBoundary:s,padding:c,altBoundary:l}),f=Q(t.placement),b=J(t.placement),h=!b,E=ee(f),y="x"===E?"y":"x",S=t.modifiersData.popperOffsets,_=t.rects.reference,A=t.rects.popper,w="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,R="number"==typeof w?{mainAxis:w,altAxis:w}:Object.assign({mainAxis:0,altAxis:0},w),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(S){if(void 0===r||r){var N,C="y"===E?"top":$,x="y"===E?U:B,O="y"===E?"height":"width",D=S[E],P=D+m[C],M=D-m[x],G=d?-A[O]/2:0,z=b===H?_[O]:A[O],j=b===H?-A[O]:-_[O],V=t.elements.arrow,W=d&&V?L(V):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ed(),q=Z[C],Y=Z[x],K=ef(0,_[O],W[O]),X=h?_[O]/2-G-K-q-R.mainAxis:z-K-q-R.mainAxis,et=h?-_[O]/2+G+K+Y+R.mainAxis:j+K+Y+R.mainAxis,en=t.elements.arrow&&F(t.elements.arrow),ea=en?"y"===E?en.clientTop||0:en.clientLeft||0:0,er=null!=(N=null==I?void 0:I[E])?N:0,ei=D+X-er-ea,eo=D+et-er,es=ef(d?T(P,ei):P,D,d?v(M,eo):M);S[E]=es,k[E]=es-D}if(void 0!==i&&i){var el,ec,eu="x"===E?"top":$,ep="x"===E?U:B,eg=S[y],eb="y"===y?"height":"width",eh=eg+m[eu],eE=eg-m[ep],ey=-1!==["top",$].indexOf(f),eS=null!=(ec=null==I?void 0:I[y])?ec:0,ev=ey?eh:eg-_[eb]-A[eb]-eS+R.altAxis,eT=ey?eg+_[eb]+A[eb]-eS-R.altAxis:eE,e_=d&&ey?(el=ef(ev,eg,eT))>eT?eT:el:ef(d?ev:eh,eg,d?eT:eE);S[y]=e_,k[y]=e_-eg}t.modifiersData[a]=k}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,a=e.state,r=e.name,i=e.options,o=a.elements.arrow,s=a.modifiersData.popperOffsets,l=Q(a.placement),c=ee(l),u=[$,B].indexOf(l)>=0?"height":"width";if(o&&s){var d=ep("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},a.rects,{placement:a.placement})):t)?t:eg(t,z)),p=L(o),g="y"===c?"top":$,m="y"===c?U:B,f=a.rects.reference[u]+a.rects.reference[c]-s[c]-a.rects.popper[u],b=s[c]-a.rects.reference[c],h=F(o),E=h?"y"===c?h.clientHeight||0:h.clientWidth||0:0,y=d[g],S=E-p[u]-d[m],v=E/2-p[u]/2+(f/2-b/2),T=ef(y,v,S);a.modifiersData[r]=((n={})[c]=T,n.centerOffset=T-v,n)}},effect:function(e){var t=e.state,n=e.options.element,a=void 0===n?"[data-popper-arrow]":n;null!=a&&("string"!=typeof a||(a=t.elements.popper.querySelector(a)))&&el(t.elements.popper,a)&&(t.elements.arrow=a)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,a=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,o=em(t,{elementContext:"reference"}),s=em(t,{altBoundary:!0}),l=eb(o,a),c=eb(s,r,i),u=eh(l),d=eh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}).defaultModifiers)?[]:r,s=void 0===(o=a.defaultOptions)?Y:o,function(e,t,n){void 0===n&&(n=s);var a,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Y,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],l=!1,c={state:r,setOptions:function(n){var a,l,d,p,g,m="function"==typeof n?n(r.options):n;u(),r.options=Object.assign({},s,r.options,m),r.scrollParents={reference:E(e)?P(e):e.contextElement?P(e.contextElement):[],popper:P(t)};var f=(l=Object.keys(a=[].concat(i,r.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return a[e]}),d=new Map,p=new Set,g=[],l.forEach(function(e){d.set(e.name,e)}),l.forEach(function(e){p.has(e.name)||function e(t){p.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!p.has(t)){var n=d.get(t);n&&e(n)}}),g.push(t)}(e)}),q.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=f.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,a=e.effect;if("function"==typeof a){var i=a({state:r,name:t,instance:c,options:void 0===n?{}:n});o.push(i||function(){})}}),c.update()},forceUpdate:function(){if(!l){var e,t,n,a,i,o,s,u,d,p,g,m,f=r.elements,b=f.reference,E=f.popper;if(K(b,E)){r.rects={reference:(t=F(E),n="fixed"===r.options.strategy,a=y(t),u=y(t)&&(o=_((i=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=_(i.height)/t.offsetHeight||1,1!==o||1!==s),d=N(t),p=R(b,u,n),g={scrollLeft:0,scrollTop:0},m={x:0,y:0},(a||!a&&!n)&&(("body"!==k(t)||O(d))&&(g=(e=t)!==h(e)&&y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:I(e)),y(t)?(m=R(t,!0),m.x+=t.clientLeft,m.y+=t.clientTop):d&&(m.x=C(d))),{x:p.left+g.scrollLeft-m.x,y:p.top+g.scrollTop-m.y,width:p.width,height:p.height}),popper:L(E)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var S=0;S(0,ey.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=d.useContext(ek);return n=>t?"":e(n)}(eT)),eL={},eD=d.forwardRef(function(e,t){var n;let{anchorEl:a,children:r,direction:i,disablePortal:o,modifiers:s,open:l,placement:p,popperOptions:g,popperRef:b,slotProps:h={},slots:E={},TransitionProps:y}=e,S=(0,c.Z)(e,eN),v=d.useRef(null),T=(0,m.Z)(v,t),_=d.useRef(null),A=(0,m.Z)(_,b),w=d.useRef(A);(0,f.Z)(()=>{w.current=A},[A]),d.useImperativeHandle(b,()=>_.current,[]);let R=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,i),[I,k]=d.useState(R),[N,C]=d.useState(ex(a));d.useEffect(()=>{_.current&&_.current.forceUpdate()}),d.useEffect(()=>{a&&C(ex(a))},[a]),(0,f.Z)(()=>{if(!N||!l)return;let e=e=>{k(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=s&&(t=t.concat(s)),g&&null!=g.modifiers&&(t=t.concat(g.modifiers));let n=eE(N,v.current,(0,u.Z)({placement:R},g,{modifiers:t}));return w.current(n),()=>{n.destroy(),w.current(null)}},[N,o,s,l,g,R]);let x={placement:I};null!==y&&(x.TransitionProps=y);let O=eO(),L=null!=(n=E.root)?n:"div",D=function(e){var t;let{elementType:n,externalSlotProps:a,ownerState:r,skipResolvingSlotProps:i=!1}=e,o=(0,c.Z)(e,eR),s=i?{}:(0,ew.Z)(a,r),{props:l,internalRef:d}=(0,eA.Z)((0,u.Z)({},o,{externalSlotProps:s})),p=(0,m.Z)(d,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref),g=(0,e_.Z)(n,(0,u.Z)({},l,{ref:p}),r);return g}({elementType:L,externalSlotProps:h.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:T},ownerState:e,className:O.root});return(0,eI.jsx)(L,(0,u.Z)({},D,{children:"function"==typeof r?r(x):r}))}),eP=d.forwardRef(function(e,t){let n;let{anchorEl:a,children:r,container:i,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:p,open:g,placement:m="bottom",popperOptions:f=eL,popperRef:h,style:E,transition:y=!1,slotProps:S={},slots:v={}}=e,T=(0,c.Z)(e,eC),[_,A]=d.useState(!0);if(!l&&!g&&(!y||_))return null;if(i)n=i;else if(a){let e=ex(a);n=e&&void 0!==e.nodeType?(0,b.Z)(e).body:(0,b.Z)(null).body}let w=!g&&l&&(!y||_)?"none":void 0;return(0,eI.jsx)(eS.Z,{disablePortal:s,container:n,children:(0,eI.jsx)(eD,(0,u.Z)({anchorEl:a,direction:o,disablePortal:s,modifiers:p,ref:t,open:y?!_:g,placement:m,popperOptions:f,popperRef:h,slotProps:S,slots:v},T,{style:(0,u.Z)({position:"fixed",top:0,left:0,display:w},E),TransitionProps:y?{in:g,onEnter:()=>{A(!1)},onExited:()=>{A(!0)}}:void 0,children:r}))})});var eM=n(49657),eF=n(46319);let eU={buttonClick:"buttonClick"};var eB=n(47874);function e$(e,t,n){var a;let r,i;let{items:o,isItemDisabled:s,disableListWrap:l,disabledItemsFocusable:c,itemComparer:u,focusManagement:d}=n,p=o.length-1,g=null==e?-1:o.findIndex(t=>u(t,e)),m=!l;switch(t){case"reset":if(-1==("DOM"===d?0:-1))return null;r=0,i="next",m=!1;break;case"start":r=0,i="next",m=!1;break;case"end":r=p,i="previous",m=!1;break;default:{let e=g+t;e<0?!m&&-1!==g||Math.abs(t)>1?(r=0,i="next"):(r=p,i="previous"):e>p?!m||Math.abs(t)>1?(r=p,i="previous"):(r=0,i="next"):(r=e,i=t>=0?"next":"previous")}}let f=function(e,t,n,a,r,i){if(0===n.length||!a&&n.every((e,t)=>r(e,t)))return -1;let o=e;for(;;){if(!i&&"next"===t&&o===n.length||!i&&"previous"===t&&-1===o)return -1;let e=!a&&r(n[o],o);if(!e)return o;o+="next"===t?1:-1,i&&(o=(o+n.length)%n.length)}}(r,i,o,c,s,m);return -1!==f||null===e||s(e,g)?null!=(a=o[f])?a:null:e}function eG(e,t,n){let{itemComparer:a,isItemDisabled:r,selectionMode:i,items:o}=n,{selectedValues:s}=t,l=o.findIndex(t=>a(e,t));if(r(e,l))return t;let c="none"===i?[]:"single"===i?a(s[0],e)?s:[e]:s.some(t=>a(t,e))?s.filter(t=>!a(t,e)):[...s,e];return(0,u.Z)({},t,{selectedValues:c,highlightedValue:e})}function ez(e,t){let{type:n,context:a}=t;switch(n){case eB.F.keyDown:return function(e,t,n){let a=t.highlightedValue,{orientation:r,pageSize:i}=n;switch(e){case"Home":return(0,u.Z)({},t,{highlightedValue:e$(a,"start",n)});case"End":return(0,u.Z)({},t,{highlightedValue:e$(a,"end",n)});case"PageUp":return(0,u.Z)({},t,{highlightedValue:e$(a,-i,n)});case"PageDown":return(0,u.Z)({},t,{highlightedValue:e$(a,i,n)});case"ArrowUp":if("vertical"!==r)break;return(0,u.Z)({},t,{highlightedValue:e$(a,-1,n)});case"ArrowDown":if("vertical"!==r)break;return(0,u.Z)({},t,{highlightedValue:e$(a,1,n)});case"ArrowLeft":if("vertical"===r)break;return(0,u.Z)({},t,{highlightedValue:e$(a,"horizontal-ltr"===r?-1:1,n)});case"ArrowRight":if("vertical"===r)break;return(0,u.Z)({},t,{highlightedValue:e$(a,"horizontal-ltr"===r?1:-1,n)});case"Enter":case" ":if(null===t.highlightedValue)break;return eG(t.highlightedValue,t,n)}return t}(t.key,e,a);case eB.F.itemClick:return eG(t.item,e,a);case eB.F.blur:return"DOM"===a.focusManagement?e:(0,u.Z)({},e,{highlightedValue:null});case eB.F.textNavigation:return function(e,t,n){let{items:a,isItemDisabled:r,disabledItemsFocusable:i,getItemAsString:o}=n,s=t.length>1,l=s?e.highlightedValue:e$(e.highlightedValue,1,n);for(let c=0;co(e,n.highlightedValue)))?i:null:"DOM"===s&&0===t.length&&(l=e$(null,"reset",a));let c=null!=(r=n.selectedValues)?r:[],d=c.filter(t=>e.some(e=>o(e,t)));return(0,u.Z)({},n,{highlightedValue:l,selectedValues:d})}(t.items,t.previousItems,e,a);case eB.F.resetHighlight:return(0,u.Z)({},e,{highlightedValue:e$(null,"reset",a)});default:return e}}let eH="select:change-selection",ej="select:change-highlight";function eV(e,t){return e===t}let eW={},eZ=()=>{};function eq(e,t){let n=(0,u.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(n[e]=t[e])}),n}function eY(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,a)=>n(e,t[a]))}function eK(e,t){let n=d.useRef(e);return d.useEffect(()=>{n.current=e},null!=t?t:[e]),n}let eX={},eQ=()=>{},eJ=(e,t)=>e===t,e0=()=>!1,e1=e=>"string"==typeof e?e:String(e),e2=()=>({highlightedValue:null,selectedValues:[]});var e3=function(e){let{controlledProps:t=eX,disabledItemsFocusable:n=!1,disableListWrap:a=!1,focusManagement:r="activeDescendant",getInitialState:i=e2,getItemDomElement:o,getItemId:s,isItemDisabled:l=e0,rootRef:c,onStateChange:p=eQ,items:g,itemComparer:f=eJ,getItemAsString:b=e1,onChange:h,onHighlightChange:E,onItemsChange:y,orientation:S="vertical",pageSize:v=5,reducerActionContext:T=eX,selectionMode:_="single",stateReducer:A}=e,w=d.useRef(null),R=(0,m.Z)(c,w),I=d.useCallback((e,t,n)=>{if(null==E||E(e,t,n),"DOM"===r&&null!=t&&(n===eB.F.itemClick||n===eB.F.keyDown||n===eB.F.textNavigation)){var a;null==o||null==(a=o(t))||a.focus()}},[o,E,r]),k=d.useMemo(()=>({highlightedValue:f,selectedValues:(e,t)=>eY(e,t,f)}),[f]),N=d.useCallback((e,t,n,a,r)=>{switch(null==p||p(e,t,n,a,r),t){case"highlightedValue":I(e,n,a);break;case"selectedValues":null==h||h(e,n,a)}},[I,h,p]),C=d.useMemo(()=>({disabledItemsFocusable:n,disableListWrap:a,focusManagement:r,isItemDisabled:l,itemComparer:f,items:g,getItemAsString:b,onHighlightChange:I,orientation:S,pageSize:v,selectionMode:_,stateComparers:k}),[n,a,r,l,f,g,b,I,S,v,_,k]),x=i(),O=d.useMemo(()=>(0,u.Z)({},T,C),[T,C]),[L,D]=function(e){let t=d.useRef(null),{reducer:n,initialState:a,controlledProps:r=eW,stateComparers:i=eW,onStateChange:o=eZ,actionContext:s}=e,l=d.useCallback((e,a)=>{t.current=a;let i=eq(e,r),o=n(i,a);return o},[r,n]),[c,p]=d.useReducer(l,a),g=d.useCallback(e=>{p((0,u.Z)({},e,{context:s}))},[s]);return!function(e){let{nextState:t,initialState:n,stateComparers:a,onStateChange:r,controlledProps:i,lastActionRef:o}=e,s=d.useRef(n);d.useEffect(()=>{if(null===o.current)return;let e=eq(s.current,i);Object.keys(t).forEach(n=>{var i,s,l;let c=null!=(i=a[n])?i:eV,u=t[n],d=e[n];(null!=d||null==u)&&(null==d||null!=u)&&(null==d||null==u||c(u,d))||null==r||r(null!=(s=o.current.event)?s:null,n,u,null!=(l=o.current.type)?l:"",t)}),s.current=t,o.current=null},[s,t,o,r,a,i])}({nextState:c,initialState:a,stateComparers:null!=i?i:eW,onStateChange:null!=o?o:eZ,controlledProps:r,lastActionRef:t}),[eq(c,r),g]}({reducer:null!=A?A:ez,actionContext:O,initialState:x,controlledProps:t,stateComparers:k,onStateChange:N}),{highlightedValue:P,selectedValues:M}=L,F=function(e){let t=d.useRef({searchString:"",lastTime:null});return d.useCallback(n=>{if(1===n.key.length&&" "!==n.key){let a=t.current,r=n.key.toLowerCase(),i=performance.now();a.searchString.length>0&&a.lastTime&&i-a.lastTime>500?a.searchString=r:(1!==a.searchString.length||r!==a.searchString)&&(a.searchString+=r),a.lastTime=i,e(a.searchString,n)}},[e])}((e,t)=>D({type:eB.F.textNavigation,event:t,searchString:e})),U=eK(M),B=eK(P),$=d.useRef([]);d.useEffect(()=>{eY($.current,g,f)||(D({type:eB.F.itemsChange,event:null,items:g,previousItems:$.current}),$.current=g,null==y||y(g))},[g,f,D,y]);let{notifySelectionChanged:G,notifyHighlightChanged:z,registerHighlightChangeHandler:H,registerSelectionChangeHandler:j}=function(){let e=function(){let e=d.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,n){let a=e.get(t);return a?a.add(n):(a=new Set([n]),e.set(t,a)),()=>{a.delete(n),0===a.size&&e.delete(t)}},publish:function(t,...n){let a=e.get(t);a&&a.forEach(e=>e(...n))}}}()),e.current}(),t=d.useCallback(t=>{e.publish(eH,t)},[e]),n=d.useCallback(t=>{e.publish(ej,t)},[e]),a=d.useCallback(t=>e.subscribe(eH,t),[e]),r=d.useCallback(t=>e.subscribe(ej,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:n,registerSelectionChangeHandler:a,registerHighlightChangeHandler:r}}();d.useEffect(()=>{G(M)},[M,G]),d.useEffect(()=>{z(P)},[P,z]);let V=e=>t=>{var n;if(null==(n=e.onKeyDown)||n.call(e,t),t.defaultMuiPrevented)return;let a=["Home","End","PageUp","PageDown"];"vertical"===S?a.push("ArrowUp","ArrowDown"):a.push("ArrowLeft","ArrowRight"),"activeDescendant"===r&&a.push(" ","Enter"),a.includes(t.key)&&t.preventDefault(),D({type:eB.F.keyDown,key:t.key,event:t}),F(t)},W=e=>t=>{var n,a;null==(n=e.onBlur)||n.call(e,t),t.defaultMuiPrevented||null!=(a=w.current)&&a.contains(t.relatedTarget)||D({type:eB.F.blur,event:t})},Z=d.useCallback(e=>{var t;let n=g.findIndex(t=>f(t,e)),a=(null!=(t=U.current)?t:[]).some(t=>null!=t&&f(e,t)),i=l(e,n),o=null!=B.current&&f(e,B.current),s="DOM"===r;return{disabled:i,focusable:s,highlighted:o,index:n,selected:a}},[g,l,f,U,B,r]),q=d.useMemo(()=>({dispatch:D,getItemState:Z,registerHighlightChangeHandler:H,registerSelectionChangeHandler:j}),[D,Z,H,j]);return d.useDebugValue({state:L}),{contextValue:q,dispatch:D,getRootProps:(e={})=>(0,u.Z)({},e,{"aria-activedescendant":"activeDescendant"===r&&null!=P?s(P):void 0,onBlur:W(e),onKeyDown:V(e),tabIndex:"DOM"===r?-1:0,ref:R}),rootRef:R,state:L}},e4=e=>{let{label:t,value:n}=e;return"string"==typeof t?t:"string"==typeof n?n:String(e)},e9=n(80710);function e5(e,t){var n,a,r;let{open:i}=e,{context:{selectionMode:o}}=t;if(t.type===eU.buttonClick){let a=null!=(n=e.selectedValues[0])?n:e$(null,"start",t.context);return(0,u.Z)({},e,{open:!i,highlightedValue:i?null:a})}let s=ez(e,t);switch(t.type){case eB.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===o&&("Enter"===t.event.key||" "===t.event.key))return(0,u.Z)({},s,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,u.Z)({},e,{open:!0,highlightedValue:null!=(a=e.selectedValues[0])?a:e$(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,u.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:e$(null,"end",t.context)})}break;case eB.F.itemClick:if("single"===o)return(0,u.Z)({},s,{open:!1});break;case eB.F.blur:return(0,u.Z)({},s,{open:!1})}return s}function e6(e,t){return n=>{let a=(0,u.Z)({},n,e(n)),r=(0,u.Z)({},a,t(a));return r}}function e8(e){e.preventDefault()}var e7=function(e){let t;let{areOptionsEqual:n,buttonRef:a,defaultOpen:r=!1,defaultValue:i,disabled:o=!1,listboxId:s,listboxRef:l,multiple:c=!1,onChange:p,onHighlightChange:g,onOpenChange:b,open:h,options:E,getOptionAsString:y=e4,value:S}=e,v=d.useRef(null),T=(0,m.Z)(a,v),_=d.useRef(null),A=(0,eM.Z)(s);void 0===S&&void 0===i?t=[]:void 0!==i&&(t=c?i:null==i?[]:[i]);let w=d.useMemo(()=>{if(void 0!==S)return c?S:null==S?[]:[S]},[S,c]),{subitems:R,contextValue:I}=(0,e9.Y)(),k=d.useMemo(()=>null!=E?new Map(E.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:d.createRef(),id:`${A}_${t}`}])):R,[E,R,A]),N=(0,m.Z)(l,_),{getRootProps:C,active:x,focusVisible:O,rootRef:L}=(0,eF.Z)({disabled:o,rootRef:T}),D=d.useMemo(()=>Array.from(k.keys()),[k]),P=d.useCallback(e=>{if(void 0!==n){let t=D.find(t=>n(t,e));return k.get(t)}return k.get(e)},[k,n,D]),M=d.useCallback(e=>{var t;let n=P(e);return null!=(t=null==n?void 0:n.disabled)&&t},[P]),F=d.useCallback(e=>{let t=P(e);return t?y(t):""},[P,y]),U=d.useMemo(()=>({selectedValues:w,open:h}),[w,h]),B=d.useCallback(e=>{var t;return null==(t=k.get(e))?void 0:t.id},[k]),$=d.useCallback((e,t)=>{if(c)null==p||p(e,t);else{var n;null==p||p(e,null!=(n=t[0])?n:null)}},[c,p]),G=d.useCallback((e,t)=>{null==g||g(e,null!=t?t:null)},[g]),z=d.useCallback((e,t,n)=>{if("open"===t&&(null==b||b(n),!1===n&&(null==e?void 0:e.type)!=="blur")){var a;null==(a=v.current)||a.focus()}},[b]),H={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:r}},getItemId:B,controlledProps:U,itemComparer:n,isItemDisabled:M,rootRef:L,onChange:$,onHighlightChange:G,onStateChange:z,reducerActionContext:d.useMemo(()=>({multiple:c}),[c]),items:D,getItemAsString:F,selectionMode:c?"multiple":"single",stateReducer:e5},{dispatch:j,getRootProps:V,contextValue:W,state:{open:Z,highlightedValue:q,selectedValues:Y},rootRef:K}=e3(H),X=e=>t=>{var n;if(null==e||null==(n=e.onClick)||n.call(e,t),!t.defaultMuiPrevented){let e={type:eU.buttonClick,event:t};j(e)}};(0,f.Z)(()=>{if(null!=q){var e;let t=null==(e=P(q))?void 0:e.ref;if(!_.current||!(null!=t&&t.current))return;let n=_.current.getBoundingClientRect(),a=t.current.getBoundingClientRect();a.topn.bottom&&(_.current.scrollTop+=a.bottom-n.bottom)}},[q,P]);let Q=d.useCallback(e=>P(e),[P]),J=(e={})=>(0,u.Z)({},e,{onClick:X(e),ref:K,role:"combobox","aria-expanded":Z,"aria-controls":A});d.useDebugValue({selectedOptions:Y,highlightedOption:q,open:Z});let ee=d.useMemo(()=>(0,u.Z)({},W,I),[W,I]);return{buttonActive:x,buttonFocusVisible:O,buttonRef:L,contextValue:ee,disabled:o,dispatch:j,getButtonProps:(e={})=>{let t=e6(C,V),n=e6(t,J);return n(e)},getListboxProps:(e={})=>(0,u.Z)({},e,{id:A,role:"listbox","aria-multiselectable":c?"true":void 0,ref:N,onMouseDown:e8}),getOptionMetadata:Q,listboxRef:K,open:Z,options:D,value:e.multiple?Y:Y.length>0?Y[0]:null,highlightedOption:q}},te=n(1349);function tt(e){let{value:t,children:n}=e,{dispatch:a,getItemIndex:r,getItemState:i,registerHighlightChangeHandler:o,registerSelectionChangeHandler:s,registerItem:l,totalSubitemCount:c}=t,u=d.useMemo(()=>({dispatch:a,getItemState:i,getItemIndex:r,registerHighlightChangeHandler:o,registerSelectionChangeHandler:s}),[a,r,i,o,s]),p=d.useMemo(()=>({getItemIndex:r,registerItem:l,totalSubitemCount:c}),[l,r,c]);return(0,eI.jsx)(e9.s.Provider,{value:p,children:(0,eI.jsx)(te.Z.Provider,{value:u,children:n})})}var tn=n(18818),ta=n(27358),tr=n(8189),ti=(0,n(19595).Z)((0,eI.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),to=n(50645),ts=n(88930),tl=n(47093),tc=n(326),tu=n(18587);function td(e){return(0,tu.d6)("MuiSelect",e)}let tp=(0,tu.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var tg=n(31857);let tm=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function tf(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}function tb(e){return(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}let th=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],tE=e=>{let{color:t,disabled:n,focusVisible:a,size:r,variant:i,open:o}=e,s={root:["root",n&&"disabled",a&&"focusVisible",o&&"expanded",i&&`variant${(0,g.Z)(i)}`,t&&`color${(0,g.Z)(t)}`,r&&`size${(0,g.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",o&&"expanded"],listbox:["listbox",o&&"expanded",n&&"disabled"]};return(0,ey.Z)(s,td,{})},ty=(0,to.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n,a,r,i;let o=null==(n=e.variants[`${t.variant}`])?void 0:n[t.color];return[(0,u.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.5,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(a=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:a[500]},{"--Select-indicatorColor":null!=o&&o.backgroundColor?null==o?void 0:o.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":"1.25rem"},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":"1.75rem"},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box",minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=o&&o.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)",fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md},"sm"===t.size&&{fontSize:e.vars.fontSize.sm},{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${tp.focusVisible}`]:{"--Select-indicatorColor":null==o?void 0:o.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${tp.disabled}`]:{"--Select-indicatorColor":"inherit"}}),(0,u.Z)({},o,{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${tp.disabled}`]:null==(i=e.variants[`${t.variant}Disabled`])?void 0:i[t.color]})]}),tS=(0,to.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,u.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),tv=(0,to.Z)(tn.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var n;let a="context"===t.color?void 0:null==(n=e.variants[t.variant])?void 0:n[t.color];return(0,u.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--List-radius":e.vars.radius.sm,"--ListItem-stickyBackground":(null==a?void 0:a.backgroundColor)||(null==a?void 0:a.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},ta.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),tT=(0,to.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({theme:e,ownerState:t})=>(0,u.Z)({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",marginInlineEnd:"var(--Select-gap)",color:e.vars.palette.text.tertiary},t.focusVisible&&{color:"var(--Select-focusedHighlight)"})),t_=(0,to.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({theme:e,ownerState:t})=>{var n;let a=null==(n=e.variants[t.variant])?void 0:n[t.color];return{"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",color:null==a?void 0:a.color}}),tA=(0,to.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e})=>(0,u.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1.125rem"},"md"===e.size&&{"--Icon-fontSize":"1.25rem"},"lg"===e.size&&{"--Icon-fontSize":"1.5rem"},{color:"var(--Select-indicatorColor)",display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${tp.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"}})),tw=d.forwardRef(function(e,t){var n,a,r,i,o,s,g;let f=(0,ts.Z)({props:e,name:"JoySelect"}),{action:b,autoFocus:h,children:E,defaultValue:y,defaultListboxOpen:S=!1,disabled:v,getSerializedValue:T=tb,placeholder:_,listboxId:A,listboxOpen:w,onChange:R,onListboxOpenChange:I,onClose:k,renderValue:N,value:C,size:x="md",variant:O="outlined",color:L="neutral",startDecorator:D,endDecorator:P,indicator:M=l||(l=(0,eI.jsx)(ti,{})),"aria-describedby":F,"aria-label":U,"aria-labelledby":B,id:$,name:G,slots:z={},slotProps:H={}}=f,j=(0,c.Z)(f,tm),V=d.useContext(tg.Z),W=null!=(n=null!=(a=e.disabled)?a:null==V?void 0:V.disabled)?n:v,Z=null!=(r=null!=(i=e.size)?i:null==V?void 0:V.size)?r:x,{getColor:q}=(0,tl.VT)(O),Y=q(e.color,null!=V&&V.error?"danger":null!=(o=null==V?void 0:V.color)?o:L),K=null!=N?N:tf,[X,Q]=d.useState(null),J=d.useRef(null),ee=d.useRef(null),et=d.useRef(null),en=(0,m.Z)(t,J);d.useImperativeHandle(b,()=>({focusVisible:()=>{var e;null==(e=ee.current)||e.focus()}}),[]),d.useEffect(()=>{Q(J.current)},[]),d.useEffect(()=>{h&&ee.current.focus()},[h]);let ea=d.useCallback(e=>{null==I||I(e),e||null==k||k()},[k,I]),{buttonActive:er,buttonFocusVisible:ei,contextValue:eo,disabled:es,getButtonProps:el,getListboxProps:ec,getOptionMetadata:eu,open:ed,value:ep}=e7({buttonRef:ee,defaultOpen:S,defaultValue:y,disabled:W,listboxId:A,multiple:!1,onChange:R,onOpenChange:ea,open:w,value:C}),eg=(0,u.Z)({},f,{active:er,defaultListboxOpen:S,disabled:es,focusVisible:ei,open:ed,renderValue:K,value:ep,size:Z,variant:O,color:Y}),em=tE(eg),ef=(0,u.Z)({},j,{slots:z,slotProps:H}),eb=d.useMemo(()=>{var e;return null!=(e=eu(ep))?e:null},[eu,ep]),[eh,eE]=(0,tc.Z)("root",{ref:en,className:em.root,elementType:ty,externalForwardedProps:ef,ownerState:eg}),[ey,eS]=(0,tc.Z)("button",{additionalProps:{"aria-describedby":null!=F?F:null==V?void 0:V["aria-describedby"],"aria-label":U,"aria-labelledby":null!=B?B:null==V?void 0:V.labelId,id:null!=$?$:null==V?void 0:V.htmlFor,name:G},className:em.button,elementType:tS,externalForwardedProps:ef,getSlotProps:el,ownerState:eg}),[ev,eT]=(0,tc.Z)("listbox",{additionalProps:{ref:et,anchorEl:X,open:ed,placement:"bottom",keepMounted:!0},className:em.listbox,elementType:tv,externalForwardedProps:ef,getSlotProps:ec,ownerState:(0,u.Z)({},eg,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||Z,variant:e.variant||"outlined",color:e.color||"neutral",disableColorInversion:!e.disablePortal})}),[e_,eA]=(0,tc.Z)("startDecorator",{className:em.startDecorator,elementType:tT,externalForwardedProps:ef,ownerState:eg}),[ew,eR]=(0,tc.Z)("endDecorator",{className:em.endDecorator,elementType:t_,externalForwardedProps:ef,ownerState:eg}),[ek,eN]=(0,tc.Z)("indicator",{className:em.indicator,elementType:tA,externalForwardedProps:ef,ownerState:eg}),eC=d.useMemo(()=>(0,u.Z)({},eo,{color:Y}),[Y,eo]),ex=d.useMemo(()=>[...th,...eT.modifiers||[]],[eT.modifiers]),eO=null;return X&&(eO=(0,eI.jsx)(ev,(0,u.Z)({},eT,{className:(0,p.Z)(eT.className,(null==(s=eT.ownerState)?void 0:s.color)==="context"&&tp.colorContext),modifiers:ex},!(null!=(g=f.slots)&&g.listbox)&&{as:eP,slots:{root:eT.as||"ul"}},{children:(0,eI.jsx)(tt,{value:eC,children:(0,eI.jsx)(tr.Z.Provider,{value:"select",children:(0,eI.jsx)(ta.Z,{nested:!0,children:E})})})})),eT.disablePortal||(eO=(0,eI.jsx)(tl.ZP.Provider,{value:void 0,children:eO}))),(0,eI.jsxs)(d.Fragment,{children:[(0,eI.jsxs)(eh,(0,u.Z)({},eE,{children:[D&&(0,eI.jsx)(e_,(0,u.Z)({},eA,{children:D})),(0,eI.jsx)(ey,(0,u.Z)({},eS,{children:eb?K(eb):_})),P&&(0,eI.jsx)(ew,(0,u.Z)({},eR,{children:P})),M&&(0,eI.jsx)(ek,(0,u.Z)({},eN,{children:M}))]})),eO,G&&(0,eI.jsx)("input",{type:"hidden",name:G,value:T(eb)})]})});var tR=tw},69962:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var a=n(46750),r=n(40431),i=n(86006),o=n(89791),s=n(53832),l=n(72120),c=n(47562),u=n(88930),d=n(50645),p=n(18587);function g(e){return(0,p.d6)("MuiSkeleton",e)}(0,p.sI)("MuiSkeleton",["root","variantOverlay","variantCircular","variantRectangular","variantText","variantInline","h1","h2","h3","h4","h5","h6","body1","body2","body3"]);var m=n(326),f=n(9268);let b=["className","component","children","animation","overlay","loading","variant","level","height","width","sx","slots","slotProps"],h=e=>e,E,y,S,v,T,_=e=>{let{variant:t,level:n}=e,a={root:["root",t&&`variant${(0,s.Z)(t)}`,n&&`level${(0,s.Z)(n)}`]};return(0,c.Z)(a,g,{})},A=(0,l.F4)(E||(E=h` - 0% { - opacity: 1; - } - - 50% { - opacity: 0.8; - background: var(--unstable_pulse-bg); - } - - 100% { - opacity: 1; - } -`)),w=(0,l.F4)(y||(y=h` - 0% { - transform: translateX(-100%); - } - - 50% { - /* +0.5s of delay between each loop */ - transform: translateX(100%); - } - - 100% { - transform: translateX(100%); - } -`)),R=(0,d.Z)("span",{name:"JoySkeleton",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>"pulse"===e.animation&&"inline"!==e.variant&&(0,l.iv)(S||(S=h` - &::before { - animation: ${0} 1.5s ease-in-out 0.5s infinite; - background: ${0}; - } - `),A,t.vars.palette.background.level2),({ownerState:e,theme:t})=>"pulse"===e.animation&&"inline"===e.variant&&(0,l.iv)(v||(v=h` - &::after { - animation: ${0} 1.5s ease-in-out 0.5s infinite; - background: ${0}; - } - `),A,t.vars.palette.background.level2),({ownerState:e,theme:t})=>"wave"===e.animation&&(0,l.iv)(T||(T=h` - /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ - -webkit-mask-image: -webkit-radial-gradient(white, black); - background: ${0}; - - &::after { - content: ' '; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: var(--unstable_pseudo-zIndex); - animation: ${0} 1.6s linear 0.5s infinite; - background: linear-gradient( - 90deg, - transparent, - var(--unstable_wave-bg, rgba(0 0 0 / 0.08)), - transparent - ); - transform: translateX(-100%); /* Avoid flash during server-side hydration */ - } - `),t.vars.palette.background.level2,w),({ownerState:e,theme:t})=>{var n,a,i,o;let s=(null==(n=t.components)||null==(n=n.JoyTypography)||null==(n=n.defaultProps)?void 0:n.level)||"body1";return[{display:"block",position:"relative","--unstable_pseudo-zIndex":9,"--unstable_pulse-bg":t.vars.palette.background.level1,overflow:"hidden",cursor:"default","& *":{visibility:"hidden"},"&::before":{display:"block",content:'" "',top:0,bottom:0,left:0,right:0,zIndex:"var(--unstable_pseudo-zIndex)",borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"--unstable_wave-bg":"rgba(255 255 255 / 0.1)"}},"rectangular"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",height:"auto",width:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"circular"===e.variant&&(0,r.Z)({borderRadius:"50%",width:"100%",height:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"text"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",background:"transparent",width:"100%"},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level||s],{paddingBlockStart:`calc((${(null==(a=t.typography[e.level||s])?void 0:a.lineHeight)||1} - 1) * 0.56em)`,paddingBlockEnd:`calc((${(null==(i=t.typography[e.level||s])?void 0:i.lineHeight)||1} - 1) * 0.44em)`,"&::before":(0,r.Z)({height:"1em"},t.typography[e.level||s],"wave"===e.animation&&{backgroundColor:t.vars.palette.background.level2},!e.animation&&{backgroundColor:t.vars.palette.background.level2}),"&::after":(0,r.Z)({height:"1em",top:`calc((${(null==(o=t.typography[e.level||s])?void 0:o.lineHeight)||1} - 1) * 0.56em)`},t.typography[e.level||s])})),"inline"===e.variant&&(0,r.Z)({display:"inline",position:"initial",borderRadius:"min(0.15em, 6px)"},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"-webkit-mask-image":"-webkit-radial-gradient(white, black)","&::before":{position:"absolute",zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}},"pulse"===e.animation&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}}),"overlay"===e.variant&&(0,r.Z)({borderRadius:t.vars.radius.xs,position:"absolute",width:"100%",height:"100%",zIndex:"var(--unstable_pseudo-zIndex)"},"pulse"===e.animation&&{backgroundColor:t.vars.palette.background.surface},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"&::before":{position:"absolute"}})]}),I=i.forwardRef(function(e,t){let n=(0,u.Z)({props:e,name:"JoySkeleton"}),{className:s,component:l="span",children:c,animation:d="pulse",overlay:p=!1,loading:g=!0,variant:h="overlay",level:E="text"===h?"body1":"inherit",height:y,width:S,sx:v,slots:T={},slotProps:A={}}=n,w=(0,a.Z)(n,b),I=(0,r.Z)({},w,{component:l,slots:T,slotProps:A,sx:[{width:S,height:y},...Array.isArray(v)?v:[v]]}),k=(0,r.Z)({},n,{animation:d,component:l,level:E,loading:g,overlay:p,variant:h,width:S,height:y}),N=_(k),[C,x]=(0,m.Z)("root",{ref:t,className:(0,o.Z)(N.root,s),elementType:R,externalForwardedProps:I,ownerState:k});return g?(0,f.jsx)(C,(0,r.Z)({},x,{children:c})):(0,f.jsx)(i.Fragment,{children:i.Children.map(c,(e,t)=>0===t&&i.isValidElement(e)?i.cloneElement(e,{"data-first-child":""}):e)})});I.muiName="Skeleton";var k=I},1349:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(86006);let r=a.createContext(null)},47874:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});let a={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},80710:function(e,t,n){"use strict";n.d(t,{Y:function(){return i},s:function(){return r}});var a=n(86006);let r=a.createContext(null);function i(){let[e,t]=a.useState(new Map),n=a.useRef(new Set),r=a.useCallback(function(e){n.current.delete(e),t(t=>{let n=new Map(t);return n.delete(e),n})},[]),i=a.useCallback(function(e,a){let i;return i="function"==typeof e?e(n.current):e,n.current.add(i),t(e=>{let t=new Map(e);return t.set(i,a),t}),{id:i,deregister:()=>r(i)}},[r]),o=a.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let n=e.get(t);return{key:t,subitem:n}});return t.sort((e,t)=>{let n=e.subitem.ref.current,a=t.subitem.ref.current;return null===n||null===a||n===a?0:n.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),s=a.useCallback(function(e){return Array.from(o.keys()).indexOf(e)},[o]),l=a.useMemo(()=>({getItemIndex:s,registerItem:i,totalSubitemCount:e.size}),[s,i,e.size]);return{contextValue:l,subitems:o}}r.displayName="CompoundComponentContext"},19595:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var a=n(40431),r=n(86006),i=n(46750),o=n(47562),s=n(53832),l=n(89791),c=n(50645),u=n(88930),d=n(326),p=n(18587);function g(e){return(0,p.d6)("MuiSvgIcon",e)}(0,p.sI)("MuiSvgIcon",["root","colorInherit","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","fontSizeInherit","fontSizeXs","fontSizeSm","fontSizeMd","fontSizeLg","fontSizeXl","fontSizeXl2","fontSizeXl3","fontSizeXl4","fontSizeXl5","fontSizeXl6"]);var m=n(9268);let f=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox","slots","slotProps"],b=e=>{let{color:t,fontSize:n}=e,a={root:["root",t&&`color${(0,s.Z)(t)}`,n&&`fontSize${(0,s.Z)(n)}`]};return(0,o.Z)(a,g,{})},h=(0,c.Z)("svg",{name:"JoySvgIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n;return(0,a.Z)({},t.instanceFontSize&&"inherit"!==t.instanceFontSize&&{"--Icon-fontSize":e.vars.fontSize[t.instanceFontSize]},{userSelect:"none",margin:"var(--Icon-margin)",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0},t.fontSize&&"inherit"!==t.fontSize&&{fontSize:`var(--Icon-fontSize, ${e.fontSize[t.fontSize]})`},{color:"var(--Icon-color)"},"inherit"!==t.color&&"context"!==t.color&&e.vars.palette[t.color]&&{color:e.vars.palette[t.color].plainColor},"context"===t.color&&{color:null==(n=e.variants.plain)||null==(n=n[t.color])?void 0:n.color})}),E=r.forwardRef(function(e,t){let n=(0,u.Z)({props:e,name:"JoySvgIcon"}),{children:o,className:s,color:c="inherit",component:p="svg",fontSize:g="xl",htmlColor:E,inheritViewBox:y=!1,titleAccess:S,viewBox:v="0 0 24 24",slots:T={},slotProps:_={}}=n,A=(0,i.Z)(n,f),w=r.isValidElement(o)&&"svg"===o.type,R=(0,a.Z)({},n,{color:c,component:p,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:y,viewBox:v,hasSvgAsChild:w}),I=b(R),k=(0,a.Z)({},A,{component:p,slots:T,slotProps:_}),[N,C]=(0,d.Z)("root",{ref:t,className:(0,l.Z)(I.root,s),elementType:h,externalForwardedProps:k,ownerState:R,additionalProps:(0,a.Z)({color:E,focusable:!1},S&&{role:"img"},!S&&{"aria-hidden":!0},!y&&{viewBox:v},w&&o.props)});return(0,m.jsxs)(N,(0,a.Z)({},C,{children:[w?o.props.children:o,S?(0,m.jsx)("title",{children:S}):null]}))});function y(e,t){function n(n,r){return(0,m.jsx)(E,(0,a.Z)({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=E.muiName,r.memo(r.forwardRef(n))}},82372:function(e,t,n){e=n.nmd(e),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,t,n){"use strict";var a=e("./lib/dom"),r=e("./lib/oop"),i=e("./lib/event_emitter").EventEmitter,o=e("./lib/lang"),s=e("./range").Range,l=e("./range_list").RangeList,c=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,d=e("./clipboard"),p={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,n){var a=e.session.getTextRange();return n?a.replace(/\n\r?([ \t]*\S)/g,"\n"+n+"$1"):a},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return d.getText&&d.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};function g(e){var t=new Date().toLocaleString("en-us",e);return 1==t.length?"0"+t:t}p.SELECTED_TEXT=p.SELECTION;var m=function(){this.snippetMap={},this.snippetNameMap={}};(function(){r.implement(this,i),this.getTokenizer=function(){return m.$tokenizer||this.createTokenizer()},this.createTokenizer=function(){function e(e){return(e=e.substr(1),/^\d+$/.test(e))?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function t(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+t("/")+"+)/",onMatch:function(e,t,n){var a=n[0];return a.fmtString=!0,a.guard=e.slice(1,-1),a.flag="",""},next:"formatString"};return m.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,n){var a=e[1];return"}"==a&&n.length?e=a:-1!="`$\\".indexOf(a)&&(e=a),[e]}},{regex:/}/,onMatch:function(e,t,n){return[n.length?n.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:e},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(t,n,a){var r=e(t.substr(1));return a.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+t("\\|")+"*\\|",onMatch:function(e,t,n){var a=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\x00"}).split("\x00").map(function(e){return{value:e}});return n[0].choices=a,[a[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,n){return n.length&&n[0].expectElse?(n[0].expectElse=!1,n[0].ifEnd={elseEnd:n[0]},[n[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,n){var a=e[1];return"}"==a&&n.length?e=a:-1!="`$\\".indexOf(a)?e=a:"n"==a?e="\n":"t"==a?e=" ":-1!="ulULE".indexOf(a)&&(e={changeCase:a,local:a>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,n){var a=n.shift();return a&&(a.flag=e.slice(1,-1)),this.next=a&&a.tabstopId?"start":"",[a||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,n){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,n){var a={text:e.slice(2)};return n.unshift(a),[a]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,n){var a=n.shift();return this.next=a&&a.tabstopId?"start":"",[a||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,n){return n[0].formatFunction=e.slice(2,-1),[n.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,n){"+"==e[1]&&(n[0].ifEnd=n[0]),"?"==e[1]&&(n[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),m.$tokenizer},this.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},this.getVariableValue=function(e,t,n){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var a=this.variables[t];return"function"==typeof a&&(a=this.variables[t](e,t,n)),null==a?"":a},this.variables=p,this.tmStrFormat=function(e,t,n){if(!t.fmt)return e;var a=t.flag||"",r=t.guard;r=new RegExp(r,a.replace(/[^gim]/g,""));var i="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,o=this;return e.replace(r,function(){var e=o.variables.__;o.variables.__=[].slice.call(arguments);for(var t=o.resolveVariables(i,n),a="E",r=0;r1?(h=t[t.length-1].length,b+=t.length-1):h+=e.length,E+=e}else e&&(e.start?e.end={row:b,column:h}:e.start={row:b,column:h})});var y=e.getSelectionRange(),S=e.session.replace(y,E),v=new f(e),T=e.inVirtualSelectionMode&&e.selection.index;v.addTabstops(s,y.start,S,T)},this.insertSnippet=function(e,t){var n=this;if(e.inVirtualSelectionMode)return n.insertSnippetForSelection(e,t);e.forEachSelection(function(){n.insertSnippetForSelection(e,t)},null,{keepOrder:!0}),e.tabstopManager&&e.tabstopManager.tabNext()},this.$getScope=function(e){var t=e.session.$mode.$id||"";if("html"===(t=t.split("/").pop())||"php"===t){"php"!==t||e.session.$mode.inlinePhp||(t="html");var n=e.getCursorPosition(),a=e.session.getState(n.row);"object"==typeof a&&(a=a[0]),a.substring&&("js-"==a.substring(0,3)?t="javascript":"css-"==a.substring(0,4)?t="css":"php-"==a.substring(0,4)&&(t="php"))}return t},this.getActiveScopes=function(e){var t=this.$getScope(e),n=[t],a=this.snippetMap;return a[t]&&a[t].includeScopes&&n.push.apply(n,a[t].includeScopes),n.push("_"),n},this.expandWithTab=function(e,t){var n=this,a=e.forEachSelection(function(){return n.expandSnippetForSelection(e,t)},null,{keepOrder:!0});return a&&e.tabstopManager&&e.tabstopManager.tabNext(),a},this.expandSnippetForSelection=function(e,t){var n,a=e.getCursorPosition(),r=e.session.getLine(a.row),i=r.substring(0,a.column),o=r.substr(a.column),s=this.snippetMap;return this.getActiveScopes(e).some(function(e){var t=s[e];return t&&(n=this.findMatchingSnippet(t,i,o)),!!n},this),!!n&&(!!t&&!!t.dryRun||(e.session.doc.removeInLine(a.row,a.column-n.replaceBefore.length,a.column+n.replaceAfter.length),this.variables.M__=n.matchBefore,this.variables.T__=n.matchAfter,this.insertSnippetForSelection(e,n.content),this.variables.M__=this.variables.T__=null,!0))},this.findMatchingSnippet=function(e,t,n){for(var a=e.length;a--;){var r=e[a];if((!r.startRe||r.startRe.test(t))&&(!r.endRe||r.endRe.test(n))&&(r.startRe||r.endRe))return r.matchBefore=r.startRe?r.startRe.exec(t):[""],r.matchAfter=r.endRe?r.endRe.exec(n):[""],r.replaceBefore=r.triggerRe?r.triggerRe.exec(t)[0]:"",r.replaceAfter=r.endTriggerRe?r.endTriggerRe.exec(n)[0]:"",r}},this.snippetMap={},this.snippetNameMap={},this.register=function(e,t){var n=this.snippetMap,a=this.snippetNameMap,r=this;function i(e){return e&&!/^\^?\(.*\)\$?$|^\\b$/.test(e)&&(e="(?:"+e+")"),e||""}function s(e,t,n){return e=i(e),t=i(t),n?(e=t+e)&&"$"!=e[e.length-1]&&(e+="$"):(e+=t)&&"^"!=e[0]&&(e="^"+e),new RegExp(e)}function l(e){e.scope||(e.scope=t||"_"),n[t=e.scope]||(n[t]=[],a[t]={});var i=a[t];if(e.name){var l=i[e.name];l&&r.unregister(l),i[e.name]=e}n[t].push(e),e.prefix&&(e.tabTrigger=e.prefix),!e.content&&e.body&&(e.content=Array.isArray(e.body)?e.body.join("\n"):e.body),e.tabTrigger&&!e.trigger&&(!e.guard&&/^\w/.test(e.tabTrigger)&&(e.guard="\\b"),e.trigger=o.escapeRegExp(e.tabTrigger)),(e.trigger||e.guard||e.endTrigger||e.endGuard)&&(e.startRe=s(e.trigger,e.guard,!0),e.triggerRe=new RegExp(e.trigger),e.endRe=s(e.endTrigger,e.endGuard,!0),e.endTriggerRe=new RegExp(e.endTrigger))}e||(e=[]),Array.isArray(e)?e.forEach(l):Object.keys(e).forEach(function(t){l(e[t])}),this._signal("registerSnippets",{scope:t})},this.unregister=function(e,t){var n=this.snippetMap,a=this.snippetNameMap;function r(e){var r=a[e.scope||t];if(r&&r[e.name]){delete r[e.name];var i=n[e.scope||t],o=i&&i.indexOf(e);o>=0&&i.splice(o,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},this.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,n=[],a={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=r.exec(e);){if(t[1])try{a=JSON.parse(t[1]),n.push(a)}catch(e){}if(t[4])a.content=t[4].replace(/^\t/gm,""),n.push(a),a={};else{var i=t[2],o=t[3];if("regex"==i){var s=/\/((?:[^\/\\]|\\.)*)|$/g;a.guard=s.exec(o)[1],a.trigger=s.exec(o)[1],a.endTrigger=s.exec(o)[1],a.endGuard=s.exec(o)[1]}else"snippet"==i?(a.tabTrigger=o.match(/^\S*/)[0],a.name||(a.name=o)):i&&(a[i]=o)}}return n},this.getSnippetByName=function(e,t){var n,a=this.snippetNameMap;return this.getActiveScopes(t).some(function(t){var r=a[t];return r&&(n=r[e]),!!n},this),n}}).call(m.prototype);var f=function(e){if(e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=o.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)};(function(){this.attach=function(e){this.index=0,this.ranges=[],this.tabstops=[],this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},this.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges=null,this.tabstops=null,this.selectedTabstop=null,this.editor.removeListener("change",this.$onChange),this.editor.removeListener("changeSelection",this.$onChangeSelection),this.editor.removeListener("changeSession",this.$onChangeSession),this.editor.commands.removeListener("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.editor=null},this.onChange=function(e){for(var t="r"==e.action[0],n=this.selectedTabstop||{},a=n.parents||{},r=(this.tabstops||[]).slice(),i=0;i2&&(this.tabstops.length&&i.push(i.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,i))},this.addTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))})},this.removeTabstopMarkers=function(e){var t=this.editor.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},this.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.editor.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},this.keyboardHandler=new c,this.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}})}).call(f.prototype);var b=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},h=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};a.importCssString("\n.ace_snippet-marker {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n background: rgba(194, 193, 208, 0.09);\n border: 1px dotted rgba(211, 208, 235, 0.62);\n position: absolute;\n}","snippets.css",!1),t.snippetManager=new m,(function(){this.insertSnippet=function(e,n){return t.snippetManager.insertSnippet(this,e,n)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(e("./editor").Editor.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom"],function(e,t,n){"use strict";var a=e("../virtual_renderer").VirtualRenderer,r=e("../editor").Editor,i=e("../range").Range,o=e("../lib/event"),s=e("../lib/lang"),l=e("../lib/dom"),c=function(e){var t=new a(e);t.$maxLines=4;var n=new r(t);return n.setHighlightActiveLine(!1),n.setShowPrintMargin(!1),n.renderer.setShowGutter(!1),n.renderer.setHighlightGutterLine(!1),n.$mouseHandler.$focusTimeout=0,n.$highlightTagPending=!0,n};l.importCssString("\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin: 0.9em;\n}\n.ace_completion-message {\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}","autocompletion.css",!1),t.AcePopup=function(e){var t,n=l.createElement("div"),a=new c(n);e&&e.appendChild(n),n.style.display="none",a.renderer.content.style.cursor="default",a.renderer.setStyle("ace_autocomplete"),a.setOption("displayIndentGuides",!1),a.setOption("dragDelay",150);var r=function(){};a.focus=r,a.$isFocused=!0,a.renderer.$cursorLayer.restartTimer=r,a.renderer.$cursorLayer.element.style.opacity=0,a.renderer.$maxLines=8,a.renderer.$keepTextAreaAtCursor=!1,a.setHighlightActiveLine(!1),a.session.highlight(""),a.session.$searchHighlight.clazz="ace_highlight-marker",a.on("mousedown",function(e){var t=e.getDocumentPosition();a.selection.moveToPosition(t),d.start.row=d.end.row=t.row,e.stop()});var u=new i(-1,0,-1,1/0),d=new i(-1,0,-1,1/0);d.id=a.session.addMarker(d,"ace_active-line","fullLine"),a.setSelectOnHover=function(e){e?u.id&&(a.session.removeMarker(u.id),u.id=null):u.id=a.session.addMarker(u,"ace_line-hover","fullLine")},a.setSelectOnHover(!1),a.on("mousemove",function(e){if(!t){t=e;return}if(t.x!=e.x||t.y!=e.y){(t=e).scrollTop=a.renderer.scrollTop;var n=t.getDocumentPosition().row;u.start.row!=n&&(u.id||a.setRow(n),g(n))}}),a.renderer.on("beforeRender",function(){if(t&&-1!=u.start.row){t.$pos=null;var e=t.getDocumentPosition().row;u.id||a.setRow(e),g(e,!0)}}),a.renderer.on("afterRender",function(){var e=a.getRow(),t=a.renderer.$textLayer,n=t.element.childNodes[e-t.config.firstRow];n!==t.selectedNode&&t.selectedNode&&l.removeCssClass(t.selectedNode,"ace_selected"),t.selectedNode=n,n&&l.addCssClass(n,"ace_selected")});var p=function(){g(-1)},g=function(e,t){e!==u.start.row&&(u.start.row=u.end.row=e,t||a.session._emit("changeBackMarker"),a._emit("changeHoverMarker"))};a.getHoveredRow=function(){return u.start.row},o.addListener(a.container,"mouseout",p),a.on("hide",p),a.on("changeSelection",p),a.session.doc.getLength=function(){return a.data.length},a.session.doc.getLine=function(e){var t=a.data[e];return"string"==typeof t?t:t&&t.value||""};var m=a.session.bgTokenizer;return m.$tokenizeRow=function(e){var t=a.data[e],n=[];if(!t)return n;"string"==typeof t&&(t={value:t});var r=t.caption||t.value||t.name;function i(e,a){e&&n.push({type:(t.className||"")+(a||""),value:e})}for(var o=r.toLowerCase(),s=(a.filterText||"").toLowerCase(),l=0,c=0,u=0;u<=s.length;u++)if(u!=c&&(t.matchMask&1<o/2&&!r&&u+n+c>o?(l.$maxPixelHeight=u-2*this.$borderSize,i.style.top="",i.style.bottom=o-u+"px",a.isTopdown=!1):(u+=n,l.$maxPixelHeight=o-u-.2*n,i.style.top=u+"px",i.style.bottom="",a.isTopdown=!0),i.style.display="";var d=e.left;d+i.offsetWidth>s&&(d=s-i.offsetWidth),i.style.left=d+"px",this._signal("show"),t=null,a.isOpen=!0},a.goTo=function(e){var t=this.getRow(),n=this.session.getLength()-1;switch(e){case"up":t=t<=0?n:t-1;break;case"down":t=t>=n?-1:t+1;break;case"start":t=0;break;case"end":t=n}this.setRow(t)},a.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},a.$imageSize=0,a.$borderSize=1,a},t.$singleLineEditor=c}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,n){"use strict";t.parForEach=function(e,t,n){var a=0,r=e.length;0===r&&n();for(var i=0;i=0&&n.test(e[i]);i--)r.push(e[i]);return r.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,n){n=n||a;for(var r=[],i=t;ithis.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else var t=this.all;this.filterText=e;var n=null;t=(t=(t=this.filterCompletions(t,this.filterText)).sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)})).filter(function(e){var t=e.snippet||e.caption||e.value;return t!==n&&(n=t,!0)}),this.filtered=t},this.filterCompletions=function(e,t){var n=[],a=t.toUpperCase(),r=t.toLowerCase();e:for(var i,o=0;i=e[o];o++){var s,l,c=i.caption||i.value||i.snippet;if(c){var u=-1,d=0,p=0;if(this.exactMatch){if(t!==c.substr(0,t.length))continue}else{var g=c.toLowerCase().indexOf(r);if(g>-1)p=g;else for(var m=0;m=0&&(b<0||f0&&(-1===u&&(p+=10),p+=l,d|=1<",o.escapeHTML(e.caption),"","
    ",o.escapeHTML(u(e.snippet))].join(""))}},p=[d,l,c];t.setCompleters=function(e){p.length=0,e&&p.push.apply(p,e)},t.addCompleter=function(e){p.push(e)},t.textCompleter=l,t.keyWordCompleter=c,t.snippetCompleter=d;var g={name:"expandSnippet",exec:function(e){return a.expandWithTab(e)},bindKey:"Tab"},m=function(e,t){f(t.session.$mode)},f=function(e){"string"==typeof e&&(e=i.$modes[e]),e&&(a.files||(a.files={}),b(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(f))},b=function(e,t){t&&e&&!a.files[e]&&(a.files[e]={},i.loadModule(t,function(t){t&&(a.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=a.parseSnippetFile(t.snippetText)),a.register(t.snippets||[],t.scope),t.includeScopes&&(a.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(e){f("ace/mode/"+e)})))}))},h=function(e){var t=e.editor,n=t.completer&&t.completer.activated;if("backspace"===e.command.name)n&&!s.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name&&s.getCompletionPrefix(t)&&!n){var a=r.for(t);a.autoInsert=!1,a.showPopup(t)}},E=e("../editor").Editor;e("../config").defineOptions(E.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:p),this.commands.addCommand(r.startCommand)):this.commands.removeCommand(r.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:p),this.commands.on("afterExec",h)):this.commands.removeListener("afterExec",h)},value:!1},enableSnippets:{set:function(e){e?(this.commands.addCommand(g),this.on("changeMode",m),m(null,this)):(this.commands.removeCommand(g),this.off("changeMode",m))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(t){e&&(e.exports=t)})},7527:function(e,t,n){e=n.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,n){"use strict";var a=e("./lib/oop");e("./lib/lang");var r=e("./lib/event_emitter").EventEmitter,i=e("./editor").Editor,o=e("./virtual_renderer").VirtualRenderer,s=e("./edit_session").EditSession,l=function(e,t,n){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(n||1),this.$cEditor=this.$editors[0],this.on("focus",(function(e){this.$cEditor=e}).bind(this))};(function(){a.implement(this,r),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new i(new o(e,this.$theme));return t.on("focus",(function(){this._emit("focus",t)}).bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;return n=null==t?this.$cEditor:this.$editors[t],this.$editors.some(function(t){return t.session===e})&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var a=t/this.$splits,r=0;rc)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=i)break;if(u.isMultiLine())t=u.end.row;else if(a==c)break}s=t}}return new r(i,o,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){for(var a=t.search(/\s*$/),i=e.getLength(),o=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++no)return new r(o,a,u,t.length)}}).call(o.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){"use strict";var a=e("../lib/oop"),r=e("./text").Mode,i=e("./json_highlight_rules").JsonHighlightRules,o=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=i,this.$outdent=new o,this.$behaviour=new s,this.foldingRules=new l};a.inherits(u,r),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var a=this.$getIndent(t);return"start"==e&&t.match(/^.*[\{\(\[]\s*$/)&&(a+=n),a},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}).call(u.prototype),t.Mode=u}),ace.require(["ace/mode/json"],function(t){e&&(e.exports=t)})},21299:function(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,a,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=r;if(null==e||null==n)throw Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===a&&(a=!0);var o=a,s=this.diff_commonPrefix(e,n),l=e.substring(0,s);e=e.substring(s),n=n.substring(s),s=this.diff_commonSuffix(e,n);var c=e.substring(e.length-s);e=e.substring(0,e.length-s),n=n.substring(0,n.length-s);var u=this.diff_compute_(e,n,o,i);return l&&u.unshift(new t.Diff(0,l)),c&&u.push(new t.Diff(0,c)),this.diff_cleanupMerge(u),u},t.prototype.diff_compute_=function(e,n,a,r){if(!e)return[new t.Diff(1,n)];if(!n)return[new t.Diff(-1,e)];var i,o=e.length>n.length?e:n,s=e.length>n.length?n:e,l=o.indexOf(s);if(-1!=l)return i=[new t.Diff(1,o.substring(0,l)),new t.Diff(0,s),new t.Diff(1,o.substring(l+s.length))],e.length>n.length&&(i[0][0]=i[2][0]=-1),i;if(1==s.length)return[new t.Diff(-1,e),new t.Diff(1,n)];var c=this.diff_halfMatch_(e,n);if(c){var u=c[0],d=c[1],p=c[2],g=c[3],m=c[4],f=this.diff_main(u,p,a,r),b=this.diff_main(d,g,a,r);return f.concat([new t.Diff(0,m)],b)}return a&&e.length>100&&n.length>100?this.diff_lineMode_(e,n,r):this.diff_bisect_(e,n,r)},t.prototype.diff_lineMode_=function(e,n,a){var r=this.diff_linesToChars_(e,n);e=r.chars1,n=r.chars2;var i=r.lineArray,o=this.diff_main(e,n,!1,a);this.diff_charsToLines_(o,i),this.diff_cleanupSemantic(o),o.push(new t.Diff(0,""));for(var s=0,l=0,c=0,u="",d="";s=1&&c>=1){o.splice(s-l-c,l+c),s=s-l-c;for(var p=this.diff_main(u,d,!1,a),g=p.length-1;g>=0;g--)o.splice(s,0,p[g]);s+=p.length}c=0,l=0,u="",d=""}s++}return o.pop(),o},t.prototype.diff_bisect_=function(e,n,a){for(var r=e.length,i=n.length,o=Math.ceil((r+i)/2),s=2*o,l=Array(s),c=Array(s),u=0;ua);h++){for(var E=-h+g;E<=h-m;E+=2){for(var y,S=o+E,v=(y=E==-h||E!=h&&l[S-1]r)m+=2;else if(v>i)g+=2;else if(p){var T=o+d-E;if(T>=0&&T=_)return this.diff_bisectSplit_(e,n,y,v,a)}}}for(var A=-h+f;A<=h-b;A+=2){for(var _,T=o+A,w=(_=A==-h||A!=h&&c[T-1]r)b+=2;else if(w>i)f+=2;else if(!p){var S=o+d-A;if(S>=0&&S=(_=r-_))return this.diff_bisectSplit_(e,n,y,v,a)}}}}return[new t.Diff(-1,e),new t.Diff(1,n)]},t.prototype.diff_bisectSplit_=function(e,t,n,a,r){var i=e.substring(0,n),o=t.substring(0,a),s=e.substring(n),l=t.substring(a),c=this.diff_main(i,o,!1,r),u=this.diff_main(s,l,!1,r);return c.concat(u)},t.prototype.diff_linesToChars_=function(e,t){var n=[],a={};function r(e){for(var t="",r=0,o=-1,s=n.length;oa?e=e.substring(n-a):nt.length?e:t,l=e.length>t.length?t:e;if(s.length<4||2*l.length=e.length?[a,r,i,o,u]:null}var d=u(s,l,Math.ceil(s.length/4)),p=u(s,l,Math.ceil(s.length/2));return d||p?(n=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(a=n[0],r=n[1],i=n[2],o=n[3]):(i=n[0],o=n[1],a=n[2],r=n[3]),[a,r,i,o,n[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var n=!1,a=[],r=0,i=null,o=0,s=0,l=0,c=0,u=0;o0?a[r-1]:-1,s=0,l=0,c=0,u=0,i=null,n=!0)),o++;for(n&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),o=1;o=m?(g>=d.length/2||g>=p.length/2)&&(e.splice(o,0,new t.Diff(0,p.substring(0,g))),e[o-1][1]=d.substring(0,d.length-g),e[o+1][1]=p.substring(g),o++):(m>=d.length/2||m>=p.length/2)&&(e.splice(o,0,new t.Diff(0,d.substring(0,m))),e[o-1][0]=1,e[o-1][1]=p.substring(0,p.length-m),e[o+1][0]=-1,e[o+1][1]=d.substring(m),o++),o++}o++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var a=e.charAt(e.length-1),r=n.charAt(0),i=a.match(t.nonAlphaNumericRegex_),o=r.match(t.nonAlphaNumericRegex_),s=i&&a.match(t.whitespaceRegex_),l=o&&r.match(t.whitespaceRegex_),c=s&&a.match(t.linebreakRegex_),u=l&&r.match(t.linebreakRegex_),d=c&&e.match(t.blanklineEndRegex_),p=u&&n.match(t.blanklineStartRegex_);return d||p?5:c||u?4:i&&!s&&l?3:s||l?2:i||o?1:0}for(var a=1;a=p&&(p=g,c=r,u=i,d=o)}e[a-1][1]!=c&&(c?e[a-1][1]=c:(e.splice(a-1,1),a--),e[a][1]=u,d?e[a+1][1]=d:(e.splice(a+1,1),a--))}a++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var n=!1,a=[],r=0,i=null,o=0,s=!1,l=!1,c=!1,u=!1;o0?a[r-1]:-1,c=u=!1),n=!0)),o++;n&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var n,a=0,r=0,i=0,o="",s="";a1?(0!==r&&0!==i&&(0!==(n=this.diff_commonPrefix(s,o))&&(a-r-i>0&&0==e[a-r-i-1][0]?e[a-r-i-1][1]+=s.substring(0,n):(e.splice(0,0,new t.Diff(0,s.substring(0,n))),a++),s=s.substring(n),o=o.substring(n)),0!==(n=this.diff_commonSuffix(s,o))&&(e[a][1]=s.substring(s.length-n)+e[a][1],s=s.substring(0,s.length-n),o=o.substring(0,o.length-n))),a-=r+i,e.splice(a,r+i),o.length&&(e.splice(a,0,new t.Diff(-1,o)),a++),s.length&&(e.splice(a,0,new t.Diff(1,s)),a++),a++):0!==a&&0==e[a-1][0]?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,i=0,r=0,o="",s=""}""===e[e.length-1][1]&&e.pop();var l=!1;for(a=1;at));n++)i=a,o=r;return e.length!=n&&-1===e[n][0]?o:o+(t-i)},t.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,a=//g,i=/\n/g,o=0;o");switch(s){case 1:t[o]=''+l+"";break;case -1:t[o]=''+l+"";break;case 0:t[o]=""+l+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw Error("Pattern too long for this browser.");var a,r,i,o=this.match_alphabet_(t),s=this;function l(e,a){var r=e/t.length,i=Math.abs(n-a);return s.Match_Distance?r+i/s.Match_Distance:i?1:r}var c=this.Match_Threshold,u=e.indexOf(t,n);-1!=u&&(c=Math.min(l(0,u),c),-1!=(u=e.lastIndexOf(t,n+t.length))&&(c=Math.min(l(0,u),c)));var d=1<=m;h--){var E=o[e.charAt(h-1)];if(0===g?b[h]=(b[h+1]<<1|1)&E:b[h]=(b[h+1]<<1|1)&E|((i[h+1]|i[h])<<1|1)|i[h+1],b[h]&d){var y=l(g,h-1);if(y<=c){if(c=y,(u=h-1)>n)m=Math.max(1,2*n-u);else break}}}if(l(g+1,n)>c)break;i=b}return u},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===n&&void 0===a)i=e,r=this.diff_text1(i);else if("string"==typeof e&&n&&"object"==typeof n&&void 0===a)r=e,i=n;else if("string"==typeof e&&"string"==typeof n&&a&&"object"==typeof a)r=e,i=a;else throw Error("Unknown call format to patch_make.");if(0===i.length)return[];for(var r,i,o=[],s=new t.patch_obj,l=0,c=0,u=0,d=r,p=r,g=0;g=2*this.Patch_Margin&&l&&(this.patch_addContext_(s,d),o.push(s),s=new t.patch_obj,l=0,d=p,c=u)}1!==m&&(c+=f.length),-1!==m&&(u+=f.length)}return l&&(this.patch_addContext_(s,d),o.push(s)),o},t.prototype.patch_deepCopy=function(e){for(var n=[],a=0;athis.Match_MaxBits?-1!=(u=this.match_main(t,s.substring(0,this.Match_MaxBits),o))&&(-1==(l=this.match_main(t,s.substring(s.length-this.Match_MaxBits),o+s.length-this.Match_MaxBits))||u>=l)&&(u=-1):u=this.match_main(t,s,o),-1==u)r[i]=!1,a-=e[i].length2-e[i].length1;else if(r[i]=!0,a=u-o,d=-1==l?t.substring(u,u+s.length):t.substring(u,l+this.Match_MaxBits),s==d)t=t.substring(0,u)+this.diff_text2(e[i].diffs)+t.substring(u+s.length);else{var c=this.diff_main(s,d,!1);if(s.length>this.Match_MaxBits&&this.diff_levenshtein(c)/s.length>this.Patch_DeleteThreshold)r[i]=!1;else{this.diff_cleanupSemanticLossless(c);for(var u,d,p,g=0,m=0;mo[0][1].length){var s=n-o[0][1].length;o[0][1]=a.substring(o[0][1].length)+o[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(0==(o=(i=e[e.length-1]).diffs).length||0!=o[o.length-1][0])o.push(new t.Diff(0,a)),i.length1+=n,i.length2+=n;else if(n>o[o.length-1][1].length){var s=n-o[o.length-1][1].length;o[o.length-1][1]+=a.substring(0,s),i.length1+=s,i.length2+=s}return a},t.prototype.patch_splitMax=function(e){for(var n=this.Match_MaxBits,a=0;a2*n?(l.length1+=d.length,i+=d.length,c=!1,l.diffs.push(new t.Diff(u,d)),r.diffs.shift()):(d=d.substring(0,n-l.length1-this.Patch_Margin),l.length1+=d.length,i+=d.length,0===u?(l.length2+=d.length,o+=d.length):c=!1,l.diffs.push(new t.Diff(u,d)),d==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(d.length))}s=(s=this.diff_text2(l.diffs)).substring(s.length-this.Patch_Margin);var p=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);""!==p&&(l.length1+=p.length,l.length2+=p.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=p:l.diffs.push(new t.Diff(0,p))),c||e.splice(++a,0,l)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n4&&m.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?f=o+(n=t.slice(5).replace(l,d)).charAt(0).toUpperCase()+n.slice(1):(g=(p=t).slice(4),t=l.test(g)?p:("-"!==(g=g.replace(c,u)).charAt(0)&&(g="-"+g),o+g)),b=r),new b(f,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},94312:function(e,t,n){"use strict";var a=n(44748),r=n(41924),i=n(4701),o=n(42222),s=n(50339),l=n(28046);e.exports=a([i,r,o,s,l])},50339:function(e,t,n){"use strict";var a=n(34341),r=n(22648),i=a.booleanish,o=a.number,s=a.spaceSeparated;e.exports=r({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:i,ariaAutoComplete:null,ariaBusy:i,ariaChecked:i,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:i,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:i,ariaFlowTo:s,ariaGrabbed:i,ariaHasPopup:null,ariaHidden:i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:i,ariaMultiLine:i,ariaMultiSelectable:i,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:i,ariaReadOnly:i,ariaRelevant:null,ariaRequired:i,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:i,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},28046:function(e,t,n){"use strict";var a=n(34341),r=n(22648),i=n(39550),o=a.boolean,s=a.overloadedBoolean,l=a.booleanish,c=a.number,u=a.spaceSeparated,d=a.commaSeparated;e.exports=r({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:u,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:u,height:c,hidden:o,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:u,itemRef:u,itemScope:o,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:u,required:o,reversed:o,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:c,security:null,unselectable:null}})},39550:function(e,t,n){"use strict";var a=n(37223);e.exports=function(e,t){return a(e,t.toLowerCase())}},37223:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},22648:function(e,t,n){"use strict";var a=n(43216),r=n(43363),i=n(37812);e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},p={};for(t in c)n=new i(t,u(l,t),c[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,p[a(t)]=t,p[a(n.attribute)]=t;return new r(d,p,o)}},37812:function(e,t,n){"use strict";var a=n(68018),r=n(34341);e.exports=s,s.prototype=new a,s.prototype.defined=!0;var i=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=i.length;function s(e,t,n,s){var l,c,u,d=-1;for(s&&(this.space=s),a.call(this,e,t);++d=97&&t<=122||t>=65&&t<=90}},47661:function(e,t,n){"use strict";var a=n(82596),r=n(54329);e.exports=function(e){return a(e)||r(e)}},54329:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},50692:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},70776:function(e,t,n){var a,r="__lodash_hash_undefined__",i=1/0,o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,l=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,d=/^\[object .+?Constructor\]$/,p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,g="object"==typeof self&&self&&self.Object===Object&&self,m=p||g||Function("return this")(),f=Array.prototype,b=Function.prototype,h=Object.prototype,E=m["__core-js_shared__"],y=(a=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",S=b.toString,v=h.hasOwnProperty,T=h.toString,_=RegExp("^"+S.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=m.Symbol,w=f.splice,R=P(m,"Map"),I=P(Object,"create"),k=A?A.prototype:void 0,N=k?k.toString:void 0;function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1},x.prototype.set=function(e,t){var n=this.__data__,a=L(n,e);return a<0?n.push([e,t]):n[a][1]=t,this},O.prototype.clear=function(){this.__data__={hash:new C,map:new(R||x),string:new C}},O.prototype.delete=function(e){return D(this,e).delete(e)},O.prototype.get=function(e){return D(this,e).get(e)},O.prototype.has=function(e){return D(this,e).has(e)},O.prototype.set=function(e,t){return D(this,e).set(e,t),this};var M=F(function(e){e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if($(e))return N?N.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(t);var t,n=[];return l.test(e)&&n.push(""),e.replace(c,function(e,t,a,r){n.push(a?r.replace(u,"$1"):t||e)}),n});function F(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var o=e.apply(this,a);return n.cache=i.set(r,o),o};return n.cache=new(F.Cache||O),n}F.Cache=O;var U=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $(e){return"symbol"==typeof e||!!e&&"object"==typeof e&&"[object Symbol]"==T.call(e)}e.exports=function(e,t,n){var a=null==e?void 0:function(e,t){var n;t=!function(e,t){if(U(e))return!1;var n=typeof e;return!!("number"==n||"symbol"==n||"boolean"==n||null==e||$(e))||s.test(e)||!o.test(e)||null!=t&&e in Object(t)}(t,e)?U(n=t)?n:M(n):[t];for(var a=0,r=t.length;null!=e&&as))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=2&n?new eh:void 0;for(i.set(e,t),i.set(t,e);++u-1&&u%1==0&&u-1},ef.prototype.set=function(e,t){var n=this.__data__,a=ey(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this},eb.prototype.clear=function(){this.size=0,this.__data__={hash:new em,map:new(en||ef),string:new em}},eb.prototype.delete=function(e){var t=eA(this,e).delete(e);return this.size-=t?1:0,t},eb.prototype.get=function(e){return eA(this,e).get(e)},eb.prototype.has=function(e){return eA(this,e).has(e)},eb.prototype.set=function(e,t){var n=eA(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this},eh.prototype.add=eh.prototype.push=function(e){return this.__data__.set(e,o),this},eh.prototype.has=function(e){return this.__data__.has(e)},eE.prototype.clear=function(){this.__data__=new ef,this.size=0},eE.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},eE.prototype.get=function(e){return this.__data__.get(e)},eE.prototype.has=function(e){return this.__data__.has(e)},eE.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ef){var a=n.__data__;if(!en||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new eb(a)}return n.set(e,t),this.size=n.size,this};var eR=Q?function(e){return null==e?[]:function(e,t){for(var n=-1,a=null==e?0:e.length,r=0,i=[];++n-1&&e%1==0&&e<=9007199254740991}function eP(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eM(e){return null!=e&&"object"==typeof e}var eF=D?function(e){return D(e)}:function(e){return eM(e)&&eD(e.length)&&!!w[eS(e)]};e.exports=function(e,t){return function e(t,n,a,r,i){return t===n||(null!=t&&null!=n&&(eM(t)||eM(n))?function(e,t,n,a,r,i){var o=ex(e),p=ex(t),b=o?l:eI(e),S=p?l:eI(t);b=b==s?f:b,S=S==s?f:S;var _=b==f,A=S==f,w=b==S;if(w&&eO(e)){if(!eO(t))return!1;o=!0,_=!1}if(w&&!_)return i||(i=new eE),o||eF(e)?eT(e,t,n,a,r,i):function(e,t,n,a,r,i,o){switch(n){case T:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case v:if(e.byteLength!=t.byteLength||!i(new q(e),new q(t)))break;return!0;case c:case u:case m:return eN(+e,+t);case d:return e.name==t.name&&e.message==t.message;case h:case y:return e==t+"";case g:var s=P;case E:var l=1&a;if(s||(s=M),e.size!=t.size&&!l)break;var p=o.get(e);if(p)return p==t;a|=2,o.set(e,t);var f=eT(s(e),s(t),a,r,i,o);return o.delete(e),f;case"[object Symbol]":if(eg)return eg.call(e)==eg.call(t)}return!1}(e,t,b,n,a,r,i);if(!(1&n)){var R=_&&z.call(e,"__wrapped__"),I=A&&z.call(t,"__wrapped__");if(R||I){var k=R?e.value():e,N=I?t.value():t;return i||(i=new eE),r(k,N,n,a,i)}}return!!w&&(i||(i=new eE),function(e,t,n,a,r,i){var o=1&n,s=e_(e),l=s.length;if(l!=e_(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:z.call(t,u)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var g=o;++c(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),c={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xa0",quot:"“"},u=["style","script"],d=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,p=/mailto:/i,g=/\n{2,}$/,m=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,f=/^ *> ?/gm,b=/^ {2,}\n/,h=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,E=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,y=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,S=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,v=/^(?:\n *)*\n/,T=/\r\n?/g,_=/^\[\^([^\]]+)](:.*)\n/,A=/^\[\^([^\]]+)]/,w=/\f/g,R=/^\s*?\[(x|\s)\]/,I=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,k=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,N=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,C=/&([a-zA-Z]+);/g,x=/^)/,O=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,L=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,D=/^\{.*\}$/,P=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,M=/^<([^ >]+@[^ >]+)>/,F=/^<([^ >]+:\/[^ >]+)>/,U=/-([a-z])?/gi,B=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,$=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,G=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,z=/^\[([^\]]*)\] ?\[([^\]]*)\]/,H=/(\[|\])/g,j=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,V=/\t/g,W=/^ *\| */,Z=/(^ *\||\| *$)/g,q=/ *$/,Y=/^ *:-+: *$/,K=/^ *:-+ *$/,X=/^ *-+: *$/,Q=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,J=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,ee=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,et=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,en=/^\\([^0-9A-Za-z\s])/,ea=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,er=/^\n+/,ei=/^([ \t]*)/,eo=/\\([^\\])/g,es=/ *\n+$/,el=/(?:^|\n)( *)$/,ec="(?:\\d+\\.)",eu="(?:[*+-])";function ed(e){return"( *)("+(1===e?ec:eu)+") +"}let ep=ed(1),eg=ed(2);function em(e){return RegExp("^"+(1===e?ep:eg))}let ef=em(1),eb=em(2);function eh(e){return RegExp("^"+(1===e?ep:eg)+"[^\\n]*(?:\\n(?!\\1"+(1===e?ec:eu)+" )[^\\n]*)*(\\n|$)","gm")}let eE=eh(1),ey=eh(2);function eS(e){let t=1===e?ec:eu;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}let ev=eS(1),eT=eS(2);function e_(e,t){let n=1===t,a=n?ev:eT,i=n?eE:ey,o=n?ef:eb;return{t(e,t,n){let r=el.exec(n);return r&&(t.o||!t._&&!t.u)?a.exec(e=r[1]+e):null},i:r.HIGH,l(e,t,a){let r=n?+e[2]:void 0,s=e[0].replace(g,"\n").match(i),l=!1;return{p:s.map(function(e,n){let r;let i=o.exec(e)[0].length,c=RegExp("^ {1,"+i+"}","gm"),u=e.replace(c,"").replace(o,""),d=n===s.length-1,p=-1!==u.indexOf("\n\n")||d&&l;l=p;let g=a._,m=a.o;a.o=!0,p?(a._=!1,r=u.replace(es,"\n\n")):(a._=!0,r=u.replace(es,""));let f=t(r,a);return a._=g,a.o=m,f}),m:n,g:r}},h:(t,n,a)=>e(t.m?"ol":"ul",{key:a.k,start:t.g},t.p.map(function(t,r){return e("li",{key:r},n(t,a))}))}}let eA=/^\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,ew=/^!\[([^\]]*)]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,eR=[m,E,y,I,k,x,B,eE,ev,ey,eT],eI=[...eR,/^[^\n]+(?: \n|\n{2,})/,N,L];function ek(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function eN(e){return X.test(e)?"right":Y.test(e)?"center":K.test(e)?"left":null}function eC(e,t,n){let a=n.v;n.v=!0;let r=t(e.trim(),n);n.v=a;let i=[[]];return r.forEach(function(e,t){"tableSeparator"===e.type?0!==t&&t!==r.length-1&&i.push([]):("text"!==e.type||null!=r[t+1]&&"tableSeparator"!==r[t+1].type||(e.$=e.$.replace(q,"")),i[i.length-1].push(e))}),i}function ex(e,t,n){n._=!0;let a=eC(e[1],t,n),r=e[2].replace(Z,"").split("|").map(eN),i=e[3].trim().split("\n").map(function(e){return eC(e,t,n)});return n._=!1,{S:r,A:i,L:a,type:"table"}}function eO(e,t){return null==e.S[t]?{}:{textAlign:e.S[t]}}function eL(e){return function(t,n){return n._?e.exec(t):null}}function eD(e){return function(t,n){return n._||n.u?e.exec(t):null}}function eP(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function eM(e){return function(t){return e.exec(t)}}function eF(e,t,n){if(t._||t.u||n&&!n.endsWith("\n"))return null;let a="";e.split("\n").every(e=>!eR.some(t=>t.test(e))&&(a+=e+"\n",e.trim()));let r=a.trimEnd();return""==r?null:[a,r]}function eU(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch(e){return null}return e}function eB(e){return e.replace(eo,"$1")}function e$(e,t,n){let a=n._||!1,r=n.u||!1;n._=!0,n.u=!0;let i=e(t,n);return n._=a,n.u=r,i}function eG(e,t,n){return n._=!1,e(t+"\n\n",n)}let ez=(e,t,n)=>({$:e$(t,e[1],n)});function eH(){return{}}function ej(){return null}function eV(e,t,n){let a=e,r=t.split(".");for(;r.length&&void 0!==(a=a[r[0]]);)r.shift();return a||n}(a=r||(r={}))[a.MAX=0]="MAX",a[a.HIGH=1]="HIGH",a[a.MED=2]="MED",a[a.LOW=3]="LOW",a[a.MIN=4]="MIN",t.Z=e=>{let{children:t,options:n}=e,a=function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a=0||(r[n]=e[n]);return r}(e,s);return i.cloneElement(function(e,t={}){let n;t.overrides=t.overrides||{},t.slugify=t.slugify||ek,t.namedCodesToUnicode=t.namedCodesToUnicode?o({},c,t.namedCodesToUnicode):c;let a=t.createElement||i.createElement;function s(e,n,...r){let i=eV(t.overrides,`${e}.props`,{});return a(function(e,t){let n=eV(t,e);return n?"function"==typeof n||"object"==typeof n&&"render"in n?n:eV(t,`${e}.component`,e):e}(e,t.overrides),o({},n,i,{className:function(...e){return e.filter(Boolean).join(" ")}(null==n?void 0:n.className,i.className)||void 0}),...r)}function g(e){let n,a=!1;t.forceInline?a=!0:t.forceBlock||(a=!1===j.test(e));let r=eo(X(a?e:`${e.trimEnd().replace(er,"")} - -`,{_:a}));for(;"string"==typeof r[r.length-1]&&!r[r.length-1].trim();)r.pop();if(null===t.wrapper)return r;let o=t.wrapper||(a?"span":"div");if(r.length>1||t.forceWrapper)n=r;else{if(1===r.length)return"string"==typeof(n=r[0])?s("span",{key:"outer"},n):n;n=null}return i.createElement(o,{key:"outer"},n)}function Z(e){let t=e.match(d);return t?t.reduce(function(e,t,n){let a=t.indexOf("=");if(-1!==a){var r,o;let s=(-1!==(r=t.slice(0,a)).indexOf("-")&&null===r.match(O)&&(r=r.replace(U,function(e,t){return t.toUpperCase()})),r).trim(),c=function(e){let t=e[0];return('"'===t||"'"===t)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e}(t.slice(a+1).trim()),u=l[s]||s,d=e[u]=(o=c,"style"===s?o.split(/;\s?/).reduce(function(e,t){let n=t.slice(0,t.indexOf(":"));return e[n.replace(/(-[a-z])/g,e=>e[1].toUpperCase())]=t.slice(n.length+1).trim(),e},{}):"href"===s?eU(o):(o.match(D)&&(o=o.slice(1,o.length-1)),"true"===o||"false"!==o&&o));"string"==typeof d&&(N.test(d)||L.test(d))&&(e[u]=i.cloneElement(g(d.trim()),{key:n}))}else"style"!==t&&(e[l[t]||t]=!0);return e},{}):null}let q=[],Y={},K={blockQuote:{t:eP(m),i:r.HIGH,l:(e,t,n)=>({$:t(e[0].replace(f,""),n)}),h:(e,t,n)=>s("blockquote",{key:n.k},t(e.$,n))},breakLine:{t:eM(b),i:r.HIGH,l:eH,h:(e,t,n)=>s("br",{key:n.k})},breakThematic:{t:eP(h),i:r.HIGH,l:eH,h:(e,t,n)=>s("hr",{key:n.k})},codeBlock:{t:eP(y),i:r.MAX,l:e=>({$:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(e,t,n)=>s("pre",{key:n.k},s("code",o({},e.I,{className:e.M?`lang-${e.M}`:""}),e.$))},codeFenced:{t:eP(E),i:r.MAX,l:e=>({I:Z(e[3]||""),$:e[4],M:e[2]||void 0,type:"codeBlock"})},codeInline:{t:eD(S),i:r.LOW,l:e=>({$:e[2]}),h:(e,t,n)=>s("code",{key:n.k},e.$)},footnote:{t:eP(_),i:r.MAX,l:e=>(q.push({O:e[2],B:e[1]}),{}),h:ej},footnoteReference:{t:eL(A),i:r.HIGH,l:e=>({$:e[1],R:`#${t.slugify(e[1])}`}),h:(e,t,n)=>s("a",{key:n.k,href:eU(e.R)},s("sup",{key:n.k},e.$))},gfmTask:{t:eL(R),i:r.HIGH,l:e=>({T:"x"===e[1].toLowerCase()}),h:(e,t,n)=>s("input",{checked:e.T,key:n.k,readOnly:!0,type:"checkbox"})},heading:{t:eP(I),i:r.HIGH,l:(e,n,a)=>({$:e$(n,e[2],a),j:t.slugify(e[2]),C:e[1].length}),h:(e,t,n)=>s(`h${e.C}`,{id:e.j,key:n.k},t(e.$,n))},headingSetext:{t:eP(k),i:r.MAX,l:(e,t,n)=>({$:e$(t,e[1],n),C:"="===e[2]?1:2,type:"heading"})},htmlComment:{t:eM(x),i:r.HIGH,l:()=>({}),h:ej},image:{t:eD(ew),i:r.HIGH,l:e=>({D:e[1],R:eB(e[2]),N:e[3]}),h:(e,t,n)=>s("img",{key:n.k,alt:e.D||void 0,title:e.N||void 0,src:eU(e.R)})},link:{t:eL(eA),i:r.LOW,l:(e,t,n)=>({$:function(e,t,n){let a=n._||!1,r=n.u||!1;n._=!1,n.u=!0;let i=e(t,n);return n._=a,n.u=r,i}(t,e[1],n),R:eB(e[2]),N:e[3]}),h:(e,t,n)=>s("a",{key:n.k,href:eU(e.R),title:e.N},t(e.$,n))},linkAngleBraceStyleDetector:{t:eL(F),i:r.MAX,l:e=>({$:[{$:e[1],type:"text"}],R:e[1],type:"link"})},linkBareUrlDetector:{t:(e,t)=>t.Z?null:eL(P)(e,t),i:r.MAX,l:e=>({$:[{$:e[1],type:"text"}],R:e[1],N:void 0,type:"link"})},linkMailtoDetector:{t:eL(M),i:r.MAX,l(e){let t=e[1],n=e[1];return p.test(n)||(n="mailto:"+n),{$:[{$:t.replace("mailto:",""),type:"text"}],R:n,type:"link"}}},orderedList:e_(s,1),unorderedList:e_(s,2),newlineCoalescer:{t:eP(v),i:r.LOW,l:eH,h:()=>"\n"},paragraph:{t:eF,i:r.LOW,l:ez,h:(e,t,n)=>s("p",{key:n.k},t(e.$,n))},ref:{t:eL($),i:r.MAX,l:e=>(Y[e[1]]={R:e[2],N:e[4]},{}),h:ej},refImage:{t:eD(G),i:r.MAX,l:e=>({D:e[1]||void 0,F:e[2]}),h:(e,t,n)=>s("img",{key:n.k,alt:e.D,src:eU(Y[e.F].R),title:Y[e.F].N})},refLink:{t:eL(z),i:r.MAX,l:(e,t,n)=>({$:t(e[1],n),P:t(e[0].replace(H,"\\$1"),n),F:e[2]}),h:(e,t,n)=>Y[e.F]?s("a",{key:n.k,href:eU(Y[e.F].R),title:Y[e.F].N},t(e.$,n)):s("span",{key:n.k},t(e.P,n))},table:{t:eP(B),i:r.HIGH,l:ex,h:(e,t,n)=>s("table",{key:n.k},s("thead",null,s("tr",null,e.L.map(function(a,r){return s("th",{key:r,style:eO(e,r)},t(a,n))}))),s("tbody",null,e.A.map(function(a,r){return s("tr",{key:r},a.map(function(a,r){return s("td",{key:r,style:eO(e,r)},t(a,n))}))})))},tableSeparator:{t:function(e,t){return t.v?W.exec(e):null},i:r.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:eM(ea),i:r.MIN,l:e=>({$:e[0].replace(C,(e,n)=>t.namedCodesToUnicode[n]?t.namedCodesToUnicode[n]:e)}),h:e=>e.$},textBolded:{t:eD(Q),i:r.MED,l:(e,t,n)=>({$:t(e[2],n)}),h:(e,t,n)=>s("strong",{key:n.k},t(e.$,n))},textEmphasized:{t:eD(J),i:r.LOW,l:(e,t,n)=>({$:t(e[2],n)}),h:(e,t,n)=>s("em",{key:n.k},t(e.$,n))},textEscaped:{t:eD(en),i:r.HIGH,l:e=>({$:e[1],type:"text"})},textMarked:{t:eD(ee),i:r.LOW,l:ez,h:(e,t,n)=>s("mark",{key:n.k},t(e.$,n))},textStrikethroughed:{t:eD(et),i:r.LOW,l:ez,h:(e,t,n)=>s("del",{key:n.k},t(e.$,n))}};!0!==t.disableParsingRawHTML&&(K.htmlBlock={t:eM(N),i:r.HIGH,l(e,t,n){let[,a]=e[3].match(ei),r=RegExp(`^${a}`,"gm"),i=e[3].replace(r,""),o=eI.some(e=>e.test(i))?eG:e$,s=e[1].toLowerCase(),l=-1!==u.indexOf(s);n.Z=n.Z||"a"===s;let c=l?e[3]:o(t,i,n);return n.Z=!1,{I:Z(e[2]),$:c,G:l,H:l?s:e[1]}},h:(e,t,n)=>s(e.H,o({key:n.k},e.I),e.G?e.$:t(e.$,n))},K.htmlSelfClosing={t:eM(L),i:r.HIGH,l:e=>({I:Z(e[2]||""),H:e[1]}),h:(e,t,n)=>s(e.H,o({},e.I,{key:n.k}))});let X=((n=Object.keys(K)).sort(function(e,t){let n=K[e].i,a=K[t].i;return n!==a?n-a:e=55296&&n<=57343||n>1114111?(A(7,D),T=u(65533)):T in r?(A(6,D),T=r[T]):(R="",((i=T)>=1&&i<=8||11===i||i>=13&&i<=31||i>=127&&i<=159||i>=64976&&i<=65007||(65535&i)==65535||(65535&i)==65534)&&A(6,D),T>65535&&(T-=65536,R+=u(T>>>10|55296),T=56320|1023&T),T=R+u(T))):C!==g&&A(4,D)),T?(ee(),O=J(),Z=P-1,Y+=P-N+1,Q.push(T),L=J(),L.offset++,B&&B.call(z,T,{start:O,end:L},e.slice(N-1,P)),O=L):(X+=S=e.slice(N-1,P),Y+=S.length,Z=P-1)}else 10===v&&(K++,q++,Y=0),v==v?(X+=u(v),Y++):ee();return Q.join("");function J(){return{line:K,column:Y,offset:Z+(j.offset||0)}}function ee(){X&&(Q.push(X),U&&U.call(G,X,{start:O,end:J()}),X="")}}(e,o)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},g="named",m="hexadecimal",f="decimal",b={};b[m]=16,b[f]=10;var h={};h[g]=s,h[f]=i,h[m]=o;var E={};E[1]="Named character references must be terminated by a semicolon",E[2]="Numeric character references must be terminated by a semicolon",E[3]="Named character references cannot be empty",E[4]="Numeric character references cannot be empty",E[5]="Named character references must be known",E[6]="Numeric character references cannot be disallowed",E[7]="Numeric character references cannot be outside the permissible Unicode range"},97611:function(e,t,n){"use strict";var a=n(86054);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,o){if(o!==a){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},79497:function(e,t,n){e.exports=n(97611)()},86054:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},41492:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,a=arguments.length;n0&&this.handleMarkers(T);var R=this.editor.$options;u.editorOptions.forEach(function(t){R.hasOwnProperty(t)?e.editor.setOption(t,e.props[t]):e.props[t]&&console.warn("ReactAce: editor option ".concat(t," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(S)&&S.forEach(function(t){"string"==typeof t.exec?e.editor.commands.bindKey(t.bindKey,t.exec):e.editor.commands.addCommand(t)}),E&&this.editor.setKeyboardHandler("ace/keyboard/"+E),n&&(this.refEditor.className+=" "+n),y&&y(this.editor),this.editor.resize(),o&&this.editor.focus()},t.prototype.componentDidUpdate=function(e){for(var t=this.props,n=0;n0&&e.handleMarkers(v,t);for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(function(e){if(0===e.length||1===e.length)return e;var t,n=e.join(".");return p[n]||(p[n]=0===(t=e.length)||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0),p[n]})(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return d(d({},e),n[t])},t)}(s.className,Object.assign({},s.style,void 0===r?{}:r),a)})}else b=d(d({},s),{},{className:s.className.join(" ")});var v=h(n.children);return l.createElement(g,(0,c.Z)({key:o},b),v)}}({node:e,stylesheet:n,useInlineStyles:a,key:"code-segement".concat(t)})})}function T(e){return e&&void 0!==e.highlightAuto}var _=n(67093),A=(a=n.n(_)(),r={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},function(e){var t=e.language,n=e.children,s=e.style,c=void 0===s?r:s,u=e.customStyle,d=void 0===u?{}:u,p=e.codeTagProps,m=void 0===p?{className:t?"language-".concat(t):void 0,style:f(f({},c['code[class*="language-"]']),c['code[class*="language-'.concat(t,'"]')])}:p,_=e.useInlineStyles,A=void 0===_||_,w=e.showLineNumbers,R=void 0!==w&&w,I=e.showInlineLineNumbers,k=void 0===I||I,N=e.startingLineNumber,C=void 0===N?1:N,x=e.lineNumberContainerStyle,O=e.lineNumberStyle,L=void 0===O?{}:O,D=e.wrapLines,P=e.wrapLongLines,M=void 0!==P&&P,F=e.lineProps,U=void 0===F?{}:F,B=e.renderer,$=e.PreTag,G=void 0===$?"pre":$,z=e.CodeTag,H=void 0===z?"code":z,j=e.code,V=void 0===j?(Array.isArray(n)?n[0]:n)||"":j,W=e.astGenerator,Z=(0,i.Z)(e,g);W=W||a;var q=R?l.createElement(h,{containerStyle:x,codeStyle:m.style||{},numberStyle:L,startingLineNumber:C,codeString:V}):null,Y=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},K=T(W)?"hljs":"prismjs",X=A?Object.assign({},Z,{style:Object.assign({},Y,d)}):Object.assign({},Z,{className:Z.className?"".concat(K," ").concat(Z.className):K,style:Object.assign({},d)});if(M?m.style=f(f({},m.style),{},{whiteSpace:"pre-wrap"}):m.style=f(f({},m.style),{},{whiteSpace:"pre"}),!W)return l.createElement(G,X,q,l.createElement(H,m,V));(void 0===D&&B||M)&&(D=!0),B=B||v;var Q=[{type:"text",value:V}],J=function(e){var t=e.astGenerator,n=e.language,a=e.code,r=e.defaultCodeValue;if(T(t)){var i=-1!==t.listLanguages().indexOf(n);return"text"===n?{value:r,language:"text"}:i?t.highlight(n,a):t.highlightAuto(a)}try{return n&&"text"!==n?{value:t.highlight(a,n)}:{value:r}}catch(e){return{value:r}}}({astGenerator:W,language:t,code:V,defaultCodeValue:Q});null===J.language&&(J.value=Q);var ee=J.value.length+C,et=function(e,t,n,a,r,i,s,l,c){var u,d=function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r2&&void 0!==arguments[2]?arguments[2]:[];return t||o.length>0?function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return S({children:e,lineNumber:t,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:r,lineProps:n,className:i,showLineNumbers:a,wrapLongLines:c})}(e,i,o):function(e,t){if(a&&t&&r){var n=y(l,t,s);e.unshift(E(t,n))}return e}(e,i)}for(;m code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}}},87547:function(e,t,n){"use strict";var a,r,i="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof n.g?n.g:{},o=(r=(a="Prism"in i)?i.Prism:void 0,function(){a?i.Prism=r:delete i.Prism,a=void 0,r=void 0});i.Prism={manual:!0,disableWorkerMessageHandler:!0};var s=n(76276),l=n(64295),c=n(30669),u=n(18998),d=n(28181),p=n(47476),g=n(619);o();var m={}.hasOwnProperty;function f(){}f.prototype=c;var b=new f;function h(e){if("function"!=typeof e||!e.displayName)throw Error("Expected `function` for `grammar`, got `"+e+"`");void 0===b.languages[e.displayName]&&e(b)}e.exports=b,b.highlight=function(e,t){var n,a=c.highlight;if("string"!=typeof e)throw Error("Expected `string` for `value`, got `"+e+"`");if("Object"===b.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw Error("Expected `string` for `name`, got `"+t+"`");if(m.call(b.languages,t))n=b.languages[t];else throw Error("Unknown language: `"+t+"` is not registered")}return a.call(this,e,n,t)},b.register=h,b.alias=function(e,t){var n,a,r,i,o=b.languages,s=e;for(n in t&&((s={})[e]=t),s)for(r=(a="string"==typeof(a=s[n])?[a]:a).length,i=-1;++i]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}e.exports=t,t.displayName="abap",t.aliases=[]},38650:function(e){"use strict";function t(e){var t;t="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)",e.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+t+"|<"+t+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}}e.exports=t,t.displayName="abnf",t.aliases=[]},1930:function(e){"use strict";function t(e){e.languages.actionscript=e.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),e.languages.actionscript["class-name"].alias="function",delete e.languages.actionscript.parameter,delete e.languages.actionscript["literal-property"],e.languages.markup&&e.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:e.languages.markup}})}e.exports=t,t.displayName="actionscript",t.aliases=[]},88547:function(e){"use strict";function t(e){e.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}e.exports=t,t.displayName="ada",t.aliases=[]},91015:function(e){"use strict";function t(e){e.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}}e.exports=t,t.displayName="agda",t.aliases=[]},28860:function(e){"use strict";function t(e){e.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}e.exports=t,t.displayName="al",t.aliases=[]},41517:function(e){"use strict";function t(e){e.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},e.languages.g4=e.languages.antlr4}e.exports=t,t.displayName="antlr4",t.aliases=["g4"]},58025:function(e){"use strict";function t(e){e.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}e.exports=t,t.displayName="apacheconf",t.aliases=[]},80048:function(e,t,n){"use strict";var a=n(72099);function r(e){e.register(a),function(e){var t=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,n=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return t.source});function a(e){return RegExp(e.replace(//g,function(){return n}),"i")}var r={keyword:t,punctuation:/[()\[\]{};,:.<>]/};e.languages.apex={comment:e.languages.clike.comment,string:e.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:e.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:a(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:r},{pattern:a(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:r},{pattern:a(/(?=\s*\w+\s*[;=,(){:])/.source),inside:r}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:t,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}e.exports=r,r.displayName="apex",r.aliases=[]},14831:function(e){"use strict";function t(e){e.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}e.exports=t,t.displayName="apl",t.aliases=[]},3420:function(e){"use strict";function t(e){e.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}e.exports=t,t.displayName="applescript",t.aliases=[]},63085:function(e){"use strict";function t(e){e.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}e.exports=t,t.displayName="aql",t.aliases=[]},27470:function(e,t,n){"use strict";var a=n(71898);function r(e){e.register(a),e.languages.arduino=e.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),e.languages.ino=e.languages.arduino}e.exports=r,r.displayName="arduino",r.aliases=["ino"]},13774:function(e){"use strict";function t(e){e.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}e.exports=t,t.displayName="arff",t.aliases=[]},86941:function(e){"use strict";function t(e){!function(e){var t={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},n=e.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:t,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:t.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:t,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function a(e){e=e.split(" ");for(var t={},a=0,r=e.length;a>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}e.exports=t,t.displayName="asmatmel",t.aliases=[]},26250:function(e,t,n){"use strict";var a=n(20995);function r(e){e.register(a),e.languages.aspnet=e.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}e.exports=r,r.displayName="aspnet",r.aliases=[]},99333:function(e){"use strict";function t(e){e.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}e.exports=t,t.displayName="autohotkey",t.aliases=[]},62316:function(e){"use strict";function t(e){e.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}e.exports=t,t.displayName="autoit",t.aliases=[]},25243:function(e){"use strict";function t(e){!function(e){function t(e,t,n){return RegExp(e.replace(/<<(\d+)>>/g,function(e,n){return t[+n]}),n||"")}var n=/bool|clip|float|int|string|val/.source,a=[[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|")].join("|");e.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:t(/\b(?:<<0>>)\s+("?)\w+\1/.source,[n],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:t(/\b(?:<<0>>)\b/.source,[a],"i"),alias:"function"},"type-cast":{pattern:t(/\b(?:<<0>>)(?=\s*\()/.source,[n],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},e.languages.avs=e.languages.avisynth}(e)}e.exports=t,t.displayName="avisynth",t.aliases=["avs"]},45298:function(e){"use strict";function t(e){e.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},e.languages.avdl=e.languages["avro-idl"]}e.exports=t,t.displayName="avroIdl",t.aliases=[]},27524:function(e){"use strict";function t(e){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var r=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=a.variable[1].inside,o=0;o?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}e.exports=t,t.displayName="basic",t.aliases=[]},50671:function(e){"use strict";function t(e){var t,n,a,r;t=/%%?[~:\w]+%?|!\S+!/,n={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},a=/"(?:[\\"]"|[^"])*"(?!")/,r=/(?:\b|-)\d+\b/,e.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:a,parameter:n,variable:t,number:r,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:a,parameter:n,variable:t,number:r,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:a,parameter:n,variable:[t,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:r,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:a,parameter:n,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:t,number:r,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}e.exports=t,t.displayName="batch",t.aliases=[]},59898:function(e){"use strict";function t(e){e.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},e.languages.shortcode=e.languages.bbcode}e.exports=t,t.displayName="bbcode",t.aliases=["shortcode"]},12023:function(e){"use strict";function t(e){e.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},e.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=e.languages.bicep}e.exports=t,t.displayName="bicep",t.aliases=[]},12125:function(e){"use strict";function t(e){e.languages.birb=e.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),e.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}e.exports=t,t.displayName="birb",t.aliases=[]},14329:function(e,t,n){"use strict";var a=n(52942);function r(e){e.register(a),e.languages.bison=e.languages.extend("c",{}),e.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:e.languages.c}},comment:e.languages.c.comment,string:e.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}e.exports=r,r.displayName="bison",r.aliases=[]},44780:function(e){"use strict";function t(e){e.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},e.languages.rbnf=e.languages.bnf}e.exports=t,t.displayName="bnf",t.aliases=["rbnf"]},7363:function(e){"use strict";function t(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}e.exports=t,t.displayName="brainfuck",t.aliases=[]},35992:function(e){"use strict";function t(e){e.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},e.languages.brightscript["directive-statement"].inside.expression.inside=e.languages.brightscript}e.exports=t,t.displayName="brightscript",t.aliases=[]},44361:function(e){"use strict";function t(e){e.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="bro",t.aliases=[]},33044:function(e){"use strict";function t(e){e.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},e.languages.oscript=e.languages.bsl}e.exports=t,t.displayName="bsl",t.aliases=[]},52942:function(e){"use strict";function t(e){e.languages.c=e.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),e.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),e.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},e.languages.c.string],char:e.languages.c.char,comment:e.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:e.languages.c}}}}),e.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete e.languages.c.boolean}e.exports=t,t.displayName="c",t.aliases=[]},22417:function(e){"use strict";function t(e){e.languages.cfscript=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),e.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete e.languages.cfscript["class-name"],e.languages.cfc=e.languages.cfscript}e.exports=t,t.displayName="cfscript",t.aliases=[]},90957:function(e,t,n){"use strict";var a=n(71898);function r(e){e.register(a),e.languages.chaiscript=e.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[e.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),e.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),e.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}e.exports=r,r.displayName="chaiscript",r.aliases=[]},31928:function(e){"use strict";function t(e){e.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}e.exports=t,t.displayName="cil",t.aliases=[]},47476:function(e){"use strict";function t(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},39828:function(e){"use strict";function t(e){e.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}e.exports=t,t.displayName="clojure",t.aliases=[]},29689:function(e){"use strict";function t(e){e.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}e.exports=t,t.displayName="cmake",t.aliases=[]},80532:function(e){"use strict";function t(e){e.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}e.exports=t,t.displayName="cobol",t.aliases=[]},70695:function(e){"use strict";function t(e){var t,n;t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"},e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}e.exports=t,t.displayName="coffeescript",t.aliases=["coffee"]},14746:function(e){"use strict";function t(e){e.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},e.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:e.languages.concurnas},string:/[\s\S]+/}}}),e.languages.conc=e.languages.concurnas}e.exports=t,t.displayName="concurnas",t.aliases=["conc"]},30493:function(e){"use strict";function t(e){!function(e){for(var t=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,"[]"),e.languages.coq={comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return t})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(t),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}}(e)}e.exports=t,t.displayName="coq",t.aliases=[]},71898:function(e,t,n){"use strict";var a=n(52942);function r(e){var t,n;e.register(a),t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return t.source}),e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}e.exports=r,r.displayName="cpp",r.aliases=[]},77589:function(e,t,n){"use strict";var a=n(64935);function r(e){e.register(a),e.languages.crystal=e.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,e.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),e.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:e.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}e.exports=r,r.displayName="crystal",r.aliases=[]},20995:function(e){"use strict";function t(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,a){return RegExp(t(e,n),a||"")}function a(e,t){for(var n=0;n>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}var r={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function i(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var o=i(r.typeDeclaration),s=RegExp(i(r.type+" "+r.typeDeclaration+" "+r.contextual+" "+r.other)),l=i(r.typeDeclaration+" "+r.contextual+" "+r.other),c=i(r.type+" "+r.typeDeclaration+" "+r.other),u=a(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),d=a(/\((?:[^()]|<>)*\)/.source,2),p=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[p,u]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[l,g]),f=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,f]),h=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[u,d,f]),E=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[h]),y=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[E,m,f]),S={keyword:s,punctuation:/[<>()?,.:[\]]/},v=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,T=/"(?:\\.|[^\\"\r\n])*"/.source,_=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[p,y]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[p]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[o,g]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[p]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[y,c,p]),inside:S}],keyword:s,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[p]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[p]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[d]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[y,m]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[y]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[p,u]),inside:{function:n(/^<<0>>/.source,[p]),generic:{pattern:RegExp(u),alias:"class-name",inside:S}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,g,p,y,s.source,d,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,d]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:s,"class-name":{pattern:RegExp(y),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var A=T+"|"+v,w=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[A]),R=a(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[w]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,k=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,R]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[R]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var N=/:[^}\r\n]+/.source,C=a(t(/[^"'/()]|<<0>>|\(<>*\)/.source,[w]),2),x=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[C,N]),O=a(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[A]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[O,N]);function D(t,a){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[a,N]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[x]),lookbehind:!0,greedy:!0,inside:D(x,C)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:D(L,O)}],char:{pattern:RegExp(v),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(e)}e.exports=t,t.displayName="csharp",t.aliases=["dotnet","cs"]},54834:function(e,t,n){"use strict";var a=n(20995);function r(e){e.register(a),function(e){var t=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,n=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function a(e,a){for(var r=0;r/g,function(){return"(?:"+e+")"});return e.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+n+")").replace(//g,"(?:"+t+")")}var r=a(/\((?:[^()'"@/]|||)*\)/.source,2),i=a(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),o=a(/\{(?:[^{}'"@/]|||)*\}/.source,2),s=a(/<(?:[^<>'"@/]|||)*>/.source,2),l=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,c=/(?!\d)[^\s>\/=$<%]+/.source+l+/\s*\/?>/.source,u=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source)+c+"|"+a(/<\1/.source+l+/\s*>/.source+"(?:"+(/[^<]/.source+"|")+/<\/?(?!\1\b)/.source+c+"|)*"+/<\/\1\s*>/.source,2)+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var a={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},r={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:a,number:r,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:a,number:r})}(e)}e.exports=t,t.displayName="cssExtras",t.aliases=[]},28181:function(e){"use strict";function t(e){var t,n;t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css,(n=e.languages.markup)&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}e.exports=t,t.displayName="css",t.aliases=[]},32098:function(e){"use strict";function t(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}e.exports=t,t.displayName="csv",t.aliases=[]},95987:function(e){"use strict";function t(e){e.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}e.exports=t,t.displayName="cypher",t.aliases=[]},24011:function(e){"use strict";function t(e){e.languages.d=e.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),e.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),e.languages.insertBefore("d","keyword",{property:/\B@\w*/}),e.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}e.exports=t,t.displayName="d",t.aliases=[]},12081:function(e){"use strict";function t(e){var t,n,a;t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a={pattern:RegExp((n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}},e.languages.dart=e.languages.extend("clike",{"class-name":[a,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}e.exports=t,t.displayName="dart",t.aliases=[]},63247:function(e){"use strict";function t(e){e.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}}e.exports=t,t.displayName="dataweave",t.aliases=[]},13089:function(e){"use strict";function t(e){e.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}e.exports=t,t.displayName="dax",t.aliases=[]},73781:function(e){"use strict";function t(e){e.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},e.languages.dhall.string.inside.interpolation.inside.expression.inside=e.languages.dhall}e.exports=t,t.displayName="dhall",t.aliases=[]},6642:function(e){"use strict";function t(e){var t;e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]},Object.keys(t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"}).forEach(function(n){var a=t[n],r=[];/^\w+$/.test(n)||r.push(/\w+/.exec(n)[0]),"diff"===n&&r.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+a+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:r,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}e.exports=t,t.displayName="diff",t.aliases=[]},79709:function(e,t,n){"use strict";var a=n(29502);function r(e){var t,n;e.register(a),e.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/},t=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,n=e.languages["markup-templating"],e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"django",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"django")}),e.languages.jinja2=e.languages.django,e.hooks.add("before-tokenize",function(e){n.buildPlaceholders(e,"jinja2",t)}),e.hooks.add("after-tokenize",function(e){n.tokenizePlaceholders(e,"jinja2")})}e.exports=r,r.displayName="django",r.aliases=["jinja2"]},96493:function(e){"use strict";function t(e){e.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},e.languages["dns-zone"]=e.languages["dns-zone-file"]}e.exports=t,t.displayName="dnsZoneFile",t.aliases=[]},159:function(e){"use strict";function t(e){!function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return t}),a=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,r=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return a}),i={pattern:RegExp(a),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function s(e,t){return RegExp(e=e.replace(//g,function(){return r}).replace(//g,function(){return n}),t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:s(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[i,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:s(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:s(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:i,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},e.languages.dockerfile=e.languages.docker}(e)}e.exports=t,t.displayName="docker",t.aliases=["dockerfile"]},44455:function(e){"use strict";function t(e){!function(e){var t="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",n={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:e.languages.markup}};function a(e,n){return RegExp(e.replace(//g,function(){return t}),n)}e.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:a(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:n},"attr-value":{pattern:a(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:n},"attr-name":{pattern:a(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:n},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:a(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:n},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},e.languages.gv=e.languages.dot}(e)}e.exports=t,t.displayName="dot",t.aliases=["gv"]},65019:function(e){"use strict";function t(e){e.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}e.exports=t,t.displayName="ebnf",t.aliases=[]},38755:function(e){"use strict";function t(e){e.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}e.exports=t,t.displayName="editorconfig",t.aliases=[]},88087:function(e){"use strict";function t(e){e.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}e.exports=t,t.displayName="eiffel",t.aliases=[]},89540:function(e,t,n){"use strict";var a=n(29502);function r(e){e.register(a),e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"ejs",/<%(?!%)[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ejs")}),e.languages.eta=e.languages.ejs}e.exports=r,r.displayName="ejs",r.aliases=["eta"]},44673:function(e){"use strict";function t(e){e.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},e.languages.elixir.string.forEach(function(t){t.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:e.languages.elixir}}}})}e.exports=t,t.displayName="elixir",t.aliases=[]},49314:function(e){"use strict";function t(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}e.exports=t,t.displayName="elm",t.aliases=[]},17452:function(e,t,n){"use strict";var a=n(64935),r=n(29502);function i(e){e.register(a),e.register(r),e.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:e.languages.ruby}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"erb")})}e.exports=i,i.displayName="erb",i.aliases=[]},55247:function(e){"use strict";function t(e){e.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}e.exports=t,t.displayName="erlang",t.aliases=[]},37634:function(e,t,n){"use strict";var a=n(66757),r=n(29502);function i(e){e.register(a),e.register(r),e.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:e.languages.lua}},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"etlua",/<%[\s\S]+?%>/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"etlua")})}e.exports=i,i.displayName="etlua",i.aliases=[]},57978:function(e){"use strict";function t(e){e.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},e.languages.xlsx=e.languages.xls=e.languages["excel-formula"]}e.exports=t,t.displayName="excelFormula",t.aliases=[]},1389:function(e){"use strict";function t(e){var t,n,a,r,i,o;a={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:t={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/}},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:t},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:t}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:(n={number:/\\[^\s']|%\w/}).number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:n}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:n}},r=function(e){return(e+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},i=function(e){return RegExp("(^|\\s)(?:"+e.map(r).join("|")+")(?=\\s|$)")},Object.keys(o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]}).forEach(function(e){a[e].pattern=i(o[e])}),a.combinators.pattern=i(["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"]),e.languages.factor=a}e.exports=t,t.displayName="factor",t.aliases=[]},95024:function(e){"use strict";function t(e){e.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete e.languages["firestore-security-rules"]["class-name"],e.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}e.exports=t,t.displayName="firestoreSecurityRules",t.aliases=[]},99062:function(e){"use strict";function t(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}e.exports=t,t.displayName="flow",t.aliases=[]},15854:function(e){"use strict";function t(e){e.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}e.exports=t,t.displayName="fortran",t.aliases=[]},44462:function(e){"use strict";function t(e){e.languages.fsharp=e.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),e.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),e.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),e.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:e.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}e.exports=t,t.displayName="fsharp",t.aliases=[]},55512:function(e,t,n){"use strict";var a=n(29502);function r(e){e.register(a),function(e){for(var t=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,/[^\s\S]/.source);var a={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return t})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return t})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};a.string[1].inside.interpolation.inside.rest=a,e.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:a}}}},e.hooks.add("before-tokenize",function(n){var a=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return t}),"gi");e.languages["markup-templating"].buildPlaceholders(n,"ftl",a)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ftl")})}(e)}e.exports=r,r.displayName="ftl",r.aliases=[]},22642:function(e){"use strict";function t(e){e.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},e.languages.gap.shell.inside.gap.inside=e.languages.gap}e.exports=t,t.displayName="gap",t.aliases=[]},54709:function(e){"use strict";function t(e){e.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}e.exports=t,t.displayName="gcode",t.aliases=[]},91026:function(e){"use strict";function t(e){e.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}e.exports=t,t.displayName="gdscript",t.aliases=[]},20393:function(e){"use strict";function t(e){e.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}e.exports=t,t.displayName="gedcom",t.aliases=[]},28890:function(e){"use strict";function t(e){var t;t=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source,e.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+t+")(?:"+t+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(t),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}}e.exports=t,t.displayName="gherkin",t.aliases=[]},88192:function(e){"use strict";function t(e){e.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}e.exports=t,t.displayName="git",t.aliases=[]},51410:function(e,t,n){"use strict";var a=n(52942);function r(e){e.register(a),e.languages.glsl=e.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}e.exports=r,r.displayName="glsl",r.aliases=[]},61962:function(e){"use strict";function t(e){e.languages.gamemakerlanguage=e.languages.gml=e.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}e.exports=t,t.displayName="gml",t.aliases=[]},38551:function(e){"use strict";function t(e){e.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},e.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=e.languages.gn,e.languages.gni=e.languages.gn}e.exports=t,t.displayName="gn",t.aliases=["gni"]},51683:function(e){"use strict";function t(e){e.languages["go-mod"]=e.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}e.exports=t,t.displayName="goModule",t.aliases=[]},7577:function(e){"use strict";function t(e){e.languages.go=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),e.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete e.languages.go["class-name"]}e.exports=t,t.displayName="go",t.aliases=[]},54605:function(e){"use strict";function t(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(e){if("graphql"===e.language)for(var t=e.tokens.filter(function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type}),n=0;n0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var l=n;l=0&&p(c,"variable-input")}}}}function u(e,a){a=a||0;for(var r=0;r]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),e.hooks.add("wrap",function(t){if("groovy"===t.language&&"string"===t.type){var n=t.content.value[0];if("'"!=n){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;"$"===n&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),t.content.value=t.content.value.replace(/</g,"<").replace(/&/g,"&"),t.content=e.highlight(t.content.value,{expression:{pattern:a,lookbehind:!0,inside:e.languages.groovy}}),t.classes.push("/"===n?"regex":"gstring")}}})}e.exports=t,t.displayName="groovy",t.aliases=[]},59116:function(e,t,n){"use strict";var a=n(64935);function r(e){e.register(a),function(e){e.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:e.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:e.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:e.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:e.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:e.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:e.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var t=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],n={},a=0,r=t.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")}),e.languages.hbs=e.languages.handlebars}e.exports=r,r.displayName="handlebars",r.aliases=["hbs"]},46054:function(e){"use strict";function t(e){e.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},e.languages.hs=e.languages.haskell}e.exports=t,t.displayName="haskell",t.aliases=["hs"]},74430:function(e){"use strict";function t(e){e.languages.haxe=e.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),e.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.haxe}}},string:/[\s\S]+/}}}),e.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),e.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}e.exports=t,t.displayName="haxe",t.aliases=[]},39929:function(e){"use strict";function t(e){e.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}e.exports=t,t.displayName="hcl",t.aliases=[]},1907:function(e,t,n){"use strict";var a=n(52942);function r(e){e.register(a),e.languages.hlsl=e.languages.extend("c",{"class-name":[e.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}e.exports=r,r.displayName="hlsl",r.aliases=[]},76272:function(e){"use strict";function t(e){e.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}e.exports=t,t.displayName="hoon",t.aliases=[]},16872:function(e){"use strict";function t(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=t,t.displayName="hpkp",t.aliases=[]},42976:function(e){"use strict";function t(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}e.exports=t,t.displayName="hsts",t.aliases=[]},11609:function(e){"use strict";function t(e){!function(e){function t(e){return RegExp("(^(?:"+e+"):[ ]*(?![ ]))[^]+","i")}e.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:e.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:t(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:e.languages.csp},{pattern:t(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:e.languages.hpkp},{pattern:t(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:e.languages.hsts},{pattern:t(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var n,a=e.languages,r={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},i={"application/json":!0,"application/xml":!0};for(var o in r)if(r[o]){n=n||{};var s=i[o]?function(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-]))"}(o):o;n[o.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+s+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:r[o]}}n&&e.languages.insertBefore("http","header",n)}(e)}e.exports=t,t.displayName="http",t.aliases=[]},34479:function(e){"use strict";function t(e){e.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}e.exports=t,t.displayName="ichigojam",t.aliases=[]},66773:function(e){"use strict";function t(e){e.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}e.exports=t,t.displayName="icon",t.aliases=[]},95034:function(e){"use strict";function t(e){!function(e){function t(e,n){return n<=0?/[]/.source:e.replace(//g,function(){return t(e,n-1)})}var n=/'[{}:=,](?:[^']|'')*'(?!')/,a={pattern:/''/,greedy:!0,alias:"operator"},r=t(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return n.source}),8),i={pattern:RegExp(r),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};e.languages["icu-message-format"]={argument:{pattern:RegExp(r),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":i,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":i,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+t(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:a,string:{pattern:n,greedy:!0,inside:{escape:a}}},i.inside.message.inside=e.languages["icu-message-format"],e.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=e.languages["icu-message-format"]}(e)}e.exports=t,t.displayName="icuMessageFormat",t.aliases=[]},4108:function(e,t,n){"use strict";var a=n(46054);function r(e){e.register(a),e.languages.idris=e.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),e.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.idr=e.languages.idris}e.exports=r,r.displayName="idris",r.aliases=["idr"]},66113:function(e){"use strict";function t(e){e.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}e.exports=t,t.displayName="iecst",t.aliases=[]},62046:function(e){"use strict";function t(e){e.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},e.languages.gitignore=e.languages.ignore,e.languages.hgignore=e.languages.ignore,e.languages.npmignore=e.languages.ignore}e.exports=t,t.displayName="ignore",t.aliases=["gitignore","hgignore","npmignore"]},74337:function(e){"use strict";function t(e){e.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},e.languages.inform7.string.inside.substitution.inside.rest=e.languages.inform7,e.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}e.exports=t,t.displayName="inform7",t.aliases=[]},30205:function(e){"use strict";function t(e){e.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}e.exports=t,t.displayName="ini",t.aliases=[]},47649:function(e){"use strict";function t(e){e.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}e.exports=t,t.displayName="j",t.aliases=[]},14968:function(e){"use strict";function t(e){var t,n,a;t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a={pattern:RegExp((n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source)+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[a,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:a.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":a,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}e.exports=t,t.displayName="java",t.aliases=[]},2065:function(e,t,n){"use strict";var a=n(14968),r=n(34858);function i(e){var t,n,i;e.register(a),e.register(r),t=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,n=/#\s*\w+(?:\s*\([^()]*\))?/.source,i=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*)?|/.source.replace(//g,function(){return n}),e.languages.javadoc=e.languages.extend("javadoclike",{}),e.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+i+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:e.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:t,lookbehind:!0,inside:e.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:t,lookbehind:!0,inside:{tag:e.languages.markup.tag,entity:e.languages.markup.entity,code:{pattern:/.+/,inside:e.languages.java,alias:"language-java"}}}}}],tag:e.languages.markup.tag,entity:e.languages.markup.entity}),e.languages.javadoclike.addSupport("java",e.languages.javadoc)}e.exports=i,i.displayName="javadoc",i.aliases=[]},34858:function(e){"use strict";function t(e){var t;Object.defineProperty(t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/},"addSupport",{value:function(t,n){"string"==typeof t&&(t=[t]),t.forEach(function(t){!function(t,n){var a="doc-comment",r=e.languages[t];if(r){var i=r[a];if(!i){var o={};o[a]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},i=(r=e.languages.insertBefore(t,"comment",o))[a]}if(i instanceof RegExp&&(i=r[a]={pattern:i}),Array.isArray(i))for(var s=0,l=i.length;s|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},4093:function(e){"use strict";function t(e){e.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}e.exports=t,t.displayName="javastacktrace",t.aliases=[]},86984:function(e){"use strict";function t(e){e.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}e.exports=t,t.displayName="jexl",t.aliases=[]},38394:function(e){"use strict";function t(e){e.languages.jolie=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),e.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}e.exports=t,t.displayName="jolie",t.aliases=[]},28189:function(e){"use strict";function t(e){var t,n,a,r;t=/\\\((?:[^()]|\([^()]*\))*\)/.source,n=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return t})),a={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+t),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},r=e.languages.jq={comment:/#.*/,property:{pattern:RegExp(n.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:a},string:{pattern:n,lookbehind:!0,greedy:!0,inside:a},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}},a.interpolation.inside.content.inside=r}e.exports=t,t.displayName="jq",t.aliases=[]},66443:function(e){"use strict";function t(e){!function(e){function t(e,t){return RegExp(e.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],a=0;a=p.length)return;var o=n[i];if("string"==typeof o||"string"==typeof o.content){var l=p[c],d="string"==typeof o?o:o.content,g=d.indexOf(l);if(-1!==g){++c;var m=d.substring(0,g),f=function(t){var n={};n["interpolation-punctuation"]=r;var i=e.tokenize(t,n);if(3===i.length){var o=[1,1];o.push.apply(o,s(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,o)}return new e.Token("interpolation",i,a.alias,t)}(u[l]),b=d.substring(g+l.length),h=[];if(m&&h.push(m),h.push(f),b){var E=[b];t(E),h.push.apply(h,E)}"string"==typeof o?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):o.content=h}}else{var y=o.content;Array.isArray(y)?t(y):t([y])}}}(d),new e.Token(o,d,"language-"+o,t)}(p,f,m)}}else t(u)}}}(t.tokens)})}(e)}e.exports=t,t.displayName="jsTemplates",t.aliases=[]},9618:function(e,t,n){"use strict";var a=n(34858),r=n(67581);function i(e){var t,n,i;e.register(a),e.register(r),t=e.languages.javascript,i="(@(?:arg|argument|param|property)\\s+(?:"+(n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source)+"\\s+)?)",e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(i+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(i+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}e.exports=i,i.displayName="jsdoc",i.aliases=[]},68415:function(e){"use strict";function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=t,t.displayName="json",t.aliases=["webmanifest"]},54225:function(e,t,n){"use strict";var a=n(68415);function r(e){var t;e.register(a),t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/,e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}e.exports=r,r.displayName="json5",r.aliases=[]},19063:function(e,t,n){"use strict";var a=n(68415);function r(e){e.register(a),e.languages.jsonp=e.languages.extend("json",{punctuation:/[{}[\]();,.]/}),e.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}e.exports=r,r.displayName="jsonp",r.aliases=[]},87738:function(e){"use strict";function t(e){e.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}e.exports=t,t.displayName="jsstacktrace",t.aliases=[]},57111:function(e){"use strict";function t(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function i(e,t){return RegExp(e=e.replace(//g,function(){return n}).replace(//g,function(){return a}).replace(//g,function(){return r}),t)}r=i(r).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},s=function(t){for(var n=[],a=0;a0&&n[n.length-1].tagName===o(r.content[0].content[1])&&n.pop():"/>"===r.content[r.content.length-1].content||n.push({tagName:o(r.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===r.type&&"{"===r.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===r.type&&"}"===r.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof r)&&n.length>0&&0===n[n.length-1].openedBraces){var l=o(r);a0&&("string"==typeof t[a-1]||"plain-text"===t[a-1].type)&&(l=o(t[a-1])+l,t.splice(a-1,1),a--),t[a]=new e.Token("plain-text",l,null,l)}r.content&&"string"!=typeof r.content&&s(r.content)}};e.hooks.add("after-tokenize",function(e){("jsx"===e.language||"tsx"===e.language)&&s(e.tokens)})}(e)}e.exports=t,t.displayName="jsx",t.aliases=[]},1731:function(e){"use strict";function t(e){e.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}e.exports=t,t.displayName="julia",t.aliases=[]},84145:function(e){"use strict";function t(e){e.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}e.exports=t,t.displayName="keepalived",t.aliases=[]},3399:function(e){"use strict";function t(e){e.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}e.exports=t,t.displayName="keyman",t.aliases=[]},41598:function(e){"use strict";function t(e){var t;e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"],t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}},e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}e.exports=t,t.displayName="kotlin",t.aliases=["kt","kts"]},55953:function(e){"use strict";function t(e){!function(e){var t=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function n(e,n){return RegExp(e.replace(//g,t),n)}e.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:n(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:n(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:n(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:n(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:n(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:n(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:n(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:n(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},e.languages.kum=e.languages.kumir}(e)}e.exports=t,t.displayName="kumir",t.aliases=["kum"]},33771:function(e){"use strict";function t(e){e.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}e.exports=t,t.displayName="kusto",t.aliases=[]},30804:function(e){"use strict";function t(e){var t,n;n={"equation-command":{pattern:t=/\\(?:[^a-z()[\]]|[a-z*]+)/i,alias:"regex"}},e.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:t,alias:"selector"},punctuation:/[[\]{}&]/},e.languages.tex=e.languages.latex,e.languages.context=e.languages.latex}e.exports=t,t.displayName="latex",t.aliases=["tex","context"]},5556:function(e,t,n){"use strict";var a=n(29502),r=n(69853);function i(e){var t;e.register(a),e.register(r),e.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:e.languages.php}},t=e.languages.extend("markup",{}),e.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:e.languages.php}}}}}},t.tag),e.hooks.add("before-tokenize",function(n){"latte"===n.language&&(e.languages["markup-templating"].buildPlaceholders(n,"latte",/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g),n.grammar=t)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"latte")})}e.exports=i,i.displayName="latte",i.aliases=[]},81788:function(e){"use strict";function t(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}e.exports=t,t.displayName="less",t.aliases=[]},18344:function(e,t,n){"use strict";var a=n(95483);function r(e){e.register(a),function(e){for(var t=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,n=0;n<5;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,/[^\s\S]/.source);var a=e.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return t}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:e.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,e.languages.ly=a}(e)}e.exports=r,r.displayName="lilypond",r.aliases=[]},81375:function(e,t,n){"use strict";var a=n(29502);function r(e){e.register(a),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,function(e){var t=/^\{%-?\s*(\w+)/.exec(e);if(t){var a=t[1];if("raw"===a&&!n)return n=!0,!0;if("endraw"===a)return n=!1,!0}return!n})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}e.exports=r,r.displayName="liquid",r.aliases=[]},53826:function(e){"use strict";function t(e){!function(e){function t(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var a=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,r="&"+a,i="(\\()",o="(?=\\s)",s=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+a+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+a),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+a),alias:"property"},splice:{pattern:RegExp(",@?"+a),alias:["symbol","variable"]},keyword:[{pattern:RegExp(i+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+o),lookbehind:!0},{pattern:RegExp(i+"(?:append|by|collect|concat|do|finally|for|in|return)"+o),lookbehind:!0}],declare:{pattern:t(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:t(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(i+"def(?:const|custom|group|var)\\s+"+a),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(a)}},defun:{pattern:RegExp(i+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+a+/\s+\(/.source+s+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+a),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(i+"lambda\\s+\\(\\s*(?:&?"+a+"(?:\\s+&?"+a+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(i+a),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},c={"lisp-marker":RegExp(r),varform:{pattern:RegExp(/\(/.source+a+/\s+(?=\S)/.source+s+/\)/.source),inside:l},argument:{pattern:RegExp(/(^|[\s(])/.source+a),lookbehind:!0,alias:"variable"},rest:l},u="\\S+(?:\\s+\\S+)*",d={pattern:RegExp(i+s+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+u),inside:c},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+u),inside:c},keys:{pattern:RegExp("&key\\s+"+u+"(?:\\s+&allow-other-keys)?"),inside:c},argument:{pattern:RegExp(a),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=d,l.defun.inside.arguments=e.util.clone(d),l.defun.inside.arguments.inside.sublist=d,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(e)}e.exports=t,t.displayName="lisp",t.aliases=[]},18811:function(e){"use strict";function t(e){e.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},e.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=e.languages.livescript}e.exports=t,t.displayName="livescript",t.aliases=[]},16515:function(e){"use strict";function t(e){e.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}}e.exports=t,t.displayName="llvm",t.aliases=[]},40427:function(e){"use strict";function t(e){e.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:e.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}e.exports=t,t.displayName="log",t.aliases=[]},23994:function(e){"use strict";function t(e){e.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}e.exports=t,t.displayName="lolcode",t.aliases=[]},66757:function(e){"use strict";function t(e){e.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}e.exports=t,t.displayName="lua",t.aliases=[]},25978:function(e){"use strict";function t(e){e.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}e.exports=t,t.displayName="magma",t.aliases=[]},74480:function(e){"use strict";function t(e){e.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}e.exports=t,t.displayName="makefile",t.aliases=[]},34039:function(e){"use strict";function t(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return a}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+i+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+i+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function e(t){if(t&&"string"!=typeof t)for(var n=0,a=t.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}e.exports=t,t.displayName="markdown",t.aliases=["md"]},29502:function(e){"use strict";function t(e){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,a,r,i){if(n.language===a){var o=n.tokenStack=[];n.code=n.code.replace(r,function(e){if("function"==typeof i&&!i(e))return e;for(var r,s=o.length;-1!==n.code.indexOf(r=t(a,s));)++s;return o[s]=e,r}),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,a){if(n.language===a&&n.tokenStack){n.grammar=e.languages[a];var r=0,i=Object.keys(n.tokenStack);!function o(s){for(var l=0;l=i.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=i[r],d=n.tokenStack[u],p="string"==typeof c?c:c.content,g=t(a,u),m=p.indexOf(g);if(m>-1){++r;var f=p.substring(0,m),b=new e.Token(a,e.tokenize(d,n.grammar),"language-"+a,d),h=p.substring(m+g.length),E=[];f&&E.push.apply(E,o([f])),E.push(b),h&&E.push.apply(E,o([h])),"string"==typeof c?s.splice.apply(s,[l,1].concat(E)):c.content=E}}else c.content&&o(c.content)}return s}(n.tokens)}}}})}(e)}e.exports=t,t.displayName="markupTemplating",t.aliases=[]},18998:function(e){"use strict";function t(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var a={};a["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^$/i;var r={"included-cdata":{pattern://i,inside:a}};r["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var i={};i[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:r},e.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},39086:function(e){"use strict";function t(e){e.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}e.exports=t,t.displayName="matlab",t.aliases=[]},48406:function(e){"use strict";function t(e){var t;t=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i,e.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|")+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source+")[ ]*)(?!"+t.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+t.source+")"+/[a-z_]/.source+"|")+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:t,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}}e.exports=t,t.displayName="maxscript",t.aliases=[]},61141:function(e){"use strict";function t(e){e.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},e.languages.mel.code.inside.rest=e.languages.mel}e.exports=t,t.displayName="mel",t.aliases=[]},51362:function(e){"use strict";function t(e){e.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}e.exports=t,t.displayName="mermaid",t.aliases=[]},40617:function(e){"use strict";function t(e){e.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}e.exports=t,t.displayName="mizar",t.aliases=[]},99949:function(e){"use strict";function t(e){var t,n;n="(?:"+["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"].map(function(e){return e.replace("$","\\$")}).join("|")+")\\b",e.languages.mongodb=e.languages.extend("javascript",{}),e.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp("^(['\"])?"+n+"(?:\\1)?$")}}}),e.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},e.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:ObjectId|Code|BinData|DBRef|Timestamp|NumberLong|NumberDecimal|MaxKey|MinKey|RegExp|ISODate|UUID)\\b"),alias:"keyword"}})}e.exports=t,t.displayName="mongodb",t.aliases=[]},85097:function(e){"use strict";function t(e){e.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}e.exports=t,t.displayName="monkey",t.aliases=[]},9365:function(e){"use strict";function t(e){e.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},e.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=e.languages.moonscript,e.languages.moon=e.languages.moonscript}e.exports=t,t.displayName="moonscript",t.aliases=["moon"]},9544:function(e){"use strict";function t(e){e.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}e.exports=t,t.displayName="n1ql",t.aliases=[]},53197:function(e){"use strict";function t(e){e.languages.n4js=e.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),e.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),e.languages.n4jsd=e.languages.n4js}e.exports=t,t.displayName="n4js",t.aliases=["n4jsd"]},45641:function(e){"use strict";function t(e){e.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}e.exports=t,t.displayName="nand2tetrisHdl",t.aliases=[]},84668:function(e){"use strict";function t(e){var t,n;n={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:t=/\{[^\r\n\[\]{}]*\}/,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]},e.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:t,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:n}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:t,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:n},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},e.languages.nani=e.languages.naniscript,e.hooks.add("after-tokenize",function(e){e.tokens.forEach(function(e){if("string"!=typeof e&&"generic-text"===e.type){var t=function e(t){return"string"==typeof t?t:Array.isArray(t)?t.map(e).join(""):e(t.content)}(e);!function(e){for(var t=[],n=0;n=&|$!]/}}e.exports=t,t.displayName="nasm",t.aliases=[]},16509:function(e){"use strict";function t(e){e.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}e.exports=t,t.displayName="neon",t.aliases=[]},11376:function(e){"use strict";function t(e){e.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}e.exports=t,t.displayName="nevod",t.aliases=[]},42625:function(e){"use strict";function t(e){var t;t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i,e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}e.exports=t,t.displayName="nginx",t.aliases=[]},46736:function(e){"use strict";function t(e){e.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}e.exports=t,t.displayName="nim",t.aliases=[]},17499:function(e){"use strict";function t(e){e.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},e.languages.nix.string.inside.interpolation.inside=e.languages.nix}e.exports=t,t.displayName="nix",t.aliases=[]},86562:function(e){"use strict";function t(e){e.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}e.exports=t,t.displayName="nsis",t.aliases=[]},58072:function(e,t,n){"use strict";var a=n(52942);function r(e){e.register(a),e.languages.objectivec=e.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}e.exports=r,r.displayName="objectivec",r.aliases=["objc"]},90864:function(e){"use strict";function t(e){e.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}e.exports=t,t.displayName="ocaml",t.aliases=[]},29235:function(e,t,n){"use strict";var a=n(52942);function r(e){var t;e.register(a),e.languages.opencl=e.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),e.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}}),t={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}},e.languages.insertBefore("c","keyword",t),e.languages.cpp&&(t["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},e.languages.insertBefore("cpp","keyword",t))}e.exports=r,r.displayName="opencl",r.aliases=[]},65384:function(e){"use strict";function t(e){e.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},e.languages.qasm=e.languages.openqasm}e.exports=t,t.displayName="openqasm",t.aliases=["qasm"]},56054:function(e){"use strict";function t(e){e.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}e.exports=t,t.displayName="oz",t.aliases=[]},20079:function(e){"use strict";function t(e){var t;e.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:RegExp("\\b(?:"+["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"].map(function(e){return e.split("").join(" *")}).join("|")+")\\b"),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}e.exports=t,t.displayName="parigp",t.aliases=[]},16132:function(e){"use strict";function t(e){var t;t=e.languages.parser=e.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/}),t=e.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:t.keyword,variable:t.variable,function:t.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:t.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:t.punctuation}}}),e.languages.insertBefore("inside","punctuation",{expression:t.expression,keyword:t.keyword,variable:t.variable,function:t.function,escape:t.escape,"parser-punctuation":{pattern:t.punctuation,alias:"punctuation"}},t.tag.inside["attr-value"])}e.exports=t,t.displayName="parser",t.aliases=[]},56043:function(e){"use strict";function t(e){e.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},e.languages.pascal.asm.inside=e.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),e.languages.objectpascal=e.languages.pascal}e.exports=t,t.displayName="pascal",t.aliases=["objectpascal"]},30653:function(e){"use strict";function t(e){var t,n,a,r;t=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,n=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return t}),a=e.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return n}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return n}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return n})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},r=["comment","keyword","builtin","operator","punctuation"].reduce(function(e,t){return e[t]=a[t],e},{}),a["class-name"].forEach(function(e){e.inside=r})}e.exports=t,t.displayName="pascaligo",t.aliases=[]},25947:function(e){"use strict";function t(e){e.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},e.languages.px=e.languages.pcaxis}e.exports=t,t.displayName="pcaxis",t.aliases=["px"]},45489:function(e){"use strict";function t(e){e.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},e.languages.pcode=e.languages.peoplecode}e.exports=t,t.displayName="peoplecode",t.aliases=["pcode"]},38044:function(e){"use strict";function t(e){var t;t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source,e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}e.exports=t,t.displayName="perl",t.aliases=[]},67525:function(e,t,n){"use strict";var a=n(69853);function r(e){e.register(a),e.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}e.exports=r,r.displayName="phpExtras",r.aliases=[]},69853:function(e,t,n){"use strict";var a=n(29502);function r(e){var t,n,r,i,o,s,l;e.register(a),t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,i=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,o=/[{}\[\](),:;]/,e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:i,punctuation:o},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php}}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}],e.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:i,punctuation:o}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}e.exports=r,r.displayName="php",r.aliases=[]},20183:function(e,t,n){"use strict";var a=n(69853),r=n(34858);function i(e){var t;e.register(a),e.register(r),t=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source,e.languages.phpdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+t+"\\s+)?)\\$\\w+"),lookbehind:!0}}),e.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+t),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),e.languages.javadoclike.addSupport("php",e.languages.phpdoc)}e.exports=i,i.displayName="phpdoc",i.aliases=[]},42549:function(e,t,n){"use strict";var a=n(72099);function r(e){e.register(a),e.languages.plsql=e.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),e.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}e.exports=r,r.displayName="plsql",r.aliases=[]},62041:function(e){"use strict";function t(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}e.exports=t,t.displayName="powerquery",t.aliases=[]},85418:function(e){"use strict";function t(e){var t;(t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/}).string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}e.exports=t,t.displayName="powershell",t.aliases=[]},66767:function(e){"use strict";function t(e){e.languages.processing=e.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),e.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}e.exports=t,t.displayName="processing",t.aliases=[]},11169:function(e){"use strict";function t(e){e.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}e.exports=t,t.displayName="prolog",t.aliases=[]},71050:function(e){"use strict";function t(e){var t,n;n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"].concat(t=["on","ignoring","group_right","group_left","by","without"],["offset"]),e.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:RegExp("((?:"+t.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:RegExp("\\b(?:"+n.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}}e.exports=t,t.displayName="promql",t.aliases=[]},22787:function(e){"use strict";function t(e){e.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}e.exports=t,t.displayName="properties",t.aliases=[]},9916:function(e){"use strict";function t(e){var t;t=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/,e.languages.protobuf=e.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),e.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:t}},builtin:t,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})}e.exports=t,t.displayName="protobuf",t.aliases=[]},60474:function(e){"use strict";function t(e){e.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}e.exports=t,t.displayName="psl",t.aliases=[]},51775:function(e){"use strict";function t(e){!function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],a={},r=0,i=n.length;r",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:e.languages[o.language]}}})}e.languages.insertBefore("pug","filter",a)}(e)}e.exports=t,t.displayName="pug",t.aliases=[]},16698:function(e){"use strict";function t(e){var t;e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/},t=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}],e.languages.puppet.heredoc[0].inside.interpolation=t,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=t}e.exports=t,t.displayName="puppet",t.aliases=[]},75447:function(e){"use strict";function t(e){var t;e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/},t=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source,["c",{lang:"c++",alias:"cpp"},"fortran"].forEach(function(n){var a=n;if("string"!=typeof n&&(a=n.alias,n=n.lang),e.languages[a]){var r={};r["inline-lang-"+a]={pattern:RegExp(t.replace("",n.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},r["inline-lang-"+a].inside.rest=e.util.clone(e.languages[a]),e.languages.insertBefore("pure","inline-lang",r)}}),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))}e.exports=t,t.displayName="pure",t.aliases=[]},62953:function(e){"use strict";function t(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}e.exports=t,t.displayName="purebasic",t.aliases=[]},31379:function(e,t,n){"use strict";var a=n(46054);function r(e){e.register(a),e.languages.purescript=e.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[e.languages.haskell.operator[0],e.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),e.languages.purs=e.languages.purescript}e.exports=r,r.displayName="purescript",r.aliases=["purs"]},91132:function(e){"use strict";function t(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}e.exports=t,t.displayName="python",t.aliases=["py"]},14206:function(e){"use strict";function t(e){e.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}e.exports=t,t.displayName="q",t.aliases=[]},42727:function(e){"use strict";function t(e){!function(e){for(var t=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,n=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,a=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return t}).replace(//g,function(){return n}),r=0;r<2;r++)a=a.replace(//g,function(){return a});a=a.replace(//g,"[^\\s\\S]"),e.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:e.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}e.exports=t,t.displayName="qml",t.aliases=[]},51481:function(e){"use strict";function t(e){e.languages.qore=e.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}e.exports=t,t.displayName="qore",t.aliases=[]},33500:function(e){"use strict";function t(e){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,a){return RegExp(t(e,n),a||"")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"},r=RegExp("\\b(?:"+(a.type+" "+a.other).trim().replace(/ /g,"|")+")\\b"),i=/\b[A-Za-z_]\w*\b/.source,o=t(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[i]),s={keyword:r,punctuation:/[<>()?,.:[\]]/},l=/"(?:\\.|[^\\"])*"/.source;e.languages.qsharp=e.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[l]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[o]),lookbehind:!0,inside:s},{pattern:n(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[o]),lookbehind:!0,inside:s}],keyword:r,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),e.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var c=function(e,t){for(var n=0;n<2;n++)e=e.replace(/<>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}(t(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[l]),0);e.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:n(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[c]),greedy:!0,inside:{interpolation:{pattern:n(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[c]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:e.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}e.exports=t,t.displayName="qsharp",t.aliases=["qs"]},54963:function(e){"use strict";function t(e){e.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}e.exports=t,t.displayName="r",t.aliases=[]},52353:function(e,t,n){"use strict";var a=n(95483);function r(e){e.register(a),e.languages.racket=e.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),e.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),e.languages.rkt=e.languages.racket}e.exports=r,r.displayName="racket",r.aliases=["rkt"]},42719:function(e){"use strict";function t(e){e.languages.reason=e.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),e.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete e.languages.reason.function}e.exports=t,t.displayName="reason",t.aliases=[]},81922:function(e){"use strict";function t(e){var t,n,a,r,i;t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=RegExp((a="(?:[^\\\\-]|"+(n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/).source+")")+"-"+a),i={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"},e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":i}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}e.exports=t,t.displayName="rego",t.aliases=[]},6491:function(e){"use strict";function t(e){e.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},e.languages.rpy=e.languages.renpy}e.exports=t,t.displayName="renpy",t.aliases=["rpy"]},1108:function(e){"use strict";function t(e){e.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}e.exports=t,t.displayName="rest",t.aliases=[]},37904:function(e){"use strict";function t(e){e.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}e.exports=t,t.displayName="rip",t.aliases=[]},5266:function(e){"use strict";function t(e){e.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}e.exports=t,t.displayName="roboconf",t.aliases=[]},38099:function(e){"use strict";function t(e){!function(e){var t={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},n={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function a(e,a){var r={};for(var i in r["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"},a)r[i]=a[i];return r.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},r.variable=n,r.comment=t,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return e}),"im"),alias:"section",inside:r}}var r={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},i={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:n}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:n}};e.languages.robotframework={settings:a("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:a("Variables"),"test-cases":a("Test Cases",{"test-name":i,documentation:r,property:o}),keywords:a("Keywords",{"keyword-name":i,documentation:r,property:o}),tasks:a("Tasks",{"task-name":i,documentation:r,property:o}),comment:t},e.languages.robot=e.languages.robotframework}(e)}e.exports=t,t.displayName="robotframework",t.aliases=[]},64935:function(e){"use strict";function t(e){var t,n,a;e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}},delete e.languages.ruby.function,n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",a=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source,e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+a),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+a+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}e.exports=t,t.displayName="ruby",t.aliases=["rb"]},86396:function(e){"use strict";function t(e){!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,n=0;n<2;n++)t=t.replace(//g,function(){return t});t=t.replace(//g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(e)}e.exports=t,t.displayName="rust",t.aliases=[]},91548:function(e){"use strict";function t(e){var t,n,a,r,i,o,s,l,c,u,d,p,g,m,f,b,h,E;t=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,n=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,a={pattern:RegExp(t+"[bx]"),alias:"number"},i={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},s=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={function:u={pattern:/%?\b\w+(?=\()/,alias:"keyword"},"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":r={pattern:/&[a-z_]\w*/i},arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:n,"numeric-constant":a,punctuation:c=/[$%@.(){}\[\];,\\]/,string:l={pattern:RegExp(t),greedy:!0}},p={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},g={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},m={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},f={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},b=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,h={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return b}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return b}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:s,function:u,"arg-value":d["arg-value"],operator:d.operator,argument:d.arg,number:n,"numeric-constant":a,punctuation:c,string:l}},E={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0},e.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return t}),"im"),alias:"language-sql",inside:e.languages.sql},"global-statements":m,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:n,"numeric-constant":a,punctuation:c,string:l}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,alias:"language-groovy",inside:e.languages.groovy},keyword:E,"submit-statement":f,"global-statements":m,number:n,"numeric-constant":a,punctuation:c,string:l}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,alias:"language-lua",inside:e.languages.lua},keyword:E,"submit-statement":f,"global-statements":m,number:n,"numeric-constant":a,punctuation:c,string:l}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:s,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:d}},"cas-actions":h,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:d},step:o,keyword:E,function:u,format:p,altformat:g,"global-statements":m,number:n,"numeric-constant":a,punctuation:c,string:l}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return t}),"im"),lookbehind:!0,inside:d},"macro-keyword":i,"macro-variable":r,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":i,"macro-variable":r,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:c}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:s,number:n,"numeric-constant":a}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:d},"cas-actions":h,comment:s,function:u,format:p,altformat:g,"numeric-constant":a,datetime:{pattern:RegExp(t+"(?:dt?|t)"),alias:"number"},string:l,step:o,keyword:E,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:n,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}}e.exports=t,t.displayName="sas",t.aliases=[]},21133:function(e){"use strict";function t(e){var t,n;e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule,t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}e.exports=t,t.displayName="sass",t.aliases=[]},70211:function(e,t,n){"use strict";var a=n(14968);function r(e){e.register(a),e.languages.scala=e.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function}e.exports=r,r.displayName="scala",r.aliases=[]},95483:function(e){"use strict";function t(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,function(t){return"(?:"+e[t].trim()+")"});return e[t]}({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}e.exports=t,t.displayName="scheme",t.aliases=[]},23070:function(e){"use strict";function t(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}e.exports=t,t.displayName="scss",t.aliases=[]},89447:function(e,t,n){"use strict";var a=n(27524);function r(e){var t;e.register(a),t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|"),e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return t}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}e.exports=r,r.displayName="shellSession",r.aliases=[]},87134:function(e){"use strict";function t(e){e.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}e.exports=t,t.displayName="smali",t.aliases=[]},98167:function(e){"use strict";function t(e){e.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}e.exports=t,t.displayName="smalltalk",t.aliases=[]},64849:function(e,t,n){"use strict";var a=n(29502);function r(e){var t,n;e.register(a),e.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:e.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},e.languages.smarty["embedded-php"].inside.smarty.inside=e.languages.smarty,e.languages.smarty.string[0].inside.interpolation.inside.expression.inside=e.languages.smarty,t=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,n=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return t.source}),"g"),e.hooks.add("before-tokenize",function(t){var a=!1;e.languages["markup-templating"].buildPlaceholders(t,"smarty",n,function(e){return"{/literal}"===e&&(a=!1),!a&&("{literal}"===e&&(a=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"smarty")})}e.exports=r,r.displayName="smarty",r.aliases=[]},58899:function(e){"use strict";function t(e){var t;t=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i,e.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return t.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:t,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},e.languages.sml["class-name"][0].inside=e.languages.sml,e.languages.smlnj=e.languages.sml}e.exports=t,t.displayName="sml",t.aliases=["smlnj"]},51669:function(e){"use strict";function t(e){e.languages.solidity=e.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),e.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),e.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),e.languages.sol=e.languages.solidity}e.exports=t,t.displayName="solidity",t.aliases=["sol"]},5895:function(e){"use strict";function t(e){var t;t={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}},e.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:t}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:t}},guid:t,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},e.languages.sln=e.languages["solution-file"]}e.exports=t,t.displayName="solutionFile",t.aliases=[]},87745:function(e,t,n){"use strict";var a=n(29502);function r(e){var t,n;e.register(a),t=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/,e.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:t,greedy:!0},number:n,punctuation:/[\[\].?]/}},string:{pattern:t,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:n,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},e.hooks.add("before-tokenize",function(t){var n=!1;e.languages["markup-templating"].buildPlaceholders(t,"soy",/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,function(e){return"{/literal}"===e&&(n=!1),!n&&("{literal}"===e&&(n=!0),!0)})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"soy")})}e.exports=r,r.displayName="soy",r.aliases=[]},44587:function(e,t,n){"use strict";var a=n(80208);function r(e){e.register(a),e.languages.sparql=e.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),e.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),e.languages.rq=e.languages.sparql}e.exports=r,r.displayName="sparql",r.aliases=["rq"]},70945:function(e){"use strict";function t(e){e.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}e.exports=t,t.displayName="splunkSpl",t.aliases=[]},46209:function(e){"use strict";function t(e){e.languages.sqf=e.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),e.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:e.languages.sqf.comment}}}),delete e.languages.sqf["class-name"]}e.exports=t,t.displayName="sqf",t.aliases=[]},72099:function(e){"use strict";function t(e){e.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}e.exports=t,t.displayName="sql",t.aliases=[]},48809:function(e){"use strict";function t(e){e.languages.squirrel=e.languages.extend("clike",{comment:[e.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),e.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}e.exports=t,t.displayName="squirrel",t.aliases=[]},70509:function(e){"use strict";function t(e){var t;t=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/,e.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+t.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,t],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},e.languages.stan.constraint.inside.expression.inside=e.languages.stan}e.exports=t,t.displayName="stan",t.aliases=[]},36941:function(e){"use strict";function t(e){var t,n,a;(a={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},number:n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/}).interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:a}},a.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:a}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:a}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:a}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:a}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:a.interpolation}},rest:a}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:a.interpolation,comment:a.comment,punctuation:/[{},]/}},func:a.func,string:a.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:a.interpolation,punctuation:/[{}()\[\];:.]/}}e.exports=t,t.displayName="stylus",t.aliases=[]},4906:function(e){"use strict";function t(e){e.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},e.languages.swift["string-literal"].forEach(function(t){t.inside.interpolation.inside=e.languages.swift})}e.exports=t,t.displayName="swift",t.aliases=[]},48496:function(e){"use strict";function t(e){var t,n;t={pattern:/^[;#].*/m,greedy:!0},n=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source,e.languages.systemd={comment:t,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+n+'|(?=[^"\r\n]))(?:'+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|')+n+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:t,quoted:{pattern:RegExp(/(^|\s)/.source+n),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}}e.exports=t,t.displayName="systemd",t.aliases=[]},64575:function(e,t,n){"use strict";var a=n(24786),r=n(20995);function i(e){e.register(a),e.register(r),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}e.exports=i,i.displayName="t4Cs",i.aliases=[]},24786:function(e){"use strict";function t(e){!function(e){function t(e,t,n){return{pattern:RegExp("<#"+e+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+e+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:t,alias:n}}}}e.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:function(n){var a=e.languages[n],r="language-"+n;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:t("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:t("=",a,r),"class-feature":t("\\+",a,r),standard:t("",a,r)}}}}})}(e)}e.exports=t,t.displayName="t4Templating",t.aliases=[]},12037:function(e,t,n){"use strict";var a=n(24786),r=n(55756);function i(e){e.register(a),e.register(r),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}e.exports=i,i.displayName="t4Vb",i.aliases=[]},82145:function(e,t,n){"use strict";var a=n(34154);function r(e){e.register(a),e.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:e.languages.yaml,alias:"language-yaml"}}}e.exports=r,r.displayName="tap",r.aliases=[]},83083:function(e){"use strict";function t(e){e.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}e.exports=t,t.displayName="tcl",t.aliases=[]},45132:function(e){"use strict";function t(e){!function(e){var t=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,n=/\)|\((?![^|()\n]+\))/.source;function a(e,a){return RegExp(e.replace(//g,function(){return"(?:"+t+")"}).replace(//g,function(){return"(?:"+n+")"}),a||"")}var r={css:{pattern:/\{[^{}]+\}/,inside:{rest:e.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},i=e.languages.textile=e.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:a(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:a(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:r},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:a(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:a(/(^[*#]+)+/.source),lookbehind:!0,inside:r},punctuation:/^[*#]+/}},table:{pattern:a(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:a(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:r},punctuation:/\||^\./}},inline:{pattern:a(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:a(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:a(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:a(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:a(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:a(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:a(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:a(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:a(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:r},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:a(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:a(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:a(/(^")+/.source),lookbehind:!0,inside:r},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:a(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:a(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:a(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:r},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=i.phrase.inside,s={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};i.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var l=o.inline.inside;l.bold.inside=s,l.italic.inside=s,l.inserted.inside=s,l.deleted.inside=s,l.span.inside=s;var c=o.table.inside;c.inline=s.inline,c.link=s.link,c.image=s.image,c.footnote=s.footnote,c.acronym=s.acronym,c.mark=s.mark}(e)}e.exports=t,t.displayName="textile",t.aliases=[]},16394:function(e){"use strict";function t(e){!function(e){var t=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function n(e){return e.replace(/__/g,function(){return t})}e.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(n(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(n(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}}(e)}e.exports=t,t.displayName="toml",t.aliases=[]},8124:function(e){"use strict";function t(e){var t;e.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/},t=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source,e.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+t+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+t+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(t),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.tremor}}},string:/[\s\S]+/}},e.languages.troy=e.languages.tremor,e.languages.trickle=e.languages.tremor}e.exports=t,t.displayName="tremor",t.aliases=[]},16964:function(e,t,n){"use strict";var a=n(57111),r=n(67581);function i(e){var t,n;e.register(a),e.register(r),t=e.util.clone(e.languages.typescript),e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],(n=e.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}e.exports=i,i.displayName="tsx",i.aliases=[]},28761:function(e,t,n){"use strict";var a=n(29502);function r(e){e.register(a),e.languages.tt2=e.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),e.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),e.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),e.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete e.languages.tt2.string,e.hooks.add("before-tokenize",function(t){e.languages["markup-templating"].buildPlaceholders(t,"tt2",/\[%[\s\S]+?%\]/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"tt2")})}e.exports=r,r.displayName="tt2",r.aliases=[]},80208:function(e){"use strict";function t(e){e.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},e.languages.trig=e.languages.turtle}e.exports=t,t.displayName="turtle",t.aliases=[]},48372:function(e,t,n){"use strict";var a=n(29502);function r(e){e.register(a),e.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},e.hooks.add("before-tokenize",function(t){"twig"===t.language&&e.languages["markup-templating"].buildPlaceholders(t,"twig",/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"twig")})}e.exports=r,r.displayName="twig",r.aliases=[]},67581:function(e){"use strict";function t(e){var t;e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"],t=e.languages.extend("typescript",{}),delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}e.exports=t,t.displayName="typescript",t.aliases=["ts"]},88650:function(e){"use strict";function t(e){var t;t=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/,e.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:t}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:t,number:/^\d+$/,punctuation:/[,|:]/}},keyword:t,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},e.languages.tsconfig=e.languages.typoscript}e.exports=t,t.displayName="typoscript",t.aliases=["tsconfig"]},84084:function(e){"use strict";function t(e){e.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},e.languages.uc=e.languages.uscript=e.languages.unrealscript}e.exports=t,t.displayName="unrealscript",t.aliases=["uc","uscript"]},86938:function(e){"use strict";function t(e){e.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}e.exports=t,t.displayName="uorazor",t.aliases=[]},41428:function(e){"use strict";function t(e){e.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source)+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")"+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},e.languages.url=e.languages.uri}e.exports=t,t.displayName="uri",t.aliases=["url"]},93581:function(e){"use strict";function t(e){var t;t={pattern:/[\s\S]+/,inside:null},e.languages.v=e.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":t}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),t.inside=e.languages.v,e.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),e.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),e.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:e.languages.v.generic.inside}}}})}e.exports=t,t.displayName="v",t.aliases=[]},87403:function(e){"use strict";function t(e){e.languages.vala=e.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),e.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:e.languages.vala}},string:/[\s\S]+/}}}),e.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}e.exports=t,t.displayName="vala",t.aliases=[]},55756:function(e,t,n){"use strict";var a=n(6009);function r(e){e.register(a),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}e.exports=r,r.displayName="vbnet",r.aliases=[]},65576:function(e){"use strict";function t(e){var t;e.languages.velocity=e.languages.extend("markup",{}),(t={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/}).variable.inside={string:t.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:t.number,boolean:t.boolean,punctuation:t.punctuation},e.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:t}},variable:t.variable}),e.languages.velocity.tag.inside["attr-value"].inside.rest=e.languages.velocity}e.exports=t,t.displayName="velocity",t.aliases=[]},67154:function(e){"use strict";function t(e){e.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}e.exports=t,t.displayName="verilog",t.aliases=[]},48994:function(e){"use strict";function t(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="vhdl",t.aliases=[]},1415:function(e){"use strict";function t(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}e.exports=t,t.displayName="vim",t.aliases=[]},81518:function(e){"use strict";function t(e){e.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},e.languages.vb=e.languages["visual-basic"],e.languages.vba=e.languages["visual-basic"]}e.exports=t,t.displayName="visualBasic",t.aliases=[]},27313:function(e){"use strict";function t(e){e.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}e.exports=t,t.displayName="warpscript",t.aliases=[]},68003:function(e){"use strict";function t(e){e.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}e.exports=t,t.displayName="wasm",t.aliases=[]},27342:function(e){"use strict";function t(e){!function(e){var t=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,n="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+t+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,a={};for(var r in e.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+t),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+n),lookbehind:!0,inside:a},{pattern:RegExp("("+/\bcallback\s+/.source+t+/\s*=\s*/.source+")"+n),lookbehind:!0,inside:a},{pattern:RegExp(/(\btypedef\b\s*)/.source+n),lookbehind:!0,inside:a},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+t),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+t),lookbehind:!0},RegExp(t+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+t),lookbehind:!0},{pattern:RegExp(n+"(?="+/\s*(?:\.{3}\s*)?/.source+t+/\s*[(),;=]/.source+")"),inside:a}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/},e.languages["web-idl"])"class-name"!==r&&(a[r]=e.languages["web-idl"][r]);e.languages.webidl=e.languages["web-idl"]}(e)}e.exports=t,t.displayName="webIdl",t.aliases=[]},39397:function(e){"use strict";function t(e){e.languages.wiki=e.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:e.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),e.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:e.languages.markup.tag.inside}}}})}e.exports=t,t.displayName="wiki",t.aliases=[]},35494:function(e){"use strict";function t(e){e.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.mathematica=e.languages.wolfram,e.languages.wl=e.languages.wolfram,e.languages.nb=e.languages.wolfram}e.exports=t,t.displayName="wolfram",t.aliases=["mathematica","wl","nb"]},78573:function(e){"use strict";function t(e){e.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},e.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:e.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}e.exports=t,t.displayName="wren",t.aliases=[]},89722:function(e){"use strict";function t(e){e.languages.xeora=e.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),e.languages.insertBefore("inside","punctuation",{variable:e.languages.xeora["function-inline"].inside.variable},e.languages.xeora["function-block"]),e.languages.xeoracube=e.languages.xeora}e.exports=t,t.displayName="xeora",t.aliases=["xeoracube"]},59450:function(e){"use strict";function t(e){!function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,a={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",a),t("fsharp",a),t("vbnet",{pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}})}(e)}e.exports=t,t.displayName="xmlDoc",t.aliases=[]},30413:function(e){"use strict";function t(e){e.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}e.exports=t,t.displayName="xojo",t.aliases=[]},32698:function(e){"use strict";function t(e){!function(e){e.languages.xquery=e.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),e.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,e.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,e.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:e.languages.xquery,alias:"language-xquery"};var t=function(e){return"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(t).join("")},n=function(a){for(var r=[],i=0;i0&&r[r.length-1].tagName===t(o.content[0].content[1])&&r.pop():"/>"===o.content[o.content.length-1].content||r.push({tagName:t(o.content[0].content[1]),openedBraces:0}):!(r.length>0)||"punctuation"!==o.type||"{"!==o.content||a[i+1]&&"punctuation"===a[i+1].type&&"{"===a[i+1].content||a[i-1]&&"plain-text"===a[i-1].type&&"{"===a[i-1].content?r.length>0&&r[r.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?r[r.length-1].openedBraces--:"comment"!==o.type&&(s=!0):r[r.length-1].openedBraces++),(s||"string"==typeof o)&&r.length>0&&0===r[r.length-1].openedBraces){var l=t(o);i0&&("string"==typeof a[i-1]||"plain-text"===a[i-1].type)&&(l=t(a[i-1])+l,a.splice(i-1,1),i--),/^\s+$/.test(l)?a[i]=l:a[i]=new e.Token("plain-text",l,null,l)}o.content&&"string"!=typeof o.content&&n(o.content)}};e.hooks.add("after-tokenize",function(e){"xquery"===e.language&&n(e.tokens)})}(e)}e.exports=t,t.displayName="xquery",t.aliases=[]},34154:function(e){"use strict";function t(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){return t=(t||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return a}).replace(/<>/g,function(){return e}),t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return a})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return a}).replace(/<>/g,function(){return"(?:"+r+"|"+i+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(i),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=t,t.displayName="yaml",t.aliases=["yml"]},12910:function(e){"use strict";function t(e){e.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}e.exports=t,t.displayName="yang",t.aliases=[]},39559:function(e){"use strict";function t(e){!function(e){function t(e){return function(){return e}}var n=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,a="\\b(?!"+n.source+")(?!\\d)\\w+\\b",r=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,i="(?!\\s)(?:!?\\s*(?:"+/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,t(r))+"\\s*)*"+/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,t(a))+")+";e.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,t(i)).replace(//g,t(r))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,t(i)).replace(//g,t(r))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:n,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},e.languages.zig["class-name"].forEach(function(t){null===t.inside&&(t.inside=e.languages.zig)})}(e)}e.exports=t,t.displayName="zig",t.aliases=[]},30669:function(e,t,n){/** - * Prism: Lightweight, robust, elegant syntax highlighting - * - * @license MIT - * @author Lea Verou - * @namespace - * @public - */var a=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,a={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach));T+=v.value.length,v=v.next){var _,A=v.value;if(n.length>t.length)return;if(!(A instanceof i)){var w=1;if(h){if(!(_=o(S,T,t,b))||_.index>=t.length)break;var R=_.index,I=_.index+_[0].length,k=T;for(k+=v.value.length;R>=k;)k+=(v=v.next).value.length;if(k-=v.value.length,T=k,v.value instanceof i)continue;for(var N=v;N!==n.tail&&(ku.reach&&(u.reach=L);var D=v.prev;x&&(D=l(n,D,x),T+=x.length),function(e,t,n){for(var a=t.next,r=0;r1){var M={cause:d+","+g,reach:L};e(t,n,a,v.prev,T,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}(e,c,t,c.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(c)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var a,i=0;a=n[i++];)a(t)}},Token:i};function i(e,t,n,a){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length}function o(e,t,n,a){e.lastIndex=t;var r=e.exec(n);if(r&&a&&r[1]){var i=r[1].length;r.index+=i,r[0]=r[0].slice(i)}return r}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var a=t.next,r={value:n,prev:t,next:a};return t.next=r,a.prev=r,e.length++,r}if(e.Prism=r,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var a="";return t.forEach(function(t){a+=e(t,n)}),a}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(i.classes,o):i.classes.push(o)),r.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+""},!e.document)return e.addEventListener&&(r.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),a=n.language,i=n.code,o=n.immediateClose;e.postMessage(r.highlight(i,r.languages[a],a)),o&&e.close()},!1)),r;var c=r.util.currentScript();function u(){r.manual||r.highlightAll()}if(c&&(r.filename=c.src,c.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var d=document.readyState;"loading"===d||"interactive"===d&&c&&c.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=a),void 0!==n.g&&(n.g.Prism=a)},81840:function(e){e.exports=function(){for(var e={},n=0;n","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},38105:function(e){"use strict";e.exports=JSON.parse('{"0":"�","128":"€","130":"‚","131":"ƒ","132":"„","133":"…","134":"†","135":"‡","136":"ˆ","137":"‰","138":"Š","139":"‹","140":"Œ","142":"Ž","145":"‘","146":"’","147":"“","148":"”","149":"•","150":"–","151":"—","152":"˜","153":"™","154":"š","155":"›","156":"œ","158":"ž","159":"Ÿ"}')}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/341-45d79e5f1110ab05.js b/pilot/server/static/_next/static/chunks/341-45d79e5f1110ab05.js deleted file mode 100644 index 5430e1754..000000000 --- a/pilot/server/static/_next/static/chunks/341-45d79e5f1110ab05.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[341],{54842:function(e,t,r){var a=r(78997);t.Z=void 0;var s=a(r(76906)),i=r(9268),n=(0,s.default)((0,i.jsx)("path",{d:"m3.4 20.4 17.45-7.48c.81-.35.81-1.49 0-1.84L3.4 3.6c-.66-.29-1.39.2-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z"}),"SendRounded");t.Z=n},53047:function(e,t,r){r.d(t,{Qh:function(){return x},ZP:function(){return Z}});var a=r(46750),s=r(40431),i=r(86006),n=r(53832),o=r(99179),l=r(46319),u=r(47562),d=r(50645),c=r(88930),f=r(47093),p=r(326),h=r(18587);function m(e){return(0,h.d6)("MuiIconButton",e)}let y=(0,h.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var v=r(42858),g=r(9268);let _=["children","action","component","color","disabled","variant","size","slots","slotProps"],b=e=>{let{color:t,disabled:r,focusVisible:a,focusVisibleClassName:s,size:i,variant:o}=e,l={root:["root",r&&"disabled",a&&"focusVisible",o&&`variant${(0,n.Z)(o)}`,t&&`color${(0,n.Z)(t)}`,i&&`size${(0,n.Z)(i)}`]},d=(0,u.Z)(l,m,{});return a&&s&&(d.root+=` ${s}`),d},x=(0,d.Z)("button")(({theme:e,ownerState:t})=>{var r,a,i,n;return[(0,s.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color]}},{"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},{[`&.${y.disabled}`]:null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color]}]}),w=(0,d.Z)(x,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),k=i.forwardRef(function(e,t){var r;let n=(0,c.Z)({props:e,name:"JoyIconButton"}),{children:u,action:d,component:h="button",color:m="primary",disabled:y,variant:x="soft",size:k="md",slots:Z={},slotProps:S={}}=n,T=(0,a.Z)(n,_),A=i.useContext(v.Z),O=e.variant||A.variant||x,N=e.size||A.size||k,{getColor:V}=(0,f.VT)(O),E=V(e.color,A.color||m),j=null!=(r=e.disabled)?r:A.disabled||y,I=i.useRef(null),C=(0,o.Z)(I,t),{focusVisible:D,setFocusVisible:P,getRootProps:z}=(0,l.Z)((0,s.Z)({},n,{disabled:j,rootRef:C}));i.useImperativeHandle(d,()=>({focusVisible:()=>{var e;P(!0),null==(e=I.current)||e.focus()}}),[P]);let F=(0,s.Z)({},n,{component:h,color:E,disabled:j,variant:O,size:N,focusVisible:D,instanceSize:e.size}),R=b(F),M=(0,s.Z)({},T,{component:h,slots:Z,slotProps:S}),[L,U]=(0,p.Z)("root",{ref:t,className:R.root,elementType:w,getSlotProps:z,externalForwardedProps:M,ownerState:F});return(0,g.jsx)(L,(0,s.Z)({},U,{children:u}))});k.muiName="IconButton";var Z=k},67830:function(e,t,r){r.d(t,{F:function(){return l}});var a=r(19700),s=function(e,t,r){if(e&&"reportValidity"in e){var s=(0,a.U2)(r,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},i=function(e,t){var r=function(r){var a=t.fields[r];a&&a.ref&&"reportValidity"in a.ref?s(a.ref,r,e):a.refs&&a.refs.forEach(function(t){return s(t,r,e)})};for(var a in t.fields)r(a)},n=function(e,t){t.shouldUseNativeValidation&&i(e,t);var r={};for(var s in e){var n=(0,a.U2)(t.fields,s);(0,a.t8)(r,s,Object.assign(e[s]||{},{ref:n&&n.ref}))}return r},o=function(e,t){for(var r={};e.length;){var s=e[0],i=s.code,n=s.message,o=s.path.join(".");if(!r[o]){if("unionErrors"in s){var l=s.unionErrors[0].errors[0];r[o]={message:l.message,type:l.code}}else r[o]={message:n,type:i}}if("unionErrors"in s&&s.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var u=r[o].types,d=u&&u[s.code];r[o]=(0,a.KN)(o,t,r,i,d?[].concat(d,s.message):s.message)}e.shift()}return r},l=function(e,t,r){return void 0===r&&(r={}),function(a,s,l){try{return Promise.resolve(function(s,n){try{var o=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](a,t)).then(function(e){return l.shouldUseNativeValidation&&i({},l),{errors:{},values:r.raw?a:e}})}catch(e){return n(e)}return o&&o.then?o.then(void 0,n):o}(0,function(e){if(null!=e.errors)return{values:{},errors:n(o(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}}}},19700:function(e,t,r){r.d(t,{KN:function(){return V},U2:function(){return v},cI:function(){return em},t8:function(){return N}});var a=r(86006),s=e=>"checkbox"===e.type,i=e=>e instanceof Date,n=e=>null==e;let o=e=>"object"==typeof e;var l=e=>!n(e)&&!Array.isArray(e)&&o(e)&&!i(e),u=e=>l(e)&&e.target?s(e.target)?e.target.checked:e.target.value:e,d=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,c=(e,t)=>e.has(d(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},p="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(p&&(e instanceof Blob||e instanceof FileList))&&(r||l(e))))return e;else if(t=r?[]:{},Array.isArray(e)||f(e))for(let r in e)t[r]=h(e[r]);else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>void 0===e,v=(e,t,r)=>{if(!t||!l(e))return r;let a=m(t.split(/[,[\].]+?/)).reduce((e,t)=>n(e)?e:e[t],e);return y(a)||a===e?y(e[t])?r:e[t]:a};let g={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};a.createContext(null);var x=(e,t,r,a=!0)=>{let s={defaultValues:t._defaultValues};for(let i in e)Object.defineProperty(s,i,{get:()=>(t._proxyFormState[i]!==_.all&&(t._proxyFormState[i]=!a||_.all),r&&(r[i]=!0),e[i])});return s},w=e=>l(e)&&!Object.keys(e).length,k=(e,t,r,a)=>{r(e);let{name:s,...i}=e;return w(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!a||_.all))},Z=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,T=(e,t,r,a,s)=>S(e)?(a&&t.watch.add(e),v(r,e,s)):Array.isArray(e)?e.map(e=>(a&&t.watch.add(e),v(r,e))):(a&&(t.watchAll=!0),r),A=e=>/^\w*$/.test(e),O=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function N(e,t,r){let a=-1,s=A(t)?[t]:O(t),i=s.length,n=i-1;for(;++at?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[a]:s||!0}}:{};let E=(e,t,r)=>{for(let a of r||Object.keys(e)){let r=v(e,a);if(r){let{_f:e,...a}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(a)&&E(a,t)}}};var j=e=>({isOnSubmit:!e||e===_.onSubmit,isOnBlur:e===_.onBlur,isOnChange:e===_.onChange,isOnAll:e===_.all,isOnTouch:e===_.onTouched}),I=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),C=(e,t,r)=>{let a=m(v(e,r));return N(a,"root",t[r]),N(e,r,a),e},D=e=>"boolean"==typeof e,P=e=>"file"===e.type,z=e=>"function"==typeof e,F=e=>{if(!p)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},R=e=>S(e),M=e=>"radio"===e.type,L=e=>e instanceof RegExp;let U={value:!1,isValid:!1},B={value:!0,isValid:!0};var $=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?B:{value:e[0].value,isValid:!0}:B:U}return U};let K={isValid:!1,value:null};var W=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,K):K;function q(e,t,r="validate"){if(R(e)||Array.isArray(e)&&e.every(R)||D(e)&&!e)return{type:r,message:R(e)?e:"",ref:t}}var H=e=>l(e)&&!L(e)?e:{value:e,message:""},J=async(e,t,r,a,i)=>{let{ref:o,refs:u,required:d,maxLength:c,minLength:f,min:p,max:h,pattern:m,validate:g,name:_,valueAsNumber:x,mount:k,disabled:Z}=e._f,T=v(t,_);if(!k||Z)return{};let A=u?u[0]:o,O=e=>{a&&A.reportValidity&&(A.setCustomValidity(D(e)?"":e||""),A.reportValidity())},N={},E=M(o),j=s(o),I=(x||P(o))&&y(o.value)&&y(T)||F(o)&&""===o.value||""===T||Array.isArray(T)&&!T.length,C=V.bind(null,_,r,N),U=(e,t,r,a=b.maxLength,s=b.minLength)=>{let i=e?t:r;N[_]={type:e?a:s,message:i,ref:o,...C(e?a:s,i)}};if(i?!Array.isArray(T)||!T.length:d&&(!(E||j)&&(I||n(T))||D(T)&&!T||j&&!$(u).isValid||E&&!W(u).isValid)){let{value:e,message:t}=R(d)?{value:!!d,message:d}:H(d);if(e&&(N[_]={type:b.required,message:t,ref:A,...C(b.required,t)},!r))return O(t),N}if(!I&&(!n(p)||!n(h))){let e,t;let a=H(h),s=H(p);if(n(T)||isNaN(T)){let r=o.valueAsDate||new Date(T),i=e=>new Date(new Date().toDateString()+" "+e),n="time"==o.type,l="week"==o.type;S(a.value)&&T&&(e=n?i(T)>i(a.value):l?T>a.value:r>new Date(a.value)),S(s.value)&&T&&(t=n?i(T)a.value),n(s.value)||(t=r+e.value,s=!n(t.value)&&T.length<+t.value;if((a||s)&&(U(a,e.message,t.message),!r))return O(N[_].message),N}if(m&&!I&&S(T)){let{value:e,message:t}=H(m);if(L(e)&&!T.match(e)&&(N[_]={type:b.pattern,message:t,ref:o,...C(b.pattern,t)},!r))return O(t),N}if(g){if(z(g)){let e=await g(T,t),a=q(e,A);if(a&&(N[_]={...a,...C(b.validate,a.message)},!r))return O(a.message),N}else if(l(g)){let e={};for(let a in g){if(!w(e)&&!r)break;let s=q(await g[a](T,t),A,a);s&&(e={...s,...C(a,s.message)},O(s.message),r&&(N[_]=e))}if(!w(e)&&(N[_]={ref:A,...e},!r))return N}}return O(!0),N};function Y(e,t){let r=Array.isArray(t)?t:A(t)?[t]:O(t),a=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,a=0;for(;a{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>n(e)||!o(e);function X(e,t){if(Q(e)||Q(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s of r){let r=e[s];if(!a.includes(s))return!1;if("ref"!==s){let e=t[s];if(i(r)&&i(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!X(r,e):r!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>M(e)||s(e),er=e=>F(e)&&e.isConnected,ea=e=>{for(let t in e)if(z(e[t]))return!0;return!1};function es(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!ea(e[r])?(t[r]=Array.isArray(e[r])?[]:{},es(e[r],t[r])):n(e[r])||(t[r]=!0);return t}var ei=(e,t)=>(function e(t,r,a){let s=Array.isArray(t);if(l(t)||s)for(let s in t)Array.isArray(t[s])||l(t[s])&&!ea(t[s])?y(r)||Q(a[s])?a[s]=Array.isArray(t[s])?es(t[s],[]):{...es(t[s])}:e(t[s],n(r)?{}:r[s],a[s]):a[s]=!X(t[s],r[s]);return a})(e,t,es(t)),en=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:a})=>y(e)?e:t?""===e?NaN:e?+e:e:r&&S(e)?new Date(e):a?a(e):e;function eo(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:P(t)?t.files:M(t)?W(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):s(t)?$(e.refs).value:en(y(t.value)?e.ref.value:t.value,e)}var el=(e,t,r,a)=>{let s={};for(let r of e){let e=v(t,r);e&&N(s,r,e._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:a}},eu=e=>y(e)?e:L(e)?e.source:l(e)?L(e.value)?e.value.source:e.value:e,ed=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ec(e,t,r){let a=v(e,r);if(a||A(r))return{error:a,name:r};let s=r.split(".");for(;s.length;){let a=s.join("."),i=v(t,a),n=v(e,a);if(i&&!Array.isArray(i)&&r!==a)break;if(n&&n.type)return{name:a,error:n};s.pop()}return{name:r}}var ef=(e,t,r,a,s)=>!s.isOnAll&&(!r&&s.isOnTouch?!(t||e):(r?a.isOnBlur:s.isOnBlur)?!e:(r?!a.isOnChange:!s.isOnChange)||e),ep=(e,t)=>!m(v(e,t)).length&&Y(e,t);let eh={mode:_.onSubmit,reValidateMode:_.onChange,shouldFocusError:!0};function em(e={}){let t=a.useRef(),[r,o]=a.useState({isDirty:!1,isValidating:!1,isLoading:z(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:z(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,a={...eh,...e},o={submitCount:0,isDirty:!1,isLoading:z(a.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},d={},f=(l(a.defaultValues)||l(a.values))&&h(a.defaultValues||a.values)||{},b=a.shouldUnregister?{}:h(f),x={action:!1,mount:!1,watch:!1},k={mount:new Set,unMount:new Set,array:new Set,watch:new Set},A=0,O={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},V={values:G(),array:G(),state:G()},R=e.resetOptions&&e.resetOptions.keepDirtyValues,M=j(a.mode),L=j(a.reValidateMode),U=a.criteriaMode===_.all,B=e=>t=>{clearTimeout(A),A=setTimeout(e,t)},$=async e=>{if(O.isValid||e){let e=a.resolver?w((await es()).errors):await ey(d,!0);e!==o.isValid&&V.state.next({isValid:e})}},K=e=>O.isValidating&&V.state.next({isValidating:e}),W=(e,t)=>{N(o.errors,e,t),V.state.next({errors:o.errors})},q=(e,t,r,a)=>{let s=v(d,e);if(s){let i=v(b,e,y(r)?v(f,e):r);y(i)||a&&a.defaultChecked||t?N(b,e,t?i:eo(s._f)):e_(e,i),x.mount&&$()}},H=(e,t,r,a,s)=>{let i=!1,n=!1,l={name:e};if(!r||a){O.isDirty&&(n=o.isDirty,o.isDirty=l.isDirty=ev(),i=n!==l.isDirty);let r=X(v(f,e),t);n=v(o.dirtyFields,e),r?Y(o.dirtyFields,e):N(o.dirtyFields,e,!0),l.dirtyFields=o.dirtyFields,i=i||O.dirtyFields&&!r!==n}if(r){let t=v(o.touchedFields,e);t||(N(o.touchedFields,e,r),l.touchedFields=o.touchedFields,i=i||O.touchedFields&&t!==r)}return i&&s&&V.state.next(l),i?l:{}},ea=(t,a,s,i)=>{let n=v(o.errors,t),l=O.isValid&&D(a)&&o.isValid!==a;if(e.delayError&&s?(r=B(()=>W(t,s)))(e.delayError):(clearTimeout(A),r=null,s?N(o.errors,t,s):Y(o.errors,t)),(s?!X(n,s):n)||!w(i)||l){let e={...i,...l&&D(a)?{isValid:a}:{},errors:o.errors,name:t};o={...o,...e},V.state.next(e)}K(!1)},es=async e=>a.resolver(b,a.context,el(e||k.mount,d,a.criteriaMode,a.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await es();if(e)for(let r of e){let e=v(t,r);e?N(o.errors,r,e):Y(o.errors,r)}else o.errors=t;return t},ey=async(e,t,r={valid:!0})=>{for(let s in e){let i=e[s];if(i){let{_f:e,...s}=i;if(e){let s=k.array.has(e.name),n=await J(i,b,U,a.shouldUseNativeValidation&&!t,s);if(n[e.name]&&(r.valid=!1,t))break;t||(v(n,e.name)?s?C(o.errors,n,e.name):N(o.errors,e.name,n[e.name]):Y(o.errors,e.name))}s&&await ey(s,t,r)}}return r.valid},ev=(e,t)=>(e&&t&&N(b,e,t),!X(eZ(),f)),eg=(e,t,r)=>T(e,k,{...x.mount?b:y(t)?f:S(e)?{[e]:t}:t},r,t),e_=(e,t,r={})=>{let a=v(d,e),i=t;if(a){let r=a._f;r&&(r.disabled||N(b,e,en(t,r)),i=F(r.ref)&&n(t)?"":t,ee(r.ref)?[...r.ref.options].forEach(e=>e.selected=i.includes(e.value)):r.refs?s(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach(e=>e.checked=e.value===i):P(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||V.values.next({name:e,values:{...b}})))}(r.shouldDirty||r.shouldTouch)&&H(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ek(e)},eb=(e,t,r)=>{for(let a in t){let s=t[a],n=`${e}.${a}`,o=v(d,n);!k.array.has(e)&&Q(s)&&(!o||o._f)||i(s)?e_(n,s,r):eb(n,s,r)}},ex=(e,r,a={})=>{let s=v(d,e),i=k.array.has(e),l=h(r);N(b,e,l),i?(V.array.next({name:e,values:{...b}}),(O.isDirty||O.dirtyFields)&&a.shouldDirty&&V.state.next({name:e,dirtyFields:ei(f,b),isDirty:ev(e,l)})):!s||s._f||n(l)?e_(e,l,a):eb(e,l,a),I(e,k)&&V.state.next({...o}),V.values.next({name:e,values:{...b}}),x.mount||t()},ew=async e=>{let t=e.target,s=t.name,i=!0,n=v(d,s);if(n){let l,c;let f=t.type?eo(n._f):u(e),p=e.type===g.BLUR||e.type===g.FOCUS_OUT,h=!ed(n._f)&&!a.resolver&&!v(o.errors,s)&&!n._f.deps||ef(p,v(o.touchedFields,s),o.isSubmitted,L,M),m=I(s,k,p);N(b,s,f),p?(n._f.onBlur&&n._f.onBlur(e),r&&r(0)):n._f.onChange&&n._f.onChange(e);let y=H(s,f,p,!1),_=!w(y)||m;if(p||V.values.next({name:s,type:e.type,values:{...b}}),h)return O.isValid&&$(),_&&V.state.next({name:s,...m?{}:y});if(!p&&m&&V.state.next({...o}),K(!0),a.resolver){let{errors:e}=await es([s]),t=ec(o.errors,d,s),r=ec(e,d,t.name||s);l=r.error,s=r.name,c=w(e)}else l=(await J(n,b,U,a.shouldUseNativeValidation))[s],(i=isNaN(f)||f===v(b,s,f))&&(l?c=!1:O.isValid&&(c=await ey(d,!0)));i&&(n._f.deps&&ek(n._f.deps),ea(s,c,l,y))}},ek=async(e,t={})=>{let r,s;let i=Z(e);if(K(!0),a.resolver){let t=await em(y(e)?e:i);r=w(t),s=e?!i.some(e=>v(t,e)):r}else e?((s=(await Promise.all(i.map(async e=>{let t=v(d,e);return await ey(t&&t._f?{[e]:t}:t)}))).every(Boolean))||o.isValid)&&$():s=r=await ey(d);return V.state.next({...!S(e)||O.isValid&&r!==o.isValid?{}:{name:e},...a.resolver||!e?{isValid:r}:{},errors:o.errors,isValidating:!1}),t.shouldFocus&&!s&&E(d,e=>e&&v(o.errors,e),e?i:k.mount),s},eZ=e=>{let t={...f,...x.mount?b:{}};return y(e)?t:S(e)?v(t,e):e.map(e=>v(t,e))},eS=(e,t)=>({invalid:!!v((t||o).errors,e),isDirty:!!v((t||o).dirtyFields,e),isTouched:!!v((t||o).touchedFields,e),error:v((t||o).errors,e)}),eT=(e,t={})=>{for(let r of e?Z(e):k.mount)k.mount.delete(r),k.array.delete(r),t.keepValue||(Y(d,r),Y(b,r)),t.keepError||Y(o.errors,r),t.keepDirty||Y(o.dirtyFields,r),t.keepTouched||Y(o.touchedFields,r),a.shouldUnregister||t.keepDefaultValue||Y(f,r);V.values.next({values:{...b}}),V.state.next({...o,...t.keepDirty?{isDirty:ev()}:{}}),t.keepIsValid||$()},eA=(e,t={})=>{let r=v(d,e),s=D(t.disabled);return N(d,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),k.mount.add(e),r?s&&N(b,e,t.disabled?void 0:v(b,e,eo(r._f))):q(e,!0,t.value),{...s?{disabled:t.disabled}:{},...a.shouldUseNativeValidation?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:ew,onBlur:ew,ref:s=>{if(s){eA(e,t),r=v(d,e);let a=y(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,i=et(a),n=r._f.refs||[];(i?n.find(e=>e===a):a===r._f.ref)||(N(d,e,{_f:{...r._f,...i?{refs:[...n.filter(er),a,...Array.isArray(v(f,e))?[{}]:[]],ref:{type:a.type,name:e}}:{ref:a}}}),q(e,!1,void 0,a))}else(r=v(d,e,{}))._f&&(r._f.mount=!1),(a.shouldUnregister||t.shouldUnregister)&&!(c(k.array,e)&&x.action)&&k.unMount.add(e)}}},eO=()=>a.shouldFocusError&&E(d,e=>e&&v(o.errors,e),k.mount),eN=(r,a={})=>{let s=r||f,i=h(s),n=r&&!w(r)?i:f;if(a.keepDefaultValues||(f=s),!a.keepValues){if(a.keepDirtyValues||R)for(let e of k.mount)v(o.dirtyFields,e)?N(n,e,v(b,e)):ex(e,v(n,e));else{if(p&&y(r))for(let e of k.mount){let t=v(d,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(F(e)){let t=e.closest("form");if(t){t.reset();break}}}}d={}}b=e.shouldUnregister?a.keepDefaultValues?h(f):{}:i,V.array.next({values:{...n}}),V.values.next({values:{...n}})}k={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount||t(),x.mount=!O.isValid||!!a.keepIsValid,x.watch=!!e.shouldUnregister,V.state.next({submitCount:a.keepSubmitCount?o.submitCount:0,isDirty:a.keepDirty?o.isDirty:!!(a.keepDefaultValues&&!X(r,f)),isSubmitted:!!a.keepIsSubmitted&&o.isSubmitted,dirtyFields:a.keepDirtyValues?o.dirtyFields:a.keepDefaultValues&&r?ei(f,r):{},touchedFields:a.keepTouched?o.touchedFields:{},errors:a.keepErrors?o.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eV=(e,t)=>eN(z(e)?e(b):e,t);return z(a.defaultValues)&&a.defaultValues().then(e=>{eV(e,a.resetOptions),V.state.next({isLoading:!1})}),{control:{register:eA,unregister:eT,getFieldState:eS,_executeSchema:es,_getWatch:eg,_getDirty:ev,_updateValid:$,_removeUnmounted:()=>{for(let e of k.unMount){let t=v(d,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&eT(e)}k.unMount=new Set},_updateFieldArray:(e,t=[],r,a,s=!0,i=!0)=>{if(a&&r){if(x.action=!0,i&&Array.isArray(v(d,e))){let t=r(v(d,e),a.argA,a.argB);s&&N(d,e,t)}if(i&&Array.isArray(v(o.errors,e))){let t=r(v(o.errors,e),a.argA,a.argB);s&&N(o.errors,e,t),ep(o.errors,e)}if(O.touchedFields&&i&&Array.isArray(v(o.touchedFields,e))){let t=r(v(o.touchedFields,e),a.argA,a.argB);s&&N(o.touchedFields,e,t)}O.dirtyFields&&(o.dirtyFields=ei(f,b)),V.state.next({name:e,isDirty:ev(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else N(b,e,t)},_getFieldArray:t=>m(v(x.mount?b:f,t,e.shouldUnregister?v(f,t,[]):[])),_reset:eN,_updateFormState:e=>{o={...o,...e}},_subjects:V,_proxyFormState:O,get _fields(){return d},get _formValues(){return b},get _state(){return x},set _state(value){x=value},get _defaultValues(){return f},get _names(){return k},set _names(value){k=value},get _formState(){return o},set _formState(value){o=value},get _options(){return a},set _options(value){a={...a,...value}}},trigger:ek,register:eA,handleSubmit:(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let s=h(b);if(V.state.next({isSubmitting:!0}),a.resolver){let{errors:e,values:t}=await es();o.errors=e,s=t}else await ey(d);Y(o.errors,"root"),w(o.errors)?(V.state.next({errors:{}}),await e(s,r)):(t&&await t({...o.errors},r),eO(),setTimeout(eO)),V.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:w(o.errors),submitCount:o.submitCount+1,errors:o.errors})},watch:(e,t)=>z(e)?V.values.subscribe({next:r=>e(eg(void 0,t),r)}):eg(e,t,!0),setValue:ex,getValues:eZ,reset:eV,resetField:(e,t={})=>{v(d,e)&&(y(t.defaultValue)?ex(e,v(f,e)):(ex(e,t.defaultValue),N(f,e,t.defaultValue)),t.keepTouched||Y(o.touchedFields,e),t.keepDirty||(Y(o.dirtyFields,e),o.isDirty=t.defaultValue?ev(e,v(f,e)):ev()),!t.keepError&&(Y(o.errors,e),O.isValid&&$()),V.state.next({...o}))},clearErrors:e=>{e&&Z(e).forEach(e=>Y(o.errors,e)),V.state.next({errors:e?o.errors:{}})},unregister:eT,setError:(e,t,r)=>{let a=(v(d,e,{_f:{}})._f||{}).ref;N(o.errors,e,{...t,ref:a}),V.state.next({name:e,errors:o.errors,isValid:!1}),r&&r.shouldFocus&&a&&a.focus&&a.focus()},setFocus:(e,t={})=>{let r=v(d,e),a=r&&r._f;if(a){let e=a.refs?a.refs[0]:a.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>o(e=>({...e}))),formState:r});let d=t.current.control;return d._options=e,!function(e){let t=a.useRef(e);t.current=e,a.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}({subject:d._subjects.state,next:e=>{k(e,d._proxyFormState,d._updateFormState,!0)&&o({...d._formState})}}),a.useEffect(()=>{e.values&&!X(e.values,d._defaultValues)&&d._reset(e.values,d._options.resetOptions)},[e.values,d]),a.useEffect(()=>{d._state.mount||(d._updateValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),t.current.formState=x(r,d),t.current}},92391:function(e,t,r){r.d(t,{z:function(){return eq}}),(eM=eB||(eB={})).assertEqual=e=>e,eM.assertIs=function(e){},eM.assertNever=function(e){throw Error()},eM.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},eM.getValidEnumValues=e=>{let t=eM.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let a of t)r[a]=e[a];return eM.objectValues(r)},eM.objectValues=e=>eM.objectKeys(e).map(function(t){return e[t]}),eM.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},eM.find=(e,t)=>{for(let r of e)if(t(r))return r},eM.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,eM.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},eM.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t;let a=eB.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{let t=typeof e;switch(t){case"undefined":return a.undefined;case"string":return a.string;case"number":return isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("undefined"!=typeof Map&&e instanceof Map)return a.map;if("undefined"!=typeof Set&&e instanceof Set)return a.set;if("undefined"!=typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}},i=eB.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of"]);class n extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},a=e=>{for(let s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(a);else if("invalid_return_type"===s.code)a(s.returnTypeError);else if("invalid_arguments"===s.code)a(s.argumentsError);else if(0===s.path.length)r._errors.push(t(s));else{let e=r,a=0;for(;ae.message){let t={},r=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):r.push(e(a));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}n.create=e=>{let t=new n(e);return t};let o=(e,t)=>{let r;switch(e.code){case i.invalid_type:r=e.received===a.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case i.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,eB.jsonStringifyReplacer)}`;break;case i.unrecognized_keys:r=`Unrecognized key(s) in object: ${eB.joinValues(e.keys,", ")}`;break;case i.invalid_union:r="Invalid input";break;case i.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${eB.joinValues(e.options)}`;break;case i.invalid_enum_value:r=`Invalid enum value. Expected ${eB.joinValues(e.options)}, received '${e.received}'`;break;case i.invalid_arguments:r="Invalid function arguments";break;case i.invalid_return_type:r="Invalid function return type";break;case i.invalid_date:r="Invalid date";break;case i.invalid_string:"object"==typeof e.validation?"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:eB.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case i.too_small:r="array"===e.type?`Array must contain ${e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be greater than ${e.inclusive?"or equal to ":""}${e.minimum}`:"date"===e.type?`Date must be greater than ${e.inclusive?"or equal to ":""}${new Date(e.minimum)}`:"Invalid input";break;case i.too_big:r="array"===e.type?`Array must contain ${e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be less than ${e.inclusive?"or equal to ":""}${e.maximum}`:"date"===e.type?`Date must be smaller than ${e.inclusive?"or equal to ":""}${new Date(e.maximum)}`:"Invalid input";break;case i.custom:r="Invalid input";break;case i.invalid_intersection_types:r="Intersection results could not be merged";break;case i.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;default:r=t.defaultError,eB.assertNever(e)}return{message:r}},l=o,u=e=>{let{data:t,path:r,errorMaps:a,issueData:s}=e,i=[...r,...s.path||[]],n={...s,path:i},o="",l=a.filter(e=>!!e).slice().reverse();for(let e of l)o=e(n,{data:t,defaultError:o}).message;return{...s,path:i,message:s.message||o}};function d(e,t){let r=u({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,l,o].filter(e=>!!e)});e.common.issues.push(r)}class c{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let a of t){if("aborted"===a.status)return f;"dirty"===a.status&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return c.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let a of t){let{key:t,value:s}=a;if("aborted"===t.status||"aborted"===s.status)return f;"dirty"===t.status&&e.dirty(),"dirty"===s.status&&e.dirty(),(void 0!==s.value||a.alwaysSet)&&(r[t.value]=s.value)}return{status:e.value,value:r}}}let f=Object.freeze({status:"aborted"}),p=e=>({status:"valid",value:e}),h=e=>"aborted"===e.status,m=e=>"dirty"===e.status,y=e=>"valid"===e.status,v=e=>e instanceof Promise;(eL=e$||(e$={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},eL.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class g{constructor(e,t,r,a){this.parent=e,this.data=t,this._path=r,this._key=a}get path(){return this._path.concat(this._key)}}let _=(e,t)=>{if(y(t))return{success:!0,data:t.value};{if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");let t=new n(e.common.issues);return{success:!1,error:t}}};function b(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:a,description:s}=e;if(t&&(r||a))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=a?a:t.defaultError}:{message:null!=r?r:t.defaultError},description:s}}class x{constructor(e){this.spa=this.safeParseAsync,this.superRefine=this._refinement,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.default=this.default.bind(this),this.describe=this.describe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return s(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new c,ctx:{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(v(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let a={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},i=this._parseSync({data:e,path:a.path,parent:a});return _(a,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},a=this._parse({data:e,path:[],parent:r}),i=await (v(a)?a:Promise.resolve(a));return _(r,i)}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,a)=>{let s=e(t),n=()=>a.addIssue({code:i.custom,...r(t)});return"undefined"!=typeof Promise&&s instanceof Promise?s.then(e=>!!e||(n(),!1)):!!s||(n(),!1)})}refinement(e,t){return this._refinement((r,a)=>!!e(r)||(a.addIssue("function"==typeof t?t(r,a):t),!1))}_refinement(e){return new X({schema:this,typeName:eW.ZodEffects,effect:{type:"refinement",refinement:e}})}optional(){return ee.create(this)}nullable(){return et.create(this)}nullish(){return this.optional().nullable()}array(){return P.create(this)}promise(){return Q.create(this)}or(e){return R.create([this,e])}and(e){return L.create(this,e)}transform(e){return new X({schema:this,typeName:eW.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new er({innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:eW.ZodDefault})}brand(){return new ei({typeName:eW.ZodBranded,type:this,...b(void 0)})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let w=/^c[^\s-]{8,}$/i,k=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,Z=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;class S extends x{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement(t=>e.test(t),{validation:t,code:i.invalid_string,...e$.errToObj(r)}),this.nonempty=e=>this.min(1,e$.errToObj(e)),this.trim=()=>new S({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}_parse(e){let t;let r=this._getType(e);if(r!==a.string){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.string,received:t.parsedType}),f}let s=new c;for(let r of this._def.checks)if("min"===r.kind)e.data.lengthr.value&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"string",inclusive:!0,message:r.message}),s.dirty());else if("email"===r.kind)Z.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"email",code:i.invalid_string,message:r.message}),s.dirty());else if("uuid"===r.kind)k.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"uuid",code:i.invalid_string,message:r.message}),s.dirty());else if("cuid"===r.kind)w.test(e.data)||(d(t=this._getOrReturnCtx(e,t),{validation:"cuid",code:i.invalid_string,message:r.message}),s.dirty());else if("url"===r.kind)try{new URL(e.data)}catch(a){d(t=this._getOrReturnCtx(e,t),{validation:"url",code:i.invalid_string,message:r.message}),s.dirty()}else if("regex"===r.kind){r.regex.lastIndex=0;let a=r.regex.test(e.data);a||(d(t=this._getOrReturnCtx(e,t),{validation:"regex",code:i.invalid_string,message:r.message}),s.dirty())}else"trim"===r.kind?e.data=e.data.trim():"startsWith"===r.kind?e.data.startsWith(r.value)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_string,validation:{startsWith:r.value},message:r.message}),s.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_string,validation:{endsWith:r.value},message:r.message}),s.dirty()):eB.assertNever(r);return{status:s.value,value:e.data}}_addCheck(e){return new S({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...e$.errToObj(e)})}url(e){return this._addCheck({kind:"url",...e$.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...e$.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...e$.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...e$.errToObj(t)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...e$.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...e$.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...e$.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...e$.errToObj(t)})}length(e,t){return this.min(e,t).max(e,t)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew S({checks:[],typeName:eW.ZodString,...b(e)});class T extends x{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;let r=this._getType(e);if(r!==a.number){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.number,received:t.parsedType}),f}let s=new c;for(let r of this._def.checks)if("int"===r.kind)eB.isInteger(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_type,expected:"integer",received:"float",message:r.message}),s.dirty());else if("min"===r.kind){let a=r.inclusive?e.datar.value:e.data>=r.value;a&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,message:r.message}),s.dirty())}else"multipleOf"===r.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,s=r>a?r:a,i=parseInt(e.toFixed(s).replace(".","")),n=parseInt(t.toFixed(s).replace(".",""));return i%n/Math.pow(10,s)}(e.data,r.value)&&(d(t=this._getOrReturnCtx(e,t),{code:i.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):eB.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e$.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e$.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e$.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e$.toString(t))}setLimit(e,t,r,a){return new T({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:e$.toString(a)}]})}_addCheck(e){return new T({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:e$.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:e$.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:e$.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:e$.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:e$.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e$.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind)}}T.create=e=>new T({checks:[],typeName:eW.ZodNumber,...b(e)});class A extends x{_parse(e){let t=this._getType(e);if(t!==a.bigint){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.bigint,received:t.parsedType}),f}return p(e.data)}}A.create=e=>new A({typeName:eW.ZodBigInt,...b(e)});class O extends x{_parse(e){let t=this._getType(e);if(t!==a.boolean){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.boolean,received:t.parsedType}),f}return p(e.data)}}O.create=e=>new O({typeName:eW.ZodBoolean,...b(e)});class N extends x{_parse(e){let t;let r=this._getType(e);if(r!==a.date){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.date,received:t.parsedType}),f}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_date}),f}let s=new c;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,message:r.message,inclusive:!0,maximum:r.value,type:"date"}),s.dirty()):eB.assertNever(r);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new N({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:e$.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:e$.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew N({checks:[],typeName:eW.ZodDate,...b(e)});class V extends x{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.undefined,received:t.parsedType}),f}return p(e.data)}}V.create=e=>new V({typeName:eW.ZodUndefined,...b(e)});class E extends x{_parse(e){let t=this._getType(e);if(t!==a.null){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.null,received:t.parsedType}),f}return p(e.data)}}E.create=e=>new E({typeName:eW.ZodNull,...b(e)});class j extends x{constructor(){super(...arguments),this._any=!0}_parse(e){return p(e.data)}}j.create=e=>new j({typeName:eW.ZodAny,...b(e)});class I extends x{constructor(){super(...arguments),this._unknown=!0}_parse(e){return p(e.data)}}I.create=e=>new I({typeName:eW.ZodUnknown,...b(e)});class C extends x{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.never,received:t.parsedType}),f}}C.create=e=>new C({typeName:eW.ZodNever,...b(e)});class D extends x{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.void,received:t.parsedType}),f}return p(e.data)}}D.create=e=>new D({typeName:eW.ZodVoid,...b(e)});class P extends x{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),s=this._def;if(t.parsedType!==a.array)return d(t,{code:i.invalid_type,expected:a.array,received:t.parsedType}),f;if(null!==s.minLength&&t.data.lengths.maxLength.value&&(d(t,{code:i.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,message:s.maxLength.message}),r.dirty()),t.common.async)return Promise.all(t.data.map((e,r)=>s.type._parseAsync(new g(t,e,t.path,r)))).then(e=>c.mergeArray(r,e));let n=t.data.map((e,r)=>s.type._parseSync(new g(t,e,t.path,r)));return c.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new P({...this._def,minLength:{value:e,message:e$.toString(t)}})}max(e,t){return new P({...this._def,maxLength:{value:e,message:e$.toString(t)}})}length(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}P.create=(e,t)=>new P({type:e,minLength:null,maxLength:null,typeName:eW.ZodArray,...b(t)}),(eK||(eK={})).mergeShapes=(e,t)=>({...e,...t});let z=e=>t=>new F({...e,shape:()=>({...e.shape(),...t})});class F extends x{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=z(this._def),this.extend=z(this._def)}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=eB.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==a.object){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),f}let{status:r,ctx:s}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof C&&"strip"===this._def.unknownKeys))for(let e in s.data)o.includes(e)||l.push(e);let u=[];for(let e of o){let t=n[e],r=s.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new g(s,r,s.path,e)),alwaysSet:e in s.data})}if(this._def.catchall instanceof C){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of l)u.push({key:{status:"valid",value:e},value:{status:"valid",value:s.data[e]}});else if("strict"===e)l.length>0&&(d(s,{code:i.unrecognized_keys,keys:l}),r.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of l){let r=s.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new g(s,r,s.path,t)),alwaysSet:t in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of u){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>c.mergeObjectSync(r,e)):c.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return e$.errToObj,new F({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var a,s,i,n;let o=null!==(i=null===(s=(a=this._def).errorMap)||void 0===s?void 0:s.call(a,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(n=e$.errToObj(e).message)&&void 0!==n?n:o}:{message:o}}}:{}})}strip(){return new F({...this._def,unknownKeys:"strip"})}passthrough(){return new F({...this._def,unknownKeys:"passthrough"})}setKey(e,t){return this.augment({[e]:t})}merge(e){let t=new F({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>eK.mergeShapes(this._def.shape(),e._def.shape()),typeName:eW.ZodObject});return t}catchall(e){return new F({...this._def,catchall:e})}pick(e){let t={};return eB.objectKeys(e).map(e=>{this.shape[e]&&(t[e]=this.shape[e])}),new F({...this._def,shape:()=>t})}omit(e){let t={};return eB.objectKeys(this.shape).map(r=>{-1===eB.objectKeys(e).indexOf(r)&&(t[r]=this.shape[r])}),new F({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof F){let r={};for(let a in t.shape){let s=t.shape[a];r[a]=ee.create(e(s))}return new F({...t._def,shape:()=>r})}return t instanceof P?P.create(e(t.element)):t instanceof ee?ee.create(e(t.unwrap())):t instanceof et?et.create(e(t.unwrap())):t instanceof U?U.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};if(e)eB.objectKeys(this.shape).map(r=>{-1===eB.objectKeys(e).indexOf(r)?t[r]=this.shape[r]:t[r]=this.shape[r].optional()});else for(let e in this.shape){let r=this.shape[e];t[e]=r.optional()}return new F({...this._def,shape:()=>t})}required(){let e={};for(let t in this.shape){let r=this.shape[t],a=r;for(;a instanceof ee;)a=a._def.innerType;e[t]=a}return new F({...this._def,shape:()=>e})}keyof(){return J(eB.objectKeys(this.shape))}}F.create=(e,t)=>new F({shape:()=>e,unknownKeys:"strip",catchall:C.create(),typeName:eW.ZodObject,...b(t)}),F.strictCreate=(e,t)=>new F({shape:()=>e,unknownKeys:"strict",catchall:C.create(),typeName:eW.ZodObject,...b(t)}),F.lazycreate=(e,t)=>new F({shape:e,unknownKeys:"strip",catchall:C.create(),typeName:eW.ZodObject,...b(t)});class R extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new n(e.ctx.common.issues));return d(t,{code:i.invalid_union,unionErrors:r}),f});{let e;let a=[];for(let s of r){let r={...t,common:{...t.common,issues:[]},parent:null},i=s._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&a.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let s=a.map(e=>new n(e));return d(t,{code:i.invalid_union,unionErrors:s}),f}}get options(){return this._def.options}}R.create=(e,t)=>new R({options:e,typeName:eW.ZodUnion,...b(t)});class M extends x{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.object)return d(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),f;let r=this.discriminator,s=t.data[r],n=this.options.get(s);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(d(t,{code:i.invalid_union_discriminator,options:this.validDiscriminatorValues,path:[r]}),f)}get discriminator(){return this._def.discriminator}get validDiscriminatorValues(){return Array.from(this.options.keys())}get options(){return this._def.options}static create(e,t,r){let a=new Map;try{t.forEach(t=>{let r=t.shape[e].value;a.set(r,t)})}catch(e){throw Error("The discriminator value could not be extracted from all the provided schemas")}if(a.size!==t.length)throw Error("Some of the discriminator values are not unique");return new M({typeName:eW.ZodDiscriminatedUnion,discriminator:e,options:a,...b(r)})}}class L extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(h(e)||h(n))return f;let o=function e(t,r){let i=s(t),n=s(r);if(t===r)return{valid:!0,data:t};if(i===a.object&&n===a.object){let a=eB.objectKeys(r),s=eB.objectKeys(t).filter(e=>-1!==a.indexOf(e)),i={...t,...r};for(let a of s){let s=e(t[a],r[a]);if(!s.valid)return{valid:!1};i[a]=s.data}return{valid:!0,data:i}}if(i===a.array&&n===a.array){if(t.length!==r.length)return{valid:!1};let a=[];for(let s=0;sn(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}L.create=(e,t,r)=>new L({left:e,right:t,typeName:eW.ZodIntersection,...b(r)});class U extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.array)return d(r,{code:i.invalid_type,expected:a.array,received:r.parsedType}),f;if(r.data.lengththis._def.items.length&&(d(r,{code:i.too_big,maximum:this._def.items.length,inclusive:!0,type:"array"}),t.dirty());let n=r.data.map((e,t)=>{let a=this._def.items[t]||this._def.rest;return a?a._parse(new g(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>c.mergeArray(t,e)):c.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new U({...this._def,rest:e})}}U.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new U({items:e,typeName:eW.ZodTuple,rest:null,...b(t)})};class B extends x{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.object)return d(r,{code:i.invalid_type,expected:a.object,received:r.parsedType}),f;let s=[],n=this._def.keyType,o=this._def.valueType;for(let e in r.data)s.push({key:n._parse(new g(r,e,r.path,e)),value:o._parse(new g(r,r.data[e],r.path,e))});return r.common.async?c.mergeObjectAsync(t,s):c.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,r){return new B(t instanceof x?{keyType:e,valueType:t,typeName:eW.ZodRecord,...b(r)}:{keyType:S.create(),valueType:e,typeName:eW.ZodRecord,...b(t)})}}class $ extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.map)return d(r,{code:i.invalid_type,expected:a.map,received:r.parsedType}),f;let s=this._def.keyType,n=this._def.valueType,o=[...r.data.entries()].map(([e,t],a)=>({key:s._parse(new g(r,e,r.path,[a,"key"])),value:n._parse(new g(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let a=await r.key,s=await r.value;if("aborted"===a.status||"aborted"===s.status)return f;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let a=r.key,s=r.value;if("aborted"===a.status||"aborted"===s.status)return f;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}}}}$.create=(e,t,r)=>new $({valueType:t,keyType:e,typeName:eW.ZodMap,...b(r)});class K extends x{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.set)return d(r,{code:i.invalid_type,expected:a.set,received:r.parsedType}),f;let s=this._def;null!==s.minSize&&r.data.sizes.maxSize.value&&(d(r,{code:i.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,message:s.maxSize.message}),t.dirty());let n=this._def.valueType;function o(e){let r=new Set;for(let a of e){if("aborted"===a.status)return f;"dirty"===a.status&&t.dirty(),r.add(a.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>n._parse(new g(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new K({...this._def,minSize:{value:e,message:e$.toString(t)}})}max(e,t){return new K({...this._def,maxSize:{value:e,message:e$.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}K.create=(e,t)=>new K({valueType:e,minSize:null,maxSize:null,typeName:eW.ZodSet,...b(t)});class W extends x{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.function)return d(t,{code:i.invalid_type,expected:a.function,received:t.parsedType}),f;function r(e,r){return u({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,o].filter(e=>!!e),issueData:{code:i.invalid_arguments,argumentsError:r}})}function s(e,r){return u({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,o].filter(e=>!!e),issueData:{code:i.invalid_return_type,returnTypeError:r}})}let c={errorMap:t.common.contextualErrorMap},h=t.data;return this._def.returns instanceof Q?p(async(...e)=>{let t=new n([]),a=await this._def.args.parseAsync(e,c).catch(a=>{throw t.addIssue(r(e,a)),t}),i=await h(...a),o=await this._def.returns._def.type.parseAsync(i,c).catch(e=>{throw t.addIssue(s(i,e)),t});return o}):p((...e)=>{let t=this._def.args.safeParse(e,c);if(!t.success)throw new n([r(e,t.error)]);let a=h(...t.data),i=this._def.returns.safeParse(a,c);if(!i.success)throw new n([s(a,i.error)]);return i.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new W({...this._def,args:U.create(e).rest(I.create())})}returns(e){return new W({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,r){return new W({args:e||U.create([]).rest(I.create()),returns:t||I.create(),typeName:eW.ZodFunction,...b(r)})}}class q extends x{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.getter();return r._parse({data:t.data,path:t.path,parent:t})}}q.create=(e,t)=>new q({getter:e,typeName:eW.ZodLazy,...b(t)});class H extends x{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_literal,expected:this._def.value}),f}return{status:"valid",value:e.data}}get value(){return this._def.value}}function J(e,t){return new Y({values:e,typeName:eW.ZodEnum,...b(t)})}H.create=(e,t)=>new H({value:e,typeName:eW.ZodLiteral,...b(t)});class Y extends x{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{expected:eB.joinValues(r),received:t.parsedType,code:i.invalid_type}),f}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{received:t.data,code:i.invalid_enum_value,options:r}),f}return p(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}}Y.create=J;class G extends x{_parse(e){let t=eB.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==a.string&&r.parsedType!==a.number){let e=eB.objectValues(t);return d(r,{expected:eB.joinValues(e),received:r.parsedType,code:i.invalid_type}),f}if(-1===t.indexOf(e.data)){let e=eB.objectValues(t);return d(r,{received:r.data,code:i.invalid_enum_value,options:e}),f}return p(e.data)}get enum(){return this._def.values}}G.create=(e,t)=>new G({values:e,typeName:eW.ZodNativeEnum,...b(t)});class Q extends x{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.promise&&!1===t.common.async)return d(t,{code:i.invalid_type,expected:a.promise,received:t.parsedType}),f;let r=t.parsedType===a.promise?t.data:Promise.resolve(t.data);return p(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Q.create=(e,t)=>new Q({type:e,typeName:eW.ZodPromise,...b(t)});class X extends x{innerType(){return this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),a=this._def.effect||null;if("preprocess"===a.type){let e=a.transform(r.data);return r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}let s={addIssue:e=>{d(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),"refinement"===a.type){let e=e=>{let t=a.refinement(e,s);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?f:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===a.status?f:("dirty"===a.status&&t.dirty(),e(a.value),{status:t.value,value:a.value})}}if("transform"===a.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>y(e)?Promise.resolve(a.transform(e.value,s)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!y(e))return e;let i=a.transform(e.value,s);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}}eB.assertNever(a)}}X.create=(e,t,r)=>new X({schema:e,typeName:eW.ZodEffects,effect:t,...b(r)}),X.createWithPreprocess=(e,t,r)=>new X({schema:t,effect:{type:"preprocess",transform:e},typeName:eW.ZodEffects,...b(r)});class ee extends x{_parse(e){let t=this._getType(e);return t===a.undefined?p(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ee.create=(e,t)=>new ee({innerType:e,typeName:eW.ZodOptional,...b(t)});class et extends x{_parse(e){let t=this._getType(e);return t===a.null?p(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}et.create=(e,t)=>new et({innerType:e,typeName:eW.ZodNullable,...b(t)});class er extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===a.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}er.create=(e,t)=>new ee({innerType:e,typeName:eW.ZodOptional,...b(t)});class ea extends x{_parse(e){let t=this._getType(e);if(t!==a.nan){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.nan,received:t.parsedType}),f}return{status:"valid",value:e.data}}}ea.create=e=>new ea({typeName:eW.ZodNaN,...b(e)});let es=Symbol("zod_brand");class ei extends x{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}let en=(e,t={},r)=>e?j.create().superRefine((a,s)=>{if(!e(a)){let e="function"==typeof t?t(a):t,i="string"==typeof e?{message:e}:e;s.addIssue({code:"custom",...i,fatal:r})}}):j.create(),eo={object:F.lazycreate};(eU=eW||(eW={})).ZodString="ZodString",eU.ZodNumber="ZodNumber",eU.ZodNaN="ZodNaN",eU.ZodBigInt="ZodBigInt",eU.ZodBoolean="ZodBoolean",eU.ZodDate="ZodDate",eU.ZodUndefined="ZodUndefined",eU.ZodNull="ZodNull",eU.ZodAny="ZodAny",eU.ZodUnknown="ZodUnknown",eU.ZodNever="ZodNever",eU.ZodVoid="ZodVoid",eU.ZodArray="ZodArray",eU.ZodObject="ZodObject",eU.ZodUnion="ZodUnion",eU.ZodDiscriminatedUnion="ZodDiscriminatedUnion",eU.ZodIntersection="ZodIntersection",eU.ZodTuple="ZodTuple",eU.ZodRecord="ZodRecord",eU.ZodMap="ZodMap",eU.ZodSet="ZodSet",eU.ZodFunction="ZodFunction",eU.ZodLazy="ZodLazy",eU.ZodLiteral="ZodLiteral",eU.ZodEnum="ZodEnum",eU.ZodEffects="ZodEffects",eU.ZodNativeEnum="ZodNativeEnum",eU.ZodOptional="ZodOptional",eU.ZodNullable="ZodNullable",eU.ZodDefault="ZodDefault",eU.ZodPromise="ZodPromise",eU.ZodBranded="ZodBranded";let el=S.create,eu=T.create,ed=ea.create,ec=A.create,ef=O.create,ep=N.create,eh=V.create,em=E.create,ey=j.create,ev=I.create,eg=C.create,e_=D.create,eb=P.create,ex=F.create,ew=F.strictCreate,ek=R.create,eZ=M.create,eS=L.create,eT=U.create,eA=B.create,eO=$.create,eN=K.create,eV=W.create,eE=q.create,ej=H.create,eI=Y.create,eC=G.create,eD=Q.create,eP=X.create,ez=ee.create,eF=et.create,eR=X.createWithPreprocess;var eM,eL,eU,eB,e$,eK,eW,eq=Object.freeze({__proto__:null,getParsedType:s,ZodParsedType:a,defaultErrorMap:o,setErrorMap:function(e){l=e},getErrorMap:function(){return l},makeIssue:u,EMPTY_PATH:[],addIssueToContext:d,ParseStatus:c,INVALID:f,DIRTY:e=>({status:"dirty",value:e}),OK:p,isAborted:h,isDirty:m,isValid:y,isAsync:v,ZodType:x,ZodString:S,ZodNumber:T,ZodBigInt:A,ZodBoolean:O,ZodDate:N,ZodUndefined:V,ZodNull:E,ZodAny:j,ZodUnknown:I,ZodNever:C,ZodVoid:D,ZodArray:P,get objectUtil(){return eK},ZodObject:F,ZodUnion:R,ZodDiscriminatedUnion:M,ZodIntersection:L,ZodTuple:U,ZodRecord:B,ZodMap:$,ZodSet:K,ZodFunction:W,ZodLazy:q,ZodLiteral:H,ZodEnum:Y,ZodNativeEnum:G,ZodPromise:Q,ZodEffects:X,ZodTransformer:X,ZodOptional:ee,ZodNullable:et,ZodDefault:er,ZodNaN:ea,BRAND:es,ZodBranded:ei,custom:en,Schema:x,ZodSchema:x,late:eo,get ZodFirstPartyTypeKind(){return eW},any:ey,array:eb,bigint:ec,boolean:ef,date:ep,discriminatedUnion:eZ,effect:eP,enum:eI,function:eV,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>en(t=>t instanceof e,t,!0),intersection:eS,lazy:eE,literal:ej,map:eO,nan:ed,nativeEnum:eC,never:eg,null:em,nullable:eF,number:eu,object:ex,oboolean:()=>ef().optional(),onumber:()=>eu().optional(),optional:ez,ostring:()=>el().optional(),preprocess:eR,promise:eD,record:eA,set:eN,strictObject:ew,string:el,transformer:eP,tuple:eT,undefined:eh,union:ek,unknown:ev,void:e_,NEVER:f,ZodIssueCode:i,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:n})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/388-0639392dd59206df.js b/pilot/server/static/_next/static/chunks/388-0639392dd59206df.js deleted file mode 100644 index c2a2cabfa..000000000 --- a/pilot/server/static/_next/static/chunks/388-0639392dd59206df.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[388],{78141:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=i},73220:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"}),"Chat");t.Z=i},59970:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.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");t.Z=i},79214:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M7 9H2V7h5v2zm0 3H2v2h5v-2zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59 20.59 19zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3zM2 19h10v-2H2v2z"}),"ManageSearch");t.Z=i},30929:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"m14.17 13.71 1.4-2.42c.09-.15.05-.34-.08-.45l-1.48-1.16c.03-.22.05-.45.05-.68s-.02-.46-.05-.69l1.48-1.16c.13-.11.17-.3.08-.45l-1.4-2.42c-.09-.15-.27-.21-.43-.15l-1.74.7c-.36-.28-.75-.51-1.18-.69l-.26-1.85c-.03-.16-.18-.29-.35-.29h-2.8c-.17 0-.32.13-.35.3L6.8 4.15c-.42.18-.82.41-1.18.69l-1.74-.7c-.16-.06-.34 0-.43.15l-1.4 2.42c-.09.15-.05.34.08.45l1.48 1.16c-.03.22-.05.45-.05.68s.02.46.05.69l-1.48 1.16c-.13.11-.17.3-.08.45l1.4 2.42c.09.15.27.21.43.15l1.74-.7c.36.28.75.51 1.18.69l.26 1.85c.03.16.18.29.35.29h2.8c.17 0 .32-.13.35-.3l.26-1.85c.42-.18.82-.41 1.18-.69l1.74.7c.16.06.34 0 .43-.15zM8.81 11c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm13.11 7.67-.96-.74c.02-.14.04-.29.04-.44 0-.15-.01-.3-.04-.44l.95-.74c.08-.07.11-.19.05-.29l-.9-1.55c-.05-.1-.17-.13-.28-.1l-1.11.45c-.23-.18-.48-.33-.76-.44l-.17-1.18c-.01-.12-.11-.2-.21-.2h-1.79c-.11 0-.21.08-.22.19l-.17 1.18c-.27.12-.53.26-.76.44l-1.11-.45c-.1-.04-.22 0-.28.1l-.9 1.55c-.05.1-.04.22.05.29l.95.74c-.02.14-.03.29-.03.44 0 .15.01.3.03.44l-.95.74c-.08.07-.11.19-.05.29l.9 1.55c.05.1.17.13.28.1l1.11-.45c.23.18.48.33.76.44l.17 1.18c.02.11.11.19.22.19h1.79c.11 0 .21-.08.22-.19l.17-1.18c.27-.12.53-.26.75-.44l1.12.45c.1.04.22 0 .28-.1l.9-1.55c.06-.09.03-.21-.05-.28zm-4.29.16c-.74 0-1.35-.6-1.35-1.35s.6-1.35 1.35-1.35 1.35.6 1.35 1.35-.61 1.35-1.35 1.35z"}),"MiscellaneousServices");t.Z=i},99011:function(e,t,n){var r=n(78997);t.Z=void 0;var o=r(n(76906)),a=n(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2zm-2-1h8v-2H5v2zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5zm4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6l-.63 1.37zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94L19 6z"}),"TipsAndUpdates");t.Z=i},58927:function(e,t,n){n.d(t,{Z:function(){return _}});var r=n(46750),o=n(40431),a=n(86006),i=n(89791),l=n(47562),c=n(46319),u=n(53832),s=n(49657),d=n(88930),f=n(50645),v=n(47093),p=n(18587);function m(e){return(0,p.d6)("MuiChip",e)}let h=(0,p.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),b=a.createContext({disabled:void 0,variant:void 0,color:void 0});var g=n(326),y=n(9268);let C=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],x=e=>{let{disabled:t,size:n,color:r,clickable:o,variant:a,focusVisible:i}=e,c={root:["root",t&&"disabled",r&&`color${(0,u.Z)(r)}`,n&&`size${(0,u.Z)(n)}`,a&&`variant${(0,u.Z)(a)}`,o&&"clickable"],action:["action",t&&"disabled",i&&"focusVisible"],label:["label",n&&`label${(0,u.Z)(n)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(c,m,{})},Z=(0,f.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var n,r,a,i;return[(0,o.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${h.disabled}`]:{color:null==(n=e.variants[`${t.variant}Disabled`])||null==(n=n[t.color])?void 0:n.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(i=e.variants[t.variant])||null==(i=i[t.color])?void 0:i.color}]:[null==(r=e.variants[t.variant])?void 0:r[t.color],{[`&.${h.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]]}),$=(0,f.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,o.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),k=(0,f.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var n,r,o,a;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color]},{"&:active":null==(o=e.variants[`${t.variant}Active`])?void 0:o[t.color]},{[`&.${h.disabled}`]:null==(a=e.variants[`${t.variant}Disabled`])?void 0:a[t.color]}]}),w=(0,f.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),E=(0,f.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),S=a.forwardRef(function(e,t){let n=(0,d.Z)({props:e,name:"JoyChip"}),{children:l,className:u,color:f="primary",onClick:p,disabled:m=!1,size:h="md",variant:S="solid",startDecorator:_,endDecorator:R,component:I,slots:M={},slotProps:P={}}=n,N=(0,r.Z)(n,C),{getColor:T}=(0,v.VT)(S),z=T(e.color,f),L=!!p||!!P.action,D=(0,o.Z)({},n,{disabled:m,size:h,color:z,variant:S,clickable:L,focusVisible:!1}),O="function"==typeof P.action?P.action(D):P.action,A=a.useRef(null),{focusVisible:K,getRootProps:H}=(0,c.Z)((0,o.Z)({},O,{disabled:m,rootRef:A}));D.focusVisible=K;let j=x(D),B=(0,o.Z)({},N,{component:I,slots:M,slotProps:P}),[W,G]=(0,g.Z)("root",{ref:t,className:(0,i.Z)(j.root,u),elementType:Z,externalForwardedProps:B,ownerState:D}),[V,X]=(0,g.Z)("label",{className:j.label,elementType:$,externalForwardedProps:B,ownerState:D}),F=(0,s.Z)(X.id),[q,Y]=(0,g.Z)("action",{className:j.action,elementType:k,externalForwardedProps:B,ownerState:D,getSlotProps:H,additionalProps:{"aria-labelledby":F,as:null==O?void 0:O.component,onClick:p}}),[J,Q]=(0,g.Z)("startDecorator",{className:j.startDecorator,elementType:w,externalForwardedProps:B,ownerState:D}),[U,ee]=(0,g.Z)("endDecorator",{className:j.endDecorator,elementType:E,externalForwardedProps:B,ownerState:D}),et=a.useMemo(()=>({disabled:m,variant:S,color:"context"===z?void 0:z}),[z,m,S]);return(0,y.jsx)(b.Provider,{value:et,children:(0,y.jsxs)(W,(0,o.Z)({},G,{children:[L&&(0,y.jsx)(q,(0,o.Z)({},Y)),(0,y.jsx)(V,(0,o.Z)({},X,{id:F,children:l})),_&&(0,y.jsx)(J,(0,o.Z)({},Q,{children:_})),R&&(0,y.jsx)(U,(0,o.Z)({},ee,{children:R}))]}))})});var _=S},62483:function(e,t,n){n.d(t,{Z:function(){return tO}});var r=n(31533),o=n(40431),a=n(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},l=n(1240),c=a.forwardRef(function(e,t){return a.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:i}))}),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},s=a.forwardRef(function(e,t){return a.createElement(l.Z,(0,o.Z)({},e,{ref:t,icon:u}))}),d=n(8683),f=n.n(d),v=n(65877),p=n(88684),m=n(60456),h=n(965),b=n(89301),g=n(98861),y=n(63940),C=n(78641),x=(0,a.createContext)(null),Z=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,l=e.active,c=e.tabKey,u=e.children;return a.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!l,style:o,className:f()(n,l&&"".concat(n,"-active"),r),ref:t},u)}),$=["key","forceRender","style","className"];function k(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,l=e.destroyInactiveTabPane,c=a.useContext(x),u=c.prefixCls,s=c.tabs,d=r.tabPane,m="".concat(u,"-tabpane");return a.createElement("div",{className:f()("".concat(u,"-content-holder"))},a.createElement("div",{className:f()("".concat(u,"-content"),"".concat(u,"-content-").concat(i),(0,v.Z)({},"".concat(u,"-content-animated"),d))},s.map(function(e){var i=e.key,c=e.forceRender,u=e.style,s=e.className,v=(0,b.Z)(e,$),h=i===n;return a.createElement(C.ZP,(0,o.Z)({key:i,visible:h,forceRender:c,removeOnLeave:!!l,leavedClassName:"".concat(m,"-hidden")},r.tabPaneMotion),function(e,n){var r=e.style,l=e.className;return a.createElement(Z,(0,o.Z)({},v,{prefixCls:m,id:t,tabKey:i,animated:d,active:h,style:(0,p.Z)((0,p.Z)({},u),r),className:f()(s,l),ref:n}))})})))}var w=n(90151),E=n(29333),S=n(23254),_=n(66643),R=n(92510),I={width:0,height:0,left:0,top:0};function M(e,t){var n=a.useRef(e),r=a.useState({}),o=(0,m.Z)(r,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,o({})}]}var P=n(38358);function N(e){var t=(0,a.useState)(0),n=(0,m.Z)(t,2),r=n[0],o=n[1],i=(0,a.useRef)(0),l=(0,a.useRef)();return l.current=e,(0,P.o)(function(){var e;null===(e=l.current)||void 0===e||e.call(l)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}var T={width:0,height:0,left:0,top:0,right:0};function z(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function L(e){return String(e).replace(/"/g,"TABS_DQ")}var D=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return r&&!1!==r.showAdd?a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}),O=a.forwardRef(function(e,t){var n,r=e.position,o=e.prefixCls,i=e.extra;if(!i)return null;var l={};return"object"!==(0,h.Z)(i)||a.isValidElement(i)?l.right=i:l=i,"right"===r&&(n=l.right),"left"===r&&(n=l.left),n?a.createElement("div",{className:"".concat(o,"-extra-content"),ref:t},n):null}),A=n(90214),K=n(48580),H=K.Z.ESC,j=K.Z.TAB,B=(0,a.forwardRef)(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=(0,a.useMemo)(function(){return"function"==typeof n?n():n},[n]),l=(0,R.sQ)(t,null==i?void 0:i.ref);return a.createElement(a.Fragment,null,r&&a.createElement("div",{className:"".concat(o,"-arrow")}),a.cloneElement(i,{ref:(0,R.Yr)(i)?l:void 0}))}),W={adjustX:1,adjustY:1},G=[0,0],V={topLeft:{points:["bl","tl"],overflow:W,offset:[0,-4],targetOffset:G},top:{points:["bc","tc"],overflow:W,offset:[0,-4],targetOffset:G},topRight:{points:["br","tr"],overflow:W,offset:[0,-4],targetOffset:G},bottomLeft:{points:["tl","bl"],overflow:W,offset:[0,4],targetOffset:G},bottom:{points:["tc","bc"],overflow:W,offset:[0,4],targetOffset:G},bottomRight:{points:["tr","br"],overflow:W,offset:[0,4],targetOffset:G}},X=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],F=a.forwardRef(function(e,t){var n,r,i,l,c,u,s,d,p,h,g,y,C,x,Z=e.arrow,$=void 0!==Z&&Z,k=e.prefixCls,w=void 0===k?"rc-dropdown":k,E=e.transitionName,S=e.animation,I=e.align,M=e.placement,P=e.placements,N=e.getPopupContainer,T=e.showAction,z=e.hideAction,L=e.overlayClassName,D=e.overlayStyle,O=e.visible,K=e.trigger,W=void 0===K?["hover"]:K,G=e.autoFocus,F=e.overlay,q=e.children,Y=e.onVisibleChange,J=(0,b.Z)(e,X),Q=a.useState(),U=(0,m.Z)(Q,2),ee=U[0],et=U[1],en="visible"in e?O:ee,er=a.useRef(null),eo=a.useRef(null),ea=a.useRef(null);a.useImperativeHandle(t,function(){return er.current});var ei=function(e){et(e),null==Y||Y(e)};r=(n={visible:en,triggerRef:ea,onVisibleChange:ei,autoFocus:G,overlayRef:eo}).visible,i=n.triggerRef,l=n.onVisibleChange,c=n.autoFocus,u=n.overlayRef,s=a.useRef(!1),d=function(){if(r){var e,t;null===(e=i.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==l||l(!1)}},p=function(){var e;return null!==(e=u.current)&&void 0!==e&&!!e.focus&&(u.current.focus(),s.current=!0,!0)},h=function(e){switch(e.keyCode){case H:d();break;case j:var t=!1;s.current||(t=p()),t?e.preventDefault():d()}},a.useEffect(function(){return r?(window.addEventListener("keydown",h),c&&(0,_.Z)(p,3),function(){window.removeEventListener("keydown",h),s.current=!1}):function(){s.current=!1}},[r]);var el=function(){return a.createElement(B,{ref:eo,overlay:F,prefixCls:w,arrow:$})},ec=a.cloneElement(q,{className:f()(null===(x=q.props)||void 0===x?void 0:x.className,en&&(void 0!==(g=e.openClassName)?g:"".concat(w,"-open"))),ref:(0,R.Yr)(q)?(0,R.sQ)(ea,q.ref):void 0}),eu=z;return eu||-1===W.indexOf("contextMenu")||(eu=["click"]),a.createElement(A.Z,(0,o.Z)({builtinPlacements:void 0===P?V:P},J,{prefixCls:w,ref:er,popupClassName:f()(L,(0,v.Z)({},"".concat(w,"-show-arrow"),$)),popupStyle:D,action:W,showAction:T,hideAction:eu,popupPlacement:void 0===M?"bottomLeft":M,popupAlign:I,popupTransitionName:E,popupAnimation:S,popupVisible:en,stretch:(y=e.minOverlayWidthMatchTrigger,C=e.alignPoint,"minOverlayWidthMatchTrigger"in e?y:!C)?"minWidth":"",popup:"function"==typeof F?el:el(),onPopupVisibleChange:ei,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:N}),ec)}),q=n(35960),Y=n(5004),J=n(8431),Q=n(81027),U=a.createContext(null);function ee(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function et(e){return ee(a.useContext(U),e)}var en=n(55567),er=["children","locked"],eo=a.createContext(null);function ea(e){var t=e.children,n=e.locked,r=(0,b.Z)(e,er),o=a.useContext(eo),i=(0,en.Z)(function(){var e;return e=(0,p.Z)({},o),Object.keys(r).forEach(function(t){var n=r[t];void 0!==n&&(e[t]=n)}),e},[o,r],function(e,t){return!n&&(e[0]!==t[0]||!(0,Q.Z)(e[1],t[1],!0))});return a.createElement(eo.Provider,{value:i},t)}var ei=a.createContext(null);function el(){return a.useContext(ei)}var ec=a.createContext([]);function eu(e){var t=a.useContext(ec);return a.useMemo(function(){return void 0!==e?[].concat((0,w.Z)(t),[e]):t},[t,e])}var es=a.createContext(null),ed=a.createContext({}),ef=n(98498);function ev(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,ef.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),i=null;return o&&!Number.isNaN(a)?i=a:r&&null===i&&(i=0),r&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var ep=K.Z.LEFT,em=K.Z.RIGHT,eh=K.Z.UP,eb=K.Z.DOWN,eg=K.Z.ENTER,ey=K.Z.ESC,eC=K.Z.HOME,ex=K.Z.END,eZ=[eh,eb,ep,em];function e$(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,w.Z)(e.querySelectorAll("*")).filter(function(e){return ev(e,t)});return ev(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function ek(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=e$(e,t),a=o.length,i=o.findIndex(function(e){return n===e});return r<0?-1===i?i=a-1:i-=1:r>0&&(i+=1),o[i=(i+a)%a]}var ew="__RC_UTIL_PATH_SPLIT__",eE=function(e){return e.join(ew)},eS="rc-menu-more";function e_(e){var t=a.useRef(e);t.current=e;var n=a.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o1&&($.motionAppear=!1);var k=$.onVisibleChanged;return($.onVisibleChanged=function(e){return h.current||e||x(!0),null==k?void 0:k(e)},y)?null:a.createElement(ea,{mode:l,locked:!h.current},a.createElement(C.ZP,(0,o.Z)({visible:Z},$,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(e){var n=e.className,r=e.style;return a.createElement(eF,{id:t,className:n,style:r},i)}))}var e8=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],e6=["active"],e3=function(e){var t,n=e.style,r=e.className,i=e.title,l=e.eventKey,c=(e.warnKey,e.disabled),u=e.internalPopupClose,s=e.children,d=e.itemIcon,h=e.expandIcon,g=e.popupClassName,y=e.popupOffset,C=e.onClick,x=e.onMouseEnter,Z=e.onMouseLeave,$=e.onTitleClick,k=e.onTitleMouseEnter,w=e.onTitleMouseLeave,E=(0,b.Z)(e,e8),S=et(l),_=a.useContext(eo),R=_.prefixCls,I=_.mode,M=_.openKeys,P=_.disabled,N=_.overflowDisabled,T=_.activeKey,z=_.selectedKeys,L=_.itemIcon,D=_.expandIcon,O=_.onItemClick,A=_.onOpenChange,K=_.onActive,H=a.useContext(ed)._internalRenderSubMenuItem,j=a.useContext(es).isSubPathKey,B=eu(),W="".concat(R,"-submenu"),G=P||c,V=a.useRef(),X=a.useRef(),F=h||D,Y=M.includes(l),J=!N&&Y,Q=j(z,l),U=eL(l,G,k,w),ee=U.active,en=(0,b.Z)(U,e6),er=a.useState(!1),ei=(0,m.Z)(er,2),el=ei[0],ec=ei[1],ef=function(e){G||ec(e)},ev=a.useMemo(function(){return ee||"inline"!==I&&(el||j([T],l))},[I,ee,T,el,l,j]),ep=eD(B.length),em=e_(function(e){null==C||C(eK(e)),O(e)}),eh=S&&"".concat(S,"-popup"),eb=a.createElement("div",(0,o.Z)({role:"menuitem",style:ep,className:"".concat(W,"-title"),tabIndex:G?null:-1,ref:V,title:"string"==typeof i?i:null,"data-menu-id":N&&S?null:S,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":eh,"aria-disabled":G,onClick:function(e){G||(null==$||$({key:l,domEvent:e}),"inline"===I&&A(l,!Y))},onFocus:function(){K(l)}},en),i,a.createElement(eO,{icon:"horizontal"!==I?F:null,props:(0,p.Z)((0,p.Z)({},e),{},{isOpen:J,isSubMenu:!0})},a.createElement("i",{className:"".concat(W,"-arrow")}))),eg=a.useRef(I);if("inline"!==I&&B.length>1?eg.current="vertical":eg.current=I,!N){var ey=eg.current;eb=a.createElement(e5,{mode:ey,prefixCls:W,visible:!u&&J&&"inline"!==I,popupClassName:g,popupOffset:y,popup:a.createElement(ea,{mode:"horizontal"===ey?"vertical":ey},a.createElement(eF,{id:eh,ref:X},s)),disabled:G,onVisibleChange:function(e){"inline"!==I&&A(l,e)}},eb)}var eC=a.createElement(q.Z.Item,(0,o.Z)({role:"none"},E,{component:"li",style:n,className:f()(W,"".concat(W,"-").concat(I),r,(t={},(0,v.Z)(t,"".concat(W,"-open"),J),(0,v.Z)(t,"".concat(W,"-active"),ev),(0,v.Z)(t,"".concat(W,"-selected"),Q),(0,v.Z)(t,"".concat(W,"-disabled"),G),t)),onMouseEnter:function(e){ef(!0),null==x||x({key:l,domEvent:e})},onMouseLeave:function(e){ef(!1),null==Z||Z({key:l,domEvent:e})}}),eb,!N&&a.createElement(e4,{id:eh,open:J,keyPath:B},s));return H&&(eC=H(eC,e,{selected:Q,active:ev,open:J,disabled:G})),a.createElement(ea,{onItemClick:em,mode:"horizontal"===I?"vertical":I,itemIcon:d||L,expandIcon:F},eC)};function e9(e){var t,n=e.eventKey,r=e.children,o=eu(n),i=eJ(r,o),l=el();return a.useEffect(function(){if(l)return l.registerPath(n,o),function(){l.unregisterPath(n,o)}},[o]),t=l?i:a.createElement(e3,e,i),a.createElement(ec.Provider,{value:o},t)}var e7=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],te=[],tt=a.forwardRef(function(e,t){var n,r,i,l,c,u,s,d,g,C,x,Z,$,k,E,S,R,I,M,P,N,T,z,L,D,O,A,K=e.prefixCls,H=void 0===K?"rc-menu":K,j=e.rootClassName,B=e.style,W=e.className,G=e.tabIndex,V=e.items,X=e.children,F=e.direction,Y=e.id,et=e.mode,en=void 0===et?"vertical":et,er=e.inlineCollapsed,eo=e.disabled,el=e.disabledOverflow,ec=e.subMenuOpenDelay,eu=e.subMenuCloseDelay,ef=e.forceSubMenuRender,ev=e.defaultOpenKeys,eM=e.openKeys,eP=e.activeKey,eN=e.defaultActiveFirst,eT=e.selectable,ez=void 0===eT||eT,eL=e.multiple,eD=void 0!==eL&&eL,eO=e.defaultSelectedKeys,eA=e.selectedKeys,eH=e.onSelect,ej=e.onDeselect,eB=e.inlineIndent,eW=e.motion,eG=e.defaultMotions,eX=e.triggerSubMenuAction,eF=e.builtinPlacements,eq=e.itemIcon,eQ=e.expandIcon,eU=e.overflowedIndicator,e0=void 0===eU?"...":eU,e1=e.overflowedIndicatorPopupClassName,e2=e.getPopupContainer,e5=e.onClick,e4=e.onOpenChange,e8=e.onKeyDown,e6=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),e3=e._internalRenderSubMenuItem,tt=(0,b.Z)(e,e7),tn=a.useMemo(function(){var e;return e=X,V&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,h.Z)(t)){var r=t.label,i=t.children,l=t.key,c=t.type,u=(0,b.Z)(t,eY),s=null!=l?l:"tmp-".concat(n);return i||"group"===c?"group"===c?a.createElement(ta,(0,o.Z)({key:s},u,{title:r}),e(i)):a.createElement(e9,(0,o.Z)({key:s},u,{title:r}),e(i)):"divider"===c?a.createElement(ti,(0,o.Z)({key:s},u)):a.createElement(eV,(0,o.Z)({key:s},u),r)}return null}).filter(function(e){return e})}(V)),eJ(e,te)},[X,V]),tr=a.useState(!1),to=(0,m.Z)(tr,2),tl=to[0],tc=to[1],tu=a.useRef(),ts=(n=(0,y.Z)(Y,{value:Y}),i=(r=(0,m.Z)(n,2))[0],l=r[1],a.useEffect(function(){eI+=1;var e="".concat(eR,"-").concat(eI);l("rc-menu-uuid-".concat(e))},[]),i),td="rtl"===F,tf=(0,y.Z)(ev,{value:eM,postState:function(e){return e||te}}),tv=(0,m.Z)(tf,2),tp=tv[0],tm=tv[1],th=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tm(e),null==e4||e4(e)}t?(0,J.flushSync)(n):n()},tb=a.useState(tp),tg=(0,m.Z)(tb,2),ty=tg[0],tC=tg[1],tx=a.useRef(!1),tZ=a.useMemo(function(){return("inline"===en||"vertical"===en)&&er?["vertical",er]:[en,!1]},[en,er]),t$=(0,m.Z)(tZ,2),tk=t$[0],tw=t$[1],tE="inline"===tk,tS=a.useState(tk),t_=(0,m.Z)(tS,2),tR=t_[0],tI=t_[1],tM=a.useState(tw),tP=(0,m.Z)(tM,2),tN=tP[0],tT=tP[1];a.useEffect(function(){tI(tk),tT(tw),tx.current&&(tE?tm(ty):th(te))},[tk,tw]);var tz=a.useState(0),tL=(0,m.Z)(tz,2),tD=tL[0],tO=tL[1],tA=tD>=tn.length-1||"horizontal"!==tR||el;a.useEffect(function(){tE&&tC(tp)},[tp]),a.useEffect(function(){return tx.current=!0,function(){tx.current=!1}},[]);var tK=(c=a.useState({}),u=(0,m.Z)(c,2)[1],s=(0,a.useRef)(new Map),d=(0,a.useRef)(new Map),g=a.useState([]),x=(C=(0,m.Z)(g,2))[0],Z=C[1],$=(0,a.useRef)(0),k=(0,a.useRef)(!1),E=function(){k.current||u({})},S=(0,a.useCallback)(function(e,t){var n=eE(t);d.current.set(n,e),s.current.set(e,n),$.current+=1;var r=$.current;Promise.resolve().then(function(){r===$.current&&E()})},[]),R=(0,a.useCallback)(function(e,t){var n=eE(t);d.current.delete(n),s.current.delete(e)},[]),I=(0,a.useCallback)(function(e){Z(e)},[]),M=(0,a.useCallback)(function(e,t){var n=(s.current.get(e)||"").split(ew);return t&&x.includes(n[0])&&n.unshift(eS),n},[x]),P=(0,a.useCallback)(function(e,t){return e.some(function(e){return M(e,!0).includes(t)})},[M]),N=(0,a.useCallback)(function(e){var t="".concat(s.current.get(e)).concat(ew),n=new Set;return(0,w.Z)(d.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(d.current.get(e))}),n},[]),a.useEffect(function(){return function(){k.current=!0}},[]),{registerPath:S,unregisterPath:R,refreshOverflowKeys:I,isSubPathKey:P,getKeyPath:M,getKeys:function(){var e=(0,w.Z)(s.current.keys());return x.length&&e.push(eS),e},getSubPathKeys:N}),tH=tK.registerPath,tj=tK.unregisterPath,tB=tK.refreshOverflowKeys,tW=tK.isSubPathKey,tG=tK.getKeyPath,tV=tK.getKeys,tX=tK.getSubPathKeys,tF=a.useMemo(function(){return{registerPath:tH,unregisterPath:tj}},[tH,tj]),tq=a.useMemo(function(){return{isSubPathKey:tW}},[tW]);a.useEffect(function(){tB(tA?te:tn.slice(tD+1).map(function(e){return e.key}))},[tD,tA]);var tY=(0,y.Z)(eP||eN&&(null===(O=tn[0])||void 0===O?void 0:O.key),{value:eP}),tJ=(0,m.Z)(tY,2),tQ=tJ[0],tU=tJ[1],t0=e_(function(e){tU(e)}),t1=e_(function(){tU(void 0)});(0,a.useImperativeHandle)(t,function(){return{list:tu.current,focus:function(e){var t,n,r,o,a=null!=tQ?tQ:null===(t=tn.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key;a&&(null===(n=tu.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(ee(ts,a),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}});var t2=(0,y.Z)(eO||[],{value:eA,postState:function(e){return Array.isArray(e)?e:null==e?te:[e]}}),t5=(0,m.Z)(t2,2),t4=t5[0],t8=t5[1],t6=function(e){if(ez){var t,n=e.key,r=t4.includes(n);t8(t=eD?r?t4.filter(function(e){return e!==n}):[].concat((0,w.Z)(t4),[n]):[n]);var o=(0,p.Z)((0,p.Z)({},e),{},{selectedKeys:t});r?null==ej||ej(o):null==eH||eH(o)}!eD&&tp.length&&"inline"!==tR&&th(te)},t3=e_(function(e){null==e5||e5(eK(e)),t6(e)}),t9=e_(function(e,t){var n=tp.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tR){var r=tX(e);n=n.filter(function(e){return!r.has(e)})}(0,Q.Z)(tp,n,!0)||th(n,!0)}),t7=(T=function(e,t){var n=null!=t?t:!tp.includes(e);t9(e,n)},z=a.useRef(),(L=a.useRef()).current=tQ,D=function(){_.Z.cancel(z.current)},a.useEffect(function(){return function(){D()}},[]),function(e){var t=e.which;if([].concat(eZ,[eg,ey,eC,ex]).includes(t)){var n=function(){return l=new Set,c=new Map,u=new Map,tV().forEach(function(e){var t=document.querySelector("[data-menu-id='".concat(ee(ts,e),"']"));t&&(l.add(t),u.set(t,e),c.set(e,t))}),l};n();var r=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(c.get(tQ),l),o=u.get(r),a=function(e,t,n,r){var o,a,i,l,c="prev",u="next",s="children",d="parent";if("inline"===e&&r===eg)return{inlineTrigger:!0};var f=(o={},(0,v.Z)(o,eh,c),(0,v.Z)(o,eb,u),o),p=(a={},(0,v.Z)(a,ep,n?u:c),(0,v.Z)(a,em,n?c:u),(0,v.Z)(a,eb,s),(0,v.Z)(a,eg,s),a),m=(i={},(0,v.Z)(i,eh,c),(0,v.Z)(i,eb,u),(0,v.Z)(i,eg,s),(0,v.Z)(i,ey,d),(0,v.Z)(i,ep,n?s:d),(0,v.Z)(i,em,n?d:s),i);switch(null===(l=({inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m})["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[r]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(tR,1===tG(o,!0).length,td,t);if(!a&&t!==eC&&t!==ex)return;(eZ.includes(t)||[eC,ex].includes(t))&&e.preventDefault();var i=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=u.get(e);tU(r),D(),z.current=(0,_.Z)(function(){L.current===r&&t.focus()})}};if([eC,ex].includes(t)||a.sibling||!r){var l,c,u,s,d=e$(s=r&&"inline"!==tR?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(r):tu.current,l);i(t===eC?d[0]:t===ex?d[d.length-1]:ek(s,l,r,a.offset))}else if(a.inlineTrigger)T(o);else if(a.offset>0)T(o,!0),D(),z.current=(0,_.Z)(function(){n();var e=r.getAttribute("aria-controls");i(ek(document.getElementById(e),l))},5);else if(a.offset<0){var f=tG(o,!0),p=f[f.length-2],m=c.get(p);T(p,!1),i(m)}}null==e8||e8(e)});a.useEffect(function(){tc(!0)},[]);var ne=a.useMemo(function(){return{_internalRenderMenuItem:e6,_internalRenderSubMenuItem:e3}},[e6,e3]),nt="horizontal"!==tR||el?tn:tn.map(function(e,t){return a.createElement(ea,{key:e.key,overflowDisabled:t>tD},e)}),nn=a.createElement(q.Z,(0,o.Z)({id:Y,ref:tu,prefixCls:"".concat(H,"-overflow"),component:"ul",itemComponent:eV,className:f()(H,"".concat(H,"-root"),"".concat(H,"-").concat(tR),W,(A={},(0,v.Z)(A,"".concat(H,"-inline-collapsed"),tN),(0,v.Z)(A,"".concat(H,"-rtl"),td),A),j),dir:F,style:B,role:"menu",tabIndex:void 0===G?0:G,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?tn.slice(-t):null;return a.createElement(e9,{eventKey:eS,title:e0,disabled:tA,internalPopupClose:0===t,popupClassName:e1},n)},maxCount:"horizontal"!==tR||el?q.Z.INVALIDATE:q.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tO(e)},onKeyDown:t7},tt));return a.createElement(ed.Provider,{value:ne},a.createElement(U.Provider,{value:ts},a.createElement(ea,{prefixCls:H,rootClassName:j,mode:tR,openKeys:tp,rtl:td,disabled:eo,motion:tl?eW:null,defaultMotions:tl?eG:null,activeKey:tQ,onActive:t0,onInactive:t1,selectedKeys:t4,inlineIndent:void 0===eB?24:eB,subMenuOpenDelay:void 0===ec?.1:ec,subMenuCloseDelay:void 0===eu?.1:eu,forceSubMenuRender:ef,builtinPlacements:eF,triggerSubMenuAction:void 0===eX?"hover":eX,getPopupContainer:e2,itemIcon:eq,expandIcon:eQ,onItemClick:t3,onOpenChange:t9},a.createElement(es.Provider,{value:tq},nn),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(ei.Provider,{value:tF},tn)))))}),tn=["className","title","eventKey","children"],tr=["children"],to=function(e){var t=e.className,n=e.title,r=(e.eventKey,e.children),i=(0,b.Z)(e,tn),l=a.useContext(eo).prefixCls,c="".concat(l,"-item-group");return a.createElement("li",(0,o.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:f()(c,t)}),a.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),a.createElement("ul",{role:"group",className:"".concat(c,"-list")},r))};function ta(e){var t=e.children,n=(0,b.Z)(e,tr),r=eJ(t,eu(n.eventKey));return el()?r:a.createElement(to,(0,ez.Z)(n,["warnKey"]),r)}function ti(e){var t=e.className,n=e.style,r=a.useContext(eo).prefixCls;return el()?null:a.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})}tt.Item=eV,tt.SubMenu=e9,tt.ItemGroup=ta,tt.Divider=ti;var tl=a.memo(a.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,l=e.mobile,c=e.moreIcon,u=void 0===c?"More":c,s=e.moreTransitionName,d=e.style,p=e.className,h=e.editable,b=e.tabBarGutter,g=e.rtl,y=e.removeAriaLabel,C=e.onTabClick,x=e.getPopupContainer,Z=e.popupClassName,$=(0,a.useState)(!1),k=(0,m.Z)($,2),w=k[0],E=k[1],S=(0,a.useState)(null),_=(0,m.Z)(S,2),R=_[0],I=_[1],M="".concat(r,"-more-popup"),P="".concat(n,"-dropdown"),N=null!==R?"".concat(M,"-").concat(R):null,T=null==i?void 0:i.dropdownAriaLabel,z=a.createElement(tt,{onClick:function(e){C(e.key,e.domEvent),E(!1)},prefixCls:"".concat(P,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[R],"aria-label":void 0!==T?T:"expanded dropdown"},o.map(function(e){var t=h&&!1!==e.closable&&!e.disabled;return a.createElement(eV,{key:e.key,id:"".concat(M,"-").concat(e.key),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(e.key),disabled:e.disabled},a.createElement("span",null,e.label),t&&a.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(P,"-menu-item-remove"),onClick:function(t){var n;t.stopPropagation(),n=e.key,t.preventDefault(),t.stopPropagation(),h.onEdit("remove",{key:n,event:t})}},e.closeIcon||h.removeIcon||"\xd7"))}));function L(e){for(var t=o.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===R})||0,r=t.length,a=0;at?"left":"right"})}),eT=(0,m.Z)(eN,2),ez=eT[0],eL=eT[1],eD=M(0,function(e,t){!eP&&ek&&ek({direction:e>t?"top":"bottom"})}),eO=(0,m.Z)(eD,2),eA=eO[0],eK=eO[1],eH=(0,a.useState)([0,0]),ej=(0,m.Z)(eH,2),eB=ej[0],eW=ej[1],eG=(0,a.useState)([0,0]),eV=(0,m.Z)(eG,2),eX=eV[0],eF=eV[1],eq=(0,a.useState)([0,0]),eY=(0,m.Z)(eq,2),eJ=eY[0],eQ=eY[1],eU=(0,a.useState)([0,0]),e0=(0,m.Z)(eU,2),e1=e0[0],e2=e0[1],e5=(n=new Map,r=(0,a.useRef)([]),i=(0,a.useState)({}),l=(0,m.Z)(i,2)[1],c=(0,a.useRef)("function"==typeof n?n():n),u=N(function(){var e=c.current;r.current.forEach(function(t){e=t(e)}),r.current=[],c.current=e,l({})}),[c.current,function(e){r.current.push(e),u()}]),e4=(0,m.Z)(e5,2),e8=e4[0],e6=e4[1],e3=(s=eX[0],(0,a.useMemo)(function(){for(var e=new Map,t=e8.get(null===(o=es[0])||void 0===o?void 0:o.key)||I,n=t.left+t.width,r=0;rti?ti:e}eP&&eh?(ta=0,ti=Math.max(0,e7-tr)):(ta=Math.min(0,tr-e7),ti=0);var tf=(0,a.useRef)(),tv=(0,a.useState)(),tp=(0,m.Z)(tv,2),tm=tp[0],th=tp[1];function tb(){th(Date.now())}function tg(){window.clearTimeout(tf.current)}d=function(e,t){function n(e,t){e(function(e){return td(e+t)})}return!!tn&&(eP?n(eL,e):n(eK,t),tg(),tb(),!0)},h=(0,a.useState)(),g=(b=(0,m.Z)(h,2))[0],y=b[1],C=(0,a.useState)(0),$=(Z=(0,m.Z)(C,2))[0],k=Z[1],P=(0,a.useState)(0),K=(A=(0,m.Z)(P,2))[0],H=A[1],j=(0,a.useState)(),W=(B=(0,m.Z)(j,2))[0],G=B[1],V=(0,a.useRef)(),X=(0,a.useRef)(),(F=(0,a.useRef)(null)).current={onTouchStart:function(e){var t=e.touches[0];y({x:t.screenX,y:t.screenY}),window.clearInterval(V.current)},onTouchMove:function(e){if(g){e.preventDefault();var t=e.touches[0],n=t.screenX,r=t.screenY;y({x:n,y:r});var o=n-g.x,a=r-g.y;d(o,a);var i=Date.now();k(i),H(i-$),G({x:o,y:a})}},onTouchEnd:function(){if(g&&(y(null),G(null),W)){var e=W.x/K,t=W.y/K;if(!(.1>Math.max(Math.abs(e),Math.abs(t)))){var n=e,r=t;V.current=window.setInterval(function(){if(.01>Math.abs(n)&&.01>Math.abs(r)){window.clearInterval(V.current);return}d(20*(n*=.9046104802746175),20*(r*=.9046104802746175))},20)}}},onWheel:function(e){var t=e.deltaX,n=e.deltaY,r=0,o=Math.abs(t),a=Math.abs(n);o===a?r="x"===X.current?t:n:o>a?(r=t,X.current="x"):(r=n,X.current="y"),d(-r,-r)&&e.preventDefault()}},a.useEffect(function(){function e(e){F.current.onTouchMove(e)}function t(e){F.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),e_.current.addEventListener("touchstart",function(e){F.current.onTouchStart(e)},{passive:!1}),e_.current.addEventListener("wheel",function(e){F.current.onWheel(e)}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}},[]),(0,a.useEffect)(function(){return tg(),tm&&(tf.current=window.setTimeout(function(){th(0)},100)),tg},[tm]);var ty=(q=eP?ez:eA,ee=(Y=(0,p.Z)((0,p.Z)({},e),{},{tabs:es})).tabs,et=Y.tabPosition,en=Y.rtl,["top","bottom"].includes(et)?(J="width",Q=en?"right":"left",U=Math.abs(q)):(J="height",Q="top",U=-q),(0,a.useMemo)(function(){if(!ee.length)return[0,0];for(var e=ee.length,t=e,n=0;nU+tr){t=n-1;break}}for(var o=0,a=e-1;a>=0;a-=1)if((e3.get(ee[a].key)||T)[Q]=t?[0,0]:[o,t]},[e3,tr,e7,te,tt,U,et,ee.map(function(e){return e.key}).join("_"),en])),tC=(0,m.Z)(ty,2),tx=tC[0],tZ=tC[1],t$=(0,S.Z)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:em,t=e3.get(e)||{width:0,height:0,left:0,right:0,top:0};if(eP){var n=ez;eh?t.rightez+tr&&(n=t.right+t.width-tr):t.left<-ez?n=-t.left:t.left+t.width>-ez+tr&&(n=-(t.left+t.width-tr)),eK(0),eL(td(n))}else{var r=eA;t.top<-eA?r=-t.top:t.top+t.height>-eA+tr&&(r=-(t.top+t.height-tr)),eL(0),eK(td(r))}}),tk={};"top"===eC||"bottom"===eC?tk[eh?"marginRight":"marginLeft"]=ex:tk.marginTop=ex;var tw=es.map(function(e,t){var n=e.key;return a.createElement(tc,{id:ev,prefixCls:eu,key:n,tab:e,style:0===t?void 0:tk,closable:e.closable,editable:eg,active:n===em,renderWrapper:eZ,removeAriaLabel:null==ey?void 0:ey.removeAriaLabel,onClick:function(e){e$(n,e)},onFocus:function(){t$(n),tb(),e_.current&&(eh||(e_.current.scrollLeft=0),e_.current.scrollTop=0)}})}),tE=function(){return e6(function(){var e=new Map;return es.forEach(function(t){var n,r=t.key,o=null===(n=eR.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(L(r),'"]'));o&&e.set(r,{width:o.offsetWidth,height:o.offsetHeight,left:o.offsetLeft,top:o.offsetTop})}),e})};(0,a.useEffect)(function(){tE()},[es.map(function(e){return e.key}).join("_")]);var tS=N(function(){var e=tu(ew),t=tu(eE),n=tu(eS);eW([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=tu(eM);eQ(r),e2(tu(eI));var o=tu(eR);eF([o[0]-r[0],o[1]-r[1]]),tE()}),t_=es.slice(0,tx),tR=es.slice(tZ+1),tI=[].concat((0,w.Z)(t_),(0,w.Z)(tR)),tM=(0,a.useState)(),tP=(0,m.Z)(tM,2),tN=tP[0],tT=tP[1],tz=e3.get(em),tL=(0,a.useRef)();function tD(){_.Z.cancel(tL.current)}(0,a.useEffect)(function(){var e={};return tz&&(eP?(eh?e.right=tz.right:e.left=tz.left,e.width=tz.width):(e.top=tz.top,e.height=tz.height)),tD(),tL.current=(0,_.Z)(function(){tT(e)}),tD},[tz,eP,eh]),(0,a.useEffect)(function(){t$()},[em,ta,ti,z(tz),z(e3),eP]),(0,a.useEffect)(function(){tS()},[eh]);var tO=!!tI.length,tA="".concat(eu,"-nav-wrap");return eP?eh?(ea=ez>0,eo=ez!==ti):(eo=ez<0,ea=ez!==ta):(ei=eA<0,el=eA!==ta),a.createElement(E.Z,{onResize:tS},a.createElement("div",{ref:(0,R.x1)(t,ew),role:"tablist",className:f()("".concat(eu,"-nav"),ed),style:ef,onKeyDown:function(){tb()}},a.createElement(O,{ref:eE,position:"left",extra:eb,prefixCls:eu}),a.createElement("div",{className:f()(tA,(er={},(0,v.Z)(er,"".concat(tA,"-ping-left"),eo),(0,v.Z)(er,"".concat(tA,"-ping-right"),ea),(0,v.Z)(er,"".concat(tA,"-ping-top"),ei),(0,v.Z)(er,"".concat(tA,"-ping-bottom"),el),er)),ref:e_},a.createElement(E.Z,{onResize:tS},a.createElement("div",{ref:eR,className:"".concat(eu,"-nav-list"),style:{transform:"translate(".concat(ez,"px, ").concat(eA,"px)"),transition:tm?"none":void 0}},tw,a.createElement(D,{ref:eM,prefixCls:eu,locale:ey,editable:eg,style:(0,p.Z)((0,p.Z)({},0===tw.length?void 0:tk),{},{visibility:tO?"hidden":null})}),a.createElement("div",{className:f()("".concat(eu,"-ink-bar"),(0,v.Z)({},"".concat(eu,"-ink-bar-animated"),ep.inkBar)),style:tN})))),a.createElement(tl,(0,o.Z)({},e,{removeAriaLabel:null==ey?void 0:ey.removeAriaLabel,ref:eI,prefixCls:eu,tabs:tI,className:!tO&&to,tabMoving:!!tm})),a.createElement(O,{ref:eS,position:"right",extra:eb,prefixCls:eu})))}),tf=["renderTabBar"],tv=["label","key"];function tp(e){var t=e.renderTabBar,n=(0,b.Z)(e,tf),r=a.useContext(x).tabs;return t?t((0,p.Z)((0,p.Z)({},n),{},{panes:r.map(function(e){var t=e.label,n=e.key,r=(0,b.Z)(e,tv);return a.createElement(Z,(0,o.Z)({tab:t,key:n,tabKey:n},r))})}),td):a.createElement(td,n)}var tm=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],th=0,tb=a.forwardRef(function(e,t){var n,r,i=e.id,l=e.prefixCls,c=void 0===l?"rc-tabs":l,u=e.className,s=e.items,d=e.direction,C=e.activeKey,Z=e.defaultActiveKey,$=e.editable,w=e.animated,E=e.tabPosition,S=void 0===E?"top":E,_=e.tabBarGutter,R=e.tabBarStyle,I=e.tabBarExtraContent,M=e.locale,P=e.moreIcon,N=e.moreTransitionName,T=e.destroyInactiveTabPane,z=e.renderTabBar,L=e.onChange,D=e.onTabClick,O=e.onTabScroll,A=e.getPopupContainer,K=e.popupClassName,H=(0,b.Z)(e,tm),j=a.useMemo(function(){return(s||[]).filter(function(e){return e&&"object"===(0,h.Z)(e)&&"key"in e})},[s]),B="rtl"===d,W=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,p.Z)({inkBar:!0},"object"===(0,h.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(w),G=(0,a.useState)(!1),V=(0,m.Z)(G,2),X=V[0],F=V[1];(0,a.useEffect)(function(){F((0,g.Z)())},[]);var q=(0,y.Z)(function(){var e;return null===(e=j[0])||void 0===e?void 0:e.key},{value:C,defaultValue:Z}),Y=(0,m.Z)(q,2),J=Y[0],Q=Y[1],U=(0,a.useState)(function(){return j.findIndex(function(e){return e.key===J})}),ee=(0,m.Z)(U,2),et=ee[0],en=ee[1];(0,a.useEffect)(function(){var e,t=j.findIndex(function(e){return e.key===J});-1===t&&(t=Math.max(0,Math.min(et,j.length-1)),Q(null===(e=j[t])||void 0===e?void 0:e.key)),en(t)},[j.map(function(e){return e.key}).join("_"),J,et]);var er=(0,y.Z)(null,{value:i}),eo=(0,m.Z)(er,2),ea=eo[0],ei=eo[1];(0,a.useEffect)(function(){i||(ei("rc-tabs-".concat(th)),th+=1)},[]);var el={id:ea,activeKey:J,animated:W,tabPosition:S,rtl:B,mobile:X},ec=(0,p.Z)((0,p.Z)({},el),{},{editable:$,locale:M,moreIcon:P,moreTransitionName:N,tabBarGutter:_,onTabClick:function(e,t){null==D||D(e,t);var n=e!==J;Q(e),n&&(null==L||L(e))},onTabScroll:O,extra:I,style:R,panes:null,getPopupContainer:A,popupClassName:K});return a.createElement(x.Provider,{value:{tabs:j,prefixCls:c}},a.createElement("div",(0,o.Z)({ref:t,id:i,className:f()(c,"".concat(c,"-").concat(S),(n={},(0,v.Z)(n,"".concat(c,"-mobile"),X),(0,v.Z)(n,"".concat(c,"-editable"),$),(0,v.Z)(n,"".concat(c,"-rtl"),B),n),u)},H),r,a.createElement(tp,(0,o.Z)({},ec,{renderTabBar:z})),a.createElement(k,(0,o.Z)({destroyInactiveTabPane:T},el,{animated:W}))))}),tg=n(79746),ty=n(30069),tC=n(80716);let tx={motionAppear:!1,motionEnter:!0,motionLeave:!0};var tZ=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},t$=n(98663),tk=n(40650),tw=n(70721),tE=n(53279),tS=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,tE.oN)(e,"slide-up"),(0,tE.oN)(e,"slide-down")]]};let t_=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},tR=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,t$.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},t$.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},tI=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},tM=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},tP=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,t$.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},tN=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},tT=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,t$.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},(0,t$.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),tP(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var tz=(0,tk.Z)("Tabs",e=>{let t=(0,tw.TS)(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[tM(t),tN(t),tI(t),tR(t),t_(t),tT(t),tS(t)]},e=>{let t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),tL=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function tD(e){let t;var{type:n,className:o,rootClassName:i,size:l,onEdit:u,hideAdd:d,centered:v,addIcon:p,popupClassName:m,children:h,items:b,animated:g}=e,y=tL(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated"]);let{prefixCls:C,moreIcon:x=a.createElement(c,null)}=y,{direction:Z,getPrefixCls:$,getPopupContainer:k}=a.useContext(tg.E_),w=$("tabs",C),[E,S]=tz(w);"editable-card"===n&&(t={onEdit:(e,t)=>{let{key:n,event:r}=t;null==u||u("add"===e?r:n,e)},removeIcon:a.createElement(r.Z,null),addIcon:p||a.createElement(s,null),showAdd:!0!==d});let _=$(),R=function(e,t){if(e)return e;let n=(0,eq.Z)(t).map(e=>{if(a.isValidElement(e)){let{key:t,props:n}=e,r=n||{},{tab:o}=r,a=tZ(r,["tab"]),i=Object.assign(Object.assign({key:String(t)},a),{label:o});return i}return null});return n.filter(e=>e)}(b,h),I=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{})).tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},tx),{motionName:(0,tC.mL)(e,"switch")})),t}(w,g),M=(0,ty.Z)(l);return E(a.createElement(tb,Object.assign({direction:Z,getPopupContainer:k,moreTransitionName:`${_}-slide-up`},y,{items:R,className:f()({[`${w}-${M}`]:M,[`${w}-card`]:["card","editable-card"].includes(n),[`${w}-editable-card`]:"editable-card"===n,[`${w}-centered`]:v},o,i,S),popupClassName:f()(m,S),editable:t,moreIcon:x,prefixCls:w,animated:I})))}tD.TabPane=()=>null;var tO=tD}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/3933-290330225c3094ee.js b/pilot/server/static/_next/static/chunks/3933-290330225c3094ee.js deleted file mode 100644 index ecc0e8a2c..000000000 --- a/pilot/server/static/_next/static/chunks/3933-290330225c3094ee.js +++ /dev/null @@ -1,84 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3933],{70333:function(e,t,r){"use strict";r.d(t,{iN:function(){return g},R_:function(){return f},ez:function(){return d}});var n=r(32675),o=r(79185),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,r=e.g,o=e.b,i=(0,n.py)(t,r,o);return{h:360*i.h,s:i.s,v:i.v}}function l(e){var t=e.r,r=e.g,o=e.b;return"#".concat((0,n.vq)(t,r,o,!1))}function s(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function c(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function u(e,t,r){var n;return(n=r?e.v+.05*t:e.v-.15*t)>1&&(n=1),Number(n.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(n),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));r.push(p)}r.push(l(n));for(var h=1;h<=4;h+=1){var g=a(n),m=l((0,o.uA)({h:s(g,h),s:c(g,h),v:u(g,h)}));r.push(m)}return"dark"===t.theme?i.map(function(e){var n,i,a,s=e.index,c=e.opacity;return l((n=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(r[s]),a=100*c/100,{r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b}))}):r}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}),p.red,p.volcano,p.gold,p.orange,p.yellow,p.lime,p.green,p.cyan;var g=p.blue;p.geekblue,p.purple,p.magenta,p.grey,p.grey},84596:function(e,t,r){"use strict";r.d(t,{E4:function(){return ew},jG:function(){return k},t2:function(){return N},fp:function(){return H},xy:function(){return eC}});var n,o=r(90151),i=r(88684),a=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},l=r(86006),s=r.t(l,2);r(55567),r(81027);var c=r(18050),u=r(49449),f=r(65877),d=function(){function e(t){(0,c.Z)(this,e),(0,f.Z)(this,"instanceId",void 0),(0,f.Z)(this,"cache",new Map),this.instanceId=t}return(0,u.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var r=e.join("%"),n=t(this.cache.get(r));null===n?this.cache.delete(r):this.cache.set(r,n)}}]),e}(),p="data-token-hash",h="data-css-hash",g="__cssinjs_instance__",m=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(h,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[g]=t[g]||e,t[g]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(h,"]"))).forEach(function(t){var r,o=t.getAttribute(h);n[o]?t[g]===e&&(null===(r=t.parentNode)||void 0===r||r.removeChild(t)):n[o]=!0})}return new d(e)}(),defaultCache:!0}),v=r(965),y=r(71693),b=r(52160),x=r(60456),C=function(){function e(){(0,c.Z)(this,e),(0,f.Z)(this,"cache",void 0),(0,f.Z)(this,"keys",void 0),(0,f.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,u.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,r;o=null===(t=o)||void 0===t?void 0:null===(r=t.map)||void 0===r?void 0:r.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var r=(0,x.Z)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),S+=1}return(0,u.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),A=new C;function k(e){var t=Array.isArray(e)?e:[e];return A.has(t)||A.set(t,new E(t)),A.get(t)}function O(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof E?t+=n.id:n&&"object"===(0,v.Z)(n)?t+=O(n):t+=n}),t}var $="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Z="_bAmBoO_",j=void 0,B=r(38358),P=(0,i.Z)({},s).useInsertionEffect,R=P?function(e,t,r){return P(function(){return e(),t()},r)}:function(e,t,r){l.useMemo(e,r),(0,B.Z)(function(){return t(!0)},r)},T=void 0!==(0,i.Z)({},s).useInsertionEffect?function(e){var t=[],r=!1;return l.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){r||t.push(e)}}:function(){return function(e){e()}};function M(e,t,r,n,i){var a=l.useContext(m).cache,s=[e].concat((0,o.Z)(t)),c=s.join("_"),u=T([c]),f=function(e){a.update(s,function(t){var n=(0,x.Z)(t||[],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i})};l.useMemo(function(){f()},[c]);var d=a.get(s)[1];return R(function(){null==i||i(d)},function(e){return f(function(t){var r=(0,x.Z)(t,2),n=r[0],o=r[1];return e&&0===n&&(null==i||i(d)),[n+1,o]}),function(){a.update(s,function(e){var t=(0,x.Z)(e||[],2),r=t[0],o=void 0===r?0:r,i=t[1];return 0==o-1?(u(function(){return null==n?void 0:n(i,!1)}),null):[o-1,i]})}},[c]),d}var _={},F=new Map,N=function(e,t,r,n){var o=r.getDerivativeToken(e),a=(0,i.Z)((0,i.Z)({},o),t);return n&&(a=n(a)),a};function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,l.useContext)(m).cache.instanceId,i=r.salt,s=void 0===i?"":i,c=r.override,u=void 0===c?_:c,f=r.formatToken,d=r.getComputedToken,h=l.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))},[t]),v=l.useMemo(function(){return O(h)},[h]),y=l.useMemo(function(){return O(u)},[u]);return M("token",[s,e.id,v,y],function(){var t=d?d(h,u,e):N(h,u,e,f),r=a("".concat(s,"_").concat(O(t)));t._tokenKey=r,F.set(r,(F.get(r)||0)+1);var n="".concat("css","-").concat(a(r));return t._hashId=n,[t,n]},function(e){var t,r,o;t=e[0]._tokenKey,F.set(t,(F.get(t)||0)-1),o=(r=Array.from(F.keys())).filter(function(e){return 0>=(F.get(e)||0)}),r.length-o.length>0&&o.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(p,'="').concat(e,'"]')).forEach(function(e){if(e[g]===n){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),F.delete(e)})})}var D=r(40431),L={animationIterationCount: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},I="comm",z="rule",U="decl",W=Math.abs,K=String.fromCharCode;function G(e,t,r){return e.replace(t,r)}function q(e,t){return 0|e.charCodeAt(t)}function V(e,t,r){return e.slice(t,r)}function X(e){return e.length}function Y(e,t){return t.push(e),e}function J(e,t){for(var r="",n=0;n0?p[y]+" "+b:G(b,/&\f/g,p[y])).trim())&&(s[v++]=x);return ea(e,t,r,0===o?z:l,s,c,u,f)}function ed(e,t,r,n,o){return ea(e,t,r,U,V(e,0,n),V(e,n+1,-1),n,o)}var ep="data-ant-cssinjs-cache-path",eh="_FILE_STYLE__",eg=!0,em=(0,y.Z)(),ev="_multi_value_";function ey(e){var t,r,n;return J((n=function e(t,r,n,o,i,a,l,s,c){for(var u,f=0,d=0,p=l,h=0,g=0,m=0,v=1,y=1,b=1,x=0,C="",w=i,S=a,E=o,A=C;y;)switch(m=x,x=el()){case 40:if(108!=m&&58==q(A,p-1)){-1!=(A+=G(eu(x),"&","&\f")).indexOf("&\f")&&(b=-1);break}case 34:case 39:case 91:A+=eu(x);break;case 9:case 10:case 13:case 32:A+=function(e){for(;eo=es();)if(eo<33)el();else break;return ec(e)>2||ec(eo)>3?"":" "}(m);break;case 92:A+=function(e,t){for(var r;--t&&el()&&!(eo<48)&&!(eo>102)&&(!(eo>57)||!(eo<65))&&(!(eo>70)||!(eo<97)););return r=en+(t<6&&32==es()&&32==el()),V(ei,e,r)}(en-1,7);continue;case 47:switch(es()){case 42:case 47:Y(ea(u=function(e,t){for(;el();)if(e+eo===57)break;else if(e+eo===84&&47===es())break;return"/*"+V(ei,t,en-1)+"*"+K(47===e?e:el())}(el(),en),r,n,I,K(eo),V(u,2,-2),0,c),c);break;default:A+="/"}break;case 123*v:s[f++]=X(A)*b;case 125*v:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+d:-1==b&&(A=G(A,/\f/g,"")),g>0&&X(A)-p&&Y(g>32?ed(A+";",o,n,p-1,c):ed(G(A," ","")+";",o,n,p-2,c),c);break;case 59:A+=";";default:if(Y(E=ef(A,r,n,f,d,i,s,C,w=[],S=[],p,a),a),123===x){if(0===d)e(A,r,E,E,w,a,p,s,S);else switch(99===h&&110===q(A,3)?100:h){case 100:case 108:case 109:case 115:e(t,E,E,o&&Y(ef(t,E,E,0,0,i,s,C,i,w=[],p,S),S),i,S,p,s,o?w:S);break;default:e(A,E,E,E,[""],S,0,s,S)}}}f=d=g=0,v=b=1,C=A="",p=l;break;case 58:p=1+X(A),g=m;default:if(v<1){if(123==x)--v;else if(125==x&&0==v++&&125==(eo=en>0?q(ei,--en):0,et--,10===eo&&(et=1,ee--),eo))continue}switch(A+=K(x),x*v){case 38:b=d>0?1:(A+="\f",-1);break;case 44:s[f++]=(X(A)-1)*b,b=1;break;case 64:45===es()&&(A+=eu(el())),h=es(),d=p=X(C=A+=function(e){for(;!ec(es());)el();return V(ei,e,en)}(en)),x++;break;case 45:45===m&&2==X(A)&&(v=0)}}return a}("",null,null,null,[""],(r=t=e,ee=et=1,er=X(ei=r),en=0,t=[]),0,[0],t),ei="",n),Q).replace(/\{%%%\:[^;];}/g,";")}var eb=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,l=n.injectHash,s=n.parentSelectors,c=r.hashId,u=r.layer,f=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d;r.linters;var h="",g={};function m(t){var n=t.getName(c);if(!g[n]){var o=e(t.style,r,{root:!1,parentSelectors:s}),i=(0,x.Z)(o,1)[0];g[n]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||a?t:{};if("string"==typeof n)h+="".concat(n,"\n");else if(n._keyframe)m(n);else{var u=p.reduce(function(e,t){var r;return(null==t?void 0:null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e},n);Object.keys(u).forEach(function(t){var n=u[t];if("object"!==(0,v.Z)(n)||!n||"animationName"===t&&n._keyframe||"object"===(0,v.Z)(n)&&n&&("_skip_check_"in n||ev in n)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;L[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),n=t.getName(c)),h+="".concat(r,":").concat(n,";")}var p,y=null!==(p=null==n?void 0:n.value)&&void 0!==p?p:n;"object"===(0,v.Z)(n)&&null!=n&&n[ev]&&Array.isArray(y)?y.forEach(function(e){d(t,e)}):d(t,y)}else{var b=!1,C=t.trim(),w=!1;(a||l)&&c?C.startsWith("@")?b=!0:C=function(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",a=(null===(t=n.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[n="".concat(a).concat(i).concat(n.slice(a.length))].concat((0,o.Z)(r.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===C||""===C)&&(C="",w=!0);var S=e(n,r,{root:w,injectHash:b,parentSelectors:[].concat((0,o.Z)(s),[C])}),E=(0,x.Z)(S,2),A=E[0],k=E[1];g=(0,i.Z)((0,i.Z)({},g),k),h+="".concat(C).concat(A)}})}}),a){if(u&&(void 0===j&&(j=function(e,t,r){if((0,y.Z)()){(0,b.hq)(e,$);var n,o,i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=r?r(i):null===(n=getComputedStyle(i).content)||void 0===n?void 0:n.includes(Z);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,b.jL)($),a}return!1}("@layer ".concat($," { .").concat($,' { content: "').concat(Z,'"!important; } }'),function(e){e.className=$})),j)){var C=u.split(","),w=C[C.length-1].trim();h="@layer ".concat(w," {").concat(h,"}"),C.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,g]};function ex(){return null}function eC(e,t){var r=e.token,i=e.path,s=e.hashId,c=e.layer,u=e.nonce,d=e.clientOnly,v=e.order,C=void 0===v?0:v,w=l.useContext(m),S=w.autoClear,E=(w.mock,w.defaultCache),A=w.hashPriority,k=w.container,O=w.ssrInline,$=w.transformers,Z=w.linters,j=w.cache,B=r._tokenKey,P=[B].concat((0,o.Z)(i)),R=M("style",P,function(){var e=P.join("|");if(!function(){if(!n&&(n={},(0,y.Z)())){var e,t=document.createElement("div");t.className=ep,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,x.Z)(t,2),o=r[0],i=r[1];n[o]=i});var o=document.querySelector("style[".concat(ep,"]"));o&&(eg=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),n[e]){var r=function(e){var t=n[e],r=null;if(t&&(0,y.Z)()){if(eg)r=eh;else{var o=document.querySelector("style[".concat(h,'="').concat(n[e],'"]'));o?r=o.innerHTML:delete n[e]}}return[r,t]}(e),o=(0,x.Z)(r,2),l=o[0],u=o[1];if(l)return[l,B,u,{},d,C]}var f=eb(t(),{hashId:s,hashPriority:A,layer:c,path:i.join("-"),transformers:$,linters:Z}),p=(0,x.Z)(f,2),g=p[0],m=p[1],v=ey(g),b=a("".concat(P.join("%")).concat(v));return[v,B,b,m,d,C]},function(e,t){var r=(0,x.Z)(e,3)[2];(t||S)&&em&&(0,b.jL)(r,{mark:h})},function(e){var t=(0,x.Z)(e,4),r=t[0],n=(t[1],t[2]),o=t[3];if(em&&r!==eh){var i={mark:h,prepend:"queue",attachTo:k,priority:C},a="function"==typeof u?u():u;a&&(i.csp={nonce:a});var l=(0,b.hq)(r,n,i);l[g]=j.instanceId,l.setAttribute(p,B),Object.keys(o).forEach(function(e){(0,b.hq)(ey(o[e]),"_effect-".concat(e),i)})}}),T=(0,x.Z)(R,3),_=T[0],F=T[1],N=T[2];return function(e){var t,r;return t=O&&!em&&E?l.createElement("style",(0,D.Z)({},(r={},(0,f.Z)(r,p,F),(0,f.Z)(r,h,N),r),{dangerouslySetInnerHTML:{__html:_}})):l.createElement(ex,null),l.createElement(l.Fragment,null,t,e)}}var ew=function(){function e(t,r){(0,c.Z)(this,e),(0,f.Z)(this,"name",void 0),(0,f.Z)(this,"style",void 0),(0,f.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,u.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eS(e){return e.notSplit=!0,e}eS(["borderTop","borderBottom"]),eS(["borderTop"]),eS(["borderBottom"]),eS(["borderLeft","borderRight"]),eS(["borderLeft"]),eS(["borderRight"])},1240:function(e,t,r){"use strict";r.d(t,{Z:function(){return j}});var n=r(40431),o=r(60456),i=r(65877),a=r(89301),l=r(86006),s=r(8683),c=r.n(s),u=r(70333),f=r(83346),d=r(88684),p=r(965),h=r(76135),g=r.n(h),m=r(52160),v=r(60618),y=r(5004);function b(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[g()(r)]=n),t},{})}function C(e){return(0,u.R_)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var S=function(e){var t=(0,l.useContext)(f.Z),r=t.csp,n=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),(0,l.useEffect)(function(){var t=e.current,n=(0,v.A)(t);(0,m.hq)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},E=["icon","className","onClick","style","primaryColor","secondaryColor"],A={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},k=function(e){var t,r,n=e.icon,o=e.className,i=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,f=(0,a.Z)(e,E),p=l.useRef(),h=A;if(c&&(h={primaryColor:c,secondaryColor:u||C(c)}),S(p),t=b(n),r="icon should be icon definiton, but got ".concat(n),(0,y.ZP)(t,"[@ant-design/icons] ".concat(r)),!b(n))return null;var g=n;return g&&"function"==typeof g.icon&&(g=(0,d.Z)((0,d.Z)({},g),{},{icon:g.icon(h.primaryColor,h.secondaryColor)})),function e(t,r,n){return n?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:r},x(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:r},x(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,d.Z)((0,d.Z)({className:o,onClick:i,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function O(e){var t=w(e),r=(0,o.Z)(t,2),n=r[0],i=r[1];return k.setTwoToneColors({primaryColor:n,secondaryColor:i})}k.displayName="IconReact",k.getTwoToneColors=function(){return(0,d.Z)({},A)},k.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;A.primaryColor=t,A.secondaryColor=r||C(t),A.calculated=!!r};var $=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O(u.iN.primary);var Z=l.forwardRef(function(e,t){var r,s=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,$),y=l.useContext(f.Z),b=y.prefixCls,x=void 0===b?"anticon":b,C=y.rootClassName,S=c()(C,x,(r={},(0,i.Z)(r,"".concat(x,"-").concat(u.name),!!u.name),(0,i.Z)(r,"".concat(x,"-spin"),!!d||"loading"===u.name),r),s),E=h;void 0===E&&g&&(E=-1);var A=w(m),O=(0,o.Z)(A,2),Z=O[0],j=O[1];return l.createElement("span",(0,n.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:E,onClick:g,className:S}),l.createElement(k,{icon:u,primaryColor:Z,secondaryColor:j,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});Z.displayName="AntdIcon",Z.getTwoToneColor=function(){var e=k.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Z.setTwoToneColor=O;var j=Z},83346:function(e,t,r){"use strict";var n=(0,r(86006).createContext)({});t.Z=n},34777:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},56222:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},31533:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},27977:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},49132:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},75710:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},32675:function(e,t,r){"use strict";r.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var n=r(25752);function o(e,t,r){return{r:255*(0,n.sh)(e,255),g:255*(0,n.sh)(t,255),b:255*(0,n.sh)(r,255)}}function i(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-r)/c+(t1&&(r-=1),r<1/6)?e+(t-e)*(6*r):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function l(e,t,r){if(e=(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100),0===t)i=r,l=r,o=r;else{var o,i,l,s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-r)/l+(t>16,g:(65280&e)>>8,b:255&e}}},29888:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},79185:function(e,t,r){"use strict";r.d(t,{uA:function(){return a}});var n=r(32675),o=r(29888),i=r(25752);function a(e){var t={r:0,g:0,b:0},r=1,a=null,l=null,s=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=u.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=u.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=u.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=u.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=u.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=u.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=u.hex8.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),a:(0,n.T6)(r[4]),format:t?"name":"hex8"}:(r=u.hex6.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),format:t?"name":"hex"}:(r=u.hex4.exec(e))?{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),a:(0,n.T6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=u.hex3.exec(e))&&{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,n.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,n.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,n.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,i.Yq)(r),{ok:c,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return!!u.CSS_UNIT.exec(String(e))}},57389:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var n=r(32675),o=r(29888),i=r(79185),a=r(25752),l=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=r.format)&&void 0!==o?o:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,n.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,n.py)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,n.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,n.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,n.vq)(this.r,this.g,this.b,!1),t=0,r=Object.entries(o.R);t=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(255*(t/100))))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(255*(t/100))))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(255*(t/100))))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(a)},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],l=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;aMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}r.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return n}})},89620:function(e,t,r){"use strict";r.d(t,{Z:function(){return U}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?g[C]+" "+w:l(w,/&\f/g,g[C])).trim())&&(f[x++]=S);return b(e,t,r,0===i?j:c,f,d,p)}function _(e,t,r,n){return b(e,t,r,B,u(e,0,n),u(e,n+1,-1),n)}var F=function(e,t,r){for(var n=0,o=0;n=o,o=w(),38===n&&12===o&&(t[r]=1),!S(o);)C();return u(y,e,m)},N=function(e,t){var r=-1,n=44;do switch(S(n)){case 0:38===n&&12===w()&&(t[r]=1),e[r]+=F(m-1,t,r);break;case 2:e[r]+=A(n);break;case 4:if(44===n){e[++r]=58===w()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}while(n=C());return e},H=function(e,t){var r;return r=N(E(e),t),y="",r},D=new WeakMap,L=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||D.get(r))&&!n){D.set(e,!0);for(var o=[],i=H(t,o),a=r.props,l=0,s=0;l-1&&!e.return)switch(e.type){case B:e.return=function e(t,r){switch(45^c(t,0)?(((r<<2^c(t,0))<<2^c(t,1))<<2^c(t,2))<<2^c(t,3):0){case 5103:return $+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return $+t+O+t+k+t+t;case 6828:case 4268:return $+t+k+t+t;case 6165:return $+t+k+"flex-"+t+t;case 5187:return $+t+l(t,/(\w+).+(:[^]+)/,$+"box-$1$2"+k+"flex-$1$2")+t;case 5443:return $+t+k+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return $+t+k+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return $+t+k+l(t,"shrink","negative")+t;case 5292:return $+t+k+l(t,"basis","preferred-size")+t;case 6060:return $+"box-"+l(t,"-grow","")+$+t+k+l(t,"grow","positive")+t;case 4554:return $+l(t,/([^-])(transform)/g,"$1"+$+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(t)-1-r>6)switch(c(t,r+1)){case 109:if(45!==c(t,r+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+O+(108==c(t,r+3)?"$3":"$2-$3"))+t;case 115:return~s(t,"stretch")?e(l(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==c(t,r+1))break;case 6444:switch(c(t,f(t)-3-(~s(t,"!important")&&10))){case 107:return l(t,":",":"+$)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(45===c(t,14)?"inline-":"")+"box$3$1"+$+"$2$3$1"+k+"$2box$3")+t}break;case 5936:switch(c(t,r+11)){case 114:return $+t+k+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return $+t+k+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return $+t+k+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return $+t+k+t+t}return t}(e.value,e.length);break;case P:return R([x(e,{value:l(e.value,"@","@"+$)})],n);case j:if(e.length)return e.props.map(function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return R([x(e,{props:[l(t,/:(read-\w+)/,":"+O+"$1")]})],n);case"::placeholder":return R([x(e,{props:[l(t,/:(plac\w+)/,":"+$+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":"+O+"$1")]}),x(e,{props:[l(t,/:(plac\w+)/,k+"input-$1")]})],n)}return""}).join("")}}],U=function(e){var t,r,o,a,g,x=e.key;if("css"===x){var k=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(k,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var O=e.stylisPlugins||z,$={},j=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r2||S(v)>3?"":" "}(T);break;case 92:W+=function(e,t){for(var r;--t&&C()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return r=m+(t<6&&32==w()&&32==C()),u(y,e,r)}(m-1,7);continue;case 47:switch(w()){case 42:case 47:d(b(O=function(e,t){for(;C();)if(e+v===57)break;else if(e+v===84&&47===w())break;return"/*"+u(y,t,m-1)+"*"+i(47===e?e:C())}(C(),m),r,n,Z,i(v),u(O,2,-2),0),k);break;default:W+="/"}break;case 123*F:E[$++]=f(W)*H;case 125*F:case 59:case 0:switch(D){case 0:case 125:N=0;case 59+j:-1==H&&(W=l(W,/\f/g,"")),R>0&&f(W)-B&&d(R>32?_(W+";",o,n,B-1):_(l(W," ","")+";",o,n,B-2),k);break;case 59:W+=";";default:if(d(U=M(W,r,n,$,j,a,E,L,I=[],z=[],B),g),123===D){if(0===j)e(W,r,U,U,I,g,B,E,z);else switch(99===P&&110===c(W,3)?100:P){case 100:case 108:case 109:case 115:e(t,U,U,o&&d(M(t,U,U,0,0,a,E,L,a,I=[],B),z),a,z,B,E,o?I:z);break;default:e(W,U,U,U,[""],z,0,E,z)}}}$=j=R=0,F=H=1,L=W="",B=x;break;case 58:B=1+f(W),R=T;default:if(F<1){if(123==D)--F;else if(125==D&&0==F++&&125==(v=m>0?c(y,--m):0,h--,10===v&&(h=1,p--),v))continue}switch(W+=i(D),D*F){case 38:H=j>0?1:(W+="\f",-1);break;case 44:E[$++]=(f(W)-1)*H,H=1;break;case 64:45===w()&&(W+=A(C())),P=w(),j=B=f(L=W+=function(e){for(;!S(w());)C();return u(y,e,m)}(m)),D++;break;case 45:45===T&&2==f(W)&&(F=0)}}return g}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",r),B)},F={key:x,sheet:new n({key:x,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:$,registered:{},insert:function(e,t,r,n){g=r,P(e?e+"{"+t.styles+"}":t.styles),n&&(F.inserted[t.name]=!0)}};return F.sheet.hydrate(j),F}},83596:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},17464:function(e,t,r){"use strict";r.d(t,{T:function(){return s},i:function(){return i},w:function(){return l}});var n=r(86006),o=r(89620);r(50558),r(85124);var i=!0,a=n.createContext("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null);a.Provider;var l=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(a),r)})};i||(l=function(e){return function(t){var r=(0,n.useContext)(a);return null===r?(r=(0,o.Z)({key:"css"}),n.createElement(a.Provider,{value:r},e(t,r))):e(t,r)}});var s=n.createContext({})},72120:function(e,t,r){"use strict";r.d(t,{F4:function(){return u},iv:function(){return c},xB:function(){return s}});var n=r(17464),o=r(86006),i=r(75941),a=r(85124),l=r(50558);r(89620),r(86979);var s=(0,n.w)(function(e,t){var r=e.styles,s=(0,l.O)([r],void 0,o.useContext(n.T));if(!n.i){for(var c,u=s.name,f=s.styles,d=s.next;void 0!==d;)u+=" "+d.name,f+=d.styles,d=d.next;var p=!0===t.compat,h=t.insert("",{name:u,styles:f},t.sheet,p);return p?null:o.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:h},c.nonce=t.sheet.nonce,c))}var g=o.useRef();return(0,a.j)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,o=document.querySelector('style[data-emotion="'+e+" "+s.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),g.current=[r,n],function(){r.flush()}},[t]),(0,a.j)(function(){var e=g.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==s.next&&(0,i.My)(t,s.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",s,r,!1)},[t,s.name]),null});function c(){for(var e=arguments.length,t=Array(e),r=0;r=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}},85124:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return l}});var n,o=r(86006),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},75941:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return i},fp:function(){return n},hC:function(){return o}});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},46240:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(40431);function o(e,t,r){return void 0===e||"string"==typeof e?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},50487:function(e,t,r){"use strict";function n(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}r.d(t,{Z:function(){return n}})},28426:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(89791),i=r(50487);function a(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function l(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:l,externalForwardedProps:s,className:c}=e;if(!t){let e=(0,o.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==r?void 0:r.className),t=(0,n.Z)({},null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),i=(0,n.Z)({},r,s,l);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.Z)((0,n.Z)({},s,l)),f=a(l),d=a(s),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==r?void 0:r.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,n.Z)({},null==p?void 0:p.style,null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,n.Z)({},p,r,d,f);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},61914:function(e,t,r){"use strict";function n(e,t,r){return"function"==typeof e?e(t,r):e}r.d(t,{Z:function(){return n}})},18587:function(e,t,r){"use strict";r.d(t,{d6:function(){return i},sI:function(){return a}});var n=r(13809),o=r(88539);let i=(e,t)=>(0,n.Z)(e,t,"Joy"),a=(e,t)=>(0,o.Z)(e,t,"Joy")},38230:function(e,t){"use strict";t.Z={grey:{50:"#F7F7F8",100:"#EBEBEF",200:"#D8D8DF",300:"#B9B9C6",400:"#8F8FA3",500:"#73738C",600:"#5A5A72",700:"#434356",800:"#25252D",900:"#131318"},blue:{50:"#F4FAFF",100:"#DDF1FF",200:"#ADDBFF",300:"#6FB6FF",400:"#3990FF",500:"#096BDE",600:"#054DA7",700:"#02367D",800:"#072859",900:"#00153C"},yellow:{50:"#FFF8C5",100:"#FAE17D",200:"#EAC54F",300:"#D4A72C",400:"#BF8700",500:"#9A6700",600:"#7D4E00",700:"#633C01",800:"#4D2D00",900:"#3B2300"},red:{50:"#FFF8F6",100:"#FFE9E8",200:"#FFC7C5",300:"#FF9192",400:"#FA5255",500:"#D3232F",600:"#A10E25",700:"#77061B",800:"#580013",900:"#39000D"},green:{50:"#F3FEF5",100:"#D7F5DD",200:"#77EC95",300:"#4CC76E",400:"#2CA24D",500:"#1A7D36",600:"#0F5D26",700:"#034318",800:"#002F0F",900:"#001D09"},purple:{50:"#FDF7FF",100:"#F4EAFF",200:"#E1CBFF",300:"#C69EFF",400:"#A374F9",500:"#814DDE",600:"#5F35AE",700:"#452382",800:"#301761",900:"#1D0A42"}}},47093:function(e,t,r){"use strict";r.d(t,{VT:function(){return s},do:function(){return c}});var n=r(86006),o=r(29720),i=r(98918),a=r(9268);let l=n.createContext(void 0),s=e=>{let t=n.useContext(l);return{getColor:(r,n)=>t&&e&&t.includes(e)?r||"context":r||n}};function c({children:e,variant:t}){var r;let n=(0,o.F)();return(0,a.jsx)(l.Provider,{value:t?(null!=(r=n.colorInversionConfig)?r:i.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},29720:function(e,t,r){"use strict";r.d(t,{F:function(){return c},Z:function(){return u}}),r(86006);var n=r(95887),o=r(14446),i=r(98918),a=r(41287),l=r(8622),s=r(9268);let c=()=>{let e=(0,n.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let r=i.Z;return t&&(r=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:r,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},98918:function(e,t,r){"use strict";var n=r(41287);let o=(0,n.Z)();t.Z=o},41287:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(40431),o=r(46750),i=r(95135),a=r(82190),l=r(23343),s=r(57716),c=r(93815);let u=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},f=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,a])=>{r&&(!r||r([...o,n]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,n],Array.isArray(a)?[...i,n]:i):t([...o,n],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let r=e[e.length-1];return r.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:d(e,t)}),u(i,e,`var(${n})`,l),u(a,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],g=["light"];var m=function(e,t){let{colorSchemes:r={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=r,m=(0,o.Z)(r,g);if(Object.entries(m||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=p(r,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:n}}),d){let{css:e,vars:r,varsWithDefaults:n}=p(d,t);u=(0,i.Z)(u,n),f.light={css:e,vars:r}}return{vars:u,generateCssVars:e=>e?{css:(0,n.Z)({},f[e].css),vars:f[e].vars}:{css:(0,n.Z)({},s),vars:l}}},v=r(51579),y=r(2272);let b=(0,n.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=r(38230);function C(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var w=r(18587),S=r(52428);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],A=["colorSchemes"],k=(e="joy")=>(0,a.Z)(e);function O(e){var t,r,a,u,f,d,p,h,g,y,O,$,Z,j,B,P,R,T,M,_,F,N,H,D,L,I,z,U,W,K,G,q,V,X,Y,J,Q,ee,et,er,en,eo,ei,ea,el,es,ec,eu,ef,ed,ep,eh,eg,em,ev,ey;let eb=e||{},{cssVarPrefix:ex="joy",breakpoints:eC,spacing:ew,components:eS,variants:eE,colorInversion:eA,shouldSkipGeneratingVar:ek=C}=eb,eO=(0,o.Z)(eb,E),e$=k(ex),eZ={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,info:x.Z.purple,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FFF",black:"#09090D"}},ej=e=>{var t;let r=e.split("-"),n=r[1],o=r[2];return e$(e,null==(t=eZ[n])?void 0:t[o])},eB=e=>({plainColor:ej(`palette-${e}-600`),plainHoverBg:ej(`palette-${e}-100`),plainActiveBg:ej(`palette-${e}-200`),plainDisabledColor:ej(`palette-${e}-200`),outlinedColor:ej(`palette-${e}-500`),outlinedBorder:ej(`palette-${e}-200`),outlinedHoverBg:ej(`palette-${e}-100`),outlinedHoverBorder:ej(`palette-${e}-300`),outlinedActiveBg:ej(`palette-${e}-200`),outlinedDisabledColor:ej(`palette-${e}-100`),outlinedDisabledBorder:ej(`palette-${e}-100`),softColor:ej(`palette-${e}-600`),softBg:ej(`palette-${e}-100`),softHoverBg:ej(`palette-${e}-200`),softActiveBg:ej(`palette-${e}-300`),softDisabledColor:ej(`palette-${e}-300`),softDisabledBg:ej(`palette-${e}-50`),solidColor:"#fff",solidBg:ej(`palette-${e}-500`),solidHoverBg:ej(`palette-${e}-600`),solidActiveBg:ej(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:ej(`palette-${e}-200`)}),eP=e=>({plainColor:ej(`palette-${e}-300`),plainHoverBg:ej(`palette-${e}-800`),plainActiveBg:ej(`palette-${e}-700`),plainDisabledColor:ej(`palette-${e}-800`),outlinedColor:ej(`palette-${e}-200`),outlinedBorder:ej(`palette-${e}-700`),outlinedHoverBg:ej(`palette-${e}-800`),outlinedHoverBorder:ej(`palette-${e}-600`),outlinedActiveBg:ej(`palette-${e}-900`),outlinedDisabledColor:ej(`palette-${e}-800`),outlinedDisabledBorder:ej(`palette-${e}-800`),softColor:ej(`palette-${e}-200`),softBg:ej(`palette-${e}-900`),softHoverBg:ej(`palette-${e}-800`),softActiveBg:ej(`palette-${e}-700`),softDisabledColor:ej(`palette-${e}-800`),softDisabledBg:ej(`palette-${e}-900`),solidColor:"#fff",solidBg:ej(`palette-${e}-600`),solidHoverBg:ej(`palette-${e}-700`),solidActiveBg:ej(`palette-${e}-800`),solidDisabledColor:ej(`palette-${e}-700`),solidDisabledBg:ej(`palette-${e}-900`)}),eR={palette:{mode:"light",primary:(0,n.Z)({},eZ.primary,eB("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:ej("palette-neutral-800"),plainHoverColor:ej("palette-neutral-900"),plainHoverBg:ej("palette-neutral-100"),plainActiveBg:ej("palette-neutral-200"),plainDisabledColor:ej("palette-neutral-300"),outlinedColor:ej("palette-neutral-800"),outlinedBorder:ej("palette-neutral-200"),outlinedHoverColor:ej("palette-neutral-900"),outlinedHoverBg:ej("palette-neutral-100"),outlinedHoverBorder:ej("palette-neutral-300"),outlinedActiveBg:ej("palette-neutral-200"),outlinedDisabledColor:ej("palette-neutral-300"),outlinedDisabledBorder:ej("palette-neutral-100"),softColor:ej("palette-neutral-800"),softBg:ej("palette-neutral-100"),softHoverColor:ej("palette-neutral-900"),softHoverBg:ej("palette-neutral-200"),softActiveBg:ej("palette-neutral-300"),softDisabledColor:ej("palette-neutral-300"),softDisabledBg:ej("palette-neutral-50"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-300"),solidDisabledBg:ej("palette-neutral-50")}),danger:(0,n.Z)({},eZ.danger,eB("danger")),info:(0,n.Z)({},eZ.info,eB("info")),success:(0,n.Z)({},eZ.success,eB("success")),warning:(0,n.Z)({},eZ.warning,eB("warning"),{solidColor:ej("palette-warning-800"),solidBg:ej("palette-warning-200"),solidHoverBg:ej("palette-warning-300"),solidActiveBg:ej("palette-warning-400"),solidDisabledColor:ej("palette-warning-200"),solidDisabledBg:ej("palette-warning-50"),softColor:ej("palette-warning-800"),softBg:ej("palette-warning-50"),softHoverBg:ej("palette-warning-100"),softActiveBg:ej("palette-warning-200"),softDisabledColor:ej("palette-warning-200"),softDisabledBg:ej("palette-warning-50"),outlinedColor:ej("palette-warning-800"),outlinedHoverBg:ej("palette-warning-50"),plainColor:ej("palette-warning-800"),plainHoverBg:ej("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-800"),secondary:ej("palette-neutral-600"),tertiary:ej("palette-neutral-500")},background:{body:ej("palette-common-white"),surface:ej("palette-common-white"),popup:ej("palette-common-white"),level1:ej("palette-neutral-50"),level2:ej("palette-neutral-100"),level3:ej("palette-neutral-200"),tooltip:ej("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.28)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},eT={palette:{mode:"dark",primary:(0,n.Z)({},eZ.primary,eP("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:ej("palette-neutral-200"),plainHoverColor:ej("palette-neutral-50"),plainHoverBg:ej("palette-neutral-800"),plainActiveBg:ej("palette-neutral-700"),plainDisabledColor:ej("palette-neutral-700"),outlinedColor:ej("palette-neutral-200"),outlinedBorder:ej("palette-neutral-800"),outlinedHoverColor:ej("palette-neutral-50"),outlinedHoverBg:ej("palette-neutral-800"),outlinedHoverBorder:ej("palette-neutral-700"),outlinedActiveBg:ej("palette-neutral-800"),outlinedDisabledColor:ej("palette-neutral-800"),outlinedDisabledBorder:ej("palette-neutral-800"),softColor:ej("palette-neutral-200"),softBg:ej("palette-neutral-800"),softHoverColor:ej("palette-neutral-50"),softHoverBg:ej("palette-neutral-700"),softActiveBg:ej("palette-neutral-600"),softDisabledColor:ej("palette-neutral-700"),softDisabledBg:ej("palette-neutral-900"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-700"),solidDisabledBg:ej("palette-neutral-900")}),danger:(0,n.Z)({},eZ.danger,eP("danger")),info:(0,n.Z)({},eZ.info,eP("info")),success:(0,n.Z)({},eZ.success,eP("success"),{solidColor:"#fff",solidBg:ej("palette-success-600"),solidHoverBg:ej("palette-success-700"),solidActiveBg:ej("palette-success-800")}),warning:(0,n.Z)({},eZ.warning,eP("warning"),{solidColor:ej("palette-common-black"),solidBg:ej("palette-warning-300"),solidHoverBg:ej("palette-warning-400"),solidActiveBg:ej("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-100"),secondary:ej("palette-neutral-300"),tertiary:ej("palette-neutral-400")},background:{body:ej("palette-neutral-900"),surface:ej("palette-common-black"),popup:ej("palette-neutral-900"),level1:ej("palette-neutral-800"),level2:ej("palette-neutral-700"),level3:ej("palette-neutral-600"),tooltip:ej("palette-neutral-600"),backdrop:`rgba(${e$("palette-neutral-darkChannel",(0,l.n8)(eZ.neutral[800]))} / 0.5)`},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.24)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},eM='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',e_=(0,n.Z)({body:`"Public Sans", ${e$(`fontFamily-fallback, ${eM}`)}`,display:`"Public Sans", ${e$(`fontFamily-fallback, ${eM}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:eM},eO.fontFamily),eF=(0,n.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eO.fontWeight),eN=(0,n.Z)({xs3:"0.5rem",xs2:"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem"},eO.fontSize),eH=(0,n.Z)({sm:1.25,md:1.5,lg:1.7},eO.lineHeight),eD=(0,n.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eO.letterSpacing),eL={colorSchemes:{light:eR,dark:eT},fontSize:eN,fontFamily:e_,fontWeight:eF,focus:{thickness:"2px",selector:`&.${(0,w.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${e$("focus-thickness",null!=(t=null==(r=eO.focus)?void 0:r.thickness)?t:"2px")})`,outline:`${e$("focus-thickness",null!=(a=null==(u=eO.focus)?void 0:u.thickness)?a:"2px")} solid ${e$("palette-focusVisible",eZ.primary[500])}`}},lineHeight:eH,letterSpacing:eD,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${e$("shadowRing",null!=(f=null==(d=eO.colorSchemes)||null==(d=d.light)?void 0:d.shadowRing)?f:eR.shadowRing)}, 0 1px 2px 0 rgba(${e$("shadowChannel",null!=(p=null==(h=eO.colorSchemes)||null==(h=h.light)?void 0:h.shadowChannel)?p:eR.shadowChannel)} / 0.12)`,sm:`${e$("shadowRing",null!=(g=null==(y=eO.colorSchemes)||null==(y=y.light)?void 0:y.shadowRing)?g:eR.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(O=null==($=eO.colorSchemes)||null==($=$.light)?void 0:$.shadowChannel)?O:eR.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${e$("shadowChannel",null!=(Z=null==(j=eO.colorSchemes)||null==(j=j.light)?void 0:j.shadowChannel)?Z:eR.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${e$("shadowChannel",null!=(B=null==(P=eO.colorSchemes)||null==(P=P.light)?void 0:P.shadowChannel)?B:eR.shadowChannel)} / 0.26)`,md:`${e$("shadowRing",null!=(R=null==(T=eO.colorSchemes)||null==(T=T.light)?void 0:T.shadowRing)?R:eR.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(M=null==(_=eO.colorSchemes)||null==(_=_.light)?void 0:_.shadowChannel)?M:eR.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${e$("shadowChannel",null!=(F=null==(N=eO.colorSchemes)||null==(N=N.light)?void 0:N.shadowChannel)?F:eR.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${e$("shadowChannel",null!=(H=null==(D=eO.colorSchemes)||null==(D=D.light)?void 0:D.shadowChannel)?H:eR.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${e$("shadowChannel",null!=(L=null==(I=eO.colorSchemes)||null==(I=I.light)?void 0:I.shadowChannel)?L:eR.shadowChannel)} / 0.29)`,lg:`${e$("shadowRing",null!=(z=null==(U=eO.colorSchemes)||null==(U=U.light)?void 0:U.shadowRing)?z:eR.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(W=null==(K=eO.colorSchemes)||null==(K=K.light)?void 0:K.shadowChannel)?W:eR.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(G=null==(q=eO.colorSchemes)||null==(q=q.light)?void 0:q.shadowChannel)?G:eR.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(V=null==(X=eO.colorSchemes)||null==(X=X.light)?void 0:X.shadowChannel)?V:eR.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(Y=null==(J=eO.colorSchemes)||null==(J=J.light)?void 0:J.shadowChannel)?Y:eR.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(Q=null==(ee=eO.colorSchemes)||null==(ee=ee.light)?void 0:ee.shadowChannel)?Q:eR.shadowChannel)} / 0.21)`,xl:`${e$("shadowRing",null!=(et=null==(er=eO.colorSchemes)||null==(er=er.light)?void 0:er.shadowRing)?et:eR.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(en=null==(eo=eO.colorSchemes)||null==(eo=eo.light)?void 0:eo.shadowChannel)?en:eR.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(ei=null==(ea=eO.colorSchemes)||null==(ea=ea.light)?void 0:ea.shadowChannel)?ei:eR.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(el=null==(es=eO.colorSchemes)||null==(es=es.light)?void 0:es.shadowChannel)?el:eR.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(ec=null==(eu=eO.colorSchemes)||null==(eu=eu.light)?void 0:eu.shadowChannel)?ec:eR.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(ef=null==(ed=eO.colorSchemes)||null==(ed=ed.light)?void 0:ed.shadowChannel)?ef:eR.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${e$("shadowChannel",null!=(ep=null==(eh=eO.colorSchemes)||null==(eh=eh.light)?void 0:eh.shadowChannel)?ep:eR.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${e$("shadowChannel",null!=(eg=null==(em=eO.colorSchemes)||null==(em=em.light)?void 0:em.shadowChannel)?eg:eR.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${e$("shadowChannel",null!=(ev=null==(ey=eO.colorSchemes)||null==(ey=ey.light)?void 0:ey.shadowChannel)?ev:eR.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-xl, ${eF.xl}`),fontSize:e$(`fontSize-xl7, ${eN.xl7}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eD.sm}`),color:e$("palette-text-primary",eR.palette.text.primary)},display2:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-xl, ${eF.xl}`),fontSize:e$(`fontSize-xl6, ${eN.xl6}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eD.sm}`),color:e$("palette-text-primary",eR.palette.text.primary)},h1:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-lg, ${eF.lg}`),fontSize:e$(`fontSize-xl5, ${eN.xl5}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eD.sm}`),color:e$("palette-text-primary",eR.palette.text.primary)},h2:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-lg, ${eF.lg}`),fontSize:e$(`fontSize-xl4, ${eN.xl4}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eD.sm}`),color:e$("palette-text-primary",eR.palette.text.primary)},h3:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-xl3, ${eN.xl3}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),color:e$("palette-text-primary",eR.palette.text.primary)},h4:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-xl2, ${eN.xl2}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eR.palette.text.primary)},h5:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-xl, ${eN.xl}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eR.palette.text.primary)},h6:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-lg, ${eN.lg}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eR.palette.text.primary)},body1:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-md, ${eN.md}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eR.palette.text.primary)},body2:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-sm, ${eN.sm}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-secondary",eR.palette.text.secondary)},body3:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-xs, ${eN.xs}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-tertiary",eR.palette.text.tertiary)},body4:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-xs2, ${eN.xs2}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-tertiary",eR.palette.text.tertiary)},body5:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-xs3, ${eN.xs3}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-tertiary",eR.palette.text.tertiary)}}},eI=eO?(0,i.Z)(eL,eO):eL,{colorSchemes:ez}=eI,eU=(0,o.Z)(eI,A),eW=(0,n.Z)({colorSchemes:ez},eU,{breakpoints:(0,s.Z)(null!=eC?eC:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var r;let o=e.instanceFontSize;return(0,n.Z)({color:"var(--Icon-color)",margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(r=t.vars.palette[e.color])?void 0:r.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eS),cssVarPrefix:ex,getCssVar:e$,spacing:(0,c.Z)(ew),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(eW.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(r=>{let n={main:"500",light:"200",dark:"800"};"dark"===e&&(n.main=400),!t[r].mainChannel&&t[r][n.main]&&(t[r].mainChannel=(0,l.n8)(t[r][n.main])),!t[r].lightChannel&&t[r][n.light]&&(t[r].lightChannel=(0,l.n8)(t[r][n.light])),!t[r].darkChannel&&t[r][n.dark]&&(t[r].darkChannel=(0,l.n8)(t[r][n.dark]))})}(e,t.palette)});let{vars:eK,generateCssVars:eG}=m((0,n.Z)({colorSchemes:ez},eU),{prefix:ex,shouldSkipGeneratingVar:ek});eW.vars=eK,eW.generateCssVars=eG,eW.unstable_sxConfig=(0,n.Z)({},b,null==e?void 0:e.unstable_sxConfig),eW.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},eW.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eq={getCssVar:e$,palette:eW.colorSchemes.light.palette};return eW.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eq),plainHover:(0,S.Zm)("plainHover",eq),plainActive:(0,S.Zm)("plainActive",eq),plainDisabled:(0,S.Zm)("plainDisabled",eq),outlined:(0,S.Zm)("outlined",eq),outlinedHover:(0,S.Zm)("outlinedHover",eq),outlinedActive:(0,S.Zm)("outlinedActive",eq),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eq),soft:(0,S.Zm)("soft",eq),softHover:(0,S.Zm)("softHover",eq),softActive:(0,S.Zm)("softActive",eq),softDisabled:(0,S.Zm)("softDisabled",eq),solid:(0,S.Zm)("solid",eq),solidHover:(0,S.Zm)("solidHover",eq),solidActive:(0,S.Zm)("solidActive",eq),solidDisabled:(0,S.Zm)("solidDisabled",eq)},eE),eW.palette=(0,n.Z)({},eW.colorSchemes.light.palette,{colorScheme:"light"}),eW.shouldSkipGeneratingVar=ek,eW.colorInversion="function"==typeof eA?eA:(0,i.Z)({soft:(0,S.pP)(eW,!0),solid:(0,S.Lo)(eW,!0)},eA||{},{clone:!1}),eW}},8622:function(e,t){"use strict";t.Z="$$joy"},50645:function(e,t,r){"use strict";var n=r(9312),o=r(98918),i=r(8622);let a=(0,n.ZP)({defaultTheme:o.Z,themeId:i.Z});t.Z=a},88930:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(38295),i=r(98918),a=r(8622);function l({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},i.Z,{components:{}}),themeId:a.Z})}},52428:function(e,t,r){"use strict";r.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var n=r(40431),o=r(82190);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,r)=>{t.includes("Color")&&(e.color=r),t.includes("Bg")&&(e.backgroundColor=r),t.includes("Border")&&(e.borderColor=r)},l=(e,t,r)=>{let n={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=r?r(t):o;t.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),t.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),a(n,t,e)}}),n},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let r={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(r=(0,n.Z)({},r,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return r.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverColor:"var(--variant-solidHoverColor)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),r},u=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{var n;let o=t.split("-"),i=o[1],a=o[2];return r(t,null==(n=e.palette)||null==(n=n[i])?void 0:n[a])}:r;return Object.entries(e.palette).forEach(t=>{let[r,o]=t;i(o)&&(a[r]={"--Badge-ringColor":l(`palette-${r}-softBg`),[n("--shadowChannel")]:l(`palette-${r}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[n("--palette-focusVisible")]:l(`palette-${r}-300`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${r}-100`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.6)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${r}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${r}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${r}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${r}-100`),"--variant-softBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${r}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${r}-400`),"--variant-solidActiveBg":l(`palette-${r}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[n("--palette-focusVisible")]:l(`palette-${r}-500`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,[n("--palette-text-primary")]:l(`palette-${r}-700`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.68)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${r}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${r}-600`),"--variant-outlinedHoverBorder":l(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${r}-600`),"--variant-softBg":`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${r}-700`),"--variant-softHoverBg":l(`palette-${r}-200`),"--variant-softActiveBg":l(`palette-${r}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${r}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${r}-500`),"--variant-solidActiveBg":l(`palette-${r}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{let n=t.split("-"),o=n[1],i=n[2];return r(t,e.palette[o][i])}:r;return Object.entries(e.palette).forEach(e=>{let[t,r]=e;i(r)&&("warning"===t?a.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-700`),[n("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[n("--palette-background-popup")]:l(`palette-${t}-100`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${t}-900`),[n("--palette-text-secondary")]:l(`palette-${t}-700`),[n("--palette-text-tertiary")]:l(`palette-${t}-500`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,"--variant-plainColor":l(`palette-${t}-700`),"--variant-plainHoverColor":l(`palette-${t}-800`),"--variant-plainHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-700`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.5)`,"--variant-outlinedHoverColor":l(`palette-${t}-800`),"--variant-outlinedHoverBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.6)`,"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${t}-800`),"--variant-softHoverColor":l(`palette-${t}-900`),"--variant-softBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.28)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${t}-600`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${t}-700`),"--variant-solidActiveBg":l(`palette-${t}-800`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`}:a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-200`),[n("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[n("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[n("--palette-background-popup")]:l(`palette-${t}-700`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l("palette-common-white"),[n("--palette-text-secondary")]:l(`palette-${t}-100`),[n("--palette-text-tertiary")]:l(`palette-${t}-200`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverColor":l(`palette-${t}-700`),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-200`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},326:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(40431),o=r(46750),i=r(99179),a=r(61914),l=r(28426),s=r(46240),c=r(47093);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:r,elementType:h,ownerState:g,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:C={[e]:void 0},slotProps:w={[e]:void 0}}=m,S=(0,o.Z)(m,f),E=C[e]||h,A=(0,a.Z)(w[e],g),k=(0,l.Z)((0,n.Z)({className:r},b,{externalForwardedProps:"root"===e?S:void 0,externalSlotProps:A})),{props:{component:O},internalRef:$}=k,Z=(0,o.Z)(k.props,d),j=(0,i.Z)($,null==A?void 0:A.ref,t.ref),B=v?v(Z):{},{disableColorInversion:P=!1}=B,R=(0,o.Z)(B,p),T=(0,n.Z)({},g,R),{getColor:M}=(0,c.VT)(T.variant);if("root"===e){var _;T.color=null!=(_=Z.color)?_:g.color}else P||(T.color=M(Z.color,T.color));let F="root"===e?O||x:O,N=(0,s.Z)(E,(0,n.Z)({},"root"===e&&!x&&!C[e]&&y,"root"!==e&&!C[e]&&y,Z,F&&{as:F},{ref:j}),T);return Object.keys(R).forEach(e=>{delete N[e]}),[E,N]}},44169:function(e,t,r){"use strict";var n=r(86006);let o=n.createContext(null);t.Z=o},63678:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(86006),o=r(44169);function i(){let e=n.useContext(o.Z);return e}},4323:function(e,t,r){"use strict";r.d(t,{ZP:function(){return v},Co:function(){return y}});var n=r(40431),o=r(86006),i=r(83596),a=/^((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|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)-.*))$/,l=(0,i.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=r(17464),c=r(75941),u=r(50558),f=r(85124),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,f.L)(function(){return(0,c.My)(t,r,n)}),null},m=(function e(t,r){var i,a,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var d=h(t,r,l),m=d||p(f),v=!m("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,C=1;C{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},14446:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(40431),o=r(86006),i=r(63678),a=r(44169);let l="function"==typeof Symbol&&Symbol.for;var s=l?Symbol.for("mui.nested"):"__THEME_NESTED__",c=r(9268),u=function(e){let{children:t,theme:r}=e,l=(0,i.Z)(),u=o.useMemo(()=>{let e=null===l?r:function(e,t){if("function"==typeof t){let r=t(e);return r}return(0,n.Z)({},e,t)}(l,r);return null!=e&&(e[s]=null!==l),e},[r,l]);return(0,c.jsx)(a.Z.Provider,{value:u,children:t})},f=r(17464),d=r(65396);let p={};function h(e,t,r,i=!1){return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof r){let a=r(o),l=e?(0,n.Z)({},t,{[e]:a}):a;return i?()=>l:l}return e?(0,n.Z)({},t,{[e]:r}):(0,n.Z)({},t,r)},[e,t,r,i])}var g=function(e){let{children:t,theme:r,themeId:n}=e,o=(0,d.Z)(p),a=(0,i.Z)()||p,l=h(n,o,r),s=h(n,a,r,!0);return(0,c.jsx)(u,{theme:s,children:(0,c.jsx)(f.T.Provider,{value:l,children:t})})}},91559:function(e,t,r){"use strict";r.d(t,{L7:function(){return s},P$:function(){return u},VO:function(){return o},W8:function(){return l},dt:function(){return c},k9:function(){return a}});var n=r(95135);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,r){let n=e.theme||{};if(Array.isArray(t)){let e=n.breakpoints||i;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){let e=n.breakpoints||i;return Object.keys(t).reduce((n,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){let o=e.up(i);n[o]=r(t[i],i)}else n[i]=t[i];return n},{})}let a=r(t);return a}function l(e={}){var t;let r=null==(t=e.keys)?void 0:t.reduce((t,r)=>{let n=e.up(r);return t[n]={},t},{});return r||{}}function s(e,t){return e.reduce((e,t)=>{let r=e[t],n=!r||0===Object.keys(r).length;return n&&delete e[t],e},t)}function c(e,...t){let r=l(e),o=[r,...t].reduce((e,t)=>(0,n.Z)(e,t),{});return s(Object.keys(r),o)}function u({values:e,breakpoints:t,base:r}){let n;let o=r||function(e,t){if("object"!=typeof e)return{};let r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n{null!=e[t]&&(r[t]=!0)}),r}(e,t),i=Object.keys(o);return 0===i.length?e:i.reduce((t,r,o)=>(Array.isArray(e)?(t[r]=null!=e[o]?e[o]:e[n],n=o):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[n],n=r):t[r]=e,t),{})}},23343:function(e,t,r){"use strict";r.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return c},n8:function(){return a}});var n=r(16066);function o(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function i(e){let t;if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),o=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,n.Z)(9,e));let a=e.substring(r+1,e.length-1);if("color"===o){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,n.Z)(10,t))}else a=a.split(",");return{type:o,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let a=e=>{let t=i(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),`${t}(${n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);let{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),s=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let r=s(e),n=s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return l(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return l(e)}},9312:function(e,t,r){"use strict";r.d(t,{ZP:function(){return x},x9:function(){return m}});var n=r(46750),o=r(40431),i=r(4323),a=r(89587),l=r(53832);let s=["variant"];function c(e){return 0===e.length}function u(e){let{variant:t}=e,r=(0,n.Z)(e,s),o=t||"";return Object.keys(r).sort().forEach(t=>{"color"===t?o+=c(o)?e[t]:(0,l.Z)(e[t]):o+=`${c(o)?t:(0,l.Z)(t)}${(0,l.Z)(e[t].toString())}`}),o}var f=r(51579);let d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,h=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);let n={};return r.forEach(e=>{let t=u(e.props);n[t]=e.style}),n},g=(e,t,r,n)=>{var o;let{ownerState:i={}}=e,a=[],l=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return l&&l.forEach(r=>{let n=!0;Object.keys(r.props).forEach(t=>{i[t]!==r.props[t]&&e[t]!==r.props[t]&&(n=!1)}),n&&a.push(t[u(r.props)])}),a};function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let v=(0,a.Z)(),y=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b({defaultTheme:e,theme:t,themeId:r}){return 0===Object.keys(t).length?e:t[r]||t}function x(e={}){let{themeId:t,defaultTheme:r=v,rootShouldForwardProp:a=m,slotShouldForwardProp:l=m}=e,s=e=>(0,f.Z)((0,o.Z)({},e,{theme:b((0,o.Z)({},e,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(e,c={})=>{var u;let f;(0,i.Co)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:v,slot:x,skipVariantsResolver:C,skipSx:w,overridesResolver:S=(u=y(x))?(e,t)=>t[u]:null}=c,E=(0,n.Z)(c,d),A=void 0!==C?C:x&&"Root"!==x&&"root"!==x||!1,k=w||!1,O=m;"Root"===x||"root"===x?O=a:x?O=l:"string"==typeof e&&e.charCodeAt(0)>96&&(O=void 0);let $=(0,i.ZP)(e,(0,o.Z)({shouldForwardProp:O,label:f},E)),Z=(n,...i)=>{let a=i?i.map(e=>"function"==typeof e&&e.__emotion_real!==e?n=>e((0,o.Z)({},n,{theme:b((0,o.Z)({},n,{defaultTheme:r,themeId:t}))})):e):[],l=n;v&&S&&a.push(e=>{let n=b((0,o.Z)({},e,{defaultTheme:r,themeId:t})),i=p(v,n);if(i){let t={};return Object.entries(i).forEach(([r,i])=>{t[r]="function"==typeof i?i((0,o.Z)({},e,{theme:n})):i}),S(e,t)}return null}),v&&!A&&a.push(e=>{let n=b((0,o.Z)({},e,{defaultTheme:r,themeId:t}));return g(e,h(v,n),n,v)}),k||a.push(s);let c=a.length-i.length;if(Array.isArray(n)&&c>0){let e=Array(c).fill("");(l=[...n,...e]).raw=[...n.raw,...e]}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>n((0,o.Z)({},e,{theme:b((0,o.Z)({},e,{defaultTheme:r,themeId:t}))})));let u=$(l,...a);return e.muiName&&(u.muiName=e.muiName),u};return $.withConfig&&(Z.withConfig=$.withConfig),Z}}},57716:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(46750),o=r(40431);let i=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:l=5}=e,s=(0,n.Z)(e,i),c=a(t),u=Object.keys(c);function f(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function d(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-l/100}${r})`}function p(e,n){let o=u.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:n)-l/100}${r})`}return(0,o.Z)({keys:u,values:c,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let r=0===e.length?[1]:e;return r.map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ")};return r.mui=!0,r}},89587:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(40431),o=r(46750),i=r(95135),a=r(57716),l={borderRadius:4},s=r(93815),c=r(51579),u=r(2272);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:r={},palette:d={},spacing:p,shape:h={}}=e,g=(0,o.Z)(e,f),m=(0,a.Z)(r),v=(0,s.Z)(p),y=(0,i.Z)({breakpoints:m,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},d),spacing:v,shape:(0,n.Z)({},l,h)},g);return(y=t.reduce((e,t)=>(0,i.Z)(e,t),y)).unstable_sxConfig=(0,n.Z)({},u.Z,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},82190:function(e,t,r){"use strict";function n(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`}r.d(t,{Z:function(){return n}})},70233:function(e,t,r){"use strict";var n=r(95135);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},48527:function(e,t,r){"use strict";r.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return g},e6:function(){return v},o3:function(){return y}});var n=r(91559),o=r(95247),i=r(70233);let a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}let[t,r]=e.split(""),n=a[t],o=l[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,r,n){var i;let a=null!=(i=(0,o.DW)(e,t,!1))?i:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function g(e,t){if("string"==typeof t||null==t)return t;let r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function m(e,t){let r=h(e.theme);return Object.keys(e).map(o=>(function(e,t,r,o){if(-1===t.indexOf(r))return null;let i=c(r),a=e[r];return(0,n.k9)(e,a,e=>i.reduce((t,r)=>(t[r]=g(o,e),t),{}))})(e,t,o,r)).reduce(i.Z,{})}function v(e){return m(e,u)}function y(e){return m(e,f)}function b(e){return m(e,d)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},95247:function(e,t,r){"use strict";r.d(t,{DW:function(){return i},Jq:function(){return a}});var n=r(53832),o=r(91559);function i(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}t.ZP=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=e.theme,f=i(u,l)||{};return(0,o.k9)(e,c,e=>{let o=a(f,s,e);return(e===o&&"string"==typeof e&&(o=a(f,s,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?o:{[r]:o}})};return c.propTypes={},c.filterProps=[t],c}},2272:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});var n=r(48527),o=r(95247),i=r(70233),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,i.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r},l=r(91559);function s(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:s}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:s}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:s}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:s}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:s}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,n.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],a(c,u,f,d,p,h,g,m,v,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,n.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,n.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["columnGap"];let w=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,n.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["rowGap"];let S=(0,o.ZP)({prop:"gridColumn"}),E=(0,o.ZP)({prop:"gridRow"}),A=(0,o.ZP)({prop:"gridAutoFlow"}),k=(0,o.ZP)({prop:"gridAutoColumns"}),O=(0,o.ZP)({prop:"gridAutoRows"}),$=(0,o.ZP)({prop:"gridTemplateColumns"}),Z=(0,o.ZP)({prop:"gridTemplateRows"}),j=(0,o.ZP)({prop:"gridTemplateAreas"}),B=(0,o.ZP)({prop:"gridArea"});function P(e,t){return"grey"===t?t:e}a(x,C,w,S,E,A,k,O,$,Z,j,B);let R=(0,o.ZP)({prop:"color",themeKey:"palette",transform:P}),T=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:P}),M=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:P});function _(e){return e<=1&&0!==e?`${100*e}%`:e}a(R,T,M);let F=(0,o.ZP)({prop:"width",transform:_}),N=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var r;let n=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||l.VO[t];return{maxWidth:n||_(t)}}):null;N.filterProps=["maxWidth"];let H=(0,o.ZP)({prop:"minWidth",transform:_}),D=(0,o.ZP)({prop:"height",transform:_}),L=(0,o.ZP)({prop:"maxHeight",transform:_}),I=(0,o.ZP)({prop:"minHeight",transform:_});(0,o.ZP)({prop:"size",cssProperty:"width",transform:_}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:_});let z=(0,o.ZP)({prop:"boxSizing"});a(F,N,H,D,L,I,z);let U={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:P},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:P},backgroundColor:{themeKey:"palette",transform:P},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},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:x},rowGap:{style:w},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_},maxWidth:{style:N},minWidth:{transform:_},height:{transform:_},maxHeight:{transform:_},minHeight:{transform:_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var W=U},86601:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(40431),o=r(46750),i=r(95135),a=r(2272);let l=["sx"],s=e=>{var t,r;let n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function c(e){let t;let{sx:r}=e,a=(0,o.Z)(e,l),{systemProps:c,otherProps:u}=s(a);return t=Array.isArray(r)?[c,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,i.P)(t)?(0,n.Z)({},c,t):c}:(0,n.Z)({},c,r),(0,n.Z)({},u,{sx:t})}},51579:function(e,t,r){"use strict";var n=r(53832),o=r(70233),i=r(95247),a=r(91559),l=r(2272);let s=function(){function e(e,t,r,o){let l={[e]:t,theme:r},s=o[e];if(!s)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:f,style:d}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,i.DW)(r,u)||{};return d?d(l):(0,a.k9)(l,t,t=>{let r=(0,i.Jq)(p,f,t);return(t===r&&"string"==typeof t&&(r=(0,i.Jq)(p,f,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===c)?r:{[c]:r}})}return function t(r){var n;let{sx:i,theme:s={}}=r||{};if(!i)return null;let c=null!=(n=s.unstable_sxConfig)?n:l.Z;function u(r){let n=r;if("function"==typeof r)n=r(s);else if("object"!=typeof r)return r;if(!n)return null;let i=(0,a.W8)(s.breakpoints),l=Object.keys(i),u=i;return Object.keys(n).forEach(r=>{var i;let l="function"==typeof(i=n[r])?i(s):i;if(null!=l){if("object"==typeof l){if(c[r])u=(0,o.Z)(u,e(r,l,s,c));else{let e=(0,a.k9)({theme:s},l,e=>({[r]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)})(e,l)?u[r]=t({sx:l,theme:s}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(r,l,s,c))}}),(0,a.L7)(l,u)}return Array.isArray(i)?i.map(u):u(i)}}();s.filterProps=["sx"],t.Z=s},95887:function(e,t,r){"use strict";var n=r(89587),o=r(65396);let i=(0,n.Z)();t.Z=function(e=i){return(0,o.Z)(e)}},38295:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(40431),o=r(95887);function i({props:e,name:t,defaultTheme:r,themeId:i}){let a=(0,o.Z)(r);i&&(a=a[i]||a);let l=function(e){let{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?function e(t,r){let o=(0,n.Z)({},r);return Object.keys(t).forEach(i=>{if(i.toString().match(/^(components|slots)$/))o[i]=(0,n.Z)({},t[i],o[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){let a=t[i]||{},l=r[i];o[i]={},l&&Object.keys(l)?a&&Object.keys(a)?(o[i]=(0,n.Z)({},l),Object.keys(a).forEach(t=>{o[i][t]=e(a[t],l[t])})):o[i]=l:o[i]=a}else void 0===o[i]&&(o[i]=t[i])}),o}(t.components[r].defaultProps,o):o}({theme:a,name:t,props:e});return l}},65396:function(e,t,r){"use strict";var n=r(86006),o=r(17464);t.Z=function(e=null){let t=n.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},47327:function(e,t){"use strict";let r;let n=e=>e,o=(r=n,{configure(e){r=e},generate:e=>r(e),reset(){r=n}});t.Z=o},53832:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(16066);function o(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},47562:function(e,t,r){"use strict";function n(e,t,r){let n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){let o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}r.d(t,{Z:function(){return n}})},95135:function(e,t,r){"use strict";r.d(t,{P:function(){return o},Z:function(){return function e(t,r,i={clone:!0}){let a=i.clone?(0,n.Z)({},t):t;return o(t)&&o(r)&&Object.keys(r).forEach(n=>{"__proto__"!==n&&(o(r[n])&&n in t&&o(t[n])?a[n]=e(t[n],r[n],i):i.clone?a[n]=o(r[n])?function e(t){if(!o(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[n]):r[n]:a[n]=r[n])}),a}}});var n=r(40431);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},16066:function(e,t,r){"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,n.Z)(e,t,r)}),o}},44542:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(86006);function o(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},65464:function(e,t,r){"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},99179:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(86006),o=r(65464);function i(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,o.Z)(e,t)})},e)}},21454:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return f}});var o=r(86006);let i=!0,a=!1,l={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 s(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(){let e=o.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",s,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0)}},[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return i||function(e){let{type:t,tagName:r}=e;return"INPUT"===r&&!!l[t]&&!e.readOnly||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(n),n=window.setTimeout(()=>{a=!1},100),t.current=!1,!0)},ref:e}}},20538:function(e,t,r){"use strict";r.d(t,{n:function(){return i}});var n=r(86006);let o=n.createContext(!1),i=e=>{let{children:t,disabled:r}=e,i=n.useContext(o);return n.createElement(o.Provider,{value:null!=r?r:i},t)};t.Z=o},25844:function(e,t,r){"use strict";r.d(t,{q:function(){return i}});var n=r(86006);let o=n.createContext(void 0),i=e=>{let{children:t,size:r}=e,i=n.useContext(o);return n.createElement(o.Provider,{value:r||i},t)};t.Z=o},79746:function(e,t,r){"use strict";r.d(t,{E_:function(){return i},oR:function(){return o}});var n=r(86006);let o="anticon",i=n.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:a}=i},17583:function(e,t,r){"use strict";let n,o,i;r.d(t,{ZP:function(){return H},w6:function(){return _}});var a=r(84596),l=r(83346),s=r(55567),c=r(79035),u=r(86006),f=(0,u.createContext)(void 0),d=r(66255),p=r(67044),h=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;u.useEffect(()=>{let e=(0,d.f)(t&&t.Modal);return e},[t]);let o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(p.Z.Provider,{value:o},r)},g=r(91295),m=r(60632),v=r(99528),y=r(79746),b=r(70333),x=r(57389),C=r(71693),w=r(52160);let S=`-ant-${Date.now()}-${Math.random()}`;var E=r(20538),A=r(25844),k=r(81027),O=r(78641),$=r(3184);function Z(e){let{children:t}=e,[,r]=(0,$.Z)(),{motion:n}=r,o=u.useRef(!1);return(o.current=o.current||!1===n,o.current)?u.createElement(O.zt,{motion:n},t):t}var j=r(98663),B=(e,t)=>{let[r,n]=(0,$.Z)();return(0,a.xy)({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,j.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},P=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let R=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function T(){return n||"ant"}function M(){return o||y.oR}let _=()=>({getPrefixCls:(e,t)=>t||(e?`${T()}-${e}`:T()),getIconPrefixCls:M,getRootPrefixCls:()=>n||T(),getTheme:()=>i}),F=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:d,locale:p,componentSize:b,direction:x,space:C,virtual:w,dropdownMatchSelectWidth:S,popupMatchSelectWidth:O,popupOverflow:$,legacyLocale:j,parentContext:T,iconPrefixCls:M,theme:_,componentDisabled:F,segmented:N,statistic:H,spin:D,calendar:L,carousel:I,cascader:z,collapse:U,typography:W,checkbox:K,descriptions:G,divider:q,drawer:V,skeleton:X,steps:Y,image:J,layout:Q,list:ee,mentions:et,modal:er,progress:en,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,input:ec,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:eg,avatar:em,message:ev,tag:ey,table:eb,card:ex,tabs:eC,timeline:ew,timePicker:eS,upload:eE,notification:eA,tree:ek,colorPicker:eO,datePicker:e$,wave:eZ}=e,ej=u.useCallback((t,r)=>{let{prefixCls:n}=e;if(r)return r;let o=n||T.getPrefixCls("");return t?`${o}-${t}`:o},[T.getPrefixCls,e.prefixCls]),eB=M||T.iconPrefixCls||y.oR,eP=eB!==T.iconPrefixCls,eR=r||T.csp,eT=B(eB,eR),eM=function(e,t){let r=e||{},n=!1!==r.inherit&&t?t:m.u_;return(0,s.Z)(()=>{if(!e)return t;let o=Object.assign({},n.components);return Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(e,t)=>e.some((e,r)=>{let n=t[r];return!(0,k.Z)(e,n,!0)}))}(_,T.theme),e_={csp:eR,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:p||j,direction:x,space:C,virtual:w,popupMatchSelectWidth:null!=O?O:S,popupOverflow:$,getPrefixCls:ej,iconPrefixCls:eB,theme:eM,segmented:N,statistic:H,spin:D,calendar:L,carousel:I,cascader:z,collapse:U,typography:W,checkbox:K,descriptions:G,divider:q,drawer:V,skeleton:X,steps:Y,image:J,input:ec,layout:Q,list:ee,mentions:et,modal:er,progress:en,result:eo,slider:ei,breadcrumb:ea,menu:el,pagination:es,empty:eu,badge:ef,radio:ed,rate:ep,switch:eh,transfer:eg,avatar:em,message:ev,tag:ey,table:eb,card:ex,tabs:eC,timeline:ew,timePicker:eS,upload:eE,notification:eA,tree:ek,colorPicker:eO,datePicker:e$,wave:eZ},eF=Object.assign({},T);Object.keys(e_).forEach(e=>{void 0!==e_[e]&&(eF[e]=e_[e])}),R.forEach(t=>{let r=e[t];r&&(eF[t]=r)});let eN=(0,s.Z)(()=>eF,eF,(e,t)=>{let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some(r=>e[r]!==t[r])}),eH=u.useMemo(()=>({prefixCls:eB,csp:eR}),[eB,eR]),eD=eP?eT(t):t,eL=u.useMemo(()=>{var e,t,r,n;return(0,c.T)((null===(e=g.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(r=null===(t=eN.locale)||void 0===t?void 0:t.Form)||void 0===r?void 0:r.defaultValidateMessages)||{},(null===(n=eN.form)||void 0===n?void 0:n.validateMessages)||{},(null==d?void 0:d.validateMessages)||{})},[eN,null==d?void 0:d.validateMessages]);Object.keys(eL).length>0&&(eD=u.createElement(f.Provider,{value:eL},t)),p&&(eD=u.createElement(h,{locale:p,_ANT_MARK__:"internalMark"},eD)),(eB||eR)&&(eD=u.createElement(l.Z.Provider,{value:eH},eD)),b&&(eD=u.createElement(A.q,{size:b},eD)),eD=u.createElement(Z,null,eD);let eI=u.useMemo(()=>{let e=eM||{},{algorithm:t,token:r,components:n}=e,o=P(e,["algorithm","token","components"]),i=t&&(!Array.isArray(t)||t.length>0)?(0,a.jG)(t):m.uH,l={};return Object.entries(n||{}).forEach(e=>{let[t,r]=e,n=Object.assign({},r);"algorithm"in n&&(!0===n.algorithm?n.theme=i:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=(0,a.jG)(n.algorithm)),delete n.algorithm),l[t]=n}),Object.assign(Object.assign({},o),{theme:i,token:Object.assign(Object.assign({},v.Z),r),components:l})},[eM]);return _&&(eD=u.createElement(m.Mj.Provider,{value:eI},eD)),void 0!==F&&(eD=u.createElement(E.n,{disabled:F},eD)),u.createElement(y.E_.Provider,{value:eN},eD)},N=e=>{let t=u.useContext(y.E_),r=u.useContext(p.Z);return u.createElement(F,Object.assign({parentContext:t,legacyLocale:r},e))};N.ConfigContext=y.E_,N.SizeContext=A.Z,N.config=e=>{let{prefixCls:t,iconPrefixCls:r,theme:a}=e;void 0!==t&&(n=t),void 0!==r&&(o=r),a&&(Object.keys(a).some(e=>e.endsWith("Color"))?function(e,t){let r=function(e,t){let r={},n=(e,t)=>{let r=e.clone();return(r=(null==t?void 0:t(r))||r).toRgbString()},o=(e,t)=>{let o=new x.C(e),i=(0,b.R_)(o.toRgbString());r[`${t}-color`]=n(o),r[`${t}-color-disabled`]=i[1],r[`${t}-color-hover`]=i[4],r[`${t}-color-active`]=i[6],r[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),r[`${t}-color-deprecated-bg`]=i[0],r[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),i=(0,b.R_)(e.toRgbString());i.forEach((e,t)=>{r[`primary-${t+1}`]=e}),r["primary-color-deprecated-l-35"]=n(e,e=>e.lighten(35)),r["primary-color-deprecated-l-20"]=n(e,e=>e.lighten(20)),r["primary-color-deprecated-t-20"]=n(e,e=>e.tint(20)),r["primary-color-deprecated-t-50"]=n(e,e=>e.tint(50)),r["primary-color-deprecated-f-12"]=n(e,e=>e.setAlpha(.12*e.getAlpha()));let a=new x.C(i[0]);r["primary-color-active-deprecated-f-30"]=n(a,e=>e.setAlpha(.3*e.getAlpha())),r["primary-color-active-deprecated-d-02"]=n(a,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let i=Object.keys(r).map(t=>`--${e}-${t}: ${r[t]};`);return` - :root { - ${i.join("\n")} - } - `.trim()}(e,t);(0,C.Z)()&&(0,w.hq)(r,`${S}-dynamic-theme`)}(T(),a):i=a)},N.useConfig=function(){let e=(0,u.useContext)(E.Z),t=(0,u.useContext)(A.Z);return{componentDisabled:e,componentSize:t}},Object.defineProperty(N,"SizeContext",{get:()=>A.Z});var H=N},67044:function(e,t,r){"use strict";var n=r(86006);let o=(0,n.createContext)(void 0);t.Z=o},91295:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(91219),o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let i={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},o)},a="${label} is not a valid ${type}",l={locale:"en",Pagination:n.Z,DatePicker:i,TimePicker:o,Calendar:i,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var s=l},21628:function(e,t,r){"use strict";r.d(t,{ZP:function(){return X}});var n=r(90151),o=r(88101),i=r(86006),a=r(17583),l=r(34777),s=r(56222),c=r(27977),u=r(49132),f=r(75710),d=r(8683),p=r.n(d),h=r(60456),g=r(89301),m=r(40431),v=r(88684),y=r(8431),b=r(78641),x=r(65877),C=r(48580),w=i.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.className,a=e.duration,l=void 0===a?4.5:a,s=e.eventKey,c=e.content,u=e.closable,f=e.closeIcon,d=void 0===f?"x":f,g=e.props,v=e.onClick,y=e.onNoticeClose,b=e.times,w=i.useState(!1),S=(0,h.Z)(w,2),E=S[0],A=S[1],k=function(){y(s)};i.useEffect(function(){if(!E&&l>0){var e=setTimeout(function(){k()},1e3*l);return function(){clearTimeout(e)}}},[l,E,b]);var O="".concat(r,"-notice");return i.createElement("div",(0,m.Z)({},g,{ref:t,className:p()(O,o,(0,x.Z)({},"".concat(O,"-closable"),u)),style:n,onMouseEnter:function(){A(!0)},onMouseLeave:function(){A(!1)},onClick:v}),i.createElement("div",{className:"".concat(O,"-content")},c),u&&i.createElement("a",{tabIndex:0,className:"".concat(O,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===C.Z.ENTER)&&k()},onClick:function(e){e.preventDefault(),e.stopPropagation(),k()}},d))}),S=i.forwardRef(function(e,t){var r=e.prefixCls,o=void 0===r?"rc-notification":r,a=e.container,l=e.motion,s=e.maxCount,c=e.className,u=e.style,f=e.onAllRemoved,d=i.useState([]),g=(0,h.Z)(d,2),x=g[0],C=g[1],S=function(e){var t,r=x.find(function(t){return t.key===e});null==r||null===(t=r.onClose)||void 0===t||t.call(r),C(function(t){return t.filter(function(t){return t.key!==e})})};i.useImperativeHandle(t,function(){return{open:function(e){C(function(t){var r,o=(0,n.Z)(t),i=o.findIndex(function(t){return t.key===e.key}),a=(0,v.Z)({},e);return i>=0?(a.times=((null===(r=t[i])||void 0===r?void 0:r.times)||0)+1,o[i]=a):(a.times=0,o.push(a)),s>0&&o.length>s&&(o=o.slice(-s)),o})},close:function(e){S(e)},destroy:function(){C([])}}});var E=i.useState({}),A=(0,h.Z)(E,2),k=A[0],O=A[1];i.useEffect(function(){var e={};x.forEach(function(t){var r=t.placement,n=void 0===r?"topRight":r;n&&(e[n]=e[n]||[],e[n].push(t))}),Object.keys(k).forEach(function(t){e[t]=e[t]||[]}),O(e)},[x]);var $=function(e){O(function(t){var r=(0,v.Z)({},t);return(r[e]||[]).length||delete r[e],r})},Z=i.useRef(!1);if(i.useEffect(function(){Object.keys(k).length>0?Z.current=!0:Z.current&&(null==f||f(),Z.current=!1)},[k]),!a)return null;var j=Object.keys(k);return(0,y.createPortal)(i.createElement(i.Fragment,null,j.map(function(e){var t=k[e].map(function(e){return{config:e,key:e.key}}),r="function"==typeof l?l(e):l;return i.createElement(b.V4,(0,m.Z)({key:e,className:p()(o,"".concat(o,"-").concat(e),null==c?void 0:c(e)),style:null==u?void 0:u(e),keys:t,motionAppear:!0},r,{onAllRemoved:function(){$(e)}}),function(e,t){var r=e.config,n=e.className,a=e.style,l=r.key,s=r.times,c=r.className,u=r.style;return i.createElement(w,(0,m.Z)({},r,{ref:t,prefixCls:o,className:p()(n,c),style:(0,v.Z)((0,v.Z)({},a),u),times:s,key:l,eventKey:l,onNoticeClose:S}))})})),a)}),E=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],A=function(){return document.body},k=0,O=r(79746),$=r(84596),Z=r(98663),j=r(40650),B=r(70721);let P=e=>{let{componentCls:t,iconCls:r,boxShadow:n,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:v}=e,y=`${t}-notice`,b=new $.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new $.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:p,textAlign:"center",[`${t}-custom-content > ${r}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:v,borderRadius:h,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:i},[`${t}-error > ${r}`]:{color:a},[`${t}-warning > ${r}`]:{color:l},[`${t}-info > ${r}, - ${t}-loading > ${r}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},(0,Z.Wf)(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[y]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]};var R=(0,j.Z)("Message",e=>{let t=(0,B.TS)(e,{height:150});return[P(t)]},e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),{clientOnly:!0}),T=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let M={info:i.createElement(u.Z,null),success:i.createElement(l.Z,null),error:i.createElement(s.Z,null),warning:i.createElement(c.Z,null),loading:i.createElement(f.Z,null)},_=e=>{let{prefixCls:t,type:r,icon:n,children:o}=e;return i.createElement("div",{className:p()(`${t}-custom-content`,`${t}-${r}`)},n||M[r],i.createElement("span",null,o))};var F=r(31533);function N(e){let t;let r=new Promise(r=>{t=e(()=>{r(!0)})}),n=()=>{null==t||t()};return n.then=(e,t)=>r.then(e,t),n.promise=r,n}var H=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let D=i.forwardRef((e,t)=>{let{top:r,prefixCls:o,getContainer:a,maxCount:l,duration:s=3,rtl:c,transitionName:u,onAllRemoved:f}=e,{getPrefixCls:d,getPopupContainer:m,message:v}=i.useContext(O.E_),y=o||d("message"),[,b]=R(y),x=i.createElement("span",{className:`${y}-close-x`},i.createElement(F.Z,{className:`${y}-close-icon`})),[C,w]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,r=void 0===t?A:t,o=e.motion,a=e.prefixCls,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,f=(0,g.Z)(e,E),d=i.useState(),p=(0,h.Z)(d,2),m=p[0],v=p[1],y=i.useRef(),b=i.createElement(S,{container:m,ref:y,prefixCls:a,motion:o,maxCount:l,className:s,style:c,onAllRemoved:u}),x=i.useState([]),C=(0,h.Z)(x,2),w=C[0],O=C[1],$=i.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,r=Array(t),n=0;n({left:"50%",transform:"translateX(-50%)",top:null!=r?r:8}),className:()=>p()(b,{[`${y}-rtl`]:c}),motion:()=>({motionName:null!=u?u:`${y}-move-up`}),closable:!1,closeIcon:x,duration:s,getContainer:()=>(null==a?void 0:a())||(null==m?void 0:m())||document.body,maxCount:l,onAllRemoved:f});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:y,hashId:b,message:v})),w}),L=0;function I(e){let t=i.useRef(null),r=i.useMemo(()=>{let e=e=>{var r;null===(r=t.current)||void 0===r||r.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:n,prefixCls:o,hashId:a,message:l}=t.current,s=`${o}-notice`,{content:c,icon:u,type:f,key:d,className:h,style:g,onClose:m}=r,v=H(r,["content","icon","type","key","className","style","onClose"]),y=d;return null==y&&(L+=1,y=`antd-message-${L}`),N(t=>(n(Object.assign(Object.assign({},v),{key:y,content:i.createElement(_,{prefixCls:o,type:f,icon:u},c),placement:"top",className:p()(f&&`${s}-${f}`,a,h,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),g),onClose:()=>{null==m||m(),t()}})),()=>{e(y)}))},n={open:r,destroy:r=>{var n;void 0!==r?e(r):null===(n=t.current)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{n[e]=(t,n,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?l=n:(a=n,l=o);let s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(s)}}),n},[]);return[r,i.createElement(D,Object.assign({key:"message-holder"},e,{ref:t}))]}let z=null,U=e=>e(),W=[],K={},G=i.forwardRef((e,t)=>{let r=()=>{let{prefixCls:e,container:t,maxCount:r,duration:n,rtl:o,top:i}=function(){let{prefixCls:e,getContainer:t,duration:r,rtl:n,maxCount:o,top:i}=K,l=null!=e?e:(0,a.w6)().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:l,container:s,duration:r,rtl:n,maxCount:o,top:i}}();return{prefixCls:e,getContainer:()=>t,maxCount:r,duration:n,rtl:o,top:i}},[n,o]=i.useState(r),[l,s]=I(n),c=(0,a.w6)(),u=c.getRootPrefixCls(),f=c.getIconPrefixCls(),d=c.getTheme(),p=()=>{o(r)};return i.useEffect(p,[]),i.useImperativeHandle(t,()=>{let e=Object.assign({},l);return Object.keys(e).forEach(t=>{e[t]=function(){return p(),l[t].apply(l,arguments)}}),{instance:e,sync:p}}),i.createElement(a.ZP,{prefixCls:u,iconPrefixCls:f,theme:d},s)});function q(){if(!z){let e=document.createDocumentFragment(),t={fragment:e};z=t,U(()=>{(0,o.s)(i.createElement(G,{ref:e=>{let{instance:r,sync:n}=e||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=n,q())})}}),e)});return}z.instance&&(W.forEach(e=>{let{type:t,skipped:r}=e;if(!r)switch(t){case"open":U(()=>{let t=z.instance.open(Object.assign(Object.assign({},K),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":U(()=>{null==z||z.instance.destroy(e.key)});break;default:U(()=>{var r;let o=(r=z.instance)[t].apply(r,(0,n.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),W=[])}let V={open:function(e){let t=N(t=>{let r;let n={type:"open",config:e,resolve:t,setCloseFn:e=>{r=e}};return W.push(n),()=>{r?U(()=>{r()}):n.skipped=!0}});return q(),t},destroy:function(e){W.push({type:"destroy",key:e}),q()},config:function(e){K=Object.assign(Object.assign({},K),e),U(()=>{var e;null===(e=null==z?void 0:z.sync)||void 0===e||e.call(z)})},useMessage:function(e){return I(e)},_InternalPanelDoNotUseOrYouWillBeFired:e=>{let{prefixCls:t,className:r,type:n,icon:o,content:a}=e,l=T(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=i.useContext(O.E_),c=t||s("message"),[,u]=R(c);return i.createElement(w,Object.assign({},l,{prefixCls:c,className:p()(r,u,`${c}-notice-pure-panel`),eventKey:"pure",duration:null,content:i.createElement(_,{prefixCls:c,type:n,icon:o},a)}))}};["success","info","warning","error","loading"].forEach(e=>{V[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{let n;let o={type:e,args:t,resolve:r,setCloseFn:e=>{n=e}};return W.push(o),()=>{n?U(()=>{n()}):o.skipped=!0}});return q(),r}(e,r)}});var X=V},66255:function(e,t,r){"use strict";r.d(t,{A:function(){return s},f:function(){return l}});var n=r(91295);let o=Object.assign({},n.Z.Modal),i=[],a=()=>i.reduce((e,t)=>Object.assign(Object.assign({},e),t),n.Z.Modal);function l(e){if(e){let t=Object.assign({},e);return i.push(t),o=a(),()=>{i=i.filter(e=>e!==t),o=a()}}o=Object.assign({},n.Z.Modal)}function s(){return o}},98663:function(e,t,r){"use strict";r.d(t,{Lx:function(){return l},Qy:function(){return u},Ro:function(){return i},Wf:function(){return o},dF:function(){return a},du:function(){return s},oN:function(){return c},vS:function(){return n}});let n={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, - &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t)=>{let{fontFamily:r,fontSize:n}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},c=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},c(e))})},60632:function(e,t,r){"use strict";r.d(t,{Mj:function(){return c},uH:function(){return l},u_:function(){return s}});var n=r(84596),o=r(86006),i=r(47794),a=r(99528);let l=(0,n.jG)(i.Z),s={token:a.Z,hashed:!0},c=o.createContext(s)},47794:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(70333),o=r(33058),i=r(99528),a=r(41433),l=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},s=r(57389);let c=(e,t)=>new s.C(e).setAlpha(t).toRgbString(),u=(e,t)=>{let r=new s.C(e);return r.darken(t).toHexString()},f=e=>{let t=(0,n.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},d=(e,t)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:c(n,.88),colorTextSecondary:c(n,.65),colorTextTertiary:c(n,.45),colorTextQuaternary:c(n,.25),colorFill:c(n,.15),colorFillSecondary:c(n,.06),colorFillTertiary:c(n,.04),colorFillQuaternary:c(n,.02),colorBgLayout:u(r,4),colorBgContainer:u(r,0),colorBgElevated:u(r,0),colorBgSpotlight:c(n,.85),colorBorder:u(r,15),colorBorderSecondary:u(r,6)}};var p=r(89931);function h(e){let t=Object.keys(i.M).map(t=>{let r=(0,n.R_)(e[t]);return Array(10).fill(1).reduce((e,n,o)=>(e[`${t}-${o+1}`]=r[o],e[`${t}${o+1}`]=r[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,a.Z)(e,{generateColorPalettes:f,generateNeutralColorPalettes:d})),(0,p.Z)(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}(e)),(0,o.Z)(e)),function(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+2*t).toFixed(1)}s`,motionDurationSlow:`${(r+3*t).toFixed(1)}s`,lineWidthBold:o+1},l(n))}(e))}},99528:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});let n={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},n),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});t.Z=o},41433:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(57389);function o(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:o}=t,{colorSuccess:i,colorWarning:a,colorError:l,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:f}=e,d=r(c),p=r(i),h=r(a),g=r(l),m=r(s),v=o(u,f),y=e.colorLink||e.colorInfo,b=r(y);return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new n.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},33058:function(e,t){"use strict";t.Z=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},89931:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=e=>{let t=function(e){let t=Array(10).fill(null).map((t,r)=>{let n=e*Math.pow(2.71828,(r-1)/5);return 2*Math.floor((r>1?Math.floor(n):Math.ceil(n))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:(e+8)/e}))}(e),r=t.map(e=>e.size),n=t.map(e=>e.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}}},3184:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(84596),o=r(86006),i=r(60632),a=r(99528),l=r(85207),s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let c=(e,t,r)=>{let n=r.getDerivativeToken(e),{override:o}=t,i=s(t,["override"]),a=Object.assign(Object.assign({},n),{override:o});return a=(0,l.Z)(a),i&&Object.entries(i).forEach(e=>{let[t,r]=e,{theme:n}=r,o=s(r,["theme"]),i=o;n&&(i=c(Object.assign(Object.assign({},a),o),{override:o},n)),a[t]=i}),a};function u(){let{token:e,hashed:t,theme:r,components:l}=o.useContext(i.Mj),s=`5.8.2-${t||""}`,u=r||i.uH,[f,d]=(0,n.fp)(u,[a.Z,e],{salt:s,override:Object.assign({override:e},l),getComputedToken:c});return[u,f,t?d:""]}},85207:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(57389),o=r(99528);function i(e){return e>=0&&e<=255}var a=function(e,t){let{r:r,g:o,b:a,a:l}=new n.C(e).toRgb();if(l<1)return e;let{r:s,g:c,b:u}=new n.C(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((r-s*(1-e))/e),l=Math.round((o-c*(1-e))/e),f=Math.round((a-u*(1-e))/e);if(i(t)&&i(l)&&i(f))return new n.C({r:t,g:l,b:f,a:Math.round(100*e)/100}).toRgbString()}return new n.C({r:r,g:o,b:a,a:1}).toRgbString()},l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function s(e){let{override:t}=e,r=l(e,["override"]),i=Object.assign({},t);Object.keys(o.Z).forEach(e=>{delete i[e]});let s=Object.assign(Object.assign({},r),i);!1===s.motion&&(s.motionDurationFast="0s",s.motionDurationMid="0s",s.motionDurationSlow="0s");let c=Object.assign(Object.assign(Object.assign({},s),{colorFillContent:s.colorFillSecondary,colorFillContentHover:s.colorFill,colorFillAlter:s.colorFillQuaternary,colorBgContainerDisabled:s.colorFillTertiary,colorBorderBg:s.colorBgContainer,colorSplit:a(s.colorBorderSecondary,s.colorBgContainer),colorTextPlaceholder:s.colorTextQuaternary,colorTextDisabled:s.colorTextQuaternary,colorTextHeading:s.colorText,colorTextLabel:s.colorTextSecondary,colorTextDescription:s.colorTextTertiary,colorTextLightSolid:s.colorWhite,colorHighlight:s.colorError,colorBgTextHover:s.colorFillSecondary,colorBgTextActive:s.colorFill,colorIcon:s.colorTextTertiary,colorIconHover:s.colorText,colorErrorOutline:a(s.colorErrorBg,s.colorBgContainer),colorWarningOutline:a(s.colorWarningBg,s.colorBgContainer),fontSizeIcon:s.fontSizeSM,lineWidthFocus:4*s.lineWidth,lineWidth:s.lineWidth,controlOutlineWidth:2*s.lineWidth,controlInteractiveSize:s.controlHeight/2,controlItemBgHover:s.colorFillTertiary,controlItemBgActive:s.colorPrimaryBg,controlItemBgActiveHover:s.colorPrimaryBgHover,controlItemBgActiveDisabled:s.colorFill,controlTmpOutline:s.colorFillQuaternary,controlOutline:a(s.colorPrimaryBg,s.colorBgContainer),lineType:s.lineType,borderRadius:s.borderRadius,borderRadiusXS:s.borderRadiusXS,borderRadiusSM:s.borderRadiusSM,borderRadiusLG:s.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:s.sizeXXS,paddingXS:s.sizeXS,paddingSM:s.sizeSM,padding:s.size,paddingMD:s.sizeMD,paddingLG:s.sizeLG,paddingXL:s.sizeXL,paddingContentHorizontalLG:s.sizeLG,paddingContentVerticalLG:s.sizeMS,paddingContentHorizontal:s.sizeMS,paddingContentVertical:s.sizeSM,paddingContentHorizontalSM:s.size,paddingContentVerticalSM:s.sizeXS,marginXXS:s.sizeXXS,marginXS:s.sizeXS,marginSM:s.sizeSM,margin:s.size,marginMD:s.sizeMD,marginLG:s.sizeLG,marginXL:s.sizeXL,marginXXL:s.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new n.C("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new n.C("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new n.C("rgba(0, 0, 0, 0.09)").toRgbString()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerDown:` - 0 -6px 16px 0 rgba(0, 0, 0, 0.08), - 0 -3px 6px -4px rgba(0, 0, 0, 0.12), - 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),i);return c}},40650:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(84596);r(65493);var o=r(86006),i=r(79746),a=r(98663),l=r(3184),s=r(70721);function c(e,t,r,c){return u=>{let[f,d,p]=(0,l.Z)(),{getPrefixCls:h,iconPrefixCls:g,csp:m}=(0,o.useContext)(i.E_),v=h(),y={theme:f,token:d,hashId:p,nonce:()=>null==m?void 0:m.nonce,clientOnly:null==c?void 0:c.clientOnly,order:-999};return(0,n.xy)(Object.assign(Object.assign({},y),{clientOnly:!1,path:["Shared",v]}),()=>[{"&":(0,a.Lx)(d)}]),[(0,n.xy)(Object.assign(Object.assign({},y),{path:[e,u,g]}),()=>{let{token:n,flush:o}=(0,s.ZP)(d),i=Object.assign({},d[e]);if(null==c?void 0:c.deprecatedTokens){let{deprecatedTokens:e}=c;e.forEach(e=>{var t;let[r,n]=e;((null==i?void 0:i[r])||(null==i?void 0:i[n]))&&(null!==(t=i[n])&&void 0!==t||(i[n]=null==i?void 0:i[r]))})}let l="function"==typeof r?r((0,s.TS)(n,null!=i?i:{})):r,f=Object.assign(Object.assign({},l),i),h=`.${u}`,m=(0,s.TS)(n,{componentCls:h,prefixCls:u,iconCls:`.${g}`,antCls:`.${v}`},f),y=t(m,{hashId:p,prefixCls:u,rootPrefixCls:v,iconPrefixCls:g,overrideComponentToken:i});return o(e,f),[(null==c?void 0:c.resetStyle)===!1?null:(0,a.du)(d,u),y]}),p]}}},70721:function(e,t,r){"use strict";r.d(t,{TS:function(){return i},ZP:function(){return s}});let n="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function i(){for(var e=arguments.length,t=Array(e),r=0;r{let t=Object.keys(e);t.forEach(t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,i}let a={};function l(){}function s(e){let t;let r=e,i=l;return n&&(t=new Set,r=new Proxy(e,{get:(e,r)=>(o&&t.add(r),e[r])}),i=(e,r)=>{a[e]={global:Array.from(t),component:r}}),{token:r,keys:t,flush:i}}},8683:function(e,t){var r;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;to?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n0?a-4:a;for(r=0;r>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,l=n-o;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return A(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return O(e).length;default:if(o)return n?-1:A(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,a=1,l=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,l/=2,s/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;il&&(r=l-s),i=r;i>=0;i--){for(var f=!0,d=0;d239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&c)<<6|63&i)>127&&(u=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],(192&i)==128&&(192&a)==128&&(192&l)==128&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,o,i){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function C(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function w(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);or&&(e+=" ... "),""},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,o){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,s=Math.min(i,a),c=this.slice(n,o),u=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,l,s,c,u,f,d,p,h,g,m=this.length-t;if((void 0===r||r>m)&&(r=m),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a>8,o.push(r%256),o.push(n);return o}(e,this.length-h),this,h,g);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=r-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return w(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return w(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function k(e){for(var t=[],r=0;r=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var j=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,o){var i,a,l=8*o-n-1,s=(1<>1,u=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,l,s,c=8*i-o-1,u=(1<>1,d=23===o?5960464477539062e-23:0,p=n?0:i-1,h=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+f>=1?t+=d/s:t+=d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=u?(l=0,a=u):a+f>=1?(l=(t*s-1)*Math.pow(2,o),a+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&l,p+=h,l/=256,o-=8);for(a=a<0;e[r+p]=255&a,p+=h,a/=256,c-=8);e[r+p-h]|=128*g}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(72);e.exports=o}()},83177:function(e,t,r){"use strict";/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n=r(86006),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:l.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},9268:function(e,t,r){"use strict";e.exports=r(83177)},56008:function(e,t,r){e.exports=r(30794)},78641:function(e,t,r){"use strict";r.d(t,{V4:function(){return ep},zt:function(){return x},ZP:function(){return eh}});var n,o,i,a,l,s=r(65877),c=r(88684),u=r(60456),f=r(965),d=r(8683),p=r.n(d),h=r(49175),g=r(92510),m=r(86006),v=r(89301),y=["children"],b=m.createContext({});function x(e){var t=e.children,r=(0,v.Z)(e,y);return m.createElement(b.Provider,{value:r},t)}var C=r(18050),w=r(49449),S=r(43663),E=r(38340),A=function(e){(0,S.Z)(r,e);var t=(0,E.Z)(r);function r(){return(0,C.Z)(this,r),t.apply(this,arguments)}return(0,w.Z)(r,[{key:"render",value:function(){return this.props.children}}]),r}(m.Component),k=r(39112),O="none",$="appear",Z="enter",j="leave",B="none",P="prepare",R="start",T="active",M="prepared",_=r(71693);function F(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}var N=(n=(0,_.Z)(),o="undefined"!=typeof window?window:{},i={animationend:F("Animation","AnimationEnd"),transitionend:F("Transition","TransitionEnd")},!n||("AnimationEvent"in o||delete i.animationend.animation,"TransitionEvent"in o||delete i.transitionend.transition),i),H={};(0,_.Z)()&&(H=document.createElement("div").style);var D={};function L(e){if(D[e])return D[e];var t=N[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,X.Z)(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i},t]},J=[P,R,T,"end"],Q=[P,M];function ee(e){return e===T||"end"===e}var et=function(e,t,r){var n=(0,k.Z)(B),o=(0,u.Z)(n,2),i=o[0],a=o[1],l=Y(),s=(0,u.Z)(l,2),c=s[0],f=s[1],d=t?Q:J;return V(function(){if(i!==B&&"end"!==i){var e=d.indexOf(i),t=d[e+1],n=r(i);!1===n?a(t,!0):t&&c(function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[e,i]),m.useEffect(function(){return function(){f()}},[]),[function(){a(P,!0)},i]},er=(a=U,"object"===(0,f.Z)(U)&&(a=U.transitionSupport),(l=m.forwardRef(function(e,t){var r=e.visible,n=void 0===r||r,o=e.removeOnLeave,i=void 0===o||o,l=e.forceRender,f=e.children,d=e.motionName,v=e.leavedClassName,y=e.eventProps,x=m.useContext(b).motion,C=!!(e.motionName&&a&&!1!==x),w=(0,m.useRef)(),S=(0,m.useRef)(),E=function(e,t,r,n){var o=n.motionEnter,i=void 0===o||o,a=n.motionAppear,l=void 0===a||a,f=n.motionLeave,d=void 0===f||f,p=n.motionDeadline,h=n.motionLeaveImmediately,g=n.onAppearPrepare,v=n.onEnterPrepare,y=n.onLeavePrepare,b=n.onAppearStart,x=n.onEnterStart,C=n.onLeaveStart,w=n.onAppearActive,S=n.onEnterActive,E=n.onLeaveActive,A=n.onAppearEnd,B=n.onEnterEnd,_=n.onLeaveEnd,F=n.onVisibleChanged,N=(0,k.Z)(),H=(0,u.Z)(N,2),D=H[0],L=H[1],I=(0,k.Z)(O),z=(0,u.Z)(I,2),U=z[0],W=z[1],K=(0,k.Z)(null),G=(0,u.Z)(K,2),X=G[0],Y=G[1],J=(0,m.useRef)(!1),Q=(0,m.useRef)(null),er=(0,m.useRef)(!1);function en(){W(O,!0),Y(null,!0)}function eo(e){var t,n=r();if(!e||e.deadline||e.target===n){var o=er.current;U===$&&o?t=null==A?void 0:A(n,e):U===Z&&o?t=null==B?void 0:B(n,e):U===j&&o&&(t=null==_?void 0:_(n,e)),U!==O&&o&&!1!==t&&en()}}var ei=q(eo),ea=(0,u.Z)(ei,1)[0],el=function(e){var t,r,n;switch(e){case $:return t={},(0,s.Z)(t,P,g),(0,s.Z)(t,R,b),(0,s.Z)(t,T,w),t;case Z:return r={},(0,s.Z)(r,P,v),(0,s.Z)(r,R,x),(0,s.Z)(r,T,S),r;case j:return n={},(0,s.Z)(n,P,y),(0,s.Z)(n,R,C),(0,s.Z)(n,T,E),n;default:return{}}},es=m.useMemo(function(){return el(U)},[U]),ec=et(U,!e,function(e){if(e===P){var t,n=es[P];return!!n&&n(r())}return ed in es&&Y((null===(t=es[ed])||void 0===t?void 0:t.call(es,r(),null))||null),ed===T&&(ea(r()),p>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){eo({deadline:!0})},p))),ed===M&&en(),!0}),eu=(0,u.Z)(ec,2),ef=eu[0],ed=eu[1],ep=ee(ed);er.current=ep,V(function(){L(t);var r,n=J.current;J.current=!0,!n&&t&&l&&(r=$),n&&t&&i&&(r=Z),(n&&!t&&d||!n&&h&&!t&&d)&&(r=j);var o=el(r);r&&(e||o[P])?(W(r),ef()):W(O)},[t]),(0,m.useEffect)(function(){(U!==$||l)&&(U!==Z||i)&&(U!==j||d)||W(O)},[l,i,d]),(0,m.useEffect)(function(){return function(){J.current=!1,clearTimeout(Q.current)}},[]);var eh=m.useRef(!1);(0,m.useEffect)(function(){D&&(eh.current=!0),void 0!==D&&U===O&&((eh.current||D)&&(null==F||F(D)),eh.current=!0)},[D,U]);var eg=X;return es[P]&&ed===R&&(eg=(0,c.Z)({transition:"none"},eg)),[U,ed,eg,null!=D?D:t]}(C,n,function(){try{return w.current instanceof HTMLElement?w.current:(0,h.Z)(S.current)}catch(e){return null}},e),B=(0,u.Z)(E,4),_=B[0],F=B[1],N=B[2],H=B[3],D=m.useRef(H);H&&(D.current=!0);var L=m.useCallback(function(e){w.current=e,(0,g.mH)(t,e)},[t]),I=(0,c.Z)((0,c.Z)({},y),{},{visible:n});if(f){if(_===O)z=H?f((0,c.Z)({},I),L):!i&&D.current&&v?f((0,c.Z)((0,c.Z)({},I),{},{className:v}),L):!l&&(i||v)?null:f((0,c.Z)((0,c.Z)({},I),{},{style:{display:"none"}}),L);else{F===P?W="prepare":ee(F)?W="active":F===R&&(W="start");var z,U,W,K=G(d,"".concat(_,"-").concat(W));z=f((0,c.Z)((0,c.Z)({},I),{},{className:p()(G(d,_),(U={},(0,s.Z)(U,K,K&&W),(0,s.Z)(U,d,"string"==typeof d),U)),style:N}),L)}}else z=null;return m.isValidElement(z)&&(0,g.Yr)(z)&&!z.ref&&(z=m.cloneElement(z,{ref:L})),m.createElement(A,{ref:S},z)})).displayName="CSSMotion",l),en=r(40431),eo=r(70184),ei="keep",ea="remove",el="removed";function es(e){var t;return t=e&&"object"===(0,f.Z)(e)&&"key"in e?e:{key:e},(0,c.Z)((0,c.Z)({},t),{},{key:String(t.key)})}function ec(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(es)}var eu=["component","children","onVisibleChanged","onAllRemoved"],ef=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],ep=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,r=function(e){(0,S.Z)(n,e);var r=(0,E.Z)(n);function n(){var e;(0,C.Z)(this,n);for(var t=arguments.length,o=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=0,o=t.length,i=ec(e),a=ec(t);i.forEach(function(e){for(var t=!1,i=n;i1}).forEach(function(e){(r=r.filter(function(t){var r=t.key,n=t.status;return r!==e||n!==ea})).forEach(function(t){t.key===e&&(t.status=ei)})}),r})(n,ec(r)).filter(function(e){var t=n.find(function(t){var r=t.key;return e.key===r});return!t||t.status!==el||e.status!==ea})}}}]),n}(m.Component);return(0,s.Z)(r,"defaultProps",{component:"div"}),r}(U),eh=er},91219:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},71693:function(e,t,r){"use strict";function n(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}r.d(t,{Z:function(){return n}})},14071:function(e,t,r){"use strict";function n(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}r.d(t,{Z:function(){return n}})},52160:function(e,t,r){"use strict";r.d(t,{hq:function(){return h},jL:function(){return p}});var n=r(71693),o=r(14071),i="data-rc-order",a="data-rc-priority",l=new Map;function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function c(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return Array.from((l.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.Z)())return null;var r=t.csp,o=t.prepend,l=t.priority,s=void 0===l?0:l,f="queue"===o?"prependQueue":o?"prepend":"append",d="prependQueue"===f,p=document.createElement("style");p.setAttribute(i,f),d&&s&&p.setAttribute(a,"".concat(s)),null!=r&&r.nonce&&(p.nonce=null==r?void 0:r.nonce),p.innerHTML=e;var h=c(t),g=h.firstChild;if(o){if(d){var m=u(h).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(i))&&s>=Number(e.getAttribute(a)||0)});if(m.length)return h.insertBefore(p,m[m.length-1].nextSibling),p}h.insertBefore(p,g)}else h.appendChild(p);return p}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(c(t)).find(function(r){return r.getAttribute(s(t))===e})}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=d(e,t);r&&c(t).removeChild(r)}function h(e,t){var r,n,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var r=l.get(e);if(!r||!(0,o.Z)(document,r)){var n=f("",t),i=n.parentNode;l.set(e,i),e.removeChild(n)}}(c(a),a);var u=d(t,a);if(u)return null!==(r=a.csp)&&void 0!==r&&r.nonce&&u.nonce!==(null===(n=a.csp)||void 0===n?void 0:n.nonce)&&(u.nonce=null===(i=a.csp)||void 0===i?void 0:i.nonce),u.innerHTML!==e&&(u.innerHTML=e),u;var p=f(e,a);return p.setAttribute(s(a),t),p}},49175:function(e,t,r){"use strict";r.d(t,{S:function(){return i},Z:function(){return a}});var n=r(86006),o=r(8431);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof n.Component?o.findDOMNode(e):null}},60618:function(e,t,r){"use strict";function n(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return n(e) instanceof ShadowRoot?n(e):null}r.d(t,{A:function(){return o}})},48580:function(e,t){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE||e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY||e>=r.A&&e<=r.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=r},88101:function(e,t,r){"use strict";r.d(t,{s:function(){return m},v:function(){return y}});var n,o,i=r(71971),a=r(27859),l=r(965),s=r(88684),c=r(8431),u=(0,s.Z)({},n||(n=r.t(c,2))),f=u.version,d=u.render,p=u.unmountComponentAtNode;try{Number((f||"").split(".")[0])>=18&&(o=u.createRoot)}catch(e){}function h(e){var t=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.Z)(t)&&(t.usingClientEntryPoint=e)}var g="__rc_react_root__";function m(e,t){if(o){var r;h(!0),r=t[g]||o(t),h(!1),r.render(e),t[g]=r;return}d(e,t)}function v(){return(v=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[g])||void 0===e||e.unmount(),delete t[g]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==o)){e.next=2;break}return e.abrupt("return",function(e){return v.apply(this,arguments)}(t));case 2:p(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},23254:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(86006);function o(e){var t=n.useRef();return t.current=e,n.useCallback(function(){for(var e,r=arguments.length,n=Array(r),o=0;o2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.ZP)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(r&&l>1)return!1;i.add(t);var c=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:1,n=o+=1;return!function t(o){if(0===o)i.delete(n),e();else{var a=r(function(){t(o-1)});i.set(n,a)}}(t),n};a.cancel=function(e){var t=i.get(e);return i.delete(t),n(t)},t.Z=a},92510:function(e,t,r){"use strict";r.d(t,{Yr:function(){return c},mH:function(){return a},sQ:function(){return l},x1:function(){return s}});var n=r(965),o=r(24488),i=r(55567);function a(e,t){"function"==typeof e?e(t):"object"===(0,n.Z)(e)&&e&&"current"in e&&(e.current=t)}function l(){for(var e=arguments.length,t=Array(e),r=0;r3&&void 0!==arguments[3]&&arguments[3];return t.length&&n&&void 0===r&&!(0,l.Z)(e,t.slice(0,-1))?e:function e(t,r,n,l){if(!r.length)return n;var s,c=(0,a.Z)(r),u=c[0],f=c.slice(1);return s=t||"number"!=typeof u?Array.isArray(t)?(0,i.Z)(t):(0,o.Z)({},t):[],l&&void 0===n&&1===f.length?delete s[u][f[0]]:s[u]=e(s[u],f,n,l),s}(e,t,r,n)}function c(e){return Array.isArray(e)?[]:{}}var u="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},46750:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,{Z:function(){return n}})},71971:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(965);function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o,a,l=Object.create((t&&t.prototype instanceof h?t:h).prototype);return i(l,"_invoke",{value:(o=new A(n||[]),a="suspendedStart",function(t,n){if("executing"===a)throw Error("Generator is already running");if("completed"===a){if("throw"===t)throw n;return{value:void 0,done:!0}}for(o.method=t,o.arg=n;;){var i=o.delegate;if(i){var l=function e(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,p)}(i,o);if(l){if(l===p)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===a)throw a="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a="executing";var s=d(e,r,o);if("normal"===s.type){if(a=o.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(a="completed",o.method="throw",o.arg=s.arg)}})}),l}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function g(){}function m(){}var v={};u(v,l,function(){return this});var y=Object.getPrototypeOf,b=y&&y(y(k([])));b&&b!==t&&r.call(b,l)&&(v=b);var x=m.prototype=h.prototype=Object.create(v);function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var o;i(this,"_invoke",{value:function(i,a){function l(){return new t(function(o,l){!function o(i,a,l,s){var c=d(e[i],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==(0,n.Z)(f)&&r.call(f,"__await")?t.resolve(f.__await).then(function(e){o("next",e,l,s)},function(e){o("throw",e,l,s)}):t.resolve(f).then(function(e){u.value=e,l(u)},function(e){return o("throw",e,l,s)})}s(c.arg)}(i,a,o,l)})}return o=o?o.then(l,l):l()}})}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e||""===e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function t(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}},60456:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(86351),o=r(24537),i=r(62160);function a(e,t){return(0,n.Z)(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},29221:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(86351),o=r(13804),i=r(24537),a=r(62160);function l(e){return(0,n.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},90151:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(16544),o=r(13804),i=r(24537);function a(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},58774:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(965);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==(0,n.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},965:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{Z:function(){return n}})},24537:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(16544);function o(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n.Z)(e,t)}}},73702:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="";r{let t=i.call(e);return _[t]||(_[t]=t.slice(8,-1).toLowerCase())}),s=e=>(e=e.toLowerCase(),t=>l(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,f=c("undefined"),d=s("ArrayBuffer"),p=c("string"),h=c("function"),g=c("number"),m=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==l(e))return!1;let t=a(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},y=s("Date"),b=s("File"),x=s("Blob"),C=s("FileList"),w=s("URLSearchParams");function S(e,t,{allOwnKeys:r=!1}={}){let n,o;if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(n=0,o=e.length;n0;)if(t===(r=n[o]).toLowerCase())return r;return null}let A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,k=e=>!f(e)&&e!==A,O=(F="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>F&&e instanceof F),$=s("HTMLFormElement"),Z=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),j=s("RegExp"),B=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};S(r,(r,o)=>{!1!==t(r,o,e)&&(n[o]=r)}),Object.defineProperties(e,n)},P="abcdefghijklmnopqrstuvwxyz",R="0123456789",T={DIGIT:R,ALPHA:P,ALPHA_DIGIT:P+P.toUpperCase()+R},M=s("AsyncFunction");var _,F,N={isArray:u,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=l(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:p,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:v,isUndefined:f,isDate:y,isFile:b,isBlob:x,isRegExp:j,isFunction:h,isStream:e=>m(e)&&h(e.pipe),isURLSearchParams:w,isTypedArray:O,isFileList:C,forEach:S,merge:function e(){let{caseless:t}=k(this)&&this||{},r={},n=(n,o)=>{let i=t&&E(r,o)||o;v(r[i])&&v(n)?r[i]=e(r[i],n):v(n)?r[i]=e({},n):u(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e(S(t,(t,n)=>{r&&h(t)?e[n]=o(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,l;let s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)l=o[i],(!n||n(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=!1!==r&&a(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:s,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!g(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=e&&e[Symbol.iterator],o=n.call(e);for(;(r=o.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:$,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:B,freezeMethods:e=>{B(e,(t,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=e[r];if(h(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(u(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:E,global:A,isContextDefined:k,ALPHABET:T,generateString:(e=16,t=T.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let o=u(e)?[]:{};return S(e,(e,t)=>{let i=r(e,n+1);f(i)||(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:M,isThenable:e=>e&&(m(e)||h(e))&&h(e.then)&&h(e.catch)};function H(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}N.inherits(H,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let D=H.prototype,L={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{L[e]={value:e}}),Object.defineProperties(H,L),Object.defineProperty(D,"isAxiosError",{value:!0}),H.from=(e,t,r,n,o,i)=>{let a=Object.create(D);return N.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),H.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var I=r(91083).Buffer;function z(e){return N.isPlainObject(e)||N.isArray(e)}function U(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,r){return e?e.concat(t).map(function(e,t){return e=U(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let K=N.toFlatObject(N,{},null,function(e){return/^is[A-Z]/.test(e)});var G=function(e,t,r){if(!N.isObject(e))throw TypeError("target must be an object");t=t||new FormData,r=N.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!N.isUndefined(t[e])});let n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,l=r.Blob||"undefined"!=typeof Blob&&Blob,s=l&&N.isSpecCompliantForm(t);if(!N.isFunction(o))throw TypeError("visitor must be a function");function c(e){if(null===e)return"";if(N.isDate(e))return e.toISOString();if(!s&&N.isBlob(e))throw new H("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(e)||N.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):I.from(e):e}function u(e,r,o){let l=e;if(e&&!o&&"object"==typeof e){if(N.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var s;if(N.isArray(e)&&(s=e,N.isArray(s)&&!s.some(z))||(N.isFileList(e)||N.endsWith(r,"[]"))&&(l=N.toArray(e)))return r=U(r),l.forEach(function(e,n){N.isUndefined(e)||null===e||t.append(!0===a?W([r],n,i):null===a?r:r+"[]",c(e))}),!1}}return!!z(e)||(t.append(W(o,r,i),c(e)),!1)}let f=[],d=Object.assign(K,{defaultVisitor:u,convertValue:c,isVisitable:z});if(!N.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!N.isUndefined(r)){if(-1!==f.indexOf(r))throw Error("Circular reference detected in "+n.join("."));f.push(r),N.forEach(r,function(r,i){let a=!(N.isUndefined(r)||null===r)&&o.call(t,r,N.isString(i)?i.trim():i,n,d);!0===a&&e(r,n?n.concat(i):[i])}),f.pop()}}(e),t};function q(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function V(e,t){this._pairs=[],e&&G(e,this,t)}let X=V.prototype;function Y(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function J(e,t,r){let n;if(!t)return e;let o=r&&r.encode||Y,i=r&&r.serialize;if(n=i?i(t,r):N.isURLSearchParams(t)?t.toString():new V(t,r).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}X.append=function(e,t){this._pairs.push([e,t])},X.toString=function(e){let t=e?function(t){return e.call(this,t,q)}:q;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Q=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){N.forEach(this.handlers,function(t){null!==t&&e(t)})}},ee={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},et="undefined"!=typeof URLSearchParams?URLSearchParams:V,er="undefined"!=typeof FormData?FormData:null,en="undefined"!=typeof Blob?Blob:null;let eo=("undefined"==typeof navigator||"ReactNative"!==(n=navigator.product)&&"NativeScript"!==n&&"NS"!==n)&&"undefined"!=typeof window&&"undefined"!=typeof document,ei="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ea={isBrowser:!0,classes:{URLSearchParams:et,FormData:er,Blob:en},isStandardBrowserEnv:eo,isStandardBrowserWebWorkerEnv:ei,protocols:["http","https","file","blob","url","data"]},el=function(e){if(N.isFormData(e)&&N.isFunction(e.entries)){let t={};return N.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){let i=t[o++],a=Number.isFinite(+i),l=o>=t.length;if(i=!i&&N.isArray(n)?n.length:i,l)return N.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&N.isObject(n[i])||(n[i]=[]);let s=e(t,r,n[i],o);return s&&N.isArray(n[i])&&(n[i]=function(e){let t,r;let n={},o=Object.keys(e),i=o.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let es={"Content-Type":void 0},ec={transitional:ee,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=N.isObject(e);i&&N.isHTMLForm(e)&&(e=new FormData(e));let a=N.isFormData(e);if(a)return o&&o?JSON.stringify(el(e)):e;if(N.isArrayBuffer(e)||N.isBuffer(e)||N.isStream(e)||N.isFile(e)||N.isBlob(e))return e;if(N.isArrayBufferView(e))return e.buffer;if(N.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1){var l,s;return(l=e,s=this.formSerializer,G(l,new ea.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ea.isNode&&N.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},s))).toString()}if((r=N.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return G(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if(N.isString(e))try{return(0,JSON.parse)(e),N.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||ec.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&N.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw H.from(e,H.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ea.classes.FormData,Blob:ea.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};N.forEach(["delete","get","head"],function(e){ec.headers[e]={}}),N.forEach(["post","put","patch"],function(e){ec.headers[e]=N.merge(es)});let eu=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ef=e=>{let t,r,n;let o={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&eu[t]||("set-cookie"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+", "+r:r)}),o};let ed=Symbol("internals");function ep(e){return e&&String(e).trim().toLowerCase()}function eh(e){return!1===e||null==e?e:N.isArray(e)?e.map(eh):String(e)}let eg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function em(e,t,r,n,o){if(N.isFunction(n))return n.call(this,t,r);if(o&&(t=r),N.isString(t)){if(N.isString(n))return -1!==t.indexOf(n);if(N.isRegExp(n))return n.test(t)}}class ev{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=ep(t);if(!o)throw Error("header name must be a non-empty string");let i=N.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=eh(e))}let i=(e,t)=>N.forEach(e,(e,r)=>o(e,r,t));return N.isPlainObject(e)||e instanceof this.constructor?i(e,t):N.isString(e)&&(e=e.trim())&&!eg(e)?i(ef(e),t):null!=e&&o(t,e,r),this}get(e,t){if(e=ep(e)){let r=N.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(N.isFunction(t))return t.call(this,e,r);if(N.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ep(e)){let r=N.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||em(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=ep(e)){let o=N.findKey(r,e);o&&(!t||em(r,r[o],o,t))&&(delete r[o],n=!0)}}return N.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||em(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return N.forEach(this,(n,o)=>{let i=N.findKey(r,o);if(i){t[i]=eh(n),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();a!==o&&delete t[o],t[a]=eh(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return N.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&N.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=this[ed]=this[ed]={accessors:{}},r=t.accessors,n=this.prototype;function o(e){let t=ep(e);r[t]||(!function(e,t){let r=N.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(n,e),r[t]=!0)}return N.isArray(e)?e.forEach(o):o(e),this}}function ey(e,t){let r=this||ec,n=t||r,o=ev.from(n.headers),i=n.data;return N.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eb(e){return!!(e&&e.__CANCEL__)}function ex(e,t,r){H.call(this,null==e?"canceled":e,H.ERR_CANCELED,t,r),this.name="CanceledError"}ev.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),N.freezeMethods(ev.prototype),N.freezeMethods(ev),N.inherits(ex,H,{__CANCEL__:!0});var eC=ea.isStandardBrowserEnv?{write:function(e,t,r,n,o,i){let a=[];a.push(e+"="+encodeURIComponent(t)),N.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),N.isString(n)&&a.push("path="+n),N.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ew(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e:t}var eS=ea.isStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=N.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},eE=function(e,t){let r;e=e||10;let n=Array(e),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(l){let s=Date.now(),c=o[a];r||(r=s),n[i]=l,o[i]=s;let u=a,f=0;for(;u!==i;)f+=n[u++],u%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),s-r{let i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-r,s=n(l),c=i<=a;r=i;let u={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&c?(a-i)/s:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}let ek="undefined"!=typeof XMLHttpRequest;var eO=ek&&function(e){return new Promise(function(t,r){let n,o=e.data,i=ev.from(e.headers).normalize(),a=e.responseType;function l(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}N.isFormData(o)&&(ea.isStandardBrowserEnv||ea.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let s=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}let c=ew(e.baseURL,e.url);function u(){if(!s)return;let n=ev.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),o=a&&"text"!==a&&"json"!==a?s.response:s.responseText,i={data:o,status:s.status,statusText:s.statusText,headers:n,config:e,request:s};!function(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new H("Request failed with status code "+r.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}(function(e){t(e),l()},function(e){r(e),l()},i),s=null}if(s.open(e.method.toUpperCase(),J(c,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=u:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(u)},s.onabort=function(){s&&(r(new H("Request aborted",H.ECONNABORTED,e,s)),s=null)},s.onerror=function(){r(new H("Network Error",H.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||ee;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new H(t,n.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,e,s)),s=null},ea.isStandardBrowserEnv){let t=(e.withCredentials||eS(c))&&e.xsrfCookieName&&eC.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===o&&i.setContentType(null),"setRequestHeader"in s&&N.forEach(i.toJSON(),function(e,t){s.setRequestHeader(t,e)}),N.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),a&&"json"!==a&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",eA(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",eA(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{s&&(r(!t||t.type?new ex(null,e,s):t),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let f=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);if(f&&-1===ea.protocols.indexOf(f)){r(new H("Unsupported protocol "+f+":",H.ERR_BAD_REQUEST,e));return}s.send(o||null)})};let e$={http:null,xhr:eO};N.forEach(e$,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});var eZ={getAdapter:e=>{let t,r;e=N.isArray(e)?e:[e];let{length:n}=e;for(let o=0;oe instanceof ev?e.toJSON():e;function eR(e,t){t=t||{};let r={};function n(e,t,r){return N.isPlainObject(e)&&N.isPlainObject(t)?N.merge.call({caseless:r},e,t):N.isPlainObject(t)?N.merge({},t):N.isArray(t)?t.slice():t}function o(e,t,r){return N.isUndefined(t)?N.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!N.isUndefined(t))return n(void 0,t)}function a(e,t){return N.isUndefined(t)?N.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function l(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}let s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>o(eP(e),eP(t),!0)};return N.forEach(Object.keys(Object.assign({},e,t)),function(n){let i=s[n]||o,a=i(e[n],t[n],n);N.isUndefined(a)&&i!==l||(r[n]=a)}),r}let eT="1.4.0",eM={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{eM[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let e_={};eM.transitional=function(e,t,r){function n(e,t){return"[Axios v"+eT+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new H(n(o," has been removed"+(t?" in "+t:"")),H.ERR_DEPRECATED);return t&&!e_[o]&&(e_[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var eF={assertOptions:function(e,t,r){if("object"!=typeof e)throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],a=t[i];if(a){let t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new H("option "+i+" must be "+r,H.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new H("Unknown option "+i,H.ERR_BAD_OPTION)}},validators:eM};let eN=eF.validators;class eH{constructor(e){this.defaults=e,this.interceptors={request:new Q,response:new Q}}request(e,t){let r,n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=eR(this.defaults,t);let{transitional:i,paramsSerializer:a,headers:l}=t;void 0!==i&&eF.assertOptions(i,{silentJSONParsing:eN.transitional(eN.boolean),forcedJSONParsing:eN.transitional(eN.boolean),clarifyTimeoutError:eN.transitional(eN.boolean)},!1),null!=a&&(N.isFunction(a)?t.paramsSerializer={serialize:a}:eF.assertOptions(a,{encode:eN.function,serialize:eN.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(r=l&&N.merge(l.common,l[t.method]))&&N.forEach(["delete","get","head","post","put","patch","common"],e=>{delete l[e]}),t.headers=ev.concat(r,l);let s=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let f=0;if(!c){let e=[eB.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,u),o=e.length,n=Promise.resolve(t);f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new ex(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;let t=new eD(function(t){e=t});return{token:t,cancel:e}}}let eL={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eL).forEach(([e,t])=>{eL[t]=e});let eI=function e(t){let r=new eH(t),n=o(eH.prototype.request,r);return N.extend(n,eH.prototype,r,{allOwnKeys:!0}),N.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eR(t,r))},n}(ec);eI.Axios=eH,eI.CanceledError=ex,eI.CancelToken=eD,eI.isCancel=eb,eI.VERSION=eT,eI.toFormData=G,eI.AxiosError=H,eI.Cancel=eI.CanceledError,eI.all=function(e){return Promise.all(e)},eI.spread=function(e){return function(t){return e.apply(null,t)}},eI.isAxiosError=function(e){return N.isObject(e)&&!0===e.isAxiosError},eI.mergeConfig=eR,eI.AxiosHeaders=ev,eI.formToJSON=e=>el(N.isHTMLForm(e)?new FormData(e):e),eI.HttpStatusCode=eL,eI.default=eI;var ez=eI}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/394-0ffa189aa535d3eb.js b/pilot/server/static/_next/static/chunks/394-0ffa189aa535d3eb.js deleted file mode 100644 index 7f1c99beb..000000000 --- a/pilot/server/static/_next/static/chunks/394-0ffa189aa535d3eb.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[394],{85962:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(26927),i=n(25909),o=i._(n(86006)),a=r._(n(72930)),l=n(12325),u=n(46374),s=n(80168);n(17653);let d=r._(n(35840)),c={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function f(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function m(e,t,n,r,i,o,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}})}function g(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let h=(0,o.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:i,qualityInt:a,className:l,imgStyle:u,blurStyle:s,isLazy:d,fetchPriority:c,fill:f,placeholder:p,loading:h,srcString:b,config:y,unoptimized:v,loader:_,onLoadRef:w,onLoadingCompleteRef:S,setBlurComplete:j,setShowAltText:C,onLoad:E,onError:P,...x}=e;return h=d?"lazy":h,o.default.createElement("img",{...x,...g(c),loading:h,width:i,height:r,decoding:"async","data-nimg":f?"fill":"1",className:l,style:{...u,...s},...n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(P&&(e.src=e.src),e.complete&&m(e,b,p,w,S,j,v))},[b,p,w,S,j,P,v,t]),onLoad:e=>{let t=e.currentTarget;m(t,b,p,w,S,j,v)},onError:e=>{C(!0),"blur"===p&&j(!0),P&&P(e)}})}),b=(0,o.forwardRef)((e,t)=>{var n;let r,i,{src:m,sizes:b,unoptimized:y=!1,priority:v=!1,loading:_,className:w,quality:S,width:j,height:C,fill:E,style:P,onLoad:x,onLoadingComplete:O,placeholder:M="empty",blurDataURL:k,fetchPriority:I,layout:A,objectFit:z,objectPosition:R,lazyBoundary:D,lazyRoot:N,...U}=e,F=(0,o.useContext)(s.ImageConfigContext),T=(0,o.useMemo)(()=>{let e=c||F||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[F]),W=U.loader||d.default;delete U.loader;let B="__next_img_default"in W;if(B){if("custom"===T.loader)throw Error('Image with src "'+m+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=W;W=t=>{let{config:n,...r}=t;return e(r)}}if(A){"fill"===A&&(E=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(P={...P,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!b&&(b=t)}let L="",G=p(j),V=p(C);if("object"==typeof(n=m)&&(f(n)||void 0!==n.src)){let e=f(m)?m.default:m;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,i=e.blurHeight,k=k||e.blurDataURL,L=e.src,!E){if(G||V){if(G&&!V){let t=G/e.width;V=Math.round(e.height*t)}else if(!G&&V){let t=V/e.height;G=Math.round(e.width*t)}}else G=e.width,V=e.height}}let H=!v&&("lazy"===_||void 0===_);(!(m="string"==typeof m?m:L)||m.startsWith("data:")||m.startsWith("blob:"))&&(y=!0,H=!1),T.unoptimized&&(y=!0),B&&m.endsWith(".svg")&&!T.dangerouslyAllowSVG&&(y=!0),v&&(I="high");let[q,$]=(0,o.useState)(!1),[J,Y]=(0,o.useState)(!1),K=p(S),Q=Object.assign(E?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:z,objectPosition:R}:{},J?{}:{color:"transparent"},P),X="blur"===M&&k&&!q?{backgroundSize:Q.objectFit||"cover",backgroundPosition:Q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:G,heightInt:V,blurWidth:r,blurHeight:i,blurDataURL:k,objectFit:Q.objectFit})+'")'}:{},Z=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),d=u.length-1;return{sizes:a||"w"!==s?a:"100vw",srcSet:u.map((e,r)=>l({config:t,src:n,quality:o,width:e})+" "+("w"===s?e:r+1)+s).join(", "),src:l({config:t,src:n,quality:o,width:u[d]})}}({config:T,src:m,unoptimized:y,width:G,quality:K,sizes:b,loader:W}),ee=m,et=(0,o.useRef)(x);(0,o.useEffect)(()=>{et.current=x},[x]);let en=(0,o.useRef)(O);(0,o.useEffect)(()=>{en.current=O},[O]);let er={isLazy:H,imgAttributes:Z,heightInt:V,widthInt:G,qualityInt:K,className:w,imgStyle:Q,blurStyle:X,loading:_,config:T,fetchPriority:I,fill:E,unoptimized:y,placeholder:M,loader:W,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:$,setShowAltText:Y,...U};return o.default.createElement(o.default.Fragment,null,o.default.createElement(h,{...er,ref:t}),v?o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+Z.src+Z.srcSet+Z.sizes,rel:"preload",as:"image",href:Z.srcSet?void 0:Z.src,imageSrcSet:Z.srcSet,imageSizes:Z.sizes,crossOrigin:U.crossOrigin,referrerPolicy:U.referrerPolicy,...g(I)})):null)}),y=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return o}});let r=n(26927),i=r._(n(86006)),o=i.default.createContext({})},47290:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},72930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return d},default:function(){return m}});let r=n(26927),i=n(25909),o=i._(n(86006)),a=r._(n(69488)),l=n(64626),u=n(46436),s=n(47290);function d(e){void 0===e&&(e=!1);let t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(17653);let f=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:n}=t;return e.reduce(c,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=f.length;e{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,n=(0,o.useContext)(l.AmpStateContext),r=(0,o.useContext)(u.HeadManagerContext);return o.default.createElement(a.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,s.isInAmpMode)(n)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12325:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,l=r||t,u=i||n,s=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&u?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+u+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&i?"1":"20")+"'/%3E"+s+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},80168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let r=n(26927),i=r._(n(86006)),o=n(46374),a=i.default.createContext(o.imageConfigDefault)},46374:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},35840:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},69488:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(25909),i=r._(n(86006)),o=i.useLayoutEffect,a=i.useEffect;function l(e){let{headManager:t,reduceComponentsToState:n}=e;function r(){if(t&&t.mountedInstances){let r=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(r,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=r),()=>{t&&(t._pendingUpdate=r)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},17653:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},76394:function(e,t,n){e.exports=n(85962)}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/409-4b199bf070fd70fc.js b/pilot/server/static/_next/static/chunks/409-4b199bf070fd70fc.js deleted file mode 100644 index a1829072a..000000000 --- a/pilot/server/static/_next/static/chunks/409-4b199bf070fd70fc.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{78635:function(e,t,r){r.d(t,{lL:function(){return w},tv:function(){return Z}});var n=r(95135),i=r(40431),a=r(46750),o=r(16066),s=r(86006),u=r(72120),l=r(9268);function c(e){let{styles:t,defaultTheme:r={}}=e,n="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,l.jsx)(u.xB,{styles:n})}var d=r(63678),f=r(14446);let h="mode",g="color-scheme",m="data-color-scheme";function p(e){if("undefined"!=typeof window&&"system"===e){let e=window.matchMedia("(prefers-color-scheme: dark)");return e.matches?"dark":"light"}}function v(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function y(e,t){let r;if("undefined"!=typeof window){try{(r=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return r||t}}let F=["colorSchemes","components","generateCssVars","cssVarPrefix"];var b=r(98918),k=r(52428),E=r(8622);let{CssVarsProvider:w,useColorScheme:Z,getInitColorSchemeScript:P}=function(e){let{themeId:t,theme:r={},attribute:u=m,modeStorageKey:b=h,colorSchemeStorageKey:k=g,defaultMode:E="light",defaultColorScheme:w,disableTransitionOnChange:Z=!1,resolveTheme:P,excludeVariablesFromRoot:x}=e;r.colorSchemes&&("string"!=typeof w||r.colorSchemes[w])&&("object"!=typeof w||r.colorSchemes[null==w?void 0:w.light])&&("object"!=typeof w||r.colorSchemes[null==w?void 0:w.dark])||console.error(`MUI: \`${w}\` does not exist in \`theme.colorSchemes\`.`);let V=s.createContext(void 0),C="string"==typeof w?w:w.light,S="string"==typeof w?w:w.dark;return{CssVarsProvider:function({children:e,theme:o=r,modeStorageKey:m=b,colorSchemeStorageKey:C=k,attribute:S=u,defaultMode:$=E,defaultColorScheme:O=w,disableTransitionOnChange:M=Z,storageWindow:j="undefined"==typeof window?void 0:window,documentNode:q="undefined"==typeof document?void 0:document,colorSchemeNode:I="undefined"==typeof document?void 0:document.documentElement,colorSchemeSelector:A=":root",disableNestedContext:R=!1,disableStyleSheetGeneration:N=!1}){let T=s.useRef(!1),L=(0,d.Z)(),D=s.useContext(V),_=!!D&&!R,U=o[t],W=U||o,{colorSchemes:H={},components:z={},generateCssVars:K=()=>({vars:{},css:{}}),cssVarPrefix:B}=W,J=(0,a.Z)(W,F),G=Object.keys(H),Y="string"==typeof O?O:O.light,Q="string"==typeof O?O:O.dark,{mode:X,setMode:ee,systemMode:et,lightColorScheme:er,darkColorScheme:en,colorScheme:ei,setColorScheme:ea}=function(e){let{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:a=[],modeStorageKey:o=h,colorSchemeStorageKey:u=g,storageWindow:l="undefined"==typeof window?void 0:window}=e,c=a.join(","),[d,f]=s.useState(()=>{let e=y(o,t),i=y(`${u}-light`,r),a=y(`${u}-dark`,n);return{mode:e,systemMode:p(e),lightColorScheme:i,darkColorScheme:a}}),m=v(d,e=>"light"===e?d.lightColorScheme:"dark"===e?d.darkColorScheme:void 0),F=s.useCallback(e=>{f(r=>{if(e===r.mode)return r;let n=e||t;try{localStorage.setItem(o,n)}catch(e){}return(0,i.Z)({},r,{mode:n,systemMode:p(n)})})},[o,t]),b=s.useCallback(e=>{e?"string"==typeof e?e&&!c.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):f(t=>{let r=(0,i.Z)({},t);return v(t,t=>{try{localStorage.setItem(`${u}-${t}`,e)}catch(e){}"light"===t&&(r.lightColorScheme=e),"dark"===t&&(r.darkColorScheme=e)}),r}):f(t=>{let a=(0,i.Z)({},t),o=null===e.light?r:e.light,s=null===e.dark?n:e.dark;if(o){if(c.includes(o)){a.lightColorScheme=o;try{localStorage.setItem(`${u}-light`,o)}catch(e){}}else console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)}if(s){if(c.includes(s)){a.darkColorScheme=s;try{localStorage.setItem(`${u}-dark`,s)}catch(e){}}else console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`)}return a}):f(e=>{try{localStorage.setItem(`${u}-light`,r),localStorage.setItem(`${u}-dark`,n)}catch(e){}return(0,i.Z)({},e,{lightColorScheme:r,darkColorScheme:n})})},[c,u,r,n]),k=s.useCallback(e=>{"system"===d.mode&&f(t=>(0,i.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"}))},[d.mode]),E=s.useRef(k);return E.current=k,s.useEffect(()=>{let e=(...e)=>E.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>t.removeListener(e)},[]),s.useEffect(()=>{let e=e=>{let r=e.newValue;"string"==typeof e.key&&e.key.startsWith(u)&&(!r||c.match(r))&&(e.key.endsWith("light")&&b({light:r}),e.key.endsWith("dark")&&b({dark:r})),e.key===o&&(!r||["light","dark","system"].includes(r))&&F(r||t)};if(l)return l.addEventListener("storage",e),()=>l.removeEventListener("storage",e)},[b,F,o,u,c,t,l]),(0,i.Z)({},d,{colorScheme:m,setMode:F,setColorScheme:b})}({supportedColorSchemes:G,defaultLightColorScheme:Y,defaultDarkColorScheme:Q,modeStorageKey:m,colorSchemeStorageKey:C,defaultMode:$,storageWindow:j}),eo=X,es=ei;_&&(eo=D.mode,es=D.colorScheme);let eu=eo||("system"===$?E:$),el=es||("dark"===eu?Q:Y),{css:ec,vars:ed}=K(),ef=(0,i.Z)({},J,{components:z,colorSchemes:H,cssVarPrefix:B,vars:ed,getColorSchemeSelector:e=>`[${S}="${e}"] &`}),eh={},eg={};Object.entries(H).forEach(([e,t])=>{let{css:r,vars:a}=K(e);ef.vars=(0,n.Z)(ef.vars,a),e===el&&(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?ef[e]=(0,i.Z)({},ef[e],t[e]):ef[e]=t[e]}),ef.palette&&(ef.palette.colorScheme=e));let o="string"==typeof O?O:"dark"===$?O.dark:O.light;if(e===o){if(x){let t={};x(B).forEach(e=>{t[e]=r[e],delete r[e]}),eh[`[${S}="${e}"]`]=t}eh[`${A}, [${S}="${e}"]`]=r}else eg[`${":root"===A?"":A}[${S}="${e}"]`]=r}),ef.vars=(0,n.Z)(ef.vars,ed),s.useEffect(()=>{es&&I&&I.setAttribute(S,es)},[es,S,I]),s.useEffect(()=>{let e;if(M&&T.current&&q){let t=q.createElement("style");t.appendChild(q.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),q.head.appendChild(t),window.getComputedStyle(q.body),e=setTimeout(()=>{q.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[es,M,q]),s.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let em=s.useMemo(()=>({mode:eo,systemMode:et,setMode:ee,lightColorScheme:er,darkColorScheme:en,colorScheme:es,setColorScheme:ea,allColorSchemes:G}),[G,es,en,er,eo,ea,ee,et]),ep=!0;(N||_&&(null==L?void 0:L.cssVarPrefix)===B)&&(ep=!1);let ev=(0,l.jsxs)(s.Fragment,{children:[ep&&(0,l.jsxs)(s.Fragment,{children:[(0,l.jsx)(c,{styles:{[A]:ec}}),(0,l.jsx)(c,{styles:eh}),(0,l.jsx)(c,{styles:eg})]}),(0,l.jsx)(f.Z,{themeId:U?t:void 0,theme:P?P(ef):ef,children:e})]});return _?ev:(0,l.jsx)(V.Provider,{value:em,children:ev})},useColorScheme:()=>{let e=s.useContext(V);if(!e)throw Error((0,o.Z)(19));return e},getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:i=h,colorSchemeStorageKey:a=g,attribute:o=m,colorSchemeNode:s="document.documentElement"}=e||{};return(0,l.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { try { - var mode = localStorage.getItem('${i}') || '${t}'; - var cssColorScheme = mode; - var colorScheme = ''; - if (mode === 'system') { - // handle system mode - var mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - cssColorScheme = 'dark'; - colorScheme = localStorage.getItem('${a}-dark') || '${n}'; - } else { - cssColorScheme = 'light'; - colorScheme = localStorage.getItem('${a}-light') || '${r}'; - } - } - if (mode === 'light') { - colorScheme = localStorage.getItem('${a}-light') || '${r}'; - } - if (mode === 'dark') { - colorScheme = localStorage.getItem('${a}-dark') || '${n}'; - } - if (colorScheme) { - ${s}.setAttribute('${o}', colorScheme); - } - } catch (e) {} })();`}},"mui-color-scheme-init")})((0,i.Z)({attribute:u,colorSchemeStorageKey:k,defaultMode:E,defaultLightColorScheme:C,defaultDarkColorScheme:S,modeStorageKey:b},e))}}({themeId:E.Z,theme:b.Z,attribute:"data-joy-color-scheme",modeStorageKey:"joy-mode",colorSchemeStorageKey:"joy-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t=e.colorInversion;return e.colorInversion=(0,n.Z)({soft:(0,k.pP)(e),solid:(0,k.Lo)(e)},"function"==typeof t?t(e):t,{clone:!1}),e}})},21440:function(e,t,r){r.d(t,{aM:function(){return eC},Ux:function(){return eS}});var n,i=r(86006),a=r(40431),o=r(89301),s=r(65877),u=r(88684),l=r(90151),c=r(18050),d=r(49449),f=r(70184),h=r(43663),g=r(38340),m=r(25912),p=r(5004),v="RC_FORM_INTERNAL_HOOKS",y=function(){(0,p.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},F=i.createContext({getFieldValue:y,getFieldsValue:y,getFieldError:y,getFieldWarning:y,getFieldsError:y,isFieldsTouched:y,isFieldTouched:y,isFieldValidating:y,isFieldsValidating:y,resetFields:y,setFields:y,setFieldValue:y,setFieldsValue:y,validateFields:y,submit:y,getInternalHooks:function(){return y(),{dispatch:y,initEntityValue:y,registerField:y,useSubscribe:y,setInitialValues:y,destroyForm:y,setCallbacks:y,registerWatch:y,getFields:y,setValidateMessages:y,setPreserve:y,getInitialValue:y}}}),b=i.createContext(null);function k(e){return null==e?[]:Array.isArray(e)?e:[e]}var E=r(71971),w=r(27859),Z=r(52040);function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),n=1;n=a)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}break;default:return e}}):e}function j(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e}function q(e,t,r){var n=0,i=e.length;!function a(o){if(o&&o.length){r(o);return}var s=n;n+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},D={integer:function(e){return D.number(e)&&parseInt(e,10)===e},float:function(e){return D.number(e)&&!D.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!D.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(L.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(T())},hex:function(e){return"string"==typeof e&&!!e.match(L.hex)}},_="enum",U={required:N,whitespace:function(e,t,r,n,i){(/^\s+$/.test(t)||""===t)&&n.push(M(i.messages.whitespace,e.fullField))},type:function(e,t,r,n,i){if(e.required&&void 0===t){N(e,t,r,n,i);return}var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?D[a](t)||n.push(M(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&n.push(M(i.messages.types[a],e.fullField,e.type))},range:function(e,t,r,n,i){var a="number"==typeof e.len,o="number"==typeof e.min,s="number"==typeof e.max,u=t,l=null,c="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(c?l="number":d?l="string":f&&(l="array"),!l)return!1;f&&(u=t.length),d&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?u!==e.len&&n.push(M(i.messages[l].len,e.fullField,e.len)):o&&!s&&ue.max?n.push(M(i.messages[l].max,e.fullField,e.max)):o&&s&&(ue.max)&&n.push(M(i.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,r,n,i){e[_]=Array.isArray(e[_])?e[_]:[],-1===e[_].indexOf(t)&&n.push(M(i.messages[_],e.fullField,e[_].join(", ")))},pattern:function(e,t,r,n,i){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(M(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||n.push(M(i.messages.pattern.mismatch,e.fullField,t,e.pattern)))}},W=function(e,t,r,n,i){var a=e.type,o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t,a)&&!e.required)return r();U.required(e,t,n,o,i,a),j(t,a)||U.type(e,t,n,o,i)}r(o)},H={string:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t,"string")&&!e.required)return r();U.required(e,t,n,a,i,"string"),j(t,"string")||(U.type(e,t,n,a,i),U.range(e,t,n,a,i),U.pattern(e,t,n,a,i),!0===e.whitespace&&U.whitespace(e,t,n,a,i))}r(a)},method:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t)&&!e.required)return r();U.required(e,t,n,a,i),void 0!==t&&U.type(e,t,n,a,i)}r(a)},number:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),j(t)&&!e.required)return r();U.required(e,t,n,a,i),void 0!==t&&(U.type(e,t,n,a,i),U.range(e,t,n,a,i))}r(a)},boolean:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t)&&!e.required)return r();U.required(e,t,n,a,i),void 0!==t&&U.type(e,t,n,a,i)}r(a)},regexp:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t)&&!e.required)return r();U.required(e,t,n,a,i),j(t)||U.type(e,t,n,a,i)}r(a)},integer:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t)&&!e.required)return r();U.required(e,t,n,a,i),void 0!==t&&(U.type(e,t,n,a,i),U.range(e,t,n,a,i))}r(a)},float:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t)&&!e.required)return r();U.required(e,t,n,a,i),void 0!==t&&(U.type(e,t,n,a,i),U.range(e,t,n,a,i))}r(a)},array:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();U.required(e,t,n,a,i,"array"),null!=t&&(U.type(e,t,n,a,i),U.range(e,t,n,a,i))}r(a)},object:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t)&&!e.required)return r();U.required(e,t,n,a,i),void 0!==t&&U.type(e,t,n,a,i)}r(a)},enum:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t)&&!e.required)return r();U.required(e,t,n,a,i),void 0!==t&&U.enum(e,t,n,a,i)}r(a)},pattern:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t,"string")&&!e.required)return r();U.required(e,t,n,a,i),j(t,"string")||U.pattern(e,t,n,a,i)}r(a)},date:function(e,t,r,n,i){var a,o=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t,"date")&&!e.required)return r();U.required(e,t,n,o,i),!j(t,"date")&&(a=t instanceof Date?t:new Date(t),U.type(e,a,n,o,i),a&&U.range(e,a.getTime(),n,o,i))}r(o)},url:W,hex:W,email:W,required:function(e,t,r,n,i){var a=[],o=Array.isArray(t)?"array":typeof t;U.required(e,t,n,a,i,o),r(a)},any:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(j(t)&&!e.required)return r();U.required(e,t,n,a,i)}r(a)}};function z(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var K=z(),B=function(){function e(e){this.rules=null,this._messages=K,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(r){var n=e[r];t.rules[r]=Array.isArray(n)?n:[n]})},t.messages=function(e){return e&&(this._messages=R(z(),e)),this._messages},t.validate=function(t,r,n){var i=this;void 0===r&&(r={}),void 0===n&&(n=function(){});var a=t,o=r,s=n;if("function"==typeof o&&(s=o,o={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,a),Promise.resolve(a);if(o.messages){var u=this.messages();u===K&&(u=z()),R(u,o.messages),o.messages=u}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach(function(e){var r=i.rules[e],n=a[e];r.forEach(function(r){var o=r;"function"==typeof o.transform&&(a===t&&(a=P({},a)),n=a[e]=o.transform(n)),(o="function"==typeof o?{validator:o}:P({},o)).validator=i.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=i.getType(o),l[e]=l[e]||[],l[e].push({rule:o,value:n,source:a,field:e}))})});var c={};return function(e,t,r,n,i){if(t.first){var a=new Promise(function(t,a){var o;q((o=[],Object.keys(e).forEach(function(t){o.push.apply(o,e[t]||[])}),o),r,function(e){return n(e),e.length?a(new I(e,O(e))):t(i)})});return a.catch(function(e){return e}),a}var o=!0===t.firstFields?Object.keys(e):t.firstFields||[],s=Object.keys(e),u=s.length,l=0,c=[],d=new Promise(function(t,a){var d=function(e){if(c.push.apply(c,e),++l===u)return n(c),c.length?a(new I(c,O(c))):t(i)};s.length||(n(c),t(i)),s.forEach(function(t){var n=e[t];-1!==o.indexOf(t)?q(n,r,d):function(e,t,r){var n=[],i=0,a=e.length;function o(e){n.push.apply(n,e||[]),++i===a&&r(n)}e.forEach(function(e){t(e,o)})}(n,r,d)})});return d.catch(function(e){return e}),d}(l,o,function(t,r){var n,i=t.rule,s=("object"===i.type||"array"===i.type)&&("object"==typeof i.fields||"object"==typeof i.defaultField);function u(e,t){return P({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function l(n){void 0===n&&(n=[]);var l=Array.isArray(n)?n:[n];!o.suppressWarning&&l.length&&e.warning("async-validator:",l),l.length&&void 0!==i.message&&(l=[].concat(i.message));var d=l.map(A(i,a));if(o.first&&d.length)return c[i.field]=1,r(d);if(s){if(i.required&&!t.value)return void 0!==i.message?d=[].concat(i.message).map(A(i,a)):o.error&&(d=[o.error(i,M(o.messages.required,i.field))]),r(d);var f={};i.defaultField&&Object.keys(t.value).map(function(e){f[e]=i.defaultField});var h={};Object.keys(f=P({},f,t.rule.fields)).forEach(function(e){var t=f[e],r=Array.isArray(t)?t:[t];h[e]=r.map(u.bind(null,e))});var g=new e(h);g.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),g.validate(t.value,t.rule.options||o,function(e){var t=[];d&&d.length&&t.push.apply(t,d),e&&e.length&&t.push.apply(t,e),r(t.length?t:null)})}else r(d)}if(s=s&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)n=i.asyncValidator(i,t.value,l,t.source,o);else if(i.validator){try{n=i.validator(i,t.value,l,t.source,o)}catch(e){null==console.error||console.error(e),o.suppressValidatorError||setTimeout(function(){throw e},0),l(e.message)}!0===n?l():!1===n?l("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):n instanceof Array?l(n):n instanceof Error&&l(n.message)}n&&n.then&&n.then(function(){return l()},function(e){return l(e)})},function(e){!function(e){for(var t=[],r={},n=0;n=n||r<0||r>=n)return e;var i=e[t],a=t-r;return a>0?[].concat((0,l.Z)(e.slice(0,r)),[i],(0,l.Z)(e.slice(r,t)),(0,l.Z)(e.slice(t+1,n))):a<0?[].concat((0,l.Z)(e.slice(0,t)),(0,l.Z)(e.slice(t+1,r+1)),[i],(0,l.Z)(e.slice(r+1,n))):e}var ed=["name"],ef=[];function eh(e,t,r,n,i,a){return"function"==typeof e?e(t,r,"source"in a?{source:a.source}:{}):n!==i}var eg=function(e){(0,h.Z)(r,e);var t=(0,g.Z)(r);function r(e){var n;return(0,c.Z)(this,r),(n=t.call(this,e)).state={resetCount:0},n.cancelRegisterFunc=null,n.mounted=!1,n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.prevValidating=void 0,n.errors=ef,n.warnings=ef,n.cancelRegister=function(){var e=n.props,t=e.preserve,r=e.isListField,i=e.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(r,t,ea(i)),n.cancelRegisterFunc=null},n.getNamePath=function(){var e=n.props,t=e.name,r=e.fieldContext.prefixName,i=void 0===r?[]:r;return void 0!==t?[].concat((0,l.Z)(i),(0,l.Z)(t)):[]},n.getRules=function(){var e=n.props,t=e.rules,r=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(r):e})},n.refresh=function(){n.mounted&&n.setState(function(e){return{resetCount:e.resetCount+1}})},n.triggerMetaEvent=function(e){var t=n.props.onMetaChange;null==t||t((0,u.Z)((0,u.Z)({},n.getMeta()),{},{destroy:e}))},n.onStoreChange=function(e,t,r){var i=n.props,a=i.shouldUpdate,o=i.dependencies,s=void 0===o?[]:o,u=i.onReset,l=r.store,c=n.getNamePath(),d=n.getValue(e),f=n.getValue(l),h=t&&es(t,c);switch("valueUpdate"===r.type&&"external"===r.source&&d!==f&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=ef,n.warnings=ef,n.triggerMetaEvent()),r.type){case"reset":if(!t||h){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=ef,n.warnings=ef,n.triggerMetaEvent(),null==u||u(),n.refresh();return}break;case"remove":if(a){n.reRender();return}break;case"setField":if(h){var g=r.data;"touched"in g&&(n.touched=g.touched),"validating"in g&&!("originRCField"in g)&&(n.validatePromise=g.validating?Promise.resolve([]):null),"errors"in g&&(n.errors=g.errors||ef),"warnings"in g&&(n.warnings=g.warnings||ef),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}if(a&&!c.length&&eh(a,e,l,d,f,r)){n.reRender();return}break;case"dependenciesUpdate":if(s.map(ea).some(function(e){return es(r.relatedFields,e)})){n.reRender();return}break;default:if(h||(!s.length||c.length||a)&&eh(a,e,l,d,f,r)){n.reRender();return}}!0===a&&n.reRender()},n.validateRules=function(e){var t=n.getNamePath(),r=n.getValue(),i=e||{},a=i.triggerName,o=i.validateOnly,s=Promise.resolve().then(function(){if(!n.mounted)return[];var i=n.props,o=i.validateFirst,c=void 0!==o&&o,d=i.messageVariables,f=n.getRules();a&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||k(t).includes(a)}));var h=function(e,t,r,n,i,a){var o,s,l=e.join("."),c=r.map(function(e,t){var r=e.validator,n=(0,u.Z)((0,u.Z)({},e),{},{ruleIndex:t});return r&&(n.validator=function(e,t,n){var i=!1,a=r(e,t,function(){for(var e=arguments.length,t=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:ef;if(n.validatePromise===s){n.validatePromise=null;var t,r=[],i=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,n=e.errors,a=void 0===n?ef:n;t?i.push.apply(i,(0,l.Z)(a)):r.push.apply(r,(0,l.Z)(a))}),n.errors=r,n.warnings=i,n.triggerMetaEvent(),n.reRender()}}),h});return void 0!==o&&o||(n.validatePromise=s,n.dirty=!0,n.errors=ef,n.warnings=ef,n.triggerMetaEvent(),n.reRender()),s},n.isFieldValidating=function(){return!!n.validatePromise},n.isFieldTouched=function(){return n.touched},n.isFieldDirty=function(){return!!n.dirty||void 0!==n.props.initialValue||void 0!==(0,n.props.fieldContext.getInternalHooks(v).getInitialValue)(n.getNamePath())},n.getErrors=function(){return n.errors},n.getWarnings=function(){return n.warnings},n.isListField=function(){return n.props.isListField},n.isList=function(){return n.props.isList},n.isPreserve=function(){return n.props.preserve},n.getMeta=function(){return n.prevValidating=n.isFieldValidating(),{touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:null===n.validatePromise}},n.getOnlyChild=function(e){if("function"==typeof e){var t=n.getMeta();return(0,u.Z)((0,u.Z)({},n.getOnlyChild(e(n.getControlled(),t,n.props.fieldContext))),{},{isFunction:!0})}var r=(0,m.Z)(e);return 1===r.length&&i.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}},n.getValue=function(e){var t=n.props.fieldContext.getFieldsValue,r=n.getNamePath();return(0,ei.Z)(e||t(!0),r)},n.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,o=t.normalize,l=t.valuePropName,c=t.getValueProps,d=t.fieldContext,f=void 0!==i?i:d.validateTrigger,h=n.getNamePath(),g=d.getInternalHooks,m=d.getFieldsValue,p=g(v).dispatch,y=n.getValue(),F=c||function(e){return(0,s.Z)({},l,e)},b=e[r],E=(0,u.Z)((0,u.Z)({},e),F(y));return E[r]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var e,t=arguments.length,r=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];if(r.watchList.length){var t=r.getFieldsValue(),n=r.getFieldsValue(!0);r.watchList.forEach(function(r){r(t,n,e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){r.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?r.fieldEntities.filter(function(e){return e.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new eF;return r.getFieldEntities(e).forEach(function(e){var r=e.getNamePath();t.set(r,e)}),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return r.getFieldEntities(!0);var t=r.getFieldsMap(!0);return e.map(function(e){var r=ea(e);return t.get(r)||{INVALIDATE_NAME_PATH:ea(e)}})},this.getFieldsValue=function(e,t){if(r.warningUnhooked(),!0===e&&!t)return r.store;var n=r.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),i=[];return n.forEach(function(r){var n,a="INVALIDATE_NAME_PATH"in r?r.INVALIDATE_NAME_PATH:r.getNamePath();!(!e&&(null===(n=r.isListField)||void 0===n?void 0:n.call(r)))&&(t?t("getMeta"in r?r.getMeta():null)&&i.push(a):i.push(a))}),eo(r.store,i.map(ea))},this.getFieldValue=function(e){r.warningUnhooked();var t=ea(e);return(0,ei.Z)(r.store,t)},this.getFieldsError=function(e){return r.warningUnhooked(),r.getFieldEntitiesForNamePathList(e).map(function(t,r){return!t||"INVALIDATE_NAME_PATH"in t?{name:ea(e[r]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})},this.getFieldError=function(e){r.warningUnhooked();var t=ea(e);return r.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){r.warningUnhooked();var t=ea(e);return r.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var e,t=arguments.length,n=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=new eF,i=r.getFieldEntities(!0);i.forEach(function(e){var t=e.props.initialValue,r=e.getNamePath();if(void 0!==t){var i=n.get(r)||new Set;i.add({entity:e,value:t}),n.set(r,i)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var r,i=n.get(t);i&&(r=e).push.apply(r,(0,l.Z)((0,l.Z)(i).map(function(e){return e.entity})))})):e=i,function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==r.getInitialValue(i))(0,p.ZP)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var a=n.get(i);if(a&&a.size>1)(0,p.ZP)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var o=r.getFieldValue(i);t.skipExist&&void 0!==o||r.updateStore((0,Y.Z)(r.store,i,(0,l.Z)(a)[0].value))}}}})}(e)},this.resetFields=function(e){r.warningUnhooked();var t=r.store;if(!e){r.updateStore((0,Y.T)(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(t,null,{type:"reset"}),r.notifyWatch();return}var n=e.map(ea);n.forEach(function(e){var t=r.getInitialValue(e);r.updateStore((0,Y.Z)(r.store,e,t))}),r.resetWithFieldInitialValue({namePathList:n}),r.notifyObservers(t,n,{type:"reset"}),r.notifyWatch(n)},this.setFields=function(e){r.warningUnhooked();var t=r.store,n=[];e.forEach(function(e){var i=e.name,a=(0,o.Z)(e,eb),s=ea(i);n.push(s),"value"in a&&r.updateStore((0,Y.Z)(r.store,s,a.value)),r.notifyObservers(t,[s],{type:"setField",data:e})}),r.notifyWatch(n)},this.getFields=function(){return r.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),n=e.getMeta(),i=(0,u.Z)((0,u.Z)({},n),{},{name:t,value:r.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i})},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var n=e.getNamePath();void 0===(0,ei.Z)(r.store,n)&&r.updateStore((0,Y.Z)(r.store,n,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:r.preserve;return null==t||t},this.registerField=function(e){r.fieldEntities.push(e);var t=e.getNamePath();if(r.notifyWatch([t]),void 0!==e.props.initialValue){var n=r.store;r.resetWithFieldInitialValue({entities:[e],skipExist:!0}),r.notifyObservers(n,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(t){return t!==e}),!r.isMergedPreserve(i)&&(!n||a.length>1)){var o=n?void 0:r.getInitialValue(t);if(t.length&&r.getFieldValue(t)!==o&&r.fieldEntities.every(function(e){return!eu(e.getNamePath(),t)})){var s=r.store;r.updateStore((0,Y.Z)(s,t,o,!0)),r.notifyObservers(s,[t],{type:"remove"}),r.triggerDependenciesUpdate(s,t)}}r.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,n=e.value;r.updateValue(t,n);break;case"validateField":var i=e.namePath,a=e.triggerName;r.validateFields([i],{triggerName:a})}},this.notifyObservers=function(e,t,n){if(r.subscribable){var i=(0,u.Z)((0,u.Z)({},n),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(r){(0,r.onStoreChange)(e,t,i)})}else r.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var n=r.getDependencyChildrenFields(t);return n.length&&r.validateFields(n),r.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t].concat((0,l.Z)(n))}),n},this.updateValue=function(e,t){var n=ea(e),i=r.store;r.updateStore((0,Y.Z)(r.store,n,t)),r.notifyObservers(i,[n],{type:"valueUpdate",source:"internal"}),r.notifyWatch([n]);var a=r.triggerDependenciesUpdate(i,n),o=r.callbacks.onValuesChange;o&&o(eo(r.store,[n]),r.getFieldsValue()),r.triggerOnFieldsChange([n].concat((0,l.Z)(a)))},this.setFieldsValue=function(e){r.warningUnhooked();var t=r.store;if(e){var n=(0,Y.T)(r.store,e);r.updateStore(n)}r.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()},this.setFieldValue=function(e,t){r.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,n=[],i=new eF;return r.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var r=ea(t);i.update(r,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(r){(i.get(r)||new Set).forEach(function(r){if(!t.has(r)){t.add(r);var i=r.getNamePath();r.isFieldDirty()&&i.length&&(n.push(i),e(i))}})}(e),n},this.triggerOnFieldsChange=function(e,t){var n=r.callbacks.onFieldsChange;if(n){var i=r.getFields();if(t){var a=new eF;t.forEach(function(e){var t=e.name,r=e.errors;a.set(t,r)}),i.forEach(function(e){e.errors=a.get(e.name)||e.errors})}n(i.filter(function(t){return es(e,t.name)}),i)}},this.validateFields=function(e,t){r.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(o=e,s=t):s=e;var n,i,a,o,s,c=!!o,d=c?o.map(ea):[],f=[];r.getFieldEntities(!0).forEach(function(e){if(c||d.push(e.getNamePath()),(null===(t=s)||void 0===t?void 0:t.recursive)&&c){var t,n=e.getNamePath();n.every(function(e,t){return o[t]===e||void 0===o[t]})&&d.push(n)}if(e.props.rules&&e.props.rules.length){var i=e.getNamePath();if(!c||es(d,i)){var a=e.validateRules((0,u.Z)({validateMessages:(0,u.Z)((0,u.Z)({},G),r.validateMessages)},s));f.push(a.then(function(){return{name:i,errors:[],warnings:[]}}).catch(function(e){var t,r=[],n=[];return(null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,i=e.errors;t?n.push.apply(n,(0,l.Z)(i)):r.push.apply(r,(0,l.Z)(i))}),r.length)?Promise.reject({name:i,errors:r,warnings:n}):{name:i,errors:r,warnings:n}}))}}});var h=(n=!1,i=f.length,a=[],f.length?new Promise(function(e,t){f.forEach(function(r,o){r.catch(function(e){return n=!0,e}).then(function(r){i-=1,a[o]=r,i>0||(n&&t(a),e(a))})})}):Promise.resolve([]));r.lastValidatePromise=h,h.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});r.notifyObservers(r.store,t,{type:"validateFinish"}),r.triggerOnFieldsChange(t,e)});var g=h.then(function(){return r.lastValidatePromise===h?Promise.resolve(r.getFieldsValue(d)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:r.getFieldsValue(d),errorFields:t,outOfDate:r.lastValidatePromise!==h})});return g.catch(function(e){return e}),r.triggerOnFieldsChange(d),g},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(e){var t=r.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=r.callbacks.onFinishFailed;t&&t(e)})},this.forceRootUpdate=t}),eE=function(e){var t=i.useRef(),r=i.useState({}),n=(0,ep.Z)(r,2)[1];if(!t.current){if(e)t.current=e;else{var a=new ek(function(){n({})});t.current=a.getForm()}}return[t.current]},ew=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eZ=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];function eP(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ex=function(){},eV=i.forwardRef(function(e,t){var r,n=e.name,s=e.initialValues,c=e.fields,d=e.form,f=e.preserve,h=e.children,g=e.component,m=void 0===g?"form":g,p=e.validateMessages,y=e.validateTrigger,k=void 0===y?"onChange":y,E=e.onValuesChange,w=e.onFieldsChange,Z=e.onFinish,P=e.onFinishFailed,x=(0,o.Z)(e,eZ),V=i.useContext(ew),C=eE(d),S=(0,ep.Z)(C,1)[0],$=S.getInternalHooks(v),O=$.useSubscribe,M=$.setInitialValues,j=$.setCallbacks,q=$.setValidateMessages,I=$.setPreserve,A=$.destroyForm;i.useImperativeHandle(t,function(){return S}),i.useEffect(function(){return V.registerForm(n,S),function(){V.unregisterForm(n)}},[V,S,n]),q((0,u.Z)((0,u.Z)({},V.validateMessages),p)),j({onValuesChange:E,onFieldsChange:function(e){if(V.triggerFormChange(n,e),w){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i=0&&t<=r.length?(f.keys=[].concat((0,l.Z)(f.keys.slice(0,t)),[f.id],(0,l.Z)(f.keys.slice(t))),i([].concat((0,l.Z)(r.slice(0,t)),[e],(0,l.Z)(r.slice(t))))):(f.keys=[].concat((0,l.Z)(f.keys),[f.id]),i([].concat((0,l.Z)(r),[e]))),f.id+=1},remove:function(e){var t=o(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(f.keys=f.keys.filter(function(e,t){return!r.has(t)}),i(t.filter(function(e,t){return!r.has(t)})))},move:function(e,t){if(e!==t){var r=o();e<0||e>=r.length||t<0||t>=r.length||(f.keys=ec(f.keys,e,t),i(ec(r,e,t)))}}},t)})))},eV.useForm=eE,eV.useWatch=function(){for(var e=arguments.length,t=Array(e),r=0;r{let{children:t,status:r,override:n}=e,a=(0,i.useContext)(eC),o=(0,i.useMemo)(()=>{let e=Object.assign({},a);return n&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[r,n,a]);return i.createElement(eC.Provider,{value:o},t)}},6783:function(e,t,r){var n=r(86006),i=r(67044),a=r(91295);t.Z=(e,t)=>{let r=n.useContext(i.Z),o=n.useMemo(()=>{var n;let i=t||a.Z[e],o=null!==(n=null==r?void 0:r[e])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"==typeof i?i():i),o||{})},[e,t,r]),s=n.useMemo(()=>{let e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?a.Z.locale:e},[r]);return[o,s]}},75872:function(e,t,r){r.d(t,{c:function(){return n}});function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},function(e,t,r){let{focusElCls:n,focus:i,borderElCls:a}=r,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}(e,n,t)),function(e,t,r){let{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(r,n,t))}}},73234:function(e,t,r){r.d(t,{Z:function(){return i}});var n=r(88684);function i(e,t){var r=(0,n.Z)({},e);return Array.isArray(t)&&t.forEach(function(e){delete r[e]}),r}},42442:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(88684),i="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function a(e,t){return 0===e.indexOf(t)}function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===r?{aria:!0,data:!0,attr:!0}:!0===r?{aria:!0}:(0,n.Z)({},r);var o={};return Object.keys(e).forEach(function(r){(t.aria&&("role"===r||a(r,"aria-"))||t.data&&a(r,"data-")||t.attr&&i.includes(r))&&(o[r]=e[r])}),o}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/4341-bd4289adcfa8584c.js b/pilot/server/static/_next/static/chunks/4341-bd4289adcfa8584c.js new file mode 100644 index 000000000..b5a40f255 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/4341-bd4289adcfa8584c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4341],{54842:function(e,t,r){var a=r(78997);t.Z=void 0;var s=a(r(76906)),i=r(9268),n=(0,s.default)((0,i.jsx)("path",{d:"m3.4 20.4 17.45-7.48c.81-.35.81-1.49 0-1.84L3.4 3.6c-.66-.29-1.39.2-1.39.91L2 9.12c0 .5.37.93.87.99L17 12 2.87 13.88c-.5.07-.87.5-.87 1l.01 4.61c0 .71.73 1.2 1.39.91z"}),"SendRounded");t.Z=n},53047:function(e,t,r){r.d(t,{Qh:function(){return x},ZP:function(){return Z}});var a=r(46750),s=r(40431),i=r(86006),n=r(53832),o=r(99179),l=r(73811),u=r(47562),d=r(50645),c=r(88930),h=r(47093),f=r(326),p=r(18587);function m(e){return(0,p.d6)("MuiIconButton",e)}let y=(0,p.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var v=r(42858),g=r(9268);let _=["children","action","component","color","disabled","variant","size","slots","slotProps"],b=e=>{let{color:t,disabled:r,focusVisible:a,focusVisibleClassName:s,size:i,variant:o}=e,l={root:["root",r&&"disabled",a&&"focusVisible",o&&`variant${(0,n.Z)(o)}`,t&&`color${(0,n.Z)(t)}`,i&&`size${(0,n.Z)(i)}`]},d=(0,u.Z)(l,m,{});return a&&s&&(d.root+=` ${s}`),d},x=(0,d.Z)("button")(({theme:e,ownerState:t})=>{var r,a,i,n;return[(0,s.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color]}},{"&:active":null==(i=e.variants[`${t.variant}Active`])?void 0:i[t.color]},{[`&.${y.disabled}`]:null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color]}]}),k=(0,d.Z)(x,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),w=i.forwardRef(function(e,t){var r;let n=(0,c.Z)({props:e,name:"JoyIconButton"}),{children:u,action:d,component:p="button",color:m="primary",disabled:y,variant:x="soft",size:w="md",slots:Z={},slotProps:S={}}=n,T=(0,a.Z)(n,_),O=i.useContext(v.Z),C=e.variant||O.variant||x,A=e.size||O.size||w,{getColor:N}=(0,h.VT)(C),E=N(e.color,O.color||m),V=null!=(r=e.disabled)?r:O.disabled||y,I=i.useRef(null),j=(0,o.Z)(I,t),{focusVisible:P,setFocusVisible:D,getRootProps:R}=(0,l.Z)((0,s.Z)({},n,{disabled:V,rootRef:j}));i.useImperativeHandle(d,()=>({focusVisible:()=>{var e;D(!0),null==(e=I.current)||e.focus()}}),[D]);let z=(0,s.Z)({},n,{component:p,color:E,disabled:V,variant:C,size:A,focusVisible:P,instanceSize:e.size}),L=b(z),F=(0,s.Z)({},T,{component:p,slots:Z,slotProps:S}),[M,$]=(0,f.Z)("root",{ref:t,className:L.root,elementType:k,getSlotProps:R,externalForwardedProps:F,ownerState:z});return(0,g.jsx)(M,(0,s.Z)({},$,{children:u}))});w.muiName="IconButton";var Z=w},67830:function(e,t,r){r.d(t,{F:function(){return l}});var a=r(19700),s=function(e,t,r){if(e&&"reportValidity"in e){var s=(0,a.U2)(r,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},i=function(e,t){var r=function(r){var a=t.fields[r];a&&a.ref&&"reportValidity"in a.ref?s(a.ref,r,e):a.refs&&a.refs.forEach(function(t){return s(t,r,e)})};for(var a in t.fields)r(a)},n=function(e,t){t.shouldUseNativeValidation&&i(e,t);var r={};for(var s in e){var n=(0,a.U2)(t.fields,s);(0,a.t8)(r,s,Object.assign(e[s]||{},{ref:n&&n.ref}))}return r},o=function(e,t){for(var r={};e.length;){var s=e[0],i=s.code,n=s.message,o=s.path.join(".");if(!r[o]){if("unionErrors"in s){var l=s.unionErrors[0].errors[0];r[o]={message:l.message,type:l.code}}else r[o]={message:n,type:i}}if("unionErrors"in s&&s.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var u=r[o].types,d=u&&u[s.code];r[o]=(0,a.KN)(o,t,r,i,d?[].concat(d,s.message):s.message)}e.shift()}return r},l=function(e,t,r){return void 0===r&&(r={}),function(a,s,l){try{return Promise.resolve(function(s,n){try{var o=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](a,t)).then(function(e){return l.shouldUseNativeValidation&&i({},l),{errors:{},values:r.raw?a:e}})}catch(e){return n(e)}return o&&o.then?o.then(void 0,n):o}(0,function(e){if(null!=e.errors)return{values:{},errors:n(o(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}}}},19700:function(e,t,r){r.d(t,{KN:function(){return N},U2:function(){return v},cI:function(){return em},t8:function(){return A}});var a=r(86006),s=e=>"checkbox"===e.type,i=e=>e instanceof Date,n=e=>null==e;let o=e=>"object"==typeof e;var l=e=>!n(e)&&!Array.isArray(e)&&o(e)&&!i(e),u=e=>l(e)&&e.target?s(e.target)?e.target.checked:e.target.value:e,d=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,c=(e,t)=>e.has(d(t)),h=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},f="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(f&&(e instanceof Blob||e instanceof FileList))&&(r||l(e))))return e;else if(t=r?[]:{},r||h(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=p(e[r]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],y=e=>void 0===e,v=(e,t,r)=>{if(!t||!l(e))return r;let a=m(t.split(/[,[\].]+?/)).reduce((e,t)=>n(e)?e:e[t],e);return y(a)||a===e?y(e[t])?r:e[t]:a};let g={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},b={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"};a.createContext(null);var x=(e,t,r,a=!0)=>{let s={defaultValues:t._defaultValues};for(let i in e)Object.defineProperty(s,i,{get:()=>(t._proxyFormState[i]!==_.all&&(t._proxyFormState[i]=!a||_.all),r&&(r[i]=!0),e[i])});return s},k=e=>l(e)&&!Object.keys(e).length,w=(e,t,r,a)=>{r(e);let{name:s,...i}=e;return k(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(e=>t[e]===(!a||_.all))},Z=e=>Array.isArray(e)?e:[e],S=e=>"string"==typeof e,T=(e,t,r,a,s)=>S(e)?(a&&t.watch.add(e),v(r,e,s)):Array.isArray(e)?e.map(e=>(a&&t.watch.add(e),v(r,e))):(a&&(t.watchAll=!0),r),O=e=>/^\w*$/.test(e),C=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/));function A(e,t,r){let a=-1,s=O(t)?[t]:C(t),i=s.length,n=i-1;for(;++at?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[a]:s||!0}}:{};let E=(e,t,r)=>{for(let a of r||Object.keys(e)){let r=v(e,a);if(r){let{_f:e,...a}=r;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else l(a)&&E(a,t)}}};var V=e=>({isOnSubmit:!e||e===_.onSubmit,isOnBlur:e===_.onBlur,isOnChange:e===_.onChange,isOnAll:e===_.all,isOnTouch:e===_.onTouched}),I=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))),j=(e,t,r)=>{let a=m(v(e,r));return A(a,"root",t[r]),A(e,r,a),e},P=e=>"boolean"==typeof e,D=e=>"file"===e.type,R=e=>"function"==typeof e,z=e=>{if(!f)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},L=e=>S(e),F=e=>"radio"===e.type,M=e=>e instanceof RegExp;let $={value:!1,isValid:!1},U={value:!0,isValid:!0};var B=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?U:{value:e[0].value,isValid:!0}:U:$}return $};let K={isValid:!1,value:null};var W=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,K):K;function q(e,t,r="validate"){if(L(e)||Array.isArray(e)&&e.every(L)||P(e)&&!e)return{type:r,message:L(e)?e:"",ref:t}}var H=e=>l(e)&&!M(e)?e:{value:e,message:""},J=async(e,t,r,a,i)=>{let{ref:o,refs:u,required:d,maxLength:c,minLength:h,min:f,max:p,pattern:m,validate:g,name:_,valueAsNumber:x,mount:w,disabled:Z}=e._f,T=v(t,_);if(!w||Z)return{};let O=u?u[0]:o,C=e=>{a&&O.reportValidity&&(O.setCustomValidity(P(e)?"":e||""),O.reportValidity())},A={},E=F(o),V=s(o),I=(x||D(o))&&y(o.value)&&y(T)||z(o)&&""===o.value||""===T||Array.isArray(T)&&!T.length,j=N.bind(null,_,r,A),$=(e,t,r,a=b.maxLength,s=b.minLength)=>{let i=e?t:r;A[_]={type:e?a:s,message:i,ref:o,...j(e?a:s,i)}};if(i?!Array.isArray(T)||!T.length:d&&(!(E||V)&&(I||n(T))||P(T)&&!T||V&&!B(u).isValid||E&&!W(u).isValid)){let{value:e,message:t}=L(d)?{value:!!d,message:d}:H(d);if(e&&(A[_]={type:b.required,message:t,ref:O,...j(b.required,t)},!r))return C(t),A}if(!I&&(!n(f)||!n(p))){let e,t;let a=H(p),s=H(f);if(n(T)||isNaN(T)){let r=o.valueAsDate||new Date(T),i=e=>new Date(new Date().toDateString()+" "+e),n="time"==o.type,l="week"==o.type;S(a.value)&&T&&(e=n?i(T)>i(a.value):l?T>a.value:r>new Date(a.value)),S(s.value)&&T&&(t=n?i(T)a.value),n(s.value)||(t=r+e.value,s=!n(t.value)&&T.length<+t.value;if((a||s)&&($(a,e.message,t.message),!r))return C(A[_].message),A}if(m&&!I&&S(T)){let{value:e,message:t}=H(m);if(M(e)&&!T.match(e)&&(A[_]={type:b.pattern,message:t,ref:o,...j(b.pattern,t)},!r))return C(t),A}if(g){if(R(g)){let e=await g(T,t),a=q(e,O);if(a&&(A[_]={...a,...j(b.validate,a.message)},!r))return C(a.message),A}else if(l(g)){let e={};for(let a in g){if(!k(e)&&!r)break;let s=q(await g[a](T,t),O,a);s&&(e={...s,...j(a,s.message)},C(s.message),r&&(A[_]=e))}if(!k(e)&&(A[_]={ref:O,...e},!r))return A}}return C(!0),A};function G(e,t){let r=Array.isArray(t)?t:O(t)?[t]:C(t),a=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,a=0;for(;a{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}}var Q=e=>n(e)||!o(e);function X(e,t){if(Q(e)||Q(t))return e===t;if(i(e)&&i(t))return e.getTime()===t.getTime();let r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(let s of r){let r=e[s];if(!a.includes(s))return!1;if("ref"!==s){let e=t[s];if(i(r)&&i(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!X(r,e):r!==e)return!1}}return!0}var ee=e=>"select-multiple"===e.type,et=e=>F(e)||s(e),er=e=>z(e)&&e.isConnected,ea=e=>{for(let t in e)if(R(e[t]))return!0;return!1};function es(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!ea(e[r])?(t[r]=Array.isArray(e[r])?[]:{},es(e[r],t[r])):n(e[r])||(t[r]=!0);return t}var ei=(e,t)=>(function e(t,r,a){let s=Array.isArray(t);if(l(t)||s)for(let s in t)Array.isArray(t[s])||l(t[s])&&!ea(t[s])?y(r)||Q(a[s])?a[s]=Array.isArray(t[s])?es(t[s],[]):{...es(t[s])}:e(t[s],n(r)?{}:r[s],a[s]):a[s]=!X(t[s],r[s]);return a})(e,t,es(t)),en=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:a})=>y(e)?e:t?""===e?NaN:e?+e:e:r&&S(e)?new Date(e):a?a(e):e;function eo(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:D(t)?t.files:F(t)?W(e.refs).value:ee(t)?[...t.selectedOptions].map(({value:e})=>e):s(t)?B(e.refs).value:en(y(t.value)?e.ref.value:t.value,e)}var el=(e,t,r,a)=>{let s={};for(let r of e){let e=v(t,r);e&&A(s,r,e._f)}return{criteriaMode:r,names:[...e],fields:s,shouldUseNativeValidation:a}},eu=e=>y(e)?e:M(e)?e.source:l(e)?M(e.value)?e.value.source:e.value:e,ed=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ec(e,t,r){let a=v(e,r);if(a||O(r))return{error:a,name:r};let s=r.split(".");for(;s.length;){let a=s.join("."),i=v(t,a),n=v(e,a);if(i&&!Array.isArray(i)&&r!==a)break;if(n&&n.type)return{name:a,error:n};s.pop()}return{name:r}}var eh=(e,t,r,a,s)=>!s.isOnAll&&(!r&&s.isOnTouch?!(t||e):(r?a.isOnBlur:s.isOnBlur)?!e:(r?!a.isOnChange:!s.isOnChange)||e),ef=(e,t)=>!m(v(e,t)).length&&G(e,t);let ep={mode:_.onSubmit,reValidateMode:_.onChange,shouldFocusError:!0};function em(e={}){let t=a.useRef(),r=a.useRef(),[o,d]=a.useState({isDirty:!1,isValidating:!1,isLoading:R(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:R(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={},t){let r,a={...ep,...e},o={submitCount:0,isDirty:!1,isLoading:R(a.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},d={},h=(l(a.defaultValues)||l(a.values))&&p(a.defaultValues||a.values)||{},b=a.shouldUnregister?{}:p(h),x={action:!1,mount:!1,watch:!1},w={mount:new Set,unMount:new Set,array:new Set,watch:new Set},O=0,C={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},N={values:Y(),array:Y(),state:Y()},L=e.resetOptions&&e.resetOptions.keepDirtyValues,F=V(a.mode),M=V(a.reValidateMode),$=a.criteriaMode===_.all,U=e=>t=>{clearTimeout(O),O=setTimeout(e,t)},B=async e=>{if(C.isValid||e){let e=a.resolver?k((await es()).errors):await ey(d,!0);e!==o.isValid&&N.state.next({isValid:e})}},K=e=>C.isValidating&&N.state.next({isValidating:e}),W=(e,t)=>{A(o.errors,e,t),N.state.next({errors:o.errors})},q=(e,t,r,a)=>{let s=v(d,e);if(s){let i=v(b,e,y(r)?v(h,e):r);y(i)||a&&a.defaultChecked||t?A(b,e,t?i:eo(s._f)):e_(e,i),x.mount&&B()}},H=(e,t,r,a,s)=>{let i=!1,n=!1,l={name:e};if(!r||a){C.isDirty&&(n=o.isDirty,o.isDirty=l.isDirty=ev(),i=n!==l.isDirty);let r=X(v(h,e),t);n=v(o.dirtyFields,e),r?G(o.dirtyFields,e):A(o.dirtyFields,e,!0),l.dirtyFields=o.dirtyFields,i=i||C.dirtyFields&&!r!==n}if(r){let t=v(o.touchedFields,e);t||(A(o.touchedFields,e,r),l.touchedFields=o.touchedFields,i=i||C.touchedFields&&t!==r)}return i&&s&&N.state.next(l),i?l:{}},ea=(t,a,s,i)=>{let n=v(o.errors,t),l=C.isValid&&P(a)&&o.isValid!==a;if(e.delayError&&s?(r=U(()=>W(t,s)))(e.delayError):(clearTimeout(O),r=null,s?A(o.errors,t,s):G(o.errors,t)),(s?!X(n,s):n)||!k(i)||l){let e={...i,...l&&P(a)?{isValid:a}:{},errors:o.errors,name:t};o={...o,...e},N.state.next(e)}K(!1)},es=async e=>a.resolver(b,a.context,el(e||w.mount,d,a.criteriaMode,a.shouldUseNativeValidation)),em=async e=>{let{errors:t}=await es();if(e)for(let r of e){let e=v(t,r);e?A(o.errors,r,e):G(o.errors,r)}else o.errors=t;return t},ey=async(e,t,r={valid:!0})=>{for(let s in e){let i=e[s];if(i){let{_f:e,...s}=i;if(e){let s=w.array.has(e.name),n=await J(i,b,$,a.shouldUseNativeValidation&&!t,s);if(n[e.name]&&(r.valid=!1,t))break;t||(v(n,e.name)?s?j(o.errors,n,e.name):A(o.errors,e.name,n[e.name]):G(o.errors,e.name))}s&&await ey(s,t,r)}}return r.valid},ev=(e,t)=>(e&&t&&A(b,e,t),!X(eZ(),h)),eg=(e,t,r)=>T(e,w,{...x.mount?b:y(t)?h:S(e)?{[e]:t}:t},r,t),e_=(e,t,r={})=>{let a=v(d,e),i=t;if(a){let r=a._f;r&&(r.disabled||A(b,e,en(t,r)),i=z(r.ref)&&n(t)?"":t,ee(r.ref)?[...r.ref.options].forEach(e=>e.selected=i.includes(e.value)):r.refs?s(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find(t=>t===e.value):i===e.value)):r.refs[0]&&(r.refs[0].checked=!!i):r.refs.forEach(e=>e.checked=e.value===i):D(r.ref)?r.ref.value="":(r.ref.value=i,r.ref.type||N.values.next({name:e,values:{...b}})))}(r.shouldDirty||r.shouldTouch)&&H(e,i,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ew(e)},eb=(e,t,r)=>{for(let a in t){let s=t[a],n=`${e}.${a}`,o=v(d,n);!w.array.has(e)&&Q(s)&&(!o||o._f)||i(s)?e_(n,s,r):eb(n,s,r)}},ex=(e,r,a={})=>{let s=v(d,e),i=w.array.has(e),l=p(r);A(b,e,l),i?(N.array.next({name:e,values:{...b}}),(C.isDirty||C.dirtyFields)&&a.shouldDirty&&N.state.next({name:e,dirtyFields:ei(h,b),isDirty:ev(e,l)})):!s||s._f||n(l)?e_(e,l,a):eb(e,l,a),I(e,w)&&N.state.next({...o}),N.values.next({name:e,values:{...b}}),x.mount||t()},ek=async e=>{let t=e.target,s=t.name,i=!0,n=v(d,s);if(n){let l,c;let h=t.type?eo(n._f):u(e),f=e.type===g.BLUR||e.type===g.FOCUS_OUT,p=!ed(n._f)&&!a.resolver&&!v(o.errors,s)&&!n._f.deps||eh(f,v(o.touchedFields,s),o.isSubmitted,M,F),m=I(s,w,f);A(b,s,h),f?(n._f.onBlur&&n._f.onBlur(e),r&&r(0)):n._f.onChange&&n._f.onChange(e);let y=H(s,h,f,!1),_=!k(y)||m;if(f||N.values.next({name:s,type:e.type,values:{...b}}),p)return C.isValid&&B(),_&&N.state.next({name:s,...m?{}:y});if(!f&&m&&N.state.next({...o}),K(!0),a.resolver){let{errors:e}=await es([s]),t=ec(o.errors,d,s),r=ec(e,d,t.name||s);l=r.error,s=r.name,c=k(e)}else l=(await J(n,b,$,a.shouldUseNativeValidation))[s],(i=isNaN(h)||h===v(b,s,h))&&(l?c=!1:C.isValid&&(c=await ey(d,!0)));i&&(n._f.deps&&ew(n._f.deps),ea(s,c,l,y))}},ew=async(e,t={})=>{let r,s;let i=Z(e);if(K(!0),a.resolver){let t=await em(y(e)?e:i);r=k(t),s=e?!i.some(e=>v(t,e)):r}else e?((s=(await Promise.all(i.map(async e=>{let t=v(d,e);return await ey(t&&t._f?{[e]:t}:t)}))).every(Boolean))||o.isValid)&&B():s=r=await ey(d);return N.state.next({...!S(e)||C.isValid&&r!==o.isValid?{}:{name:e},...a.resolver||!e?{isValid:r}:{},errors:o.errors,isValidating:!1}),t.shouldFocus&&!s&&E(d,e=>e&&v(o.errors,e),e?i:w.mount),s},eZ=e=>{let t={...h,...x.mount?b:{}};return y(e)?t:S(e)?v(t,e):e.map(e=>v(t,e))},eS=(e,t)=>({invalid:!!v((t||o).errors,e),isDirty:!!v((t||o).dirtyFields,e),isTouched:!!v((t||o).touchedFields,e),error:v((t||o).errors,e)}),eT=(e,t,r)=>{let a=(v(d,e,{_f:{}})._f||{}).ref;A(o.errors,e,{...t,ref:a}),N.state.next({name:e,errors:o.errors,isValid:!1}),r&&r.shouldFocus&&a&&a.focus&&a.focus()},eO=(e,t={})=>{for(let r of e?Z(e):w.mount)w.mount.delete(r),w.array.delete(r),t.keepValue||(G(d,r),G(b,r)),t.keepError||G(o.errors,r),t.keepDirty||G(o.dirtyFields,r),t.keepTouched||G(o.touchedFields,r),a.shouldUnregister||t.keepDefaultValue||G(h,r);N.values.next({values:{...b}}),N.state.next({...o,...t.keepDirty?{isDirty:ev()}:{}}),t.keepIsValid||B()},eC=(e,t={})=>{let r=v(d,e),s=P(t.disabled);return A(d,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),w.mount.add(e),r?s&&A(b,e,t.disabled?void 0:v(b,e,eo(r._f))):q(e,!0,t.value),{...s?{disabled:t.disabled}:{},...a.progressive?{required:!!t.required,min:eu(t.min),max:eu(t.max),minLength:eu(t.minLength),maxLength:eu(t.maxLength),pattern:eu(t.pattern)}:{},name:e,onChange:ek,onBlur:ek,ref:s=>{if(s){eC(e,t),r=v(d,e);let a=y(s.value)&&s.querySelectorAll&&s.querySelectorAll("input,select,textarea")[0]||s,i=et(a),n=r._f.refs||[];(i?n.find(e=>e===a):a===r._f.ref)||(A(d,e,{_f:{...r._f,...i?{refs:[...n.filter(er),a,...Array.isArray(v(h,e))?[{}]:[]],ref:{type:a.type,name:e}}:{ref:a}}}),q(e,!1,void 0,a))}else(r=v(d,e,{}))._f&&(r._f.mount=!1),(a.shouldUnregister||t.shouldUnregister)&&!(c(w.array,e)&&x.action)&&w.unMount.add(e)}}},eA=()=>a.shouldFocusError&&E(d,e=>e&&v(o.errors,e),w.mount),eN=(e,t)=>async r=>{r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist());let s=p(b);if(N.state.next({isSubmitting:!0}),a.resolver){let{errors:e,values:t}=await es();o.errors=e,s=t}else await ey(d);G(o.errors,"root"),k(o.errors)?(N.state.next({errors:{}}),await e(s,r)):(t&&await t({...o.errors},r),eA(),setTimeout(eA)),N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:k(o.errors),submitCount:o.submitCount+1,errors:o.errors})},eE=(r,a={})=>{let s=r||h,i=p(s),n=r&&!k(r)?i:h;if(a.keepDefaultValues||(h=s),!a.keepValues){if(a.keepDirtyValues||L)for(let e of w.mount)v(o.dirtyFields,e)?A(n,e,v(b,e)):ex(e,v(n,e));else{if(f&&y(r))for(let e of w.mount){let t=v(d,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(z(e)){let t=e.closest("form");if(t){t.reset();break}}}}d={}}b=e.shouldUnregister?a.keepDefaultValues?p(h):{}:p(n),N.array.next({values:{...n}}),N.values.next({values:{...n}})}w={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},x.mount||t(),x.mount=!C.isValid||!!a.keepIsValid,x.watch=!!e.shouldUnregister,N.state.next({submitCount:a.keepSubmitCount?o.submitCount:0,isDirty:a.keepDirty?o.isDirty:!!(a.keepDefaultValues&&!X(r,h)),isSubmitted:!!a.keepIsSubmitted&&o.isSubmitted,dirtyFields:a.keepDirtyValues?o.dirtyFields:a.keepDefaultValues&&r?ei(h,r):{},touchedFields:a.keepTouched?o.touchedFields:{},errors:a.keepErrors?o.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},eV=(e,t)=>eE(R(e)?e(b):e,t);return{control:{register:eC,unregister:eO,getFieldState:eS,handleSubmit:eN,setError:eT,_executeSchema:es,_getWatch:eg,_getDirty:ev,_updateValid:B,_removeUnmounted:()=>{for(let e of w.unMount){let t=v(d,e);t&&(t._f.refs?t._f.refs.every(e=>!er(e)):!er(t._f.ref))&&eO(e)}w.unMount=new Set},_updateFieldArray:(e,t=[],r,a,s=!0,i=!0)=>{if(a&&r){if(x.action=!0,i&&Array.isArray(v(d,e))){let t=r(v(d,e),a.argA,a.argB);s&&A(d,e,t)}if(i&&Array.isArray(v(o.errors,e))){let t=r(v(o.errors,e),a.argA,a.argB);s&&A(o.errors,e,t),ef(o.errors,e)}if(C.touchedFields&&i&&Array.isArray(v(o.touchedFields,e))){let t=r(v(o.touchedFields,e),a.argA,a.argB);s&&A(o.touchedFields,e,t)}C.dirtyFields&&(o.dirtyFields=ei(h,b)),N.state.next({name:e,isDirty:ev(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else A(b,e,t)},_getFieldArray:t=>m(v(x.mount?b:h,t,e.shouldUnregister?v(h,t,[]):[])),_reset:eE,_resetDefaultValues:()=>R(a.defaultValues)&&a.defaultValues().then(e=>{eV(e,a.resetOptions),N.state.next({isLoading:!1})}),_updateFormState:e=>{o={...o,...e}},_subjects:N,_proxyFormState:C,get _fields(){return d},get _formValues(){return b},get _state(){return x},set _state(value){x=value},get _defaultValues(){return h},get _names(){return w},set _names(value){w=value},get _formState(){return o},set _formState(value){o=value},get _options(){return a},set _options(value){a={...a,...value}}},trigger:ew,register:eC,handleSubmit:eN,watch:(e,t)=>R(e)?N.values.subscribe({next:r=>e(eg(void 0,t),r)}):eg(e,t,!0),setValue:ex,getValues:eZ,reset:eV,resetField:(e,t={})=>{v(d,e)&&(y(t.defaultValue)?ex(e,v(h,e)):(ex(e,t.defaultValue),A(h,e,t.defaultValue)),t.keepTouched||G(o.touchedFields,e),t.keepDirty||(G(o.dirtyFields,e),o.isDirty=t.defaultValue?ev(e,v(h,e)):ev()),!t.keepError&&(G(o.errors,e),C.isValid&&B()),N.state.next({...o}))},clearErrors:e=>{e&&Z(e).forEach(e=>G(o.errors,e)),N.state.next({errors:e?o.errors:{}})},unregister:eO,setError:eT,setFocus:(e,t={})=>{let r=v(d,e),a=r&&r._f;if(a){let e=a.refs?a.refs[0]:a.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eS}}(e,()=>d(e=>({...e}))),formState:o});let h=t.current.control;return h._options=e,!function(e){let t=a.useRef(e);t.current=e,a.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}({subject:h._subjects.state,next:e=>{w(e,h._proxyFormState,h._updateFormState,!0)&&d({...h._formState})}}),a.useEffect(()=>{e.values&&!X(e.values,r.current)?(h._reset(e.values,h._options.resetOptions),r.current=e.values):h._resetDefaultValues()},[e.values,h]),a.useEffect(()=>{h._state.mount||(h._updateValid(),h._state.mount=!0),h._state.watch&&(h._state.watch=!1,h._subjects.state.next({...h._formState})),h._removeUnmounted()}),t.current.formState=x(o,h),t.current}},92391:function(e,t,r){r.d(t,{z:function(){return e5}}),(eQ=e1||(e1={})).assertEqual=e=>e,eQ.assertIs=function(e){},eQ.assertNever=function(e){throw Error()},eQ.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},eQ.getValidEnumValues=e=>{let t=eQ.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let a of t)r[a]=e[a];return eQ.objectValues(r)},eQ.objectValues=e=>eQ.objectKeys(e).map(function(t){return e[t]}),eQ.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},eQ.find=(e,t)=>{for(let r of e)if(t(r))return r},eQ.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,eQ.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},eQ.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(e2||(e2={})).mergeShapes=(e,t)=>({...e,...t});let a=e1.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),s=e=>{let t=typeof e;switch(t){case"undefined":return a.undefined;case"string":return a.string;case"number":return isNaN(e)?a.nan:a.number;case"boolean":return a.boolean;case"function":return a.function;case"bigint":return a.bigint;case"symbol":return a.symbol;case"object":if(Array.isArray(e))return a.array;if(null===e)return a.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return a.promise;if("undefined"!=typeof Map&&e instanceof Map)return a.map;if("undefined"!=typeof Set&&e instanceof Set)return a.set;if("undefined"!=typeof Date&&e instanceof Date)return a.date;return a.object;default:return a.unknown}},i=e1.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class n extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},a=e=>{for(let s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(a);else if("invalid_return_type"===s.code)a(s.returnTypeError);else if("invalid_arguments"===s.code)a(s.argumentsError);else if(0===s.path.length)r._errors.push(t(s));else{let e=r,a=0;for(;ae.message){let t={},r=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):r.push(e(a));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}n.create=e=>{let t=new n(e);return t};let o=(e,t)=>{let r;switch(e.code){case i.invalid_type:r=e.received===a.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case i.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,e1.jsonStringifyReplacer)}`;break;case i.unrecognized_keys:r=`Unrecognized key(s) in object: ${e1.joinValues(e.keys,", ")}`;break;case i.invalid_union:r="Invalid input";break;case i.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${e1.joinValues(e.options)}`;break;case i.invalid_enum_value:r=`Invalid enum value. Expected ${e1.joinValues(e.options)}, received '${e.received}'`;break;case i.invalid_arguments:r="Invalid function arguments";break;case i.invalid_return_type:r="Invalid function return type";break;case i.invalid_date:r="Invalid date";break;case i.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:e1.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case i.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case i.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case i.custom:r="Invalid input";break;case i.invalid_intersection_types:r="Intersection results could not be merged";break;case i.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case i.not_finite:r="Number must be finite";break;default:r=t.defaultError,e1.assertNever(e)}return{message:r}},l=o,u=e=>{let{data:t,path:r,errorMaps:a,issueData:s}=e,i=[...r,...s.path||[]],n={...s,path:i},o="",l=a.filter(e=>!!e).slice().reverse();for(let e of l)o=e(n,{data:t,defaultError:o}).message;return{...s,path:i,message:s.message||o}};function d(e,t){let r=u({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,l,o].filter(e=>!!e)});e.common.issues.push(r)}class c{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let a of t){if("aborted"===a.status)return h;"dirty"===a.status&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t)r.push({key:await e.key,value:await e.value});return c.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let a of t){let{key:t,value:s}=a;if("aborted"===t.status||"aborted"===s.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===s.status&&e.dirty(),(void 0!==s.value||a.alwaysSet)&&(r[t.value]=s.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),f=e=>({status:"dirty",value:e}),p=e=>({status:"valid",value:e}),m=e=>"aborted"===e.status,y=e=>"dirty"===e.status,v=e=>"valid"===e.status,g=e=>"undefined"!=typeof Promise&&e instanceof Promise;(eX=e9||(e9={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},eX.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class _{constructor(e,t,r,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let b=(e,t)=>{if(v(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new n(e.common.issues);return this._error=t,this._error}}};function x(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:a,description:s}=e;if(t&&(r||a))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=a?a:t.defaultError}:{message:null!=r?r:t.defaultError},description:s}}class k{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return s(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new c,ctx:{common:e.parent.common,data:e.data,parsedType:s(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(g(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let a={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},i=this._parseSync({data:e,path:a.path,parent:a});return b(a,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:s(e)},a=this._parse({data:e,path:r.path,parent:r}),i=await (g(a)?a:Promise.resolve(a));return b(r,i)}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,a)=>{let s=e(t),n=()=>a.addIssue({code:i.custom,...r(t)});return"undefined"!=typeof Promise&&s instanceof Promise?s.then(e=>!!e||(n(),!1)):!!s||(n(),!1)})}refinement(e,t){return this._refinement((r,a)=>!!e(r)||(a.addIssue("function"==typeof t?t(r,a):t),!1))}_refinement(e){return new eo({schema:this,typeName:e4.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return el.create(this,this._def)}nullable(){return eu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return B.create(this,this._def)}promise(){return en.create(this,this._def)}or(e){return W.create([this,e],this._def)}and(e){return J.create(this,e,this._def)}transform(e){return new eo({...x(this._def),schema:this,typeName:e4.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ed({...x(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:e4.ZodDefault})}brand(){return new ep({typeName:e4.ZodBranded,type:this,...x(this._def)})}catch(e){return new ec({...x(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:e4.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return em.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let w=/^c[^\s-]{8,}$/i,Z=/^[a-z][a-z0-9]*$/,S=/[0-9A-HJKMNP-TV-Z]{26}/,T=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,O=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,C=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,A=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,N=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,E=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class V extends k{constructor(){super(...arguments),this._regex=(e,t,r)=>this.refinement(t=>e.test(t),{validation:t,code:i.invalid_string,...e9.errToObj(r)}),this.nonempty=e=>this.min(1,e9.errToObj(e)),this.trim=()=>new V({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new V({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new V({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){let t;this._def.coerce&&(e.data=String(e.data));let r=this._getType(e);if(r!==a.string){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.string,received:t.parsedType}),h}let s=new c;for(let r of this._def.checks)if("min"===r.kind)e.data.lengthr.value&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),s.dirty());else if("length"===r.kind){let a=e.data.length>r.value,n=e.data.length"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new V({checks:[],typeName:e4.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class I extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;this._def.coerce&&(e.data=Number(e.data));let r=this._getType(e);if(r!==a.number){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.number,received:t.parsedType}),h}let s=new c;for(let r of this._def.checks)if("int"===r.kind)e1.isInteger(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:i.invalid_type,expected:"integer",received:"float",message:r.message}),s.dirty());else if("min"===r.kind){let a=r.inclusive?e.datar.value:e.data>=r.value;a&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty())}else"multipleOf"===r.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,s=r>a?r:a,i=parseInt(e.toFixed(s).replace(".","")),n=parseInt(t.toFixed(s).replace(".",""));return i%n/Math.pow(10,s)}(e.data,r.value)&&(d(t=this._getOrReturnCtx(e,t),{code:i.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(d(t=this._getOrReturnCtx(e,t),{code:i.not_finite,message:r.message}),s.dirty()):e1.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e9.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e9.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e9.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e9.toString(t))}setLimit(e,t,r,a){return new I({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:e9.toString(a)}]})}_addCheck(e){return new I({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:e9.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:e9.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:e9.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:e9.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:e9.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e9.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:e9.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:e9.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:e9.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value"int"===e.kind||"multipleOf"===e.kind&&e1.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.valuenew I({checks:[],typeName:e4.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class j extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;this._def.coerce&&(e.data=BigInt(e.data));let r=this._getType(e);if(r!==a.bigint){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.bigint,received:t.parsedType}),h}let s=new c;for(let r of this._def.checks)if("min"===r.kind){let a=r.inclusive?e.datar.value:e.data>=r.value;a&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty())}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(d(t=this._getOrReturnCtx(e,t),{code:i.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):e1.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,e9.toString(t))}gt(e,t){return this.setLimit("min",e,!1,e9.toString(t))}lte(e,t){return this.setLimit("max",e,!0,e9.toString(t))}lt(e,t){return this.setLimit("max",e,!1,e9.toString(t))}setLimit(e,t,r,a){return new j({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:e9.toString(a)}]})}_addCheck(e){return new j({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:e9.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:e9.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:e9.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:e9.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:e9.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value{var t;return new j({checks:[],typeName:e4.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...x(e)})};class P extends k{_parse(e){this._def.coerce&&(e.data=!!e.data);let t=this._getType(e);if(t!==a.boolean){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.boolean,received:t.parsedType}),h}return p(e.data)}}P.create=e=>new P({typeName:e4.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...x(e)});class D extends k{_parse(e){let t;this._def.coerce&&(e.data=new Date(e.data));let r=this._getType(e);if(r!==a.date){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.date,received:t.parsedType}),h}if(isNaN(e.data.getTime())){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_date}),h}let s=new c;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()r.value&&(d(t=this._getOrReturnCtx(e,t),{code:i.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),s.dirty()):e1.assertNever(r);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:e9.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:e9.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.valuenew D({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:e4.ZodDate,...x(e)});class R extends k{_parse(e){let t=this._getType(e);if(t!==a.symbol){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.symbol,received:t.parsedType}),h}return p(e.data)}}R.create=e=>new R({typeName:e4.ZodSymbol,...x(e)});class z extends k{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.undefined,received:t.parsedType}),h}return p(e.data)}}z.create=e=>new z({typeName:e4.ZodUndefined,...x(e)});class L extends k{_parse(e){let t=this._getType(e);if(t!==a.null){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.null,received:t.parsedType}),h}return p(e.data)}}L.create=e=>new L({typeName:e4.ZodNull,...x(e)});class F extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return p(e.data)}}F.create=e=>new F({typeName:e4.ZodAny,...x(e)});class M extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return p(e.data)}}M.create=e=>new M({typeName:e4.ZodUnknown,...x(e)});class $ extends k{_parse(e){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.never,received:t.parsedType}),h}}$.create=e=>new $({typeName:e4.ZodNever,...x(e)});class U extends k{_parse(e){let t=this._getType(e);if(t!==a.undefined){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.void,received:t.parsedType}),h}return p(e.data)}}U.create=e=>new U({typeName:e4.ZodVoid,...x(e)});class B extends k{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),s=this._def;if(t.parsedType!==a.array)return d(t,{code:i.invalid_type,expected:a.array,received:t.parsedType}),h;if(null!==s.exactLength){let e=t.data.length>s.exactLength.value,a=t.data.lengths.maxLength.value&&(d(t,{code:i.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>s.type._parseAsync(new _(t,e,t.path,r)))).then(e=>c.mergeArray(r,e));let n=[...t.data].map((e,r)=>s.type._parseSync(new _(t,e,t.path,r)));return c.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new B({...this._def,minLength:{value:e,message:e9.toString(t)}})}max(e,t){return new B({...this._def,maxLength:{value:e,message:e9.toString(t)}})}length(e,t){return new B({...this._def,exactLength:{value:e,message:e9.toString(t)}})}nonempty(e){return this.min(1,e)}}B.create=(e,t)=>new B({type:e,minLength:null,maxLength:null,exactLength:null,typeName:e4.ZodArray,...x(t)});class K extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=e1.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==a.object){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),h}let{status:r,ctx:s}=this._processInputParams(e),{shape:n,keys:o}=this._getCached(),l=[];if(!(this._def.catchall instanceof $&&"strip"===this._def.unknownKeys))for(let e in s.data)o.includes(e)||l.push(e);let u=[];for(let e of o){let t=n[e],r=s.data[e];u.push({key:{status:"valid",value:e},value:t._parse(new _(s,r,s.path,e)),alwaysSet:e in s.data})}if(this._def.catchall instanceof $){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of l)u.push({key:{status:"valid",value:e},value:{status:"valid",value:s.data[e]}});else if("strict"===e)l.length>0&&(d(s,{code:i.unrecognized_keys,keys:l}),r.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of l){let r=s.data[t];u.push({key:{status:"valid",value:t},value:e._parse(new _(s,r,s.path,t)),alwaysSet:t in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of u){let r=await t.key;e.push({key:r,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>c.mergeObjectSync(r,e)):c.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(e){return e9.errToObj,new K({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var a,s,i,n;let o=null!==(i=null===(s=(a=this._def).errorMap)||void 0===s?void 0:s.call(a,t,r).message)&&void 0!==i?i:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(n=e9.errToObj(e).message)&&void 0!==n?n:o}:{message:o}}}:{}})}strip(){return new K({...this._def,unknownKeys:"strip"})}passthrough(){return new K({...this._def,unknownKeys:"passthrough"})}extend(e){return new K({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new K({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:e4.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new K({...this._def,catchall:e})}pick(e){let t={};return e1.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new K({...this._def,shape:()=>t})}omit(e){let t={};return e1.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new K({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof K){let r={};for(let a in t.shape){let s=t.shape[a];r[a]=el.create(e(s))}return new K({...t._def,shape:()=>r})}return t instanceof B?new B({...t._def,type:e(t.element)}):t instanceof el?el.create(e(t.unwrap())):t instanceof eu?eu.create(e(t.unwrap())):t instanceof G?G.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return e1.objectKeys(this.shape).forEach(r=>{let a=this.shape[r];e&&!e[r]?t[r]=a:t[r]=a.optional()}),new K({...this._def,shape:()=>t})}required(e){let t={};return e1.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r],a=e;for(;a instanceof el;)a=a._def.innerType;t[r]=a}}),new K({...this._def,shape:()=>t})}keyof(){return ea(e1.objectKeys(this.shape))}}K.create=(e,t)=>new K({shape:()=>e,unknownKeys:"strip",catchall:$.create(),typeName:e4.ZodObject,...x(t)}),K.strictCreate=(e,t)=>new K({shape:()=>e,unknownKeys:"strict",catchall:$.create(),typeName:e4.ZodObject,...x(t)}),K.lazycreate=(e,t)=>new K({shape:e,unknownKeys:"strip",catchall:$.create(),typeName:e4.ZodObject,...x(t)});class W extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new n(e.ctx.common.issues));return d(t,{code:i.invalid_union,unionErrors:r}),h});{let e;let a=[];for(let s of r){let r={...t,common:{...t.common,issues:[]},parent:null},i=s._parseSync({data:t.data,path:t.path,parent:r});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:r}),r.common.issues.length&&a.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let s=a.map(e=>new n(e));return d(t,{code:i.invalid_union,unionErrors:s}),h}}get options(){return this._def.options}}W.create=(e,t)=>new W({options:e,typeName:e4.ZodUnion,...x(t)});let q=e=>{if(e instanceof et)return q(e.schema);if(e instanceof eo)return q(e.innerType());if(e instanceof er)return[e.value];if(e instanceof es)return e.options;if(e instanceof ei)return Object.keys(e.enum);if(e instanceof ed)return q(e._def.innerType);if(e instanceof z)return[void 0];else if(e instanceof L)return[null];else return null};class H extends k{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.object)return d(t,{code:i.invalid_type,expected:a.object,received:t.parsedType}),h;let r=this.discriminator,s=t.data[r],n=this.optionsMap.get(s);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(d(t,{code:i.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let a=new Map;for(let r of t){let t=q(r.shape[e]);if(!t)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of t){if(a.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);a.set(s,r)}}return new H({typeName:e4.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...x(r)})}}class J extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(m(e)||m(n))return h;let o=function e(t,r){let i=s(t),n=s(r);if(t===r)return{valid:!0,data:t};if(i===a.object&&n===a.object){let a=e1.objectKeys(r),s=e1.objectKeys(t).filter(e=>-1!==a.indexOf(e)),i={...t,...r};for(let a of s){let s=e(t[a],r[a]);if(!s.valid)return{valid:!1};i[a]=s.data}return{valid:!0,data:i}}if(i===a.array&&n===a.array){if(t.length!==r.length)return{valid:!1};let a=[];for(let s=0;sn(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}J.create=(e,t,r)=>new J({left:e,right:t,typeName:e4.ZodIntersection,...x(r)});class G extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.array)return d(r,{code:i.invalid_type,expected:a.array,received:r.parsedType}),h;if(r.data.lengththis._def.items.length&&(d(r,{code:i.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let a=this._def.items[t]||this._def.rest;return a?a._parse(new _(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>c.mergeArray(t,e)):c.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new G({...this._def,rest:e})}}G.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new G({items:e,typeName:e4.ZodTuple,rest:null,...x(t)})};class Y extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.object)return d(r,{code:i.invalid_type,expected:a.object,received:r.parsedType}),h;let s=[],n=this._def.keyType,o=this._def.valueType;for(let e in r.data)s.push({key:n._parse(new _(r,e,r.path,e)),value:o._parse(new _(r,r.data[e],r.path,e))});return r.common.async?c.mergeObjectAsync(t,s):c.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,r){return new Y(t instanceof k?{keyType:e,valueType:t,typeName:e4.ZodRecord,...x(r)}:{keyType:V.create(),valueType:e,typeName:e4.ZodRecord,...x(t)})}}class Q extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.map)return d(r,{code:i.invalid_type,expected:a.map,received:r.parsedType}),h;let s=this._def.keyType,n=this._def.valueType,o=[...r.data.entries()].map(([e,t],a)=>({key:s._parse(new _(r,e,r.path,[a,"key"])),value:n._parse(new _(r,t,r.path,[a,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let a=await r.key,s=await r.value;if("aborted"===a.status||"aborted"===s.status)return h;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let a=r.key,s=r.value;if("aborted"===a.status||"aborted"===s.status)return h;("dirty"===a.status||"dirty"===s.status)&&t.dirty(),e.set(a.value,s.value)}return{status:t.value,value:e}}}}Q.create=(e,t,r)=>new Q({valueType:t,keyType:e,typeName:e4.ZodMap,...x(r)});class X extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==a.set)return d(r,{code:i.invalid_type,expected:a.set,received:r.parsedType}),h;let s=this._def;null!==s.minSize&&r.data.sizes.maxSize.value&&(d(r,{code:i.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());let n=this._def.valueType;function o(e){let r=new Set;for(let a of e){if("aborted"===a.status)return h;"dirty"===a.status&&t.dirty(),r.add(a.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>n._parse(new _(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new X({...this._def,minSize:{value:e,message:e9.toString(t)}})}max(e,t){return new X({...this._def,maxSize:{value:e,message:e9.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}X.create=(e,t)=>new X({valueType:e,minSize:null,maxSize:null,typeName:e4.ZodSet,...x(t)});class ee extends k{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.function)return d(t,{code:i.invalid_type,expected:a.function,received:t.parsedType}),h;function r(e,r){return u({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,o].filter(e=>!!e),issueData:{code:i.invalid_arguments,argumentsError:r}})}function s(e,r){return u({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,l,o].filter(e=>!!e),issueData:{code:i.invalid_return_type,returnTypeError:r}})}let c={errorMap:t.common.contextualErrorMap},f=t.data;return this._def.returns instanceof en?p(async(...e)=>{let t=new n([]),a=await this._def.args.parseAsync(e,c).catch(a=>{throw t.addIssue(r(e,a)),t}),i=await f(...a),o=await this._def.returns._def.type.parseAsync(i,c).catch(e=>{throw t.addIssue(s(i,e)),t});return o}):p((...e)=>{let t=this._def.args.safeParse(e,c);if(!t.success)throw new n([r(e,t.error)]);let a=f(...t.data),i=this._def.returns.safeParse(a,c);if(!i.success)throw new n([s(a,i.error)]);return i.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ee({...this._def,args:G.create(e).rest(M.create())})}returns(e){return new ee({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,r){return new ee({args:e||G.create([]).rest(M.create()),returns:t||M.create(),typeName:e4.ZodFunction,...x(r)})}}class et extends k{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.getter();return r._parse({data:t.data,path:t.path,parent:t})}}et.create=(e,t)=>new et({getter:e,typeName:e4.ZodLazy,...x(t)});class er extends k{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return d(t,{received:t.data,code:i.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ea(e,t){return new es({values:e,typeName:e4.ZodEnum,...x(t)})}er.create=(e,t)=>new er({value:e,typeName:e4.ZodLiteral,...x(t)});class es extends k{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{expected:e1.joinValues(r),received:t.parsedType,code:i.invalid_type}),h}if(-1===this._def.values.indexOf(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return d(t,{received:t.data,code:i.invalid_enum_value,options:r}),h}return p(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return es.create(e)}exclude(e){return es.create(this.options.filter(t=>!e.includes(t)))}}es.create=ea;class ei extends k{_parse(e){let t=e1.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==a.string&&r.parsedType!==a.number){let e=e1.objectValues(t);return d(r,{expected:e1.joinValues(e),received:r.parsedType,code:i.invalid_type}),h}if(-1===t.indexOf(e.data)){let e=e1.objectValues(t);return d(r,{received:r.data,code:i.invalid_enum_value,options:e}),h}return p(e.data)}get enum(){return this._def.values}}ei.create=(e,t)=>new ei({values:e,typeName:e4.ZodNativeEnum,...x(t)});class en extends k{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.promise&&!1===t.common.async)return d(t,{code:i.invalid_type,expected:a.promise,received:t.parsedType}),h;let r=t.parsedType===a.promise?t.data:Promise.resolve(t.data);return p(r.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}en.create=(e,t)=>new en({type:e,typeName:e4.ZodPromise,...x(t)});class eo extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===e4.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),a=this._def.effect||null;if("preprocess"===a.type){let e=a.transform(r.data);return r.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:r.path,parent:r})):this._def.schema._parseSync({data:e,path:r.path,parent:r})}let s={addIssue:e=>{d(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),"refinement"===a.type){let e=e=>{let t=a.refinement(e,s);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===a.status?h:("dirty"===a.status&&t.dirty(),e(a.value),{status:t.value,value:a.value})}}if("transform"===a.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>v(e)?Promise.resolve(a.transform(e.value,s)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!v(e))return e;let i=a.transform(e.value,s);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}}e1.assertNever(a)}}eo.create=(e,t,r)=>new eo({schema:e,typeName:e4.ZodEffects,effect:t,...x(r)}),eo.createWithPreprocess=(e,t,r)=>new eo({schema:t,effect:{type:"preprocess",transform:e},typeName:e4.ZodEffects,...x(r)});class el extends k{_parse(e){let t=this._getType(e);return t===a.undefined?p(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}el.create=(e,t)=>new el({innerType:e,typeName:e4.ZodOptional,...x(t)});class eu extends k{_parse(e){let t=this._getType(e);return t===a.null?p(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eu.create=(e,t)=>new eu({innerType:e,typeName:e4.ZodNullable,...x(t)});class ed extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===a.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ed.create=(e,t)=>new ed({innerType:e,typeName:e4.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...x(t)});class ec extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return g(a)?a.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new n(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===a.status?a.value:this._def.catchValue({get error(){return new n(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:e4.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...x(t)});class eh extends k{_parse(e){let t=this._getType(e);if(t!==a.nan){let t=this._getOrReturnCtx(e);return d(t,{code:i.invalid_type,expected:a.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}eh.create=e=>new eh({typeName:e4.ZodNaN,...x(e)});let ef=Symbol("zod_brand");class ep extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class em extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async){let e=async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),f(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})};return e()}{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new em({in:e,out:t,typeName:e4.ZodPipeline})}}let ey=(e,t={},r)=>e?F.create().superRefine((a,s)=>{var i,n;if(!e(a)){let e="function"==typeof t?t(a):"string"==typeof t?{message:t}:t,o=null===(n=null!==(i=e.fatal)&&void 0!==i?i:r)||void 0===n||n,l="string"==typeof e?{message:e}:e;s.addIssue({code:"custom",...l,fatal:o})}}):F.create(),ev={object:K.lazycreate};(e0=e4||(e4={})).ZodString="ZodString",e0.ZodNumber="ZodNumber",e0.ZodNaN="ZodNaN",e0.ZodBigInt="ZodBigInt",e0.ZodBoolean="ZodBoolean",e0.ZodDate="ZodDate",e0.ZodSymbol="ZodSymbol",e0.ZodUndefined="ZodUndefined",e0.ZodNull="ZodNull",e0.ZodAny="ZodAny",e0.ZodUnknown="ZodUnknown",e0.ZodNever="ZodNever",e0.ZodVoid="ZodVoid",e0.ZodArray="ZodArray",e0.ZodObject="ZodObject",e0.ZodUnion="ZodUnion",e0.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e0.ZodIntersection="ZodIntersection",e0.ZodTuple="ZodTuple",e0.ZodRecord="ZodRecord",e0.ZodMap="ZodMap",e0.ZodSet="ZodSet",e0.ZodFunction="ZodFunction",e0.ZodLazy="ZodLazy",e0.ZodLiteral="ZodLiteral",e0.ZodEnum="ZodEnum",e0.ZodEffects="ZodEffects",e0.ZodNativeEnum="ZodNativeEnum",e0.ZodOptional="ZodOptional",e0.ZodNullable="ZodNullable",e0.ZodDefault="ZodDefault",e0.ZodCatch="ZodCatch",e0.ZodPromise="ZodPromise",e0.ZodBranded="ZodBranded",e0.ZodPipeline="ZodPipeline";let eg=V.create,e_=I.create,eb=eh.create,ex=j.create,ek=P.create,ew=D.create,eZ=R.create,eS=z.create,eT=L.create,eO=F.create,eC=M.create,eA=$.create,eN=U.create,eE=B.create,eV=K.create,eI=K.strictCreate,ej=W.create,eP=H.create,eD=J.create,eR=G.create,ez=Y.create,eL=Q.create,eF=X.create,eM=ee.create,e$=et.create,eU=er.create,eB=es.create,eK=ei.create,eW=en.create,eq=eo.create,eH=el.create,eJ=eu.create,eG=eo.createWithPreprocess,eY=em.create;var eQ,eX,e0,e1,e2,e9,e4,e5=Object.freeze({__proto__:null,defaultErrorMap:o,setErrorMap:function(e){l=e},getErrorMap:function(){return l},makeIssue:u,EMPTY_PATH:[],addIssueToContext:d,ParseStatus:c,INVALID:h,DIRTY:f,OK:p,isAborted:m,isDirty:y,isValid:v,isAsync:g,get util(){return e1},get objectUtil(){return e2},ZodParsedType:a,getParsedType:s,ZodType:k,ZodString:V,ZodNumber:I,ZodBigInt:j,ZodBoolean:P,ZodDate:D,ZodSymbol:R,ZodUndefined:z,ZodNull:L,ZodAny:F,ZodUnknown:M,ZodNever:$,ZodVoid:U,ZodArray:B,ZodObject:K,ZodUnion:W,ZodDiscriminatedUnion:H,ZodIntersection:J,ZodTuple:G,ZodRecord:Y,ZodMap:Q,ZodSet:X,ZodFunction:ee,ZodLazy:et,ZodLiteral:er,ZodEnum:es,ZodNativeEnum:ei,ZodPromise:en,ZodEffects:eo,ZodTransformer:eo,ZodOptional:el,ZodNullable:eu,ZodDefault:ed,ZodCatch:ec,ZodNaN:eh,BRAND:ef,ZodBranded:ep,ZodPipeline:em,custom:ey,Schema:k,ZodSchema:k,late:ev,get ZodFirstPartyTypeKind(){return e4},coerce:{string:e=>V.create({...e,coerce:!0}),number:e=>I.create({...e,coerce:!0}),boolean:e=>P.create({...e,coerce:!0}),bigint:e=>j.create({...e,coerce:!0}),date:e=>D.create({...e,coerce:!0})},any:eO,array:eE,bigint:ex,boolean:ek,date:ew,discriminatedUnion:eP,effect:eq,enum:eB,function:eM,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>ey(t=>t instanceof e,t),intersection:eD,lazy:e$,literal:eU,map:eL,nan:eb,nativeEnum:eK,never:eA,null:eT,nullable:eJ,number:e_,object:eV,oboolean:()=>ek().optional(),onumber:()=>e_().optional(),optional:eH,ostring:()=>eg().optional(),pipeline:eY,preprocess:eG,promise:eW,record:ez,set:eF,strictObject:eI,string:eg,symbol:eZ,transformer:eq,tuple:eR,undefined:eS,union:ej,unknown:eC,void:eN,NEVER:h,ZodIssueCode:i,quotelessJson:e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")},ZodError:n})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/5230-6a3546b60a6e7021.js b/pilot/server/static/_next/static/chunks/5230-6a3546b60a6e7021.js new file mode 100644 index 000000000..9a65e0d35 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/5230-6a3546b60a6e7021.js @@ -0,0 +1,4 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5230],{73811:function(r,e,t){"use strict";t.d(e,{Z:function(){return l}});var n=t(40431),o=t(86006),i=t(21454),a=t(99179),s=t(50487);function l(r={}){let{disabled:e=!1,focusableWhenDisabled:t,href:l,rootRef:c,tabIndex:u,to:d,type:f}=r,g=o.useRef(),[p,v]=o.useState(!1),{isFocusVisibleRef:m,onFocus:h,onBlur:b,ref:Z}=(0,i.Z)(),[y,k]=o.useState(!1);e&&!t&&y&&k(!1),o.useEffect(()=>{m.current=y},[y,m]);let[x,C]=o.useState(""),z=r=>e=>{var t;y&&e.preventDefault(),null==(t=r.onMouseLeave)||t.call(r,e)},S=r=>e=>{var t;b(e),!1===m.current&&k(!1),null==(t=r.onBlur)||t.call(r,e)},P=r=>e=>{var t,n;g.current||(g.current=e.currentTarget),h(e),!0===m.current&&(k(!0),null==(n=r.onFocusVisible)||n.call(r,e)),null==(t=r.onFocus)||t.call(r,e)},T=()=>{let r=g.current;return"BUTTON"===x||"INPUT"===x&&["button","submit","reset"].includes(null==r?void 0:r.type)||"A"===x&&(null==r?void 0:r.href)},$=r=>t=>{if(!e){var n;null==(n=r.onClick)||n.call(r,t)}},I=r=>t=>{var n;e||(v(!0),document.addEventListener("mouseup",()=>{v(!1)},{once:!0})),null==(n=r.onMouseDown)||n.call(r,t)},w=r=>t=>{var n,o;null==(n=r.onKeyDown)||n.call(r,t),!t.defaultMuiPrevented&&(t.target!==t.currentTarget||T()||" "!==t.key||t.preventDefault(),t.target!==t.currentTarget||" "!==t.key||e||v(!0),t.target!==t.currentTarget||T()||"Enter"!==t.key||e||(null==(o=r.onClick)||o.call(r,t),t.preventDefault()))},_=r=>t=>{var n,o;t.target===t.currentTarget&&v(!1),null==(n=r.onKeyUp)||n.call(r,t),t.target!==t.currentTarget||T()||e||" "!==t.key||t.defaultMuiPrevented||null==(o=r.onClick)||o.call(r,t)},A=o.useCallback(r=>{var e;C(null!=(e=null==r?void 0:r.tagName)?e:"")},[]),B=(0,a.Z)(A,c,Z,g),R={};return"BUTTON"===x?(R.type=null!=f?f:"button",t?R["aria-disabled"]=e:R.disabled=e):""!==x&&(l||d||(R.role="button",R.tabIndex=null!=u?u:0),e&&(R["aria-disabled"]=e,R.tabIndex=t?null!=u?u:0:-1)),{getRootProps:(e={})=>{let t=(0,s.Z)(r),o=(0,n.Z)({},t,e);return delete o.onFocusVisible,(0,n.Z)({type:f},o,R,{onBlur:S(o),onClick:$(o),onFocus:P(o),onKeyDown:w(o),onKeyUp:_(o),onMouseDown:I(o),onMouseLeave:z(o),ref:B})},focusVisible:y,setFocusVisible:k,active:p,rootRef:B}}},76906:function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.createSvgIcon}});var n=t(16806)},53113:function(r,e,t){"use strict";var n=t(46750),o=t(40431),i=t(86006),a=t(73811),s=t(47562),l=t(53832),c=t(99179),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(94244),v=t(77614),m=t(42858),h=t(9268);let b=["children","action","color","variant","size","fullWidth","startDecorator","endDecorator","loading","loadingPosition","loadingIndicator","disabled","component","slots","slotProps"],Z=r=>{let{color:e,disabled:t,focusVisible:n,focusVisibleClassName:o,fullWidth:i,size:a,variant:c,loading:u}=r,d={root:["root",t&&"disabled",n&&"focusVisible",i&&"fullWidth",c&&`variant${(0,l.Z)(c)}`,e&&`color${(0,l.Z)(e)}`,a&&`size${(0,l.Z)(a)}`,u&&"loading"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],loadingIndicatorCenter:["loadingIndicatorCenter"]},f=(0,s.Z)(d,v.F,{});return n&&o&&(f.root+=` ${o}`),f},y=(0,u.Z)("span",{name:"JoyButton",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({"--Icon-margin":"0 0 0 calc(var(--Button-gap) / -2)","--CircularProgress-margin":"0 0 0 calc(var(--Button-gap) / -2)",display:"inherit",marginRight:"var(--Button-gap)"}),k=(0,u.Z)("span",{name:"JoyButton",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({"--Icon-margin":"0 calc(var(--Button-gap) / -2) 0 0","--CircularProgress-margin":"0 calc(var(--Button-gap) / -2) 0 0",display:"inherit",marginLeft:"var(--Button-gap)"}),x=(0,u.Z)("span",{name:"JoyButton",slot:"LoadingCenter",overridesResolver:(r,e)=>e.loadingIndicatorCenter})(({theme:r,ownerState:e})=>{var t,n;return(0,o.Z)({display:"inherit",position:"absolute",left:"50%",transform:"translateX(-50%)",color:null==(t=r.variants[e.variant])||null==(t=t[e.color])?void 0:t.color},e.disabled&&{color:null==(n=r.variants[`${e.variant}Disabled`])||null==(n=n[e.color])?void 0:n.color})}),C=(0,u.Z)("button",{name:"JoyButton",slot:"Root",overridesResolver:(r,e)=>e.root})(({theme:r,ownerState:e})=>{var t,n,i,a;return[(0,o.Z)({"--Icon-margin":"initial"},"sm"===e.size&&{"--Icon-fontSize":"1.25rem","--CircularProgress-size":"20px","--Button-gap":"0.375rem",minHeight:"var(--Button-minHeight, 2rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"2px",paddingInline:"0.75rem"},"md"===e.size&&{"--Icon-fontSize":"1.5rem","--CircularProgress-size":"24px","--Button-gap":"0.5rem",minHeight:"var(--Button-minHeight, 2.5rem)",fontSize:r.vars.fontSize.sm,paddingBlock:"0.25rem",paddingInline:"1rem"},"lg"===e.size&&{"--Icon-fontSize":"1.75rem","--CircularProgress-size":"28px","--Button-gap":"0.75rem",minHeight:"var(--Button-minHeight, 3rem)",fontSize:r.vars.fontSize.md,paddingBlock:"0.375rem",paddingInline:"1.5rem"},{WebkitTapHighlightColor:"transparent",borderRadius:`var(--Button-radius, ${r.vars.radius.sm})`,margin:"var(--Button-margin)",border:"none",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",textDecoration:"none",fontFamily:r.vars.fontFamily.body,fontWeight:r.vars.fontWeight.lg,lineHeight:1},e.fullWidth&&{width:"100%"},{[r.focus.selector]:r.focus.default}),null==(t=r.variants[e.variant])?void 0:t[e.color],{"&:hover":{"@media (hover: hover)":null==(n=r.variants[`${e.variant}Hover`])?void 0:n[e.color]}},{"&:active":null==(i=r.variants[`${e.variant}Active`])?void 0:i[e.color]},(0,o.Z)({[`&.${v.Z.disabled}`]:null==(a=r.variants[`${e.variant}Disabled`])?void 0:a[e.color]},"center"===e.loadingPosition&&{[`&.${v.Z.loading}`]:{color:"transparent"}})]}),z=i.forwardRef(function(r,e){var t;let s=(0,d.Z)({props:r,name:"JoyButton"}),{children:l,action:u,color:v="primary",variant:z="solid",size:S="md",fullWidth:P=!1,startDecorator:T,endDecorator:$,loading:I=!1,loadingPosition:w="center",loadingIndicator:_,disabled:A,component:B,slots:R={},slotProps:D={}}=s,M=(0,n.Z)(s,b),N=i.useContext(m.Z),O=r.variant||N.variant||z,W=r.size||N.size||S,{getColor:F}=(0,f.VT)(O),j=F(r.color,N.color||v),E=null!=(t=r.disabled)?t:N.disabled||A||I,H=i.useRef(null),V=(0,c.Z)(H,e),{focusVisible:J,setFocusVisible:L,getRootProps:U}=(0,a.Z)((0,o.Z)({},s,{disabled:E,rootRef:V})),K=null!=_?_:(0,h.jsx)(p.Z,(0,o.Z)({},"context"!==j&&{color:j},{thickness:{sm:2,md:3,lg:4}[W]||3}));i.useImperativeHandle(u,()=>({focusVisible:()=>{var r;L(!0),null==(r=H.current)||r.focus()}}),[L]);let q=(0,o.Z)({},s,{color:j,fullWidth:P,variant:O,size:W,focusVisible:J,loading:I,loadingPosition:w,disabled:E}),G=Z(q),X=(0,o.Z)({},M,{component:B,slots:R,slotProps:D}),[Q,Y]=(0,g.Z)("root",{ref:e,className:G.root,elementType:C,externalForwardedProps:X,getSlotProps:U,ownerState:q}),[rr,re]=(0,g.Z)("startDecorator",{className:G.startDecorator,elementType:y,externalForwardedProps:X,ownerState:q}),[rt,rn]=(0,g.Z)("endDecorator",{className:G.endDecorator,elementType:k,externalForwardedProps:X,ownerState:q}),[ro,ri]=(0,g.Z)("loadingIndicatorCenter",{className:G.loadingIndicatorCenter,elementType:x,externalForwardedProps:X,ownerState:q});return(0,h.jsxs)(Q,(0,o.Z)({},Y,{children:[(T||I&&"start"===w)&&(0,h.jsx)(rr,(0,o.Z)({},re,{children:I&&"start"===w?K:T})),l,I&&"center"===w&&(0,h.jsx)(ro,(0,o.Z)({},ri,{children:K})),($||I&&"end"===w)&&(0,h.jsx)(rt,(0,o.Z)({},rn,{children:I&&"end"===w?K:$}))]}))});z.muiName="Button",e.Z=z},77614:function(r,e,t){"use strict";t.d(e,{F:function(){return o}});var n=t(18587);function o(r){return(0,n.d6)("MuiButton",r)}let i=(0,n.sI)("MuiButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg","fullWidth","startDecorator","endDecorator","loading","loadingIndicatorCenter"]);e.Z=i},42858:function(r,e,t){"use strict";var n=t(86006);let o=n.createContext({});e.Z=o},94244:function(r,e,t){"use strict";t.d(e,{Z:function(){return $}});var n=t(40431),o=t(46750),i=t(86006),a=t(89791),s=t(53832),l=t(47562),c=t(72120),u=t(50645),d=t(88930),f=t(47093),g=t(326),p=t(18587);function v(r){return(0,p.d6)("MuiCircularProgress",r)}(0,p.sI)("MuiCircularProgress",["root","determinate","svg","track","progress","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var m=t(9268);let h=r=>r,b,Z=["color","backgroundColor"],y=["children","className","color","size","variant","thickness","determinate","value","component","slots","slotProps"],k=(0,c.F4)({"0%":{transform:"rotate(-90deg)"},"100%":{transform:"rotate(270deg)"}}),x=r=>{let{determinate:e,color:t,variant:n,size:o}=r,i={root:["root",e&&"determinate",t&&`color${(0,s.Z)(t)}`,n&&`variant${(0,s.Z)(n)}`,o&&`size${(0,s.Z)(o)}`],svg:["svg"],track:["track"],progress:["progress"]};return(0,l.Z)(i,v,{})},C=(0,u.Z)("span",{name:"JoyCircularProgress",slot:"Root",overridesResolver:(r,e)=>e.root})(({ownerState:r,theme:e})=>{var t;let i=(null==(t=e.variants[r.variant])?void 0:t[r.color])||{},{color:a,backgroundColor:s}=i,l=(0,o.Z)(i,Z);return(0,n.Z)({"--Icon-fontSize":"calc(0.4 * var(--_root-size))","--CircularProgress-trackColor":s,"--CircularProgress-progressColor":a,"--CircularProgress-percent":r.value,"--CircularProgress-linecap":"round"},"sm"===r.size&&{"--CircularProgress-trackThickness":"3px","--CircularProgress-progressThickness":"3px","--_root-size":"var(--CircularProgress-size, 24px)"},"sm"===r.instanceSize&&{"--CircularProgress-size":"24px"},"md"===r.size&&{"--CircularProgress-trackThickness":"6px","--CircularProgress-progressThickness":"6px","--_root-size":"var(--CircularProgress-size, 40px)"},"md"===r.instanceSize&&{"--CircularProgress-size":"40px"},"lg"===r.size&&{"--CircularProgress-trackThickness":"8px","--CircularProgress-progressThickness":"8px","--_root-size":"var(--CircularProgress-size, 64px)"},"lg"===r.instanceSize&&{"--CircularProgress-size":"64px"},r.thickness&&{"--CircularProgress-trackThickness":`${r.thickness}px`,"--CircularProgress-progressThickness":`${r.thickness}px`},{"--_thickness-diff":"calc(var(--CircularProgress-trackThickness) - var(--CircularProgress-progressThickness))","--_inner-size":"calc(var(--_root-size) - 2 * var(--variant-borderWidth, 0px))","--_outlined-inset":"max(var(--CircularProgress-trackThickness), var(--CircularProgress-progressThickness))",width:"var(--_root-size)",height:"var(--_root-size)",borderRadius:"var(--_root-size)",margin:"var(--CircularProgress-margin)",boxSizing:"border-box",display:"inline-flex",justifyContent:"center",alignItems:"center",flexShrink:0,position:"relative",color:a},r.children&&{fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,fontSize:"calc(0.2 * var(--_root-size))"},l,"outlined"===r.variant&&{"&:before":(0,n.Z)({content:'""',display:"block",position:"absolute",borderRadius:"inherit",top:"var(--_outlined-inset)",left:"var(--_outlined-inset)",right:"var(--_outlined-inset)",bottom:"var(--_outlined-inset)"},l)})}),z=(0,u.Z)("svg",{name:"JoyCircularProgress",slot:"Svg",overridesResolver:(r,e)=>e.svg})({width:"inherit",height:"inherit",display:"inherit",boxSizing:"inherit",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))"}),S=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"track",overridesResolver:(r,e)=>e.track})({cx:"50%",cy:"50%",r:"calc(var(--_inner-size) / 2 - var(--CircularProgress-trackThickness) / 2 + min(0px, var(--_thickness-diff) / 2))",fill:"transparent",strokeWidth:"var(--CircularProgress-trackThickness)",stroke:"var(--CircularProgress-trackColor)"}),P=(0,u.Z)("circle",{name:"JoyCircularProgress",slot:"progress",overridesResolver:(r,e)=>e.progress})({"--_progress-radius":"calc(var(--_inner-size) / 2 - var(--CircularProgress-progressThickness) / 2 - max(0px, var(--_thickness-diff) / 2))","--_progress-length":"calc(2 * 3.1415926535 * var(--_progress-radius))",cx:"50%",cy:"50%",r:"var(--_progress-radius)",fill:"transparent",strokeWidth:"var(--CircularProgress-progressThickness)",stroke:"var(--CircularProgress-progressColor)",strokeLinecap:"var(--CircularProgress-linecap, round)",strokeDasharray:"var(--_progress-length)",strokeDashoffset:"calc(var(--_progress-length) - var(--CircularProgress-percent) * var(--_progress-length) / 100)",transformOrigin:"center",transform:"rotate(-90deg)"},({ownerState:r})=>!r.determinate&&(0,c.iv)(b||(b=h` + animation: var(--CircularProgress-circulation, 0.8s linear 0s infinite normal none running) + ${0}; + `),k)),T=i.forwardRef(function(r,e){let t=(0,d.Z)({props:r,name:"JoyCircularProgress"}),{children:i,className:s,color:l="primary",size:c="md",variant:u="soft",thickness:p,determinate:v=!1,value:h=v?0:25,component:b,slots:Z={},slotProps:k={}}=t,T=(0,o.Z)(t,y),{getColor:$}=(0,f.VT)(u),I=$(r.color,l),w=(0,n.Z)({},t,{color:I,size:c,variant:u,thickness:p,value:h,determinate:v,instanceSize:r.size}),_=x(w),A=(0,n.Z)({},T,{component:b,slots:Z,slotProps:k}),[B,R]=(0,g.Z)("root",{ref:e,className:(0,a.Z)(_.root,s),elementType:C,externalForwardedProps:A,ownerState:w,additionalProps:(0,n.Z)({role:"progressbar",style:{"--CircularProgress-percent":h}},h&&v&&{"aria-valuenow":"number"==typeof h?Math.round(h):Math.round(Number(h||0))})}),[D,M]=(0,g.Z)("svg",{className:_.svg,elementType:z,externalForwardedProps:A,ownerState:w}),[N,O]=(0,g.Z)("track",{className:_.track,elementType:S,externalForwardedProps:A,ownerState:w}),[W,F]=(0,g.Z)("progress",{className:_.progress,elementType:P,externalForwardedProps:A,ownerState:w});return(0,m.jsxs)(B,(0,n.Z)({},R,{children:[(0,m.jsxs)(D,(0,n.Z)({},M,{children:[(0,m.jsx)(N,(0,n.Z)({},O)),(0,m.jsx)(W,(0,n.Z)({},F))]})),i]}))});var $=T},16806:function(r,e,t){"use strict";t.r(e),t.d(e,{capitalize:function(){return o},createChainedFunction:function(){return i},createSvgIcon:function(){return rr},debounce:function(){return re},deprecatedPropType:function(){return rt},isMuiElement:function(){return rn},ownerDocument:function(){return ro},ownerWindow:function(){return ri},requirePropFactory:function(){return ra},setRef:function(){return rs},unstable_ClassNameGenerator:function(){return rv},unstable_useEnhancedEffect:function(){return rl},unstable_useId:function(){return rc},unsupportedProp:function(){return ru},useControlled:function(){return rd},useEventCallback:function(){return rf},useForkRef:function(){return rg},useIsFocusVisible:function(){return rp}});var n=t(47327),o=t(53832).Z,i=function(...r){return r.reduce((r,e)=>null==e?r:function(...t){r.apply(this,t),e.apply(this,t)},()=>{})},a=t(40431),s=t(86006),l=t(46750),c=function(){for(var r,e,t=0,n="";t=t?$.text.primary:T.text.primary;return e}let m=({color:r,name:e,mainShade:t=500,lightShade:o=300,darkShade:i=700})=>{if(!(r=(0,a.Z)({},r)).main&&r[t]&&(r.main=r[t]),!r.hasOwnProperty("main"))throw Error((0,f.Z)(11,e?` (${e})`:"",t));if("string"!=typeof r.main)throw Error((0,f.Z)(12,e?` (${e})`:"",JSON.stringify(r.main)));return I(r,"light",o,n),I(r,"dark",i,n),r.contrastText||(r.contrastText=v(r.main)),r},w=(0,g.Z)((0,a.Z)({common:(0,a.Z)({},b),mode:e,primary:m({color:i,name:"primary"}),secondary:m({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:m({color:c,name:"error"}),warning:m({color:p,name:"warning"}),info:m({color:u,name:"info"}),success:m({color:d,name:"success"}),grey:Z,contrastThreshold:t,getContrastText:v,augmentColor:m,tonalOffset:n},{dark:$,light:T}[e]),o);return w}(n),u=(0,p.Z)(r),d=(0,g.Z)(u,{mixins:(e=u.breakpoints,(0,a.Z)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)),palette:c,shadows:R.slice(),typography:function(r,e){let t="function"==typeof e?e(r):e,{fontFamily:n=A,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:c=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:f,pxToRem:p}=t,v=(0,l.Z)(t,w),m=o/14,h=p||(r=>`${r/d*m}rem`),b=(r,e,t,o,i)=>(0,a.Z)({fontFamily:n,fontWeight:r,fontSize:h(e),lineHeight:t},n===A?{letterSpacing:`${Math.round(1e5*(o/e))/1e5}em`}:{},i,f),Z={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(s,48,1.167,0),h4:b(s,34,1.235,.25),h5:b(s,24,1.334,0),h6:b(c,20,1.6,.15),subtitle1:b(s,16,1.75,.15),subtitle2:b(c,14,1.57,.1),body1:b(s,16,1.5,.15),body2:b(s,14,1.43,.15),button:b(c,14,1.75,.4,_),caption:b(s,12,1.66,.4),overline:b(s,12,2.66,1,_),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,g.Z)((0,a.Z)({htmlFontSize:d,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:c,fontWeightBold:u},Z),v,{clone:!1})}(c,i),transitions:function(r){let e=(0,a.Z)({},M,r.easing),t=(0,a.Z)({},N,r.duration);return(0,a.Z)({getAutoHeightDuration:W,create:(r=["all"],n={})=>{let{duration:o=t.standard,easing:i=e.easeInOut,delay:a=0}=n;return(0,l.Z)(n,D),(Array.isArray(r)?r:[r]).map(r=>`${r} ${"string"==typeof o?o:O(o)} ${i} ${"string"==typeof a?a:O(a)}`).join(",")}},r,{easing:e,duration:t})}(o),zIndex:(0,a.Z)({},F)});return(d=[].reduce((r,e)=>(0,g.Z)(r,e),d=(0,g.Z)(d,s))).unstable_sxConfig=(0,a.Z)({},v.Z,null==s?void 0:s.unstable_sxConfig),d.unstable_sx=function(r){return(0,m.Z)({sx:r,theme:this})},d}();var H="$$material",V=t(9312);let J=(0,V.ZP)({themeId:H,defaultTheme:E,rootShouldForwardProp:r=>(0,V.x9)(r)&&"classes"!==r});var L=t(88539),U=t(13809);function K(r){return(0,U.Z)("MuiSvgIcon",r)}(0,L.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var q=t(9268);let G=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X=r=>{let{color:e,fontSize:t,classes:n}=r,i={root:["root","inherit"!==e&&`color${o(e)}`,`fontSize${o(t)}`]};return(0,u.Z)(i,K,n)},Q=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(r,e)=>{let{ownerState:t}=r;return[e.root,"inherit"!==t.color&&e[`color${o(t.color)}`],e[`fontSize${o(t.fontSize)}`]]}})(({theme:r,ownerState:e})=>{var t,n,o,i,a,s,l,c,u,d,f,g,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(t=r.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(o=r.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:({inherit:"inherit",small:(null==(i=r.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=r.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=r.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"})[e.fontSize],color:null!=(d=null==(f=(r.vars||r).palette)||null==(f=f[e.color])?void 0:f.main)?d:({action:null==(g=(r.vars||r).palette)||null==(g=g.action)?void 0:g.active,disabled:null==(p=(r.vars||r).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0})[e.color]}}),Y=s.forwardRef(function(r,e){let t=function({props:r,name:e}){return(0,d.Z)({props:r,name:e,defaultTheme:E,themeId:H})}({props:r,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:u="svg",fontSize:f="medium",htmlColor:g,inheritViewBox:p=!1,titleAccess:v,viewBox:m="0 0 24 24"}=t,h=(0,l.Z)(t,G),b=s.isValidElement(n)&&"svg"===n.type,Z=(0,a.Z)({},t,{color:i,component:u,fontSize:f,instanceFontSize:r.fontSize,inheritViewBox:p,viewBox:m,hasSvgAsChild:b}),y={};p||(y.viewBox=m);let k=X(Z);return(0,q.jsxs)(Q,(0,a.Z)({as:u,className:c(k.root,o),focusable:"false",color:g,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:e},y,h,b&&n.props,{ownerState:Z,children:[b?n.props.children:n,v?(0,q.jsx)("title",{children:v}):null]}))});function rr(r,e){function t(t,n){return(0,q.jsx)(Y,(0,a.Z)({"data-testid":`${e}Icon`,ref:n},t,{children:r}))}return t.muiName=Y.muiName,s.memo(s.forwardRef(t))}Y.muiName="SvgIcon";var re=t(22099).Z,rt=function(r,e){return()=>null},rn=t(44542).Z,ro=t(47375).Z,ri=t(30165).Z,ra=function(r,e){return()=>null},rs=t(65464).Z,rl=t(11059).Z,rc=t(49657).Z,ru=function(r,e,t,n,o){return null},rd=t(24263).Z,rf=t(66519).Z,rg=t(99179).Z,rp=t(21454).Z;let rv={configure:r=>{n.Z.configure(r)}}},22099:function(r,e,t){"use strict";function n(r,e=166){let t;function n(...o){clearTimeout(t),t=setTimeout(()=>{r.apply(this,o)},e)}return n.clear=()=>{clearTimeout(t)},n}t.d(e,{Z:function(){return n}})},47375:function(r,e,t){"use strict";function n(r){return r&&r.ownerDocument||document}t.d(e,{Z:function(){return n}})},30165:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(47375);function o(r){let e=(0,n.Z)(r);return e.defaultView||window}},24263:function(r,e,t){"use strict";t.d(e,{Z:function(){return o}});var n=t(86006);function o({controlled:r,default:e,name:t,state:o="value"}){let{current:i}=n.useRef(void 0!==r),[a,s]=n.useState(e),l=i?r:a,c=n.useCallback(r=>{i||s(r)},[]);return[l,c]}},11059:function(r,e,t){"use strict";var n=t(86006);let o="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;e.Z=o},66519:function(r,e,t){"use strict";var n=t(86006),o=t(11059);e.Z=function(r){let e=n.useRef(r);return(0,o.Z)(()=>{e.current=r}),n.useCallback((...r)=>(0,e.current)(...r),[])}},49657:function(r,e,t){"use strict";t.d(e,{Z:function(){return s}});var n,o=t(86006);let i=0,a=(n||(n=t.t(o,2)))["useId".toString()];function s(r){if(void 0!==a){let e=a();return null!=r?r:e}return function(r){let[e,t]=o.useState(r),n=r||e;return o.useEffect(()=>{null==e&&t(`mui-${i+=1}`)},[e]),n}(r)}},78997:function(r){r.exports=function(r){return r&&r.__esModule?r:{default:r}},r.exports.__esModule=!0,r.exports.default=r.exports}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/6316-7650593a4ac2944b.js b/pilot/server/static/_next/static/chunks/6316-7650593a4ac2944b.js deleted file mode 100644 index ff5e52116..000000000 --- a/pilot/server/static/_next/static/chunks/6316-7650593a4ac2944b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6316],{53047:function(n,t,r){"use strict";r.d(t,{Qh:function(){return S},ZP:function(){return I}});var e=r(46750),o=r(40431),i=r(86006),u=r(53832),a=r(99179),c=r(73811),l=r(47562),s=r(50645),f=r(88930),v=r(47093),d=r(326),p=r(18587);function h(n){return(0,p.d6)("MuiIconButton",n)}let m=(0,p.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var y=r(42858),g=r(9268);let b=["children","action","component","color","disabled","variant","size","slots","slotProps"],w=n=>{let{color:t,disabled:r,focusVisible:e,focusVisibleClassName:o,size:i,variant:a}=n,c={root:["root",r&&"disabled",e&&"focusVisible",a&&`variant${(0,u.Z)(a)}`,t&&`color${(0,u.Z)(t)}`,i&&`size${(0,u.Z)(i)}`]},s=(0,l.Z)(c,h,{});return e&&o&&(s.root+=` ${o}`),s},S=(0,s.Z)("button")(({theme:n,ownerState:t})=>{var r,e,i,u;return[(0,o.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:n.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:n.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:n.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:n.vars.fontFamily.body,fontWeight:n.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${n.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[n.focus.selector]:n.focus.default}),null==(r=n.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(e=n.variants[`${t.variant}Hover`])?void 0:e[t.color]}},{"&:active":null==(i=n.variants[`${t.variant}Active`])?void 0:i[t.color]},{[`&.${m.disabled}`]:null==(u=n.variants[`${t.variant}Disabled`])?void 0:u[t.color]}]}),x=(0,s.Z)(S,{name:"JoyIconButton",slot:"Root",overridesResolver:(n,t)=>t.root})({}),z=i.forwardRef(function(n,t){var r;let u=(0,f.Z)({props:n,name:"JoyIconButton"}),{children:l,action:s,component:p="button",color:h="primary",disabled:m,variant:S="soft",size:z="md",slots:I={},slotProps:O={}}=u,P=(0,e.Z)(u,b),T=i.useContext(y.Z),j=n.variant||T.variant||S,R=n.size||T.size||z,{getColor:B}=(0,v.VT)(j),E=B(n.color,T.color||h),C=null!=(r=n.disabled)?r:T.disabled||m,A=i.useRef(null),Z=(0,a.Z)(A,t),{focusVisible:H,setFocusVisible:W,getRootProps:M}=(0,c.Z)((0,o.Z)({},u,{disabled:C,rootRef:Z}));i.useImperativeHandle(s,()=>({focusVisible:()=>{var n;W(!0),null==(n=A.current)||n.focus()}}),[W]);let k=(0,o.Z)({},u,{component:p,color:E,disabled:C,variant:j,size:R,focusVisible:H,instanceSize:n.size}),N=w(k),$=(0,o.Z)({},P,{component:p,slots:I,slotProps:O}),[D,F]=(0,d.Z)("root",{ref:t,className:N.root,elementType:x,getSlotProps:M,externalForwardedProps:$,ownerState:k});return(0,g.jsx)(D,(0,o.Z)({},F,{children:l}))});z.muiName="IconButton";var I=z},89081:function(n,t,r){"use strict";r.d(t,{Z:function(){return F}});var e,o=function(){return(o=Object.assign||function(n){for(var t,r=1,e=arguments.length;rt.indexOf(e)&&(r[e]=n[e]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,e=Object.getOwnPropertySymbols(n);ot.indexOf(e[o])&&Object.prototype.propertyIsEnumerable.call(n,e[o])&&(r[e[o]]=n[e[o]]);return r}function u(n,t){var r="function"==typeof Symbol&&n[Symbol.iterator];if(!r)return n;var e,o,i=r.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(n){o={error:n}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function a(n,t,r){if(r||2==arguments.length)for(var e,o=0,i=t.length;o-1&&(i=setTimeout(function(){p.delete(n)},t)),p.set(n,o(o({},r),{timer:i}))},m=new Map,y=function(n,t){m.set(n,t),t.then(function(t){return m.delete(n),t}).catch(function(){m.delete(n)})},g={},b=function(n,t){g[n]&&g[n].forEach(function(n){return n(t)})},w=function(n,t){return g[n]||(g[n]=[]),g[n].push(t),function(){var r=g[n].indexOf(t);g[n].splice(r,1)}},S=function(n,t){var r=t.cacheKey,e=t.cacheTime,o=void 0===e?3e5:e,i=t.staleTime,l=void 0===i?0:i,s=t.setCache,v=t.getCache,g=(0,c.useRef)(),S=(0,c.useRef)(),x=function(n,t){s?s(t):h(n,o,t),b(n,t.data)},z=function(n,t){return(void 0===t&&(t=[]),v)?v(t):p.get(n)};return(f(function(){if(r){var t=z(r);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===l||new Date().getTime()-t.time<=l)&&(n.state.loading=!1)),g.current=w(r,function(t){n.setState({data:t})})}},[]),d(function(){var n;null===(n=g.current)||void 0===n||n.call(g)}),r)?{onBefore:function(n){var t=z(r,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===l||new Date().getTime()-t.time<=l?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(n,t){var e=m.get(r);return e&&e!==S.current||(e=n.apply(void 0,a([],u(t),!1)),S.current=e,y(r,e)),{servicePromise:e}},onSuccess:function(t,e){var o;r&&(null===(o=g.current)||void 0===o||o.call(g),x(r,{data:t,params:e,time:new Date().getTime()}),g.current=w(r,function(t){n.setState({data:t})}))},onMutate:function(t){var e;r&&(null===(e=g.current)||void 0===e||e.call(g),x(r,{data:t,params:n.state.params,time:new Date().getTime()}),g.current=w(r,function(t){n.setState({data:t})}))}}:{}},x=r(56762),z=r.n(x),I=function(n,t){var r=t.debounceWait,e=t.debounceLeading,o=t.debounceTrailing,i=t.debounceMaxWait,l=(0,c.useRef)(),s=(0,c.useMemo)(function(){var n={};return void 0!==e&&(n.leading=e),void 0!==o&&(n.trailing=o),void 0!==i&&(n.maxWait=i),n},[e,o,i]);return((0,c.useEffect)(function(){if(r){var t=n.runAsync.bind(n);return l.current=z()(function(n){n()},r,s),n.runAsync=function(){for(var n=[],r=0;r-1&&B.splice(n,1)})}return function(){l()}},[r,o]),d(function(){l()}),{}},A=function(n,t){var r=t.retryInterval,e=t.retryCount,o=(0,c.useRef)(),i=(0,c.useRef)(0),u=(0,c.useRef)(!1);return e?{onBefore:function(){u.current||(i.current=0),u.current=!1,o.current&&clearTimeout(o.current)},onSuccess:function(){i.current=0},onError:function(){if(i.current+=1,-1===e||i.current<=e){var t=null!=r?r:Math.min(1e3*Math.pow(2,i.current),3e4);o.current=setTimeout(function(){u.current=!0,n.refresh()},t)}else i.current=0},onCancel:function(){i.current=0,o.current&&clearTimeout(o.current)}}:{}},Z=r(25832),H=r.n(Z),W=function(n,t){var r=t.throttleWait,e=t.throttleLeading,o=t.throttleTrailing,i=(0,c.useRef)(),l={};return(void 0!==e&&(l.leading=e),void 0!==o&&(l.trailing=o),(0,c.useEffect)(function(){if(r){var t=n.runAsync.bind(n);return i.current=H()(function(n){n()},r,l),n.runAsync=function(){for(var n=[],r=0;r0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=t||r<0||m&&e>=s}function w(){var n,r,e,i=o();if(b(i))return S(i);v=setTimeout(w,(n=i-d,r=i-p,e=t-n,m?a(e,s-r):e))}function S(n){return(v=void 0,y&&c)?g(n):(c=l=void 0,f)}function x(){var n,r=o(),e=b(r);if(c=arguments,l=this,d=r,e){if(void 0===v)return p=n=d,v=setTimeout(w,t),h?g(n):f;if(m)return clearTimeout(v),v=setTimeout(w,t),g(d)}return void 0===v&&(v=setTimeout(w,t)),f}return t=i(t)||0,e(r)&&(h=!!r.leading,s=(m="maxWait"in r)?u(i(r.maxWait)||0,t):s,y="trailing"in r?!!r.trailing:y),x.cancel=function(){void 0!==v&&clearTimeout(v),p=0,c=d=l=v=void 0},x.flush=function(){return void 0===v?f:S(o())},x}},74331:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},60655:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},50246:function(n,t,r){var e=r(48276),o=r(60655);n.exports=function(n){return"symbol"==typeof n||o(n)&&"[object Symbol]"==e(n)}},49552:function(n,t,r){var e=r(41314);n.exports=function(){return e.Date.now()}},25832:function(n,t,r){var e=r(56762),o=r(74331);n.exports=function(n,t,r){var i=!0,u=!0;if("function"!=typeof n)throw TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,u="trailing"in r?!!r.trailing:u),e(n,t,{leading:i,maxWait:t,trailing:u})}},64528:function(n,t,r){var e=r(84886),o=r(74331),i=r(50246),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(i(n))return u;if(o(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=o(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=e(n);var r=c.test(n);return r||l.test(n)?s(n.slice(2),r?2:8):a.test(n)?u:+n}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/6394-7070e0aaab5f2d3a.js b/pilot/server/static/_next/static/chunks/6394-7070e0aaab5f2d3a.js new file mode 100644 index 000000000..54955ce13 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/6394-7070e0aaab5f2d3a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6394],{85962:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return y}});let r=n(26927),i=n(25909),o=i._(n(86006)),a=r._(n(72930)),l=n(12325),u=n(46374),s=n(80168);n(17653);let d=r._(n(35840)),c={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function f(e){return void 0!==e.default}function p(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function m(e,t,n,r,i,o,a){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let l="decode"in e?e.decode():Promise.resolve();l.catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("blur"===n&&o(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}})}function g(e){let[t,n]=o.version.split("."),r=parseInt(t,10),i=parseInt(n,10);return r>18||18===r&&i>=3?{fetchPriority:e}:{fetchpriority:e}}let h=(0,o.forwardRef)((e,t)=>{let{imgAttributes:n,heightInt:r,widthInt:i,qualityInt:a,className:l,imgStyle:u,blurStyle:s,isLazy:d,fetchPriority:c,fill:f,placeholder:p,loading:h,srcString:b,config:y,unoptimized:v,loader:_,onLoadRef:w,onLoadingCompleteRef:S,setBlurComplete:j,setShowAltText:C,onLoad:E,onError:P,...x}=e;return h=d?"lazy":h,o.default.createElement("img",{...x,...g(c),loading:h,width:i,height:r,decoding:"async","data-nimg":f?"fill":"1",className:l,style:{...u,...s},...n,ref:(0,o.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(P&&(e.src=e.src),e.complete&&m(e,b,p,w,S,j,v))},[b,p,w,S,j,P,v,t]),onLoad:e=>{let t=e.currentTarget;m(t,b,p,w,S,j,v)},onError:e=>{C(!0),"blur"===p&&j(!0),P&&P(e)}})}),b=(0,o.forwardRef)((e,t)=>{var n;let r,i,{src:m,sizes:b,unoptimized:y=!1,priority:v=!1,loading:_,className:w,quality:S,width:j,height:C,fill:E,style:P,onLoad:x,onLoadingComplete:O,placeholder:M="empty",blurDataURL:k,fetchPriority:I,layout:A,objectFit:z,objectPosition:R,lazyBoundary:D,lazyRoot:N,...U}=e,F=(0,o.useContext)(s.ImageConfigContext),T=(0,o.useMemo)(()=>{let e=c||F||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),n=e.deviceSizes.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:n}},[F]),W=U.loader||d.default;delete U.loader;let B="__next_img_default"in W;if(B){if("custom"===T.loader)throw Error('Image with src "'+m+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=W;W=t=>{let{config:n,...r}=t;return e(r)}}if(A){"fill"===A&&(E=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];e&&(P={...P,...e});let t={responsive:"100vw",fill:"100vw"}[A];t&&!b&&(b=t)}let L="",G=p(j),V=p(C);if("object"==typeof(n=m)&&(f(n)||void 0!==n.src)){let e=f(m)?m.default:m;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(r=e.blurWidth,i=e.blurHeight,k=k||e.blurDataURL,L=e.src,!E){if(G||V){if(G&&!V){let t=G/e.width;V=Math.round(e.height*t)}else if(!G&&V){let t=V/e.height;G=Math.round(e.width*t)}}else G=e.width,V=e.height}}let H=!v&&("lazy"===_||void 0===_);(!(m="string"==typeof m?m:L)||m.startsWith("data:")||m.startsWith("blob:"))&&(y=!0,H=!1),T.unoptimized&&(y=!0),B&&m.endsWith(".svg")&&!T.dangerouslyAllowSVG&&(y=!0),v&&(I="high");let[q,$]=(0,o.useState)(!1),[J,Y]=(0,o.useState)(!1),K=p(S),Q=Object.assign(E?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:z,objectPosition:R}:{},J?{}:{color:"transparent"},P),X="blur"===M&&k&&!q?{backgroundSize:Q.objectFit||"cover",backgroundPosition:Q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'+(0,l.getImageBlurSvg)({widthInt:G,heightInt:V,blurWidth:r,blurHeight:i,blurDataURL:k,objectFit:Q.objectFit})+'")'}:{},Z=function(e){let{config:t,src:n,unoptimized:r,width:i,quality:o,sizes:a,loader:l}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:u,kind:s}=function(e,t,n){let{deviceSizes:r,allSizes:i}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:r,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),d=u.length-1;return{sizes:a||"w"!==s?a:"100vw",srcSet:u.map((e,r)=>l({config:t,src:n,quality:o,width:e})+" "+("w"===s?e:r+1)+s).join(", "),src:l({config:t,src:n,quality:o,width:u[d]})}}({config:T,src:m,unoptimized:y,width:G,quality:K,sizes:b,loader:W}),ee=m,et=(0,o.useRef)(x);(0,o.useEffect)(()=>{et.current=x},[x]);let en=(0,o.useRef)(O);(0,o.useEffect)(()=>{en.current=O},[O]);let er={isLazy:H,imgAttributes:Z,heightInt:V,widthInt:G,qualityInt:K,className:w,imgStyle:Q,blurStyle:X,loading:_,config:T,fetchPriority:I,fill:E,unoptimized:y,placeholder:M,loader:W,srcString:ee,onLoadRef:et,onLoadingCompleteRef:en,setBlurComplete:$,setShowAltText:Y,...U};return o.default.createElement(o.default.Fragment,null,o.default.createElement(h,{...er,ref:t}),v?o.default.createElement(a.default,null,o.default.createElement("link",{key:"__nimg-"+Z.src+Z.srcSet+Z.sizes,rel:"preload",as:"image",href:Z.srcSet?void 0:Z.src,imageSrcSet:Z.srcSet,imageSizes:Z.sizes,crossOrigin:U.crossOrigin,referrerPolicy:U.referrerPolicy,...g(I)})):null)}),y=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return o}});let r=n(26927),i=r._(n(86006)),o=i.default.createContext({})},47290:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},72930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return d},default:function(){return m}});let r=n(26927),i=n(25909),o=i._(n(86006)),a=r._(n(69488)),l=n(64626),u=n(46436),s=n(47290);function d(e){void 0===e&&(e=!1);let t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(17653);let f=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:n}=t;return e.reduce(c,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=f.length;e{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,n=(0,o.useContext)(l.AmpStateContext),r=(0,o.useContext)(u.HeadManagerContext);return o.default.createElement(a.default,{reduceComponentsToState:p,headManager:r,inAmpMode:(0,s.isInAmpMode)(n)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12325:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:a}=e,l=r||t,u=i||n,s=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return l&&u?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 "+l+" "+u+"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='"+(r&&i?"1":"20")+"'/%3E"+s+"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E":"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' preserveAspectRatio='"+("contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' x='0' y='0' height='100%25' width='100%25' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},80168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return a}});let r=n(26927),i=r._(n(86006)),o=n(46374),a=i.default.createContext(o.imageConfigDefault)},46374:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",remotePatterns:[],unoptimized:!1}},35840:function(e,t){"use strict";function n(e){let{config:t,src:n,width:r,quality:i}=e;return t.path+"?url="+encodeURIComponent(n)+"&w="+r+"&q="+(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},69488:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let r=n(25909),i=r._(n(86006)),o=i.useLayoutEffect,a=i.useEffect;function l(e){let{headManager:t,reduceComponentsToState:n}=e;function r(){if(t&&t.mountedInstances){let r=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(r,e))}}return o(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),o(()=>(t&&(t._pendingUpdate=r),()=>{t&&(t._pendingUpdate=r)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},17653:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},76394:function(e,t,n){e.exports=n(85962)}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/157-10067793f8a5d358.js b/pilot/server/static/_next/static/chunks/7016-bead39442dd43d3d.js similarity index 59% rename from pilot/server/static/_next/static/chunks/157-10067793f8a5d358.js rename to pilot/server/static/_next/static/chunks/7016-bead39442dd43d3d.js index e50a1864f..abdf61cf3 100644 --- a/pilot/server/static/_next/static/chunks/157-10067793f8a5d358.js +++ b/pilot/server/static/_next/static/chunks/7016-bead39442dd43d3d.js @@ -1,7 +1,7 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[157],{1301:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},40020:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Article");t.Z=i},11515:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");t.Z=i},66664:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");t.Z=i},601:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=i},98703:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7zm8 0h2v2h-2zm-4 0h2v2h-2z"}),"SmsOutlined");t.Z=i},84892:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}),"WbSunny");t.Z=i},64521:function(e,t,r){"use strict";r.d(t,{Z:function(){return I}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(53832),s=r(44542),u=r(47562),c=r(50645),d=r(88930),f=r(47093),h=r(326),p=r(18587);function m(e){return(0,p.d6)("MuiListItem",e)}(0,p.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var g=r(31242),v=r(76620),y=r(52058),b=r(10504),P=r(68057),_=r(8189),S=r(9268);let w=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],x=e=>{let{sticky:t,nested:r,nesting:n,variant:o,color:a}=e,i={root:["root",r&&"nested",n&&"nesting",t&&"sticky",a&&`color${(0,l.Z)(a)}`,o&&`variant${(0,l.Z)(o)}`],startAction:["startAction"],endAction:["endAction"]};return(0,u.Z)(i,m,{})},C=(0,c.Z)("li",{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},(0,o.Z)({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"flex",flex:"none",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&(0,o.Z)({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)",fontSize:"var(--ListItem-fontSize)",fontFamily:e.vars.fontFamily.body},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"}),null==(r=e.variants[t.variant])?void 0:r[t.color]]}),O=(0,c.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),j=(0,c.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),E=a.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"JoyListItem"}),l=a.useContext(_.Z),u=a.useContext(b.Z),c=a.useContext(v.Z),p=a.useContext(y.Z),m=a.useContext(g.Z),{component:E,className:I,children:R,nested:L=!1,sticky:k=!1,variant:M="plain",color:N="neutral",startAction:T,endAction:A,role:$,slots:Z={},slotProps:B={}}=r,H=(0,n.Z)(r,w),{getColor:z}=(0,f.VT)(M),D=z(e.color,N),[W,U]=a.useState(""),[F,q]=(null==u?void 0:u.split(":"))||["",""],V=E||(F&&!F.match(/^(ul|ol|menu)$/)?"div":void 0),G="menu"===l?"none":void 0;u&&(G=({menu:"none",menubar:"none",group:"presentation"})[q]),$&&(G=$);let J=(0,o.Z)({},r,{sticky:k,startAction:T,endAction:A,row:c,wrap:p,variant:M,color:D,nesting:m,nested:L,component:V,role:G}),X=x(J),K=(0,o.Z)({},H,{component:V,slots:Z,slotProps:B}),[Y,Q]=(0,h.Z)("root",{additionalProps:{role:G},ref:t,className:(0,i.Z)(X.root,I),elementType:C,externalForwardedProps:K,ownerState:J}),[ee,et]=(0,h.Z)("startAction",{className:X.startAction,elementType:O,externalForwardedProps:K,ownerState:J}),[er,en]=(0,h.Z)("endAction",{className:X.endAction,elementType:j,externalForwardedProps:K,ownerState:J});return(0,S.jsx)(P.Z.Provider,{value:U,children:(0,S.jsx)(g.Z.Provider,{value:!!L&&(W||!0),children:(0,S.jsxs)(Y,(0,o.Z)({},Q,{children:[T&&(0,S.jsx)(ee,(0,o.Z)({},et,{children:T})),a.Children.map(R,(e,t)=>a.isValidElement(e)?a.cloneElement(e,(0,o.Z)({},0===t&&{"data-first-child":""},(0,s.Z)(e,["ListItem"])&&{component:e.props.component||"div"})):e),A&&(0,S.jsx)(er,(0,o.Z)({},en,{children:A}))]}))})})});E.muiName="ListItem";var I=E},64579:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(40431),o=r(46750),a=r(86006),i=r(89791),l=r(47562),s=r(50645),u=r(88930),c=r(18587);function d(e){return(0,c.d6)("MuiListItemContent",e)}(0,c.sI)("MuiListItemContent",["root"]);var f=r(326),h=r(9268);let p=["component","className","children","slots","slotProps"],m=()=>(0,l.Z)({root:["root"]},d,{}),g=(0,s.Z)("div",{name:"JoyListItemContent",slot:"Root",overridesResolver:(e,t)=>t.root})({flex:"1 1 auto",minWidth:0}),v=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"JoyListItemContent"}),{component:a,className:l,children:s,slots:c={},slotProps:d={}}=r,v=(0,o.Z)(r,p),y=(0,n.Z)({},r),b=m(),P=(0,n.Z)({},v,{component:a,slots:c,slotProps:d}),[_,S]=(0,f.Z)("root",{ref:t,className:(0,i.Z)(b.root,l),elementType:g,externalForwardedProps:P,ownerState:y});return(0,h.jsx)(_,(0,n.Z)({},S,{children:s}))});var y=v},62921:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(47562),s=r(50645),u=r(88930),c=r(18587);function d(e){return(0,c.d6)("MuiListItemDecorator",e)}(0,c.sI)("MuiListItemDecorator",["root"]);var f=r(54438),h=r(326),p=r(9268);let m=["component","className","children","slots","slotProps"],g=()=>(0,l.Z)({root:["root"]},d,{}),v=(0,s.Z)("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,o.Z)({boxSizing:"border-box",display:"inline-flex",color:"var(--ListItemDecorator-color)"},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",alignItems:"center"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center"})),y=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"JoyListItemDecorator"}),{component:l,className:s,children:c,slots:d={},slotProps:y={}}=r,b=(0,n.Z)(r,m),P=a.useContext(f.Z),_=(0,o.Z)({parentOrientation:P},r),S=g(),w=(0,o.Z)({},b,{component:l,slots:d,slotProps:y}),[x,C]=(0,h.Z)("root",{ref:t,className:(0,i.Z)(S.root,s),elementType:v,externalForwardedProps:w,ownerState:_});return(0,p.jsx)(x,(0,o.Z)({},C,{children:c}))});var b=y},68113:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(53832),s=r(49657),u=r(47562),c=r(50645),d=r(88930),f=r(47093),h=r(18587);function p(e){return(0,h.d6)("MuiListSubheader",e)}(0,h.sI)("MuiListSubheader",["root","sticky","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var m=r(68057),g=r(326),v=r(9268);let y=["component","className","children","id","sticky","variant","color","slots","slotProps"],b=e=>{let{variant:t,color:r,sticky:n}=e,o={root:["root",n&&"sticky",r&&`color${(0,l.Z)(r)}`,t&&`variant${(0,l.Z)(t)}`]};return(0,u.Z)(o,p,{})},P=(0,c.Z)("div",{name:"JoyListSubheader",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;return(0,o.Z)({boxSizing:"border-box",display:"flex",alignItems:"center",marginInline:"var(--ListItem-marginInline)",paddingBlock:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",minBlockSize:"var(--ListItem-minHeight)",fontSize:"calc(var(--ListItem-fontSize) * 0.75)",fontWeight:e.vars.fontWeight.lg,fontFamily:e.vars.fontFamily.body,letterSpacing:e.vars.letterSpacing.md,textTransform:"uppercase"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"},{color:t.color&&"context"!==t.color?`rgba(${null==(r=e.vars.palette[t.color])?void 0:r.mainChannel} / 1)`:e.vars.palette.text.tertiary},null==(n=e.variants[t.variant])?void 0:n[t.color])}),_=a.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"JoyListSubheader"}),{component:l,className:u,children:c,id:h,sticky:p=!1,variant:_,color:S,slots:w={},slotProps:x={}}=r,C=(0,n.Z)(r,y),{getColor:O}=(0,f.VT)(_),j=O(e.color,S),E=(0,s.Z)(h),I=a.useContext(m.Z);a.useEffect(()=>{I&&I(E||"")},[I,E]);let R=(0,o.Z)({},r,{id:E,sticky:p,variant:_,color:_?null!=j?j:"neutral":j}),L=b(R),k=(0,o.Z)({},C,{component:l,slots:w,slotProps:x}),[M,N]=(0,g.Z)("root",{ref:t,className:(0,i.Z)(L.root,u),elementType:P,externalForwardedProps:k,ownerState:R,additionalProps:{as:l,id:E}});return(0,v.jsx)(M,(0,o.Z)({},N,{children:c}))});var S=_},68057:function(e,t,r){"use strict";var n=r(86006);let o=n.createContext(void 0);t.Z=o},79914:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return ex}});var o=r(90151),a=r(88101),i=r(86006),l=r(17583),s=r(34777),u=r(56222),c=r(27977),d=r(49132),f=r(8683),h=r.n(f),p=r(39112),m=r(50946),g=r(13308),v=e=>{let{type:t,children:r,prefixCls:n,buttonProps:o,close:a,autoFocus:l,emitEvent:s,isSilent:u,quitOnNullishReturnValue:c,actionFn:d}=e,f=i.useRef(!1),h=i.useRef(null),[v,y]=(0,p.Z)(!1),b=function(){null==a||a.apply(void 0,arguments)};i.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=h.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let P=e=>{e&&e.then&&(y(!0),e.then(function(){y(!1,!0),b.apply(void 0,arguments),f.current=!1},e=>{if(y(!1,!0),f.current=!1,null==u||!u())return Promise.reject(e)}))};return i.createElement(m.ZP,Object.assign({},(0,g.n)(t),{onClick:e=>{let t;if(!f.current){if(f.current=!0,!d){b();return}if(s){var r;if(t=d(e),c&&!((r=t)&&r.then)){f.current=!1,b(e);return}}else if(d.length)t=d(a),f.current=!1;else if(!(t=d())){b();return}P(t)}},loading:v,prefixCls:n},o,{ref:h}),r)},y=r(80716),b=r(6783),P=r(31533),_=r(40431),S=r(60456),w=r(61085),x=r(88684),C=r(14071),O=r(53457),j=r(48580),E=r(42442);function I(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function R(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var o=e.document;"number"!=typeof(r=o.documentElement[n])&&(r=o.body[n])}return r}var L=r(78641),k=i.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),M={width:0,height:0,overflow:"hidden",outline:"none"},N=i.forwardRef(function(e,t){var r,n,o,a=e.prefixCls,l=e.className,s=e.style,u=e.title,c=e.ariaId,d=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,g=e.children,v=e.bodyStyle,y=e.bodyProps,b=e.modalRender,P=e.onMouseDown,S=e.onMouseUp,w=e.holderRef,C=e.visible,O=e.forceRender,j=e.width,E=e.height,I=(0,i.useRef)(),R=(0,i.useRef)();i.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=I.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===R.current?I.current.focus():e||t!==I.current||R.current.focus()}}});var L={};void 0!==j&&(L.width=j),void 0!==E&&(L.height=E),d&&(r=i.createElement("div",{className:"".concat(a,"-footer")},d)),u&&(n=i.createElement("div",{className:"".concat(a,"-header")},i.createElement("div",{className:"".concat(a,"-title"),id:c},u))),f&&(o=i.createElement("button",{type:"button",onClick:m,"aria-label":"Close",className:"".concat(a,"-close")},p||i.createElement("span",{className:"".concat(a,"-close-x")})));var N=i.createElement("div",{className:"".concat(a,"-content")},o,n,i.createElement("div",(0,_.Z)({className:"".concat(a,"-body"),style:v},y),g),r);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?c:null,"aria-modal":"true",ref:w,style:(0,x.Z)((0,x.Z)({},s),L),className:h()(a,l),onMouseDown:P,onMouseUp:S},i.createElement("div",{tabIndex:0,ref:I,style:M,"aria-hidden":"true"}),i.createElement(k,{shouldUpdate:C||O},b?b(N):N),i.createElement("div",{tabIndex:0,ref:R,style:M,"aria-hidden":"true"}))}),T=i.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,o=e.style,a=e.className,l=e.visible,s=e.forceRender,u=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,m=(0,i.useRef)(),g=i.useState(),v=(0,S.Z)(g,2),y=v[0],b=v[1],P={};function w(){var e,t,r,n,o,a=(r={left:(t=(e=m.current).getBoundingClientRect()).left,top:t.top},o=(n=e.ownerDocument).defaultView||n.parentWindow,r.left+=R(o),r.top+=R(o,!0),r);b(p?"".concat(p.x-a.left,"px ").concat(p.y-a.top,"px"):"")}return y&&(P.transformOrigin=y),i.createElement(L.ZP,{visible:l,onVisibleChanged:f,onAppearPrepare:w,onEnterPrepare:w,forceRender:s,motionName:c,removeOnLeave:u,ref:m},function(l,s){var u=l.className,c=l.style;return i.createElement(N,(0,_.Z)({},e,{ref:t,title:n,ariaId:d,prefixCls:r,holderRef:s,style:(0,x.Z)((0,x.Z)((0,x.Z)({},c),o),P),className:h()(a,u)}))})});function A(e){var t=e.prefixCls,r=e.style,n=e.visible,o=e.maskProps,a=e.motionName;return i.createElement(L.ZP,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(e,n){var a=e.className,l=e.style;return i.createElement("div",(0,_.Z)({ref:n,style:(0,x.Z)((0,x.Z)({},l),r),className:h()("".concat(t,"-mask"),a)},o))})}function $(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,n=e.zIndex,o=e.visible,a=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,u=e.focusTriggerAfterClose,c=void 0===u||u,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,m=e.onClose,g=e.afterOpenChange,v=e.afterClose,y=e.transitionName,b=e.animation,P=e.closable,w=e.mask,R=void 0===w||w,L=e.maskTransitionName,k=e.maskAnimation,M=e.maskClosable,N=e.maskStyle,$=e.maskProps,Z=e.rootClassName,B=(0,i.useRef)(),H=(0,i.useRef)(),z=(0,i.useRef)(),D=i.useState(a),W=(0,S.Z)(D,2),U=W[0],F=W[1],q=(0,O.Z)();function V(e){null==m||m(e)}var G=(0,i.useRef)(!1),J=(0,i.useRef)(),X=null;return(void 0===M||M)&&(X=function(e){G.current?G.current=!1:H.current===e.target&&V(e)}),(0,i.useEffect)(function(){a&&(F(!0),(0,C.Z)(H.current,document.activeElement)||(B.current=document.activeElement))},[a]),(0,i.useEffect)(function(){return function(){clearTimeout(J.current)}},[]),i.createElement("div",(0,_.Z)({className:h()("".concat(r,"-root"),Z)},(0,E.Z)(e,{data:!0})),i.createElement(A,{prefixCls:r,visible:R&&a,motionName:I(r,L,k),style:(0,x.Z)({zIndex:n},N),maskProps:$}),i.createElement("div",(0,_.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===j.Z.ESC){e.stopPropagation(),V(e);return}a&&e.keyCode===j.Z.TAB&&z.current.changeActive(!e.shiftKey)},className:h()("".concat(r,"-wrap"),f),ref:H,onClick:X,style:(0,x.Z)((0,x.Z)({zIndex:n},d),{},{display:U?null:"none"})},p),i.createElement(T,(0,_.Z)({},e,{onMouseDown:function(){clearTimeout(J.current),G.current=!0},onMouseUp:function(){J.current=setTimeout(function(){G.current=!1})},ref:z,closable:void 0===P||P,ariaId:q,prefixCls:r,visible:a&&U,onClose:V,onVisibleChanged:function(e){if(e)!function(){if(!(0,C.Z)(H.current,document.activeElement)){var e;null===(e=z.current)||void 0===e||e.focus()}}();else{if(F(!1),R&&B.current&&c){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}U&&(null==v||v())}null==g||g(e)},motionName:I(r,y,b)}))))}T.displayName="Content";var Z=function(e){var t=e.visible,r=e.getContainer,n=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,l=e.afterClose,s=i.useState(t),u=(0,S.Z)(s,2),c=u[0],d=u[1];return(i.useEffect(function(){t&&d(!0)},[t]),n||!a||c)?i.createElement(w.Z,{open:t||n||c,autoDestroy:!1,getContainer:r,autoLock:t||c},i.createElement($,(0,_.Z)({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),d(!1)}}))):null};Z.displayName="Dialog";var B=r(71693),H=r(79746),z=r(67518),D=r(12381),W=r(66255);function U(e,t){return i.createElement("span",{className:`${e}-close-x`},t||i.createElement(P.Z,{className:`${e}-close-icon`}))}let F=e=>{let{okText:t,okType:r="primary",cancelText:n,confirmLoading:o,onOk:a,onCancel:l,okButtonProps:s,cancelButtonProps:u}=e,[c]=(0,b.Z)("Modal",(0,W.A)());return i.createElement(i.Fragment,null,i.createElement(m.ZP,Object.assign({onClick:l},u),n||(null==c?void 0:c.cancelText)),i.createElement(m.ZP,Object.assign({},(0,g.n)(r),{loading:o,onClick:a},s),t||(null==c?void 0:c.okText)))};var q=r(98663),V=r(96390),G=r(87270),J=r(40650),X=r(70721);function K(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}let Y=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},K("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},K("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,V.J$)(e)}]},Q=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,q.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,q.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7016],{1301:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},40020:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Article");t.Z=i},11515:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");t.Z=i},66664:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");t.Z=i},601:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=i},98703:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7zm8 0h2v2h-2zm-4 0h2v2h-2z"}),"SmsOutlined");t.Z=i},84892:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}),"WbSunny");t.Z=i},50318:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(53832),s=r(47562),c=r(50645),u=r(88930),d=r(18587);function f(e){return(0,d.d6)("MuiDivider",e)}(0,d.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var h=r(326),p=r(9268);let m=["className","children","component","inset","orientation","role","slots","slotProps"],g=e=>{let{orientation:t,inset:r}=e,n={root:["root",t,r&&`inset${(0,l.Z)(r)}`]};return(0,s.Z)(n,f,{})},v=(0,c.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,o.Z)({"--Divider-thickness":"1px","--Divider-lineColor":e.vars.palette.divider},"none"===t.inset&&{"--_Divider-inset":"0px"},"context"===t.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===t.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===t.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},t.children?{"--Divider-gap":e.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===t.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===t.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===t.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===t.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===t.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===t.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===t.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===t.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===t.orientation?"initial":"var(--Divider-thickness)"})),y=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"JoyDivider"}),{className:a,children:l,component:s=null!=l?"div":"hr",inset:c,orientation:d="horizontal",role:f="hr"!==s?"separator":void 0,slots:y={},slotProps:b={}}=r,P=(0,n.Z)(r,m),_=(0,o.Z)({},r,{inset:c,role:f,orientation:d,component:s}),S=g(_),x=(0,o.Z)({},P,{component:s,slots:y,slotProps:b}),[w,C]=(0,h.Z)("root",{ref:t,className:(0,i.Z)(S.root,a),elementType:v,externalForwardedProps:x,ownerState:_,additionalProps:(0,o.Z)({as:s,role:f},"separator"===f&&"vertical"===d&&{"aria-orientation":"vertical"})});return(0,p.jsx)(w,(0,o.Z)({},C,{children:l}))});y.muiName="Divider";var b=y},53047:function(e,t,r){"use strict";r.d(t,{Qh:function(){return _},ZP:function(){return w}});var n=r(46750),o=r(40431),a=r(86006),i=r(53832),l=r(99179),s=r(73811),c=r(47562),u=r(50645),d=r(88930),f=r(47093),h=r(326),p=r(18587);function m(e){return(0,p.d6)("MuiIconButton",e)}let g=(0,p.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var v=r(42858),y=r(9268);let b=["children","action","component","color","disabled","variant","size","slots","slotProps"],P=e=>{let{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,size:a,variant:l}=e,s={root:["root",r&&"disabled",n&&"focusVisible",l&&`variant${(0,i.Z)(l)}`,t&&`color${(0,i.Z)(t)}`,a&&`size${(0,i.Z)(a)}`]},u=(0,c.Z)(s,m,{});return n&&o&&(u.root+=` ${o}`),u},_=(0,u.Z)("button")(({theme:e,ownerState:t})=>{var r,n,a,i;return[(0,o.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color]}},{"&:active":null==(a=e.variants[`${t.variant}Active`])?void 0:a[t.color]},{[`&.${g.disabled}`]:null==(i=e.variants[`${t.variant}Disabled`])?void 0:i[t.color]}]}),S=(0,u.Z)(_,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),x=a.forwardRef(function(e,t){var r;let i=(0,d.Z)({props:e,name:"JoyIconButton"}),{children:c,action:u,component:p="button",color:m="primary",disabled:g,variant:_="soft",size:x="md",slots:w={},slotProps:C={}}=i,O=(0,n.Z)(i,b),j=a.useContext(v.Z),I=e.variant||j.variant||_,E=e.size||j.size||x,{getColor:R}=(0,f.VT)(I),L=R(e.color,j.color||m),k=null!=(r=e.disabled)?r:j.disabled||g,M=a.useRef(null),N=(0,l.Z)(M,t),{focusVisible:T,setFocusVisible:A,getRootProps:Z}=(0,s.Z)((0,o.Z)({},i,{disabled:k,rootRef:N}));a.useImperativeHandle(u,()=>({focusVisible:()=>{var e;A(!0),null==(e=M.current)||e.focus()}}),[A]);let z=(0,o.Z)({},i,{component:p,color:L,disabled:k,variant:I,size:E,focusVisible:T,instanceSize:e.size}),$=P(z),B=(0,o.Z)({},O,{component:p,slots:w,slotProps:C}),[H,D]=(0,h.Z)("root",{ref:t,className:$.root,elementType:S,getSlotProps:Z,externalForwardedProps:B,ownerState:z});return(0,y.jsx)(H,(0,o.Z)({},D,{children:c}))});x.muiName="IconButton";var w=x},64521:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(53832),s=r(44542),c=r(47562),u=r(50645),d=r(88930),f=r(47093),h=r(326),p=r(18587);function m(e){return(0,p.d6)("MuiListItem",e)}(0,p.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var g=r(31242),v=r(76620),y=r(52058),b=r(10504),P=r(68057),_=r(8189),S=r(9268);let x=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],w=e=>{let{sticky:t,nested:r,nesting:n,variant:o,color:a}=e,i={root:["root",r&&"nested",n&&"nesting",t&&"sticky",a&&`color${(0,l.Z)(a)}`,o&&`variant${(0,l.Z)(o)}`],startAction:["startAction"],endAction:["endAction"]};return(0,c.Z)(i,m,{})},C=(0,u.Z)("li",{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},(0,o.Z)({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"flex",flex:"none",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&(0,o.Z)({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)",fontSize:"var(--ListItem-fontSize)",fontFamily:e.vars.fontFamily.body},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"}),null==(r=e.variants[t.variant])?void 0:r[t.color]]}),O=(0,u.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),j=(0,u.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),I=a.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"JoyListItem"}),l=a.useContext(_.Z),c=a.useContext(b.Z),u=a.useContext(v.Z),p=a.useContext(y.Z),m=a.useContext(g.Z),{component:I,className:E,children:R,nested:L=!1,sticky:k=!1,variant:M="plain",color:N="neutral",startAction:T,endAction:A,role:Z,slots:z={},slotProps:$={}}=r,B=(0,n.Z)(r,x),{getColor:H}=(0,f.VT)(M),D=H(e.color,N),[W,U]=a.useState(""),[F,q]=(null==c?void 0:c.split(":"))||["",""],V=I||(F&&!F.match(/^(ul|ol|menu)$/)?"div":void 0),G="menu"===l?"none":void 0;c&&(G=({menu:"none",menubar:"none",group:"presentation"})[q]),Z&&(G=Z);let J=(0,o.Z)({},r,{sticky:k,startAction:T,endAction:A,row:u,wrap:p,variant:M,color:D,nesting:m,nested:L,component:V,role:G}),X=w(J),K=(0,o.Z)({},B,{component:V,slots:z,slotProps:$}),[Y,Q]=(0,h.Z)("root",{additionalProps:{role:G},ref:t,className:(0,i.Z)(X.root,E),elementType:C,externalForwardedProps:K,ownerState:J}),[ee,et]=(0,h.Z)("startAction",{className:X.startAction,elementType:O,externalForwardedProps:K,ownerState:J}),[er,en]=(0,h.Z)("endAction",{className:X.endAction,elementType:j,externalForwardedProps:K,ownerState:J});return(0,S.jsx)(P.Z.Provider,{value:U,children:(0,S.jsx)(g.Z.Provider,{value:!!L&&(W||!0),children:(0,S.jsxs)(Y,(0,o.Z)({},Q,{children:[T&&(0,S.jsx)(ee,(0,o.Z)({},et,{children:T})),a.Children.map(R,(e,t)=>a.isValidElement(e)?a.cloneElement(e,(0,o.Z)({},0===t&&{"data-first-child":""},(0,s.Z)(e,["ListItem"])&&{component:e.props.component||"div"})):e),A&&(0,S.jsx)(er,(0,o.Z)({},en,{children:A}))]}))})})});I.muiName="ListItem";var E=I},64579:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(40431),o=r(46750),a=r(86006),i=r(89791),l=r(47562),s=r(50645),c=r(88930),u=r(18587);function d(e){return(0,u.d6)("MuiListItemContent",e)}(0,u.sI)("MuiListItemContent",["root"]);var f=r(326),h=r(9268);let p=["component","className","children","slots","slotProps"],m=()=>(0,l.Z)({root:["root"]},d,{}),g=(0,s.Z)("div",{name:"JoyListItemContent",slot:"Root",overridesResolver:(e,t)=>t.root})({flex:"1 1 auto",minWidth:0}),v=a.forwardRef(function(e,t){let r=(0,c.Z)({props:e,name:"JoyListItemContent"}),{component:a,className:l,children:s,slots:u={},slotProps:d={}}=r,v=(0,o.Z)(r,p),y=(0,n.Z)({},r),b=m(),P=(0,n.Z)({},v,{component:a,slots:u,slotProps:d}),[_,S]=(0,f.Z)("root",{ref:t,className:(0,i.Z)(b.root,l),elementType:g,externalForwardedProps:P,ownerState:y});return(0,h.jsx)(_,(0,n.Z)({},S,{children:s}))});var y=v},62921:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(47562),s=r(50645),c=r(88930),u=r(18587);function d(e){return(0,u.d6)("MuiListItemDecorator",e)}(0,u.sI)("MuiListItemDecorator",["root"]);var f=r(54438),h=r(326),p=r(9268);let m=["component","className","children","slots","slotProps"],g=()=>(0,l.Z)({root:["root"]},d,{}),v=(0,s.Z)("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,o.Z)({boxSizing:"border-box",display:"inline-flex",color:"var(--ListItemDecorator-color)"},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",alignItems:"center"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center"})),y=a.forwardRef(function(e,t){let r=(0,c.Z)({props:e,name:"JoyListItemDecorator"}),{component:l,className:s,children:u,slots:d={},slotProps:y={}}=r,b=(0,n.Z)(r,m),P=a.useContext(f.Z),_=(0,o.Z)({parentOrientation:P},r),S=g(),x=(0,o.Z)({},b,{component:l,slots:d,slotProps:y}),[w,C]=(0,h.Z)("root",{ref:t,className:(0,i.Z)(S.root,s),elementType:v,externalForwardedProps:x,ownerState:_});return(0,p.jsx)(w,(0,o.Z)({},C,{children:u}))});var b=y},68113:function(e,t,r){"use strict";r.d(t,{Z:function(){return S}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(53832),s=r(49657),c=r(47562),u=r(50645),d=r(88930),f=r(47093),h=r(18587);function p(e){return(0,h.d6)("MuiListSubheader",e)}(0,h.sI)("MuiListSubheader",["root","sticky","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var m=r(68057),g=r(326),v=r(9268);let y=["component","className","children","id","sticky","variant","color","slots","slotProps"],b=e=>{let{variant:t,color:r,sticky:n}=e,o={root:["root",n&&"sticky",r&&`color${(0,l.Z)(r)}`,t&&`variant${(0,l.Z)(t)}`]};return(0,c.Z)(o,p,{})},P=(0,u.Z)("div",{name:"JoyListSubheader",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;return(0,o.Z)({boxSizing:"border-box",display:"flex",alignItems:"center",marginInline:"var(--ListItem-marginInline)",paddingBlock:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)",minBlockSize:"var(--ListItem-minHeight)",fontSize:"calc(var(--ListItem-fontSize) * 0.75)",fontWeight:e.vars.fontWeight.lg,fontFamily:e.vars.fontFamily.body,letterSpacing:e.vars.letterSpacing.md,textTransform:"uppercase"},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"},{color:t.color&&"context"!==t.color?`rgba(${null==(r=e.vars.palette[t.color])?void 0:r.mainChannel} / 1)`:e.vars.palette.text.tertiary},null==(n=e.variants[t.variant])?void 0:n[t.color])}),_=a.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"JoyListSubheader"}),{component:l,className:c,children:u,id:h,sticky:p=!1,variant:_,color:S,slots:x={},slotProps:w={}}=r,C=(0,n.Z)(r,y),{getColor:O}=(0,f.VT)(_),j=O(e.color,S),I=(0,s.Z)(h),E=a.useContext(m.Z);a.useEffect(()=>{E&&E(I||"")},[E,I]);let R=(0,o.Z)({},r,{id:I,sticky:p,variant:_,color:_?null!=j?j:"neutral":j}),L=b(R),k=(0,o.Z)({},C,{component:l,slots:x,slotProps:w}),[M,N]=(0,g.Z)("root",{ref:t,className:(0,i.Z)(L.root,c),elementType:P,externalForwardedProps:k,ownerState:R,additionalProps:{as:l,id:I}});return(0,v.jsx)(M,(0,o.Z)({},N,{children:u}))});var S=_},68057:function(e,t,r){"use strict";var n=r(86006);let o=n.createContext(void 0);t.Z=o},79914:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return ew}});var o=r(90151),a=r(88101),i=r(86006),l=r(17583),s=r(34777),c=r(56222),u=r(27977),d=r(49132),f=r(8683),h=r.n(f),p=r(39112),m=r(50946),g=r(13308),v=e=>{let{type:t,children:r,prefixCls:n,buttonProps:o,close:a,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=i.useRef(!1),h=i.useRef(null),[v,y]=(0,p.Z)(!1),b=function(){null==a||a.apply(void 0,arguments)};i.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=h.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let P=e=>{e&&e.then&&(y(!0),e.then(function(){y(!1,!0),b.apply(void 0,arguments),f.current=!1},e=>{if(y(!1,!0),f.current=!1,null==c||!c())return Promise.reject(e)}))};return i.createElement(m.ZP,Object.assign({},(0,g.n)(t),{onClick:e=>{let t;if(!f.current){if(f.current=!0,!d){b();return}if(s){var r;if(t=d(e),u&&!((r=t)&&r.then)){f.current=!1,b(e);return}}else if(d.length)t=d(a),f.current=!1;else if(!(t=d())){b();return}P(t)}},loading:v,prefixCls:n},o,{ref:h}),r)},y=r(80716),b=r(6783),P=r(31533),_=r(40431),S=r(60456),x=r(61085),w=r(88684),C=r(14071),O=r(53457),j=r(48580),I=r(42442);function E(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function R(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var o=e.document;"number"!=typeof(r=o.documentElement[n])&&(r=o.body[n])}return r}var L=r(78641),k=i.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),M={width:0,height:0,overflow:"hidden",outline:"none"},N=i.forwardRef(function(e,t){var r,n,o,a=e.prefixCls,l=e.className,s=e.style,c=e.title,u=e.ariaId,d=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,g=e.children,v=e.bodyStyle,y=e.bodyProps,b=e.modalRender,P=e.onMouseDown,S=e.onMouseUp,x=e.holderRef,C=e.visible,O=e.forceRender,j=e.width,I=e.height,E=(0,i.useRef)(),R=(0,i.useRef)();i.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===R.current?E.current.focus():e||t!==E.current||R.current.focus()}}});var L={};void 0!==j&&(L.width=j),void 0!==I&&(L.height=I),d&&(r=i.createElement("div",{className:"".concat(a,"-footer")},d)),c&&(n=i.createElement("div",{className:"".concat(a,"-header")},i.createElement("div",{className:"".concat(a,"-title"),id:u},c))),f&&(o=i.createElement("button",{type:"button",onClick:m,"aria-label":"Close",className:"".concat(a,"-close")},p||i.createElement("span",{className:"".concat(a,"-close-x")})));var N=i.createElement("div",{className:"".concat(a,"-content")},o,n,i.createElement("div",(0,_.Z)({className:"".concat(a,"-body"),style:v},y),g),r);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?u:null,"aria-modal":"true",ref:x,style:(0,w.Z)((0,w.Z)({},s),L),className:h()(a,l),onMouseDown:P,onMouseUp:S},i.createElement("div",{tabIndex:0,ref:E,style:M,"aria-hidden":"true"}),i.createElement(k,{shouldUpdate:C||O},b?b(N):N),i.createElement("div",{tabIndex:0,ref:R,style:M,"aria-hidden":"true"}))}),T=i.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,o=e.style,a=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,m=(0,i.useRef)(),g=i.useState(),v=(0,S.Z)(g,2),y=v[0],b=v[1],P={};function x(){var e,t,r,n,o,a=(r={left:(t=(e=m.current).getBoundingClientRect()).left,top:t.top},o=(n=e.ownerDocument).defaultView||n.parentWindow,r.left+=R(o),r.top+=R(o,!0),r);b(p?"".concat(p.x-a.left,"px ").concat(p.y-a.top,"px"):"")}return y&&(P.transformOrigin=y),i.createElement(L.ZP,{visible:l,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:u,removeOnLeave:c,ref:m},function(l,s){var c=l.className,u=l.style;return i.createElement(N,(0,_.Z)({},e,{ref:t,title:n,ariaId:d,prefixCls:r,holderRef:s,style:(0,w.Z)((0,w.Z)((0,w.Z)({},u),o),P),className:h()(a,c)}))})});function A(e){var t=e.prefixCls,r=e.style,n=e.visible,o=e.maskProps,a=e.motionName;return i.createElement(L.ZP,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(e,n){var a=e.className,l=e.style;return i.createElement("div",(0,_.Z)({ref:n,style:(0,w.Z)((0,w.Z)({},l),r),className:h()("".concat(t,"-mask"),a)},o))})}function Z(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,n=e.zIndex,o=e.visible,a=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,c=e.focusTriggerAfterClose,u=void 0===c||c,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,m=e.onClose,g=e.afterOpenChange,v=e.afterClose,y=e.transitionName,b=e.animation,P=e.closable,x=e.mask,R=void 0===x||x,L=e.maskTransitionName,k=e.maskAnimation,M=e.maskClosable,N=e.maskStyle,Z=e.maskProps,z=e.rootClassName,$=(0,i.useRef)(),B=(0,i.useRef)(),H=(0,i.useRef)(),D=i.useState(a),W=(0,S.Z)(D,2),U=W[0],F=W[1],q=(0,O.Z)();function V(e){null==m||m(e)}var G=(0,i.useRef)(!1),J=(0,i.useRef)(),X=null;return(void 0===M||M)&&(X=function(e){G.current?G.current=!1:B.current===e.target&&V(e)}),(0,i.useEffect)(function(){a&&(F(!0),(0,C.Z)(B.current,document.activeElement)||($.current=document.activeElement))},[a]),(0,i.useEffect)(function(){return function(){clearTimeout(J.current)}},[]),i.createElement("div",(0,_.Z)({className:h()("".concat(r,"-root"),z)},(0,I.Z)(e,{data:!0})),i.createElement(A,{prefixCls:r,visible:R&&a,motionName:E(r,L,k),style:(0,w.Z)({zIndex:n},N),maskProps:Z}),i.createElement("div",(0,_.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===j.Z.ESC){e.stopPropagation(),V(e);return}a&&e.keyCode===j.Z.TAB&&H.current.changeActive(!e.shiftKey)},className:h()("".concat(r,"-wrap"),f),ref:B,onClick:X,style:(0,w.Z)((0,w.Z)({zIndex:n},d),{},{display:U?null:"none"})},p),i.createElement(T,(0,_.Z)({},e,{onMouseDown:function(){clearTimeout(J.current),G.current=!0},onMouseUp:function(){J.current=setTimeout(function(){G.current=!1})},ref:H,closable:void 0===P||P,ariaId:q,prefixCls:r,visible:a&&U,onClose:V,onVisibleChanged:function(e){if(e)!function(){if(!(0,C.Z)(B.current,document.activeElement)){var e;null===(e=H.current)||void 0===e||e.focus()}}();else{if(F(!1),R&&$.current&&u){try{$.current.focus({preventScroll:!0})}catch(e){}$.current=null}U&&(null==v||v())}null==g||g(e)},motionName:E(r,y,b)}))))}T.displayName="Content";var z=function(e){var t=e.visible,r=e.getContainer,n=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,l=e.afterClose,s=i.useState(t),c=(0,S.Z)(s,2),u=c[0],d=c[1];return(i.useEffect(function(){t&&d(!0)},[t]),n||!a||u)?i.createElement(x.Z,{open:t||n||u,autoDestroy:!1,getContainer:r,autoLock:t||u},i.createElement(Z,(0,_.Z)({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),d(!1)}}))):null};z.displayName="Dialog";var $=r(71693),B=r(79746),H=r(67518),D=r(12381),W=r(66255);function U(e,t){return i.createElement("span",{className:`${e}-close-x`},t||i.createElement(P.Z,{className:`${e}-close-icon`}))}let F=e=>{let{okText:t,okType:r="primary",cancelText:n,confirmLoading:o,onOk:a,onCancel:l,okButtonProps:s,cancelButtonProps:c}=e,[u]=(0,b.Z)("Modal",(0,W.A)());return i.createElement(i.Fragment,null,i.createElement(m.ZP,Object.assign({onClick:l},c),n||(null==u?void 0:u.cancelText)),i.createElement(m.ZP,Object.assign({},(0,g.n)(r),{loading:o,onClick:a},s),t||(null==u?void 0:u.okText)))};var q=r(98663),V=r(96390),G=r(87270),J=r(40650),X=r(70721);function K(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}let Y=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},K("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},K("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:(0,V.J$)(e)}]},Q=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,q.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,q.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},ee=e=>{let{componentCls:t}=e,r=`${t}-confirm`;return{[r]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${r}-body-wrapper`]:Object.assign({},(0,q.dF)()),[`${r}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${r}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${r}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${r}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${r}-title`]:{flex:1},[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${r}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${r}-error ${r}-body > ${e.iconCls}`]:{color:e.colorError},[`${r}-warning ${r}-body > ${e.iconCls}, - ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},et=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},er=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[n]:{[`${r}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${n}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${n}-btns`]:{marginTop:e.marginLG}}}};var en=(0,J.Z)("Modal",e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5,o=(0,X.TS)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:n*r+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[Q(o),ee(o),et(o),Y(o),e.wireframe&&er(o),(0,G._y)(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})),eo=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};(0,B.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{n={x:e.pageX,y:e.pageY},setTimeout(()=>{n=null},100)},!0);var ea=e=>{var t;let{getPopupContainer:r,getPrefixCls:o,direction:a,modal:l}=i.useContext(H.E_),s=t=>{let{onCancel:r}=e;null==r||r(t)},{prefixCls:u,className:c,rootClassName:d,open:f,wrapClassName:p,centered:m,getContainer:g,closeIcon:v,closable:b,focusTriggerAfterClose:_=!0,style:S,visible:w,width:x=520,footer:C}=e,O=eo(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),j=o("modal",u),E=o(),[I,R]=en(j),L=h()(p,{[`${j}-centered`]:!!m,[`${j}-wrap-rtl`]:"rtl"===a}),k=void 0===C?i.createElement(F,Object.assign({},e,{onOk:t=>{let{onOk:r}=e;null==r||r(t)},onCancel:s})):C,[M,N]=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.createElement(P.Z,null),o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a="boolean"==typeof e?e:void 0===t?!!o:!1!==t&&null!==t;if(!a)return[!1,null];let l="boolean"==typeof t||null==t?n:t;return[!0,r?r(l):l]}(b,v,e=>U(j,e),i.createElement(P.Z,{className:`${j}-close-icon`}),!0);return I(i.createElement(D.BR,null,i.createElement(z.Ux,{status:!0,override:!0},i.createElement(Z,Object.assign({width:x},O,{getContainer:void 0===g?r:g,prefixCls:j,rootClassName:h()(R,d),wrapClassName:L,footer:k,visible:null!=f?f:w,mousePosition:null!==(t=O.mousePosition)&&void 0!==t?t:n,onClose:s,closable:M,closeIcon:N,focusTriggerAfterClose:_,transitionName:(0,y.m)(E,"zoom",e.transitionName),maskTransitionName:(0,y.m)(E,"fade",e.maskTransitionName),className:h()(R,c,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),S)})))))};function ei(e){let{icon:t,onCancel:r,onOk:n,close:o,onConfirm:a,isSilent:l,okText:f,okButtonProps:h,cancelText:p,cancelButtonProps:m,confirmPrefixCls:g,rootPrefixCls:y,type:P,okCancel:_,footer:S,locale:w}=e,x=t;if(!t&&null!==t)switch(P){case"info":x=i.createElement(d.Z,null);break;case"success":x=i.createElement(s.Z,null);break;case"error":x=i.createElement(u.Z,null);break;default:x=i.createElement(c.Z,null)}let C=e.okType||"primary",O=null!=_?_:"confirm"===P,j=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[E]=(0,b.Z)("Modal"),I=w||E,R=O&&i.createElement(v,{isSilent:l,actionFn:r,close:function(){null==o||o.apply(void 0,arguments),null==a||a(!1)},autoFocus:"cancel"===j,buttonProps:m,prefixCls:`${y}-btn`},p||(null==I?void 0:I.cancelText));return i.createElement("div",{className:`${g}-body-wrapper`},i.createElement("div",{className:`${g}-body`},x,void 0===e.title?null:i.createElement("span",{className:`${g}-title`},e.title),i.createElement("div",{className:`${g}-content`},e.content)),void 0===S?i.createElement("div",{className:`${g}-btns`},R,i.createElement(v,{isSilent:l,type:C,actionFn:n,close:function(){null==o||o.apply(void 0,arguments),null==a||a(!0)},autoFocus:"ok"===j,buttonProps:h,prefixCls:`${y}-btn`},f||(O?null==I?void 0:I.okText:null==I?void 0:I.justOkText))):S)}var el=e=>{let{close:t,zIndex:r,afterClose:n,visible:o,open:a,keyboard:s,centered:u,getContainer:c,maskStyle:d,direction:f,prefixCls:p,wrapClassName:m,rootPrefixCls:g,iconPrefixCls:v,theme:b,bodyStyle:P,closable:_=!1,closeIcon:S,modalRender:w,focusTriggerAfterClose:x}=e,C=`${p}-confirm`,O=e.width||416,j=e.style||{},E=void 0===e.mask||e.mask,I=void 0!==e.maskClosable&&e.maskClosable,R=h()(C,`${C}-${e.type}`,{[`${C}-rtl`]:"rtl"===f},e.className);return i.createElement(l.ZP,{prefixCls:g,iconPrefixCls:v,direction:f,theme:b},i.createElement(ea,{prefixCls:p,className:R,wrapClassName:h()({[`${C}-centered`]:!!e.centered},m),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:a,title:"",footer:null,transitionName:(0,y.m)(g,"zoom",e.transitionName),maskTransitionName:(0,y.m)(g,"fade",e.maskTransitionName),mask:E,maskClosable:I,maskStyle:d,style:j,bodyStyle:P,width:O,zIndex:r,afterClose:n,keyboard:s,centered:u,getContainer:c,closable:_,closeIcon:S,modalRender:w,focusTriggerAfterClose:x},i.createElement(ei,Object.assign({},e,{confirmPrefixCls:C}))))},es=[],eu=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let ec="";function ed(e){let t;let r=document.createDocumentFragment(),n=Object.assign(Object.assign({},e),{close:c,open:!0});function s(){for(var t=arguments.length,n=Array(t),i=0;ie&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let e=(0,W.A)(),{getPrefixCls:t,getIconPrefixCls:d,getTheme:f}=(0,l.w6)(),h=t(void 0,ec),p=s||`${h}-modal`,m=d(),g=f(),v=u;!1===v&&(v=void 0),(0,a.s)(i.createElement(el,Object.assign({},c,{getContainer:v,prefixCls:p,rootPrefixCls:h,iconPrefixCls:m,okText:n,locale:e,theme:g,cancelText:o||e.cancelText})),r)})}function c(){for(var t=arguments.length,r=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),s.apply(this,r)}})).visible&&delete n.visible,u(n)}return u(n),es.push(c),{destroy:c,update:function(e){u(n="function"==typeof e?e(n):Object.assign(Object.assign({},n),e))}}}function ef(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eh(e){return Object.assign(Object.assign({},e),{type:"info"})}function ep(e){return Object.assign(Object.assign({},e),{type:"success"})}function em(e){return Object.assign(Object.assign({},e),{type:"error"})}function eg(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var ev=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ey=r(91295),eb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},eP=i.forwardRef((e,t)=>{var r,{afterClose:n,config:a}=e,l=eb(e,["afterClose","config"]);let[s,u]=i.useState(!0),[c,d]=i.useState(a),{direction:f,getPrefixCls:h}=i.useContext(H.E_),p=h("modal"),m=h(),g=function(){u(!1);for(var e=arguments.length,t=Array(e),r=0;re&&e.triggerCancel);c.onCancel&&n&&c.onCancel.apply(c,[()=>{}].concat((0,o.Z)(t.slice(1))))};i.useImperativeHandle(t,()=>({destroy:g,update:e=>{d(t=>Object.assign(Object.assign({},t),e))}}));let v=null!==(r=c.okCancel)&&void 0!==r?r:"confirm"===c.type,[y]=(0,b.Z)("Modal",ey.Z.Modal);return i.createElement(el,Object.assign({prefixCls:p,rootPrefixCls:m},c,{close:g,open:s,afterClose:()=>{var e;n(),null===(e=c.afterClose)||void 0===e||e.call(c)},okText:c.okText||(v?null==y?void 0:y.okText:null==y?void 0:y.justOkText),direction:c.direction||f,cancelText:c.cancelText||(null==y?void 0:y.cancelText)},l))});let e_=0,eS=i.memo(i.forwardRef((e,t)=>{let[r,n]=function(){let[e,t]=i.useState([]),r=i.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[]);return[e,r]}();return i.useImperativeHandle(t,()=>({patchElement:n}),[]),i.createElement(i.Fragment,null,r)}));function ew(e){return ed(ef(e))}ea.useModal=function(){let e=i.useRef(null),[t,r]=i.useState([]);i.useEffect(()=>{if(t.length){let e=(0,o.Z)(t);e.forEach(e=>{e()}),r([])}},[t]);let n=i.useCallback(t=>function(n){var a;let l,s;e_+=1;let u=i.createRef(),c=new Promise(e=>{l=e}),d=!1,f=i.createElement(eP,{key:`modal-${e_}`,config:t(n),ref:u,afterClose:()=>{null==s||s()},isSilent:()=>d,onConfirm:e=>{l(e)}});return(s=null===(a=e.current)||void 0===a?void 0:a.patchElement(f))&&es.push(s),{destroy:()=>{function e(){var e;null===(e=u.current)||void 0===e||e.destroy()}u.current?e():r(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=u.current)||void 0===t||t.update(e)}u.current?t():r(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(d=!0,c.then(e))}},[]),a=i.useMemo(()=>({info:n(eh),success:n(ep),error:n(em),warning:n(ef),confirm:n(eg)}),[]);return[a,i.createElement(eS,{key:"modal-holder",ref:e})]},ea.info=function(e){return ed(eh(e))},ea.success=function(e){return ed(ep(e))},ea.error=function(e){return ed(em(e))},ea.warning=ew,ea.warn=ew,ea.confirm=function(e){return ed(eg(e))},ea.destroyAll=function(){for(;es.length;){let e=es.pop();e&&e()}},ea.config=function(e){let{rootPrefixCls:t}=e;ec=t},ea._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:r,closeIcon:n,closable:o,type:a,title:l,children:s}=e,u=ev(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=i.useContext(H.E_),d=c(),f=t||c("modal"),[,p]=en(f),m=`${f}-confirm`,g={};return g=a?{closable:null!=o&&o,title:"",footer:"",children:i.createElement(ei,Object.assign({},e,{confirmPrefixCls:m,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:l,footer:void 0===e.footer?i.createElement(F,Object.assign({},e)):e.footer,children:s},i.createElement(N,Object.assign({prefixCls:f,className:h()(p,`${f}-pure-panel`,a&&m,a&&`${m}-${a}`,r)},u,{closeIcon:U(f,n),closable:o},g))};var ex=ea},96390:function(e,t,r){"use strict";r.d(t,{J$:function(){return l}});var n=r(84596),o=r(29138);let a=new n.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new n.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:r}=e,n=`${r}-fade`,l=t?"&":"";return[(0,o.R)(n,a,i,e.motionDurationMid,t),{[` + ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},et=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},er=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[n]:{[`${r}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${n}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${n}-btns`]:{marginTop:e.marginLG}}}};var en=(0,J.Z)("Modal",e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5,o=(0,X.TS)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:n*r+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[Q(o),ee(o),et(o),Y(o),e.wireframe&&er(o),(0,G._y)(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})),eo=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};(0,$.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{n={x:e.pageX,y:e.pageY},setTimeout(()=>{n=null},100)},!0);var ea=e=>{var t;let{getPopupContainer:r,getPrefixCls:o,direction:a,modal:l}=i.useContext(B.E_),s=t=>{let{onCancel:r}=e;null==r||r(t)},{prefixCls:c,className:u,rootClassName:d,open:f,wrapClassName:p,centered:m,getContainer:g,closeIcon:v,closable:b,focusTriggerAfterClose:_=!0,style:S,visible:x,width:w=520,footer:C}=e,O=eo(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),j=o("modal",c),I=o(),[E,R]=en(j),L=h()(p,{[`${j}-centered`]:!!m,[`${j}-wrap-rtl`]:"rtl"===a}),k=void 0===C?i.createElement(F,Object.assign({},e,{onOk:t=>{let{onOk:r}=e;null==r||r(t)},onCancel:s})):C,[M,N]=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.createElement(P.Z,null),o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a="boolean"==typeof e?e:void 0===t?!!o:!1!==t&&null!==t;if(!a)return[!1,null];let l="boolean"==typeof t||null==t?n:t;return[!0,r?r(l):l]}(b,v,e=>U(j,e),i.createElement(P.Z,{className:`${j}-close-icon`}),!0);return E(i.createElement(D.BR,null,i.createElement(H.Ux,{status:!0,override:!0},i.createElement(z,Object.assign({width:w},O,{getContainer:void 0===g?r:g,prefixCls:j,rootClassName:h()(R,d),wrapClassName:L,footer:k,visible:null!=f?f:x,mousePosition:null!==(t=O.mousePosition)&&void 0!==t?t:n,onClose:s,closable:M,closeIcon:N,focusTriggerAfterClose:_,transitionName:(0,y.m)(I,"zoom",e.transitionName),maskTransitionName:(0,y.m)(I,"fade",e.maskTransitionName),className:h()(R,u,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),S)})))))};function ei(e){let{icon:t,onCancel:r,onOk:n,close:o,onConfirm:a,isSilent:l,okText:f,okButtonProps:h,cancelText:p,cancelButtonProps:m,confirmPrefixCls:g,rootPrefixCls:y,type:P,okCancel:_,footer:S,locale:x}=e,w=t;if(!t&&null!==t)switch(P){case"info":w=i.createElement(d.Z,null);break;case"success":w=i.createElement(s.Z,null);break;case"error":w=i.createElement(c.Z,null);break;default:w=i.createElement(u.Z,null)}let C=e.okType||"primary",O=null!=_?_:"confirm"===P,j=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[I]=(0,b.Z)("Modal"),E=x||I,R=O&&i.createElement(v,{isSilent:l,actionFn:r,close:function(){null==o||o.apply(void 0,arguments),null==a||a(!1)},autoFocus:"cancel"===j,buttonProps:m,prefixCls:`${y}-btn`},p||(null==E?void 0:E.cancelText));return i.createElement("div",{className:`${g}-body-wrapper`},i.createElement("div",{className:`${g}-body`},w,void 0===e.title?null:i.createElement("span",{className:`${g}-title`},e.title),i.createElement("div",{className:`${g}-content`},e.content)),void 0===S?i.createElement("div",{className:`${g}-btns`},R,i.createElement(v,{isSilent:l,type:C,actionFn:n,close:function(){null==o||o.apply(void 0,arguments),null==a||a(!0)},autoFocus:"ok"===j,buttonProps:h,prefixCls:`${y}-btn`},f||(O?null==E?void 0:E.okText:null==E?void 0:E.justOkText))):S)}var el=e=>{let{close:t,zIndex:r,afterClose:n,visible:o,open:a,keyboard:s,centered:c,getContainer:u,maskStyle:d,direction:f,prefixCls:p,wrapClassName:m,rootPrefixCls:g,iconPrefixCls:v,theme:b,bodyStyle:P,closable:_=!1,closeIcon:S,modalRender:x,focusTriggerAfterClose:w}=e,C=`${p}-confirm`,O=e.width||416,j=e.style||{},I=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,R=h()(C,`${C}-${e.type}`,{[`${C}-rtl`]:"rtl"===f},e.className);return i.createElement(l.ZP,{prefixCls:g,iconPrefixCls:v,direction:f,theme:b},i.createElement(ea,{prefixCls:p,className:R,wrapClassName:h()({[`${C}-centered`]:!!e.centered},m),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:a,title:"",footer:null,transitionName:(0,y.m)(g,"zoom",e.transitionName),maskTransitionName:(0,y.m)(g,"fade",e.maskTransitionName),mask:I,maskClosable:E,maskStyle:d,style:j,bodyStyle:P,width:O,zIndex:r,afterClose:n,keyboard:s,centered:c,getContainer:u,closable:_,closeIcon:S,modalRender:x,focusTriggerAfterClose:w},i.createElement(ei,Object.assign({},e,{confirmPrefixCls:C}))))},es=[],ec=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let eu="";function ed(e){let t;let r=document.createDocumentFragment(),n=Object.assign(Object.assign({},e),{close:u,open:!0});function s(){for(var t=arguments.length,n=Array(t),i=0;ie&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let e=(0,W.A)(),{getPrefixCls:t,getIconPrefixCls:d,getTheme:f}=(0,l.w6)(),h=t(void 0,eu),p=s||`${h}-modal`,m=d(),g=f(),v=c;!1===v&&(v=void 0),(0,a.s)(i.createElement(el,Object.assign({},u,{getContainer:v,prefixCls:p,rootPrefixCls:h,iconPrefixCls:m,okText:n,locale:e,theme:g,cancelText:o||e.cancelText})),r)})}function u(){for(var t=arguments.length,r=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),s.apply(this,r)}})).visible&&delete n.visible,c(n)}return c(n),es.push(u),{destroy:u,update:function(e){c(n="function"==typeof e?e(n):Object.assign(Object.assign({},n),e))}}}function ef(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eh(e){return Object.assign(Object.assign({},e),{type:"info"})}function ep(e){return Object.assign(Object.assign({},e),{type:"success"})}function em(e){return Object.assign(Object.assign({},e),{type:"error"})}function eg(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var ev=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},ey=r(91295),eb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},eP=i.forwardRef((e,t)=>{var r,{afterClose:n,config:a}=e,l=eb(e,["afterClose","config"]);let[s,c]=i.useState(!0),[u,d]=i.useState(a),{direction:f,getPrefixCls:h}=i.useContext(B.E_),p=h("modal"),m=h(),g=function(){c(!1);for(var e=arguments.length,t=Array(e),r=0;re&&e.triggerCancel);u.onCancel&&n&&u.onCancel.apply(u,[()=>{}].concat((0,o.Z)(t.slice(1))))};i.useImperativeHandle(t,()=>({destroy:g,update:e=>{d(t=>Object.assign(Object.assign({},t),e))}}));let v=null!==(r=u.okCancel)&&void 0!==r?r:"confirm"===u.type,[y]=(0,b.Z)("Modal",ey.Z.Modal);return i.createElement(el,Object.assign({prefixCls:p,rootPrefixCls:m},u,{close:g,open:s,afterClose:()=>{var e;n(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(v?null==y?void 0:y.okText:null==y?void 0:y.justOkText),direction:u.direction||f,cancelText:u.cancelText||(null==y?void 0:y.cancelText)},l))});let e_=0,eS=i.memo(i.forwardRef((e,t)=>{let[r,n]=function(){let[e,t]=i.useState([]),r=i.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[]);return[e,r]}();return i.useImperativeHandle(t,()=>({patchElement:n}),[]),i.createElement(i.Fragment,null,r)}));function ex(e){return ed(ef(e))}ea.useModal=function(){let e=i.useRef(null),[t,r]=i.useState([]);i.useEffect(()=>{if(t.length){let e=(0,o.Z)(t);e.forEach(e=>{e()}),r([])}},[t]);let n=i.useCallback(t=>function(n){var a;let l,s;e_+=1;let c=i.createRef(),u=new Promise(e=>{l=e}),d=!1,f=i.createElement(eP,{key:`modal-${e_}`,config:t(n),ref:c,afterClose:()=>{null==s||s()},isSilent:()=>d,onConfirm:e=>{l(e)}});return(s=null===(a=e.current)||void 0===a?void 0:a.patchElement(f))&&es.push(s),{destroy:()=>{function e(){var e;null===(e=c.current)||void 0===e||e.destroy()}c.current?e():r(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=c.current)||void 0===t||t.update(e)}c.current?t():r(e=>[].concat((0,o.Z)(e),[t]))},then:e=>(d=!0,u.then(e))}},[]),a=i.useMemo(()=>({info:n(eh),success:n(ep),error:n(em),warning:n(ef),confirm:n(eg)}),[]);return[a,i.createElement(eS,{key:"modal-holder",ref:e})]},ea.info=function(e){return ed(eh(e))},ea.success=function(e){return ed(ep(e))},ea.error=function(e){return ed(em(e))},ea.warning=ex,ea.warn=ex,ea.confirm=function(e){return ed(eg(e))},ea.destroyAll=function(){for(;es.length;){let e=es.pop();e&&e()}},ea.config=function(e){let{rootPrefixCls:t}=e;eu=t},ea._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:r,closeIcon:n,closable:o,type:a,title:l,children:s}=e,c=ev(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:u}=i.useContext(B.E_),d=u(),f=t||u("modal"),[,p]=en(f),m=`${f}-confirm`,g={};return g=a?{closable:null!=o&&o,title:"",footer:"",children:i.createElement(ei,Object.assign({},e,{confirmPrefixCls:m,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:l,footer:void 0===e.footer?i.createElement(F,Object.assign({},e)):e.footer,children:s},i.createElement(N,Object.assign({prefixCls:f,className:h()(p,`${f}-pure-panel`,a&&m,a&&`${m}-${a}`,r)},c,{closeIcon:U(f,n),closable:o},g))};var ew=ea},96390:function(e,t,r){"use strict";r.d(t,{J$:function(){return l}});var n=r(84596),o=r(29138);let a=new n.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),i=new n.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:r}=e,n=`${r}-fade`,l=t?"&":"";return[(0,o.R)(n,a,i,e.motionDurationMid,t),{[` ${l}${n}-enter, ${l}${n}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${n}-leave`]:{animationTimingFunction:"linear"}}]}},60501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(65231);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),l=[];for(let t=0,r=n.previousElementSibling;t{for(let t=0,r=l.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),u.forEach(e=>r.insertBefore(e,n)),n.content=(i-l.length+u.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});let n=r(26927),o=n._(r(86006)),a=r(96050),i=r(8993),l=r(6692),s=r(84779),u=r(60501),c=r(50085),d=r(56858),f=r(68891),h=r(38052),p=r(32781),m=r(39748),g=new Set;function v(e,t,r,n,o,a){if(!a&&!(0,i.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,a=t+"%"+r+"%"+o;if(g.has(a))return;g.add(a)}let l=a?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:b,prefetch:P=null,passHref:_,replace:S,shallow:w,scroll:x,locale:C,onClick:O,onMouseEnter:j,onTouchStart:E,legacyBehavior:I=!1,...R}=e;r=b,I&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let L=!1!==P,k=null===P?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,M=o.default.useContext(c.RouterContext),N=o.default.useContext(d.AppRouterContext),T=null!=M?M:N,A=!M,{href:$,as:Z}=o.default.useMemo(()=>{if(!M){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,a.resolveHref)(M,l,!0);return{href:e,as:g?(0,a.resolveHref)(M,g):t||e}},[M,l,g]),B=o.default.useRef($),H=o.default.useRef(Z);I&&(n=o.default.Children.only(r));let z=I?n&&"object"==typeof n&&n.ref:t,[D,W,U]=(0,f.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(e=>{(H.current!==Z||B.current!==$)&&(U(),H.current=Z,B.current=$),D(e),z&&("function"==typeof z?z(e):"object"==typeof z&&(z.current=e))},[Z,z,$,U,D]);o.default.useEffect(()=>{T&&W&&L&&v(T,$,Z,{locale:C},{kind:k},A)},[Z,$,W,C,L,null==M?void 0:M.locale,T,A,k]);let q={ref:F,onClick(e){I||"function"!=typeof O||O(e),I&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,r,n,a,l,s,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,i.isLocalURL)(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[a?"replace":"push"](r,n,{shallow:l,locale:u,scroll:s}):t[a?"replace":"push"](n||r,{forceOptimisticNavigation:!d})};c?o.default.startTransition(p):p()}(e,T,$,Z,S,w,x,C,A,L)},onMouseEnter(e){I||"function"!=typeof j||j(e),I&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),T&&(L||!A)&&v(T,$,Z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:k},A)},onTouchStart(e){I||"function"!=typeof E||E(e),I&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),T&&(L||!A)&&v(T,$,Z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:k},A)}};if((0,s.isAbsoluteUrl)(Z))q.href=Z;else if(!I||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)(Z,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(Z,e,null==M?void 0:M.defaultLocale))}return I?o.default.cloneElement(n,q):o.default.createElement("a",{...R,...q},r)}),P=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28769:function(e,t,r){"use strict";function n(e){return(e=e.slice(0)).startsWith("/")||(e="/"+e),e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(66630),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42342:function(e,t,r){"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(89777),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1364:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{markAssetError:function(){return l},isAssetError:function(){return s},getClientBuildManifest:function(){return f},createRouteLoader:function(){return p}}),r(26927),r(56001);let n=r(60932),o=r(1364);function a(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let i=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,i,{})}function s(e){return e&&i in e}let u=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),c=()=>"";function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function f(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return d(e,3800,l(Error("Failed to load client build manifest")))}function h(e,t){return f().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+c()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+c())}})}function p(e){let t=new Map,r=new Map,n=new Map,i=new Map;function s(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function c(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),i.delete(e))})},loadRoute(r,n){return a(r,i,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(s)),Promise.all(o.map(c))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(u?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{let a='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25076:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},default:function(){return h},withRouter:function(){return s.default},useRouter:function(){return p},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});let n=r(26927),o=n._(r(86006)),a=n._(r(70650)),i=r(50085),l=n._(r(40243)),s=n._(r(19451)),u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!u.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return u.router}Object.defineProperty(u,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get(){let t=f();return t[e]}})}),d.forEach(e=>{u[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{u.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),u.readyCallbacks=[],u.router}function g(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,d.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:l="afterInteractive",onError:u}=e,h=r||t;if(h&&d.has(h))return;if(c.has(t)){d.add(h),c.get(t).then(n,u);return}let p=()=>{o&&o(),d.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});for(let[r,n]of(a?(m.innerHTML=a.__html||"",p()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",p()):t&&(m.src=t,c.set(t,g)),Object.entries(e))){if(void 0===n||f.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();m.setAttribute(e,n)}"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),document.body.appendChild(m)};function p(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(p),function(){let e=[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')];e.forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}()}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:c,...f}=e,{updateScripts:p,scripts:m,getIsSsr:g,appDir:v,nonce:y}=(0,i.useContext)(l.HeadManagerContext),b=(0,i.useRef)(!1);(0,i.useEffect)(()=>{let e=t||r;b.current||(o&&e&&d.has(e)&&o(),b.current=!0)},[o,t,r]);let P=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{!P.current&&("afterInteractive"===s?h(e):"lazyOnload"===s&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))})),P.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(p?(m[s]=(m[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:c,...f}]),p(m)):g&&g()?d.add(t||r):g&&!g()&&h(e)),v){if("beforeInteractive"===s)return r?(a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"}),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r])+")"}})):(f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...f}])+")"}}));"afterInteractive"===s&&r&&a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60932:function(e,t){"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let n=r(86006),o=r(1364),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:r,disabled:s}=e,u=s||!a,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:o,elements:a}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=i.get(n)))return t;let o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:a,elements:o},l.push(r),i.set(r,t),t}(r);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,c,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19451:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(26927),o=n._(r(86006)),a=r(25076);function i(e){function t(t){return o.default.createElement(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12958:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=.01);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){let e={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};return e}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){let t=this.getHashValues(e);t.forEach(e=>{this.bitArray[e]=1})}contains(e){let t=this.getHashValues(e);return t.every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,1540483477)}return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},36902:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},38030:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},6636:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},73348:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},42061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(4471),o=r(609);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},609:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},50085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return a}});let n=r(26927),o=n._(r(86006)),a=o.default.createContext(null)},70650:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return q},matchesMiddleware:function(){return T},createKey:function(){return W}});let n=r(26927),o=r(25909),a=r(30769),i=r(6505),l=r(33772),s=o._(r(40243)),u=r(42061),c=r(38030),d=n._(r(73348)),f=r(84779),h=r(93861),p=r(16590);r(72431);let m=r(58287),g=r(35318),v=r(6692);r(28180);let y=r(89777),b=r(60501),P=r(42342),_=r(28769),S=r(32781),w=r(66630),x=r(3031),C=r(86708),O=r(41714),j=r(16234),E=r(8993),I=r(75247),R=r(86620),L=r(96050),k=r(74875),M=r(33811);function N(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function T(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,w.hasBasePath)(r)?(0,_.removeBasePath)(r):r,o=(0,S.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function A(e){let t=(0,f.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function $(e,t,r){let[n,o]=(0,L.resolveHref)(e,t,!0),a=(0,f.getLocationOrigin)(),i=n.startsWith(a),l=o&&o.startsWith(a);n=A(n),o=o?A(o):o;let s=i?n:(0,S.addBasePath)(n),u=r?A((0,L.resolveHref)(e,r)):o||n;return{url:s,as:l?u:(0,S.addBasePath)(u)}}function Z(e,t){let r=(0,a.removeTrailingSlash)((0,u.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,h.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){let t=await T(e);if(!t||!e.fetchData)return null;try{let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!0},o=t.headers.get("x-nextjs-rewrite"),l=o||t.headers.get("x-nextjs-matched-path"),s=t.headers.get("x-matched-path");if(!s||l||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(l=s),l){if(l.startsWith("/")){let t=(0,p.parseRelativeUrl)(l),s=(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),u=(0,a.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:l}]=a,d=(0,b.addLocale)(s.pathname,s.locale);if((0,h.isDynamicRoute)(d)||!o&&i.includes((0,c.normalizeLocalePath)((0,_.removeBasePath)(d),r.router.locales).pathname)){let r=(0,C.getNextPathnameInfo)((0,p.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});d=(0,S.addBasePath)(r.pathname),t.pathname=d}if(!i.includes(u)){let e=Z(u,i);e!==u&&(u=e)}let f=i.includes(u)?u:Z((0,c.normalizeLocalePath)((0,_.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,h.isDynamicRoute)(f)){let e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(f))(d);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,y.parsePath)(e),s=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+s+t.query+t.hash})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,y.parsePath)(u),t=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}catch(e){return null}}let H=Symbol("SSG_DATA_NOT_FOUND");function z(e){try{return JSON.parse(e)}catch(e){return null}}function D(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:o,hasMiddleware:a,isServerRender:l,parseJSON:s,persistCache:u,isBackground:c,unstable_skipClientCache:d}=e,{href:f}=new URL(r,window.location.href),h=e=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(r,l?3:1,{headers:Object.assign({},o?{purpose:"prefetch"}:{},o&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:f}:t.text().then(e=>{if(!t.ok){if(a&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:f};if(404===t.status){var n;if(null==(n=z(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:H},response:t,text:e,cacheKey:f}}let o=Error("Failed to load static props");throw l||(0,i.markAssetError)(o),o}return{dataHref:r,json:s?z(e):null,response:t,text:e,cacheKey:f}})).then(e=>(u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e)).catch(e=>{throw d||delete n[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e});return d&&u?h({}).then(e=>(n[f]=Promise.resolve(e),e)):void 0!==n[f]?n[f]:n[f]=h(c?{method:"HEAD"}:{})}function W(){return Math.random().toString(36).slice(2,10)}function U(e){let{url:t,router:r}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let F=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class q{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=$(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=$(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let s=!1,u=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,"http://n").pathname),d=(0,S.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,l;for(let e of(s=s||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!u&&e{})}}}}return!1}async change(e,t,r,n,o){var u,c,d,x,C,O,I,L,M;let A,B;if(!(0,E.isLocalURL)(t))return U({url:t,router:this}),!1;let z=1===n._h;z||n.shallow||await this._bfl(r,void 0,n.locale);let D=z||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,W={...this.state},F=!0!==this.isReady;this.isReady=!0;let V=this.isSsr;if(z||(this.isSsr=!1),z&&this.clc)return!1;let G=W.locale;f.ST&&performance.mark("routeChange");let{shallow:J=!1,scroll:X=!0}=n,K={shallow:J};this._inFlightRoute&&this.clc&&(V||q.events.emit("routeChangeError",N(),this._inFlightRoute,K),this.clc(),this.clc=null),r=(0,S.addBasePath)((0,b.addLocale)((0,w.hasBasePath)(r)?(0,_.removeBasePath)(r):r,n.locale,this.defaultLocale));let Y=(0,P.removeLocale)((0,w.hasBasePath)(r)?(0,_.removeBasePath)(r):r,W.locale);this._inFlightRoute=r;let Q=G!==W.locale;if(!z&&this.onlyAHashChange(Y)&&!Q){W.asPath=Y,q.events.emit("hashChangeStart",r,K),this.changeState(e,t,r,{...n,scroll:!1}),X&&this.scrollToHash(Y);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,K),e}return q.events.emit("hashChangeComplete",r,K),!0}let ee=(0,p.parseRelativeUrl)(t),{pathname:et,query:er}=ee;if(null==(u=this.components[et])?void 0:u.__appRouter)return U({url:r,router:this}),new Promise(()=>{});try{[A,{__rewrites:B}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return U({url:r,router:this}),!1}this.urlIsNew(Y)||Q||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,_.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,p.parseRelativeUrl)(r).pathname,ei=!!(ea&&eo!==ea&&(!(0,h.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,g.getRouteRegex)(eo))(ea))),el=!n.shallow&&await T({asPath:r,locale:W.locale,router:this});if(z&&el&&(D=!1),D&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=Z(et,A),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,S.addBasePath)(et),el||(t=(0,v.formatWithValidation)(ee)))),!(0,E.isLocalURL)(r))return U({url:r,router:this}),!1;en=(0,P.removeLocale)((0,_.removeBasePath)(en),W.locale),eo=(0,a.removeTrailingSlash)(et);let es=!1;if((0,h.isDynamicRoute)(eo)){let e=(0,p.parseRelativeUrl)(en),n=e.pathname,o=(0,g.getRouteRegex)(eo);es=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,k.interpolateAs)(eo,n,er):{};if(es&&(!a||i.result))a?r=(0,v.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,R.omit)(er,i.params)})):Object.assign(er,es);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!el)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}z||q.events.emit("routeChangeStart",r,K);let eu="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:K,locale:W.locale,isPreview:W.isPreview,hasMiddleware:el,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:z&&!this.isFallback,isMiddlewareRewrite:ei});if(z||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&el){eo=et=a.route||eo,K.shallow||(er=Object.assign({},a.query||{},er));let e=(0,w.hasBasePath)(ee.pathname)?(0,_.removeBasePath)(ee.pathname):ee.pathname;if(es&&et!==e&&Object.keys(es).forEach(e=>{es&&er[e]===es[e]&&delete er[e]}),(0,h.isDynamicRoute)(et)){let e=!K.shallow&&a.resolvedAs?a.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,W.locale),!0),t=e;(0,w.hasBasePath)(t)&&(t=(0,_.removeBasePath)(t));let n=(0,g.getRouteRegex)(et),o=(0,m.getRouteMatcher)(n)(new URL(t,location.href).pathname);o&&Object.assign(er,o)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return U({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader){let e=[].concat(i.unstable_scriptLoader());e.forEach(e=>{(0,l.handleClientScriptLoad)(e.props)})}if((a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,p.parseRelativeUrl)(t);r.pathname=Z(r.pathname,A);let{url:o,as:a}=$(this,t,t);return this.change(e,o,a,n)}return U({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}z&&"/_error"===this.pathname&&(null==(c=self.__NEXT_DATA__.props)?void 0:null==(d=c.pageProps)?void 0:d.statusCode)===500&&(null==(x=a.props)?void 0:x.pageProps)&&(a.props.pageProps.statusCode=500);let u=n.shallow&&W.route===(null!=(C=a.route)?C:eo),f=null!=(O=n.scroll)?O:!z&&!u,v=null!=o?o:f?{x:0,y:0}:null,y={...W,route:eo,pathname:et,query:er,asPath:Y,isFallback:!1};if(z&&eu){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:z&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(I=self.__NEXT_DATA__.props)?void 0:null==(L=I.pageProps)?void 0:L.statusCode)===500&&(null==(M=a.props)?void 0:M.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,v)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,K),e}return!0}q.events.emit("beforeHistoryChange",r,K),this.changeState(e,t,r,n);let P=z&&!v&&!F&&!Q&&(0,j.compareRouterStates)(y,this.state);if(!P){try{await this.set(y,a,v)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw z||q.events.emit("routeChangeError",a.error,Y,K),a.error;z||q.events.emit("routeChangeComplete",r,K),f&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,s.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,f.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:W()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw q.events.emit("routeChangeError",e,n,o),U({url:n,router:this}),N();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,s.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:l,locale:u,hasMiddleware:d,isPreview:f,unstable_skipClientCache:h,isQueryUpdating:p,isMiddlewareRewrite:m,isNotFound:g}=e,y=t;try{var b,P,S,w;let e=F({route:y,router:this}),t=this.components[y];if(l.shallow&&t&&this.route===y)return t;d&&(t=void 0);let s=!t||"initial"in t?void 0:t,C={dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:g?"/404":i,locale:u}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h,isBackground:p},O=p&&!m?null:await B({fetchData:()=>D(C),asPath:g?"/404":i,locale:u,router:this}).catch(e=>{if(p)return null;throw e});if(O&&("/_error"===r||"/404"===r)&&(O.effect=void 0),p&&(O?O.json=self.__NEXT_DATA__.props:O={json:self.__NEXT_DATA__.props}),e(),(null==O?void 0:null==(b=O.effect)?void 0:b.type)==="redirect-internal"||(null==O?void 0:null==(P=O.effect)?void 0:P.type)==="redirect-external")return O.effect;if((null==O?void 0:null==(S=O.effect)?void 0:S.type)==="rewrite"){let e=(0,a.removeTrailingSlash)(O.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!p||o.includes(e))&&(y=e,r=O.effect.resolvedHref,n={...n,...O.effect.parsedAs.query},i=(0,_.removeBasePath)((0,c.normalizeLocalePath)(O.effect.parsedAs.pathname,this.locales).pathname),t=this.components[y],l.shallow&&t&&this.route===y&&!d))return{...t,route:y}}if((0,x.isAPIRoute)(y))return U({url:o,router:this}),new Promise(()=>{});let j=s||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),E=null==O?void 0:null==(w=O.response)?void 0:w.headers.get("x-middleware-skip"),I=j.__N_SSG||j.__N_SSP;E&&(null==O?void 0:O.dataHref)&&delete this.sdc[O.dataHref];let{props:R,cacheKey:L}=await this._getData(async()=>{if(I){if((null==O?void 0:O.json)&&!E)return{cacheKey:O.cacheKey,props:O.json};let e=(null==O?void 0:O.dataHref)?O.dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:u}),t=await D({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:E?{}:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:u,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&C.dataHref&&L&&delete this.sdc[L],this.isPreview||!j.__N_SSG||p||D(Object.assign({},C,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),R.pageProps=Object.assign({},R.pageProps),j.props=R,j.route=y,j.query=n,j.resolvedAs=i,this.components[y]=j,j}catch(e){return this.handleRouteInfoError((0,s.getProperError)(e),r,n,o,l)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#"),[n,o]=e.split("#");return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#");if(""===t||"top"===t){(0,M.handleSmoothScroll)(()=>window.scrollTo(0,0));return}let r=decodeURIComponent(t),n=document.getElementById(r);if(n){(0,M.handleSmoothScroll)(()=>n.scrollIntoView());return}let o=document.getElementsByName(r)[0];o&&(0,M.handleSmoothScroll)(()=>o.scrollIntoView())}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,I.isBot)(window.navigator.userAgent))return;let n=(0,p.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:l}=n,s=i,u=await this.pageLoader.getPageList(),c=t,d=void 0!==r.locale?r.locale||void 0:this.locale,f=await T({asPath:t,locale:d,router:this});n.pathname=Z(n.pathname,u),(0,h.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(l,(0,m.getRouteMatcher)((0,g.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),f||(e=(0,v.formatWithValidation)(n)));let b=await B({fetchData:()=>D({dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:s,query:l}),skipInterpolation:!0,asPath:c,locale:d}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:d,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,l={...l,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,v.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let P=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(P).then(t=>!!t&&D({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](P)])}async fetchComponent(e){let t=F({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return D({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,f.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:l,wrapApp:s,Component:u,err:c,subscription:d,isFallback:m,locale:g,locales:y,defaultLocale:b,domainLocales:P,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=W(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,v.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,f.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:l}=n;this._key=l;let{pathname:s}=(0,p.parseRelativeUrl)(o);(!this.isSsr||a!==(0,S.addBasePath)(this.asPath)||s!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let w=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[w]={Component:u,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:l,styleSheets:[]};{let{BloomFilter:e}=r(12958),t={numItems:6,errorRate:.01,numBits:58,numHashes:7,bitArray:[0,1,1,1,0,1,1,0,0,0,0,1,1,1,1,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,1,1,1,1,0,1,0,1,1,0,0,1,1,1,1,1,1,1,0,1,0]},n={numItems:0,errorRate:.01,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=q.events,this.pageLoader=i;let x=(0,h.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=d,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!x&&!self.location.search),this.state={route:w,pathname:e,query:t,asPath:x?e:n,isPreview:!!_,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:g},o=(0,f.getURL)();this._initialMatchesMiddlewarePromise=T({router:this,locale:g,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,v.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}q.events=(0,d.default)()},58485:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(16620),o=r(29973);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},75061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},16234:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},41714:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return l}});let n=r(30769),o=r(16620),a=r(75061),i=r(58485);function l(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},6692:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},urlObjectKeys:function(){return l},formatWithValidation:function(){return s}});let n=r(25909),o=n._(r(61937)),a=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+n+u+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return i(e)}},56001:function(e,t){"use strict";function r(e,t){void 0===t&&(t="");let r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e;return r+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},86708:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(38030),o=r(6223),a=r(29973);function i(e,t){var r,i,l;let{basePath:s,i18n:u,trailingSlash:c}=null!=(r=t.nextConfig)?r:{},d={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};if(s&&(0,a.pathHasPrefix)(d.pathname,s)&&(d.pathname=(0,o.removePathPrefix)(d.pathname,s),d.basePath=s),!0===t.parseData&&d.pathname.startsWith("/_next/data/")&&d.pathname.endsWith(".json")){let e=d.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];d.pathname="index"!==e[1]?"/"+e.slice(1).join("/"):"/",d.buildId=t}if(t.i18nProvider){let e=t.i18nProvider.analyze(d.pathname);d.locale=e.detectedLocale,d.pathname=null!=(i=e.pathname)?i:d.pathname}else if(u){let e=(0,n.normalizeLocalePath)(d.pathname,u.locales);d.locale=e.detectedLocale,d.pathname=null!=(l=e.pathname)?l:d.pathname}return d}},4471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(28057),o=r(93861)},74875:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(58287),o=r(35318);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),l=i.groups,s=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let u=Object.keys(l);return u.every(e=>{let t=s[e]||"",{repeat:r,optional:n}=l[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in s)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},93861:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});let r=/\/\[[^/]+?\](?=\/|$)/;function n(e){return r.test(e)}},8993:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(66630);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},86620:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},16590:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(61937);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:l,search:s,hash:u,href:c,origin:d}=new URL(e,a);if(d!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(l),search:s,hash:u,href:c.slice(r.origin.length)}}},29973:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},61937:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return a}})},6223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(29973);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},96050:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let n=r(61937),o=r(6692),a=r(86620),i=r(84779),l=r(65231),s=r(8993),u=r(93861),c=r(74875);function d(e,t,r){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f,m=p.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,s.isLocalURL)(f))return r?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[f]:f}}},58287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(84779);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},35318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return s},getNamedRouteRegex:function(){return c},getNamedMiddlewareRegex:function(){return d}});let n=r(36902),o=r(30769),a="nxtP";function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function l(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),r={},a=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:t,optional:n,repeat:o}=i(e.slice(1,-1));return r[t]={pos:a++,repeat:o,optional:n},o?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function s(e){let{parameterizedRoute:t,groups:r}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function u(e,t){let r,l;let s=(0,o.removeTrailingSlash)(e).slice(1).split("/"),u=(r=97,l=1,()=>{let e="";for(let t=0;t122&&(l++,r=97);return e}),c={};return{namedParameterizedRoute:s.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:r,optional:n,repeat:o}=i(e.slice(1,-1)),l=r.replace(/\W/g,"");t&&(l=""+a+l);let s=!1;return(0===l.length||l.length>30)&&(s=!0),isNaN(parseInt(l.slice(0,1)))||(s=!0),s&&(l=u()),t?c[l]=""+a+r:c[l]=""+r,o?n?"(?:/(?<"+l+">.+?))?":"/(?<"+l+">.+?)":"/(?<"+l+">[^/]+?)"}}).join(""),routeKeys:c}}function c(e,t){let r=u(e,t);return{...s(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=l(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=u(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},28057:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},84779:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return l},getDisplayName:function(){return s},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return d},SP:function(){return f},ST:function(){return h},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=i();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n){let t='"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},3031:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},40243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(6636);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},35846:function(e,t,r){e.exports=r(57477)},53794:function(e,t,r){e.exports=r(25076)},54486:function(e,t,r){var n,o;void 0!==(o="function"==typeof(n=function(){var e,t,r,n={};n.version="0.2.0";var o=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
    '};function a(e,t,r){return er?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(o[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,o.minimum,1),n.status=1===e?null:e;var r=n.render(!t),s=r.querySelector(o.barSelector),u=o.speed,c=o.easing;return r.offsetWidth,i(function(t){var a,i;""===o.positionUsing&&(o.positionUsing=n.getPositioningCSS()),l(s,(a=e,(i="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+a)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+a)*100+"%,0)"}:{"margin-left":(-1+a)*100+"%"}).transition="all "+u+"ms "+c,i)),1===e?(l(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){l(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},u)},u)):setTimeout(t,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*o.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var r,a,i=t.querySelector(o.barSelector),s=e?"-100":(-1+(n.status||0))*100,c=document.querySelector(o.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!o.showSpinner&&(a=t.querySelector(o.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var i=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,o){var a;n=t[a=(a=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[a]=function(t){var r=document.body.style;if(t in r)return t;for(var n,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((n=e[o]+a)in r)return n;return t}(a)),r.style[n]=o}return function(e,t){var n,o,a=arguments;if(2==a.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,a[1],a[2])}}();function s(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=d(e),n=r+t;s(r,t)||(e.className=n.substring(1))}function c(e,t){var r,n=d(e);s(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)&&(e.exports=o)}}]); \ No newline at end of file + `]:{opacity:0,animationTimingFunction:"linear"},[`${l}${n}-leave`]:{animationTimingFunction:"linear"}}]}},60501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(65231);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),l=[];for(let t=0,r=n.previousElementSibling;t{for(let t=0,r=l.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),c.forEach(e=>r.insertBefore(e,n)),n.content=(i-l.length+c.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});let n=r(26927),o=n._(r(86006)),a=r(96050),i=r(8993),l=r(6692),s=r(84779),c=r(60501),u=r(50085),d=r(56858),f=r(68891),h=r(38052),p=r(32781),m=r(39748),g=new Set;function v(e,t,r,n,o,a){if(!a&&!(0,i.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,a=t+"%"+r+"%"+o;if(g.has(a))return;g.add(a)}let l=a?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:b,prefetch:P=null,passHref:_,replace:S,shallow:x,scroll:w,locale:C,onClick:O,onMouseEnter:j,onTouchStart:I,legacyBehavior:E=!1,...R}=e;r=b,E&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let L=!1!==P,k=null===P?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,M=o.default.useContext(u.RouterContext),N=o.default.useContext(d.AppRouterContext),T=null!=M?M:N,A=!M,{href:Z,as:z}=o.default.useMemo(()=>{if(!M){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,a.resolveHref)(M,l,!0);return{href:e,as:g?(0,a.resolveHref)(M,g):t||e}},[M,l,g]),$=o.default.useRef(Z),B=o.default.useRef(z);E&&(n=o.default.Children.only(r));let H=E?n&&"object"==typeof n&&n.ref:t,[D,W,U]=(0,f.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(e=>{(B.current!==z||$.current!==Z)&&(U(),B.current=z,$.current=Z),D(e),H&&("function"==typeof H?H(e):"object"==typeof H&&(H.current=e))},[z,H,Z,U,D]);o.default.useEffect(()=>{T&&W&&L&&v(T,Z,z,{locale:C},{kind:k},A)},[z,Z,W,C,L,null==M?void 0:M.locale,T,A,k]);let q={ref:F,onClick(e){E||"function"!=typeof O||O(e),E&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,r,n,a,l,s,c,u,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,i.isLocalURL)(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[a?"replace":"push"](r,n,{shallow:l,locale:c,scroll:s}):t[a?"replace":"push"](n||r,{forceOptimisticNavigation:!d})};u?o.default.startTransition(p):p()}(e,T,Z,z,S,x,w,C,A,L)},onMouseEnter(e){E||"function"!=typeof j||j(e),E&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),T&&(L||!A)&&v(T,Z,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:k},A)},onTouchStart(e){E||"function"!=typeof I||I(e),E&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),T&&(L||!A)&&v(T,Z,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:k},A)}};if((0,s.isAbsoluteUrl)(z))q.href=z;else if(!E||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==M?void 0:M.locale,t=(null==M?void 0:M.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==M?void 0:M.locales,null==M?void 0:M.domainLocales);q.href=t||(0,p.addBasePath)((0,c.addLocale)(z,e,null==M?void 0:M.defaultLocale))}return E?o.default.cloneElement(n,q):o.default.createElement("a",{...R,...q},r)}),P=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28769:function(e,t,r){"use strict";function n(e){return(e=e.slice(0)).startsWith("/")||(e="/"+e),e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(66630),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42342:function(e,t,r){"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(89777),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1364:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{markAssetError:function(){return l},isAssetError:function(){return s},getClientBuildManifest:function(){return f},createRouteLoader:function(){return p}}),r(26927),r(56001);let n=r(60932),o=r(1364);function a(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let i=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,i,{})}function s(e){return e&&i in e}let c=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),u=()=>"";function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function f(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return d(e,3800,l(Error("Failed to load client build manifest")))}function h(e,t){return f().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+u()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+u())}})}function p(e){let t=new Map,r=new Map,n=new Map,i=new Map;function s(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function u(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),i.delete(e))})},loadRoute(r,n){return a(r,i,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(s)),Promise.all(o.map(u))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(c?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{let a='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25076:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},default:function(){return h},withRouter:function(){return s.default},useRouter:function(){return p},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});let n=r(26927),o=n._(r(86006)),a=n._(r(70650)),i=r(50085),l=n._(r(40243)),s=n._(r(19451)),c={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},u=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!c.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return c.router}Object.defineProperty(c,"events",{get:()=>a.default.events}),u.forEach(e=>{Object.defineProperty(c,e,{get(){let t=f();return t[e]}})}),d.forEach(e=>{c[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{c.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),c.readyCallbacks=[],c.router}function g(e){let t={};for(let r of u){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,d.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:l="afterInteractive",onError:c}=e,h=r||t;if(h&&d.has(h))return;if(u.has(t)){d.add(h),u.get(t).then(n,c);return}let p=()=>{o&&o(),d.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});for(let[r,n]of(a?(m.innerHTML=a.__html||"",p()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",p()):t&&(m.src=t,u.set(t,g)),Object.entries(e))){if(void 0===n||f.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();m.setAttribute(e,n)}"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),document.body.appendChild(m)};function p(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(p),function(){let e=[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')];e.forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}()}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:u,...f}=e,{updateScripts:p,scripts:m,getIsSsr:g,appDir:v,nonce:y}=(0,i.useContext)(l.HeadManagerContext),b=(0,i.useRef)(!1);(0,i.useEffect)(()=>{let e=t||r;b.current||(o&&e&&d.has(e)&&o(),b.current=!0)},[o,t,r]);let P=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{!P.current&&("afterInteractive"===s?h(e):"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>h(e))})),P.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(p?(m[s]=(m[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:u,...f}]),p(m)):g&&g()?d.add(t||r):g&&!g()&&h(e)),v){if("beforeInteractive"===s)return r?(a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"}),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r])+")"}})):(f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...f}])+")"}}));"afterInteractive"===s&&r&&a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60932:function(e,t){"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let n=r(86006),o=r(1364),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:r,disabled:s}=e,c=s||!a,[u,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(a){if(c||u)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:o,elements:a}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=i.get(n)))return t;let o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:a,elements:o},l.push(r),i.set(r,t),t}(r);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!u){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[c,r,t,u,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,u,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19451:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(26927),o=n._(r(86006)),a=r(25076);function i(e){function t(t){return o.default.createElement(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12958:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=.01);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){let e={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};return e}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){let t=this.getHashValues(e);t.forEach(e=>{this.bitArray[e]=1})}contains(e){let t=this.getHashValues(e);return t.every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,1540483477)}return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},36902:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},38030:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},6636:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},73348:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},42061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(4471),o=r(609);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},609:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},50085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return a}});let n=r(26927),o=n._(r(86006)),a=o.default.createContext(null)},70650:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return q},matchesMiddleware:function(){return T},createKey:function(){return W}});let n=r(26927),o=r(25909),a=r(30769),i=r(6505),l=r(33772),s=o._(r(40243)),c=r(42061),u=r(38030),d=n._(r(73348)),f=r(84779),h=r(93861),p=r(16590);r(72431);let m=r(58287),g=r(35318),v=r(6692);r(28180);let y=r(89777),b=r(60501),P=r(42342),_=r(28769),S=r(32781),x=r(66630),w=r(3031),C=r(86708),O=r(41714),j=r(16234),I=r(8993),E=r(75247),R=r(86620),L=r(96050),k=r(74875),M=r(33811);function N(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function T(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,x.hasBasePath)(r)?(0,_.removeBasePath)(r):r,o=(0,S.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function A(e){let t=(0,f.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function Z(e,t,r){let[n,o]=(0,L.resolveHref)(e,t,!0),a=(0,f.getLocationOrigin)(),i=n.startsWith(a),l=o&&o.startsWith(a);n=A(n),o=o?A(o):o;let s=i?n:(0,S.addBasePath)(n),c=r?A((0,L.resolveHref)(e,r)):o||n;return{url:s,as:l?c:(0,S.addBasePath)(c)}}function z(e,t){let r=(0,a.removeTrailingSlash)((0,c.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,h.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function $(e){let t=await T(e);if(!t||!e.fetchData)return null;try{let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!0},o=t.headers.get("x-nextjs-rewrite"),l=o||t.headers.get("x-nextjs-matched-path"),s=t.headers.get("x-matched-path");if(!s||l||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(l=s),l){if(l.startsWith("/")){let t=(0,p.parseRelativeUrl)(l),s=(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),c=(0,a.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:l}]=a,d=(0,b.addLocale)(s.pathname,s.locale);if((0,h.isDynamicRoute)(d)||!o&&i.includes((0,u.normalizeLocalePath)((0,_.removeBasePath)(d),r.router.locales).pathname)){let r=(0,C.getNextPathnameInfo)((0,p.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});d=(0,S.addBasePath)(r.pathname),t.pathname=d}if(!i.includes(c)){let e=z(c,i);e!==c&&(c=e)}let f=i.includes(c)?c:z((0,u.normalizeLocalePath)((0,_.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,h.isDynamicRoute)(f)){let e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(f))(d);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,y.parsePath)(e),s=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+s+t.query+t.hash})}let c=t.headers.get("x-nextjs-redirect");if(c){if(c.startsWith("/")){let e=(0,y.parsePath)(c),t=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:c})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}catch(e){return null}}let B=Symbol("SSG_DATA_NOT_FOUND");function H(e){try{return JSON.parse(e)}catch(e){return null}}function D(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:o,hasMiddleware:a,isServerRender:l,parseJSON:s,persistCache:c,isBackground:u,unstable_skipClientCache:d}=e,{href:f}=new URL(r,window.location.href),h=e=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(r,l?3:1,{headers:Object.assign({},o?{purpose:"prefetch"}:{},o&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:f}:t.text().then(e=>{if(!t.ok){if(a&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:f};if(404===t.status){var n;if(null==(n=H(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:B},response:t,text:e,cacheKey:f}}let o=Error("Failed to load static props");throw l||(0,i.markAssetError)(o),o}return{dataHref:r,json:s?H(e):null,response:t,text:e,cacheKey:f}})).then(e=>(c&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e)).catch(e=>{throw d||delete n[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e});return d&&c?h({}).then(e=>(n[f]=Promise.resolve(e),e)):void 0!==n[f]?n[f]:n[f]=h(u?{method:"HEAD"}:{})}function W(){return Math.random().toString(36).slice(2,10)}function U(e){let{url:t,router:r}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let F=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class q{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=Z(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=Z(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let s=!1,c=!1;for(let u of[e,t])if(u){let t=(0,a.removeTrailingSlash)(new URL(u,"http://n").pathname),d=(0,S.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,l;for(let e of(s=s||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!c&&e{})}}}}return!1}async change(e,t,r,n,o){var c,u,d,w,C,O,E,L,M;let A,$;if(!(0,I.isLocalURL)(t))return U({url:t,router:this}),!1;let H=1===n._h;H||n.shallow||await this._bfl(r,void 0,n.locale);let D=H||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,W={...this.state},F=!0!==this.isReady;this.isReady=!0;let V=this.isSsr;if(H||(this.isSsr=!1),H&&this.clc)return!1;let G=W.locale;f.ST&&performance.mark("routeChange");let{shallow:J=!1,scroll:X=!0}=n,K={shallow:J};this._inFlightRoute&&this.clc&&(V||q.events.emit("routeChangeError",N(),this._inFlightRoute,K),this.clc(),this.clc=null),r=(0,S.addBasePath)((0,b.addLocale)((0,x.hasBasePath)(r)?(0,_.removeBasePath)(r):r,n.locale,this.defaultLocale));let Y=(0,P.removeLocale)((0,x.hasBasePath)(r)?(0,_.removeBasePath)(r):r,W.locale);this._inFlightRoute=r;let Q=G!==W.locale;if(!H&&this.onlyAHashChange(Y)&&!Q){W.asPath=Y,q.events.emit("hashChangeStart",r,K),this.changeState(e,t,r,{...n,scroll:!1}),X&&this.scrollToHash(Y);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,K),e}return q.events.emit("hashChangeComplete",r,K),!0}let ee=(0,p.parseRelativeUrl)(t),{pathname:et,query:er}=ee;if(null==(c=this.components[et])?void 0:c.__appRouter)return U({url:r,router:this}),new Promise(()=>{});try{[A,{__rewrites:$}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return U({url:r,router:this}),!1}this.urlIsNew(Y)||Q||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,_.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,p.parseRelativeUrl)(r).pathname,ei=!!(ea&&eo!==ea&&(!(0,h.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,g.getRouteRegex)(eo))(ea))),el=!n.shallow&&await T({asPath:r,locale:W.locale,router:this});if(H&&el&&(D=!1),D&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=z(et,A),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,S.addBasePath)(et),el||(t=(0,v.formatWithValidation)(ee)))),!(0,I.isLocalURL)(r))return U({url:r,router:this}),!1;en=(0,P.removeLocale)((0,_.removeBasePath)(en),W.locale),eo=(0,a.removeTrailingSlash)(et);let es=!1;if((0,h.isDynamicRoute)(eo)){let e=(0,p.parseRelativeUrl)(en),n=e.pathname,o=(0,g.getRouteRegex)(eo);es=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,k.interpolateAs)(eo,n,er):{};if(es&&(!a||i.result))a?r=(0,v.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,R.omit)(er,i.params)})):Object.assign(er,es);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!el)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}H||q.events.emit("routeChangeStart",r,K);let ec="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:K,locale:W.locale,isPreview:W.isPreview,hasMiddleware:el,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:H&&!this.isFallback,isMiddlewareRewrite:ei});if(H||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&el){eo=et=a.route||eo,K.shallow||(er=Object.assign({},a.query||{},er));let e=(0,x.hasBasePath)(ee.pathname)?(0,_.removeBasePath)(ee.pathname):ee.pathname;if(es&&et!==e&&Object.keys(es).forEach(e=>{es&&er[e]===es[e]&&delete er[e]}),(0,h.isDynamicRoute)(et)){let e=!K.shallow&&a.resolvedAs?a.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,W.locale),!0),t=e;(0,x.hasBasePath)(t)&&(t=(0,_.removeBasePath)(t));let n=(0,g.getRouteRegex)(et),o=(0,m.getRouteMatcher)(n)(new URL(t,location.href).pathname);o&&Object.assign(er,o)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return U({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader){let e=[].concat(i.unstable_scriptLoader());e.forEach(e=>{(0,l.handleClientScriptLoad)(e.props)})}if((a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,p.parseRelativeUrl)(t);r.pathname=z(r.pathname,A);let{url:o,as:a}=Z(this,t,t);return this.change(e,o,a,n)}return U({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===B){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}H&&"/_error"===this.pathname&&(null==(u=self.__NEXT_DATA__.props)?void 0:null==(d=u.pageProps)?void 0:d.statusCode)===500&&(null==(w=a.props)?void 0:w.pageProps)&&(a.props.pageProps.statusCode=500);let c=n.shallow&&W.route===(null!=(C=a.route)?C:eo),f=null!=(O=n.scroll)?O:!H&&!c,v=null!=o?o:f?{x:0,y:0}:null,y={...W,route:eo,pathname:et,query:er,asPath:Y,isFallback:!1};if(H&&ec){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:H&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(E=self.__NEXT_DATA__.props)?void 0:null==(L=E.pageProps)?void 0:L.statusCode)===500&&(null==(M=a.props)?void 0:M.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,v)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,K),e}return!0}q.events.emit("beforeHistoryChange",r,K),this.changeState(e,t,r,n);let P=H&&!v&&!F&&!Q&&(0,j.compareRouterStates)(y,this.state);if(!P){try{await this.set(y,a,v)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw H||q.events.emit("routeChangeError",a.error,Y,K),a.error;H||q.events.emit("routeChangeComplete",r,K),f&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,s.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,f.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:W()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw q.events.emit("routeChangeError",e,n,o),U({url:n,router:this}),N();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,s.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:l,locale:c,hasMiddleware:d,isPreview:f,unstable_skipClientCache:h,isQueryUpdating:p,isMiddlewareRewrite:m,isNotFound:g}=e,y=t;try{var b,P,S,x;let e=F({route:y,router:this}),t=this.components[y];if(l.shallow&&t&&this.route===y)return t;d&&(t=void 0);let s=!t||"initial"in t?void 0:t,C={dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:g?"/404":i,locale:c}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h,isBackground:p},O=p&&!m?null:await $({fetchData:()=>D(C),asPath:g?"/404":i,locale:c,router:this}).catch(e=>{if(p)return null;throw e});if(O&&("/_error"===r||"/404"===r)&&(O.effect=void 0),p&&(O?O.json=self.__NEXT_DATA__.props:O={json:self.__NEXT_DATA__.props}),e(),(null==O?void 0:null==(b=O.effect)?void 0:b.type)==="redirect-internal"||(null==O?void 0:null==(P=O.effect)?void 0:P.type)==="redirect-external")return O.effect;if((null==O?void 0:null==(S=O.effect)?void 0:S.type)==="rewrite"){let e=(0,a.removeTrailingSlash)(O.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!p||o.includes(e))&&(y=e,r=O.effect.resolvedHref,n={...n,...O.effect.parsedAs.query},i=(0,_.removeBasePath)((0,u.normalizeLocalePath)(O.effect.parsedAs.pathname,this.locales).pathname),t=this.components[y],l.shallow&&t&&this.route===y&&!d))return{...t,route:y}}if((0,w.isAPIRoute)(y))return U({url:o,router:this}),new Promise(()=>{});let j=s||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),I=null==O?void 0:null==(x=O.response)?void 0:x.headers.get("x-middleware-skip"),E=j.__N_SSG||j.__N_SSP;I&&(null==O?void 0:O.dataHref)&&delete this.sdc[O.dataHref];let{props:R,cacheKey:L}=await this._getData(async()=>{if(E){if((null==O?void 0:O.json)&&!I)return{cacheKey:O.cacheKey,props:O.json};let e=(null==O?void 0:O.dataHref)?O.dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:c}),t=await D({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:I?{}:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:c,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&C.dataHref&&L&&delete this.sdc[L],this.isPreview||!j.__N_SSG||p||D(Object.assign({},C,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),R.pageProps=Object.assign({},R.pageProps),j.props=R,j.route=y,j.query=n,j.resolvedAs=i,this.components[y]=j,j}catch(e){return this.handleRouteInfoError((0,s.getProperError)(e),r,n,o,l)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#"),[n,o]=e.split("#");return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#");if(""===t||"top"===t){(0,M.handleSmoothScroll)(()=>window.scrollTo(0,0));return}let r=decodeURIComponent(t),n=document.getElementById(r);if(n){(0,M.handleSmoothScroll)(()=>n.scrollIntoView());return}let o=document.getElementsByName(r)[0];o&&(0,M.handleSmoothScroll)(()=>o.scrollIntoView())}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,E.isBot)(window.navigator.userAgent))return;let n=(0,p.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:l}=n,s=i,c=await this.pageLoader.getPageList(),u=t,d=void 0!==r.locale?r.locale||void 0:this.locale,f=await T({asPath:t,locale:d,router:this});n.pathname=z(n.pathname,c),(0,h.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(l,(0,m.getRouteMatcher)((0,g.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),f||(e=(0,v.formatWithValidation)(n)));let b=await $({fetchData:()=>D({dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:s,query:l}),skipInterpolation:!0,asPath:u,locale:d}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:d,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,l={...l,...b.effect.parsedAs.query},u=b.effect.parsedAs.pathname,e=(0,v.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let P=(0,a.removeTrailingSlash)(i);await this._bfl(t,u,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(P).then(t=>!!t&&D({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:u,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](P)])}async fetchComponent(e){let t=F({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return D({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,f.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:l,wrapApp:s,Component:c,err:u,subscription:d,isFallback:m,locale:g,locales:y,defaultLocale:b,domainLocales:P,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=W(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,v.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,f.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:l}=n;this._key=l;let{pathname:s}=(0,p.parseRelativeUrl)(o);(!this.isSsr||a!==(0,S.addBasePath)(this.asPath)||s!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let x=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[x]={Component:c,initial:!0,props:o,err:u,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:l,styleSheets:[]};{let{BloomFilter:e}=r(12958),t={numItems:6,errorRate:.01,numBits:58,numHashes:7,bitArray:[0,1,1,1,0,1,1,0,0,0,0,1,1,1,1,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,1,1,1,1,0,1,0,1,1,0,0,1,1,1,1,1,1,1,0,1,0]},n={numItems:0,errorRate:.01,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=q.events,this.pageLoader=i;let w=(0,h.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=d,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!w&&!self.location.search),this.state={route:x,pathname:e,query:t,asPath:w?e:n,isPreview:!!_,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:g},o=(0,f.getURL)();this._initialMatchesMiddlewarePromise=T({router:this,locale:g,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,v.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}q.events=(0,d.default)()},58485:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(16620),o=r(29973);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},75061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},16234:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},41714:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return l}});let n=r(30769),o=r(16620),a=r(75061),i=r(58485);function l(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},6692:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},urlObjectKeys:function(){return l},formatWithValidation:function(){return s}});let n=r(25909),o=n._(r(61937)),a=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(c+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let u=e.search||s&&"?"+s||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),""+n+c+(i=i.replace(/[?#]/g,encodeURIComponent))+(u=u.replace("#","%23"))+l}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return i(e)}},56001:function(e,t){"use strict";function r(e,t){void 0===t&&(t="");let r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e;return r+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},86708:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(38030),o=r(6223),a=r(29973);function i(e,t){var r,i,l;let{basePath:s,i18n:c,trailingSlash:u}=null!=(r=t.nextConfig)?r:{},d={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};if(s&&(0,a.pathHasPrefix)(d.pathname,s)&&(d.pathname=(0,o.removePathPrefix)(d.pathname,s),d.basePath=s),!0===t.parseData&&d.pathname.startsWith("/_next/data/")&&d.pathname.endsWith(".json")){let e=d.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];d.pathname="index"!==e[1]?"/"+e.slice(1).join("/"):"/",d.buildId=t}if(t.i18nProvider){let e=t.i18nProvider.analyze(d.pathname);d.locale=e.detectedLocale,d.pathname=null!=(i=e.pathname)?i:d.pathname}else if(c){let e=(0,n.normalizeLocalePath)(d.pathname,c.locales);d.locale=e.detectedLocale,d.pathname=null!=(l=e.pathname)?l:d.pathname}return d}},4471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(28057),o=r(93861)},74875:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(58287),o=r(35318);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),l=i.groups,s=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let c=Object.keys(l);return c.every(e=>{let t=s[e]||"",{repeat:r,optional:n}=l[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in s)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:c,result:a}}},93861:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});let r=/\/\[[^/]+?\](?=\/|$)/;function n(e){return r.test(e)}},8993:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(66630);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},86620:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},16590:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(61937);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:l,search:s,hash:c,href:u,origin:d}=new URL(e,a);if(d!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(l),search:s,hash:c,href:u.slice(r.origin.length)}}},29973:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},61937:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return a}})},6223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(29973);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},96050:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let n=r(61937),o=r(6692),a=r(86620),i=r(84779),l=r(65231),s=r(8993),c=r(93861),u=r(74875);function d(e,t,r){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f,m=p.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,s.isLocalURL)(f))return r?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,c.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,u.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[f]:f}}},58287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(84779);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},35318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return s},getNamedRouteRegex:function(){return u},getNamedMiddlewareRegex:function(){return d}});let n=r(36902),o=r(30769),a="nxtP";function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function l(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),r={},a=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:t,optional:n,repeat:o}=i(e.slice(1,-1));return r[t]={pos:a++,repeat:o,optional:n},o?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function s(e){let{parameterizedRoute:t,groups:r}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function c(e,t){let r,l;let s=(0,o.removeTrailingSlash)(e).slice(1).split("/"),c=(r=97,l=1,()=>{let e="";for(let t=0;t122&&(l++,r=97);return e}),u={};return{namedParameterizedRoute:s.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:r,optional:n,repeat:o}=i(e.slice(1,-1)),l=r.replace(/\W/g,"");t&&(l=""+a+l);let s=!1;return(0===l.length||l.length>30)&&(s=!0),isNaN(parseInt(l.slice(0,1)))||(s=!0),s&&(l=c()),t?u[l]=""+a+r:u[l]=""+r,o?n?"(?:/(?<"+l+">.+?))?":"/(?<"+l+">.+?)":"/(?<"+l+">[^/]+?)"}}).join(""),routeKeys:u}}function u(e,t){let r=c(e,t);return{...s(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=l(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},28057:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},84779:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return l},getDisplayName:function(){return s},isResSent:function(){return c},normalizeRepeatedSlashes:function(){return u},loadGetInitialProps:function(){return d},SP:function(){return f},ST:function(){return h},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=i();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function c(e){return e.finished||e.headersSent}function u(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&c(r))return n;if(!n){let t='"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},3031:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},40243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(6636);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},35846:function(e,t,r){e.exports=r(57477)},53794:function(e,t,r){e.exports=r(25076)},54486:function(e,t,r){var n,o;void 0!==(o="function"==typeof(n=function(){var e,t,r,n={};n.version="0.2.0";var o=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
    '};function a(e,t,r){return er?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(o[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,o.minimum,1),n.status=1===e?null:e;var r=n.render(!t),s=r.querySelector(o.barSelector),c=o.speed,u=o.easing;return r.offsetWidth,i(function(t){var a,i;""===o.positionUsing&&(o.positionUsing=n.getPositioningCSS()),l(s,(a=e,(i="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+a)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+a)*100+"%,0)"}:{"margin-left":(-1+a)*100+"%"}).transition="all "+c+"ms "+u,i)),1===e?(l(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){l(r,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},c)},c)):setTimeout(t,c)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*o.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var r,a,i=t.querySelector(o.barSelector),s=e?"-100":(-1+(n.status||0))*100,u=document.querySelector(o.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!o.showSpinner&&(a=t.querySelector(o.spinnerSelector))&&f(a),u!=document.body&&c(u,"nprogress-custom-parent"),u.appendChild(t),t},n.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var i=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,o){var a;n=t[a=(a=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[a]=function(t){var r=document.body.style;if(t in r)return t;for(var n,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((n=e[o]+a)in r)return n;return t}(a)),r.style[n]=o}return function(e,t){var n,o,a=arguments;if(2==a.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,a[1],a[2])}}();function s(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function c(e,t){var r=d(e),n=r+t;s(r,t)||(e.className=n.substring(1))}function u(e,t){var r,n=d(e);s(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)&&(e.exports=o)}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/5579-713e08c2f2fe94a5.js b/pilot/server/static/_next/static/chunks/7040-3379def6752de2ae.js similarity index 95% rename from pilot/server/static/_next/static/chunks/5579-713e08c2f2fe94a5.js rename to pilot/server/static/_next/static/chunks/7040-3379def6752de2ae.js index 1e1928114..8aee2fbb9 100644 --- a/pilot/server/static/_next/static/chunks/5579-713e08c2f2fe94a5.js +++ b/pilot/server/static/_next/static/chunks/7040-3379def6752de2ae.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5579],{31515:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(40431),r=i(86006),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},s=i(1240),a=r.forwardRef(function(e,t){return r.createElement(s.Z,(0,n.Z)({},e,{ref:t,icon:o}))})},71990:function(e,t,i){"use strict";async function n(e,t){let i;let n=e.getReader();for(;!(i=await n.read()).done;)t(i.value)}function r(){return{data:"",event:"",id:"",retry:void 0}}i.d(t,{a:function(){return s},L:function(){return l}});var o=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let s="text/event-stream",a="last-event-id";function l(e,t){var{signal:i,headers:l,onopen:u,onmessage:c,onclose:h,onerror:g,openWhenHidden:p,fetch:f}=t,m=o(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,o)=>{let _;let b=Object.assign({},l);function v(){_.abort(),document.hidden||k()}b.accept||(b.accept=s),p||document.addEventListener("visibilitychange",v);let C=1e3,y=0;function w(){document.removeEventListener("visibilitychange",v),window.clearTimeout(y),_.abort()}null==i||i.addEventListener("abort",()=>{w(),t()});let S=null!=f?f:window.fetch,E=null!=u?u:d;async function k(){var i,s;_=new AbortController;try{let i,o,l,d;let u=await S(e,Object.assign(Object.assign({},m),{headers:b,signal:_.signal}));await E(u),await n(u.body,(s=function(e,t,i){let n=r(),o=new TextDecoder;return function(s,a){if(0===s.length)null==i||i(n),n=r();else if(a>0){let i=o.decode(s.subarray(0,a)),r=a+(32===s[a+1]?2:1),l=o.decode(s.subarray(r));switch(i){case"data":n.data=n.data?n.data+"\n"+l:l;break;case"event":n.event=l;break;case"id":e(n.id=l);break;case"retry":let d=parseInt(l,10);isNaN(d)||t(n.retry=d)}}}}(e=>{e?b[a]=e:delete b[a]},e=>{C=e},c),d=!1,function(e){void 0===i?(i=e,o=0,l=-1):i=function(e,t){let i=new Uint8Array(e.length+t.length);return i.set(e),i.set(t,e.length),i}(i,e);let t=i.length,n=0;for(;o0&&C(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&C(n.height)/e.offsetHeight||1);var s=(f(e)?p(e):window).visualViewport,a=!w()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,d=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,c=n.height/o;return{width:u,height:c,top:d,right:l+u,bottom:d+c,left:l,x:l,y:d}}function E(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){return((f(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return S(L(e)).left+E(e).scrollLeft}function N(e){return p(e).getComputedStyle(e)}function D(e){var t=N(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function T(e){var t=S(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function I(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(_(e)?e.host:null)||L(e)}function R(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(k(t))>=0?t.ownerDocument.body:m(t)&&D(t)?t:e(I(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=p(n),s=r?[o].concat(o.visualViewport||[],D(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(R(I(s)))}function A(e){return m(e)&&"fixed"!==N(e).position?e.offsetParent:null}function O(e){for(var t=p(e),i=A(e);i&&["table","td","th"].indexOf(k(i))>=0&&"static"===N(i).position;)i=A(i);return i&&("html"===k(i)||"body"===k(i)&&"static"===N(i).position)?t:i||function(e){var t=/firefox/i.test(y());if(/Trident/i.test(y())&&m(e)&&"fixed"===N(e).position)return null;var i=I(e);for(_(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(k(i));){var n=N(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var M="bottom",P="right",F="left",B="auto",W=["top",M,P,F],H="start",V="viewport",z="popper",U=W.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),$=[].concat(W,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],j={placement:"bottom",modifiers:[],strategy:"absolute"};function G(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function X(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?Z(r):null,s=r?Y(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case M:t={x:a,y:i.y+i.height};break;case P:t={x:i.x+i.width,y:l};break;case F:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var d=o?Q(o):null;if(null!=d){var u="y"===d?"height":"width";switch(s){case H:t[d]=t[d]-(i[u]/2-n[u]/2);break;case"end":t[d]=t[d]+(i[u]/2-n[u]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,i,n,r,o,s,a,l=e.popper,d=e.popperRect,u=e.placement,c=e.variation,h=e.offsets,g=e.position,f=e.gpuAcceleration,m=e.adaptive,_=e.roundOffsets,b=e.isFixed,v=h.x,y=void 0===v?0:v,w=h.y,S=void 0===w?0:w,E="function"==typeof _?_({x:y,y:S}):{x:y,y:S};y=E.x,S=E.y;var k=h.hasOwnProperty("x"),x=h.hasOwnProperty("y"),D=F,T="top",I=window;if(m){var R=O(l),A="clientHeight",B="clientWidth";R===p(l)&&"static"!==N(R=L(l)).position&&"absolute"===g&&(A="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===c)&&(T=M,S-=(b&&R===I&&I.visualViewport?I.visualViewport.height:R[A])-d.height,S*=f?1:-1),(u===F||("top"===u||u===M)&&"end"===c)&&(D=P,y-=(b&&R===I&&I.visualViewport?I.visualViewport.width:R[B])-d.width,y*=f?1:-1)}var W=Object.assign({position:g},m&&J),H=!0===_?(t={x:y,y:S},i=p(l),n=t.x,r=t.y,{x:C(n*(o=i.devicePixelRatio||1))/o||0,y:C(r*o)/o||0}):{x:y,y:S};return(y=H.x,S=H.y,f)?Object.assign({},W,((a={})[T]=x?"0":"",a[D]=k?"0":"",a.transform=1>=(I.devicePixelRatio||1)?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",a)):Object.assign({},W,((s={})[T]=x?S+"px":"",s[D]=k?y+"px":"",s.transform="",s))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return en[e]})}function eo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&_(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,i){var n,r,o,s,a,l,d,u,c,h;return t===V?es(function(e,t){var i=p(e),n=L(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var d=w();(d||!d&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+x(e),y:l}}(e,i)):f(t)?((n=S(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):es((r=L(e),s=L(r),a=E(r),l=null==(o=r.ownerDocument)?void 0:o.body,d=b(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=b(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),c=-a.scrollLeft+x(r),h=-a.scrollTop,"rtl"===N(l||s).direction&&(c+=b(s.clientWidth,l?l.clientWidth:0)-d),{width:d,height:u,x:c,y:h}))}function el(){return{top:0,right:0,bottom:0,left:0}}function ed(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ec(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,d=t,u=d.placement,c=void 0===u?e.placement:u,h=d.strategy,g=void 0===h?e.strategy:h,p=d.boundary,_=d.rootBoundary,C=d.elementContext,y=void 0===C?z:C,w=d.altBoundary,E=d.padding,x=void 0===E?0:E,D=ed("number"!=typeof x?x:eu(x,W)),T=e.rects.popper,A=e.elements[void 0!==w&&w?y===z?"reference":z:y],F=(i=f(A)?A:A.contextElement||L(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===p?"clippingParents":p)?(r=R(I(i)),f(o=["absolute","fixed"].indexOf(N(i).position)>=0&&m(i)?O(i):i)?r.filter(function(e){return f(e)&&eo(e,o)&&"body"!==k(e)}):[]):[].concat(n),[void 0===_?V:_]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,g);return e.top=b(n.top,e.top),e.right=v(n.right,e.right),e.bottom=v(n.bottom,e.bottom),e.left=b(n.left,e.left),e},ea(i,a,g))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=S(e.elements.reference),H=X({reference:B,element:T,strategy:"absolute",placement:c}),U=es(Object.assign({},T,H)),$=y===z?U:B,K={top:F.top-$.top+D.top,bottom:$.bottom-F.bottom+D.bottom,left:F.left-$.left+D.left,right:$.right-F.right+D.right},j=e.modifiersData.offset;if(y===z&&j){var G=j[c];Object.keys(K).forEach(function(e){var t=[P,M].indexOf(e)>=0?1:-1,i=["top",M].indexOf(e)>=0?"y":"x";K[e]+=G[i]*t})}return K}function eh(e,t,i){return b(e,v(t,i))}function eg(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ep(e){return["top",P,M,F].some(function(t){return e[t]>=0})}var ef=(o=void 0===(r=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=p(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(e){e.addEventListener("scroll",i.update,q)}),a&&l.addEventListener("resize",i.update,q),function(){o&&d.forEach(function(e){e.removeEventListener("scroll",i.update,q)}),a&&l.removeEventListener("resize",i.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=i.adaptive,o=i.roundOffsets,s=void 0===o||o,a={placement:Z(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];m(r)&&k(r)&&(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&k(n)&&(Object.assign(n.style,o),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=$.reduce(function(e,i){var n,r,s,a,l,d;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=Z(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],d=a[1],l=l||0,d=(d||0)*s,[F,P].indexOf(r)>=0?{x:d,y:l}:{x:l,y:d}),e},{}),a=s[t.placement],l=a.x,d=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,d=i.padding,u=i.boundary,c=i.rootBoundary,h=i.altBoundary,g=i.flipVariations,p=void 0===g||g,f=i.allowedAutoPlacements,m=t.options.placement,_=Z(m)===m,b=l||(_||!p?[ei(m)]:function(e){if(Z(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),v=[m].concat(b).reduce(function(e,i){var n,r,o,s,a,l,h,g,m,_,b,v;return e.concat(Z(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:c,padding:d,flipVariations:p,allowedAutoPlacements:f}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,g=void 0===(h=n.allowedAutoPlacements)?$:h,0===(b=(_=(m=Y(r))?l?U:U.filter(function(e){return Y(e)===m}):W).filter(function(e){return g.indexOf(e)>=0})).length&&(b=_),Object.keys(v=b.reduce(function(e,i){return e[i]=ec(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[Z(i)],e},{})).sort(function(e,t){return v[e]-v[t]})):i)},[]),C=t.rects.reference,y=t.rects.popper,w=new Map,S=!0,E=v[0],k=0;k=0,T=D?"width":"height",I=ec(t,{placement:L,boundary:u,rootBoundary:c,altBoundary:h,padding:d}),R=D?N?P:F:N?M:"top";C[T]>y[T]&&(R=ei(R));var A=ei(R),O=[];if(o&&O.push(I[x]<=0),a&&O.push(I[R]<=0,I[A]<=0),O.every(function(e){return e})){E=L,S=!1;break}w.set(L,O)}if(S)for(var V=p?3:1,z=function(e){var t=v.find(function(t){var i=w.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},K=V;K>0&&"break"!==z(K);K--);t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,d=i.padding,u=i.tether,c=void 0===u||u,h=i.tetherOffset,g=void 0===h?0:h,p=ec(t,{boundary:s,rootBoundary:a,padding:d,altBoundary:l}),f=Z(t.placement),m=Y(t.placement),_=!m,C=Q(f),y="x"===C?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,L="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(w){if(void 0===r||r){var D,I="y"===C?"top":F,R="y"===C?M:P,A="y"===C?"height":"width",B=w[C],W=B+p[I],V=B-p[R],z=c?-E[A]/2:0,U=m===H?S[A]:E[A],$=m===H?-E[A]:-S[A],K=t.elements.arrow,j=c&&K?T(K):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),q=G[I],X=G[R],J=eh(0,S[A],j[A]),ee=_?S[A]/2-z-J-q-L.mainAxis:U-J-q-L.mainAxis,et=_?-S[A]/2+z+J+X+L.mainAxis:$+J+X+L.mainAxis,ei=t.elements.arrow&&O(t.elements.arrow),en=ei?"y"===C?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(D=null==x?void 0:x[C])?D:0,eo=B+ee-er-en,es=B+et-er,ea=eh(c?v(W,eo):W,B,c?b(V,es):V);w[C]=ea,N[C]=ea-B}if(void 0!==o&&o){var ed,eu,eg="x"===C?"top":F,ep="x"===C?M:P,ef=w[y],em="y"===y?"height":"width",e_=ef+p[eg],eb=ef-p[ep],ev=-1!==["top",F].indexOf(f),eC=null!=(eu=null==x?void 0:x[y])?eu:0,ey=ev?e_:ef-S[em]-E[em]-eC+L.altAxis,ew=ev?ef+S[em]+E[em]-eC-L.altAxis:eb,eS=c&&ev?(ed=eh(ey,ef,ew))>ew?ew:ed:eh(c?ey:e_,ef,c?ew:eb);w[y]=eS,N[y]=eS-ef}t.modifiersData[n]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Z(n.placement),d=Q(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var c=ed("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,W)),h=T(s),g="y"===d?"top":F,p="y"===d?M:P,f=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],m=a[d]-n.rects.reference[d],_=O(s),b=_?"y"===d?_.clientHeight||0:_.clientWidth||0:0,v=c[g],C=b-h[u]-c[p],y=b/2-h[u]/2+(f/2-m/2),w=eh(v,y,C);n.modifiersData[r]=((i={})[d]=w,i.centerOffset=w-y,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ec(t,{elementContext:"reference"}),a=ec(t,{altBoundary:!0}),l=eg(s,n),d=eg(a,r,o),u=ep(l),c=ep(d);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?j:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},j,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,d={state:r,setOptions:function(i){var n,l,c,h,g,p="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,p),r.scrollParents={reference:f(e)?R(e):e.contextElement?R(e.contextElement):[],popper:R(t)};var m=(l=Object.keys(n=[].concat(o,r.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return n[e]}),c=new Map,h=new Set,g=[],l.forEach(function(e){c.set(e.name,e)}),l.forEach(function(e){h.has(e.name)||function e(t){h.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!h.has(t)){var i=c.get(t);i&&e(i)}}),g.push(t)}(e)}),K.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=m.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var o=n({state:r,name:t,instance:d,options:void 0===i?{}:i});s.push(o||function(){})}}),d.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,c,h,g,f,_=r.elements,b=_.reference,v=_.popper;if(G(b,v)){r.rects={reference:(t=O(v),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=C((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=C(o.height)/t.offsetHeight||1,1!==s||1!==a),c=L(t),h=S(b,u,i),g={scrollLeft:0,scrollTop:0},f={x:0,y:0},(n||!n&&!i)&&(("body"!==k(t)||D(c))&&(g=(e=t)!==p(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:E(e)),m(t)?(f=S(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):c&&(f.x=x(c))),{x:h.left+g.scrollLeft-f.x,y:h.top+g.scrollTop-f.y,width:h.width,height:h.height}),popper:T(v)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var y=0;y(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(ek);return i=>t?"":e(i)}(ev)),eT={},eI=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:g,placement:p,popperOptions:f,popperRef:m,slotProps:_={},slots:b={},TransitionProps:v}=e,C=(0,d.Z)(e,eL),y=u.useRef(null),w=(0,c.Z)(y,t),S=u.useRef(null),E=(0,c.Z)(S,m),k=u.useRef(E);(0,h.Z)(()=>{k.current=E},[E]),u.useImperativeHandle(m,()=>S.current,[]);let L=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,o),[x,N]=u.useState(L),[D,T]=u.useState(eN(n));u.useEffect(()=>{S.current&&S.current.forceUpdate()}),u.useEffect(()=>{n&&T(eN(n))},[n]),(0,h.Z)(()=>{if(!D||!g)return;let e=e=>{N(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),f&&null!=f.modifiers&&(t=t.concat(f.modifiers));let i=ef(D,y.current,(0,l.Z)({placement:L},f,{modifiers:t}));return k.current(i),()=>{i.destroy(),k.current(null)}},[D,s,a,g,f,L]);let I={placement:x};null!==v&&(I.TransitionProps=v);let R=eD(),A=null!=(i=b.root)?i:"div",O=function(e){var t;let{elementType:i,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1}=e,s=(0,d.Z)(e,eS),a=o?{}:(0,ew.Z)(n,r),{props:u,internalRef:h}=(0,ey.Z)((0,l.Z)({},s,{externalSlotProps:a})),g=(0,c.Z)(h,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref),p=(0,eC.Z)(i,(0,l.Z)({},u,{ref:g}),r);return p}({elementType:A,externalSlotProps:_.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:R.root});return(0,eE.jsx)(A,(0,l.Z)({},O,{children:"function"==typeof r?r(I):r}))}),eR=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:h,open:p,placement:f="bottom",popperOptions:m=eT,popperRef:_,style:b,transition:v=!1,slotProps:C={},slots:y={}}=e,w=(0,d.Z)(e,ex),[S,E]=u.useState(!0);if(!c&&!p&&(!v||S))return null;if(o)i=o;else if(n){let e=eN(n);i=e&&void 0!==e.nodeType?(0,g.Z)(e).body:(0,g.Z)(null).body}let k=!p&&c&&(!v||S)?"none":void 0;return(0,eE.jsx)(e_.Z,{disablePortal:a,container:i,children:(0,eE.jsx)(eI,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:h,ref:t,open:v?!S:p,placement:f,popperOptions:m,popperRef:_,slotProps:C,slots:y},w,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:k},b),TransitionProps:v?{in:p,onEnter:()=>{E(!1)},onExited:()=>{E(!0)}}:void 0,children:r}))})});var eA=eR},18414:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(86006);let r=n.createContext(null)},30461:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},76563:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(86006);let r=n.createContext(null);function o(){let[e,t]=n.useState(new Map),i=n.useRef(new Set),r=n.useCallback(function(e){i.current.delete(e),t(t=>{let i=new Map(t);return i.delete(e),i})},[]),o=n.useCallback(function(e,n){let o;return o="function"==typeof e?e(i.current):e,i.current.add(o),t(e=>{let t=new Map(e);return t.set(o,n),t}),{id:o,deregister:()=>r(o)}},[r]),s=n.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return t.sort((e,t)=>{let i=e.subitem.ref.current,n=t.subitem.ref.current;return null===i||null===n||i===n?0:i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),a=n.useCallback(function(e){return Array.from(s.keys()).indexOf(e)},[s]),l=n.useMemo(()=>({getItemIndex:a,registerItem:o,totalSubitemCount:e.size}),[a,o,e.size]);return{contextValue:l,subitems:s}}r.displayName="CompoundComponentContext"},48755:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M14 2H4c-1.11 0-2 .9-2 2v10h2V4h10V2zm4 4H8c-1.11 0-2 .9-2 2v10h2V8h10V6zm2 4h-8c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h8c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2z"}),"AutoAwesomeMotion");t.Z=s},55749:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)([(0,o.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,o.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,o.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,o.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=s},28179:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M17.41 6.59 15 5.5l2.41-1.09L18.5 2l1.09 2.41L22 5.5l-2.41 1.09L18.5 9l-1.09-2.41zm3.87 6.13L20.5 11l-.78 1.72-1.72.78 1.72.78.78 1.72.78-1.72L23 13.5l-1.72-.78zm-5.04 1.65 1.94 1.47-2.5 4.33-2.24-.94c-.2.13-.42.26-.64.37l-.3 2.4h-5l-.3-2.41c-.22-.11-.43-.23-.64-.37l-2.24.94-2.5-4.33 1.94-1.47c-.01-.11-.01-.24-.01-.36s0-.25.01-.37l-1.94-1.47 2.5-4.33 2.24.94c.2-.13.42-.26.64-.37L7.5 6h5l.3 2.41c.22.11.43.23.64.37l2.24-.94 2.5 4.33-1.94 1.47c.01.12.01.24.01.37s0 .24-.01.36zM13 14c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3z"}),"SettingsSuggest");t.Z=s},70781:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=s},97287:function(e,t,i){"use strict";var n=i(40431),r=i(46750),o=i(86006),s=i(47562),a=i(53832),l=i(88930),d=i(326),u=i(50645),c=i(47093),h=i(73141),g=i(9268);let p=["children","ratio","minHeight","maxHeight","objectFit","color","variant","component","slots","slotProps"],f=e=>{let{variant:t,color:i}=e,n={root:["root"],content:["content",t&&`variant${(0,a.Z)(t)}`,i&&`color${(0,a.Z)(i)}`]};return(0,s.Z)(n,h.x,{})},m=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>{let t="number"==typeof e.minHeight?`${e.minHeight}px`:e.minHeight,i="number"==typeof e.maxHeight?`${e.maxHeight}px`:e.maxHeight;return{"--AspectRatio-paddingBottom":`clamp(var(--AspectRatio-minHeight), calc(100% / (${e.ratio})), var(--AspectRatio-maxHeight))`,"--AspectRatio-maxHeight":i||"9999px","--AspectRatio-minHeight":t||"0px",borderRadius:"var(--AspectRatio-radius)",flexDirection:"column",margin:"var(--AspectRatio-margin)"}}),_=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var i;return[{flex:1,position:"relative",borderRadius:"inherit",height:0,paddingBottom:"calc(var(--AspectRatio-paddingBottom) - 2 * var(--variant-borderWidth, 0px))",overflow:"hidden",transition:"inherit","& [data-first-child]":{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",position:"absolute",width:"100%",height:"100%",objectFit:t.objectFit,margin:0,padding:0,"& > img":{width:"100%",height:"100%",objectFit:t.objectFit}}},null==(i=e.variants[t.variant])?void 0:i[t.color]]}),b=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyAspectRatio"}),{children:s,ratio:a="16 / 9",minHeight:u,maxHeight:h,objectFit:b="cover",color:v="neutral",variant:C="soft",component:y,slots:w={},slotProps:S={}}=i,E=(0,r.Z)(i,p),{getColor:k}=(0,c.VT)(C),L=k(e.color,v),x=(0,n.Z)({},i,{minHeight:u,maxHeight:h,objectFit:b,ratio:a,color:L,variant:C}),N=f(x),D=(0,n.Z)({},E,{component:y,slots:w,slotProps:S}),[T,I]=(0,d.Z)("root",{ref:t,className:N.root,elementType:m,externalForwardedProps:D,ownerState:x}),[R,A]=(0,d.Z)("content",{className:N.content,elementType:_,externalForwardedProps:D,ownerState:x});return(0,g.jsx)(T,(0,n.Z)({},I,{children:(0,g.jsx)(R,(0,n.Z)({},A,{children:o.Children.map(s,(e,t)=>0===t&&o.isValidElement(e)?o.cloneElement(e,{"data-first-child":""}):e)}))}))});t.Z=b},73141:function(e,t,i){"use strict";i.d(t,{x:function(){return r}});var n=i(18587);function r(e){return(0,n.d6)("MuiAspectRatio",e)}let o=(0,n.sI)("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);t.Z=o},90022:function(e,t,i){"use strict";i.d(t,{Z:function(){return w}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(47562),l=i(53832),d=i(44542),u=i(88930),c=i(50645),h=i(47093),g=i(18587);function p(e){return(0,g.d6)("MuiCard",e)}(0,g.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var f=i(81439),m=i(326),_=i(9268);let b=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],v=e=>{let{size:t,variant:i,color:n,orientation:r}=e,o={root:["root",r,i&&`variant${(0,l.Z)(i)}`,n&&`color${(0,l.Z)(n)}`,t&&`size${(0,l.Z)(t)}`]};return(0,a.Z)(o,p,{})},C=(0,c.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;return[(0,r.Z)({"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":(0,f.V)({theme:e,ownerState:t},"borderRadius","var(--Card-radius)"),"--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.5rem",gap:"0.375rem 0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",boxShadow:e.shadow.sm,backgroundColor:e.vars.palette.background.surface,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"}),null==(i=e.variants[t.variant])?void 0:i[t.color],"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color])]}),y=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:c="div",invertedColors:g=!1,size:p="md",variant:f="plain",children:y,orientation:w="vertical",slots:S={},slotProps:E={}}=i,k=(0,n.Z)(i,b),{getColor:L}=(0,h.VT)(f),x=L(e.color,l),N=(0,r.Z)({},i,{color:x,component:c,orientation:w,size:p,variant:f}),D=v(N),T=(0,r.Z)({},k,{component:c,slots:S,slotProps:E}),[I,R]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(D.root,a),elementType:C,externalForwardedProps:T,ownerState:N}),A=(0,_.jsx)(I,(0,r.Z)({},R,{children:o.Children.map(y,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,d.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===w?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,d.Z)(e,["CardOverflow"])&&("horizontal"===w&&(i["data-parent"]="Card-horizontal"),"vertical"===w&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(y)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return g?(0,_.jsx)(h.do,{variant:f,children:A}):A});var w=y},8997:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(40431),r=i(46750),o=i(86006),s=i(89791),a=i(47562),l=i(88930),d=i(50645),u=i(18587);function c(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let h=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=i(326),p=i(9268);let f=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},c,{}),_=(0,d.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:1,zIndex:1,columnGap:"calc(0.75 * var(--Card-padding))",padding:"var(--unstable_padding)",[`.${h.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),b=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:d,orientation:u="vertical",slots:c={},slotProps:h={}}=i,b=(0,r.Z)(i,f),v=(0,n.Z)({},b,{component:a,slots:c,slotProps:h}),C=(0,n.Z)({},i,{component:a,orientation:u}),y=m(),[w,S]=(0,g.Z)("root",{ref:t,className:(0,s.Z)(y.root,o),elementType:_,externalForwardedProps:v,ownerState:C});return(0,p.jsx)(w,(0,n.Z)({},S,{children:d}))});var v=b},45642:function(e,t,i){"use strict";i.d(t,{Z:function(){return H}});var n=i(40431),r=i(46750),o=i(86006),s=i(73702),a=i(47562),l=i(13809),d=i(44542),u=i(96263),c=i(38295),h=i(95887),g=i(86601),p=i(89587);let f=(e,t)=>e.filter(e=>t.includes(e)),m=(e,t,i)=>{let n=e.keys[0];if(Array.isArray(t))t.forEach((t,n)=>{i((t,i)=>{n<=e.keys.length-1&&(0===n?Object.assign(t,i):t[e.up(e.keys[n])]=i)},t)});else if(t&&"object"==typeof t){let r=Object.keys(t).length>e.keys.length?e.keys:f(e.keys,Object.keys(t));r.forEach(r=>{if(-1!==e.keys.indexOf(r)){let o=t[r];void 0!==o&&i((t,i)=>{n===r?Object.assign(t,i):t[e.up(r)]=i},o)}})}else("number"==typeof t||"string"==typeof t)&&i((e,t)=>{Object.assign(e,t)},t)};function _(e){return e?`Level${e}`:""}function b(e){return e.unstable_level>0&&e.container}function v(e){return function(t){return`var(--Grid-${t}Spacing${_(e.unstable_level)})`}}function C(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${_(e.unstable_level-1)})`}}function y(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${_(e.unstable_level-1)})`}let w=({theme:e,ownerState:t})=>{let i=v(t),n={};return m(e.breakpoints,t.gridSize,(e,r)=>{let o={};!0===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / ${y(t)}${b(t)?` + ${i("column")}`:""})`}),e(n,o)}),n},S=({theme:e,ownerState:t})=>{let i={};return m(e.breakpoints,t.gridOffset,(e,n)=>{let r={};"auto"===n&&(r={marginLeft:"auto"}),"number"==typeof n&&(r={marginLeft:0===n?"0px":`calc(100% * ${n} / ${y(t)})`}),e(i,r)}),i},E=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=b(t)?{[`--Grid-columns${_(t.unstable_level)}`]:y(t)}:{"--Grid-columns":12};return m(e.breakpoints,t.columns,(e,n)=>{e(i,{[`--Grid-columns${_(t.unstable_level)}`]:n})}),i},k=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=C(t),n=b(t)?{[`--Grid-rowSpacing${_(t.unstable_level)}`]:i("row")}:{};return m(e.breakpoints,t.rowSpacing,(i,r)=>{var o;i(n,{[`--Grid-rowSpacing${_(t.unstable_level)}`]:"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})}),n},L=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=C(t),n=b(t)?{[`--Grid-columnSpacing${_(t.unstable_level)}`]:i("column")}:{};return m(e.breakpoints,t.columnSpacing,(i,r)=>{var o;i(n,{[`--Grid-columnSpacing${_(t.unstable_level)}`]:"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})}),n},x=({theme:e,ownerState:t})=>{if(!t.container)return{};let i={};return m(e.breakpoints,t.direction,(e,t)=>{e(i,{flexDirection:t})}),i},N=({ownerState:e})=>{let t=v(e),i=C(e);return(0,n.Z)({minWidth:0,boxSizing:"border-box"},e.container&&(0,n.Z)({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||b(e))&&(0,n.Z)({padding:`calc(${i("row")} / 2) calc(${i("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${i("row")} 0px 0px ${i("column")}`}))},D=e=>{let t=[];return Object.entries(e).forEach(([e,i])=>{!1!==i&&void 0!==i&&t.push(`grid-${e}-${String(i)}`)}),t},T=(e,t="xs")=>{function i(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(i(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,n])=>{i(n)&&t.push(`spacing-${e}-${String(n)}`)}),t}return[]},I=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];var R=i(9268);let A=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],O=(0,p.Z)(),M=(0,u.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function P(e){return(0,c.Z)({props:e,name:"MuiGrid",defaultTheme:O})}var F=i(50645),B=i(88930);let W=function(e={}){let{createStyledComponent:t=M,useThemeProps:i=P,componentName:u="MuiGrid"}=e,c=o.createContext(void 0),p=(e,t)=>{let{container:i,direction:n,spacing:r,wrap:o,gridSize:s}=e,d={root:["root",i&&"container","wrap"!==o&&`wrap-xs-${String(o)}`,...I(n),...D(s),...i?T(r,t.breakpoints.keys[0]):[]]};return(0,a.Z)(d,e=>(0,l.Z)(u,e),{})},f=t(E,L,k,w,x,N,S),m=o.forwardRef(function(e,t){var a,l,u,m,_,b,v,C;let y=(0,h.Z)(),w=i(e),S=(0,g.Z)(w),E=o.useContext(c),{className:k,children:L,columns:x=12,container:N=!1,component:D="div",direction:T="row",wrap:I="wrap",spacing:O=0,rowSpacing:M=O,columnSpacing:P=O,disableEqualOverflow:F,unstable_level:B=0}=S,W=(0,r.Z)(S,A),H=F;B&&void 0!==F&&(H=e.disableEqualOverflow);let V={},z={},U={};Object.entries(W).forEach(([e,t])=>{void 0!==y.breakpoints.values[e]?V[e]=t:void 0!==y.breakpoints.values[e.replace("Offset","")]?z[e.replace("Offset","")]=t:U[e]=t});let $=null!=(a=e.columns)?a:B?void 0:x,K=null!=(l=e.spacing)?l:B?void 0:O,j=null!=(u=null!=(m=e.rowSpacing)?m:e.spacing)?u:B?void 0:M,G=null!=(_=null!=(b=e.columnSpacing)?b:e.spacing)?_:B?void 0:P,q=(0,n.Z)({},S,{level:B,columns:$,container:N,direction:T,wrap:I,spacing:K,rowSpacing:j,columnSpacing:G,gridSize:V,gridOffset:z,disableEqualOverflow:null!=(v=null!=(C=H)?C:E)&&v,parentDisableEqualOverflow:E}),Z=p(q,y),Y=(0,R.jsx)(f,(0,n.Z)({ref:t,as:D,ownerState:q,className:(0,s.Z)(Z.root,k)},U,{children:o.Children.map(L,e=>{if(o.isValidElement(e)&&(0,d.Z)(e,["Grid"])){var t;return o.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:B+1})}return e})}));return void 0!==H&&H!==(null!=E&&E)&&(Y=(0,R.jsx)(c.Provider,{value:H,children:Y})),Y});return m.muiName="Grid",m}({createStyledComponent:(0,F.Z)("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,B.Z)({props:e,name:"JoyGrid"})});var H=W},30530:function(e,t,i){"use strict";i.d(t,{Z:function(){return E}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(47562),l=i(53832),d=i(44542),u=i(50645),c=i(88930),h=i(47093),g=i(5737),p=i(18587);function f(e){return(0,p.d6)("MuiModalDialog",e)}(0,p.sI)("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]);var m=i(66752),_=i(69586),b=i(326),v=i(9268);let C=["className","children","color","component","variant","size","layout","slots","slotProps"],y=e=>{let{variant:t,color:i,size:n,layout:r}=e,o={root:["root",t&&`variant${(0,l.Z)(t)}`,i&&`color${(0,l.Z)(i)}`,n&&`size${(0,l.Z)(n)}`,r&&`layout${(0,l.Z)(r)}`]};return(0,a.Z)(o,f,{})},w=(0,u.Z)(g.U,{name:"JoyModalDialog",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,r.Z)({"--Divider-inset":"calc(-1 * var(--ModalDialog-padding))","--ModalClose-radius":"max((var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===t.size&&{"--ModalDialog-padding":e.spacing(2),"--ModalDialog-radius":e.vars.radius.sm,"--ModalDialog-gap":e.spacing(.75),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.25),"--ModalClose-inset":e.spacing(1.25),fontSize:e.vars.fontSize.sm},"md"===t.size&&{"--ModalDialog-padding":e.spacing(2.5),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(1.5),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.75),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.md},"lg"===t.size&&{"--ModalDialog-padding":e.spacing(3),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(2),"--ModalDialog-titleOffset":e.spacing(.75),"--ModalDialog-descriptionOffset":e.spacing(1),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.lg},{boxSizing:"border-box",boxShadow:e.shadow.md,borderRadius:"var(--ModalDialog-radius)",fontFamily:e.vars.fontFamily.body,lineHeight:e.vars.lineHeight.md,padding:"var(--ModalDialog-padding)",minWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-minWidth, 300px))",outline:0,position:"absolute",display:"flex",flexDirection:"column"},"fullscreen"===t.layout&&{top:0,left:0,right:0,bottom:0,border:0,borderRadius:0},"center"===t.layout&&{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-maxWidth, 100vw))",maxHeight:"calc(100% - 2 * var(--ModalDialog-padding))"},{[`& [id="${t["aria-labelledby"]}"]`]:{"--Typography-margin":"calc(-1 * var(--ModalDialog-titleOffset)) 0 var(--ModalDialog-gap) 0","--Typography-fontSize":"1.125em",[`& + [id="${t["aria-describedby"]}"]`]:{"--unstable_ModalDialog-descriptionOffset":"calc(-1 * var(--ModalDialog-descriptionOffset))"}},[`& [id="${t["aria-describedby"]}"]`]:{"--Typography-fontSize":"1em","--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 0 0","&:not(:last-child)":{"--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 var(--ModalDialog-gap) 0"}}})),S=o.forwardRef(function(e,t){let i=(0,c.Z)({props:e,name:"JoyModalDialog"}),{className:a,children:l,color:u="neutral",component:g="div",variant:p="outlined",size:f="md",layout:S="center",slots:E={},slotProps:k={}}=i,L=(0,n.Z)(i,C),{getColor:x}=(0,h.VT)(p),N=x(e.color,u),D=(0,r.Z)({},i,{color:N,component:g,layout:S,size:f,variant:p}),T=y(D),I=(0,r.Z)({},L,{component:g,slots:E,slotProps:k}),R=o.useMemo(()=>({variant:p,color:"context"===N?void 0:N}),[N,p]),[A,O]=(0,b.Z)("root",{ref:t,className:(0,s.Z)(T.root,a),elementType:w,externalForwardedProps:I,ownerState:D,additionalProps:{as:g,role:"dialog","aria-modal":"true"}});return(0,v.jsx)(m.Z.Provider,{value:f,children:(0,v.jsx)(_.Z.Provider,{value:R,children:(0,v.jsx)(A,(0,r.Z)({},O,{children:o.Children.map(l,e=>{if(!o.isValidElement(e))return e;if((0,d.Z)(e,["Divider"])){let t={};return t.inset="inset"in e.props?e.props.inset:"context",o.cloneElement(e,t)}return e})}))})})});var E=S},24857:function(e,t,i){"use strict";i.d(t,{Z:function(){return x}});var n=i(40431),r=i(46750),o=i(86006),s=i(47562),a=i(49657),l=i(99179),d=i(11059),u=i(30461),c=i(18414),h=i(76563),g=i(326),p=i(70092),f=i(50645),m=i(88930),_=i(47093),b=i(18587);function v(e){return(0,b.d6)("MuiOption",e)}let C=(0,b.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var y=i(76620),w=i(9268);let S=["component","children","disabled","value","label","variant","color","slots","slotProps"],E=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},v,{})},k=(0,f.Z)(p.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color];return{[`&.${C.highlighted}`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),L=o.forwardRef(function(e,t){var i;let s=(0,m.Z)({props:e,name:"JoyOption"}),{component:p="li",children:f,disabled:b=!1,value:v,label:C,variant:L="plain",color:x="neutral",slots:N={},slotProps:D={}}=s,T=(0,r.Z)(s,S),I=o.useContext(y.Z),R=o.useRef(null),A=(0,l.Z)(R,t),O=null!=C?C:"string"==typeof f?f:null==(i=R.current)?void 0:i.innerText,{getRootProps:M,selected:P,highlighted:F,index:B}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:g}=e,{getRootProps:p,rootRef:f,highlighted:m,selected:_}=function(e){let t;let{handlePointerOverEvents:i=!1,item:r,rootRef:s}=e,a=o.useRef(null),h=(0,l.Z)(a,s),g=o.useContext(c.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:p,getItemState:f,registerHighlightChangeHandler:m,registerSelectionChangeHandler:_}=g,{highlighted:b,selected:v,focusable:C}=f(r),y=function(){let[,e]=o.useState({});return o.useCallback(()=>{e({})},[])}();(0,d.Z)(()=>m(function(e){e!==r||b?e!==r&&b&&y():y()})),(0,d.Z)(()=>_(function(e){v?e.includes(r)||y():e.includes(r)&&y()}),[_,y,v,r]);let w=o.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||p({type:u.F.itemClick,item:r,event:t})},[p,r]),S=o.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||p({type:u.F.itemHover,item:r,event:t})},[p,r]);return C&&(t=b?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:w(e),onPointerOver:i?S(e):void 0,ref:h,tabIndex:t}),highlighted:b,rootRef:h,selected:v}}({item:t}),b=(0,a.Z)(g),v=o.useRef(null),C=o.useMemo(()=>({disabled:r,label:i,value:t,ref:v,id:b}),[r,i,t,b]),{index:y}=function(e,t){let i=o.useContext(h.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:n}=i,[r,s]=o.useState("function"==typeof e?void 0:e);return(0,d.Z)(()=>{let{id:i,deregister:r}=n(e,t);return s(i),r},[n,t,e]),{id:r,index:void 0!==r?i.getItemIndex(r):-1,totalItemCount:i.totalSubitemCount}}(t,C),w=(0,l.Z)(s,v,f);return{getRootProps:(e={})=>(0,n.Z)({},e,p(e),{id:b,ref:w,role:"option","aria-selected":_}),highlighted:m,index:y,selected:_,rootRef:w}}({disabled:b,label:O,value:v,rootRef:A}),{getColor:W}=(0,_.VT)(L),H=W(e.color,P?"primary":x),V=(0,n.Z)({},s,{disabled:b,selected:P,highlighted:F,index:B,component:p,variant:L,color:H,row:I}),z=E(V),U=(0,n.Z)({},T,{component:p,slots:N,slotProps:D}),[$,K]=(0,g.Z)("root",{ref:t,getSlotProps:M,elementType:k,externalForwardedProps:U,className:z.root,ownerState:V});return(0,w.jsx)($,(0,n.Z)({},K,{children:f}))});var x=L},71451:function(e,t,i){"use strict";i.d(t,{Z:function(){return ep}});var n,r=i(46750),o=i(40431),s=i(86006),a=i(89791),l=i(53832),d=i(99179),u=i(67222),c=i(49657),h=i(11059),g=i(73811);let p={buttonClick:"buttonClick"};var f=i(30461);function m(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:d,itemComparer:u,focusManagement:c}=i,h=s.length-1,g=null==e?-1:s.findIndex(t=>u(t,e)),p=!l;switch(t){case"reset":if(-1==("DOM"===c?0:-1))return null;r=0,o="next",p=!1;break;case"start":r=0,o="next",p=!1;break;case"end":r=h,o="previous",p=!1;break;default:{let e=g+t;e<0?!p&&-1!==g||Math.abs(t)>1?(r=0,o="next"):(r=h,o="previous"):e>h?!p||Math.abs(t)>1?(r=h,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let f=function(e,t,i,n,r,o){if(0===i.length||!n&&i.every((e,t)=>r(e,t)))return -1;let s=e;for(;;){if(!o&&"next"===t&&s===i.length||!o&&"previous"===t&&-1===s)return -1;let e=!n&&r(i[s],s);if(!e)return s;s+="next"===t?1:-1,o&&(s=(s+i.length)%i.length)}}(r,o,s,d,a,p);return -1!==f||null===e||a(e,g)?null!=(n=s[f])?n:null:e}function _(e,t,i){let{itemComparer:n,isItemDisabled:r,selectionMode:s,items:a}=i,{selectedValues:l}=t,d=a.findIndex(t=>n(e,t));if(r(e,d))return t;let u="none"===s?[]:"single"===s?n(l[0],e)?l:[e]:l.some(t=>n(t,e))?l.filter(t=>!n(t,e)):[...l,e];return(0,o.Z)({},t,{selectedValues:u,highlightedValue:e})}function b(e,t){let{type:i,context:n}=t;switch(i){case f.F.keyDown:return function(e,t,i){let n=t.highlightedValue,{orientation:r,pageSize:s}=i;switch(e){case"Home":return(0,o.Z)({},t,{highlightedValue:m(n,"start",i)});case"End":return(0,o.Z)({},t,{highlightedValue:m(n,"end",i)});case"PageUp":return(0,o.Z)({},t,{highlightedValue:m(n,-s,i)});case"PageDown":return(0,o.Z)({},t,{highlightedValue:m(n,s,i)});case"ArrowUp":if("vertical"!==r)break;return(0,o.Z)({},t,{highlightedValue:m(n,-1,i)});case"ArrowDown":if("vertical"!==r)break;return(0,o.Z)({},t,{highlightedValue:m(n,1,i)});case"ArrowLeft":if("vertical"===r)break;return(0,o.Z)({},t,{highlightedValue:m(n,"horizontal-ltr"===r?-1:1,i)});case"ArrowRight":if("vertical"===r)break;return(0,o.Z)({},t,{highlightedValue:m(n,"horizontal-ltr"===r?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return _(t.highlightedValue,t,i)}return t}(t.key,e,n);case f.F.itemClick:return _(t.item,e,n);case f.F.blur:return"DOM"===n.focusManagement?e:(0,o.Z)({},e,{highlightedValue:null});case f.F.textNavigation:return function(e,t,i){let{items:n,isItemDisabled:r,disabledItemsFocusable:s,getItemAsString:a}=i,l=t.length>1,d=l?e.highlightedValue:m(e.highlightedValue,1,i);for(let u=0;ua(e,i.highlightedValue)))?s:null:"DOM"===l&&0===t.length&&(d=m(null,"reset",n));let u=null!=(r=i.selectedValues)?r:[],c=u.filter(t=>e.some(e=>a(e,t)));return(0,o.Z)({},i,{highlightedValue:d,selectedValues:c})}(t.items,t.previousItems,e,n);case f.F.resetHighlight:return(0,o.Z)({},e,{highlightedValue:m(null,"reset",n)});default:return e}}let v="select:change-selection",C="select:change-highlight";function y(e,t){return e===t}let w={},S=()=>{};function E(e,t){let i=(0,o.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function k(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}function L(e,t){let i=s.useRef(e);return s.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let x={},N=()=>{},D=(e,t)=>e===t,T=()=>!1,I=e=>"string"==typeof e?e:String(e),R=()=>({highlightedValue:null,selectedValues:[]});var A=function(e){let{controlledProps:t=x,disabledItemsFocusable:i=!1,disableListWrap:n=!1,focusManagement:r="activeDescendant",getInitialState:a=R,getItemDomElement:l,getItemId:u,isItemDisabled:c=T,rootRef:h,onStateChange:g=N,items:p,itemComparer:m=D,getItemAsString:_=I,onChange:A,onHighlightChange:O,onItemsChange:M,orientation:P="vertical",pageSize:F=5,reducerActionContext:B=x,selectionMode:W="single",stateReducer:H}=e,V=s.useRef(null),z=(0,d.Z)(h,V),U=s.useCallback((e,t,i)=>{if(null==O||O(e,t,i),"DOM"===r&&null!=t&&(i===f.F.itemClick||i===f.F.keyDown||i===f.F.textNavigation)){var n;null==l||null==(n=l(t))||n.focus()}},[l,O,r]),$=s.useMemo(()=>({highlightedValue:m,selectedValues:(e,t)=>k(e,t,m)}),[m]),K=s.useCallback((e,t,i,n,r)=>{switch(null==g||g(e,t,i,n,r),t){case"highlightedValue":U(e,i,n);break;case"selectedValues":null==A||A(e,i,n)}},[U,A,g]),j=s.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:n,focusManagement:r,isItemDisabled:c,itemComparer:m,items:p,getItemAsString:_,onHighlightChange:U,orientation:P,pageSize:F,selectionMode:W,stateComparers:$}),[i,n,r,c,m,p,_,U,P,F,W,$]),G=a(),q=s.useMemo(()=>(0,o.Z)({},B,j),[B,j]),[Z,Y]=function(e){let t=s.useRef(null),{reducer:i,initialState:n,controlledProps:r=w,stateComparers:a=w,onStateChange:l=S,actionContext:d}=e,u=s.useCallback((e,n)=>{t.current=n;let o=E(e,r),s=i(o,n);return s},[r,i]),[c,h]=s.useReducer(u,n),g=s.useCallback(e=>{h((0,o.Z)({},e,{context:d}))},[d]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:r,controlledProps:o,lastActionRef:a}=e,l=s.useRef(i);s.useEffect(()=>{if(null===a.current)return;let e=E(l.current,o);Object.keys(t).forEach(i=>{var o,s,l;let d=null!=(o=n[i])?o:y,u=t[i],c=e[i];(null!=c||null==u)&&(null==c||null!=u)&&(null==c||null==u||d(u,c))||null==r||r(null!=(s=a.current.event)?s:null,i,u,null!=(l=a.current.type)?l:"",t)}),l.current=t,a.current=null},[l,t,a,r,n,o])}({nextState:c,initialState:n,stateComparers:null!=a?a:w,onStateChange:null!=l?l:S,controlledProps:r,lastActionRef:t}),[E(c,r),g]}({reducer:null!=H?H:b,actionContext:q,initialState:G,controlledProps:t,stateComparers:$,onStateChange:K}),{highlightedValue:Q,selectedValues:X}=Z,J=function(e){let t=s.useRef({searchString:"",lastTime:null});return s.useCallback(i=>{if(1===i.key.length&&" "!==i.key){let n=t.current,r=i.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>500?n.searchString=r:(1!==n.searchString.length||r!==n.searchString)&&(n.searchString+=r),n.lastTime=o,e(n.searchString,i)}},[e])}((e,t)=>Y({type:f.F.textNavigation,event:t,searchString:e})),ee=L(X),et=L(Q),ei=s.useRef([]);s.useEffect(()=>{k(ei.current,p,m)||(Y({type:f.F.itemsChange,event:null,items:p,previousItems:ei.current}),ei.current=p,null==M||M(p))},[p,m,Y,M]);let{notifySelectionChanged:en,notifyHighlightChanged:er,registerHighlightChangeHandler:eo,registerSelectionChangeHandler:es}=function(){let e=function(){let e=s.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,i){let n=e.get(t);return n?n.add(i):(n=new Set([i]),e.set(t,n)),()=>{n.delete(i),0===n.size&&e.delete(t)}},publish:function(t,...i){let n=e.get(t);n&&n.forEach(e=>e(...i))}}}()),e.current}(),t=s.useCallback(t=>{e.publish(v,t)},[e]),i=s.useCallback(t=>{e.publish(C,t)},[e]),n=s.useCallback(t=>e.subscribe(v,t),[e]),r=s.useCallback(t=>e.subscribe(C,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:r}}();s.useEffect(()=>{en(X)},[X,en]),s.useEffect(()=>{er(Q)},[Q,er]);let ea=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===P?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===r&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),Y({type:f.F.keyDown,key:t.key,event:t}),J(t)},el=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=V.current)&&n.contains(t.relatedTarget)||Y({type:f.F.blur,event:t})},ed=s.useCallback(e=>{var t;let i=p.findIndex(t=>m(t,e)),n=(null!=(t=ee.current)?t:[]).some(t=>null!=t&&m(e,t)),o=c(e,i),s=null!=et.current&&m(e,et.current),a="DOM"===r;return{disabled:o,focusable:a,highlighted:s,index:i,selected:n}},[p,c,m,ee,et,r]),eu=s.useMemo(()=>({dispatch:Y,getItemState:ed,registerHighlightChangeHandler:eo,registerSelectionChangeHandler:es}),[Y,ed,eo,es]);return s.useDebugValue({state:Z}),{contextValue:eu,dispatch:Y,getRootProps:(e={})=>(0,o.Z)({},e,{"aria-activedescendant":"activeDescendant"===r&&null!=Q?u(Q):void 0,onBlur:el(e),onKeyDown:ea(e),tabIndex:"DOM"===r?-1:0,ref:z}),rootRef:z,state:Z}},O=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)},M=i(76563);function P(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===p.buttonClick){let n=null!=(i=e.selectedValues[0])?i:m(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=b(e,t);switch(t.type){case f.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===a&&("Enter"===t.event.key||" "===t.event.key))return(0,o.Z)({},l,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(n=e.selectedValues[0])?n:m(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:m(null,"end",t.context)})}break;case f.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case f.F.blur:return(0,o.Z)({},l,{open:!1})}return l}function F(e,t){return i=>{let n=(0,o.Z)({},i,e(i)),r=(0,o.Z)({},n,t(n));return r}}function B(e){e.preventDefault()}var W=function(e){let t;let{areOptionsEqual:i,buttonRef:n,defaultOpen:r=!1,defaultValue:a,disabled:l=!1,listboxId:u,listboxRef:f,multiple:m=!1,onChange:_,onHighlightChange:b,onOpenChange:v,open:C,options:y,getOptionAsString:w=O,value:S}=e,E=s.useRef(null),k=(0,d.Z)(n,E),L=s.useRef(null),x=(0,c.Z)(u);void 0===S&&void 0===a?t=[]:void 0!==a&&(t=m?a:null==a?[]:[a]);let N=s.useMemo(()=>{if(void 0!==S)return m?S:null==S?[]:[S]},[S,m]),{subitems:D,contextValue:T}=(0,M.Y)(),I=s.useMemo(()=>null!=y?new Map(y.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${x}_${t}`}])):D,[y,D,x]),R=(0,d.Z)(f,L),{getRootProps:W,active:H,focusVisible:V,rootRef:z}=(0,g.Z)({disabled:l,rootRef:k}),U=s.useMemo(()=>Array.from(I.keys()),[I]),$=s.useCallback(e=>{if(void 0!==i){let t=U.find(t=>i(t,e));return I.get(t)}return I.get(e)},[I,i,U]),K=s.useCallback(e=>{var t;let i=$(e);return null!=(t=null==i?void 0:i.disabled)&&t},[$]),j=s.useCallback(e=>{let t=$(e);return t?w(t):""},[$,w]),G=s.useMemo(()=>({selectedValues:N,open:C}),[N,C]),q=s.useCallback(e=>{var t;return null==(t=I.get(e))?void 0:t.id},[I]),Z=s.useCallback((e,t)=>{if(m)null==_||_(e,t);else{var i;null==_||_(e,null!=(i=t[0])?i:null)}},[m,_]),Y=s.useCallback((e,t)=>{null==b||b(e,null!=t?t:null)},[b]),Q=s.useCallback((e,t,i)=>{if("open"===t&&(null==v||v(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=E.current)||n.focus()}},[v]),X={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:r}},getItemId:q,controlledProps:G,itemComparer:i,isItemDisabled:K,rootRef:z,onChange:Z,onHighlightChange:Y,onStateChange:Q,reducerActionContext:s.useMemo(()=>({multiple:m}),[m]),items:U,getItemAsString:j,selectionMode:m?"multiple":"single",stateReducer:P},{dispatch:J,getRootProps:ee,contextValue:et,state:{open:ei,highlightedValue:en,selectedValues:er},rootRef:eo}=A(X),es=e=>t=>{var i;if(null==e||null==(i=e.onClick)||i.call(e,t),!t.defaultMuiPrevented){let e={type:p.buttonClick,event:t};J(e)}};(0,h.Z)(()=>{if(null!=en){var e;let t=null==(e=$(en))?void 0:e.ref;if(!L.current||!(null!=t&&t.current))return;let i=L.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(L.current.scrollTop+=n.bottom-i.bottom)}},[en,$]);let ea=s.useCallback(e=>$(e),[$]),el=(e={})=>(0,o.Z)({},e,{onClick:es(e),ref:eo,role:"combobox","aria-expanded":ei,"aria-controls":x});s.useDebugValue({selectedOptions:er,highlightedOption:en,open:ei});let ed=s.useMemo(()=>(0,o.Z)({},et,T),[et,T]);return{buttonActive:H,buttonFocusVisible:V,buttonRef:z,contextValue:ed,disabled:l,dispatch:J,getButtonProps:(e={})=>{let t=F(W,ee),i=F(t,el);return i(e)},getListboxProps:(e={})=>(0,o.Z)({},e,{id:x,role:"listbox","aria-multiselectable":m?"true":void 0,ref:R,onMouseDown:B}),getOptionMetadata:ea,listboxRef:eo,open:ei,options:U,value:e.multiple?er:er.length>0?er[0]:null,highlightedOption:en}},H=i(18414),V=i(9268);function z(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:d,totalSubitemCount:u}=t,c=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),h=s.useMemo(()=>({getItemIndex:r,registerItem:d,totalSubitemCount:u}),[d,r,u]);return(0,V.jsx)(M.s.Provider,{value:h,children:(0,V.jsx)(H.Z.Provider,{value:c,children:i})})}var U=i(47562),$=i(18818),K=i(27358),j=i(8189),G=(0,i(19595).Z)((0,V.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),q=i(50645),Z=i(88930),Y=i(47093),Q=i(326),X=i(18587);function J(e){return(0,X.d6)("MuiSelect",e)}let ee=(0,X.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var et=i(31857);let ei=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function en(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}function er(e){return(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}let eo=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],es=e=>{let{color:t,disabled:i,focusVisible:n,size:r,variant:o,open:s}=e,a={root:["root",i&&"disabled",n&&"focusVisible",s&&"expanded",o&&`variant${(0,l.Z)(o)}`,t&&`color${(0,l.Z)(t)}`,r&&`size${(0,l.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",s&&"expanded"],listbox:["listbox",s&&"expanded",i&&"disabled"]};return(0,U.Z)(a,J,{})},ea=(0,q.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,s;let a=null==(i=e.variants[`${t.variant}`])?void 0:i[t.color];return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.5,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(n=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:n[500]},{"--Select-indicatorColor":null!=a&&a.backgroundColor?null==a?void 0:a.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":"1.25rem"},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":"1.75rem"},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box",minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)",fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md},"sm"===t.size&&{fontSize:e.vars.fontSize.sm},{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${ee.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${ee.disabled}`]:{"--Select-indicatorColor":"inherit"}}),(0,o.Z)({},a,{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${ee.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]})]}),el=(0,q.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,o.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),ed=(0,q.Z)($.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var i;let n="context"===t.color?void 0:null==(i=e.variants[t.variant])?void 0:i[t.color];return(0,o.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--List-radius":e.vars.radius.sm,"--ListItem-stickyBackground":(null==n?void 0:n.backgroundColor)||(null==n?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},K.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),eu=(0,q.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({theme:e,ownerState:t})=>(0,o.Z)({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",marginInlineEnd:"var(--Select-gap)",color:e.vars.palette.text.tertiary},t.focusVisible&&{color:"var(--Select-focusedHighlight)"})),ec=(0,q.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[t.variant])?void 0:i[t.color];return{"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",color:null==n?void 0:n.color}}),eh=(0,q.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1.125rem"},"md"===e.size&&{"--Icon-fontSize":"1.25rem"},"lg"===e.size&&{"--Icon-fontSize":"1.5rem"},{color:"var(--Select-indicatorColor)",display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${ee.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"}})),eg=s.forwardRef(function(e,t){var i,l,c,h,g,p,f;let m=(0,Z.Z)({props:e,name:"JoySelect"}),{action:_,autoFocus:b,children:v,defaultValue:C,defaultListboxOpen:y=!1,disabled:w,getSerializedValue:S=er,placeholder:E,listboxId:k,listboxOpen:L,onChange:x,onListboxOpenChange:N,onClose:D,renderValue:T,value:I,size:R="md",variant:A="outlined",color:O="neutral",startDecorator:M,endDecorator:P,indicator:F=n||(n=(0,V.jsx)(G,{})),"aria-describedby":B,"aria-label":H,"aria-labelledby":U,id:$,name:q,slots:X={},slotProps:J={}}=m,eg=(0,r.Z)(m,ei),ep=s.useContext(et.Z),ef=null!=(i=null!=(l=e.disabled)?l:null==ep?void 0:ep.disabled)?i:w,em=null!=(c=null!=(h=e.size)?h:null==ep?void 0:ep.size)?c:R,{getColor:e_}=(0,Y.VT)(A),eb=e_(e.color,null!=ep&&ep.error?"danger":null!=(g=null==ep?void 0:ep.color)?g:O),ev=null!=T?T:en,[eC,ey]=s.useState(null),ew=s.useRef(null),eS=s.useRef(null),eE=s.useRef(null),ek=(0,d.Z)(t,ew);s.useImperativeHandle(_,()=>({focusVisible:()=>{var e;null==(e=eS.current)||e.focus()}}),[]),s.useEffect(()=>{ey(ew.current)},[]),s.useEffect(()=>{b&&eS.current.focus()},[b]);let eL=s.useCallback(e=>{null==N||N(e),e||null==D||D()},[D,N]),{buttonActive:ex,buttonFocusVisible:eN,contextValue:eD,disabled:eT,getButtonProps:eI,getListboxProps:eR,getOptionMetadata:eA,open:eO,value:eM}=W({buttonRef:eS,defaultOpen:y,defaultValue:C,disabled:ef,listboxId:k,multiple:!1,onChange:x,onOpenChange:eL,open:L,value:I}),eP=(0,o.Z)({},m,{active:ex,defaultListboxOpen:y,disabled:eT,focusVisible:eN,open:eO,renderValue:ev,value:eM,size:em,variant:A,color:eb}),eF=es(eP),eB=(0,o.Z)({},eg,{slots:X,slotProps:J}),eW=s.useMemo(()=>{var e;return null!=(e=eA(eM))?e:null},[eA,eM]),[eH,eV]=(0,Q.Z)("root",{ref:ek,className:eF.root,elementType:ea,externalForwardedProps:eB,ownerState:eP}),[ez,eU]=(0,Q.Z)("button",{additionalProps:{"aria-describedby":null!=B?B:null==ep?void 0:ep["aria-describedby"],"aria-label":H,"aria-labelledby":null!=U?U:null==ep?void 0:ep.labelId,id:null!=$?$:null==ep?void 0:ep.htmlFor,name:q},className:eF.button,elementType:el,externalForwardedProps:eB,getSlotProps:eI,ownerState:eP}),[e$,eK]=(0,Q.Z)("listbox",{additionalProps:{ref:eE,anchorEl:eC,open:eO,placement:"bottom",keepMounted:!0},className:eF.listbox,elementType:ed,externalForwardedProps:eB,getSlotProps:eR,ownerState:(0,o.Z)({},eP,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||em,variant:e.variant||"outlined",color:e.color||"neutral",disableColorInversion:!e.disablePortal})}),[ej,eG]=(0,Q.Z)("startDecorator",{className:eF.startDecorator,elementType:eu,externalForwardedProps:eB,ownerState:eP}),[eq,eZ]=(0,Q.Z)("endDecorator",{className:eF.endDecorator,elementType:ec,externalForwardedProps:eB,ownerState:eP}),[eY,eQ]=(0,Q.Z)("indicator",{className:eF.indicator,elementType:eh,externalForwardedProps:eB,ownerState:eP}),eX=s.useMemo(()=>(0,o.Z)({},eD,{color:eb}),[eb,eD]),eJ=s.useMemo(()=>[...eo,...eK.modifiers||[]],[eK.modifiers]),e0=null;return eC&&(e0=(0,V.jsx)(e$,(0,o.Z)({},eK,{className:(0,a.Z)(eK.className,(null==(p=eK.ownerState)?void 0:p.color)==="context"&&ee.colorContext),modifiers:eJ},!(null!=(f=m.slots)&&f.listbox)&&{as:u.Z,slots:{root:eK.as||"ul"}},{children:(0,V.jsx)(z,{value:eX,children:(0,V.jsx)(j.Z.Provider,{value:"select",children:(0,V.jsx)(K.Z,{nested:!0,children:v})})})})),eK.disablePortal||(e0=(0,V.jsx)(Y.ZP.Provider,{value:void 0,children:e0}))),(0,V.jsxs)(s.Fragment,{children:[(0,V.jsxs)(eH,(0,o.Z)({},eV,{children:[M&&(0,V.jsx)(ej,(0,o.Z)({},eG,{children:M})),(0,V.jsx)(ez,(0,o.Z)({},eU,{children:eW?ev(eW):E})),P&&(0,V.jsx)(eq,(0,o.Z)({},eZ,{children:P})),F&&(0,V.jsx)(eY,(0,o.Z)({},eQ,{children:F}))]})),e0,q&&(0,V.jsx)("input",{type:"hidden",name:q,value:S(eW)})]})});var ep=eg},69962:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(53832),l=i(72120),d=i(47562),u=i(88930),c=i(50645),h=i(18587);function g(e){return(0,h.d6)("MuiSkeleton",e)}(0,h.sI)("MuiSkeleton",["root","variantOverlay","variantCircular","variantRectangular","variantText","variantInline","h1","h2","h3","h4","h5","h6","body1","body2","body3"]);var p=i(326),f=i(9268);let m=["className","component","children","animation","overlay","loading","variant","level","height","width","sx","slots","slotProps"],_=e=>e,b,v,C,y,w,S=e=>{let{variant:t,level:i}=e,n={root:["root",t&&`variant${(0,a.Z)(t)}`,i&&`level${(0,a.Z)(i)}`]};return(0,d.Z)(n,g,{})},E=(0,l.F4)(b||(b=_` +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7040],{71990:function(e,t,i){"use strict";async function n(e,t){let i;let n=e.getReader();for(;!(i=await n.read()).done;)t(i.value)}function r(){return{data:"",event:"",id:"",retry:void 0}}i.d(t,{a:function(){return s},L:function(){return l}});var o=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let s="text/event-stream",a="last-event-id";function l(e,t){var{signal:i,headers:l,onopen:u,onmessage:c,onclose:h,onerror:g,openWhenHidden:p,fetch:f}=t,m=o(t,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((t,o)=>{let _;let b=Object.assign({},l);function v(){_.abort(),document.hidden||k()}b.accept||(b.accept=s),p||document.addEventListener("visibilitychange",v);let C=1e3,y=0;function w(){document.removeEventListener("visibilitychange",v),window.clearTimeout(y),_.abort()}null==i||i.addEventListener("abort",()=>{w(),t()});let S=null!=f?f:window.fetch,E=null!=u?u:d;async function k(){var i,s;_=new AbortController;try{let i,o,l,d;let u=await S(e,Object.assign(Object.assign({},m),{headers:b,signal:_.signal}));await E(u),await n(u.body,(s=function(e,t,i){let n=r(),o=new TextDecoder;return function(s,a){if(0===s.length)null==i||i(n),n=r();else if(a>0){let i=o.decode(s.subarray(0,a)),r=a+(32===s[a+1]?2:1),l=o.decode(s.subarray(r));switch(i){case"data":n.data=n.data?n.data+"\n"+l:l;break;case"event":n.event=l;break;case"id":e(n.id=l);break;case"retry":let d=parseInt(l,10);isNaN(d)||t(n.retry=d)}}}}(e=>{e?b[a]=e:delete b[a]},e=>{C=e},c),d=!1,function(e){void 0===i?(i=e,o=0,l=-1):i=function(e,t){let i=new Uint8Array(e.length+t.length);return i.set(e),i.set(t,e.length),i}(i,e);let t=i.length,n=0;for(;o0&&C(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&C(n.height)/e.offsetHeight||1);var s=(f(e)?p(e):window).visualViewport,a=!w()&&i,l=(n.left+(a&&s?s.offsetLeft:0))/r,d=(n.top+(a&&s?s.offsetTop:0))/o,u=n.width/r,c=n.height/o;return{width:u,height:c,top:d,right:l+u,bottom:d+c,left:l,x:l,y:d}}function E(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function k(e){return e?(e.nodeName||"").toLowerCase():null}function L(e){return((f(e)?e.ownerDocument:e.document)||window.document).documentElement}function x(e){return S(L(e)).left+E(e).scrollLeft}function N(e){return p(e).getComputedStyle(e)}function D(e){var t=N(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function T(e){var t=S(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function I(e){return"html"===k(e)?e:e.assignedSlot||e.parentNode||(_(e)?e.host:null)||L(e)}function R(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(k(t))>=0?t.ownerDocument.body:m(t)&&D(t)?t:e(I(t))}(e),r=n===(null==(i=e.ownerDocument)?void 0:i.body),o=p(n),s=r?[o].concat(o.visualViewport||[],D(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(R(I(s)))}function A(e){return m(e)&&"fixed"!==N(e).position?e.offsetParent:null}function O(e){for(var t=p(e),i=A(e);i&&["table","td","th"].indexOf(k(i))>=0&&"static"===N(i).position;)i=A(i);return i&&("html"===k(i)||"body"===k(i)&&"static"===N(i).position)?t:i||function(e){var t=/firefox/i.test(y());if(/Trident/i.test(y())&&m(e)&&"fixed"===N(e).position)return null;var i=I(e);for(_(i)&&(i=i.host);m(i)&&0>["html","body"].indexOf(k(i));){var n=N(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var M="bottom",P="right",F="left",B="auto",W=["top",M,P,F],H="start",V="viewport",z="popper",U=W.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),$=[].concat(W,[B]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),K=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],j={placement:"bottom",modifiers:[],strategy:"absolute"};function G(){for(var e=arguments.length,t=Array(e),i=0;i=0?"x":"y"}function X(e){var t,i=e.reference,n=e.element,r=e.placement,o=r?Z(r):null,s=r?Y(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case"top":t={x:a,y:i.y-n.height};break;case M:t={x:a,y:i.y+i.height};break;case P:t={x:i.x+i.width,y:l};break;case F:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var d=o?Q(o):null;if(null!=d){var u="y"===d?"height":"width";switch(s){case H:t[d]=t[d]-(i[u]/2-n[u]/2);break;case"end":t[d]=t[d]+(i[u]/2-n[u]/2)}}return t}var J={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(e){var t,i,n,r,o,s,a,l=e.popper,d=e.popperRect,u=e.placement,c=e.variation,h=e.offsets,g=e.position,f=e.gpuAcceleration,m=e.adaptive,_=e.roundOffsets,b=e.isFixed,v=h.x,y=void 0===v?0:v,w=h.y,S=void 0===w?0:w,E="function"==typeof _?_({x:y,y:S}):{x:y,y:S};y=E.x,S=E.y;var k=h.hasOwnProperty("x"),x=h.hasOwnProperty("y"),D=F,T="top",I=window;if(m){var R=O(l),A="clientHeight",B="clientWidth";R===p(l)&&"static"!==N(R=L(l)).position&&"absolute"===g&&(A="scrollHeight",B="scrollWidth"),("top"===u||(u===F||u===P)&&"end"===c)&&(T=M,S-=(b&&R===I&&I.visualViewport?I.visualViewport.height:R[A])-d.height,S*=f?1:-1),(u===F||("top"===u||u===M)&&"end"===c)&&(D=P,y-=(b&&R===I&&I.visualViewport?I.visualViewport.width:R[B])-d.width,y*=f?1:-1)}var W=Object.assign({position:g},m&&J),H=!0===_?(t={x:y,y:S},i=p(l),n=t.x,r=t.y,{x:C(n*(o=i.devicePixelRatio||1))/o||0,y:C(r*o)/o||0}):{x:y,y:S};return(y=H.x,S=H.y,f)?Object.assign({},W,((a={})[T]=x?"0":"",a[D]=k?"0":"",a.transform=1>=(I.devicePixelRatio||1)?"translate("+y+"px, "+S+"px)":"translate3d("+y+"px, "+S+"px, 0)",a)):Object.assign({},W,((s={})[T]=x?S+"px":"",s[D]=k?y+"px":"",s.transform="",s))}var et={left:"right",right:"left",bottom:"top",top:"bottom"};function ei(e){return e.replace(/left|right|bottom|top/g,function(e){return et[e]})}var en={start:"end",end:"start"};function er(e){return e.replace(/start|end/g,function(e){return en[e]})}function eo(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&_(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function es(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ea(e,t,i){var n,r,o,s,a,l,d,u,c,h;return t===V?es(function(e,t){var i=p(e),n=L(e),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var d=w();(d||!d&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+x(e),y:l}}(e,i)):f(t)?((n=S(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):es((r=L(e),s=L(r),a=E(r),l=null==(o=r.ownerDocument)?void 0:o.body,d=b(s.scrollWidth,s.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=b(s.scrollHeight,s.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),c=-a.scrollLeft+x(r),h=-a.scrollTop,"rtl"===N(l||s).direction&&(c+=b(s.clientWidth,l?l.clientWidth:0)-d),{width:d,height:u,x:c,y:h}))}function el(){return{top:0,right:0,bottom:0,left:0}}function ed(e){return Object.assign({},el(),e)}function eu(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function ec(e,t){void 0===t&&(t={});var i,n,r,o,s,a,l,d=t,u=d.placement,c=void 0===u?e.placement:u,h=d.strategy,g=void 0===h?e.strategy:h,p=d.boundary,_=d.rootBoundary,C=d.elementContext,y=void 0===C?z:C,w=d.altBoundary,E=d.padding,x=void 0===E?0:E,D=ed("number"!=typeof x?x:eu(x,W)),T=e.rects.popper,A=e.elements[void 0!==w&&w?y===z?"reference":z:y],F=(i=f(A)?A:A.contextElement||L(e.elements.popper),a=(s=[].concat("clippingParents"===(n=void 0===p?"clippingParents":p)?(r=R(I(i)),f(o=["absolute","fixed"].indexOf(N(i).position)>=0&&m(i)?O(i):i)?r.filter(function(e){return f(e)&&eo(e,o)&&"body"!==k(e)}):[]):[].concat(n),[void 0===_?V:_]))[0],(l=s.reduce(function(e,t){var n=ea(i,t,g);return e.top=b(n.top,e.top),e.right=v(n.right,e.right),e.bottom=v(n.bottom,e.bottom),e.left=b(n.left,e.left),e},ea(i,a,g))).width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l),B=S(e.elements.reference),H=X({reference:B,element:T,strategy:"absolute",placement:c}),U=es(Object.assign({},T,H)),$=y===z?U:B,K={top:F.top-$.top+D.top,bottom:$.bottom-F.bottom+D.bottom,left:F.left-$.left+D.left,right:$.right-F.right+D.right},j=e.modifiersData.offset;if(y===z&&j){var G=j[c];Object.keys(K).forEach(function(e){var t=[P,M].indexOf(e)>=0?1:-1,i=["top",M].indexOf(e)>=0?"y":"x";K[e]+=G[i]*t})}return K}function eh(e,t,i){return b(e,v(t,i))}function eg(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ep(e){return["top",P,M,F].some(function(t){return e[t]>=0})}var ef=(o=void 0===(r=(n={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=p(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(e){e.addEventListener("scroll",i.update,q)}),a&&l.addEventListener("resize",i.update,q),function(){o&&d.forEach(function(e){e.removeEventListener("scroll",i.update,q)}),a&&l.removeEventListener("resize",i.update,q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=X({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=i.adaptive,o=i.roundOffsets,s=void 0===o||o,a={placement:Z(t.placement),variation:Y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ee(Object.assign({},a,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===r||r,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ee(Object.assign({},a,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];m(r)&&k(r)&&(Object.assign(r.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});m(n)&&k(n)&&(Object.assign(n.style,o),Object.keys(r).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=void 0===r?[0,0]:r,s=$.reduce(function(e,i){var n,r,s,a,l,d;return e[i]=(n=t.rects,s=[F,"top"].indexOf(r=Z(i))>=0?-1:1,l=(a="function"==typeof o?o(Object.assign({},n,{placement:i})):o)[0],d=a[1],l=l||0,d=(d||0)*s,[F,P].indexOf(r)>=0?{x:d,y:l}:{x:l,y:d}),e},{}),a=s[t.placement],l=a.x,d=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,d=i.padding,u=i.boundary,c=i.rootBoundary,h=i.altBoundary,g=i.flipVariations,p=void 0===g||g,f=i.allowedAutoPlacements,m=t.options.placement,_=Z(m)===m,b=l||(_||!p?[ei(m)]:function(e){if(Z(e)===B)return[];var t=ei(e);return[er(e),t,er(t)]}(m)),v=[m].concat(b).reduce(function(e,i){var n,r,o,s,a,l,h,g,m,_,b,v;return e.concat(Z(i)===B?(r=(n={placement:i,boundary:u,rootBoundary:c,padding:d,flipVariations:p,allowedAutoPlacements:f}).placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,g=void 0===(h=n.allowedAutoPlacements)?$:h,0===(b=(_=(m=Y(r))?l?U:U.filter(function(e){return Y(e)===m}):W).filter(function(e){return g.indexOf(e)>=0})).length&&(b=_),Object.keys(v=b.reduce(function(e,i){return e[i]=ec(t,{placement:i,boundary:o,rootBoundary:s,padding:a})[Z(i)],e},{})).sort(function(e,t){return v[e]-v[t]})):i)},[]),C=t.rects.reference,y=t.rects.popper,w=new Map,S=!0,E=v[0],k=0;k=0,T=D?"width":"height",I=ec(t,{placement:L,boundary:u,rootBoundary:c,altBoundary:h,padding:d}),R=D?N?P:F:N?M:"top";C[T]>y[T]&&(R=ei(R));var A=ei(R),O=[];if(o&&O.push(I[x]<=0),a&&O.push(I[R]<=0,I[A]<=0),O.every(function(e){return e})){E=L,S=!1;break}w.set(L,O)}if(S)for(var V=p?3:1,z=function(e){var t=v.find(function(t){var i=w.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return E=t,"break"},K=V;K>0&&"break"!==z(K);K--);t.placement!==E&&(t.modifiersData[n]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=i.altAxis,s=i.boundary,a=i.rootBoundary,l=i.altBoundary,d=i.padding,u=i.tether,c=void 0===u||u,h=i.tetherOffset,g=void 0===h?0:h,p=ec(t,{boundary:s,rootBoundary:a,padding:d,altBoundary:l}),f=Z(t.placement),m=Y(t.placement),_=!m,C=Q(f),y="x"===C?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,E=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,L="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),x=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(w){if(void 0===r||r){var D,I="y"===C?"top":F,R="y"===C?M:P,A="y"===C?"height":"width",B=w[C],W=B+p[I],V=B-p[R],z=c?-E[A]/2:0,U=m===H?S[A]:E[A],$=m===H?-E[A]:-S[A],K=t.elements.arrow,j=c&&K?T(K):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:el(),q=G[I],X=G[R],J=eh(0,S[A],j[A]),ee=_?S[A]/2-z-J-q-L.mainAxis:U-J-q-L.mainAxis,et=_?-S[A]/2+z+J+X+L.mainAxis:$+J+X+L.mainAxis,ei=t.elements.arrow&&O(t.elements.arrow),en=ei?"y"===C?ei.clientTop||0:ei.clientLeft||0:0,er=null!=(D=null==x?void 0:x[C])?D:0,eo=B+ee-er-en,es=B+et-er,ea=eh(c?v(W,eo):W,B,c?b(V,es):V);w[C]=ea,N[C]=ea-B}if(void 0!==o&&o){var ed,eu,eg="x"===C?"top":F,ep="x"===C?M:P,ef=w[y],em="y"===y?"height":"width",e_=ef+p[eg],eb=ef-p[ep],ev=-1!==["top",F].indexOf(f),eC=null!=(eu=null==x?void 0:x[y])?eu:0,ey=ev?e_:ef-S[em]-E[em]-eC+L.altAxis,ew=ev?ef+S[em]+E[em]-eC-L.altAxis:eb,eS=c&&ev?(ed=eh(ey,ef,ew))>ew?ew:ed:eh(c?ey:e_,ef,c?ew:eb);w[y]=eS,N[y]=eS-ef}t.modifiersData[n]=N}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Z(n.placement),d=Q(l),u=[F,P].indexOf(l)>=0?"height":"width";if(s&&a){var c=ed("number"!=typeof(t="function"==typeof(t=o.padding)?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:eu(t,W)),h=T(s),g="y"===d?"top":F,p="y"===d?M:P,f=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],m=a[d]-n.rects.reference[d],_=O(s),b=_?"y"===d?_.clientHeight||0:_.clientWidth||0:0,v=c[g],C=b-h[u]-c[p],y=b/2-h[u]/2+(f/2-m/2),w=eh(v,y,C);n.modifiersData[r]=((i={})[d]=w,i.centerOffset=w-y,i)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&eo(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=ec(t,{elementContext:"reference"}),a=ec(t,{altBoundary:!0}),l=eg(s,n),d=eg(a,r,o),u=ep(l),c=ep(d);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}}]}).defaultModifiers)?[]:r,a=void 0===(s=n.defaultOptions)?j:s,function(e,t,i){void 0===i&&(i=a);var n,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},j,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,d={state:r,setOptions:function(i){var n,l,c,h,g,p="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},a,r.options,p),r.scrollParents={reference:f(e)?R(e):e.contextElement?R(e.contextElement):[],popper:R(t)};var m=(l=Object.keys(n=[].concat(o,r.options.modifiers).reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{})).map(function(e){return n[e]}),c=new Map,h=new Set,g=[],l.forEach(function(e){c.set(e.name,e)}),l.forEach(function(e){h.has(e.name)||function e(t){h.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!h.has(t)){var i=c.get(t);i&&e(i)}}),g.push(t)}(e)}),K.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=m.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var o=n({state:r,name:t,instance:d,options:void 0===i?{}:i});s.push(o||function(){})}}),d.update()},forceUpdate:function(){if(!l){var e,t,i,n,o,s,a,u,c,h,g,f,_=r.elements,b=_.reference,v=_.popper;if(G(b,v)){r.rects={reference:(t=O(v),i="fixed"===r.options.strategy,n=m(t),u=m(t)&&(s=C((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,a=C(o.height)/t.offsetHeight||1,1!==s||1!==a),c=L(t),h=S(b,u,i),g={scrollLeft:0,scrollTop:0},f={x:0,y:0},(n||!n&&!i)&&(("body"!==k(t)||D(c))&&(g=(e=t)!==p(e)&&m(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:E(e)),m(t)?(f=S(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):c&&(f.x=x(c))),{x:h.left+g.scrollLeft-f.x,y:h.top+g.scrollTop-f.y,width:h.width,height:h.height}),popper:T(v)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach(function(e){return r.modifiersData[e.name]=Object.assign({},e.data)});for(var y=0;y(0,em.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=u.useContext(ek);return i=>t?"":e(i)}(ev)),eT={},eI=u.forwardRef(function(e,t){var i;let{anchorEl:n,children:r,direction:o,disablePortal:s,modifiers:a,open:g,placement:p,popperOptions:f,popperRef:m,slotProps:_={},slots:b={},TransitionProps:v}=e,C=(0,d.Z)(e,eL),y=u.useRef(null),w=(0,c.Z)(y,t),S=u.useRef(null),E=(0,c.Z)(S,m),k=u.useRef(E);(0,h.Z)(()=>{k.current=E},[E]),u.useImperativeHandle(m,()=>S.current,[]);let L=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(p,o),[x,N]=u.useState(L),[D,T]=u.useState(eN(n));u.useEffect(()=>{S.current&&S.current.forceUpdate()}),u.useEffect(()=>{n&&T(eN(n))},[n]),(0,h.Z)(()=>{if(!D||!g)return;let e=e=>{N(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=a&&(t=t.concat(a)),f&&null!=f.modifiers&&(t=t.concat(f.modifiers));let i=ef(D,y.current,(0,l.Z)({placement:L},f,{modifiers:t}));return k.current(i),()=>{i.destroy(),k.current(null)}},[D,s,a,g,f,L]);let I={placement:x};null!==v&&(I.TransitionProps=v);let R=eD(),A=null!=(i=b.root)?i:"div",O=function(e){var t;let{elementType:i,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1}=e,s=(0,d.Z)(e,eS),a=o?{}:(0,ew.Z)(n,r),{props:u,internalRef:h}=(0,ey.Z)((0,l.Z)({},s,{externalSlotProps:a})),g=(0,c.Z)(h,null==a?void 0:a.ref,null==(t=e.additionalProps)?void 0:t.ref),p=(0,eC.Z)(i,(0,l.Z)({},u,{ref:g}),r);return p}({elementType:A,externalSlotProps:_.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:R.root});return(0,eE.jsx)(A,(0,l.Z)({},O,{children:"function"==typeof r?r(I):r}))}),eR=u.forwardRef(function(e,t){let i;let{anchorEl:n,children:r,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:h,open:p,placement:f="bottom",popperOptions:m=eT,popperRef:_,style:b,transition:v=!1,slotProps:C={},slots:y={}}=e,w=(0,d.Z)(e,ex),[S,E]=u.useState(!0);if(!c&&!p&&(!v||S))return null;if(o)i=o;else if(n){let e=eN(n);i=e&&void 0!==e.nodeType?(0,g.Z)(e).body:(0,g.Z)(null).body}let k=!p&&c&&(!v||S)?"none":void 0;return(0,eE.jsx)(e_.Z,{disablePortal:a,container:i,children:(0,eE.jsx)(eI,(0,l.Z)({anchorEl:n,direction:s,disablePortal:a,modifiers:h,ref:t,open:v?!S:p,placement:f,popperOptions:m,popperRef:_,slotProps:C,slots:y},w,{style:(0,l.Z)({position:"fixed",top:0,left:0,display:k},b),TransitionProps:v?{in:p,onEnter:()=>{E(!1)},onExited:()=>{E(!0)}}:void 0,children:r}))})});var eA=eR},18414:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(86006);let r=n.createContext(null)},30461:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});let n={blur:"list:blur",focus:"list:focus",itemClick:"list:itemClick",itemHover:"list:itemHover",itemsChange:"list:itemsChange",keyDown:"list:keyDown",resetHighlight:"list:resetHighlight",textNavigation:"list:textNavigation"}},76563:function(e,t,i){"use strict";i.d(t,{Y:function(){return o},s:function(){return r}});var n=i(86006);let r=n.createContext(null);function o(){let[e,t]=n.useState(new Map),i=n.useRef(new Set),r=n.useCallback(function(e){i.current.delete(e),t(t=>{let i=new Map(t);return i.delete(e),i})},[]),o=n.useCallback(function(e,n){let o;return o="function"==typeof e?e(i.current):e,i.current.add(o),t(e=>{let t=new Map(e);return t.set(o,n),t}),{id:o,deregister:()=>r(o)}},[r]),s=n.useMemo(()=>(function(e){let t=Array.from(e.keys()).map(t=>{let i=e.get(t);return{key:t,subitem:i}});return t.sort((e,t)=>{let i=e.subitem.ref.current,n=t.subitem.ref.current;return null===i||null===n||i===n?0:i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}),new Map(t.map(e=>[e.key,e.subitem]))})(e),[e]),a=n.useCallback(function(e){return Array.from(s.keys()).indexOf(e)},[s]),l=n.useMemo(()=>({getItemIndex:a,registerItem:o,totalSubitemCount:e.size}),[a,o,e.size]);return{contextValue:l,subitems:s}}r.displayName="CompoundComponentContext"},48755:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M14 2H4c-1.11 0-2 .9-2 2v10h2V4h10V2zm4 4H8c-1.11 0-2 .9-2 2v10h2V8h10V6zm2 4h-8c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h8c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2z"}),"AutoAwesomeMotion");t.Z=s},55749:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)([(0,o.jsx)("path",{d:"M19.89 10.75c.07.41.11.82.11 1.25 0 4.41-3.59 8-8 8s-8-3.59-8-8c0-.05.01-.1 0-.14 2.6-.98 4.69-2.99 5.74-5.55 3.38 4.14 7.97 3.73 8.99 3.61l-.89-1.93c-.13.01-4.62.38-7.18-3.86 1.01-.16 1.71-.15 2.59-.01 2.52-1.15 1.93-.89 2.76-1.26C14.78 2.3 13.43 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.43-.3-2.78-.84-4.01l-1.27 2.76zM8.08 5.03C7.45 6.92 6.13 8.5 4.42 9.47 5.05 7.58 6.37 6 8.08 5.03z"},"0"),(0,o.jsx)("circle",{cx:"15",cy:"13",r:"1.25"},"1"),(0,o.jsx)("circle",{cx:"9",cy:"13",r:"1.25"},"2"),(0,o.jsx)("path",{d:"m23 4.5-2.4-1.1L19.5 1l-1.1 2.4L16 4.5l2.4 1.1L19.5 8l1.1-2.4z"},"3")],"FaceRetouchingNaturalOutlined");t.Z=s},28179:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M17.41 6.59 15 5.5l2.41-1.09L18.5 2l1.09 2.41L22 5.5l-2.41 1.09L18.5 9l-1.09-2.41zm3.87 6.13L20.5 11l-.78 1.72-1.72.78 1.72.78.78 1.72.78-1.72L23 13.5l-1.72-.78zm-5.04 1.65 1.94 1.47-2.5 4.33-2.24-.94c-.2.13-.42.26-.64.37l-.3 2.4h-5l-.3-2.41c-.22-.11-.43-.23-.64-.37l-2.24.94-2.5-4.33 1.94-1.47c-.01-.11-.01-.24-.01-.36s0-.25.01-.37l-1.94-1.47 2.5-4.33 2.24.94c.2-.13.42-.26.64-.37L7.5 6h5l.3 2.41c.22.11.43.23.64.37l2.24-.94 2.5 4.33-1.94 1.47c.01.12.01.24.01.37s0 .24-.01.36zM13 14c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3z"}),"SettingsSuggest");t.Z=s},70781:function(e,t,i){"use strict";var n=i(78997);t.Z=void 0;var r=n(i(76906)),o=i(9268),s=(0,r.default)((0,o.jsx)("path",{d:"M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"}),"SmartToyOutlined");t.Z=s},97287:function(e,t,i){"use strict";var n=i(40431),r=i(46750),o=i(86006),s=i(47562),a=i(53832),l=i(88930),d=i(326),u=i(50645),c=i(47093),h=i(73141),g=i(9268);let p=["children","ratio","minHeight","maxHeight","objectFit","color","variant","component","slots","slotProps"],f=e=>{let{variant:t,color:i}=e,n={root:["root"],content:["content",t&&`variant${(0,a.Z)(t)}`,i&&`color${(0,a.Z)(i)}`]};return(0,s.Z)(n,h.x,{})},m=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>{let t="number"==typeof e.minHeight?`${e.minHeight}px`:e.minHeight,i="number"==typeof e.maxHeight?`${e.maxHeight}px`:e.maxHeight;return{"--AspectRatio-paddingBottom":`clamp(var(--AspectRatio-minHeight), calc(100% / (${e.ratio})), var(--AspectRatio-maxHeight))`,"--AspectRatio-maxHeight":i||"9999px","--AspectRatio-minHeight":t||"0px",borderRadius:"var(--AspectRatio-radius)",flexDirection:"column",margin:"var(--AspectRatio-margin)"}}),_=(0,u.Z)("div",{name:"JoyAspectRatio",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>{var i;return[{flex:1,position:"relative",borderRadius:"inherit",height:0,paddingBottom:"calc(var(--AspectRatio-paddingBottom) - 2 * var(--variant-borderWidth, 0px))",overflow:"hidden",transition:"inherit","& [data-first-child]":{display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box",position:"absolute",width:"100%",height:"100%",objectFit:t.objectFit,margin:0,padding:0,"& > img":{width:"100%",height:"100%",objectFit:t.objectFit}}},null==(i=e.variants[t.variant])?void 0:i[t.color]]}),b=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyAspectRatio"}),{children:s,ratio:a="16 / 9",minHeight:u,maxHeight:h,objectFit:b="cover",color:v="neutral",variant:C="soft",component:y,slots:w={},slotProps:S={}}=i,E=(0,r.Z)(i,p),{getColor:k}=(0,c.VT)(C),L=k(e.color,v),x=(0,n.Z)({},i,{minHeight:u,maxHeight:h,objectFit:b,ratio:a,color:L,variant:C}),N=f(x),D=(0,n.Z)({},E,{component:y,slots:w,slotProps:S}),[T,I]=(0,d.Z)("root",{ref:t,className:N.root,elementType:m,externalForwardedProps:D,ownerState:x}),[R,A]=(0,d.Z)("content",{className:N.content,elementType:_,externalForwardedProps:D,ownerState:x});return(0,g.jsx)(T,(0,n.Z)({},I,{children:(0,g.jsx)(R,(0,n.Z)({},A,{children:o.Children.map(s,(e,t)=>0===t&&o.isValidElement(e)?o.cloneElement(e,{"data-first-child":""}):e)}))}))});t.Z=b},73141:function(e,t,i){"use strict";i.d(t,{x:function(){return r}});var n=i(18587);function r(e){return(0,n.d6)("MuiAspectRatio",e)}let o=(0,n.sI)("MuiAspectRatio",["root","content","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);t.Z=o},90022:function(e,t,i){"use strict";i.d(t,{Z:function(){return w}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(47562),l=i(53832),d=i(44542),u=i(88930),c=i(50645),h=i(47093),g=i(18587);function p(e){return(0,g.d6)("MuiCard",e)}(0,g.sI)("MuiCard",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","horizontal","vertical"]);var f=i(81439),m=i(326),_=i(9268);let b=["className","color","component","invertedColors","size","variant","children","orientation","slots","slotProps"],v=e=>{let{size:t,variant:i,color:n,orientation:r}=e,o={root:["root",r,i&&`variant${(0,l.Z)(i)}`,n&&`color${(0,l.Z)(n)}`,t&&`size${(0,l.Z)(t)}`]};return(0,a.Z)(o,p,{})},C=(0,c.Z)("div",{name:"JoyCard",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n;return[(0,r.Z)({"--Card-childRadius":"max((var(--Card-radius) - var(--variant-borderWidth, 0px)) - var(--Card-padding), min(var(--Card-padding) / 2, (var(--Card-radius) - var(--variant-borderWidth, 0px)) / 2))","--AspectRatio-radius":"var(--Card-childRadius)","--unstable_actionMargin":"calc(-1 * var(--variant-borderWidth, 0px))","--unstable_actionRadius":(0,f.V)({theme:e,ownerState:t},"borderRadius","var(--Card-radius)"),"--CardCover-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--CardOverflow-offset":"calc(-1 * var(--Card-padding))","--CardOverflow-radius":"calc(var(--Card-radius) - var(--variant-borderWidth, 0px))","--Divider-inset":"calc(-1 * var(--Card-padding))"},"sm"===t.size&&{"--Card-radius":e.vars.radius.sm,"--Card-padding":"0.5rem",gap:"0.375rem 0.5rem"},"md"===t.size&&{"--Card-radius":e.vars.radius.md,"--Card-padding":"1rem",gap:"0.75rem 1rem"},"lg"===t.size&&{"--Card-radius":e.vars.radius.lg,"--Card-padding":"1.5rem",gap:"1rem 1.5rem"},{padding:"var(--Card-padding)",borderRadius:"var(--Card-radius)",boxShadow:e.shadow.sm,backgroundColor:e.vars.palette.background.surface,fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md,position:"relative",display:"flex",flexDirection:"horizontal"===t.orientation?"row":"column"}),null==(i=e.variants[t.variant])?void 0:i[t.color],"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color])]}),y=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoyCard"}),{className:a,color:l="neutral",component:c="div",invertedColors:g=!1,size:p="md",variant:f="plain",children:y,orientation:w="vertical",slots:S={},slotProps:E={}}=i,k=(0,n.Z)(i,b),{getColor:L}=(0,h.VT)(f),x=L(e.color,l),N=(0,r.Z)({},i,{color:x,component:c,orientation:w,size:p,variant:f}),D=v(N),T=(0,r.Z)({},k,{component:c,slots:S,slotProps:E}),[I,R]=(0,m.Z)("root",{ref:t,className:(0,s.Z)(D.root,a),elementType:C,externalForwardedProps:T,ownerState:N}),A=(0,_.jsx)(I,(0,r.Z)({},R,{children:o.Children.map(y,(e,t)=>{if(!o.isValidElement(e))return e;let i={};if((0,d.Z)(e,["Divider"])){i.inset="inset"in e.props?e.props.inset:"context";let t="vertical"===w?"horizontal":"vertical";i.orientation="orientation"in e.props?e.props.orientation:t}return(0,d.Z)(e,["CardOverflow"])&&("horizontal"===w&&(i["data-parent"]="Card-horizontal"),"vertical"===w&&(i["data-parent"]="Card-vertical")),0===t&&(i["data-first-child"]=""),t===o.Children.count(y)-1&&(i["data-last-child"]=""),o.cloneElement(e,i)})}));return g?(0,_.jsx)(h.do,{variant:f,children:A}):A});var w=y},8997:function(e,t,i){"use strict";i.d(t,{Z:function(){return v}});var n=i(40431),r=i(46750),o=i(86006),s=i(89791),a=i(47562),l=i(88930),d=i(50645),u=i(18587);function c(e){return(0,u.d6)("MuiCardContent",e)}(0,u.sI)("MuiCardContent",["root"]);let h=(0,u.sI)("MuiCardOverflow",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var g=i(326),p=i(9268);let f=["className","component","children","orientation","slots","slotProps"],m=()=>(0,a.Z)({root:["root"]},c,{}),_=(0,d.Z)("div",{name:"JoyCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>({display:"flex",flexDirection:"horizontal"===e.orientation?"row":"column",flex:1,zIndex:1,columnGap:"calc(0.75 * var(--Card-padding))",padding:"var(--unstable_padding)",[`.${h.root} > &`]:{"--unstable_padding":"calc(var(--Card-padding) * 0.75) 0px"}})),b=o.forwardRef(function(e,t){let i=(0,l.Z)({props:e,name:"JoyCardContent"}),{className:o,component:a="div",children:d,orientation:u="vertical",slots:c={},slotProps:h={}}=i,b=(0,r.Z)(i,f),v=(0,n.Z)({},b,{component:a,slots:c,slotProps:h}),C=(0,n.Z)({},i,{component:a,orientation:u}),y=m(),[w,S]=(0,g.Z)("root",{ref:t,className:(0,s.Z)(y.root,o),elementType:_,externalForwardedProps:v,ownerState:C});return(0,p.jsx)(w,(0,n.Z)({},S,{children:d}))});var v=b},45642:function(e,t,i){"use strict";i.d(t,{Z:function(){return H}});var n=i(40431),r=i(46750),o=i(86006),s=i(73702),a=i(47562),l=i(13809),d=i(44542),u=i(96263),c=i(38295),h=i(95887),g=i(86601),p=i(89587);let f=(e,t)=>e.filter(e=>t.includes(e)),m=(e,t,i)=>{let n=e.keys[0];if(Array.isArray(t))t.forEach((t,n)=>{i((t,i)=>{n<=e.keys.length-1&&(0===n?Object.assign(t,i):t[e.up(e.keys[n])]=i)},t)});else if(t&&"object"==typeof t){let r=Object.keys(t).length>e.keys.length?e.keys:f(e.keys,Object.keys(t));r.forEach(r=>{if(-1!==e.keys.indexOf(r)){let o=t[r];void 0!==o&&i((t,i)=>{n===r?Object.assign(t,i):t[e.up(r)]=i},o)}})}else("number"==typeof t||"string"==typeof t)&&i((e,t)=>{Object.assign(e,t)},t)};function _(e){return e?`Level${e}`:""}function b(e){return e.unstable_level>0&&e.container}function v(e){return function(t){return`var(--Grid-${t}Spacing${_(e.unstable_level)})`}}function C(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${_(e.unstable_level-1)})`}}function y(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${_(e.unstable_level-1)})`}let w=({theme:e,ownerState:t})=>{let i=v(t),n={};return m(e.breakpoints,t.gridSize,(e,r)=>{let o={};!0===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / ${y(t)}${b(t)?` + ${i("column")}`:""})`}),e(n,o)}),n},S=({theme:e,ownerState:t})=>{let i={};return m(e.breakpoints,t.gridOffset,(e,n)=>{let r={};"auto"===n&&(r={marginLeft:"auto"}),"number"==typeof n&&(r={marginLeft:0===n?"0px":`calc(100% * ${n} / ${y(t)})`}),e(i,r)}),i},E=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=b(t)?{[`--Grid-columns${_(t.unstable_level)}`]:y(t)}:{"--Grid-columns":12};return m(e.breakpoints,t.columns,(e,n)=>{e(i,{[`--Grid-columns${_(t.unstable_level)}`]:n})}),i},k=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=C(t),n=b(t)?{[`--Grid-rowSpacing${_(t.unstable_level)}`]:i("row")}:{};return m(e.breakpoints,t.rowSpacing,(i,r)=>{var o;i(n,{[`--Grid-rowSpacing${_(t.unstable_level)}`]:"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})}),n},L=({theme:e,ownerState:t})=>{if(!t.container)return{};let i=C(t),n=b(t)?{[`--Grid-columnSpacing${_(t.unstable_level)}`]:i("column")}:{};return m(e.breakpoints,t.columnSpacing,(i,r)=>{var o;i(n,{[`--Grid-columnSpacing${_(t.unstable_level)}`]:"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})}),n},x=({theme:e,ownerState:t})=>{if(!t.container)return{};let i={};return m(e.breakpoints,t.direction,(e,t)=>{e(i,{flexDirection:t})}),i},N=({ownerState:e})=>{let t=v(e),i=C(e);return(0,n.Z)({minWidth:0,boxSizing:"border-box"},e.container&&(0,n.Z)({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||b(e))&&(0,n.Z)({padding:`calc(${i("row")} / 2) calc(${i("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${i("row")} 0px 0px ${i("column")}`}))},D=e=>{let t=[];return Object.entries(e).forEach(([e,i])=>{!1!==i&&void 0!==i&&t.push(`grid-${e}-${String(i)}`)}),t},T=(e,t="xs")=>{function i(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(i(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,n])=>{i(n)&&t.push(`spacing-${e}-${String(n)}`)}),t}return[]},I=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`];var R=i(9268);let A=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],O=(0,p.Z)(),M=(0,u.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function P(e){return(0,c.Z)({props:e,name:"MuiGrid",defaultTheme:O})}var F=i(50645),B=i(88930);let W=function(e={}){let{createStyledComponent:t=M,useThemeProps:i=P,componentName:u="MuiGrid"}=e,c=o.createContext(void 0),p=(e,t)=>{let{container:i,direction:n,spacing:r,wrap:o,gridSize:s}=e,d={root:["root",i&&"container","wrap"!==o&&`wrap-xs-${String(o)}`,...I(n),...D(s),...i?T(r,t.breakpoints.keys[0]):[]]};return(0,a.Z)(d,e=>(0,l.Z)(u,e),{})},f=t(E,L,k,w,x,N,S),m=o.forwardRef(function(e,t){var a,l,u,m,_,b,v,C;let y=(0,h.Z)(),w=i(e),S=(0,g.Z)(w),E=o.useContext(c),{className:k,children:L,columns:x=12,container:N=!1,component:D="div",direction:T="row",wrap:I="wrap",spacing:O=0,rowSpacing:M=O,columnSpacing:P=O,disableEqualOverflow:F,unstable_level:B=0}=S,W=(0,r.Z)(S,A),H=F;B&&void 0!==F&&(H=e.disableEqualOverflow);let V={},z={},U={};Object.entries(W).forEach(([e,t])=>{void 0!==y.breakpoints.values[e]?V[e]=t:void 0!==y.breakpoints.values[e.replace("Offset","")]?z[e.replace("Offset","")]=t:U[e]=t});let $=null!=(a=e.columns)?a:B?void 0:x,K=null!=(l=e.spacing)?l:B?void 0:O,j=null!=(u=null!=(m=e.rowSpacing)?m:e.spacing)?u:B?void 0:M,G=null!=(_=null!=(b=e.columnSpacing)?b:e.spacing)?_:B?void 0:P,q=(0,n.Z)({},S,{level:B,columns:$,container:N,direction:T,wrap:I,spacing:K,rowSpacing:j,columnSpacing:G,gridSize:V,gridOffset:z,disableEqualOverflow:null!=(v=null!=(C=H)?C:E)&&v,parentDisableEqualOverflow:E}),Z=p(q,y),Y=(0,R.jsx)(f,(0,n.Z)({ref:t,as:D,ownerState:q,className:(0,s.Z)(Z.root,k)},U,{children:o.Children.map(L,e=>{if(o.isValidElement(e)&&(0,d.Z)(e,["Grid"])){var t;return o.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:B+1})}return e})}));return void 0!==H&&H!==(null!=E&&E)&&(Y=(0,R.jsx)(c.Provider,{value:H,children:Y})),Y});return m.muiName="Grid",m}({createStyledComponent:(0,F.Z)("div",{name:"JoyGrid",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,B.Z)({props:e,name:"JoyGrid"})});var H=W},30530:function(e,t,i){"use strict";i.d(t,{Z:function(){return E}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(47562),l=i(53832),d=i(44542),u=i(50645),c=i(88930),h=i(47093),g=i(5737),p=i(18587);function f(e){return(0,p.d6)("MuiModalDialog",e)}(0,p.sI)("MuiModalDialog",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","layoutCenter","layoutFullscreen"]);var m=i(66752),_=i(69586),b=i(326),v=i(9268);let C=["className","children","color","component","variant","size","layout","slots","slotProps"],y=e=>{let{variant:t,color:i,size:n,layout:r}=e,o={root:["root",t&&`variant${(0,l.Z)(t)}`,i&&`color${(0,l.Z)(i)}`,n&&`size${(0,l.Z)(n)}`,r&&`layout${(0,l.Z)(r)}`]};return(0,a.Z)(o,f,{})},w=(0,u.Z)(g.U,{name:"JoyModalDialog",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>(0,r.Z)({"--Divider-inset":"calc(-1 * var(--ModalDialog-padding))","--ModalClose-radius":"max((var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) - var(--ModalClose-inset), min(var(--ModalClose-inset) / 2, (var(--ModalDialog-radius) - var(--variant-borderWidth, 0px)) / 2))"},"sm"===t.size&&{"--ModalDialog-padding":e.spacing(2),"--ModalDialog-radius":e.vars.radius.sm,"--ModalDialog-gap":e.spacing(.75),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.25),"--ModalClose-inset":e.spacing(1.25),fontSize:e.vars.fontSize.sm},"md"===t.size&&{"--ModalDialog-padding":e.spacing(2.5),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(1.5),"--ModalDialog-titleOffset":e.spacing(.25),"--ModalDialog-descriptionOffset":e.spacing(.75),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.md},"lg"===t.size&&{"--ModalDialog-padding":e.spacing(3),"--ModalDialog-radius":e.vars.radius.md,"--ModalDialog-gap":e.spacing(2),"--ModalDialog-titleOffset":e.spacing(.75),"--ModalDialog-descriptionOffset":e.spacing(1),"--ModalClose-inset":e.spacing(1.5),fontSize:e.vars.fontSize.lg},{boxSizing:"border-box",boxShadow:e.shadow.md,borderRadius:"var(--ModalDialog-radius)",fontFamily:e.vars.fontFamily.body,lineHeight:e.vars.lineHeight.md,padding:"var(--ModalDialog-padding)",minWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-minWidth, 300px))",outline:0,position:"absolute",display:"flex",flexDirection:"column"},"fullscreen"===t.layout&&{top:0,left:0,right:0,bottom:0,border:0,borderRadius:0},"center"===t.layout&&{top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxWidth:"min(calc(100vw - 2 * var(--ModalDialog-padding)), var(--ModalDialog-maxWidth, 100vw))",maxHeight:"calc(100% - 2 * var(--ModalDialog-padding))"},{[`& [id="${t["aria-labelledby"]}"]`]:{"--Typography-margin":"calc(-1 * var(--ModalDialog-titleOffset)) 0 var(--ModalDialog-gap) 0","--Typography-fontSize":"1.125em",[`& + [id="${t["aria-describedby"]}"]`]:{"--unstable_ModalDialog-descriptionOffset":"calc(-1 * var(--ModalDialog-descriptionOffset))"}},[`& [id="${t["aria-describedby"]}"]`]:{"--Typography-fontSize":"1em","--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 0 0","&:not(:last-child)":{"--Typography-margin":"var(--unstable_ModalDialog-descriptionOffset, var(--ModalDialog-gap)) 0 var(--ModalDialog-gap) 0"}}})),S=o.forwardRef(function(e,t){let i=(0,c.Z)({props:e,name:"JoyModalDialog"}),{className:a,children:l,color:u="neutral",component:g="div",variant:p="outlined",size:f="md",layout:S="center",slots:E={},slotProps:k={}}=i,L=(0,n.Z)(i,C),{getColor:x}=(0,h.VT)(p),N=x(e.color,u),D=(0,r.Z)({},i,{color:N,component:g,layout:S,size:f,variant:p}),T=y(D),I=(0,r.Z)({},L,{component:g,slots:E,slotProps:k}),R=o.useMemo(()=>({variant:p,color:"context"===N?void 0:N}),[N,p]),[A,O]=(0,b.Z)("root",{ref:t,className:(0,s.Z)(T.root,a),elementType:w,externalForwardedProps:I,ownerState:D,additionalProps:{as:g,role:"dialog","aria-modal":"true"}});return(0,v.jsx)(m.Z.Provider,{value:f,children:(0,v.jsx)(_.Z.Provider,{value:R,children:(0,v.jsx)(A,(0,r.Z)({},O,{children:o.Children.map(l,e=>{if(!o.isValidElement(e))return e;if((0,d.Z)(e,["Divider"])){let t={};return t.inset="inset"in e.props?e.props.inset:"context",o.cloneElement(e,t)}return e})}))})})});var E=S},24857:function(e,t,i){"use strict";i.d(t,{Z:function(){return x}});var n=i(40431),r=i(46750),o=i(86006),s=i(47562),a=i(49657),l=i(99179),d=i(11059),u=i(30461),c=i(18414),h=i(76563),g=i(326),p=i(70092),f=i(50645),m=i(88930),_=i(47093),b=i(18587);function v(e){return(0,b.d6)("MuiOption",e)}let C=(0,b.sI)("MuiOption",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","highlighted","variantPlain","variantSoft","variantOutlined","variantSolid"]);var y=i(76620),w=i(9268);let S=["component","children","disabled","value","label","variant","color","slots","slotProps"],E=e=>{let{disabled:t,highlighted:i,selected:n}=e;return(0,s.Z)({root:["root",t&&"disabled",i&&"highlighted",n&&"selected"]},v,{})},k=(0,f.Z)(p.r,{name:"JoyOption",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color];return{[`&.${C.highlighted}`]:{backgroundColor:null==n?void 0:n.backgroundColor}}}),L=o.forwardRef(function(e,t){var i;let s=(0,m.Z)({props:e,name:"JoyOption"}),{component:p="li",children:f,disabled:b=!1,value:v,label:C,variant:L="plain",color:x="neutral",slots:N={},slotProps:D={}}=s,T=(0,r.Z)(s,S),I=o.useContext(y.Z),R=o.useRef(null),A=(0,l.Z)(R,t),O=null!=C?C:"string"==typeof f?f:null==(i=R.current)?void 0:i.innerText,{getRootProps:M,selected:P,highlighted:F,index:B}=function(e){let{value:t,label:i,disabled:r,rootRef:s,id:g}=e,{getRootProps:p,rootRef:f,highlighted:m,selected:_}=function(e){let t;let{handlePointerOverEvents:i=!1,item:r,rootRef:s}=e,a=o.useRef(null),h=(0,l.Z)(a,s),g=o.useContext(c.Z);if(!g)throw Error("useListItem must be used within a ListProvider");let{dispatch:p,getItemState:f,registerHighlightChangeHandler:m,registerSelectionChangeHandler:_}=g,{highlighted:b,selected:v,focusable:C}=f(r),y=function(){let[,e]=o.useState({});return o.useCallback(()=>{e({})},[])}();(0,d.Z)(()=>m(function(e){e!==r||b?e!==r&&b&&y():y()})),(0,d.Z)(()=>_(function(e){v?e.includes(r)||y():e.includes(r)&&y()}),[_,y,v,r]);let w=o.useCallback(e=>t=>{var i;null==(i=e.onClick)||i.call(e,t),t.defaultPrevented||p({type:u.F.itemClick,item:r,event:t})},[p,r]),S=o.useCallback(e=>t=>{var i;null==(i=e.onMouseOver)||i.call(e,t),t.defaultPrevented||p({type:u.F.itemHover,item:r,event:t})},[p,r]);return C&&(t=b?0:-1),{getRootProps:(e={})=>(0,n.Z)({},e,{onClick:w(e),onPointerOver:i?S(e):void 0,ref:h,tabIndex:t}),highlighted:b,rootRef:h,selected:v}}({item:t}),b=(0,a.Z)(g),v=o.useRef(null),C=o.useMemo(()=>({disabled:r,label:i,value:t,ref:v,id:b}),[r,i,t,b]),{index:y}=function(e,t){let i=o.useContext(h.s);if(null===i)throw Error("useCompoundItem must be used within a useCompoundParent");let{registerItem:n}=i,[r,s]=o.useState("function"==typeof e?void 0:e);return(0,d.Z)(()=>{let{id:i,deregister:r}=n(e,t);return s(i),r},[n,t,e]),{id:r,index:void 0!==r?i.getItemIndex(r):-1,totalItemCount:i.totalSubitemCount}}(t,C),w=(0,l.Z)(s,v,f);return{getRootProps:(e={})=>(0,n.Z)({},e,p(e),{id:b,ref:w,role:"option","aria-selected":_}),highlighted:m,index:y,selected:_,rootRef:w}}({disabled:b,label:O,value:v,rootRef:A}),{getColor:W}=(0,_.VT)(L),H=W(e.color,P?"primary":x),V=(0,n.Z)({},s,{disabled:b,selected:P,highlighted:F,index:B,component:p,variant:L,color:H,row:I}),z=E(V),U=(0,n.Z)({},T,{component:p,slots:N,slotProps:D}),[$,K]=(0,g.Z)("root",{ref:t,getSlotProps:M,elementType:k,externalForwardedProps:U,className:z.root,ownerState:V});return(0,w.jsx)($,(0,n.Z)({},K,{children:f}))});var x=L},71451:function(e,t,i){"use strict";i.d(t,{Z:function(){return ep}});var n,r=i(46750),o=i(40431),s=i(86006),a=i(89791),l=i(53832),d=i(99179),u=i(67222),c=i(49657),h=i(11059),g=i(73811);let p={buttonClick:"buttonClick"};var f=i(30461);function m(e,t,i){var n;let r,o;let{items:s,isItemDisabled:a,disableListWrap:l,disabledItemsFocusable:d,itemComparer:u,focusManagement:c}=i,h=s.length-1,g=null==e?-1:s.findIndex(t=>u(t,e)),p=!l;switch(t){case"reset":if(-1==("DOM"===c?0:-1))return null;r=0,o="next",p=!1;break;case"start":r=0,o="next",p=!1;break;case"end":r=h,o="previous",p=!1;break;default:{let e=g+t;e<0?!p&&-1!==g||Math.abs(t)>1?(r=0,o="next"):(r=h,o="previous"):e>h?!p||Math.abs(t)>1?(r=h,o="previous"):(r=0,o="next"):(r=e,o=t>=0?"next":"previous")}}let f=function(e,t,i,n,r,o){if(0===i.length||!n&&i.every((e,t)=>r(e,t)))return -1;let s=e;for(;;){if(!o&&"next"===t&&s===i.length||!o&&"previous"===t&&-1===s)return -1;let e=!n&&r(i[s],s);if(!e)return s;s+="next"===t?1:-1,o&&(s=(s+i.length)%i.length)}}(r,o,s,d,a,p);return -1!==f||null===e||a(e,g)?null!=(n=s[f])?n:null:e}function _(e,t,i){let{itemComparer:n,isItemDisabled:r,selectionMode:s,items:a}=i,{selectedValues:l}=t,d=a.findIndex(t=>n(e,t));if(r(e,d))return t;let u="none"===s?[]:"single"===s?n(l[0],e)?l:[e]:l.some(t=>n(t,e))?l.filter(t=>!n(t,e)):[...l,e];return(0,o.Z)({},t,{selectedValues:u,highlightedValue:e})}function b(e,t){let{type:i,context:n}=t;switch(i){case f.F.keyDown:return function(e,t,i){let n=t.highlightedValue,{orientation:r,pageSize:s}=i;switch(e){case"Home":return(0,o.Z)({},t,{highlightedValue:m(n,"start",i)});case"End":return(0,o.Z)({},t,{highlightedValue:m(n,"end",i)});case"PageUp":return(0,o.Z)({},t,{highlightedValue:m(n,-s,i)});case"PageDown":return(0,o.Z)({},t,{highlightedValue:m(n,s,i)});case"ArrowUp":if("vertical"!==r)break;return(0,o.Z)({},t,{highlightedValue:m(n,-1,i)});case"ArrowDown":if("vertical"!==r)break;return(0,o.Z)({},t,{highlightedValue:m(n,1,i)});case"ArrowLeft":if("vertical"===r)break;return(0,o.Z)({},t,{highlightedValue:m(n,"horizontal-ltr"===r?-1:1,i)});case"ArrowRight":if("vertical"===r)break;return(0,o.Z)({},t,{highlightedValue:m(n,"horizontal-ltr"===r?1:-1,i)});case"Enter":case" ":if(null===t.highlightedValue)break;return _(t.highlightedValue,t,i)}return t}(t.key,e,n);case f.F.itemClick:return _(t.item,e,n);case f.F.blur:return"DOM"===n.focusManagement?e:(0,o.Z)({},e,{highlightedValue:null});case f.F.textNavigation:return function(e,t,i){let{items:n,isItemDisabled:r,disabledItemsFocusable:s,getItemAsString:a}=i,l=t.length>1,d=l?e.highlightedValue:m(e.highlightedValue,1,i);for(let u=0;ua(e,i.highlightedValue)))?s:null:"DOM"===l&&0===t.length&&(d=m(null,"reset",n));let u=null!=(r=i.selectedValues)?r:[],c=u.filter(t=>e.some(e=>a(e,t)));return(0,o.Z)({},i,{highlightedValue:d,selectedValues:c})}(t.items,t.previousItems,e,n);case f.F.resetHighlight:return(0,o.Z)({},e,{highlightedValue:m(null,"reset",n)});default:return e}}let v="select:change-selection",C="select:change-highlight";function y(e,t){return e===t}let w={},S=()=>{};function E(e,t){let i=(0,o.Z)({},e);return Object.keys(t).forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i}function k(e,t,i=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>i(e,t[n]))}function L(e,t){let i=s.useRef(e);return s.useEffect(()=>{i.current=e},null!=t?t:[e]),i}let x={},N=()=>{},D=(e,t)=>e===t,T=()=>!1,I=e=>"string"==typeof e?e:String(e),R=()=>({highlightedValue:null,selectedValues:[]});var A=function(e){let{controlledProps:t=x,disabledItemsFocusable:i=!1,disableListWrap:n=!1,focusManagement:r="activeDescendant",getInitialState:a=R,getItemDomElement:l,getItemId:u,isItemDisabled:c=T,rootRef:h,onStateChange:g=N,items:p,itemComparer:m=D,getItemAsString:_=I,onChange:A,onHighlightChange:O,onItemsChange:M,orientation:P="vertical",pageSize:F=5,reducerActionContext:B=x,selectionMode:W="single",stateReducer:H}=e,V=s.useRef(null),z=(0,d.Z)(h,V),U=s.useCallback((e,t,i)=>{if(null==O||O(e,t,i),"DOM"===r&&null!=t&&(i===f.F.itemClick||i===f.F.keyDown||i===f.F.textNavigation)){var n;null==l||null==(n=l(t))||n.focus()}},[l,O,r]),$=s.useMemo(()=>({highlightedValue:m,selectedValues:(e,t)=>k(e,t,m)}),[m]),K=s.useCallback((e,t,i,n,r)=>{switch(null==g||g(e,t,i,n,r),t){case"highlightedValue":U(e,i,n);break;case"selectedValues":null==A||A(e,i,n)}},[U,A,g]),j=s.useMemo(()=>({disabledItemsFocusable:i,disableListWrap:n,focusManagement:r,isItemDisabled:c,itemComparer:m,items:p,getItemAsString:_,onHighlightChange:U,orientation:P,pageSize:F,selectionMode:W,stateComparers:$}),[i,n,r,c,m,p,_,U,P,F,W,$]),G=a(),q=s.useMemo(()=>(0,o.Z)({},B,j),[B,j]),[Z,Y]=function(e){let t=s.useRef(null),{reducer:i,initialState:n,controlledProps:r=w,stateComparers:a=w,onStateChange:l=S,actionContext:d}=e,u=s.useCallback((e,n)=>{t.current=n;let o=E(e,r),s=i(o,n);return s},[r,i]),[c,h]=s.useReducer(u,n),g=s.useCallback(e=>{h((0,o.Z)({},e,{context:d}))},[d]);return!function(e){let{nextState:t,initialState:i,stateComparers:n,onStateChange:r,controlledProps:o,lastActionRef:a}=e,l=s.useRef(i);s.useEffect(()=>{if(null===a.current)return;let e=E(l.current,o);Object.keys(t).forEach(i=>{var o,s,l;let d=null!=(o=n[i])?o:y,u=t[i],c=e[i];(null!=c||null==u)&&(null==c||null!=u)&&(null==c||null==u||d(u,c))||null==r||r(null!=(s=a.current.event)?s:null,i,u,null!=(l=a.current.type)?l:"",t)}),l.current=t,a.current=null},[l,t,a,r,n,o])}({nextState:c,initialState:n,stateComparers:null!=a?a:w,onStateChange:null!=l?l:S,controlledProps:r,lastActionRef:t}),[E(c,r),g]}({reducer:null!=H?H:b,actionContext:q,initialState:G,controlledProps:t,stateComparers:$,onStateChange:K}),{highlightedValue:Q,selectedValues:X}=Z,J=function(e){let t=s.useRef({searchString:"",lastTime:null});return s.useCallback(i=>{if(1===i.key.length&&" "!==i.key){let n=t.current,r=i.key.toLowerCase(),o=performance.now();n.searchString.length>0&&n.lastTime&&o-n.lastTime>500?n.searchString=r:(1!==n.searchString.length||r!==n.searchString)&&(n.searchString+=r),n.lastTime=o,e(n.searchString,i)}},[e])}((e,t)=>Y({type:f.F.textNavigation,event:t,searchString:e})),ee=L(X),et=L(Q),ei=s.useRef([]);s.useEffect(()=>{k(ei.current,p,m)||(Y({type:f.F.itemsChange,event:null,items:p,previousItems:ei.current}),ei.current=p,null==M||M(p))},[p,m,Y,M]);let{notifySelectionChanged:en,notifyHighlightChanged:er,registerHighlightChangeHandler:eo,registerSelectionChangeHandler:es}=function(){let e=function(){let e=s.useRef();return e.current||(e.current=function(){let e=new Map;return{subscribe:function(t,i){let n=e.get(t);return n?n.add(i):(n=new Set([i]),e.set(t,n)),()=>{n.delete(i),0===n.size&&e.delete(t)}},publish:function(t,...i){let n=e.get(t);n&&n.forEach(e=>e(...i))}}}()),e.current}(),t=s.useCallback(t=>{e.publish(v,t)},[e]),i=s.useCallback(t=>{e.publish(C,t)},[e]),n=s.useCallback(t=>e.subscribe(v,t),[e]),r=s.useCallback(t=>e.subscribe(C,t),[e]);return{notifySelectionChanged:t,notifyHighlightChanged:i,registerSelectionChangeHandler:n,registerHighlightChangeHandler:r}}();s.useEffect(()=>{en(X)},[X,en]),s.useEffect(()=>{er(Q)},[Q,er]);let ea=e=>t=>{var i;if(null==(i=e.onKeyDown)||i.call(e,t),t.defaultMuiPrevented)return;let n=["Home","End","PageUp","PageDown"];"vertical"===P?n.push("ArrowUp","ArrowDown"):n.push("ArrowLeft","ArrowRight"),"activeDescendant"===r&&n.push(" ","Enter"),n.includes(t.key)&&t.preventDefault(),Y({type:f.F.keyDown,key:t.key,event:t}),J(t)},el=e=>t=>{var i,n;null==(i=e.onBlur)||i.call(e,t),t.defaultMuiPrevented||null!=(n=V.current)&&n.contains(t.relatedTarget)||Y({type:f.F.blur,event:t})},ed=s.useCallback(e=>{var t;let i=p.findIndex(t=>m(t,e)),n=(null!=(t=ee.current)?t:[]).some(t=>null!=t&&m(e,t)),o=c(e,i),s=null!=et.current&&m(e,et.current),a="DOM"===r;return{disabled:o,focusable:a,highlighted:s,index:i,selected:n}},[p,c,m,ee,et,r]),eu=s.useMemo(()=>({dispatch:Y,getItemState:ed,registerHighlightChangeHandler:eo,registerSelectionChangeHandler:es}),[Y,ed,eo,es]);return s.useDebugValue({state:Z}),{contextValue:eu,dispatch:Y,getRootProps:(e={})=>(0,o.Z)({},e,{"aria-activedescendant":"activeDescendant"===r&&null!=Q?u(Q):void 0,onBlur:el(e),onKeyDown:ea(e),tabIndex:"DOM"===r?-1:0,ref:z}),rootRef:z,state:Z}},O=e=>{let{label:t,value:i}=e;return"string"==typeof t?t:"string"==typeof i?i:String(e)},M=i(76563);function P(e,t){var i,n,r;let{open:s}=e,{context:{selectionMode:a}}=t;if(t.type===p.buttonClick){let n=null!=(i=e.selectedValues[0])?i:m(null,"start",t.context);return(0,o.Z)({},e,{open:!s,highlightedValue:s?null:n})}let l=b(e,t);switch(t.type){case f.F.keyDown:if(e.open){if("Escape"===t.event.key||"single"===a&&("Enter"===t.event.key||" "===t.event.key))return(0,o.Z)({},l,{open:!1})}else{if("Enter"===t.event.key||" "===t.event.key||"ArrowDown"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(n=e.selectedValues[0])?n:m(null,"start",t.context)});if("ArrowUp"===t.event.key)return(0,o.Z)({},e,{open:!0,highlightedValue:null!=(r=e.selectedValues[0])?r:m(null,"end",t.context)})}break;case f.F.itemClick:if("single"===a)return(0,o.Z)({},l,{open:!1});break;case f.F.blur:return(0,o.Z)({},l,{open:!1})}return l}function F(e,t){return i=>{let n=(0,o.Z)({},i,e(i)),r=(0,o.Z)({},n,t(n));return r}}function B(e){e.preventDefault()}var W=function(e){let t;let{areOptionsEqual:i,buttonRef:n,defaultOpen:r=!1,defaultValue:a,disabled:l=!1,listboxId:u,listboxRef:f,multiple:m=!1,onChange:_,onHighlightChange:b,onOpenChange:v,open:C,options:y,getOptionAsString:w=O,value:S}=e,E=s.useRef(null),k=(0,d.Z)(n,E),L=s.useRef(null),x=(0,c.Z)(u);void 0===S&&void 0===a?t=[]:void 0!==a&&(t=m?a:null==a?[]:[a]);let N=s.useMemo(()=>{if(void 0!==S)return m?S:null==S?[]:[S]},[S,m]),{subitems:D,contextValue:T}=(0,M.Y)(),I=s.useMemo(()=>null!=y?new Map(y.map((e,t)=>[e.value,{value:e.value,label:e.label,disabled:e.disabled,ref:s.createRef(),id:`${x}_${t}`}])):D,[y,D,x]),R=(0,d.Z)(f,L),{getRootProps:W,active:H,focusVisible:V,rootRef:z}=(0,g.Z)({disabled:l,rootRef:k}),U=s.useMemo(()=>Array.from(I.keys()),[I]),$=s.useCallback(e=>{if(void 0!==i){let t=U.find(t=>i(t,e));return I.get(t)}return I.get(e)},[I,i,U]),K=s.useCallback(e=>{var t;let i=$(e);return null!=(t=null==i?void 0:i.disabled)&&t},[$]),j=s.useCallback(e=>{let t=$(e);return t?w(t):""},[$,w]),G=s.useMemo(()=>({selectedValues:N,open:C}),[N,C]),q=s.useCallback(e=>{var t;return null==(t=I.get(e))?void 0:t.id},[I]),Z=s.useCallback((e,t)=>{if(m)null==_||_(e,t);else{var i;null==_||_(e,null!=(i=t[0])?i:null)}},[m,_]),Y=s.useCallback((e,t)=>{null==b||b(e,null!=t?t:null)},[b]),Q=s.useCallback((e,t,i)=>{if("open"===t&&(null==v||v(i),!1===i&&(null==e?void 0:e.type)!=="blur")){var n;null==(n=E.current)||n.focus()}},[v]),X={getInitialState:()=>{var e;return{highlightedValue:null,selectedValues:null!=(e=t)?e:[],open:r}},getItemId:q,controlledProps:G,itemComparer:i,isItemDisabled:K,rootRef:z,onChange:Z,onHighlightChange:Y,onStateChange:Q,reducerActionContext:s.useMemo(()=>({multiple:m}),[m]),items:U,getItemAsString:j,selectionMode:m?"multiple":"single",stateReducer:P},{dispatch:J,getRootProps:ee,contextValue:et,state:{open:ei,highlightedValue:en,selectedValues:er},rootRef:eo}=A(X),es=e=>t=>{var i;if(null==e||null==(i=e.onClick)||i.call(e,t),!t.defaultMuiPrevented){let e={type:p.buttonClick,event:t};J(e)}};(0,h.Z)(()=>{if(null!=en){var e;let t=null==(e=$(en))?void 0:e.ref;if(!L.current||!(null!=t&&t.current))return;let i=L.current.getBoundingClientRect(),n=t.current.getBoundingClientRect();n.topi.bottom&&(L.current.scrollTop+=n.bottom-i.bottom)}},[en,$]);let ea=s.useCallback(e=>$(e),[$]),el=(e={})=>(0,o.Z)({},e,{onClick:es(e),ref:eo,role:"combobox","aria-expanded":ei,"aria-controls":x});s.useDebugValue({selectedOptions:er,highlightedOption:en,open:ei});let ed=s.useMemo(()=>(0,o.Z)({},et,T),[et,T]);return{buttonActive:H,buttonFocusVisible:V,buttonRef:z,contextValue:ed,disabled:l,dispatch:J,getButtonProps:(e={})=>{let t=F(W,ee),i=F(t,el);return i(e)},getListboxProps:(e={})=>(0,o.Z)({},e,{id:x,role:"listbox","aria-multiselectable":m?"true":void 0,ref:R,onMouseDown:B}),getOptionMetadata:ea,listboxRef:eo,open:ei,options:U,value:e.multiple?er:er.length>0?er[0]:null,highlightedOption:en}},H=i(18414),V=i(9268);function z(e){let{value:t,children:i}=e,{dispatch:n,getItemIndex:r,getItemState:o,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l,registerItem:d,totalSubitemCount:u}=t,c=s.useMemo(()=>({dispatch:n,getItemState:o,getItemIndex:r,registerHighlightChangeHandler:a,registerSelectionChangeHandler:l}),[n,r,o,a,l]),h=s.useMemo(()=>({getItemIndex:r,registerItem:d,totalSubitemCount:u}),[d,r,u]);return(0,V.jsx)(M.s.Provider,{value:h,children:(0,V.jsx)(H.Z.Provider,{value:c,children:i})})}var U=i(47562),$=i(18818),K=i(27358),j=i(8189),G=(0,i(19595).Z)((0,V.jsx)("path",{d:"m12 5.83 2.46 2.46c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.7 3.7a.9959.9959 0 0 0-1.41 0L8.12 6.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 5.83zm0 12.34-2.46-2.46a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l3.17 3.18c.39.39 1.02.39 1.41 0l3.17-3.17c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0L12 18.17z"}),"Unfold"),q=i(50645),Z=i(88930),Y=i(47093),Q=i(326),X=i(18587);function J(e){return(0,X.d6)("MuiSelect",e)}let ee=(0,X.sI)("MuiSelect",["root","button","indicator","startDecorator","endDecorator","popper","listbox","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","focusVisible","disabled","expanded"]);var et=i(31857);let ei=["action","autoFocus","children","defaultValue","defaultListboxOpen","disabled","getSerializedValue","placeholder","listboxId","listboxOpen","onChange","onListboxOpenChange","onClose","renderValue","value","size","variant","color","startDecorator","endDecorator","indicator","aria-describedby","aria-label","aria-labelledby","id","name","slots","slotProps"];function en(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}function er(e){return(null==e?void 0:e.value)==null?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}let eo=[{name:"offset",options:{offset:[0,4]}},{name:"equalWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`}}],es=e=>{let{color:t,disabled:i,focusVisible:n,size:r,variant:o,open:s}=e,a={root:["root",i&&"disabled",n&&"focusVisible",s&&"expanded",o&&`variant${(0,l.Z)(o)}`,t&&`color${(0,l.Z)(t)}`,r&&`size${(0,l.Z)(r)}`],button:["button"],startDecorator:["startDecorator"],endDecorator:["endDecorator"],indicator:["indicator",s&&"expanded"],listbox:["listbox",s&&"expanded",i&&"disabled"]};return(0,U.Z)(a,J,{})},ea=(0,q.Z)("div",{name:"JoySelect",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,n,r,s;let a=null==(i=e.variants[`${t.variant}`])?void 0:i[t.color];return[(0,o.Z)({"--Select-radius":e.vars.radius.sm,"--Select-gap":"0.5rem","--Select-placeholderOpacity":.5,"--Select-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Select-focusedHighlight":e.vars.palette.focusVisible}:{"--Select-focusedHighlight":null==(n=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:n[500]},{"--Select-indicatorColor":null!=a&&a.backgroundColor?null==a?void 0:a.color:e.vars.palette.text.tertiary},"sm"===t.size&&{"--Select-minHeight":"2rem","--Select-paddingInline":"0.5rem","--Select-decoratorChildHeight":"min(1.5rem, var(--Select-minHeight))","--Icon-fontSize":"1.25rem"},"md"===t.size&&{"--Select-minHeight":"2.5rem","--Select-paddingInline":"0.75rem","--Select-decoratorChildHeight":"min(2rem, var(--Select-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===t.size&&{"--Select-minHeight":"3rem","--Select-paddingInline":"1rem","--Select-decoratorChildHeight":"min(2.375rem, var(--Select-minHeight))","--Icon-fontSize":"1.75rem"},{"--Select-decoratorChildOffset":"min(calc(var(--Select-paddingInline) - (var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2), var(--Select-paddingInline))","--_Select-paddingBlock":"max((var(--Select-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Select-decoratorChildHeight)) / 2, 0px)","--Select-decoratorChildRadius":"max(var(--Select-radius) - var(--variant-borderWidth, 0px) - var(--_Select-paddingBlock), min(var(--_Select-paddingBlock) + var(--variant-borderWidth, 0px), var(--Select-radius) / 2))","--Button-minHeight":"var(--Select-decoratorChildHeight)","--IconButton-size":"var(--Select-decoratorChildHeight)","--Button-radius":"var(--Select-decoratorChildRadius)","--IconButton-radius":"var(--Select-decoratorChildRadius)",boxSizing:"border-box",minWidth:0,minHeight:"var(--Select-minHeight)",position:"relative",display:"flex",alignItems:"center",borderRadius:"var(--Select-radius)",cursor:"pointer"},!(null!=a&&a.backgroundColor)&&{backgroundColor:e.vars.palette.background.surface},t.size&&{paddingBlock:({sm:2,md:3,lg:4})[t.size]},{paddingInline:"var(--Select-paddingInline)",fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md},"sm"===t.size&&{fontSize:e.vars.fontSize.sm},{"&::before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)"},[`&.${ee.focusVisible}`]:{"--Select-indicatorColor":null==a?void 0:a.color,"&::before":{boxShadow:"inset 0 0 0 var(--Select-focusedThickness) var(--Select-focusedHighlight)"}},[`&.${ee.disabled}`]:{"--Select-indicatorColor":"inherit"}}),(0,o.Z)({},a,{"&:hover":null==(r=e.variants[`${t.variant}Hover`])?void 0:r[t.color],[`&.${ee.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]})]}),el=(0,q.Z)("button",{name:"JoySelect",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>(0,o.Z)({border:0,outline:0,background:"none",padding:0,fontSize:"inherit",color:"inherit",alignSelf:"stretch",display:"flex",alignItems:"center",flex:1,fontFamily:"inherit",cursor:"pointer",whiteSpace:"nowrap",overflow:"hidden"},(null===e.value||void 0===e.value)&&{opacity:"var(--Select-placeholderOpacity)"},{"&::before":{content:'""',display:"block",position:"absolute",top:"calc(-1 * var(--variant-borderWidth, 0px))",left:"calc(-1 * var(--variant-borderWidth, 0px))",right:"calc(-1 * var(--variant-borderWidth, 0px))",bottom:"calc(-1 * var(--variant-borderWidth, 0px))",borderRadius:"var(--Select-radius)"}})),ed=(0,q.Z)($.C,{name:"JoySelect",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e,ownerState:t})=>{var i;let n="context"===t.color?void 0:null==(i=e.variants[t.variant])?void 0:i[t.color];return(0,o.Z)({"--focus-outline-offset":`calc(${e.vars.focus.thickness} * -1)`,"--List-radius":e.vars.radius.sm,"--ListItem-stickyBackground":(null==n?void 0:n.backgroundColor)||(null==n?void 0:n.background)||e.vars.palette.background.popup,"--ListItem-stickyTop":"calc(var(--List-padding, var(--ListDivider-gap)) * -1)"},K.M,{minWidth:"max-content",maxHeight:"44vh",overflow:"auto",outline:0,boxShadow:e.shadow.md,zIndex:`var(--unstable_popup-zIndex, ${e.vars.zIndex.popup})`},!(null!=n&&n.backgroundColor)&&{backgroundColor:e.vars.palette.background.popup})}),eu=(0,q.Z)("span",{name:"JoySelect",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({theme:e,ownerState:t})=>(0,o.Z)({"--Button-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Select-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Select-paddingInline) / -4)",display:"inherit",alignItems:"center",marginInlineEnd:"var(--Select-gap)",color:e.vars.palette.text.tertiary},t.focusVisible&&{color:"var(--Select-focusedHighlight)"})),ec=(0,q.Z)("span",{name:"JoySelect",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({theme:e,ownerState:t})=>{var i;let n=null==(i=e.variants[t.variant])?void 0:i[t.color];return{"--Button-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Select-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Select-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",color:null==n?void 0:n.color}}),eh=(0,q.Z)("span",{name:"JoySelect",slot:"Indicator"})(({ownerState:e})=>(0,o.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1.125rem"},"md"===e.size&&{"--Icon-fontSize":"1.25rem"},"lg"===e.size&&{"--Icon-fontSize":"1.5rem"},{color:"var(--Select-indicatorColor)",display:"inherit",alignItems:"center",marginInlineStart:"var(--Select-gap)",marginInlineEnd:"calc(var(--Select-paddingInline) / -4)",[`.${ee.endDecorator} + &`]:{marginInlineStart:"calc(var(--Select-gap) / 2)"}})),eg=s.forwardRef(function(e,t){var i,l,c,h,g,p,f;let m=(0,Z.Z)({props:e,name:"JoySelect"}),{action:_,autoFocus:b,children:v,defaultValue:C,defaultListboxOpen:y=!1,disabled:w,getSerializedValue:S=er,placeholder:E,listboxId:k,listboxOpen:L,onChange:x,onListboxOpenChange:N,onClose:D,renderValue:T,value:I,size:R="md",variant:A="outlined",color:O="neutral",startDecorator:M,endDecorator:P,indicator:F=n||(n=(0,V.jsx)(G,{})),"aria-describedby":B,"aria-label":H,"aria-labelledby":U,id:$,name:q,slots:X={},slotProps:J={}}=m,eg=(0,r.Z)(m,ei),ep=s.useContext(et.Z),ef=null!=(i=null!=(l=e.disabled)?l:null==ep?void 0:ep.disabled)?i:w,em=null!=(c=null!=(h=e.size)?h:null==ep?void 0:ep.size)?c:R,{getColor:e_}=(0,Y.VT)(A),eb=e_(e.color,null!=ep&&ep.error?"danger":null!=(g=null==ep?void 0:ep.color)?g:O),ev=null!=T?T:en,[eC,ey]=s.useState(null),ew=s.useRef(null),eS=s.useRef(null),eE=s.useRef(null),ek=(0,d.Z)(t,ew);s.useImperativeHandle(_,()=>({focusVisible:()=>{var e;null==(e=eS.current)||e.focus()}}),[]),s.useEffect(()=>{ey(ew.current)},[]),s.useEffect(()=>{b&&eS.current.focus()},[b]);let eL=s.useCallback(e=>{null==N||N(e),e||null==D||D()},[D,N]),{buttonActive:ex,buttonFocusVisible:eN,contextValue:eD,disabled:eT,getButtonProps:eI,getListboxProps:eR,getOptionMetadata:eA,open:eO,value:eM}=W({buttonRef:eS,defaultOpen:y,defaultValue:C,disabled:ef,listboxId:k,multiple:!1,onChange:x,onOpenChange:eL,open:L,value:I}),eP=(0,o.Z)({},m,{active:ex,defaultListboxOpen:y,disabled:eT,focusVisible:eN,open:eO,renderValue:ev,value:eM,size:em,variant:A,color:eb}),eF=es(eP),eB=(0,o.Z)({},eg,{slots:X,slotProps:J}),eW=s.useMemo(()=>{var e;return null!=(e=eA(eM))?e:null},[eA,eM]),[eH,eV]=(0,Q.Z)("root",{ref:ek,className:eF.root,elementType:ea,externalForwardedProps:eB,ownerState:eP}),[ez,eU]=(0,Q.Z)("button",{additionalProps:{"aria-describedby":null!=B?B:null==ep?void 0:ep["aria-describedby"],"aria-label":H,"aria-labelledby":null!=U?U:null==ep?void 0:ep.labelId,id:null!=$?$:null==ep?void 0:ep.htmlFor,name:q},className:eF.button,elementType:el,externalForwardedProps:eB,getSlotProps:eI,ownerState:eP}),[e$,eK]=(0,Q.Z)("listbox",{additionalProps:{ref:eE,anchorEl:eC,open:eO,placement:"bottom",keepMounted:!0},className:eF.listbox,elementType:ed,externalForwardedProps:eB,getSlotProps:eR,ownerState:(0,o.Z)({},eP,{nesting:!1,row:!1,wrap:!1}),getSlotOwnerState:e=>({size:e.size||em,variant:e.variant||"outlined",color:e.color||"neutral",disableColorInversion:!e.disablePortal})}),[ej,eG]=(0,Q.Z)("startDecorator",{className:eF.startDecorator,elementType:eu,externalForwardedProps:eB,ownerState:eP}),[eq,eZ]=(0,Q.Z)("endDecorator",{className:eF.endDecorator,elementType:ec,externalForwardedProps:eB,ownerState:eP}),[eY,eQ]=(0,Q.Z)("indicator",{className:eF.indicator,elementType:eh,externalForwardedProps:eB,ownerState:eP}),eX=s.useMemo(()=>(0,o.Z)({},eD,{color:eb}),[eb,eD]),eJ=s.useMemo(()=>[...eo,...eK.modifiers||[]],[eK.modifiers]),e0=null;return eC&&(e0=(0,V.jsx)(e$,(0,o.Z)({},eK,{className:(0,a.Z)(eK.className,(null==(p=eK.ownerState)?void 0:p.color)==="context"&&ee.colorContext),modifiers:eJ},!(null!=(f=m.slots)&&f.listbox)&&{as:u.Z,slots:{root:eK.as||"ul"}},{children:(0,V.jsx)(z,{value:eX,children:(0,V.jsx)(j.Z.Provider,{value:"select",children:(0,V.jsx)(K.Z,{nested:!0,children:v})})})})),eK.disablePortal||(e0=(0,V.jsx)(Y.ZP.Provider,{value:void 0,children:e0}))),(0,V.jsxs)(s.Fragment,{children:[(0,V.jsxs)(eH,(0,o.Z)({},eV,{children:[M&&(0,V.jsx)(ej,(0,o.Z)({},eG,{children:M})),(0,V.jsx)(ez,(0,o.Z)({},eU,{children:eW?ev(eW):E})),P&&(0,V.jsx)(eq,(0,o.Z)({},eZ,{children:P})),F&&(0,V.jsx)(eY,(0,o.Z)({},eQ,{children:F}))]})),e0,q&&(0,V.jsx)("input",{type:"hidden",name:q,value:S(eW)})]})});var ep=eg},69962:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(53832),l=i(72120),d=i(47562),u=i(88930),c=i(50645),h=i(18587);function g(e){return(0,h.d6)("MuiSkeleton",e)}(0,h.sI)("MuiSkeleton",["root","variantOverlay","variantCircular","variantRectangular","variantText","variantInline","h1","h2","h3","h4","h5","h6","body1","body2","body3"]);var p=i(326),f=i(9268);let m=["className","component","children","animation","overlay","loading","variant","level","height","width","sx","slots","slotProps"],_=e=>e,b,v,C,y,w,S=e=>{let{variant:t,level:i}=e,n={root:["root",t&&`variant${(0,a.Z)(t)}`,i&&`level${(0,a.Z)(i)}`]};return(0,d.Z)(n,g,{})},E=(0,l.F4)(b||(b=_` 0% { opacity: 1; } @@ -56,11 +56,7 @@ ); transform: translateX(-100%); /* Avoid flash during server-side hydration */ } - `),t.vars.palette.background.level2,k),({ownerState:e,theme:t})=>{var i,n,o,s;let a=(null==(i=t.components)||null==(i=i.JoyTypography)||null==(i=i.defaultProps)?void 0:i.level)||"body1";return[{display:"block",position:"relative","--unstable_pseudo-zIndex":9,"--unstable_pulse-bg":t.vars.palette.background.level1,overflow:"hidden",cursor:"default","& *":{visibility:"hidden"},"&::before":{display:"block",content:'" "',top:0,bottom:0,left:0,right:0,zIndex:"var(--unstable_pseudo-zIndex)",borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"--unstable_wave-bg":"rgba(255 255 255 / 0.1)"}},"rectangular"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",height:"auto",width:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"circular"===e.variant&&(0,r.Z)({borderRadius:"50%",width:"100%",height:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"text"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",background:"transparent",width:"100%"},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level||a],{paddingBlockStart:`calc((${(null==(n=t.typography[e.level||a])?void 0:n.lineHeight)||1} - 1) * 0.56em)`,paddingBlockEnd:`calc((${(null==(o=t.typography[e.level||a])?void 0:o.lineHeight)||1} - 1) * 0.44em)`,"&::before":(0,r.Z)({height:"1em"},t.typography[e.level||a],"wave"===e.animation&&{backgroundColor:t.vars.palette.background.level2},!e.animation&&{backgroundColor:t.vars.palette.background.level2}),"&::after":(0,r.Z)({height:"1em",top:`calc((${(null==(s=t.typography[e.level||a])?void 0:s.lineHeight)||1} - 1) * 0.56em)`},t.typography[e.level||a])})),"inline"===e.variant&&(0,r.Z)({display:"inline",position:"initial",borderRadius:"min(0.15em, 6px)"},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"-webkit-mask-image":"-webkit-radial-gradient(white, black)","&::before":{position:"absolute",zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}},"pulse"===e.animation&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}}),"overlay"===e.variant&&(0,r.Z)({borderRadius:t.vars.radius.xs,position:"absolute",width:"100%",height:"100%",zIndex:"var(--unstable_pseudo-zIndex)"},"pulse"===e.animation&&{backgroundColor:t.vars.palette.background.surface},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"&::before":{position:"absolute"}})]}),x=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoySkeleton"}),{className:a,component:l="span",children:d,animation:c="pulse",overlay:h=!1,loading:g=!0,variant:_="overlay",level:b="text"===_?"body1":"inherit",height:v,width:C,sx:y,slots:w={},slotProps:E={}}=i,k=(0,n.Z)(i,m),x=(0,r.Z)({},k,{component:l,slots:w,slotProps:E,sx:[{width:C,height:v},...Array.isArray(y)?y:[y]]}),N=(0,r.Z)({},i,{animation:c,component:l,level:b,loading:g,overlay:h,variant:_,width:C,height:v}),D=S(N),[T,I]=(0,p.Z)("root",{ref:t,className:(0,s.Z)(D.root,a),elementType:L,externalForwardedProps:x,ownerState:N});return g?(0,f.jsx)(T,(0,r.Z)({},I,{children:d})):(0,f.jsx)(o.Fragment,{children:o.Children.map(d,(e,t)=>0===t&&o.isValidElement(e)?o.cloneElement(e,{"data-first-child":""}):e)})});x.muiName="Skeleton";var N=x},35891:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(53832),l=i(24263),d=i(49657),u=i(66519),c=i(21454),h=i(99179),g=i(47562),p=i(67222),f=i(50645),m=i(88930),_=i(326),b=i(47093),v=i(18587);function C(e){return(0,v.d6)("MuiTooltip",e)}(0,v.sI)("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorInfo","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var y=i(9268);let w=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],S=e=>{let{arrow:t,variant:i,color:n,size:r,placement:o,touch:s}=e,l={root:["root",t&&"tooltipArrow",s&&"touch",r&&`size${(0,a.Z)(r)}`,n&&`color${(0,a.Z)(n)}`,i&&`variant${(0,a.Z)(i)}`,`tooltipPlacement${(0,a.Z)(o.split("-")[0])}`],arrow:["arrow"]};return(0,g.Z)(l,C,{})},E=(0,f.Z)("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var i,n,o;let s=null==(i=t.variants[e.variant])?void 0:i[e.color];return(0,r.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1rem","--Tooltip-arrowSize":"8px",padding:t.spacing(.5,.625),fontSize:t.vars.fontSize.xs},"md"===e.size&&{"--Icon-fontSize":"1.125rem","--Tooltip-arrowSize":"10px",padding:t.spacing(.625,.75),fontSize:t.vars.fontSize.sm},"lg"===e.size&&{"--Icon-fontSize":"1.25rem","--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1),fontSize:t.vars.fontSize.md},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.xs,boxShadow:t.shadow.sm,fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,lineHeight:t.vars.lineHeight.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},s,!s.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:null!=(n=e.placement)&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:null!=(o=e.placement)&&o.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),k=(0,f.Z)("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var i,n,r;let o=null==(i=e.variants[t.variant])?void 0:i[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&:before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:null!=(n=null==o?void 0:o.backgroundColor)?n:e.vars.palette.background.surface,borderRightColor:null!=(r=null==o?void 0:o.backgroundColor)?r:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${o.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),L=!1,x=null,N={x:0,y:0};function D(e,t){return i=>{t&&t(i),e(i)}}function T(e,t){return i=>{t&&t(i),e(i)}}let I=o.forwardRef(function(e,t){var i;let a=(0,m.Z)({props:e,name:"JoyTooltip"}),{children:g,className:f,component:v,arrow:C=!1,describeChild:I=!1,disableFocusListener:R=!1,disableHoverListener:A=!1,disableInteractive:O=!1,disableTouchListener:M=!1,enterDelay:P=100,enterNextDelay:F=0,enterTouchDelay:B=700,followCursor:W=!1,id:H,leaveDelay:V=0,leaveTouchDelay:z=1500,onClose:U,onOpen:$,open:K,disablePortal:j,direction:G,keepMounted:q,modifiers:Z,placement:Y="bottom",title:Q,color:X="neutral",variant:J="solid",size:ee="md",slots:et={},slotProps:ei={}}=a,en=(0,n.Z)(a,w),{getColor:er}=(0,b.VT)(J),eo=j?er(e.color,X):X,[es,ea]=o.useState(),[el,ed]=o.useState(null),eu=o.useRef(!1),ec=O||W,eh=o.useRef(),eg=o.useRef(),ep=o.useRef(),ef=o.useRef(),[em,e_]=(0,l.Z)({controlled:K,default:!1,name:"Tooltip",state:"open"}),eb=em,ev=(0,d.Z)(H),eC=o.useRef(),ey=o.useCallback(()=>{void 0!==eC.current&&(document.body.style.WebkitUserSelect=eC.current,eC.current=void 0),clearTimeout(ef.current)},[]);o.useEffect(()=>()=>{clearTimeout(eh.current),clearTimeout(eg.current),clearTimeout(ep.current),ey()},[ey]);let ew=e=>{x&&clearTimeout(x),L=!0,e_(!0),$&&!eb&&$(e)},eS=(0,u.Z)(e=>{x&&clearTimeout(x),x=setTimeout(()=>{L=!1},800+V),e_(!1),U&&eb&&U(e),clearTimeout(eh.current),eh.current=setTimeout(()=>{eu.current=!1},150)}),eE=e=>{eu.current&&"touchstart"!==e.type||(es&&es.removeAttribute("title"),clearTimeout(eg.current),clearTimeout(ep.current),P||L&&F?eg.current=setTimeout(()=>{ew(e)},L?F:P):ew(e))},ek=e=>{clearTimeout(eg.current),clearTimeout(ep.current),ep.current=setTimeout(()=>{eS(e)},V)},{isFocusVisibleRef:eL,onBlur:ex,onFocus:eN,ref:eD}=(0,c.Z)(),[,eT]=o.useState(!1),eI=e=>{ex(e),!1===eL.current&&(eT(!1),ek(e))},eR=e=>{es||ea(e.currentTarget),eN(e),!0===eL.current&&(eT(!0),eE(e))},eA=e=>{eu.current=!0;let t=g.props;t.onTouchStart&&t.onTouchStart(e)};o.useEffect(()=>{if(eb)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&eS(e)}},[eS,eb]);let eO=(0,h.Z)(ea,t),eM=(0,h.Z)(eD,eO),eP=(0,h.Z)(g.ref,eM);"number"==typeof Q||Q||(eb=!1);let eF=o.useRef(null),eB={},eW="string"==typeof Q;I?(eB.title=eb||!eW||A?null:Q,eB["aria-describedby"]=eb?ev:null):(eB["aria-label"]=eW?Q:null,eB["aria-labelledby"]=eb&&!eW?ev:null);let eH=(0,r.Z)({},eB,en,{component:v},g.props,{className:(0,s.Z)(f,g.props.className),onTouchStart:eA,ref:eP},W?{onMouseMove:e=>{let t=g.props;t.onMouseMove&&t.onMouseMove(e),N={x:e.clientX,y:e.clientY},eF.current&&eF.current.update()}}:{}),eV={};M||(eH.onTouchStart=e=>{eA(e),clearTimeout(ep.current),clearTimeout(eh.current),ey(),eC.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ef.current=setTimeout(()=>{document.body.style.WebkitUserSelect=eC.current,eE(e)},B)},eH.onTouchEnd=e=>{g.props.onTouchEnd&&g.props.onTouchEnd(e),ey(),clearTimeout(ep.current),ep.current=setTimeout(()=>{eS(e)},z)}),A||(eH.onMouseOver=D(eE,eH.onMouseOver),eH.onMouseLeave=D(ek,eH.onMouseLeave),ec||(eV.onMouseOver=eE,eV.onMouseLeave=ek)),R||(eH.onFocus=T(eR,eH.onFocus),eH.onBlur=T(eI,eH.onBlur),ec||(eV.onFocus=eR,eV.onBlur=eI));let ez=(0,r.Z)({},a,{arrow:C,disableInteractive:ec,placement:Y,touch:eu.current,color:eo,variant:J,size:ee}),eU=S(ez),e$=(0,r.Z)({},en,{component:v,slots:et,slotProps:ei}),eK=o.useMemo(()=>[{name:"arrow",enabled:!!el,options:{element:el,padding:6}},{name:"offset",options:{offset:[0,10]}},...Z||[]],[el,Z]),[ej,eG]=(0,_.Z)("root",{additionalProps:(0,r.Z)({id:ev,popperRef:eF,placement:Y,anchorEl:W?{getBoundingClientRect:()=>({top:N.y,left:N.x,right:N.x,bottom:N.y,width:0,height:0})}:es,open:!!es&&eb,disablePortal:j,keepMounted:q,direction:G,modifiers:eK},eV),ref:null,className:eU.root,elementType:E,externalForwardedProps:e$,ownerState:ez}),[eq,eZ]=(0,_.Z)("arrow",{ref:ed,className:eU.arrow,elementType:k,externalForwardedProps:e$,ownerState:ez}),eY=(0,y.jsxs)(ej,(0,r.Z)({},eG,!(null!=(i=a.slots)&&i.root)&&{as:p.Z,slots:{root:v||"div"}},{children:[Q,C?(0,y.jsx)(eq,(0,r.Z)({},eZ)):null]}));return(0,y.jsxs)(o.Fragment,{children:[o.isValidElement(g)&&o.cloneElement(g,eH),j?eY:(0,y.jsx)(b.ZP.Provider,{value:void 0,children:eY})]})});var R=I},82372:function(e,t,i){e=i.nmd(e),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,t,i){"use strict";var n=e("./lib/dom"),r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,d=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,c=e("./clipboard"),h={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,i){var n=e.session.getTextRange();return i?n.replace(/\n\r?([ \t]*\S)/g,"\n"+i+"$1"):n},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return c.getText&&c.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};function g(e){var t=new Date().toLocaleString("en-us",e);return 1==t.length?"0"+t:t}h.SELECTED_TEXT=h.SELECTION;var p=function(){function e(){this.snippetMap={},this.snippetNameMap={},this.variables=h}return e.prototype.getTokenizer=function(){return e.$tokenizer||this.createTokenizer()},e.prototype.createTokenizer=function(){function t(e){return(e=e.substr(1),/^\d+$/.test(e))?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function i(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+i("/")+"+)/",onMatch:function(e,t,i){var n=i[0];return n.fmtString=!0,n.guard=e.slice(1,-1),n.flag="",""},next:"formatString"};return e.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,i){var n=e[1];return"}"==n&&i.length?e=n:-1!="`$\\".indexOf(n)&&(e=n),[e]}},{regex:/}/,onMatch:function(e,t,i){return[i.length?i.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:t},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,i,n){var r=t(e.substr(1));return n.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+i("\\|")+"*\\|",onMatch:function(e,t,i){var n=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\x00"}).split("\x00").map(function(e){return{value:e}});return i[0].choices=n,[n[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,i){return i.length&&i[0].expectElse?(i[0].expectElse=!1,i[0].ifEnd={elseEnd:i[0]},[i[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,i){var n=e[1];return"}"==n&&i.length?e=n:-1!="`$\\".indexOf(n)?e=n:"n"==n?e="\n":"t"==n?e=" ":-1!="ulULE".indexOf(n)&&(e={changeCase:n,local:n>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,i){var n=i.shift();return n&&(n.flag=e.slice(1,-1)),this.next=n&&n.tabstopId?"start":"",[n||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,i){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,i){var n={text:e.slice(2)};return i.unshift(n),[n]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,i){var n=i.shift();return this.next=n&&n.tabstopId?"start":"",[n||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,i){return i[0].formatFunction=e.slice(2,-1),[i.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,i){"+"==e[1]&&(i[0].ifEnd=i[0]),"?"==e[1]&&(i[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),e.$tokenizer},e.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},e.prototype.getVariableValue=function(e,t,i){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var n=this.variables[t];return"function"==typeof n&&(n=this.variables[t](e,t,i)),null==n?"":n},e.prototype.tmStrFormat=function(e,t,i){if(!t.fmt)return e;var n=t.flag||"",r=t.guard;r=new RegExp(r,n.replace(/[^gim]/g,""));var o="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,s=this;return e.replace(r,function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(o,i),n="E",r=0;r=0&&o.splice(s,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},e.prototype.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,i=[],n={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=r.exec(e);){if(t[1])try{n=JSON.parse(t[1]),i.push(n)}catch(e){}if(t[4])n.content=t[4].replace(/^\t/gm,""),i.push(n),n={};else{var o=t[2],s=t[3];if("regex"==o){var a=/\/((?:[^\/\\]|\\.)*)|$/g;n.guard=a.exec(s)[1],n.trigger=a.exec(s)[1],n.endTrigger=a.exec(s)[1],n.endGuard=a.exec(s)[1]}else"snippet"==o?(n.tabTrigger=s.match(/^\S*/)[0],n.name||(n.name=s)):o&&(n[o]=s)}}return i},e.prototype.getSnippetByName=function(e,t){var i,n=this.snippetNameMap;return this.getActiveScopes(t).some(function(t){var r=n[t];return r&&(i=r[e]),!!i},this),i},e}();r.implement(p.prototype,o);var f=function(e,t,i){void 0===i&&(i={});var n=e.getCursorPosition(),r=e.session.getLine(n.row),o=e.session.getTabString(),s=r.match(/^\s*/)[0];n.column1?(_=t[t.length-1].length,m+=t.length-1):_+=e.length,b+=e}else e&&(e.start?e.end={row:m,column:_}:e.start={row:m,column:_})}),{text:b,tabstops:l,tokens:a}},m=function(){function e(e){if(this.index=0,this.ranges=[],this.tabstops=[],e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}return e.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},e.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},e.prototype.onChange=function(e){for(var t="r"==e.action[0],i=this.selectedTabstop||{},n=i.parents||{},r=this.tabstops.slice(),o=0;o2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},e.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))})},e.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},e.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},e}();m.prototype.keyboardHandler=new d,m.prototype.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}});var _=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},b=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};n.importCssString("\n.ace_snippet-marker {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n background: rgba(194, 193, 208, 0.09);\n border: 1px dotted rgba(211, 208, 235, 0.62);\n position: absolute;\n}","snippets.css",!1),t.snippetManager=new p,(function(){this.insertSnippet=function(e,i){return t.snippetManager.insertSnippet(this,e,i)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(e("./editor").Editor.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],function(e,t,i){"use strict";var n=e("../virtual_renderer").VirtualRenderer,r=e("../editor").Editor,o=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),d=e("../config").nls,u=function(e){return"suggest-aria-id:".concat(e)},c=function(e){var t=new n(e);t.$maxLines=4;var i=new r(t);return i.setHighlightActiveLine(!1),i.setShowPrintMargin(!1),i.renderer.setShowGutter(!1),i.renderer.setHighlightGutterLine(!1),i.$mouseHandler.$focusTimeout=0,i.$highlightTagPending=!0,i};l.importCssString("\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin-left: 0.9em;\n}\n.ace_completion-message {\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n display: flex;\n align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n min-width: 0;\n flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n flex: 0 1 auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n flex: 1;\n}\n","autocompletion.css",!1),t.AcePopup=function(e){var t,i=l.createElement("div"),n=new c(i);e&&e.appendChild(i),i.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.renderer.$textLayer.element.setAttribute("role","listbox"),n.renderer.$textLayer.element.setAttribute("aria-label",d("Autocomplete suggestions")),n.renderer.textarea.setAttribute("aria-hidden","true"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),g.start.row=g.end.row=t.row,e.stop()});var h=new o(-1,0,-1,1/0),g=new o(-1,0,-1,1/0);g.id=n.session.addMarker(g,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?h.id&&(n.session.removeMarker(h.id),h.id=null):h.id=n.session.addMarker(h,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",function(e){if(!t){t=e;return}if(t.x!=e.x||t.y!=e.y){(t=e).scrollTop=n.renderer.scrollTop;var i=t.getDocumentPosition().row;h.start.row!=i&&(h.id||n.setRow(i),f(i))}}),n.renderer.on("beforeRender",function(){if(t&&-1!=h.start.row){t.$pos=null;var e=t.getDocumentPosition().row;h.id||n.setRow(e),f(e,!0)}}),n.renderer.on("afterRender",function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow],r=document.activeElement;if(i!==t.selectedNode&&t.selectedNode&&(l.removeCssClass(t.selectedNode,"ace_selected"),r.removeAttribute("aria-activedescendant"),t.selectedNode.removeAttribute("id")),t.selectedNode=i,i){l.addCssClass(i,"ace_selected");var o=u(e);i.id=o,t.element.setAttribute("aria-activedescendant",o),r.setAttribute("aria-activedescendant",o),i.setAttribute("role","option"),i.setAttribute("aria-label",n.getData(e).value),i.setAttribute("aria-setsize",n.data.length),i.setAttribute("aria-posinset",e+1),i.setAttribute("aria-describedby","doc-tooltip")}});var p=function(){f(-1)},f=function(e,t){e!==h.start.row&&(h.start.row=h.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return h.start.row},s.addListener(n.container,"mouseout",p),n.on("hide",p),n.on("changeSelection",p),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var m=n.session.bgTokenizer;return m.$tokenizeRow=function(e){var t=n.data[e],i=[];if(!t)return i;"string"==typeof t&&(t={value:t});var r=t.caption||t.value||t.name;function o(e,n){e&&i.push({type:(t.className||"")+(n||""),value:e})}for(var s=r.toLowerCase(),a=(n.filterText||"").toLowerCase(),l=0,d=0,u=0;u<=a.length;u++)if(u!=d&&(t.matchMask&1<=u?"bottom":"top"),"top"===r?(c.bottom=e.top-this.$borderSize,c.top=c.bottom-u):"bottom"===r&&(c.top=e.top+i+this.$borderSize,c.bottom=c.top+u);var p=c.top>=0&&c.bottom<=a;if(!o&&!p)return!1;p?d.$maxPixelHeight=null:"top"===r?d.$maxPixelHeight=g:d.$maxPixelHeight=h,"top"===r?(s.style.top="",s.style.bottom=a-c.bottom+"px",n.isTopdown=!1):(s.style.top=c.top+"px",s.style.bottom="",n.isTopdown=!0),s.style.display="";var f=e.left;return f+s.offsetWidth>l&&(f=l-s.offsetWidth),s.style.left=f+"px",s.style.right="",n.isOpen||(n.isOpen=!0,this._signal("show"),t=null),n.anchorPos=e,n.anchor=r,!0},n.show=function(e,t,i){this.tryShow(e,t,i?"bottom":void 0,!0)},n.goTo=function(e){var t=this.getRow(),i=this.session.getLength()-1;switch(e){case"up":t=t<=0?i:t-1;break;case"down":t=t>=i?-1:t+1;break;case"start":t=0;break;case"end":t=i}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},t.$singleLineEditor=c,t.getAriaId=u}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],function(e,t,i){"use strict";var n=e("../snippets").snippetManager,r=function(){function e(){this.editor=null}return e.prototype.show=function(e,t,i){if(i=i||"",e&&this.editor&&this.editor!==e&&(this.hide(),this.editor=null),!e||!t)return!1;var r=t.snippet?n.getDisplayTextForSnippet(e,t.snippet):t.value;return!!(r&&r.startsWith(i))&&(this.editor=e,""===(r=r.slice(i.length))?e.removeGhostText():e.setGhostText(r),!0)},e.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},e.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},e.prototype.destroy=function(){this.hide(),this.editor=null},e}();t.AceInline=r}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,i){"use strict";t.parForEach=function(e,t,i){var n=0,r=e.length;0===r&&i();for(var o=0;o=0&&i.test(e[o]);o--)r.push(e[o]);return r.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,i){i=i||n;for(var r=[],o=t;othis.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else var t=this.all;this.filterText=e;var i=null;t=(t=(t=this.filterCompletions(t,this.filterText)).sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)})).filter(function(e){var t=e.snippet||e.caption||e.value;return t!==i&&(i=t,!0)}),this.filtered=t},e.prototype.filterCompletions=function(e,t){var i=[],n=t.toUpperCase(),r=t.toLowerCase();e:for(var o,s=0;o=e[s];s++){var a,l,d=!this.ignoreCaption&&o.caption||o.value||o.snippet;if(d){var u=-1,c=0,h=0;if(this.exactMatch){if(t!==d.substr(0,t.length))continue}else{var g=d.toLowerCase().indexOf(r);if(g>-1)h=g;else for(var p=0;p=0&&(m<0||f0&&(-1===u&&(h+=10),h+=l,c|=1<",a.escapeHTML(e.caption),"","
    ",a.escapeHTML(c(e.snippet))].join(""))},id:"snippetCompleter"},g=[h,d,u];t.setCompleters=function(e){g.length=0,e&&g.push.apply(g,e)},t.addCompleter=function(e){g.push(e)},t.textCompleter=d,t.keyWordCompleter=u,t.snippetCompleter=h;var p={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},f=function(e,t){m(t.session.$mode)},m=function(e){"string"==typeof e&&(e=s.$modes[e]),e&&(r.files||(r.files={}),_(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(m))},_=function(e,t){t&&e&&!r.files[e]&&(r.files[e]={},s.loadModule(t,function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(e){m("ace/mode/"+e)})))}))},b=function(e){var t=e.editor,i=t.completer&&t.completer.activated;if("backspace"===e.command.name)i&&!l.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name&&!i){n=e;var r=e.editor.$liveAutocompletionDelay;r?v.delay(r):C(e)}},v=a.delayedCall(function(){C(n)},0),C=function(e){var t=e.editor,i=l.getCompletionPrefix(t),n=l.triggerAutocomplete(t);if((i||n)&&i.length>=t.$liveAutocompletionThreshold){var r=o.for(t);r.autoShown=!0,r.showPopup(t)}},y=e("../editor").Editor;e("../config").defineOptions(y.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:g),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:g),this.commands.on("afterExec",b)):this.commands.off("afterExec",b)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(e){e?(this.commands.addCommand(p),this.on("changeMode",f),f(null,this)):(this.commands.removeCommand(p),this.off("changeMode",f))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(t){e&&(e.exports=t)})},7527:function(e,t,i){e=i.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,i){"use strict";var n=e("./lib/oop");e("./lib/lang");var r=e("./lib/event_emitter").EventEmitter,o=e("./editor").Editor,s=e("./virtual_renderer").VirtualRenderer,a=e("./edit_session").EditSession,l=function(e,t,i){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(i||1),this.$cEditor=this.$editors[0],this.on("focus",(function(e){this.$cEditor=e}).bind(this))};(function(){n.implement(this,r),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new o(new s(e,this.$theme));return t.on("focus",(function(){this._emit("focus",t)}).bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),i=e.getUndoManager();return t.setUndoManager(i),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var i;return i=null==t?this.$cEditor:this.$editors[t],this.$editors.some(function(t){return t.session===e})&&(e=this.$cloneSession(e)),i.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,i=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var n=t/this.$splits,r=0;rd)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(n==d)break}a=t}}return new r(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,i){for(var n=t.search(/\s*$/),o=e.getLength(),s=i,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++is)return new r(s,n,u,t.length)}}).call(s.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,i){"use strict";var n=e("../lib/oop"),r=e("./text").Mode,o=e("./json_highlight_rules").JsonHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./folding/cstyle").FoldMode,l=e("../worker/worker_client").WorkerClient,d=function(){this.HighlightRules=o,this.$outdent=new s,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a};n.inherits(d,r),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,i){var n=this.$getIndent(t);return"start"==e&&t.match(/^.*[\{\(\[]\s*$/)&&(n+=i),n},this.checkOutdent=function(e,t,i){return this.$outdent.checkOutdent(t,i)},this.autoOutdent=function(e,t,i){this.$outdent.autoOutdent(t,i)},this.createWorker=function(e){var t=new l(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}).call(d.prototype),t.Mode=d}),ace.require(["ace/mode/json"],function(t){e&&(e.exports=t)})},1777:function(e,t,i){"use strict";i.d(t,{default:function(){return ea}});var n,r=i(8683),o=i.n(r),s=i(86006),a=i(79746),l=i(67518),d=i(40399),u=i(56222),c=i(40431),h=i(88684),g=i(65877),p=i(965);function f(e){return!!(e.addonBefore||e.addonAfter)}function m(e){return!!(e.prefix||e.suffix||e.allowClear)}function _(e,t,i,n){if(i){var r=t;if("click"===t.type){var o=e.cloneNode(!0);r=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value="",i(r);return}if(void 0!==n){r=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=n,i(r);return}i(r)}}function b(e){return null==e?"":String(e)}var v=function(e){var t=e.inputElement,i=e.prefixCls,n=e.prefix,r=e.suffix,a=e.addonBefore,l=e.addonAfter,d=e.className,u=e.style,_=e.disabled,b=e.readOnly,v=e.focused,C=e.triggerFocus,y=e.allowClear,w=e.value,S=e.handleReset,E=e.hidden,k=e.classes,L=e.classNames,x=e.dataAttrs,N=e.styles,D=e.components,T=(null==D?void 0:D.affixWrapper)||"span",I=(null==D?void 0:D.groupWrapper)||"span",R=(null==D?void 0:D.wrapper)||"span",A=(null==D?void 0:D.groupAddon)||"span",O=(0,s.useRef)(null),M=(0,s.cloneElement)(t,{value:w,hidden:E,className:o()(null===(P=t.props)||void 0===P?void 0:P.className,!m(e)&&!f(e)&&d)||null,style:(0,h.Z)((0,h.Z)({},null===(F=t.props)||void 0===F?void 0:F.style),m(e)||f(e)?{}:u)});if(m(e)){var P,F,B,W="".concat(i,"-affix-wrapper"),H=o()(W,(B={},(0,g.Z)(B,"".concat(W,"-disabled"),_),(0,g.Z)(B,"".concat(W,"-focused"),v),(0,g.Z)(B,"".concat(W,"-readonly"),b),(0,g.Z)(B,"".concat(W,"-input-with-clear-btn"),r&&y&&w),B),!f(e)&&d,null==k?void 0:k.affixWrapper,null==L?void 0:L.affixWrapper),V=(r||y)&&s.createElement("span",{className:o()("".concat(i,"-suffix"),null==L?void 0:L.suffix),style:null==N?void 0:N.suffix},function(){if(!y)return null;var e,t=!_&&!b&&w,n="".concat(i,"-clear-icon"),a="object"===(0,p.Z)(y)&&null!=y&&y.clearIcon?y.clearIcon:"✖";return s.createElement("span",{onClick:S,onMouseDown:function(e){return e.preventDefault()},className:o()(n,(e={},(0,g.Z)(e,"".concat(n,"-hidden"),!t),(0,g.Z)(e,"".concat(n,"-has-suffix"),!!r),e)),role:"button",tabIndex:-1},a)}(),r);M=s.createElement(T,(0,c.Z)({className:H,style:(0,h.Z)((0,h.Z)({},f(e)?void 0:u),null==N?void 0:N.affixWrapper),hidden:!f(e)&&E,onClick:function(e){var t;null!==(t=O.current)&&void 0!==t&&t.contains(e.target)&&(null==C||C())}},null==x?void 0:x.affixWrapper,{ref:O}),n&&s.createElement("span",{className:o()("".concat(i,"-prefix"),null==L?void 0:L.prefix),style:null==N?void 0:N.prefix},n),(0,s.cloneElement)(t,{value:w,hidden:null}),V)}if(f(e)){var z="".concat(i,"-group"),U="".concat(z,"-addon"),$=o()("".concat(i,"-wrapper"),z,null==k?void 0:k.wrapper),K=o()("".concat(i,"-group-wrapper"),d,null==k?void 0:k.group);return s.createElement(I,{className:K,style:u,hidden:E},s.createElement(R,{className:$},a&&s.createElement(A,{className:U},a),(0,s.cloneElement)(M,{hidden:null}),l&&s.createElement(A,{className:U},l)))}return M},C=i(90151),y=i(60456),w=i(89301),S=i(63940),E=i(73234),k=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],L=(0,s.forwardRef)(function(e,t){var i,n=e.autoComplete,r=e.onChange,a=e.onFocus,l=e.onBlur,d=e.onPressEnter,u=e.onKeyDown,f=e.prefixCls,m=void 0===f?"rc-input":f,L=e.disabled,x=e.htmlSize,N=e.className,D=e.maxLength,T=e.suffix,I=e.showCount,R=e.type,A=e.classes,O=e.classNames,M=e.styles,P=(0,w.Z)(e,k),F=(0,S.Z)(e.defaultValue,{value:e.value}),B=(0,y.Z)(F,2),W=B[0],H=B[1],V=(0,s.useState)(!1),z=(0,y.Z)(V,2),U=z[0],$=z[1],K=(0,s.useRef)(null),j=function(e){K.current&&function(e,t){if(e){e.focus(t);var i=(t||{}).cursor;if(i){var n=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}(K.current,e)};return(0,s.useImperativeHandle)(t,function(){return{focus:j,blur:function(){var e;null===(e=K.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,i){var n;null===(n=K.current)||void 0===n||n.setSelectionRange(e,t,i)},select:function(){var e;null===(e=K.current)||void 0===e||e.select()},input:K.current}}),(0,s.useEffect)(function(){$(function(e){return(!e||!L)&&e})},[L]),s.createElement(v,(0,c.Z)({},P,{prefixCls:m,className:N,inputElement:(i=(0,E.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),s.createElement("input",(0,c.Z)({autoComplete:n},i,{onChange:function(t){void 0===e.value&&H(t.target.value),K.current&&_(K.current,t,r)},onFocus:function(e){$(!0),null==a||a(e)},onBlur:function(e){$(!1),null==l||l(e)},onKeyDown:function(e){d&&"Enter"===e.key&&d(e),null==u||u(e)},className:o()(m,(0,g.Z)({},"".concat(m,"-disabled"),L),null==O?void 0:O.input),style:null==M?void 0:M.input,ref:K,size:x,type:void 0===R?"text":R}))),handleReset:function(e){H(""),j(),K.current&&_(K.current,e,r)},value:b(W),focused:U,triggerFocus:j,suffix:function(){var e=Number(D)>0;if(T||I){var t=b(W),i=(0,C.Z)(t).length,n="object"===(0,p.Z)(I)?I.formatter({value:t,count:i,maxLength:D}):"".concat(i).concat(e?" / ".concat(D):"");return s.createElement(s.Fragment,null,!!I&&s.createElement("span",{className:o()("".concat(m,"-show-count-suffix"),(0,g.Z)({},"".concat(m,"-show-count-has-suffix"),!!T),null==O?void 0:O.count),style:(0,h.Z)({},null==M?void 0:M.count)},n),T)}return null}(),disabled:L,classes:A,classNames:O,styles:M}))}),x=i(92510),N=i(24338),D=i(20538),T=i(30069),I=i(12381);function R(e,t){let i=(0,s.useRef)([]),n=()=>{i.current.push(setTimeout(()=>{var t,i,n,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(i=e.current)||void 0===i?void 0:i.input.getAttribute("type"))==="password"&&(null===(n=e.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))}))};return(0,s.useEffect)(()=>(t&&n(),()=>i.current.forEach(e=>{e&&clearTimeout(e)})),[]),n}var A=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let O=(0,s.forwardRef)((e,t)=>{var i;let n;let{prefixCls:r,bordered:c=!0,status:h,size:g,disabled:p,onBlur:f,onFocus:m,suffix:_,allowClear:b,addonAfter:v,addonBefore:C,className:y,style:w,styles:S,rootClassName:E,onChange:k,classNames:O}=e,M=A(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:P,direction:F,input:B}=s.useContext(a.E_),W=P("input",r),H=(0,s.useRef)(null),[V,z]=(0,d.ZP)(W),{compactSize:U,compactItemClassnames:$}=(0,I.ri)(W,F),K=(0,T.Z)(e=>{var t;return null!==(t=null!=g?g:U)&&void 0!==t?t:e}),j=s.useContext(D.Z),G=null!=p?p:j,{status:q,hasFeedback:Z,feedbackIcon:Y}=(0,s.useContext)(l.aM),Q=(0,N.F)(q,h),X=!!(e.prefix||e.suffix||e.allowClear)||!!Z,J=(0,s.useRef)(X);(0,s.useEffect)(()=>{X&&J.current,J.current=X},[X]);let ee=R(H,!0),et=(Z||_)&&s.createElement(s.Fragment,null,_,Z&&Y);return"object"==typeof b&&(null==b?void 0:b.clearIcon)?n=b:b&&(n={clearIcon:s.createElement(u.Z,null)}),V(s.createElement(L,Object.assign({ref:(0,x.sQ)(t,H),prefixCls:W,autoComplete:null==B?void 0:B.autoComplete},M,{disabled:G,onBlur:e=>{ee(),null==f||f(e)},onFocus:e=>{ee(),null==m||m(e)},style:Object.assign(Object.assign({},null==B?void 0:B.style),w),styles:Object.assign(Object.assign({},null==B?void 0:B.styles),S),suffix:et,allowClear:n,className:o()(y,E,$,null==B?void 0:B.className),onChange:e=>{ee(),null==k||k(e)},addonAfter:v&&s.createElement(I.BR,null,s.createElement(l.Ux,{override:!0,status:!0},v)),addonBefore:C&&s.createElement(I.BR,null,s.createElement(l.Ux,{override:!0,status:!0},C)),classNames:Object.assign(Object.assign(Object.assign({},O),null==B?void 0:B.classNames),{input:o()({[`${W}-sm`]:"small"===K,[`${W}-lg`]:"large"===K,[`${W}-rtl`]:"rtl"===F,[`${W}-borderless`]:!c},!X&&(0,N.Z)(W,Q),null==O?void 0:O.input,null===(i=null==B?void 0:B.classNames)||void 0===i?void 0:i.input,z)}),classes:{affixWrapper:o()({[`${W}-affix-wrapper-sm`]:"small"===K,[`${W}-affix-wrapper-lg`]:"large"===K,[`${W}-affix-wrapper-rtl`]:"rtl"===F,[`${W}-affix-wrapper-borderless`]:!c},(0,N.Z)(`${W}-affix-wrapper`,Q,Z),z),wrapper:o()({[`${W}-group-rtl`]:"rtl"===F},z),group:o()({[`${W}-group-wrapper-sm`]:"small"===K,[`${W}-group-wrapper-lg`]:"large"===K,[`${W}-group-wrapper-rtl`]:"rtl"===F,[`${W}-group-wrapper-disabled`]:G},(0,N.Z)(`${W}-group-wrapper`,Q,Z),z)}})))});var M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},P=i(1240),F=s.forwardRef(function(e,t){return s.createElement(P.Z,(0,c.Z)({},e,{ref:t,icon:M}))}),B=i(31515),W=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let H=e=>e?s.createElement(B.Z,null):s.createElement(F,null),V={click:"onClick",hover:"onMouseOver"},z=s.forwardRef((e,t)=>{let{visibilityToggle:i=!0}=e,n="object"==typeof i&&void 0!==i.visible,[r,l]=(0,s.useState)(()=>!!n&&i.visible),d=(0,s.useRef)(null);s.useEffect(()=>{n&&l(i.visible)},[n,i]);let u=R(d),c=()=>{let{disabled:t}=e;t||(r&&u(),l(e=>{var t;let n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n}))},{className:h,prefixCls:g,inputPrefixCls:p,size:f}=e,m=W(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=s.useContext(a.E_),b=_("input",p),v=_("input-password",g),C=i&&(t=>{let{action:i="click",iconRender:n=H}=e,o=V[i]||"",a=n(r),l={[o]:c,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return s.cloneElement(s.isValidElement(a)?a:s.createElement("span",null,a),l)})(v),y=o()(v,h,{[`${v}-${f}`]:!!f}),w=Object.assign(Object.assign({},(0,E.Z)(m,["suffix","iconRender","visibilityToggle"])),{type:r?"text":"password",className:y,prefixCls:b,suffix:C});return f&&(w.size=f),s.createElement(O,Object.assign({ref:(0,x.sQ)(t,d)},w))});var U=i(63362),$=i(52593),K=i(50946),j=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let G=s.forwardRef((e,t)=>{let i;let{prefixCls:n,inputPrefixCls:r,className:l,size:d,suffix:u,enterButton:c=!1,addonAfter:h,loading:g,disabled:p,onSearch:f,onChange:m,onCompositionStart:_,onCompositionEnd:b}=e,v=j(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:y}=s.useContext(a.E_),w=s.useRef(!1),S=C("input-search",n),E=C("input",r),{compactSize:k}=(0,I.ri)(S,y),L=(0,T.Z)(e=>{var t;return null!==(t=null!=d?d:k)&&void 0!==t?t:e}),N=s.useRef(null),D=e=>{var t;document.activeElement===(null===(t=N.current)||void 0===t?void 0:t.input)&&e.preventDefault()},R=e=>{var t,i;f&&f(null===(i=null===(t=N.current)||void 0===t?void 0:t.input)||void 0===i?void 0:i.value,e)},A="boolean"==typeof c?s.createElement(U.Z,null):null,M=`${S}-button`,P=c||{},F=P.type&&!0===P.type.__ANT_BUTTON;i=F||"button"===P.type?(0,$.Tm)(P,Object.assign({onMouseDown:D,onClick:e=>{var t,i;null===(i=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===i||i.call(t,e),R(e)},key:"enterButton"},F?{className:M,size:L}:{})):s.createElement(K.ZP,{className:M,type:c?"primary":void 0,size:L,disabled:p,key:"enterButton",onMouseDown:D,onClick:R,loading:g,icon:A},c),h&&(i=[i,(0,$.Tm)(h,{key:"addonAfter"})]);let B=o()(S,{[`${S}-rtl`]:"rtl"===y,[`${S}-${L}`]:!!L,[`${S}-with-button`]:!!c},l);return s.createElement(O,Object.assign({ref:(0,x.sQ)(N,t),onPressEnter:e=>{w.current||g||R(e)}},v,{size:L,onCompositionStart:e=>{w.current=!0,null==_||_(e)},onCompositionEnd:e=>{w.current=!1,null==b||b(e)},prefixCls:E,addonAfter:i,suffix:u,onChange:e=>{e&&e.target&&"click"===e.type&&f&&f(e.target.value,e),m&&m(e)},className:B,disabled:p}))});var q=i(29333),Z=i(38358),Y=i(66643),Q=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],X={},J=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ee=s.forwardRef(function(e,t){var i=e.prefixCls,r=(e.onPressEnter,e.defaultValue),a=e.value,l=e.autoSize,d=e.onResize,u=e.className,f=e.style,m=e.disabled,_=e.onChange,b=(e.onInternalAutoSize,(0,w.Z)(e,J)),v=(0,S.Z)(r,{value:a,postState:function(e){return null!=e?e:""}}),C=(0,y.Z)(v,2),E=C[0],k=C[1],L=s.useRef();s.useImperativeHandle(t,function(){return{textArea:L.current}});var x=s.useMemo(function(){return l&&"object"===(0,p.Z)(l)?[l.minRows,l.maxRows]:[]},[l]),N=(0,y.Z)(x,2),D=N[0],T=N[1],I=!!l,R=function(){try{if(document.activeElement===L.current){var e=L.current,t=e.selectionStart,i=e.selectionEnd,n=e.scrollTop;L.current.setSelectionRange(t,i),L.current.scrollTop=n}}catch(e){}},A=s.useState(2),O=(0,y.Z)(A,2),M=O[0],P=O[1],F=s.useState(),B=(0,y.Z)(F,2),W=B[0],H=B[1],V=function(){P(0)};(0,Z.Z)(function(){I&&V()},[a,D,T,I]),(0,Z.Z)(function(){if(0===M)P(1);else if(1===M){var e=function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n||((n=document.createElement("textarea")).setAttribute("tab-index","-1"),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),e.getAttribute("wrap")?n.setAttribute("wrap",e.getAttribute("wrap")):n.removeAttribute("wrap");var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&X[i])return X[i];var n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:Q.map(function(e){return"".concat(e,":").concat(n.getPropertyValue(e))}).join(";"),paddingSize:o,borderSize:s,boxSizing:r};return t&&i&&(X[i]=a),a}(e,i),a=s.paddingSize,l=s.borderSize,d=s.boxSizing,u=s.sizingStyle;n.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),n.value=e.value||e.placeholder||"";var c=void 0,h=void 0,g=n.scrollHeight;if("border-box"===d?g+=l:"content-box"===d&&(g-=a),null!==r||null!==o){n.value=" ";var p=n.scrollHeight-a;null!==r&&(c=p*r,"border-box"===d&&(c=c+a+l),g=Math.max(c,g)),null!==o&&(h=p*o,"border-box"===d&&(h=h+a+l),t=g>h?"":"hidden",g=Math.min(h,g))}var f={height:g,overflowY:t,resize:"none"};return c&&(f.minHeight=c),h&&(f.maxHeight=h),f}(L.current,!1,D,T);P(2),H(e)}else R()},[M]);var z=s.useRef(),U=function(){Y.Z.cancel(z.current)};s.useEffect(function(){return U},[]);var $=I?W:null,K=(0,h.Z)((0,h.Z)({},f),$);return(0===M||1===M)&&(K.overflowY="hidden",K.overflowX="hidden"),s.createElement(q.Z,{onResize:function(e){2===M&&(null==d||d(e),l&&(U(),z.current=(0,Y.Z)(function(){V()})))},disabled:!(l||d)},s.createElement("textarea",(0,c.Z)({},b,{ref:L,style:K,className:o()(i,u,(0,g.Z)({},"".concat(i,"-disabled"),m)),disabled:m,value:E,onChange:function(e){k(e.target.value),null==_||_(e)}})))}),et=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ei(e,t){return(0,C.Z)(e||"").slice(0,t).join("")}function en(e,t,i,n){var r=i;return e?r=ei(i,n):(0,C.Z)(t||"").lengthn&&(r=t),r}var er=s.forwardRef(function(e,t){var i,n,r=e.defaultValue,a=e.value,l=e.onFocus,d=e.onBlur,u=e.onChange,f=e.allowClear,m=e.maxLength,E=e.onCompositionStart,k=e.onCompositionEnd,L=e.suffix,x=e.prefixCls,N=void 0===x?"rc-textarea":x,D=e.classes,T=e.showCount,I=e.className,R=e.style,A=e.disabled,O=e.hidden,M=e.classNames,P=e.styles,F=e.onResize,B=(0,w.Z)(e,et),W=(0,S.Z)(r,{value:a,defaultValue:r}),H=(0,y.Z)(W,2),V=H[0],z=H[1],U=(0,s.useRef)(null),$=s.useState(!1),K=(0,y.Z)($,2),j=K[0],G=K[1],q=s.useState(!1),Z=(0,y.Z)(q,2),Y=Z[0],Q=Z[1],X=s.useRef(),J=s.useRef(0),er=s.useState(null),eo=(0,y.Z)(er,2),es=eo[0],ea=eo[1],el=function(){var e;null===(e=U.current)||void 0===e||e.textArea.focus()};(0,s.useImperativeHandle)(t,function(){return{resizableTextArea:U.current,focus:el,blur:function(){var e;null===(e=U.current)||void 0===e||e.textArea.blur()}}}),(0,s.useEffect)(function(){G(function(e){return!A&&e})},[A]);var ed=Number(m)>0,eu=b(V);!Y&&ed&&null==a&&(eu=ei(eu,m));var ec=L;if(T){var eh=(0,C.Z)(eu).length;n="object"===(0,p.Z)(T)?T.formatter({value:eu,count:eh,maxLength:m}):"".concat(eh).concat(ed?" / ".concat(m):""),ec=s.createElement(s.Fragment,null,ec,s.createElement("span",{className:o()("".concat(N,"-data-count"),null==M?void 0:M.count),style:null==P?void 0:P.count},n))}var eg=!B.autoSize&&!T&&!f;return s.createElement(v,{value:eu,allowClear:f,handleReset:function(e){var t;z(""),el(),_(null===(t=U.current)||void 0===t?void 0:t.textArea,e,u)},suffix:ec,prefixCls:N,classes:{affixWrapper:o()(null==D?void 0:D.affixWrapper,(i={},(0,g.Z)(i,"".concat(N,"-show-count"),T),(0,g.Z)(i,"".concat(N,"-textarea-allow-clear"),f),i))},disabled:A,focused:j,className:I,style:(0,h.Z)((0,h.Z)({},R),es&&!eg?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof n?n:void 0}},hidden:O,inputElement:s.createElement(ee,(0,c.Z)({},B,{onKeyDown:function(e){var t=B.onPressEnter,i=B.onKeyDown;"Enter"===e.key&&t&&t(e),null==i||i(e)},onChange:function(e){var t=e.target.value;!Y&&ed&&(t=en(e.target.selectionStart>=m+1||e.target.selectionStart===t.length||!e.target.selectionStart,V,t,m)),z(t),_(e.currentTarget,e,u,t)},onFocus:function(e){G(!0),null==l||l(e)},onBlur:function(e){G(!1),null==d||d(e)},onCompositionStart:function(e){Q(!0),X.current=V,J.current=e.currentTarget.selectionStart,null==E||E(e)},onCompositionEnd:function(e){Q(!1);var t,i=e.currentTarget.value;ed&&(i=en(J.current>=m+1||J.current===(null===(t=X.current)||void 0===t?void 0:t.length),X.current,i,m)),i!==V&&(z(i),_(e.currentTarget,e,u,i)),null==k||k(e)},className:null==M?void 0:M.textarea,style:(0,h.Z)((0,h.Z)({},null==P?void 0:P.textarea),{},{resize:null==R?void 0:R.resize}),disabled:A,prefixCls:N,onResize:function(e){var t;null==F||F(e),null!==(t=U.current)&&void 0!==t&&t.textArea.style.height&&ea(!0)},ref:U}))})}),eo=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let es=(0,s.forwardRef)((e,t)=>{let i;let{prefixCls:n,bordered:r=!0,size:c,disabled:h,status:g,allowClear:p,showCount:f,classNames:m}=e,_=eo(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:b,direction:v}=s.useContext(a.E_),C=(0,T.Z)(c),y=s.useContext(D.Z),{status:w,hasFeedback:S,feedbackIcon:E}=s.useContext(l.aM),k=(0,N.F)(w,g),L=s.useRef(null);s.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=L.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,i;!function(e,t){if(!e)return;e.focus(t);let{cursor:i}=t||{};if(i){let t=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(i=null===(t=L.current)||void 0===t?void 0:t.resizableTextArea)||void 0===i?void 0:i.textArea,e)},blur:()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.blur()}}});let x=b("input",n);"object"==typeof p&&(null==p?void 0:p.clearIcon)?i=p:p&&(i={clearIcon:s.createElement(u.Z,null)});let[I,R]=(0,d.ZP)(x);return I(s.createElement(er,Object.assign({},_,{disabled:null!=h?h:y,allowClear:i,classes:{affixWrapper:o()(`${x}-textarea-affix-wrapper`,{[`${x}-affix-wrapper-rtl`]:"rtl"===v,[`${x}-affix-wrapper-borderless`]:!r,[`${x}-affix-wrapper-sm`]:"small"===C,[`${x}-affix-wrapper-lg`]:"large"===C,[`${x}-textarea-show-count`]:f},(0,N.Z)(`${x}-affix-wrapper`,k),R)},classNames:Object.assign(Object.assign({},m),{textarea:o()({[`${x}-borderless`]:!r,[`${x}-sm`]:"small"===C,[`${x}-lg`]:"large"===C},(0,N.Z)(x,k),R,null==m?void 0:m.textarea)}),prefixCls:x,suffix:S&&s.createElement("span",{className:`${x}-textarea-suffix`},E),showCount:f,ref:L})))});O.Group=e=>{let{getPrefixCls:t,direction:i}=(0,s.useContext)(a.E_),{prefixCls:n,className:r}=e,u=t("input-group",n),c=t("input"),[h,g]=(0,d.ZP)(c),p=o()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===i},g,r),f=(0,s.useContext)(l.aM),m=(0,s.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return h(s.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(l.aM.Provider,{value:m},e.children)))},O.Search=G,O.TextArea=es,O.Password=z;var ea=O},57406:function(e,t){"use strict";t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},57746:function(e,t,i){"use strict";i.d(t,{Z:function(){return tW}});var n=i(31533),r=i(40431),o=i(86006),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=i(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:s}))}),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},u=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:d}))}),c=i(8683),h=i.n(c),g=i(65877),p=i(88684),f=i(60456),m=i(965),_=i(89301),b=i(98861),v=i(63940),C=i(78641),y=(0,o.createContext)(null),w=o.forwardRef(function(e,t){var i=e.prefixCls,n=e.className,r=e.style,s=e.id,a=e.active,l=e.tabKey,d=e.children;return o.createElement("div",{id:s&&"".concat(s,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(l),"aria-hidden":!a,style:r,className:h()(i,a&&"".concat(i,"-active"),n),ref:t},d)}),S=["key","forceRender","style","className"];function E(e){var t=e.id,i=e.activeKey,n=e.animated,s=e.tabPosition,a=e.destroyInactiveTabPane,l=o.useContext(y),d=l.prefixCls,u=l.tabs,c=n.tabPane,f="".concat(d,"-tabpane");return o.createElement("div",{className:h()("".concat(d,"-content-holder"))},o.createElement("div",{className:h()("".concat(d,"-content"),"".concat(d,"-content-").concat(s),(0,g.Z)({},"".concat(d,"-content-animated"),c))},u.map(function(e){var s=e.key,l=e.forceRender,d=e.style,u=e.className,g=(0,_.Z)(e,S),m=s===i;return o.createElement(C.ZP,(0,r.Z)({key:s,visible:m,forceRender:l,removeOnLeave:!!a,leavedClassName:"".concat(f,"-hidden")},n.tabPaneMotion),function(e,i){var n=e.style,a=e.className;return o.createElement(w,(0,r.Z)({},g,{prefixCls:f,id:t,tabKey:s,animated:c,active:m,style:(0,p.Z)((0,p.Z)({},d),n),className:h()(u,a),ref:i}))})})))}var k=i(90151),L=i(29333),x=i(23254),N=i(66643),D=i(92510),T={width:0,height:0,left:0,top:0};function I(e,t){var i=o.useRef(e),n=o.useState({}),r=(0,f.Z)(n,2)[1];return[i.current,function(e){var n="function"==typeof e?e(i.current):e;n!==i.current&&t(n,i.current),i.current=n,r({})}]}var R=i(38358);function A(e){var t=(0,o.useState)(0),i=(0,f.Z)(t,2),n=i[0],r=i[1],s=(0,o.useRef)(0),a=(0,o.useRef)();return a.current=e,(0,R.o)(function(){var e;null===(e=a.current)||void 0===e||e.call(a)},[n]),function(){s.current===n&&(s.current+=1,r(s.current))}}var O={width:0,height:0,left:0,top:0,right:0};function M(e){var t;return e instanceof Map?(t={},e.forEach(function(e,i){t[i]=e})):t=e,JSON.stringify(t)}function P(e){return String(e).replace(/"/g,"TABS_DQ")}function F(e,t,i,n){return!!i&&!n&&!1!==e&&(void 0!==e||!1!==t&&null!==t)}var B=o.forwardRef(function(e,t){var i=e.prefixCls,n=e.editable,r=e.locale,s=e.style;return n&&!1!==n.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(i,"-nav-add"),style:s,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){n.onEdit("add",{event:e})}},n.addIcon||"+"):null}),W=o.forwardRef(function(e,t){var i,n=e.position,r=e.prefixCls,s=e.extra;if(!s)return null;var a={};return"object"!==(0,m.Z)(s)||o.isValidElement(s)?a.right=s:a=s,"right"===n&&(i=a.right),"left"===n&&(i=a.left),i?o.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),H=i(90214),V=i(48580),z=V.Z.ESC,U=V.Z.TAB,$=(0,o.forwardRef)(function(e,t){var i=e.overlay,n=e.arrow,r=e.prefixCls,s=(0,o.useMemo)(function(){return"function"==typeof i?i():i},[i]),a=(0,D.sQ)(t,null==s?void 0:s.ref);return o.createElement(o.Fragment,null,n&&o.createElement("div",{className:"".concat(r,"-arrow")}),o.cloneElement(s,{ref:(0,D.Yr)(s)?a:void 0}))}),K={adjustX:1,adjustY:1},j=[0,0],G={topLeft:{points:["bl","tl"],overflow:K,offset:[0,-4],targetOffset:j},top:{points:["bc","tc"],overflow:K,offset:[0,-4],targetOffset:j},topRight:{points:["br","tr"],overflow:K,offset:[0,-4],targetOffset:j},bottomLeft:{points:["tl","bl"],overflow:K,offset:[0,4],targetOffset:j},bottom:{points:["tc","bc"],overflow:K,offset:[0,4],targetOffset:j},bottomRight:{points:["tr","br"],overflow:K,offset:[0,4],targetOffset:j}},q=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],Z=o.forwardRef(function(e,t){var i,n,s,a,l,d,u,c,p,m,b,v,C,y,w=e.arrow,S=void 0!==w&&w,E=e.prefixCls,k=void 0===E?"rc-dropdown":E,L=e.transitionName,x=e.animation,T=e.align,I=e.placement,R=e.placements,A=e.getPopupContainer,O=e.showAction,M=e.hideAction,P=e.overlayClassName,F=e.overlayStyle,B=e.visible,W=e.trigger,V=void 0===W?["hover"]:W,K=e.autoFocus,j=e.overlay,Z=e.children,Y=e.onVisibleChange,Q=(0,_.Z)(e,q),X=o.useState(),J=(0,f.Z)(X,2),ee=J[0],et=J[1],ei="visible"in e?B:ee,en=o.useRef(null),er=o.useRef(null),eo=o.useRef(null);o.useImperativeHandle(t,function(){return en.current});var es=function(e){et(e),null==Y||Y(e)};n=(i={visible:ei,triggerRef:eo,onVisibleChange:es,autoFocus:K,overlayRef:er}).visible,s=i.triggerRef,a=i.onVisibleChange,l=i.autoFocus,d=i.overlayRef,u=o.useRef(!1),c=function(){if(n){var e,t;null===(e=s.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==a||a(!1)}},p=function(){var e;return null!==(e=d.current)&&void 0!==e&&!!e.focus&&(d.current.focus(),u.current=!0,!0)},m=function(e){switch(e.keyCode){case z:c();break;case U:var t=!1;u.current||(t=p()),t?e.preventDefault():c()}},o.useEffect(function(){return n?(window.addEventListener("keydown",m),l&&(0,N.Z)(p,3),function(){window.removeEventListener("keydown",m),u.current=!1}):function(){u.current=!1}},[n]);var ea=function(){return o.createElement($,{ref:er,overlay:j,prefixCls:k,arrow:S})},el=o.cloneElement(Z,{className:h()(null===(y=Z.props)||void 0===y?void 0:y.className,ei&&(void 0!==(b=e.openClassName)?b:"".concat(k,"-open"))),ref:(0,D.Yr)(Z)?(0,D.sQ)(eo,Z.ref):void 0}),ed=M;return ed||-1===V.indexOf("contextMenu")||(ed=["click"]),o.createElement(H.Z,(0,r.Z)({builtinPlacements:void 0===R?G:R},Q,{prefixCls:k,ref:en,popupClassName:h()(P,(0,g.Z)({},"".concat(k,"-show-arrow"),S)),popupStyle:F,action:V,showAction:O,hideAction:ed,popupPlacement:void 0===I?"bottomLeft":I,popupAlign:T,popupTransitionName:L,popupAnimation:x,popupVisible:ei,stretch:(v=e.minOverlayWidthMatchTrigger,C=e.alignPoint,"minOverlayWidthMatchTrigger"in e?v:!C)?"minWidth":"",popup:"function"==typeof j?ea:ea(),onPopupVisibleChange:es,onPopupClick:function(t){var i=e.onOverlayClick;et(!1),i&&i(t)},getPopupContainer:A}),el)}),Y=i(35960),Q=i(5004),X=i(8431),J=i(81027),ee=o.createContext(null);function et(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function ei(e){return et(o.useContext(ee),e)}var en=i(55567),er=["children","locked"],eo=o.createContext(null);function es(e){var t=e.children,i=e.locked,n=(0,_.Z)(e,er),r=o.useContext(eo),s=(0,en.Z)(function(){var e;return e=(0,p.Z)({},r),Object.keys(n).forEach(function(t){var i=n[t];void 0!==i&&(e[t]=i)}),e},[r,n],function(e,t){return!i&&(e[0]!==t[0]||!(0,J.Z)(e[1],t[1],!0))});return o.createElement(eo.Provider,{value:s},t)}var ea=o.createContext(null);function el(){return o.useContext(ea)}var ed=o.createContext([]);function eu(e){var t=o.useContext(ed);return o.useMemo(function(){return void 0!==e?[].concat((0,k.Z)(t),[e]):t},[t,e])}var ec=o.createContext(null),eh=o.createContext({}),eg=i(98498);function ep(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,eg.Z)(e)){var i=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(i)||e.isContentEditable||"a"===i&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),o=Number(r),s=null;return r&&!Number.isNaN(o)?s=o:n&&null===s&&(s=0),n&&e.disabled&&(s=null),null!==s&&(s>=0||t&&s<0)}return!1}var ef=V.Z.LEFT,em=V.Z.RIGHT,e_=V.Z.UP,eb=V.Z.DOWN,ev=V.Z.ENTER,eC=V.Z.ESC,ey=V.Z.HOME,ew=V.Z.END,eS=[e_,eb,ef,em];function eE(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(0,k.Z)(e.querySelectorAll("*")).filter(function(e){return ep(e,t)});return ep(e,t)&&i.unshift(e),i})(e,!0).filter(function(e){return t.has(e)})}function ek(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=eE(e,t),o=r.length,s=r.findIndex(function(e){return i===e});return n<0?-1===s?s=o-1:s-=1:n>0&&(s+=1),r[s=(s+o)%o]}var eL="__RC_UTIL_PATH_SPLIT__",ex=function(e){return e.join(eL)},eN="rc-menu-more";function eD(e){var t=o.useRef(e);t.current=e;var i=o.useCallback(function(){for(var e,i=arguments.length,n=Array(i),r=0;r1&&(S.motionAppear=!1);var E=S.onVisibleChanged;return(S.onVisibleChanged=function(e){return m.current||e||y(!0),null==E?void 0:E(e)},v)?null:o.createElement(es,{mode:a,locked:!m.current},o.createElement(C.ZP,(0,r.Z)({visible:w},S,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(d,"-hidden")}),function(e){var i=e.className,n=e.style;return o.createElement(eZ,{id:t,className:i,style:n},s)}))}var e3=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],e6=["active"],e9=function(e){var t,i=e.style,n=e.className,s=e.title,a=e.eventKey,l=(e.warnKey,e.disabled),d=e.internalPopupClose,u=e.children,c=e.itemIcon,m=e.expandIcon,b=e.popupClassName,v=e.popupOffset,C=e.onClick,y=e.onMouseEnter,w=e.onMouseLeave,S=e.onTitleClick,E=e.onTitleMouseEnter,k=e.onTitleMouseLeave,L=(0,_.Z)(e,e3),x=ei(a),N=o.useContext(eo),D=N.prefixCls,T=N.mode,I=N.openKeys,R=N.disabled,A=N.overflowDisabled,O=N.activeKey,M=N.selectedKeys,P=N.itemIcon,F=N.expandIcon,B=N.onItemClick,W=N.onOpenChange,H=N.onActive,V=o.useContext(eh)._internalRenderSubMenuItem,z=o.useContext(ec).isSubPathKey,U=eu(),$="".concat(D,"-submenu"),K=R||l,j=o.useRef(),G=o.useRef(),q=m||F,Z=I.includes(a),Q=!A&&Z,X=z(M,a),J=eF(a,K,E,k),ee=J.active,et=(0,_.Z)(J,e6),en=o.useState(!1),er=(0,f.Z)(en,2),ea=er[0],el=er[1],ed=function(e){K||el(e)},eg=o.useMemo(function(){return ee||"inline"!==T&&(ea||z([O],a))},[T,ee,O,ea,a,z]),ep=eB(U.length),ef=eD(function(e){null==C||C(eV(e)),B(e)}),em=x&&"".concat(x,"-popup"),e_=o.createElement("div",(0,r.Z)({role:"menuitem",style:ep,className:"".concat($,"-title"),tabIndex:K?null:-1,ref:j,title:"string"==typeof s?s:null,"data-menu-id":A&&x?null:x,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":em,"aria-disabled":K,onClick:function(e){K||(null==S||S({key:a,domEvent:e}),"inline"===T&&W(a,!Z))},onFocus:function(){H(a)}},et),s,o.createElement(eW,{icon:"horizontal"!==T?q:null,props:(0,p.Z)((0,p.Z)({},e),{},{isOpen:Q,isSubMenu:!0})},o.createElement("i",{className:"".concat($,"-arrow")}))),eb=o.useRef(T);if("inline"!==T&&U.length>1?eb.current="vertical":eb.current=T,!A){var ev=eb.current;e_=o.createElement(e4,{mode:ev,prefixCls:$,visible:!d&&Q&&"inline"!==T,popupClassName:b,popupOffset:v,popup:o.createElement(es,{mode:"horizontal"===ev?"vertical":ev},o.createElement(eZ,{id:em,ref:G},u)),disabled:K,onVisibleChange:function(e){"inline"!==T&&W(a,e)}},e_)}var eC=o.createElement(Y.Z.Item,(0,r.Z)({role:"none"},L,{component:"li",style:i,className:h()($,"".concat($,"-").concat(T),n,(t={},(0,g.Z)(t,"".concat($,"-open"),Q),(0,g.Z)(t,"".concat($,"-active"),eg),(0,g.Z)(t,"".concat($,"-selected"),X),(0,g.Z)(t,"".concat($,"-disabled"),K),t)),onMouseEnter:function(e){ed(!0),null==y||y({key:a,domEvent:e})},onMouseLeave:function(e){ed(!1),null==w||w({key:a,domEvent:e})}}),e_,!A&&o.createElement(e5,{id:em,open:Q,keyPath:U},u));return V&&(eC=V(eC,e,{selected:X,active:eg,open:Q,disabled:K})),o.createElement(es,{onItemClick:ef,mode:"horizontal"===T?"vertical":T,itemIcon:c||P,expandIcon:q},eC)};function e8(e){var t,i=e.eventKey,n=e.children,r=eu(i),s=eQ(n,r),a=el();return o.useEffect(function(){if(a)return a.registerPath(i,r),function(){a.unregisterPath(i,r)}},[r]),t=a?s:o.createElement(e9,e,s),o.createElement(ed.Provider,{value:r},t)}var e7=["className","title","eventKey","children"],te=["children"],tt=function(e){var t=e.className,i=e.title,n=(e.eventKey,e.children),s=(0,_.Z)(e,e7),a=o.useContext(eo).prefixCls,l="".concat(a,"-item-group");return o.createElement("li",(0,r.Z)({role:"presentation"},s,{onClick:function(e){return e.stopPropagation()},className:h()(l,t)}),o.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:"string"==typeof i?i:void 0},i),o.createElement("ul",{role:"group",className:"".concat(l,"-list")},n))};function ti(e){var t=e.children,i=(0,_.Z)(e,te),n=eQ(t,eu(i.eventKey));return el()?n:o.createElement(tt,(0,eP.Z)(i,["warnKey"]),n)}function tn(e){var t=e.className,i=e.style,n=o.useContext(eo).prefixCls;return el()?null:o.createElement("li",{className:h()("".concat(n,"-item-divider"),t),style:i})}var tr=["label","children","key","type"],to=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],ts=[],ta=o.forwardRef(function(e,t){var i,n,s,a,l,d,u,c,b,C,y,w,S,E,L,x,D,T,I,R,A,O,M,P,F,B,W,H=e.prefixCls,V=void 0===H?"rc-menu":H,z=e.rootClassName,U=e.style,$=e.className,K=e.tabIndex,j=e.items,G=e.children,q=e.direction,Z=e.id,Q=e.mode,ei=void 0===Q?"vertical":Q,en=e.inlineCollapsed,er=e.disabled,eo=e.disabledOverflow,el=e.subMenuOpenDelay,ed=e.subMenuCloseDelay,eu=e.forceSubMenuRender,eg=e.defaultOpenKeys,ep=e.openKeys,eR=e.activeKey,eA=e.defaultActiveFirst,eO=e.selectable,eM=void 0===eO||eO,eP=e.multiple,eF=void 0!==eP&&eP,eB=e.defaultSelectedKeys,eW=e.selectedKeys,eH=e.onSelect,ez=e.onDeselect,eU=e.inlineIndent,e$=e.motion,eK=e.defaultMotions,ej=e.triggerSubMenuAction,eq=e.builtinPlacements,eZ=e.itemIcon,eY=e.expandIcon,eX=e.overflowedIndicator,eJ=void 0===eX?"...":eX,e0=e.overflowedIndicatorPopupClassName,e1=e.getPopupContainer,e2=e.onClick,e4=e.onOpenChange,e5=e.onKeyDown,e3=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),e6=e._internalRenderSubMenuItem,e9=(0,_.Z)(e,to),e7=o.useMemo(function(){var e;return e=G,j&&(e=function e(t){return(t||[]).map(function(t,i){if(t&&"object"===(0,m.Z)(t)){var n=t.label,s=t.children,a=t.key,l=t.type,d=(0,_.Z)(t,tr),u=null!=a?a:"tmp-".concat(i);return s||"group"===l?"group"===l?o.createElement(ti,(0,r.Z)({key:u},d,{title:n}),e(s)):o.createElement(e8,(0,r.Z)({key:u},d,{title:n}),e(s)):"divider"===l?o.createElement(tn,(0,r.Z)({key:u},d)):o.createElement(eG,(0,r.Z)({key:u},d),n)}return null}).filter(function(e){return e})}(j)),eQ(e,ts)},[G,j]),te=o.useState(!1),tt=(0,f.Z)(te,2),ta=tt[0],tl=tt[1],td=o.useRef(),tu=(i=(0,v.Z)(Z,{value:Z}),s=(n=(0,f.Z)(i,2))[0],a=n[1],o.useEffect(function(){eI+=1;var e="".concat(eT,"-").concat(eI);a("rc-menu-uuid-".concat(e))},[]),s),tc="rtl"===q,th=(0,v.Z)(eg,{value:ep,postState:function(e){return e||ts}}),tg=(0,f.Z)(th,2),tp=tg[0],tf=tg[1],tm=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function i(){tf(e),null==e4||e4(e)}t?(0,X.flushSync)(i):i()},t_=o.useState(tp),tb=(0,f.Z)(t_,2),tv=tb[0],tC=tb[1],ty=o.useRef(!1),tw=o.useMemo(function(){return("inline"===ei||"vertical"===ei)&&en?["vertical",en]:[ei,!1]},[ei,en]),tS=(0,f.Z)(tw,2),tE=tS[0],tk=tS[1],tL="inline"===tE,tx=o.useState(tE),tN=(0,f.Z)(tx,2),tD=tN[0],tT=tN[1],tI=o.useState(tk),tR=(0,f.Z)(tI,2),tA=tR[0],tO=tR[1];o.useEffect(function(){tT(tE),tO(tk),ty.current&&(tL?tf(tv):tm(ts))},[tE,tk]);var tM=o.useState(0),tP=(0,f.Z)(tM,2),tF=tP[0],tB=tP[1],tW=tF>=e7.length-1||"horizontal"!==tD||eo;o.useEffect(function(){tL&&tC(tp)},[tp]),o.useEffect(function(){return ty.current=!0,function(){ty.current=!1}},[]);var tH=(l=o.useState({}),d=(0,f.Z)(l,2)[1],u=(0,o.useRef)(new Map),c=(0,o.useRef)(new Map),b=o.useState([]),y=(C=(0,f.Z)(b,2))[0],w=C[1],S=(0,o.useRef)(0),E=(0,o.useRef)(!1),L=function(){E.current||d({})},x=(0,o.useCallback)(function(e,t){var i=ex(t);c.current.set(i,e),u.current.set(e,i),S.current+=1;var n=S.current;Promise.resolve().then(function(){n===S.current&&L()})},[]),D=(0,o.useCallback)(function(e,t){var i=ex(t);c.current.delete(i),u.current.delete(e)},[]),T=(0,o.useCallback)(function(e){w(e)},[]),I=(0,o.useCallback)(function(e,t){var i=(u.current.get(e)||"").split(eL);return t&&y.includes(i[0])&&i.unshift(eN),i},[y]),R=(0,o.useCallback)(function(e,t){return e.some(function(e){return I(e,!0).includes(t)})},[I]),A=(0,o.useCallback)(function(e){var t="".concat(u.current.get(e)).concat(eL),i=new Set;return(0,k.Z)(c.current.keys()).forEach(function(e){e.startsWith(t)&&i.add(c.current.get(e))}),i},[]),o.useEffect(function(){return function(){E.current=!0}},[]),{registerPath:x,unregisterPath:D,refreshOverflowKeys:T,isSubPathKey:R,getKeyPath:I,getKeys:function(){var e=(0,k.Z)(u.current.keys());return y.length&&e.push(eN),e},getSubPathKeys:A}),tV=tH.registerPath,tz=tH.unregisterPath,tU=tH.refreshOverflowKeys,t$=tH.isSubPathKey,tK=tH.getKeyPath,tj=tH.getKeys,tG=tH.getSubPathKeys,tq=o.useMemo(function(){return{registerPath:tV,unregisterPath:tz}},[tV,tz]),tZ=o.useMemo(function(){return{isSubPathKey:t$}},[t$]);o.useEffect(function(){tU(tW?ts:e7.slice(tF+1).map(function(e){return e.key}))},[tF,tW]);var tY=(0,v.Z)(eR||eA&&(null===(B=e7[0])||void 0===B?void 0:B.key),{value:eR}),tQ=(0,f.Z)(tY,2),tX=tQ[0],tJ=tQ[1],t0=eD(function(e){tJ(e)}),t1=eD(function(){tJ(void 0)});(0,o.useImperativeHandle)(t,function(){return{list:td.current,focus:function(e){var t,i,n,r,o=null!=tX?tX:null===(t=e7.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key;o&&(null===(i=td.current)||void 0===i||null===(n=i.querySelector("li[data-menu-id='".concat(et(tu,o),"']")))||void 0===n||null===(r=n.focus)||void 0===r||r.call(n,e))}}});var t2=(0,v.Z)(eB||[],{value:eW,postState:function(e){return Array.isArray(e)?e:null==e?ts:[e]}}),t4=(0,f.Z)(t2,2),t5=t4[0],t3=t4[1],t6=function(e){if(eM){var t,i=e.key,n=t5.includes(i);t3(t=eF?n?t5.filter(function(e){return e!==i}):[].concat((0,k.Z)(t5),[i]):[i]);var r=(0,p.Z)((0,p.Z)({},e),{},{selectedKeys:t});n?null==ez||ez(r):null==eH||eH(r)}!eF&&tp.length&&"inline"!==tD&&tm(ts)},t9=eD(function(e){null==e2||e2(eV(e)),t6(e)}),t8=eD(function(e,t){var i=tp.filter(function(t){return t!==e});if(t)i.push(e);else if("inline"!==tD){var n=tG(e);i=i.filter(function(e){return!n.has(e)})}(0,J.Z)(tp,i,!0)||tm(i,!0)}),t7=(O=function(e,t){var i=null!=t?t:!tp.includes(e);t8(e,i)},M=o.useRef(),(P=o.useRef()).current=tX,F=function(){N.Z.cancel(M.current)},o.useEffect(function(){return function(){F()}},[]),function(e){var t=e.which;if([].concat(eS,[ev,eC,ey,ew]).includes(t)){var i=function(){return a=new Set,l=new Map,d=new Map,tj().forEach(function(e){var t=document.querySelector("[data-menu-id='".concat(et(tu,e),"']"));t&&(a.add(t),d.set(t,e),l.set(e,t))}),a};i();var n=function(e,t){for(var i=e||document.activeElement;i;){if(t.has(i))return i;i=i.parentElement}return null}(l.get(tX),a),r=d.get(n),o=function(e,t,i,n){var r,o,s,a,l="prev",d="next",u="children",c="parent";if("inline"===e&&n===ev)return{inlineTrigger:!0};var h=(r={},(0,g.Z)(r,e_,l),(0,g.Z)(r,eb,d),r),p=(o={},(0,g.Z)(o,ef,i?d:l),(0,g.Z)(o,em,i?l:d),(0,g.Z)(o,eb,u),(0,g.Z)(o,ev,u),o),f=(s={},(0,g.Z)(s,e_,l),(0,g.Z)(s,eb,d),(0,g.Z)(s,ev,u),(0,g.Z)(s,eC,c),(0,g.Z)(s,ef,i?u:c),(0,g.Z)(s,em,i?c:u),s);switch(null===(a=({inline:h,horizontal:p,vertical:f,inlineSub:h,horizontalSub:f,verticalSub:f})["".concat(e).concat(t?"":"Sub")])||void 0===a?void 0:a[n]){case l:return{offset:-1,sibling:!0};case d:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case u:return{offset:1,sibling:!1};default:return null}}(tD,1===tK(r,!0).length,tc,t);if(!o&&t!==ey&&t!==ew)return;(eS.includes(t)||[ey,ew].includes(t))&&e.preventDefault();var s=function(e){if(e){var t=e,i=e.querySelector("a");null!=i&&i.getAttribute("href")&&(t=i);var n=d.get(e);tJ(n),F(),M.current=(0,N.Z)(function(){P.current===n&&t.focus()})}};if([ey,ew].includes(t)||o.sibling||!n){var a,l,d,u,c=eE(u=n&&"inline"!==tD?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(n):td.current,a);s(t===ey?c[0]:t===ew?c[c.length-1]:ek(u,a,n,o.offset))}else if(o.inlineTrigger)O(r);else if(o.offset>0)O(r,!0),F(),M.current=(0,N.Z)(function(){i();var e=n.getAttribute("aria-controls");s(ek(document.getElementById(e),a))},5);else if(o.offset<0){var h=tK(r,!0),p=h[h.length-2],f=l.get(p);O(p,!1),s(f)}}null==e5||e5(e)});o.useEffect(function(){tl(!0)},[]);var ie=o.useMemo(function(){return{_internalRenderMenuItem:e3,_internalRenderSubMenuItem:e6}},[e3,e6]),it="horizontal"!==tD||eo?e7:e7.map(function(e,t){return o.createElement(es,{key:e.key,overflowDisabled:t>tF},e)}),ii=o.createElement(Y.Z,(0,r.Z)({id:Z,ref:td,prefixCls:"".concat(V,"-overflow"),component:"ul",itemComponent:eG,className:h()(V,"".concat(V,"-root"),"".concat(V,"-").concat(tD),$,(W={},(0,g.Z)(W,"".concat(V,"-inline-collapsed"),tA),(0,g.Z)(W,"".concat(V,"-rtl"),tc),W),z),dir:q,style:U,role:"menu",tabIndex:void 0===K?0:K,data:it,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,i=t?e7.slice(-t):null;return o.createElement(e8,{eventKey:eN,title:eJ,disabled:tW,internalPopupClose:0===t,popupClassName:e0},i)},maxCount:"horizontal"!==tD||eo?Y.Z.INVALIDATE:Y.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tB(e)},onKeyDown:t7},e9));return o.createElement(eh.Provider,{value:ie},o.createElement(ee.Provider,{value:tu},o.createElement(es,{prefixCls:V,rootClassName:z,mode:tD,openKeys:tp,rtl:tc,disabled:er,motion:ta?e$:null,defaultMotions:ta?eK:null,activeKey:tX,onActive:t0,onInactive:t1,selectedKeys:t5,inlineIndent:void 0===eU?24:eU,subMenuOpenDelay:void 0===el?.1:el,subMenuCloseDelay:void 0===ed?.1:ed,forceSubMenuRender:eu,builtinPlacements:eq,triggerSubMenuAction:void 0===ej?"hover":ej,getPopupContainer:e1,itemIcon:eZ,expandIcon:eY,onItemClick:t9,onOpenChange:t8},o.createElement(ec.Provider,{value:tZ},ii),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement(ea.Provider,{value:tq},e7)))))});ta.Item=eG,ta.SubMenu=e8,ta.ItemGroup=ti,ta.Divider=tn;var tl=o.memo(o.forwardRef(function(e,t){var i=e.prefixCls,n=e.id,r=e.tabs,s=e.locale,a=e.mobile,l=e.moreIcon,d=void 0===l?"More":l,u=e.moreTransitionName,c=e.style,p=e.className,m=e.editable,_=e.tabBarGutter,b=e.rtl,v=e.removeAriaLabel,C=e.onTabClick,y=e.getPopupContainer,w=e.popupClassName,S=(0,o.useState)(!1),E=(0,f.Z)(S,2),k=E[0],L=E[1],x=(0,o.useState)(null),N=(0,f.Z)(x,2),D=N[0],T=N[1],I="".concat(n,"-more-popup"),R="".concat(i,"-dropdown"),A=null!==D?"".concat(I,"-").concat(D):null,O=null==s?void 0:s.dropdownAriaLabel,M=o.createElement(ta,{onClick:function(e){C(e.key,e.domEvent),L(!1)},prefixCls:"".concat(R,"-menu"),id:I,tabIndex:-1,role:"listbox","aria-activedescendant":A,selectedKeys:[D],"aria-label":void 0!==O?O:"expanded dropdown"},r.map(function(e){var t=e.closable,i=e.disabled,r=e.closeIcon,s=e.key,a=e.label,l=F(t,r,m,i);return o.createElement(eG,{key:s,id:"".concat(I,"-").concat(s),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(s),disabled:i},o.createElement("span",null,a),l&&o.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:s,event:e})}},r||m.removeIcon||"\xd7"))}));function P(e){for(var t=r.filter(function(e){return!e.disabled}),i=t.findIndex(function(e){return e.key===D})||0,n=t.length,o=0;ot?"left":"right"})}),eO=(0,f.Z)(eA,2),eM=eO[0],eP=eO[1],eF=I(0,function(e,t){!eR&&eE&&eE({direction:e>t?"top":"bottom"})}),eB=(0,f.Z)(eF,2),eW=eB[0],eH=eB[1],eV=(0,o.useState)([0,0]),ez=(0,f.Z)(eV,2),eU=ez[0],e$=ez[1],eK=(0,o.useState)([0,0]),ej=(0,f.Z)(eK,2),eG=ej[0],eq=ej[1],eZ=(0,o.useState)([0,0]),eY=(0,f.Z)(eZ,2),eQ=eY[0],eX=eY[1],eJ=(0,o.useState)([0,0]),e0=(0,f.Z)(eJ,2),e1=e0[0],e2=e0[1],e4=(i=new Map,n=(0,o.useRef)([]),s=(0,o.useState)({}),a=(0,f.Z)(s,2)[1],l=(0,o.useRef)("function"==typeof i?i():i),d=A(function(){var e=l.current;n.current.forEach(function(t){e=t(e)}),n.current=[],l.current=e,a({})}),[l.current,function(e){n.current.push(e),d()}]),e5=(0,f.Z)(e4,2),e3=e5[0],e6=e5[1],e9=(u=eG[0],(0,o.useMemo)(function(){for(var e=new Map,t=e3.get(null===(r=eu[0])||void 0===r?void 0:r.key)||T,i=t.left+t.width,n=0;nts?ts:e}eR&&em?(to=0,ts=Math.max(0,e7-tn)):(to=Math.min(0,tn-e7),ts=0);var th=(0,o.useRef)(),tg=(0,o.useState)(),tp=(0,f.Z)(tg,2),tf=tp[0],tm=tp[1];function t_(){tm(Date.now())}function tb(){window.clearTimeout(th.current)}c=function(e,t){function i(e,t){e(function(e){return ta(e+t)})}return!!ti&&(eR?i(eP,e):i(eH,t),tb(),t_(),!0)},m=(0,o.useState)(),b=(_=(0,f.Z)(m,2))[0],v=_[1],C=(0,o.useState)(0),S=(w=(0,f.Z)(C,2))[0],E=w[1],R=(0,o.useState)(0),H=(F=(0,f.Z)(R,2))[0],V=F[1],z=(0,o.useState)(),$=(U=(0,f.Z)(z,2))[0],K=U[1],j=(0,o.useRef)(),G=(0,o.useRef)(),(q=(0,o.useRef)(null)).current={onTouchStart:function(e){var t=e.touches[0];v({x:t.screenX,y:t.screenY}),window.clearInterval(j.current)},onTouchMove:function(e){if(b){e.preventDefault();var t=e.touches[0],i=t.screenX,n=t.screenY;v({x:i,y:n});var r=i-b.x,o=n-b.y;c(r,o);var s=Date.now();E(s),V(s-S),K({x:r,y:o})}},onTouchEnd:function(){if(b&&(v(null),K(null),$)){var e=$.x/H,t=$.y/H;if(!(.1>Math.max(Math.abs(e),Math.abs(t)))){var i=e,n=t;j.current=window.setInterval(function(){if(.01>Math.abs(i)&&.01>Math.abs(n)){window.clearInterval(j.current);return}c(20*(i*=.9046104802746175),20*(n*=.9046104802746175))},20)}}},onWheel:function(e){var t=e.deltaX,i=e.deltaY,n=0,r=Math.abs(t),o=Math.abs(i);r===o?n="x"===G.current?t:i:r>o?(n=t,G.current="x"):(n=i,G.current="y"),c(-n,-n)&&e.preventDefault()}},o.useEffect(function(){function e(e){q.current.onTouchMove(e)}function t(e){q.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),eN.current.addEventListener("touchstart",function(e){q.current.onTouchStart(e)},{passive:!1}),eN.current.addEventListener("wheel",function(e){q.current.onWheel(e)}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}},[]),(0,o.useEffect)(function(){return tb(),tf&&(th.current=window.setTimeout(function(){tm(0)},100)),tb},[tf]);var tv=(Z=eR?eM:eW,ee=(Y=(0,p.Z)((0,p.Z)({},e),{},{tabs:eu})).tabs,et=Y.tabPosition,ei=Y.rtl,["top","bottom"].includes(et)?(Q="width",X=ei?"right":"left",J=Math.abs(Z)):(Q="height",X="top",J=-Z),(0,o.useMemo)(function(){if(!ee.length)return[0,0];for(var e=ee.length,t=e,i=0;iJ+tn){t=i-1;break}}for(var r=0,o=e-1;o>=0;o-=1)if((e9.get(ee[o].key)||O)[X]=t?[0,0]:[r,t]},[e9,tn,e7,te,tt,J,et,ee.map(function(e){return e.key}).join("_"),ei])),tC=(0,f.Z)(tv,2),ty=tC[0],tw=tC[1],tS=(0,x.Z)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ef,t=e9.get(e)||{width:0,height:0,left:0,right:0,top:0};if(eR){var i=eM;em?t.righteM+tn&&(i=t.right+t.width-tn):t.left<-eM?i=-t.left:t.left+t.width>-eM+tn&&(i=-(t.left+t.width-tn)),eH(0),eP(ta(i))}else{var n=eW;t.top<-eW?n=-t.top:t.top+t.height>-eW+tn&&(n=-(t.top+t.height-tn)),eP(0),eH(ta(n))}}),tE={};"top"===eC||"bottom"===eC?tE[em?"marginRight":"marginLeft"]=ey:tE.marginTop=ey;var tk=eu.map(function(e,t){var i=e.key;return o.createElement(td,{id:eg,prefixCls:ed,key:i,tab:e,style:0===t?void 0:tE,closable:e.closable,editable:eb,active:i===ef,renderWrapper:ew,removeAriaLabel:null==ev?void 0:ev.removeAriaLabel,onClick:function(e){eS(i,e)},onFocus:function(){tS(i),t_(),eN.current&&(em||(eN.current.scrollLeft=0),eN.current.scrollTop=0)}})}),tL=function(){return e6(function(){var e=new Map;return eu.forEach(function(t){var i,n=t.key,r=null===(i=eD.current)||void 0===i?void 0:i.querySelector('[data-node-key="'.concat(P(n),'"]'));r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})}),e})};(0,o.useEffect)(function(){tL()},[eu.map(function(e){return e.key}).join("_")]);var tx=A(function(){var e=tu(ek),t=tu(eL),i=tu(ex);e$([e[0]-t[0]-i[0],e[1]-t[1]-i[1]]);var n=tu(eI);eX(n),e2(tu(eT));var r=tu(eD);eq([r[0]-n[0],r[1]-n[1]]),tL()}),tN=eu.slice(0,ty),tD=eu.slice(tw+1),tT=[].concat((0,k.Z)(tN),(0,k.Z)(tD)),tI=(0,o.useState)(),tR=(0,f.Z)(tI,2),tA=tR[0],tO=tR[1],tM=e9.get(ef),tP=(0,o.useRef)();function tF(){N.Z.cancel(tP.current)}(0,o.useEffect)(function(){var e={};return tM&&(eR?(em?e.right=tM.right:e.left=tM.left,e.width=tM.width):(e.top=tM.top,e.height=tM.height)),tF(),tP.current=(0,N.Z)(function(){tO(e)}),tF},[tM,eR,em]),(0,o.useEffect)(function(){tS()},[ef,to,ts,M(tM),M(e9),eR]),(0,o.useEffect)(function(){tx()},[em]);var tB=!!tT.length,tW="".concat(ed,"-nav-wrap");return eR?em?(eo=eM>0,er=eM!==ts):(er=eM<0,eo=eM!==to):(es=eW<0,ea=eW!==to),o.createElement(L.Z,{onResize:tx},o.createElement("div",{ref:(0,D.x1)(t,ek),role:"tablist",className:h()("".concat(ed,"-nav"),ec),style:eh,onKeyDown:function(){t_()}},o.createElement(W,{ref:eL,position:"left",extra:e_,prefixCls:ed}),o.createElement("div",{className:h()(tW,(en={},(0,g.Z)(en,"".concat(tW,"-ping-left"),er),(0,g.Z)(en,"".concat(tW,"-ping-right"),eo),(0,g.Z)(en,"".concat(tW,"-ping-top"),es),(0,g.Z)(en,"".concat(tW,"-ping-bottom"),ea),en)),ref:eN},o.createElement(L.Z,{onResize:tx},o.createElement("div",{ref:eD,className:"".concat(ed,"-nav-list"),style:{transform:"translate(".concat(eM,"px, ").concat(eW,"px)"),transition:tf?"none":void 0}},tk,o.createElement(B,{ref:eI,prefixCls:ed,locale:ev,editable:eb,style:(0,p.Z)((0,p.Z)({},0===tk.length?void 0:tE),{},{visibility:tB?"hidden":null})}),o.createElement("div",{className:h()("".concat(ed,"-ink-bar"),(0,g.Z)({},"".concat(ed,"-ink-bar-animated"),ep.inkBar)),style:tA})))),o.createElement(tl,(0,r.Z)({},e,{removeAriaLabel:null==ev?void 0:ev.removeAriaLabel,ref:eT,prefixCls:ed,tabs:tT,className:!tB&&tr,tabMoving:!!tf})),o.createElement(W,{ref:ex,position:"right",extra:e_,prefixCls:ed})))}),tg=["renderTabBar"],tp=["label","key"];function tf(e){var t=e.renderTabBar,i=(0,_.Z)(e,tg),n=o.useContext(y).tabs;return t?t((0,p.Z)((0,p.Z)({},i),{},{panes:n.map(function(e){var t=e.label,i=e.key,n=(0,_.Z)(e,tp);return o.createElement(w,(0,r.Z)({tab:t,key:i,tabKey:i},n))})}),th):o.createElement(th,i)}var tm=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],t_=0,tb=o.forwardRef(function(e,t){var i,n,s=e.id,a=e.prefixCls,l=void 0===a?"rc-tabs":a,d=e.className,u=e.items,c=e.direction,C=e.activeKey,w=e.defaultActiveKey,S=e.editable,k=e.animated,L=e.tabPosition,x=void 0===L?"top":L,N=e.tabBarGutter,D=e.tabBarStyle,T=e.tabBarExtraContent,I=e.locale,R=e.moreIcon,A=e.moreTransitionName,O=e.destroyInactiveTabPane,M=e.renderTabBar,P=e.onChange,F=e.onTabClick,B=e.onTabScroll,W=e.getPopupContainer,H=e.popupClassName,V=(0,_.Z)(e,tm),z=o.useMemo(function(){return(u||[]).filter(function(e){return e&&"object"===(0,m.Z)(e)&&"key"in e})},[u]),U="rtl"===c,$=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,p.Z)({inkBar:!0},"object"===(0,m.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(k),K=(0,o.useState)(!1),j=(0,f.Z)(K,2),G=j[0],q=j[1];(0,o.useEffect)(function(){q((0,b.Z)())},[]);var Z=(0,v.Z)(function(){var e;return null===(e=z[0])||void 0===e?void 0:e.key},{value:C,defaultValue:w}),Y=(0,f.Z)(Z,2),Q=Y[0],X=Y[1],J=(0,o.useState)(function(){return z.findIndex(function(e){return e.key===Q})}),ee=(0,f.Z)(J,2),et=ee[0],ei=ee[1];(0,o.useEffect)(function(){var e,t=z.findIndex(function(e){return e.key===Q});-1===t&&(t=Math.max(0,Math.min(et,z.length-1)),X(null===(e=z[t])||void 0===e?void 0:e.key)),ei(t)},[z.map(function(e){return e.key}).join("_"),Q,et]);var en=(0,v.Z)(null,{value:s}),er=(0,f.Z)(en,2),eo=er[0],es=er[1];(0,o.useEffect)(function(){s||(es("rc-tabs-".concat(t_)),t_+=1)},[]);var ea={id:eo,activeKey:Q,animated:$,tabPosition:x,rtl:U,mobile:G},el=(0,p.Z)((0,p.Z)({},ea),{},{editable:S,locale:I,moreIcon:R,moreTransitionName:A,tabBarGutter:N,onTabClick:function(e,t){null==F||F(e,t);var i=e!==Q;X(e),i&&(null==P||P(e))},onTabScroll:B,extra:T,style:D,panes:null,getPopupContainer:W,popupClassName:H});return o.createElement(y.Provider,{value:{tabs:z,prefixCls:l}},o.createElement("div",(0,r.Z)({ref:t,id:s,className:h()(l,"".concat(l,"-").concat(x),(i={},(0,g.Z)(i,"".concat(l,"-mobile"),G),(0,g.Z)(i,"".concat(l,"-editable"),S),(0,g.Z)(i,"".concat(l,"-rtl"),U),i),d)},V),n,o.createElement(tf,(0,r.Z)({},el,{renderTabBar:M})),o.createElement(E,(0,r.Z)({destroyInactiveTabPane:O},ea,{animated:$}))))}),tv=i(79746),tC=i(30069),ty=i(80716);let tw={motionAppear:!1,motionEnter:!0,motionLeave:!0};var tS=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i},tE=i(98663),tk=i(40650),tL=i(70721),tx=i(53279),tN=e=>{let{componentCls:t,motionDurationSlow:i}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${i}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${i}`}}}}},[(0,tx.oN)(e,"slide-up"),(0,tx.oN)(e,"slide-down")]]};let tD=e=>{let{componentCls:t,tabsCardPadding:i,cardBg:n,cardGutter:r,colorBorderSecondary:o,itemSelectedColor:s}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:i,background:n,border:`${e.lineWidth}px ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:s,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},tT=e=>{let{componentCls:t,itemHoverColor:i,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,tE.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${n}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},tE.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:i}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},tI=e=>{let{componentCls:t,margin:i,colorBorderSecondary:n,horizontalMargin:r,verticalItemPadding:o,verticalItemMargin:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, - right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${i}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:s},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},tR=e=>{let{componentCls:t,cardPaddingSM:i,cardPaddingLG:n,horizontalItemPaddingSM:r,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}}}}}},tA=e=>{let{componentCls:t,itemActiveColor:i,itemHoverColor:n,iconCls:r,tabsHorizontalItemMargin:o,horizontalItemPadding:s,itemSelectedColor:a}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:s,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:i}},(0,tE.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:n},[`&${l}-active ${l}-btn`]:{color:a,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:o}}}},tO=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:i,iconCls:n,cardGutter:r}=e,o=`${t}-rtl`;return{[o]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:i},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},tM=e=>{let{componentCls:t,tabsCardPadding:i,cardHeight:n,cardGutter:r,itemHoverColor:o,itemActiveColor:s,colorBorderSecondary:a}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,tE.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:i,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:n,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:s}},(0,tE.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),tA(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var tP=(0,tk.Z)("Tabs",e=>{let t=(0,tL.TS)(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[tR(t),tO(t),tI(t),tT(t),tD(t),tM(t),tN(t)]},e=>{let t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),tF=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let tB=e=>{let t;let{type:i,className:r,rootClassName:s,size:a,onEdit:d,hideAdd:c,centered:g,addIcon:p,popupClassName:f,children:m,items:_,animated:b,style:v}=e,C=tF(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:y,moreIcon:w=o.createElement(l,null)}=C,{direction:S,tabs:E,getPrefixCls:k,getPopupContainer:L}=o.useContext(tv.E_),x=k("tabs",y),[N,D]=tP(x);"editable-card"===i&&(t={onEdit:(e,t)=>{let{key:i,event:n}=t;null==d||d("add"===e?n:i,e)},removeIcon:o.createElement(n.Z,null),addIcon:p||o.createElement(u,null),showAdd:!0!==c});let T=k(),I=function(e,t){if(e)return e;let i=(0,eY.Z)(t).map(e=>{if(o.isValidElement(e)){let{key:t,props:i}=e,n=i||{},{tab:r}=n,o=tS(n,["tab"]),s=Object.assign(Object.assign({key:String(t)},o),{label:r});return s}return null});return i.filter(e=>e)}(_,m),R=function(e){let t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(t=!1===i?{inkBar:!1,tabPane:!1}:!0===i?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof i?i:{})).tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},tw),{motionName:(0,ty.m)(e,"switch")})),t}(x,b),A=(0,tC.Z)(a),O=Object.assign(Object.assign({},null==E?void 0:E.style),v);return N(o.createElement(tb,Object.assign({direction:S,getPopupContainer:L,moreTransitionName:`${T}-slide-up`},C,{items:I,className:h()({[`${x}-${A}`]:A,[`${x}-card`]:["card","editable-card"].includes(i),[`${x}-editable-card`]:"editable-card"===i,[`${x}-centered`]:g},null==E?void 0:E.className,r,s,D),popupClassName:h()(f,D),style:O,editable:t,moreIcon:w,prefixCls:x,animated:R})))};tB.TabPane=()=>null;var tW=tB},61469:function(e,t,i){"use strict";i.d(t,{Z:function(){return e5}});var n,r,o=i(40431),s=i(65877),a=i(965),l=i(88684),d=i(90151),u=i(18050),c=i(49449),h=i(70184),g=i(43663),p=i(38340),f=i(86006),m=i(48580),_=i(5004),b=i(42442),v=i(8683),C=i.n(v),y=f.createContext(null),w=i(89301),S=f.memo(function(e){for(var t,i=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,a="".concat(i,"-indent-unit"),l=[],d=0;d1&&void 0!==arguments[1]?arguments[1]:null;return i.map(function(c,h){for(var g,p=x(n?n.pos:"0",h),f=N(c[o],p),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},p=g.initWrapper,f=g.processEntity,m=g.onProcessFinished,_=g.externalGetKey,b=g.childrenPropName,v=g.fieldNames,C=arguments.length>2?arguments[2]:void 0,y={},w={},S={posEntities:y,keyEntities:w};return p&&(S=p(S)||S),t=function(e){var t=e.node,i=e.index,n=e.pos,r=e.key,o=e.parentPos,s=e.level,a={node:t,nodes:e.nodes,index:i,key:r,pos:n,level:s},l=N(r,n);y[n]=a,w[l]=a,a.parent=y[o],a.parent&&(a.parent.children=a.parent.children||[],a.parent.children.push(a)),f&&f(a,S)},i={externalGetKey:_||C,childrenPropName:b,fieldNames:v},o=(r=("object"===(0,a.Z)(i)?i:{externalGetKey:i})||{}).childrenPropName,s=r.externalGetKey,u=(l=D(r.fieldNames)).key,c=l.children,h=o||c,s?"string"==typeof s?n=function(e){return e[s]}:"function"==typeof s&&(n=function(e){return s(e)}):n=function(e,t){return N(e[u],t)},function i(r,o,s,a){var l=r?r[h]:e,u=r?x(s.pos,o):"0",c=r?[].concat((0,d.Z)(a),[r]):[];if(r){var g=n(r,u);t({node:r,index:o,pos:u,key:g,parentPos:s.node?s.pos:null,level:s.level+1,nodes:c})}l&&l.forEach(function(e,t){i(e,t,{node:r,pos:u,level:s?s.level+1:-1},c)})}(null),m&&m(S),S}function A(e,t){var i=t.expandedKeys,n=t.selectedKeys,r=t.loadedKeys,o=t.loadingKeys,s=t.checkedKeys,a=t.halfCheckedKeys,l=t.dragOverNodeKey,d=t.dropPosition,u=t.keyEntities[e];return{eventKey:e,expanded:-1!==i.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==s.indexOf(e),halfChecked:-1!==a.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===d,dragOverGapTop:l===e&&-1===d,dragOverGapBottom:l===e&&1===d}}function O(e){var t=e.data,i=e.expanded,n=e.selected,r=e.checked,o=e.loaded,s=e.loading,a=e.halfChecked,d=e.dragOver,u=e.dragOverGapTop,c=e.dragOverGapBottom,h=e.pos,g=e.active,p=e.eventKey,f=(0,l.Z)((0,l.Z)({},t),{},{expanded:i,selected:n,checked:r,loaded:o,loading:s,halfChecked:a,dragOver:d,dragOverGapTop:u,dragOverGapBottom:c,pos:h,active:g,key:p});return"props"in f||Object.defineProperty(f,"props",{get:function(){return(0,_.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),f}var M=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],P="open",F="close",B=function(e){(0,g.Z)(i,e);var t=(0,p.Z)(i);function i(){var e;(0,u.Z)(this,i);for(var n=arguments.length,r=Array(n),o=0;o=0&&i.splice(n,1),i}function V(e,t){var i=(e||[]).slice();return -1===i.indexOf(t)&&i.push(t),i}function z(e){return e.split("-")}function U(e,t,i,n,r,o,s,a,l,d){var u,c,h=e.clientX,g=e.clientY,p=e.target.getBoundingClientRect(),f=p.top,m=p.height,_=(("rtl"===d?-1:1)*(((null==r?void 0:r.x)||0)-h)-12)/n,b=a[i.props.eventKey];if(g-1.5?o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1:o({dragNode:L,dropNode:x,dropPosition:0})?S=0:o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1:o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1,{dropPosition:S,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===S?null:(null===(c=b.parent)||void 0===c?void 0:c.key)||null,dropAllowed:N}}function $(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function K(e){var t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,a.Z)(e))return(0,_.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function j(e,t){var i=new Set;return(e||[]).forEach(function(e){!function e(n){if(!i.has(n)){var r=t[n];if(r){i.add(n);var o=r.parent;!r.node.disabled&&o&&e(o.key)}}}(e)}),(0,d.Z)(i)}function G(e){if(null==e)throw TypeError("Cannot destructure "+e)}W.displayName="TreeNode",W.isTreeNode=1;var q=i(60456),Z=i(38358),Y=i(43783),Q=i(78641),X=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],J=function(e,t){var i,n,r,s,a,l=e.className,d=e.style,u=e.motion,c=e.motionNodes,h=e.motionType,g=e.onMotionStart,p=e.onMotionEnd,m=e.active,_=e.treeNodeRequiredProps,b=(0,w.Z)(e,X),v=f.useState(!0),S=(0,q.Z)(v,2),E=S[0],k=S[1],L=f.useContext(y).prefixCls,x=c&&"hide"!==h;(0,Z.Z)(function(){c&&x!==E&&k(x)},[c]);var N=f.useRef(!1),D=function(){c&&!N.current&&(N.current=!0,p())};return(i=function(){c&&g()},n=f.useState(!1),s=(r=(0,q.Z)(n,2))[0],a=r[1],f.useLayoutEffect(function(){if(s)return i(),function(){D()}},[s]),f.useLayoutEffect(function(){return a(!0),function(){a(!1)}},[]),c)?f.createElement(Q.ZP,(0,o.Z)({ref:t,visible:E},u,{motionAppear:"show"===h,onVisibleChanged:function(e){x===e&&D()}}),function(e,t){var i=e.className,n=e.style;return f.createElement("div",{ref:t,className:C()("".concat(L,"-treenode-motion"),i),style:n},c.map(function(e){var t=(0,o.Z)({},(G(e.data),e.data)),i=e.title,n=e.key,r=e.isStart,s=e.isEnd;delete t.children;var a=A(n,_);return f.createElement(W,(0,o.Z)({},t,a,{title:i,active:m,data:e.data,key:n,isStart:r,isEnd:s}))}))}):f.createElement(W,(0,o.Z)({domRef:t,className:l,style:d},b,{active:m}))};J.displayName="MotionTreeNode";var ee=f.forwardRef(J);function et(e,t,i){var n=e.findIndex(function(e){return e.key===i}),r=e[n+1],o=t.findIndex(function(e){return e.key===i});if(r){var s=t.findIndex(function(e){return e.key===r.key});return t.slice(o+1,s)}return t.slice(o+1)}var ei=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],en={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},er=function(){},eo="RC_TREE_MOTION_".concat(Math.random()),es={key:eo},ea={key:eo,level:0,index:0,pos:"0",node:es,nodes:[es]},el={parent:null,children:[],pos:ea.pos,data:es,title:null,key:eo,isStart:[],isEnd:[]};function ed(e,t,i,n){return!1!==t&&i?e.slice(0,Math.ceil(i/n)+1):e}function eu(e){return N(e.key,e.pos)}var ec=f.forwardRef(function(e,t){var i=e.prefixCls,n=e.data,r=(e.selectable,e.checkable,e.expandedKeys),s=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,d=e.loadingKeys,u=e.halfCheckedKeys,c=e.keyEntities,h=e.disabled,g=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,_=e.motion,b=e.height,v=e.itemHeight,C=e.virtual,y=e.focusable,S=e.activeItem,E=e.focused,k=e.tabIndex,L=e.onKeyDown,x=e.onFocus,D=e.onBlur,T=e.onActiveChange,I=e.onListChangeStart,R=e.onListChangeEnd,O=(0,w.Z)(e,ei),M=f.useRef(null),P=f.useRef(null);f.useImperativeHandle(t,function(){return{scrollTo:function(e){M.current.scrollTo(e)},getIndentWidth:function(){return P.current.offsetWidth}}});var F=f.useState(r),B=(0,q.Z)(F,2),W=B[0],H=B[1],V=f.useState(n),z=(0,q.Z)(V,2),U=z[0],$=z[1],K=f.useState(n),j=(0,q.Z)(K,2),Q=j[0],X=j[1],J=f.useState([]),es=(0,q.Z)(J,2),ea=es[0],ec=es[1],eh=f.useState(null),eg=(0,q.Z)(eh,2),ep=eg[0],ef=eg[1],em=f.useRef(n);function e_(){var e=em.current;$(e),X(e),ec([]),ef(null),R()}em.current=n,(0,Z.Z)(function(){H(r);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=e.length,n=t.length;if(1!==Math.abs(i-n))return{add:!1,key:null};function r(e,t){var i=new Map;e.forEach(function(e){i.set(e,!0)});var n=t.filter(function(e){return!i.has(e)});return 1===n.length?n[0]:null}return i ").concat(t);return t}(S)),f.createElement("div",null,f.createElement("input",{style:en,disabled:!1===y||h,tabIndex:!1!==y?k:null,onKeyDown:L,onFocus:x,onBlur:D,value:"",onChange:er,"aria-label":"for screen reader"})),f.createElement("div",{className:"".concat(i,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},f.createElement("div",{className:"".concat(i,"-indent")},f.createElement("div",{ref:P,className:"".concat(i,"-indent-unit")}))),f.createElement(Y.Z,(0,o.Z)({},O,{data:eb,itemKey:eu,height:b,fullHeight:!1,virtual:C,itemHeight:v,prefixCls:"".concat(i,"-list"),ref:M,onVisibleChange:function(e,t){var i=new Set(e);t.filter(function(e){return!i.has(e)}).some(function(e){return eu(e)===eo})&&e_()}}),function(e){var t=e.pos,i=(0,o.Z)({},(G(e.data),e.data)),n=e.title,r=e.key,s=e.isStart,a=e.isEnd,l=N(r,t);delete i.key,delete i.children;var d=A(l,ev);return f.createElement(ee,(0,o.Z)({},i,d,{title:n,active:!!S&&r===S.key,pos:t,data:e.data,isStart:s,isEnd:a,motion:_,motionNodes:r===eo?ea:null,motionType:ep,onMotionStart:I,onMotionEnd:e_,treeNodeRequiredProps:ev,onMouseMove:function(){T(null)}}))}))});function eh(e,t){var i=new Set;return e.forEach(function(e){t.has(e)||i.add(e)}),i}function eg(e){var t=e||{},i=t.disabled,n=t.disableCheckbox,r=t.checkable;return!!(i||n)||!1===r}function ep(e,t,i,n){var r,o=[];r=n||eg;var s=new Set(e.filter(function(e){var t=!!i[e];return t||o.push(e),t})),a=new Map,l=0;return Object.keys(i).forEach(function(e){var t=i[e],n=t.level,r=a.get(n);r||(r=new Set,a.set(n,r)),r.add(t),l=Math.max(l,n)}),(0,_.ZP)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===t?function(e,t,i,n){for(var r=new Set(e),o=new Set,s=0;s<=i;s+=1)(t.get(s)||new Set).forEach(function(e){var t=e.key,i=e.node,o=e.children,s=void 0===o?[]:o;r.has(t)&&!n(i)&&s.filter(function(e){return!n(e.node)}).forEach(function(e){r.add(e.key)})});for(var a=new Set,l=i;l>=0;l-=1)(t.get(l)||new Set).forEach(function(e){var t=e.parent;if(!(n(e.node)||!e.parent||a.has(e.parent.key))){if(n(e.parent.node)){a.add(t.key);return}var i=!0,s=!1;(t.children||[]).filter(function(e){return!n(e.node)}).forEach(function(e){var t=e.key,n=r.has(t);i&&!n&&(i=!1),!s&&(n||o.has(t))&&(s=!0)}),i&&r.add(t.key),s&&o.add(t.key),a.add(t.key)}});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(eh(o,r))}}(s,a,l,r):function(e,t,i,n,r){for(var o=new Set(e),s=new Set(t),a=0;a<=n;a+=1)(i.get(a)||new Set).forEach(function(e){var t=e.key,i=e.node,n=e.children,a=void 0===n?[]:n;o.has(t)||s.has(t)||r(i)||a.filter(function(e){return!r(e.node)}).forEach(function(e){o.delete(e.key)})});s=new Set;for(var l=new Set,d=n;d>=0;d-=1)(i.get(d)||new Set).forEach(function(e){var t=e.parent;if(!(r(e.node)||!e.parent||l.has(e.parent.key))){if(r(e.parent.node)){l.add(t.key);return}var i=!0,n=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,r=o.has(t);i&&!r&&(i=!1),!n&&(r||s.has(t))&&(n=!0)}),i||o.delete(t.key),n&&s.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(eh(s,o))}}(s,t.halfCheckedKeys,a,l,r)}ec.displayName="NodeList";var ef=function(e){(0,g.Z)(i,e);var t=(0,p.Z)(i);function i(){var e;(0,u.Z)(this,i);for(var n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];t.forEach(function(t){var i=t.key,r=t.children;n.push(i),e(r)})}(s[l].children),n),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(d),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:O(i.props)})},e.onNodeDragEnter=function(t,i){var n=e.state,r=n.expandedKeys,o=n.keyEntities,s=n.dragChildrenKeys,a=n.flattenNodes,l=n.indent,u=e.props,c=u.onDragEnter,g=u.onExpand,p=u.allowDrop,f=u.direction,m=i.props,_=m.pos,b=m.eventKey,v=(0,h.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==b&&(e.currentMouseOverDroppableNodeKey=b),!v){e.resetDragState();return}var C=U(t,v,i,l,e.dragStartMousePosition,p,a,o,r,f),y=C.dropPosition,w=C.dropLevelOffset,S=C.dropTargetKey,E=C.dropContainerKey,k=C.dropTargetPos,L=C.dropAllowed,x=C.dragOverNodeKey;if(-1!==s.indexOf(S)||!L||(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(t){clearTimeout(e.delayedDragEnterLogic[t])}),v.props.eventKey!==i.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[_]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var n=(0,d.Z)(r),s=o[i.props.eventKey];s&&(s.children||[]).length&&(n=V(r,i.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(n),null==g||g(n,{node:O(i.props),expanded:!0,nativeEvent:t.nativeEvent})}},800)),v.props.eventKey===S&&0===w)){e.resetDragState();return}e.setState({dragOverNodeKey:x,dropPosition:y,dropLevelOffset:w,dropTargetKey:S,dropContainerKey:E,dropTargetPos:k,dropAllowed:L}),null==c||c({event:t,node:O(i.props),expandedKeys:r})},e.onNodeDragOver=function(t,i){var n=e.state,r=n.dragChildrenKeys,o=n.flattenNodes,s=n.keyEntities,a=n.expandedKeys,l=n.indent,d=e.props,u=d.onDragOver,c=d.allowDrop,g=d.direction,p=(0,h.Z)(e).dragNode;if(p){var f=U(t,p,i,l,e.dragStartMousePosition,c,o,s,a,g),m=f.dropPosition,_=f.dropLevelOffset,b=f.dropTargetKey,v=f.dropContainerKey,C=f.dropAllowed,y=f.dropTargetPos,w=f.dragOverNodeKey;-1===r.indexOf(b)&&C&&(p.props.eventKey===b&&0===_?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():m===e.state.dropPosition&&_===e.state.dropLevelOffset&&b===e.state.dropTargetKey&&v===e.state.dropContainerKey&&y===e.state.dropTargetPos&&C===e.state.dropAllowed&&w===e.state.dragOverNodeKey||e.setState({dropPosition:m,dropLevelOffset:_,dropTargetKey:b,dropContainerKey:v,dropTargetPos:y,dropAllowed:C,dragOverNodeKey:w}),null==u||u({event:t,node:O(i.props)}))}},e.onNodeDragLeave=function(t,i){e.currentMouseOverDroppableNodeKey!==i.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var n=e.props.onDragLeave;null==n||n({event:t,node:O(i.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,i){var n=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==n||n({event:t,node:O(i.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(t,i){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.state,s=o.dragChildrenKeys,a=o.dropPosition,d=o.dropTargetKey,u=o.dropTargetPos;if(o.dropAllowed){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==d){var h=(0,l.Z)((0,l.Z)({},A(d,e.getTreeNodeRequiredProps())),{},{active:(null===(n=e.getActiveItem())||void 0===n?void 0:n.key)===d,data:e.state.keyEntities[d].node}),g=-1!==s.indexOf(d);(0,_.ZP)(!g,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=z(u),f={event:t,node:O(h),dragNode:e.dragNode?O(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(s),dropToGap:0!==a,dropPosition:a+Number(p[p.length-1])};r||null==c||c(f),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,i){var n=e.state,r=n.expandedKeys,o=n.flattenNodes,s=i.expanded,a=i.key;if(!i.isLeaf&&!t.shiftKey&&!t.metaKey&&!t.ctrlKey){var d=o.filter(function(e){return e.key===a})[0],u=O((0,l.Z)((0,l.Z)({},A(a,e.getTreeNodeRequiredProps())),{},{data:d.data}));e.setExpandedKeys(s?H(r,a):V(r,a)),e.onNodeExpand(t,u)}},e.onNodeClick=function(t,i){var n=e.props,r=n.onClick;"click"===n.expandAction&&e.triggerExpandActionExpand(t,i),null==r||r(t,i)},e.onNodeDoubleClick=function(t,i){var n=e.props,r=n.onDoubleClick;"doubleClick"===n.expandAction&&e.triggerExpandActionExpand(t,i),null==r||r(t,i)},e.onNodeSelect=function(t,i){var n=e.state.selectedKeys,r=e.state,o=r.keyEntities,s=r.fieldNames,a=e.props,l=a.onSelect,d=a.multiple,u=i.selected,c=i[s.key],h=!u,g=(n=h?d?V(n,c):[c]:H(n,c)).map(function(e){var t=o[e];return t?t.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:n}),null==l||l(n,{event:"select",selected:h,node:i,selectedNodes:g,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,i,n){var r,o=e.state,s=o.keyEntities,a=o.checkedKeys,l=o.halfCheckedKeys,u=e.props,c=u.checkStrictly,h=u.onCheck,g=i.key,p={event:"check",node:i,checked:n,nativeEvent:t.nativeEvent};if(c){var f=n?V(a,g):H(a,g);r={checked:f,halfChecked:H(l,g)},p.checkedNodes=f.map(function(e){return s[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:f})}else{var m=ep([].concat((0,d.Z)(a),[g]),!0,s),_=m.checkedKeys,b=m.halfCheckedKeys;if(!n){var v=new Set(_);v.delete(g);var C=ep(Array.from(v),{checked:!1,halfCheckedKeys:b},s);_=C.checkedKeys,b=C.halfCheckedKeys}r=_,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=b,_.forEach(function(e){var t=s[e];if(t){var i=t.node,n=t.pos;p.checkedNodes.push(i),p.checkedNodesPositions.push({node:i,pos:n})}}),e.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:b})}null==h||h(r,p)},e.onNodeLoad=function(t){var i=t.key,n=new Promise(function(n,r){e.setState(function(o){var s=o.loadedKeys,a=o.loadingKeys,l=void 0===a?[]:a,d=e.props,u=d.loadData,c=d.onLoad;return u&&-1===(void 0===s?[]:s).indexOf(i)&&-1===l.indexOf(i)?(u(t).then(function(){var r=V(e.state.loadedKeys,i);null==c||c(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState(function(e){return{loadingKeys:H(e.loadingKeys,i)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:H(e.loadingKeys,i)}}),e.loadingRetryTimes[i]=(e.loadingRetryTimes[i]||0)+1,e.loadingRetryTimes[i]>=10){var o=e.state.loadedKeys;(0,_.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:V(o,i)}),n()}r(t)}),{loadingKeys:V(l,i)}):null})});return n.catch(function(){}),n},e.onNodeMouseEnter=function(t,i){var n=e.props.onMouseEnter;null==n||n({event:t,node:i})},e.onNodeMouseLeave=function(t,i){var n=e.props.onMouseLeave;null==n||n({event:t,node:i})},e.onNodeContextMenu=function(t,i){var n=e.props.onRightClick;n&&(t.preventDefault(),n({event:t,node:i}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var i=arguments.length,n=Array(i),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,o=!0,s={};Object.keys(t).forEach(function(i){if(i in e.props){o=!1;return}r=!0,s[i]=t[i]}),r&&(!i||o)&&e.setState((0,l.Z)((0,l.Z)({},s),n))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,c.Z)(i,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,i=this.state,n=i.focused,r=i.flattenNodes,l=i.keyEntities,d=i.draggingNodeKey,u=i.activeKey,c=i.dropLevelOffset,h=i.dropContainerKey,g=i.dropTargetKey,p=i.dropPosition,m=i.dragOverNodeKey,_=i.indent,v=this.props,w=v.prefixCls,S=v.className,E=v.style,k=v.showLine,L=v.focusable,x=v.tabIndex,N=v.selectable,D=v.showIcon,T=v.icon,I=v.switcherIcon,R=v.draggable,A=v.checkable,O=v.checkStrictly,M=v.disabled,P=v.motion,F=v.loadData,B=v.filterTreeNode,W=v.height,H=v.itemHeight,V=v.virtual,z=v.titleRender,U=v.dropIndicatorRender,$=v.onContextMenu,K=v.onScroll,j=v.direction,G=v.rootClassName,q=v.rootStyle,Z=(0,b.Z)(this.props,{aria:!0,data:!0});return R&&(t="object"===(0,a.Z)(R)?R:"function"==typeof R?{nodeDraggable:R}:{}),f.createElement(y.Provider,{value:{prefixCls:w,selectable:N,showIcon:D,icon:T,switcherIcon:I,draggable:t,draggingNodeKey:d,checkable:A,checkStrictly:O,disabled:M,keyEntities:l,dropLevelOffset:c,dropContainerKey:h,dropTargetKey:g,dropPosition:p,dragOverNodeKey:m,indent:_,direction:j,dropIndicatorRender:U,loadData:F,filterTreeNode:B,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},f.createElement("div",{role:"tree",className:C()(w,S,G,(e={},(0,s.Z)(e,"".concat(w,"-show-line"),k),(0,s.Z)(e,"".concat(w,"-focused"),n),(0,s.Z)(e,"".concat(w,"-active-focused"),null!==u),e)),style:q},f.createElement(ec,(0,o.Z)({ref:this.listRef,prefixCls:w,style:E,data:r,disabled:M,selectable:N,checkable:!!A,motion:P,dragging:null!==d,height:W,itemHeight:H,virtual:V,focusable:L,focused:n,tabIndex:void 0===x?0:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$,onScroll:K},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var i,n,r=t.prevProps,o={prevProps:e};function a(t){return!r&&t in e||r&&r[t]!==e[t]}var d=t.fieldNames;if(a("fieldNames")&&(d=D(e.fieldNames),o.fieldNames=d),a("treeData")?i=e.treeData:a("children")&&((0,_.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),i=T(e.children)),i){o.treeData=i;var u=R(i,{fieldNames:d});o.keyEntities=(0,l.Z)((0,s.Z)({},eo,ea),u.keyEntities)}var c=o.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?j(e.expandedKeys,c):e.expandedKeys;else if(!r&&e.defaultExpandAll){var h=(0,l.Z)({},c);delete h[eo],o.expandedKeys=Object.keys(h).map(function(e){return h[e].key})}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?j(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,i||o.expandedKeys){var g=I(i||t.treeData,o.expandedKeys||t.expandedKeys,d);o.flattenNodes=g}if(e.selectable&&(a("selectedKeys")?o.selectedKeys=$(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=$(e.defaultSelectedKeys,e))),e.checkable&&(a("checkedKeys")?n=K(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?n=K(e.defaultCheckedKeys)||{}:i&&(n=K(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),n)){var p=n,f=p.checkedKeys,m=void 0===f?[]:f,b=p.halfCheckedKeys,v=void 0===b?[]:b;if(!e.checkStrictly){var C=ep(m,!0,c);m=C.checkedKeys,v=C.halfCheckedKeys}o.checkedKeys=m,o.halfCheckedKeys=v}return a("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),i}(f.Component);ef.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,i=e.dropLevelOffset,n=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:r.top=0,r.left=-i*n;break;case 1:r.bottom=0,r.left=-i*n;break;case 0:r.bottom=0,r.left=n}return f.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1},ef.TreeNode=W;var em={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},e_=i(1240),eb=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:em}))}),ev={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},eC=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ev}))}),ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ew=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ey}))}),eS=i(79746),eE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ek=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:eE}))}),eL=i(80716),ex=i(84596),eN=i(98663),eD=i(70721),eT=i(40650);let eI=e=>{let{checkboxCls:t}=e,i=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[i]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,eN.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + `),t.vars.palette.background.level2,k),({ownerState:e,theme:t})=>{var i,n,o,s;let a=(null==(i=t.components)||null==(i=i.JoyTypography)||null==(i=i.defaultProps)?void 0:i.level)||"body1";return[{display:"block",position:"relative","--unstable_pseudo-zIndex":9,"--unstable_pulse-bg":t.vars.palette.background.level1,overflow:"hidden",cursor:"default","& *":{visibility:"hidden"},"&::before":{display:"block",content:'" "',top:0,bottom:0,left:0,right:0,zIndex:"var(--unstable_pseudo-zIndex)",borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"--unstable_wave-bg":"rgba(255 255 255 / 0.1)"}},"rectangular"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",height:"auto",width:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"circular"===e.variant&&(0,r.Z)({borderRadius:"50%",width:"100%",height:"100%","&::before":{position:"absolute"}},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level])),"text"===e.variant&&(0,r.Z)({borderRadius:"min(0.15em, 6px)",background:"transparent",width:"100%"},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level||a],{paddingBlockStart:`calc((${(null==(n=t.typography[e.level||a])?void 0:n.lineHeight)||1} - 1) * 0.56em)`,paddingBlockEnd:`calc((${(null==(o=t.typography[e.level||a])?void 0:o.lineHeight)||1} - 1) * 0.44em)`,"&::before":(0,r.Z)({height:"1em"},t.typography[e.level||a],"wave"===e.animation&&{backgroundColor:t.vars.palette.background.level2},!e.animation&&{backgroundColor:t.vars.palette.background.level2}),"&::after":(0,r.Z)({height:"1em",top:`calc((${(null==(s=t.typography[e.level||a])?void 0:s.lineHeight)||1} - 1) * 0.56em)`},t.typography[e.level||a])})),"inline"===e.variant&&(0,r.Z)({display:"inline",position:"initial",borderRadius:"min(0.15em, 6px)"},!e.animation&&{backgroundColor:t.vars.palette.background.level2},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"-webkit-mask-image":"-webkit-radial-gradient(white, black)","&::before":{position:"absolute",zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}},"pulse"===e.animation&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:"var(--unstable_pseudo-zIndex)",backgroundColor:t.vars.palette.background.level2}}),"overlay"===e.variant&&(0,r.Z)({borderRadius:t.vars.radius.xs,position:"absolute",width:"100%",height:"100%",zIndex:"var(--unstable_pseudo-zIndex)"},"pulse"===e.animation&&{backgroundColor:t.vars.palette.background.surface},"inherit"!==e.level&&(0,r.Z)({},t.typography[e.level]),{"&::before":{position:"absolute"}})]}),x=o.forwardRef(function(e,t){let i=(0,u.Z)({props:e,name:"JoySkeleton"}),{className:a,component:l="span",children:d,animation:c="pulse",overlay:h=!1,loading:g=!0,variant:_="overlay",level:b="text"===_?"body1":"inherit",height:v,width:C,sx:y,slots:w={},slotProps:E={}}=i,k=(0,n.Z)(i,m),x=(0,r.Z)({},k,{component:l,slots:w,slotProps:E,sx:[{width:C,height:v},...Array.isArray(y)?y:[y]]}),N=(0,r.Z)({},i,{animation:c,component:l,level:b,loading:g,overlay:h,variant:_,width:C,height:v}),D=S(N),[T,I]=(0,p.Z)("root",{ref:t,className:(0,s.Z)(D.root,a),elementType:L,externalForwardedProps:x,ownerState:N});return g?(0,f.jsx)(T,(0,r.Z)({},I,{children:d})):(0,f.jsx)(o.Fragment,{children:o.Children.map(d,(e,t)=>0===t&&o.isValidElement(e)?o.cloneElement(e,{"data-first-child":""}):e)})});x.muiName="Skeleton";var N=x},35891:function(e,t,i){"use strict";i.d(t,{Z:function(){return R}});var n=i(46750),r=i(40431),o=i(86006),s=i(89791),a=i(53832),l=i(24263),d=i(49657),u=i(66519),c=i(21454),h=i(99179),g=i(47562),p=i(67222),f=i(50645),m=i(88930),_=i(326),b=i(47093),v=i(18587);function C(e){return(0,v.d6)("MuiTooltip",e)}(0,v.sI)("MuiTooltip",["root","tooltipArrow","arrow","touch","placementLeft","placementRight","placementTop","placementBottom","colorPrimary","colorDanger","colorInfo","colorNeutral","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid"]);var y=i(9268);let w=["children","className","component","arrow","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","disablePortal","direction","keepMounted","modifiers","placement","title","color","variant","size","slots","slotProps"],S=e=>{let{arrow:t,variant:i,color:n,size:r,placement:o,touch:s}=e,l={root:["root",t&&"tooltipArrow",s&&"touch",r&&`size${(0,a.Z)(r)}`,n&&`color${(0,a.Z)(n)}`,i&&`variant${(0,a.Z)(i)}`,`tooltipPlacement${(0,a.Z)(o.split("-")[0])}`],arrow:["arrow"]};return(0,g.Z)(l,C,{})},E=(0,f.Z)("div",{name:"JoyTooltip",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>{var i,n,o;let s=null==(i=t.variants[e.variant])?void 0:i[e.color];return(0,r.Z)({},"sm"===e.size&&{"--Icon-fontSize":"1rem","--Tooltip-arrowSize":"8px",padding:t.spacing(.5,.625),fontSize:t.vars.fontSize.xs},"md"===e.size&&{"--Icon-fontSize":"1.125rem","--Tooltip-arrowSize":"10px",padding:t.spacing(.625,.75),fontSize:t.vars.fontSize.sm},"lg"===e.size&&{"--Icon-fontSize":"1.25rem","--Tooltip-arrowSize":"12px",padding:t.spacing(.75,1),fontSize:t.vars.fontSize.md},{zIndex:t.vars.zIndex.tooltip,borderRadius:t.vars.radius.xs,boxShadow:t.shadow.sm,fontFamily:t.vars.fontFamily.body,fontWeight:t.vars.fontWeight.md,lineHeight:t.vars.lineHeight.sm,wordWrap:"break-word",position:"relative"},e.disableInteractive&&{pointerEvents:"none"},s,!s.backgroundColor&&{backgroundColor:t.vars.palette.background.surface},{"&::before":{content:'""',display:"block",position:"absolute",width:null!=(n=e.placement)&&n.match(/(top|bottom)/)?"100%":"calc(10px + var(--variant-borderWidth, 0px))",height:null!=(o=e.placement)&&o.match(/(top|bottom)/)?"calc(10px + var(--variant-borderWidth, 0px))":"100%"},'&[data-popper-placement*="bottom"]::before':{top:0,left:0,transform:"translateY(-100%)"},'&[data-popper-placement*="left"]::before':{top:0,right:0,transform:"translateX(100%)"},'&[data-popper-placement*="right"]::before':{top:0,left:0,transform:"translateX(-100%)"},'&[data-popper-placement*="top"]::before':{bottom:0,left:0,transform:"translateY(100%)"}})}),k=(0,f.Z)("span",{name:"JoyTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e,ownerState:t})=>{var i,n,r;let o=null==(i=e.variants[t.variant])?void 0:i[t.color];return{"--unstable_Tooltip-arrowRotation":0,width:"var(--Tooltip-arrowSize)",height:"var(--Tooltip-arrowSize)",boxSizing:"border-box","&:before":{content:'""',display:"block",position:"absolute",width:0,height:0,border:"calc(var(--Tooltip-arrowSize) / 2) solid",borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:null!=(n=null==o?void 0:o.backgroundColor)?n:e.vars.palette.background.surface,borderRightColor:null!=(r=null==o?void 0:o.backgroundColor)?r:e.vars.palette.background.surface,borderRadius:"0px 2px 0px 0px",boxShadow:`var(--variant-borderWidth, 0px) calc(-1 * var(--variant-borderWidth, 0px)) 0px 0px ${o.borderColor}`,transformOrigin:"center center",transform:"rotate(calc(-45deg + 90deg * var(--unstable_Tooltip-arrowRotation)))"},'[data-popper-placement*="bottom"] &':{top:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="top"] &':{"--unstable_Tooltip-arrowRotation":2,bottom:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="left"] &':{"--unstable_Tooltip-arrowRotation":1,right:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"},'[data-popper-placement*="right"] &':{"--unstable_Tooltip-arrowRotation":3,left:"calc(0.5px + var(--Tooltip-arrowSize) * -1 / 2)"}}}),L=!1,x=null,N={x:0,y:0};function D(e,t){return i=>{t&&t(i),e(i)}}function T(e,t){return i=>{t&&t(i),e(i)}}let I=o.forwardRef(function(e,t){var i;let a=(0,m.Z)({props:e,name:"JoyTooltip"}),{children:g,className:f,component:v,arrow:C=!1,describeChild:I=!1,disableFocusListener:R=!1,disableHoverListener:A=!1,disableInteractive:O=!1,disableTouchListener:M=!1,enterDelay:P=100,enterNextDelay:F=0,enterTouchDelay:B=700,followCursor:W=!1,id:H,leaveDelay:V=0,leaveTouchDelay:z=1500,onClose:U,onOpen:$,open:K,disablePortal:j,direction:G,keepMounted:q,modifiers:Z,placement:Y="bottom",title:Q,color:X="neutral",variant:J="solid",size:ee="md",slots:et={},slotProps:ei={}}=a,en=(0,n.Z)(a,w),{getColor:er}=(0,b.VT)(J),eo=j?er(e.color,X):X,[es,ea]=o.useState(),[el,ed]=o.useState(null),eu=o.useRef(!1),ec=O||W,eh=o.useRef(),eg=o.useRef(),ep=o.useRef(),ef=o.useRef(),[em,e_]=(0,l.Z)({controlled:K,default:!1,name:"Tooltip",state:"open"}),eb=em,ev=(0,d.Z)(H),eC=o.useRef(),ey=o.useCallback(()=>{void 0!==eC.current&&(document.body.style.WebkitUserSelect=eC.current,eC.current=void 0),clearTimeout(ef.current)},[]);o.useEffect(()=>()=>{clearTimeout(eh.current),clearTimeout(eg.current),clearTimeout(ep.current),ey()},[ey]);let ew=e=>{x&&clearTimeout(x),L=!0,e_(!0),$&&!eb&&$(e)},eS=(0,u.Z)(e=>{x&&clearTimeout(x),x=setTimeout(()=>{L=!1},800+V),e_(!1),U&&eb&&U(e),clearTimeout(eh.current),eh.current=setTimeout(()=>{eu.current=!1},150)}),eE=e=>{eu.current&&"touchstart"!==e.type||(es&&es.removeAttribute("title"),clearTimeout(eg.current),clearTimeout(ep.current),P||L&&F?eg.current=setTimeout(()=>{ew(e)},L?F:P):ew(e))},ek=e=>{clearTimeout(eg.current),clearTimeout(ep.current),ep.current=setTimeout(()=>{eS(e)},V)},{isFocusVisibleRef:eL,onBlur:ex,onFocus:eN,ref:eD}=(0,c.Z)(),[,eT]=o.useState(!1),eI=e=>{ex(e),!1===eL.current&&(eT(!1),ek(e))},eR=e=>{es||ea(e.currentTarget),eN(e),!0===eL.current&&(eT(!0),eE(e))},eA=e=>{eu.current=!0;let t=g.props;t.onTouchStart&&t.onTouchStart(e)};o.useEffect(()=>{if(eb)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&eS(e)}},[eS,eb]);let eO=(0,h.Z)(ea,t),eM=(0,h.Z)(eD,eO),eP=(0,h.Z)(g.ref,eM);"number"==typeof Q||Q||(eb=!1);let eF=o.useRef(null),eB={},eW="string"==typeof Q;I?(eB.title=eb||!eW||A?null:Q,eB["aria-describedby"]=eb?ev:null):(eB["aria-label"]=eW?Q:null,eB["aria-labelledby"]=eb&&!eW?ev:null);let eH=(0,r.Z)({},eB,en,{component:v},g.props,{className:(0,s.Z)(f,g.props.className),onTouchStart:eA,ref:eP},W?{onMouseMove:e=>{let t=g.props;t.onMouseMove&&t.onMouseMove(e),N={x:e.clientX,y:e.clientY},eF.current&&eF.current.update()}}:{}),eV={};M||(eH.onTouchStart=e=>{eA(e),clearTimeout(ep.current),clearTimeout(eh.current),ey(),eC.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ef.current=setTimeout(()=>{document.body.style.WebkitUserSelect=eC.current,eE(e)},B)},eH.onTouchEnd=e=>{g.props.onTouchEnd&&g.props.onTouchEnd(e),ey(),clearTimeout(ep.current),ep.current=setTimeout(()=>{eS(e)},z)}),A||(eH.onMouseOver=D(eE,eH.onMouseOver),eH.onMouseLeave=D(ek,eH.onMouseLeave),ec||(eV.onMouseOver=eE,eV.onMouseLeave=ek)),R||(eH.onFocus=T(eR,eH.onFocus),eH.onBlur=T(eI,eH.onBlur),ec||(eV.onFocus=eR,eV.onBlur=eI));let ez=(0,r.Z)({},a,{arrow:C,disableInteractive:ec,placement:Y,touch:eu.current,color:eo,variant:J,size:ee}),eU=S(ez),e$=(0,r.Z)({},en,{component:v,slots:et,slotProps:ei}),eK=o.useMemo(()=>[{name:"arrow",enabled:!!el,options:{element:el,padding:6}},{name:"offset",options:{offset:[0,10]}},...Z||[]],[el,Z]),[ej,eG]=(0,_.Z)("root",{additionalProps:(0,r.Z)({id:ev,popperRef:eF,placement:Y,anchorEl:W?{getBoundingClientRect:()=>({top:N.y,left:N.x,right:N.x,bottom:N.y,width:0,height:0})}:es,open:!!es&&eb,disablePortal:j,keepMounted:q,direction:G,modifiers:eK},eV),ref:null,className:eU.root,elementType:E,externalForwardedProps:e$,ownerState:ez}),[eq,eZ]=(0,_.Z)("arrow",{ref:ed,className:eU.arrow,elementType:k,externalForwardedProps:e$,ownerState:ez}),eY=(0,y.jsxs)(ej,(0,r.Z)({},eG,!(null!=(i=a.slots)&&i.root)&&{as:p.Z,slots:{root:v||"div"}},{children:[Q,C?(0,y.jsx)(eq,(0,r.Z)({},eZ)):null]}));return(0,y.jsxs)(o.Fragment,{children:[o.isValidElement(g)&&o.cloneElement(g,eH),j?eY:(0,y.jsx)(b.ZP.Provider,{value:void 0,children:eY})]})});var R=I},82372:function(e,t,i){e=i.nmd(e),ace.define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,t,i){"use strict";var n=e("./lib/dom"),r=e("./lib/oop"),o=e("./lib/event_emitter").EventEmitter,s=e("./lib/lang"),a=e("./range").Range,l=e("./range_list").RangeList,d=e("./keyboard/hash_handler").HashHandler,u=e("./tokenizer").Tokenizer,c=e("./clipboard"),h={CURRENT_WORD:function(e){return e.session.getTextRange(e.session.getWordRange())},SELECTION:function(e,t,i){var n=e.session.getTextRange();return i?n.replace(/\n\r?([ \t]*\S)/g,"\n"+i+"$1"):n},CURRENT_LINE:function(e){return e.session.getLine(e.getCursorPosition().row)},PREV_LINE:function(e){return e.session.getLine(e.getCursorPosition().row-1)},LINE_INDEX:function(e){return e.getCursorPosition().row},LINE_NUMBER:function(e){return e.getCursorPosition().row+1},SOFT_TABS:function(e){return e.session.getUseSoftTabs()?"YES":"NO"},TAB_SIZE:function(e){return e.session.getTabSize()},CLIPBOARD:function(e){return c.getText&&c.getText()},FILENAME:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0]},FILENAME_BASE:function(e){return/[^/\\]*$/.exec(this.FILEPATH(e))[0].replace(/\.[^.]*$/,"")},DIRECTORY:function(e){return this.FILEPATH(e).replace(/[^/\\]*$/,"")},FILEPATH:function(e){return"/not implemented.txt"},WORKSPACE_NAME:function(){return"Unknown"},FULLNAME:function(){return"Unknown"},BLOCK_COMMENT_START:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.start||""},BLOCK_COMMENT_END:function(e){var t=e.session.$mode||{};return t.blockComment&&t.blockComment.end||""},LINE_COMMENT:function(e){return(e.session.$mode||{}).lineCommentStart||""},CURRENT_YEAR:g.bind(null,{year:"numeric"}),CURRENT_YEAR_SHORT:g.bind(null,{year:"2-digit"}),CURRENT_MONTH:g.bind(null,{month:"numeric"}),CURRENT_MONTH_NAME:g.bind(null,{month:"long"}),CURRENT_MONTH_NAME_SHORT:g.bind(null,{month:"short"}),CURRENT_DATE:g.bind(null,{day:"2-digit"}),CURRENT_DAY_NAME:g.bind(null,{weekday:"long"}),CURRENT_DAY_NAME_SHORT:g.bind(null,{weekday:"short"}),CURRENT_HOUR:g.bind(null,{hour:"2-digit",hour12:!1}),CURRENT_MINUTE:g.bind(null,{minute:"2-digit"}),CURRENT_SECOND:g.bind(null,{second:"2-digit"})};function g(e){var t=new Date().toLocaleString("en-us",e);return 1==t.length?"0"+t:t}h.SELECTED_TEXT=h.SELECTION;var p=function(){function e(){this.snippetMap={},this.snippetNameMap={},this.variables=h}return e.prototype.getTokenizer=function(){return e.$tokenizer||this.createTokenizer()},e.prototype.createTokenizer=function(){function t(e){return(e=e.substr(1),/^\d+$/.test(e))?[{tabstopId:parseInt(e,10)}]:[{text:e}]}function i(e){return"(?:[^\\\\"+e+"]|\\\\.)"}var n={regex:"/("+i("/")+"+)/",onMatch:function(e,t,i){var n=i[0];return n.fmtString=!0,n.guard=e.slice(1,-1),n.flag="",""},next:"formatString"};return e.$tokenizer=new u({start:[{regex:/\\./,onMatch:function(e,t,i){var n=e[1];return"}"==n&&i.length?e=n:-1!="`$\\".indexOf(n)&&(e=n),[e]}},{regex:/}/,onMatch:function(e,t,i){return[i.length?i.shift():e]}},{regex:/\$(?:\d+|\w+)/,onMatch:t},{regex:/\$\{[\dA-Z_a-z]+/,onMatch:function(e,i,n){var r=t(e.substr(1));return n.unshift(r[0]),r},next:"snippetVar"},{regex:/\n/,token:"newline",merge:!1}],snippetVar:[{regex:"\\|"+i("\\|")+"*\\|",onMatch:function(e,t,i){var n=e.slice(1,-1).replace(/\\[,|\\]|,/g,function(e){return 2==e.length?e[1]:"\x00"}).split("\x00").map(function(e){return{value:e}});return i[0].choices=n,[n[0]]},next:"start"},n,{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"start"}],formatString:[{regex:/:/,onMatch:function(e,t,i){return i.length&&i[0].expectElse?(i[0].expectElse=!1,i[0].ifEnd={elseEnd:i[0]},[i[0].ifEnd]):":"}},{regex:/\\./,onMatch:function(e,t,i){var n=e[1];return"}"==n&&i.length?e=n:-1!="`$\\".indexOf(n)?e=n:"n"==n?e="\n":"t"==n?e=" ":-1!="ulULE".indexOf(n)&&(e={changeCase:n,local:n>"a"}),[e]}},{regex:"/\\w*}",onMatch:function(e,t,i){var n=i.shift();return n&&(n.flag=e.slice(1,-1)),this.next=n&&n.tabstopId?"start":"",[n||e]},next:"start"},{regex:/\$(?:\d+|\w+)/,onMatch:function(e,t,i){return[{text:e.slice(1)}]}},{regex:/\${\w+/,onMatch:function(e,t,i){var n={text:e.slice(2)};return i.unshift(n),[n]},next:"formatStringVar"},{regex:/\n/,token:"newline",merge:!1},{regex:/}/,onMatch:function(e,t,i){var n=i.shift();return this.next=n&&n.tabstopId?"start":"",[n||e]},next:"start"}],formatStringVar:[{regex:/:\/\w+}/,onMatch:function(e,t,i){return i[0].formatFunction=e.slice(2,-1),[i.shift()]},next:"formatString"},n,{regex:/:[\?\-+]?/,onMatch:function(e,t,i){"+"==e[1]&&(i[0].ifEnd=i[0]),"?"==e[1]&&(i[0].expectElse=!0)},next:"formatString"},{regex:"([^:}\\\\]|\\\\.)*:?",token:"",next:"formatString"}]}),e.$tokenizer},e.prototype.tokenizeTmSnippet=function(e,t){return this.getTokenizer().getLineTokens(e,t).tokens.map(function(e){return e.value||e})},e.prototype.getVariableValue=function(e,t,i){if(/^\d+$/.test(t))return(this.variables.__||{})[t]||"";if(/^[A-Z]\d+$/.test(t))return(this.variables[t[0]+"__"]||{})[t.substr(1)]||"";if(t=t.replace(/^TM_/,""),!this.variables.hasOwnProperty(t))return"";var n=this.variables[t];return"function"==typeof n&&(n=this.variables[t](e,t,i)),null==n?"":n},e.prototype.tmStrFormat=function(e,t,i){if(!t.fmt)return e;var n=t.flag||"",r=t.guard;r=new RegExp(r,n.replace(/[^gim]/g,""));var o="string"==typeof t.fmt?this.tokenizeTmSnippet(t.fmt,"formatString"):t.fmt,s=this;return e.replace(r,function(){var e=s.variables.__;s.variables.__=[].slice.call(arguments);for(var t=s.resolveVariables(o,i),n="E",r=0;r=0&&o.splice(s,1)}}e.content?r(e):Array.isArray(e)&&e.forEach(r)},e.prototype.parseSnippetFile=function(e){e=e.replace(/\r/g,"");for(var t,i=[],n={},r=/^#.*|^({[\s\S]*})\s*$|^(\S+) (.*)$|^((?:\n*\t.*)+)/gm;t=r.exec(e);){if(t[1])try{n=JSON.parse(t[1]),i.push(n)}catch(e){}if(t[4])n.content=t[4].replace(/^\t/gm,""),i.push(n),n={};else{var o=t[2],s=t[3];if("regex"==o){var a=/\/((?:[^\/\\]|\\.)*)|$/g;n.guard=a.exec(s)[1],n.trigger=a.exec(s)[1],n.endTrigger=a.exec(s)[1],n.endGuard=a.exec(s)[1]}else"snippet"==o?(n.tabTrigger=s.match(/^\S*/)[0],n.name||(n.name=s)):o&&(n[o]=s)}}return i},e.prototype.getSnippetByName=function(e,t){var i,n=this.snippetNameMap;return this.getActiveScopes(t).some(function(t){var r=n[t];return r&&(i=r[e]),!!i},this),i},e}();r.implement(p.prototype,o);var f=function(e,t,i){void 0===i&&(i={});var n=e.getCursorPosition(),r=e.session.getLine(n.row),o=e.session.getTabString(),s=r.match(/^\s*/)[0];n.column1?(_=t[t.length-1].length,m+=t.length-1):_+=e.length,b+=e}else e&&(e.start?e.end={row:m,column:_}:e.start={row:m,column:_})}),{text:b,tabstops:l,tokens:a}},m=function(){function e(e){if(this.index=0,this.ranges=[],this.tabstops=[],e.tabstopManager)return e.tabstopManager;e.tabstopManager=this,this.$onChange=this.onChange.bind(this),this.$onChangeSelection=s.delayedCall(this.onChangeSelection.bind(this)).schedule,this.$onChangeSession=this.onChangeSession.bind(this),this.$onAfterExec=this.onAfterExec.bind(this),this.attach(e)}return e.prototype.attach=function(e){this.$openTabstops=null,this.selectedTabstop=null,this.editor=e,this.session=e.session,this.editor.on("change",this.$onChange),this.editor.on("changeSelection",this.$onChangeSelection),this.editor.on("changeSession",this.$onChangeSession),this.editor.commands.on("afterExec",this.$onAfterExec),this.editor.keyBinding.addKeyboardHandler(this.keyboardHandler)},e.prototype.detach=function(){this.tabstops.forEach(this.removeTabstopMarkers,this),this.ranges.length=0,this.tabstops.length=0,this.selectedTabstop=null,this.editor.off("change",this.$onChange),this.editor.off("changeSelection",this.$onChangeSelection),this.editor.off("changeSession",this.$onChangeSession),this.editor.commands.off("afterExec",this.$onAfterExec),this.editor.keyBinding.removeKeyboardHandler(this.keyboardHandler),this.editor.tabstopManager=null,this.session=null,this.editor=null},e.prototype.onChange=function(e){for(var t="r"==e.action[0],i=this.selectedTabstop||{},n=i.parents||{},r=this.tabstops.slice(),o=0;o2&&(this.tabstops.length&&o.push(o.splice(2,1)[0]),this.tabstops.splice.apply(this.tabstops,o))},e.prototype.addTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){e.markerId||(e.markerId=t.addMarker(e,"ace_snippet-marker","text"))})},e.prototype.removeTabstopMarkers=function(e){var t=this.session;e.forEach(function(e){t.removeMarker(e.markerId),e.markerId=null})},e.prototype.removeRange=function(e){var t=e.tabstop.indexOf(e);-1!=t&&e.tabstop.splice(t,1),-1!=(t=this.ranges.indexOf(e))&&this.ranges.splice(t,1),-1!=(t=e.tabstop.rangeList.ranges.indexOf(e))&&e.tabstop.splice(t,1),this.session.removeMarker(e.markerId),e.tabstop.length||(-1!=(t=this.tabstops.indexOf(e.tabstop))&&this.tabstops.splice(t,1),this.tabstops.length||this.detach())},e}();m.prototype.keyboardHandler=new d,m.prototype.keyboardHandler.bindKeys({Tab:function(e){t.snippetManager&&t.snippetManager.expandWithTab(e)||(e.tabstopManager.tabNext(1),e.renderer.scrollCursorIntoView())},"Shift-Tab":function(e){e.tabstopManager.tabNext(-1),e.renderer.scrollCursorIntoView()},Esc:function(e){e.tabstopManager.detach()}});var _=function(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row},b=function(e,t){e.row==t.row&&(e.column-=t.column),e.row-=t.row};n.importCssString("\n.ace_snippet-marker {\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n background: rgba(194, 193, 208, 0.09);\n border: 1px dotted rgba(211, 208, 235, 0.62);\n position: absolute;\n}","snippets.css",!1),t.snippetManager=new p,(function(){this.insertSnippet=function(e,i){return t.snippetManager.insertSnippet(this,e,i)},this.expandSnippet=function(e){return t.snippetManager.expandWithTab(this,e)}}).call(e("./editor").Editor.prototype)}),ace.define("ace/autocomplete/popup",["require","exports","module","ace/virtual_renderer","ace/editor","ace/range","ace/lib/event","ace/lib/lang","ace/lib/dom","ace/config"],function(e,t,i){"use strict";var n=e("../virtual_renderer").VirtualRenderer,r=e("../editor").Editor,o=e("../range").Range,s=e("../lib/event"),a=e("../lib/lang"),l=e("../lib/dom"),d=e("../config").nls,u=function(e){return"suggest-aria-id:".concat(e)},c=function(e){var t=new n(e);t.$maxLines=4;var i=new r(t);return i.setHighlightActiveLine(!1),i.setShowPrintMargin(!1),i.renderer.setShowGutter(!1),i.renderer.setHighlightGutterLine(!1),i.$mouseHandler.$focusTimeout=0,i.$highlightTagPending=!0,i};l.importCssString("\n.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #CAD6FA;\n z-index: 1;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\n background-color: #3a674e;\n}\n.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid #abbffe;\n margin-top: -1px;\n background: rgba(233,233,253,0.4);\n position: absolute;\n z-index: 2;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\n border: 1px solid rgba(109, 150, 13, 0.8);\n background: rgba(58, 103, 78, 0.62);\n}\n.ace_completion-meta {\n opacity: 0.5;\n margin-left: 0.9em;\n}\n.ace_completion-message {\n color: blue;\n}\n.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #2d69c7;\n}\n.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\n color: #93ca12;\n}\n.ace_editor.ace_autocomplete {\n width: 300px;\n z-index: 200000;\n border: 1px lightgray solid;\n position: fixed;\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n line-height: 1.4;\n background: #fefefe;\n color: #111;\n}\n.ace_dark.ace_editor.ace_autocomplete {\n border: 1px #484747 solid;\n box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.51);\n line-height: 1.4;\n background: #25282c;\n color: #c1c1c1;\n}\n.ace_autocomplete .ace_text-layer {\n width: calc(100% - 8px);\n}\n.ace_autocomplete .ace_line {\n display: flex;\n align-items: center;\n}\n.ace_autocomplete .ace_line > * {\n min-width: 0;\n flex: 0 0 auto;\n}\n.ace_autocomplete .ace_line .ace_ {\n flex: 0 1 auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.ace_autocomplete .ace_completion-spacer {\n flex: 1;\n}\n","autocompletion.css",!1),t.AcePopup=function(e){var t,i=l.createElement("div"),n=new c(i);e&&e.appendChild(i),i.style.display="none",n.renderer.content.style.cursor="default",n.renderer.setStyle("ace_autocomplete"),n.renderer.$textLayer.element.setAttribute("role","listbox"),n.renderer.$textLayer.element.setAttribute("aria-label",d("Autocomplete suggestions")),n.renderer.textarea.setAttribute("aria-hidden","true"),n.setOption("displayIndentGuides",!1),n.setOption("dragDelay",150);var r=function(){};n.focus=r,n.$isFocused=!0,n.renderer.$cursorLayer.restartTimer=r,n.renderer.$cursorLayer.element.style.opacity=0,n.renderer.$maxLines=8,n.renderer.$keepTextAreaAtCursor=!1,n.setHighlightActiveLine(!1),n.session.highlight(""),n.session.$searchHighlight.clazz="ace_highlight-marker",n.on("mousedown",function(e){var t=e.getDocumentPosition();n.selection.moveToPosition(t),g.start.row=g.end.row=t.row,e.stop()});var h=new o(-1,0,-1,1/0),g=new o(-1,0,-1,1/0);g.id=n.session.addMarker(g,"ace_active-line","fullLine"),n.setSelectOnHover=function(e){e?h.id&&(n.session.removeMarker(h.id),h.id=null):h.id=n.session.addMarker(h,"ace_line-hover","fullLine")},n.setSelectOnHover(!1),n.on("mousemove",function(e){if(!t){t=e;return}if(t.x!=e.x||t.y!=e.y){(t=e).scrollTop=n.renderer.scrollTop;var i=t.getDocumentPosition().row;h.start.row!=i&&(h.id||n.setRow(i),f(i))}}),n.renderer.on("beforeRender",function(){if(t&&-1!=h.start.row){t.$pos=null;var e=t.getDocumentPosition().row;h.id||n.setRow(e),f(e,!0)}}),n.renderer.on("afterRender",function(){var e=n.getRow(),t=n.renderer.$textLayer,i=t.element.childNodes[e-t.config.firstRow],r=document.activeElement;if(i!==t.selectedNode&&t.selectedNode&&(l.removeCssClass(t.selectedNode,"ace_selected"),r.removeAttribute("aria-activedescendant"),t.selectedNode.removeAttribute("id")),t.selectedNode=i,i){l.addCssClass(i,"ace_selected");var o=u(e);i.id=o,t.element.setAttribute("aria-activedescendant",o),r.setAttribute("aria-activedescendant",o),i.setAttribute("role","option"),i.setAttribute("aria-label",n.getData(e).value),i.setAttribute("aria-setsize",n.data.length),i.setAttribute("aria-posinset",e+1),i.setAttribute("aria-describedby","doc-tooltip")}});var p=function(){f(-1)},f=function(e,t){e!==h.start.row&&(h.start.row=h.end.row=e,t||n.session._emit("changeBackMarker"),n._emit("changeHoverMarker"))};n.getHoveredRow=function(){return h.start.row},s.addListener(n.container,"mouseout",p),n.on("hide",p),n.on("changeSelection",p),n.session.doc.getLength=function(){return n.data.length},n.session.doc.getLine=function(e){var t=n.data[e];return"string"==typeof t?t:t&&t.value||""};var m=n.session.bgTokenizer;return m.$tokenizeRow=function(e){var t=n.data[e],i=[];if(!t)return i;"string"==typeof t&&(t={value:t});var r=t.caption||t.value||t.name;function o(e,n){e&&i.push({type:(t.className||"")+(n||""),value:e})}for(var s=r.toLowerCase(),a=(n.filterText||"").toLowerCase(),l=0,d=0,u=0;u<=a.length;u++)if(u!=d&&(t.matchMask&1<=u?"bottom":"top"),"top"===r?(c.bottom=e.top-this.$borderSize,c.top=c.bottom-u):"bottom"===r&&(c.top=e.top+i+this.$borderSize,c.bottom=c.top+u);var p=c.top>=0&&c.bottom<=a;if(!o&&!p)return!1;p?d.$maxPixelHeight=null:"top"===r?d.$maxPixelHeight=g:d.$maxPixelHeight=h,"top"===r?(s.style.top="",s.style.bottom=a-c.bottom+"px",n.isTopdown=!1):(s.style.top=c.top+"px",s.style.bottom="",n.isTopdown=!0),s.style.display="";var f=e.left;return f+s.offsetWidth>l&&(f=l-s.offsetWidth),s.style.left=f+"px",s.style.right="",n.isOpen||(n.isOpen=!0,this._signal("show"),t=null),n.anchorPos=e,n.anchor=r,!0},n.show=function(e,t,i){this.tryShow(e,t,i?"bottom":void 0,!0)},n.goTo=function(e){var t=this.getRow(),i=this.session.getLength()-1;switch(e){case"up":t=t<=0?i:t-1;break;case"down":t=t>=i?-1:t+1;break;case"start":t=0;break;case"end":t=i}this.setRow(t)},n.getTextLeftOffset=function(){return this.$borderSize+this.renderer.$padding+this.$imageSize},n.$imageSize=0,n.$borderSize=1,n},t.$singleLineEditor=c,t.getAriaId=u}),ace.define("ace/autocomplete/inline",["require","exports","module","ace/snippets"],function(e,t,i){"use strict";var n=e("../snippets").snippetManager,r=function(){function e(){this.editor=null}return e.prototype.show=function(e,t,i){if(i=i||"",e&&this.editor&&this.editor!==e&&(this.hide(),this.editor=null),!e||!t)return!1;var r=t.snippet?n.getDisplayTextForSnippet(e,t.snippet):t.value;return!!(r&&r.startsWith(i))&&(this.editor=e,""===(r=r.slice(i.length))?e.removeGhostText():e.setGhostText(r),!0)},e.prototype.isOpen=function(){return!!this.editor&&!!this.editor.renderer.$ghostText},e.prototype.hide=function(){return!!this.editor&&(this.editor.removeGhostText(),!0)},e.prototype.destroy=function(){this.hide(),this.editor=null},e}();t.AceInline=r}),ace.define("ace/autocomplete/util",["require","exports","module"],function(e,t,i){"use strict";t.parForEach=function(e,t,i){var n=0,r=e.length;0===r&&i();for(var o=0;o=0&&i.test(e[o]);o--)r.push(e[o]);return r.reverse().join("")},t.retrieveFollowingIdentifier=function(e,t,i){i=i||n;for(var r=[],o=t;othis.filterText&&0===e.lastIndexOf(this.filterText,0))var t=this.filtered;else var t=this.all;this.filterText=e;var i=null;t=(t=(t=this.filterCompletions(t,this.filterText)).sort(function(e,t){return t.exactMatch-e.exactMatch||t.$score-e.$score||(e.caption||e.value).localeCompare(t.caption||t.value)})).filter(function(e){var t=e.snippet||e.caption||e.value;return t!==i&&(i=t,!0)}),this.filtered=t},e.prototype.filterCompletions=function(e,t){var i=[],n=t.toUpperCase(),r=t.toLowerCase();e:for(var o,s=0;o=e[s];s++){var a,l,d=!this.ignoreCaption&&o.caption||o.value||o.snippet;if(d){var u=-1,c=0,h=0;if(this.exactMatch){if(t!==d.substr(0,t.length))continue}else{var g=d.toLowerCase().indexOf(r);if(g>-1)h=g;else for(var p=0;p=0&&(m<0||f0&&(-1===u&&(h+=10),h+=l,c|=1<",a.escapeHTML(e.caption),"","
    ",a.escapeHTML(c(e.snippet))].join(""))},id:"snippetCompleter"},g=[h,d,u];t.setCompleters=function(e){g.length=0,e&&g.push.apply(g,e)},t.addCompleter=function(e){g.push(e)},t.textCompleter=d,t.keyWordCompleter=u,t.snippetCompleter=h;var p={name:"expandSnippet",exec:function(e){return r.expandWithTab(e)},bindKey:"Tab"},f=function(e,t){m(t.session.$mode)},m=function(e){"string"==typeof e&&(e=s.$modes[e]),e&&(r.files||(r.files={}),_(e.$id,e.snippetFileId),e.modes&&e.modes.forEach(m))},_=function(e,t){t&&e&&!r.files[e]&&(r.files[e]={},s.loadModule(t,function(t){t&&(r.files[e]=t,!t.snippets&&t.snippetText&&(t.snippets=r.parseSnippetFile(t.snippetText)),r.register(t.snippets||[],t.scope),t.includeScopes&&(r.snippetMap[t.scope].includeScopes=t.includeScopes,t.includeScopes.forEach(function(e){m("ace/mode/"+e)})))}))},b=function(e){var t=e.editor,i=t.completer&&t.completer.activated;if("backspace"===e.command.name)i&&!l.getCompletionPrefix(t)&&t.completer.detach();else if("insertstring"===e.command.name&&!i){n=e;var r=e.editor.$liveAutocompletionDelay;r?v.delay(r):C(e)}},v=a.delayedCall(function(){C(n)},0),C=function(e){var t=e.editor,i=l.getCompletionPrefix(t),n=l.triggerAutocomplete(t);if((i||n)&&i.length>=t.$liveAutocompletionThreshold){var r=o.for(t);r.autoShown=!0,r.showPopup(t)}},y=e("../editor").Editor;e("../config").defineOptions(y.prototype,"editor",{enableBasicAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:g),this.commands.addCommand(o.startCommand)):this.commands.removeCommand(o.startCommand)},value:!1},enableLiveAutocompletion:{set:function(e){e?(this.completers||(this.completers=Array.isArray(e)?e:g),this.commands.on("afterExec",b)):this.commands.off("afterExec",b)},value:!1},liveAutocompletionDelay:{initialValue:0},liveAutocompletionThreshold:{initialValue:0},enableSnippets:{set:function(e){e?(this.commands.addCommand(p),this.on("changeMode",f),f(null,this)):(this.commands.removeCommand(p),this.off("changeMode",f))},value:!1}})}),ace.require(["ace/ext/language_tools"],function(t){e&&(e.exports=t)})},7527:function(e,t,i){e=i.nmd(e),ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,i){"use strict";var n=e("./lib/oop");e("./lib/lang");var r=e("./lib/event_emitter").EventEmitter,o=e("./editor").Editor,s=e("./virtual_renderer").VirtualRenderer,a=e("./edit_session").EditSession,l=function(e,t,i){this.BELOW=1,this.BESIDE=0,this.$container=e,this.$theme=t,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(i||1),this.$cEditor=this.$editors[0],this.on("focus",(function(e){this.$cEditor=e}).bind(this))};(function(){n.implement(this,r),this.$createEditor=function(){var e=document.createElement("div");e.className=this.$editorCSS,e.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(e);var t=new o(new s(e,this.$theme));return t.on("focus",(function(){this._emit("focus",t)}).bind(this)),this.$editors.push(t),t.setFontSize(this.$fontSize),t},this.setSplits=function(e){var t;if(e<1)throw"The number of splits have to be > 0!";if(e!=this.$splits){if(e>this.$splits){for(;this.$splitse;)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new a(e.getDocument(),e.getMode()),i=e.getUndoManager();return t.setUndoManager(i),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var i;return i=null==t?this.$cEditor:this.$editors[t],this.$editors.some(function(t){return t.session===e})&&(e=this.$cloneSession(e)),i.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,i=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var n=t/this.$splits,r=0;rd)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(n==d)break}a=t}}return new r(o,s,a,e.getLine(a).length)},this.getCommentRegionBlock=function(e,t,i){for(var n=t.search(/\s*$/),o=e.getLength(),s=i,a=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;++is)return new r(s,n,u,t.length)}}).call(s.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,i){"use strict";var n=e("../lib/oop"),r=e("./text").Mode,o=e("./json_highlight_rules").JsonHighlightRules,s=e("./matching_brace_outdent").MatchingBraceOutdent,a=e("./folding/cstyle").FoldMode,l=e("../worker/worker_client").WorkerClient,d=function(){this.HighlightRules=o,this.$outdent=new s,this.$behaviour=this.$defaultBehaviour,this.foldingRules=new a};n.inherits(d,r),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,i){var n=this.$getIndent(t);return"start"==e&&t.match(/^.*[\{\(\[]\s*$/)&&(n+=i),n},this.checkOutdent=function(e,t,i){return this.$outdent.checkOutdent(t,i)},this.autoOutdent=function(e,t,i){this.$outdent.autoOutdent(t,i)},this.createWorker=function(e){var t=new l(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}).call(d.prototype),t.Mode=d}),ace.require(["ace/mode/json"],function(t){e&&(e.exports=t)})},1777:function(e,t,i){"use strict";i.d(t,{default:function(){return ea}});var n,r=i(8683),o=i.n(r),s=i(86006),a=i(79746),l=i(67518),d=i(40399),u=i(56222),c=i(40431),h=i(88684),g=i(65877),p=i(965);function f(e){return!!(e.addonBefore||e.addonAfter)}function m(e){return!!(e.prefix||e.suffix||e.allowClear)}function _(e,t,i,n){if(i){var r=t;if("click"===t.type){var o=e.cloneNode(!0);r=Object.create(t,{target:{value:o},currentTarget:{value:o}}),o.value="",i(r);return}if(void 0!==n){r=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=n,i(r);return}i(r)}}function b(e){return null==e?"":String(e)}var v=function(e){var t=e.inputElement,i=e.prefixCls,n=e.prefix,r=e.suffix,a=e.addonBefore,l=e.addonAfter,d=e.className,u=e.style,_=e.disabled,b=e.readOnly,v=e.focused,C=e.triggerFocus,y=e.allowClear,w=e.value,S=e.handleReset,E=e.hidden,k=e.classes,L=e.classNames,x=e.dataAttrs,N=e.styles,D=e.components,T=(null==D?void 0:D.affixWrapper)||"span",I=(null==D?void 0:D.groupWrapper)||"span",R=(null==D?void 0:D.wrapper)||"span",A=(null==D?void 0:D.groupAddon)||"span",O=(0,s.useRef)(null),M=(0,s.cloneElement)(t,{value:w,hidden:E,className:o()(null===(P=t.props)||void 0===P?void 0:P.className,!m(e)&&!f(e)&&d)||null,style:(0,h.Z)((0,h.Z)({},null===(F=t.props)||void 0===F?void 0:F.style),m(e)||f(e)?{}:u)});if(m(e)){var P,F,B,W="".concat(i,"-affix-wrapper"),H=o()(W,(B={},(0,g.Z)(B,"".concat(W,"-disabled"),_),(0,g.Z)(B,"".concat(W,"-focused"),v),(0,g.Z)(B,"".concat(W,"-readonly"),b),(0,g.Z)(B,"".concat(W,"-input-with-clear-btn"),r&&y&&w),B),!f(e)&&d,null==k?void 0:k.affixWrapper,null==L?void 0:L.affixWrapper),V=(r||y)&&s.createElement("span",{className:o()("".concat(i,"-suffix"),null==L?void 0:L.suffix),style:null==N?void 0:N.suffix},function(){if(!y)return null;var e,t=!_&&!b&&w,n="".concat(i,"-clear-icon"),a="object"===(0,p.Z)(y)&&null!=y&&y.clearIcon?y.clearIcon:"✖";return s.createElement("span",{onClick:S,onMouseDown:function(e){return e.preventDefault()},className:o()(n,(e={},(0,g.Z)(e,"".concat(n,"-hidden"),!t),(0,g.Z)(e,"".concat(n,"-has-suffix"),!!r),e)),role:"button",tabIndex:-1},a)}(),r);M=s.createElement(T,(0,c.Z)({className:H,style:(0,h.Z)((0,h.Z)({},f(e)?void 0:u),null==N?void 0:N.affixWrapper),hidden:!f(e)&&E,onClick:function(e){var t;null!==(t=O.current)&&void 0!==t&&t.contains(e.target)&&(null==C||C())}},null==x?void 0:x.affixWrapper,{ref:O}),n&&s.createElement("span",{className:o()("".concat(i,"-prefix"),null==L?void 0:L.prefix),style:null==N?void 0:N.prefix},n),(0,s.cloneElement)(t,{value:w,hidden:null}),V)}if(f(e)){var z="".concat(i,"-group"),U="".concat(z,"-addon"),$=o()("".concat(i,"-wrapper"),z,null==k?void 0:k.wrapper),K=o()("".concat(i,"-group-wrapper"),d,null==k?void 0:k.group);return s.createElement(I,{className:K,style:u,hidden:E},s.createElement(R,{className:$},a&&s.createElement(A,{className:U},a),(0,s.cloneElement)(M,{hidden:null}),l&&s.createElement(A,{className:U},l)))}return M},C=i(90151),y=i(60456),w=i(89301),S=i(63940),E=i(73234),k=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],L=(0,s.forwardRef)(function(e,t){var i,n=e.autoComplete,r=e.onChange,a=e.onFocus,l=e.onBlur,d=e.onPressEnter,u=e.onKeyDown,f=e.prefixCls,m=void 0===f?"rc-input":f,L=e.disabled,x=e.htmlSize,N=e.className,D=e.maxLength,T=e.suffix,I=e.showCount,R=e.type,A=e.classes,O=e.classNames,M=e.styles,P=(0,w.Z)(e,k),F=(0,S.Z)(e.defaultValue,{value:e.value}),B=(0,y.Z)(F,2),W=B[0],H=B[1],V=(0,s.useState)(!1),z=(0,y.Z)(V,2),U=z[0],$=z[1],K=(0,s.useRef)(null),j=function(e){K.current&&function(e,t){if(e){e.focus(t);var i=(t||{}).cursor;if(i){var n=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}(K.current,e)};return(0,s.useImperativeHandle)(t,function(){return{focus:j,blur:function(){var e;null===(e=K.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,i){var n;null===(n=K.current)||void 0===n||n.setSelectionRange(e,t,i)},select:function(){var e;null===(e=K.current)||void 0===e||e.select()},input:K.current}}),(0,s.useEffect)(function(){$(function(e){return(!e||!L)&&e})},[L]),s.createElement(v,(0,c.Z)({},P,{prefixCls:m,className:N,inputElement:(i=(0,E.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]),s.createElement("input",(0,c.Z)({autoComplete:n},i,{onChange:function(t){void 0===e.value&&H(t.target.value),K.current&&_(K.current,t,r)},onFocus:function(e){$(!0),null==a||a(e)},onBlur:function(e){$(!1),null==l||l(e)},onKeyDown:function(e){d&&"Enter"===e.key&&d(e),null==u||u(e)},className:o()(m,(0,g.Z)({},"".concat(m,"-disabled"),L),null==O?void 0:O.input),style:null==M?void 0:M.input,ref:K,size:x,type:void 0===R?"text":R}))),handleReset:function(e){H(""),j(),K.current&&_(K.current,e,r)},value:b(W),focused:U,triggerFocus:j,suffix:function(){var e=Number(D)>0;if(T||I){var t=b(W),i=(0,C.Z)(t).length,n="object"===(0,p.Z)(I)?I.formatter({value:t,count:i,maxLength:D}):"".concat(i).concat(e?" / ".concat(D):"");return s.createElement(s.Fragment,null,!!I&&s.createElement("span",{className:o()("".concat(m,"-show-count-suffix"),(0,g.Z)({},"".concat(m,"-show-count-has-suffix"),!!T),null==O?void 0:O.count),style:(0,h.Z)({},null==M?void 0:M.count)},n),T)}return null}(),disabled:L,classes:A,classNames:O,styles:M}))}),x=i(92510),N=i(24338),D=i(20538),T=i(30069),I=i(12381);function R(e,t){let i=(0,s.useRef)([]),n=()=>{i.current.push(setTimeout(()=>{var t,i,n,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&(null===(i=e.current)||void 0===i?void 0:i.input.getAttribute("type"))==="password"&&(null===(n=e.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))}))};return(0,s.useEffect)(()=>(t&&n(),()=>i.current.forEach(e=>{e&&clearTimeout(e)})),[]),n}var A=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let O=(0,s.forwardRef)((e,t)=>{var i;let n;let{prefixCls:r,bordered:c=!0,status:h,size:g,disabled:p,onBlur:f,onFocus:m,suffix:_,allowClear:b,addonAfter:v,addonBefore:C,className:y,style:w,styles:S,rootClassName:E,onChange:k,classNames:O}=e,M=A(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:P,direction:F,input:B}=s.useContext(a.E_),W=P("input",r),H=(0,s.useRef)(null),[V,z]=(0,d.ZP)(W),{compactSize:U,compactItemClassnames:$}=(0,I.ri)(W,F),K=(0,T.Z)(e=>{var t;return null!==(t=null!=g?g:U)&&void 0!==t?t:e}),j=s.useContext(D.Z),G=null!=p?p:j,{status:q,hasFeedback:Z,feedbackIcon:Y}=(0,s.useContext)(l.aM),Q=(0,N.F)(q,h),X=!!(e.prefix||e.suffix||e.allowClear)||!!Z,J=(0,s.useRef)(X);(0,s.useEffect)(()=>{X&&J.current,J.current=X},[X]);let ee=R(H,!0),et=(Z||_)&&s.createElement(s.Fragment,null,_,Z&&Y);return"object"==typeof b&&(null==b?void 0:b.clearIcon)?n=b:b&&(n={clearIcon:s.createElement(u.Z,null)}),V(s.createElement(L,Object.assign({ref:(0,x.sQ)(t,H),prefixCls:W,autoComplete:null==B?void 0:B.autoComplete},M,{disabled:G,onBlur:e=>{ee(),null==f||f(e)},onFocus:e=>{ee(),null==m||m(e)},style:Object.assign(Object.assign({},null==B?void 0:B.style),w),styles:Object.assign(Object.assign({},null==B?void 0:B.styles),S),suffix:et,allowClear:n,className:o()(y,E,$,null==B?void 0:B.className),onChange:e=>{ee(),null==k||k(e)},addonAfter:v&&s.createElement(I.BR,null,s.createElement(l.Ux,{override:!0,status:!0},v)),addonBefore:C&&s.createElement(I.BR,null,s.createElement(l.Ux,{override:!0,status:!0},C)),classNames:Object.assign(Object.assign(Object.assign({},O),null==B?void 0:B.classNames),{input:o()({[`${W}-sm`]:"small"===K,[`${W}-lg`]:"large"===K,[`${W}-rtl`]:"rtl"===F,[`${W}-borderless`]:!c},!X&&(0,N.Z)(W,Q),null==O?void 0:O.input,null===(i=null==B?void 0:B.classNames)||void 0===i?void 0:i.input,z)}),classes:{affixWrapper:o()({[`${W}-affix-wrapper-sm`]:"small"===K,[`${W}-affix-wrapper-lg`]:"large"===K,[`${W}-affix-wrapper-rtl`]:"rtl"===F,[`${W}-affix-wrapper-borderless`]:!c},(0,N.Z)(`${W}-affix-wrapper`,Q,Z),z),wrapper:o()({[`${W}-group-rtl`]:"rtl"===F},z),group:o()({[`${W}-group-wrapper-sm`]:"small"===K,[`${W}-group-wrapper-lg`]:"large"===K,[`${W}-group-wrapper-rtl`]:"rtl"===F,[`${W}-group-wrapper-disabled`]:G},(0,N.Z)(`${W}-group-wrapper`,Q,Z),z)}})))});var M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},P=i(1240),F=s.forwardRef(function(e,t){return s.createElement(P.Z,(0,c.Z)({},e,{ref:t,icon:M}))}),B=i(31515),W=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let H=e=>e?s.createElement(B.Z,null):s.createElement(F,null),V={click:"onClick",hover:"onMouseOver"},z=s.forwardRef((e,t)=>{let{visibilityToggle:i=!0}=e,n="object"==typeof i&&void 0!==i.visible,[r,l]=(0,s.useState)(()=>!!n&&i.visible),d=(0,s.useRef)(null);s.useEffect(()=>{n&&l(i.visible)},[n,i]);let u=R(d),c=()=>{let{disabled:t}=e;t||(r&&u(),l(e=>{var t;let n=!e;return"object"==typeof i&&(null===(t=i.onVisibleChange)||void 0===t||t.call(i,n)),n}))},{className:h,prefixCls:g,inputPrefixCls:p,size:f}=e,m=W(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:_}=s.useContext(a.E_),b=_("input",p),v=_("input-password",g),C=i&&(t=>{let{action:i="click",iconRender:n=H}=e,o=V[i]||"",a=n(r),l={[o]:c,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return s.cloneElement(s.isValidElement(a)?a:s.createElement("span",null,a),l)})(v),y=o()(v,h,{[`${v}-${f}`]:!!f}),w=Object.assign(Object.assign({},(0,E.Z)(m,["suffix","iconRender","visibilityToggle"])),{type:r?"text":"password",className:y,prefixCls:b,suffix:C});return f&&(w.size=f),s.createElement(O,Object.assign({ref:(0,x.sQ)(t,d)},w))});var U=i(63362),$=i(52593),K=i(50946),j=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let G=s.forwardRef((e,t)=>{let i;let{prefixCls:n,inputPrefixCls:r,className:l,size:d,suffix:u,enterButton:c=!1,addonAfter:h,loading:g,disabled:p,onSearch:f,onChange:m,onCompositionStart:_,onCompositionEnd:b}=e,v=j(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:C,direction:y}=s.useContext(a.E_),w=s.useRef(!1),S=C("input-search",n),E=C("input",r),{compactSize:k}=(0,I.ri)(S,y),L=(0,T.Z)(e=>{var t;return null!==(t=null!=d?d:k)&&void 0!==t?t:e}),N=s.useRef(null),D=e=>{var t;document.activeElement===(null===(t=N.current)||void 0===t?void 0:t.input)&&e.preventDefault()},R=e=>{var t,i;f&&f(null===(i=null===(t=N.current)||void 0===t?void 0:t.input)||void 0===i?void 0:i.value,e)},A="boolean"==typeof c?s.createElement(U.Z,null):null,M=`${S}-button`,P=c||{},F=P.type&&!0===P.type.__ANT_BUTTON;i=F||"button"===P.type?(0,$.Tm)(P,Object.assign({onMouseDown:D,onClick:e=>{var t,i;null===(i=null===(t=null==P?void 0:P.props)||void 0===t?void 0:t.onClick)||void 0===i||i.call(t,e),R(e)},key:"enterButton"},F?{className:M,size:L}:{})):s.createElement(K.ZP,{className:M,type:c?"primary":void 0,size:L,disabled:p,key:"enterButton",onMouseDown:D,onClick:R,loading:g,icon:A},c),h&&(i=[i,(0,$.Tm)(h,{key:"addonAfter"})]);let B=o()(S,{[`${S}-rtl`]:"rtl"===y,[`${S}-${L}`]:!!L,[`${S}-with-button`]:!!c},l);return s.createElement(O,Object.assign({ref:(0,x.sQ)(N,t),onPressEnter:e=>{w.current||g||R(e)}},v,{size:L,onCompositionStart:e=>{w.current=!0,null==_||_(e)},onCompositionEnd:e=>{w.current=!1,null==b||b(e)},prefixCls:E,addonAfter:i,suffix:u,onChange:e=>{e&&e.target&&"click"===e.type&&f&&f(e.target.value,e),m&&m(e)},className:B,disabled:p}))});var q=i(29333),Z=i(38358),Y=i(66643),Q=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],X={},J=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ee=s.forwardRef(function(e,t){var i=e.prefixCls,r=(e.onPressEnter,e.defaultValue),a=e.value,l=e.autoSize,d=e.onResize,u=e.className,f=e.style,m=e.disabled,_=e.onChange,b=(e.onInternalAutoSize,(0,w.Z)(e,J)),v=(0,S.Z)(r,{value:a,postState:function(e){return null!=e?e:""}}),C=(0,y.Z)(v,2),E=C[0],k=C[1],L=s.useRef();s.useImperativeHandle(t,function(){return{textArea:L.current}});var x=s.useMemo(function(){return l&&"object"===(0,p.Z)(l)?[l.minRows,l.maxRows]:[]},[l]),N=(0,y.Z)(x,2),D=N[0],T=N[1],I=!!l,R=function(){try{if(document.activeElement===L.current){var e=L.current,t=e.selectionStart,i=e.selectionEnd,n=e.scrollTop;L.current.setSelectionRange(t,i),L.current.scrollTop=n}}catch(e){}},A=s.useState(2),O=(0,y.Z)(A,2),M=O[0],P=O[1],F=s.useState(),B=(0,y.Z)(F,2),W=B[0],H=B[1],V=function(){P(0)};(0,Z.Z)(function(){I&&V()},[a,D,T,I]),(0,Z.Z)(function(){if(0===M)P(1);else if(1===M){var e=function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n||((n=document.createElement("textarea")).setAttribute("tab-index","-1"),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),e.getAttribute("wrap")?n.setAttribute("wrap",e.getAttribute("wrap")):n.removeAttribute("wrap");var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&X[i])return X[i];var n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),s=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:Q.map(function(e){return"".concat(e,":").concat(n.getPropertyValue(e))}).join(";"),paddingSize:o,borderSize:s,boxSizing:r};return t&&i&&(X[i]=a),a}(e,i),a=s.paddingSize,l=s.borderSize,d=s.boxSizing,u=s.sizingStyle;n.setAttribute("style","".concat(u,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),n.value=e.value||e.placeholder||"";var c=void 0,h=void 0,g=n.scrollHeight;if("border-box"===d?g+=l:"content-box"===d&&(g-=a),null!==r||null!==o){n.value=" ";var p=n.scrollHeight-a;null!==r&&(c=p*r,"border-box"===d&&(c=c+a+l),g=Math.max(c,g)),null!==o&&(h=p*o,"border-box"===d&&(h=h+a+l),t=g>h?"":"hidden",g=Math.min(h,g))}var f={height:g,overflowY:t,resize:"none"};return c&&(f.minHeight=c),h&&(f.maxHeight=h),f}(L.current,!1,D,T);P(2),H(e)}else R()},[M]);var z=s.useRef(),U=function(){Y.Z.cancel(z.current)};s.useEffect(function(){return U},[]);var $=I?W:null,K=(0,h.Z)((0,h.Z)({},f),$);return(0===M||1===M)&&(K.overflowY="hidden",K.overflowX="hidden"),s.createElement(q.Z,{onResize:function(e){2===M&&(null==d||d(e),l&&(U(),z.current=(0,Y.Z)(function(){V()})))},disabled:!(l||d)},s.createElement("textarea",(0,c.Z)({},b,{ref:L,style:K,className:o()(i,u,(0,g.Z)({},"".concat(i,"-disabled"),m)),disabled:m,value:E,onChange:function(e){k(e.target.value),null==_||_(e)}})))}),et=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ei(e,t){return(0,C.Z)(e||"").slice(0,t).join("")}function en(e,t,i,n){var r=i;return e?r=ei(i,n):(0,C.Z)(t||"").lengthn&&(r=t),r}var er=s.forwardRef(function(e,t){var i,n,r=e.defaultValue,a=e.value,l=e.onFocus,d=e.onBlur,u=e.onChange,f=e.allowClear,m=e.maxLength,E=e.onCompositionStart,k=e.onCompositionEnd,L=e.suffix,x=e.prefixCls,N=void 0===x?"rc-textarea":x,D=e.classes,T=e.showCount,I=e.className,R=e.style,A=e.disabled,O=e.hidden,M=e.classNames,P=e.styles,F=e.onResize,B=(0,w.Z)(e,et),W=(0,S.Z)(r,{value:a,defaultValue:r}),H=(0,y.Z)(W,2),V=H[0],z=H[1],U=(0,s.useRef)(null),$=s.useState(!1),K=(0,y.Z)($,2),j=K[0],G=K[1],q=s.useState(!1),Z=(0,y.Z)(q,2),Y=Z[0],Q=Z[1],X=s.useRef(),J=s.useRef(0),er=s.useState(null),eo=(0,y.Z)(er,2),es=eo[0],ea=eo[1],el=function(){var e;null===(e=U.current)||void 0===e||e.textArea.focus()};(0,s.useImperativeHandle)(t,function(){return{resizableTextArea:U.current,focus:el,blur:function(){var e;null===(e=U.current)||void 0===e||e.textArea.blur()}}}),(0,s.useEffect)(function(){G(function(e){return!A&&e})},[A]);var ed=Number(m)>0,eu=b(V);!Y&&ed&&null==a&&(eu=ei(eu,m));var ec=L;if(T){var eh=(0,C.Z)(eu).length;n="object"===(0,p.Z)(T)?T.formatter({value:eu,count:eh,maxLength:m}):"".concat(eh).concat(ed?" / ".concat(m):""),ec=s.createElement(s.Fragment,null,ec,s.createElement("span",{className:o()("".concat(N,"-data-count"),null==M?void 0:M.count),style:null==P?void 0:P.count},n))}var eg=!B.autoSize&&!T&&!f;return s.createElement(v,{value:eu,allowClear:f,handleReset:function(e){var t;z(""),el(),_(null===(t=U.current)||void 0===t?void 0:t.textArea,e,u)},suffix:ec,prefixCls:N,classes:{affixWrapper:o()(null==D?void 0:D.affixWrapper,(i={},(0,g.Z)(i,"".concat(N,"-show-count"),T),(0,g.Z)(i,"".concat(N,"-textarea-allow-clear"),f),i))},disabled:A,focused:j,className:I,style:(0,h.Z)((0,h.Z)({},R),es&&!eg?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof n?n:void 0}},hidden:O,inputElement:s.createElement(ee,(0,c.Z)({},B,{onKeyDown:function(e){var t=B.onPressEnter,i=B.onKeyDown;"Enter"===e.key&&t&&t(e),null==i||i(e)},onChange:function(e){var t=e.target.value;!Y&&ed&&(t=en(e.target.selectionStart>=m+1||e.target.selectionStart===t.length||!e.target.selectionStart,V,t,m)),z(t),_(e.currentTarget,e,u,t)},onFocus:function(e){G(!0),null==l||l(e)},onBlur:function(e){G(!1),null==d||d(e)},onCompositionStart:function(e){Q(!0),X.current=V,J.current=e.currentTarget.selectionStart,null==E||E(e)},onCompositionEnd:function(e){Q(!1);var t,i=e.currentTarget.value;ed&&(i=en(J.current>=m+1||J.current===(null===(t=X.current)||void 0===t?void 0:t.length),X.current,i,m)),i!==V&&(z(i),_(e.currentTarget,e,u,i)),null==k||k(e)},className:null==M?void 0:M.textarea,style:(0,h.Z)((0,h.Z)({},null==P?void 0:P.textarea),{},{resize:null==R?void 0:R.resize}),disabled:A,prefixCls:N,onResize:function(e){var t;null==F||F(e),null!==(t=U.current)&&void 0!==t&&t.textArea.style.height&&ea(!0)},ref:U}))})}),eo=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,n=Object.getOwnPropertySymbols(e);rt.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]]);return i};let es=(0,s.forwardRef)((e,t)=>{let i;let{prefixCls:n,bordered:r=!0,size:c,disabled:h,status:g,allowClear:p,showCount:f,classNames:m}=e,_=eo(e,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:b,direction:v}=s.useContext(a.E_),C=(0,T.Z)(c),y=s.useContext(D.Z),{status:w,hasFeedback:S,feedbackIcon:E}=s.useContext(l.aM),k=(0,N.F)(w,g),L=s.useRef(null);s.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=L.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,i;!function(e,t){if(!e)return;e.focus(t);let{cursor:i}=t||{};if(i){let t=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}(null===(i=null===(t=L.current)||void 0===t?void 0:t.resizableTextArea)||void 0===i?void 0:i.textArea,e)},blur:()=>{var e;return null===(e=L.current)||void 0===e?void 0:e.blur()}}});let x=b("input",n);"object"==typeof p&&(null==p?void 0:p.clearIcon)?i=p:p&&(i={clearIcon:s.createElement(u.Z,null)});let[I,R]=(0,d.ZP)(x);return I(s.createElement(er,Object.assign({},_,{disabled:null!=h?h:y,allowClear:i,classes:{affixWrapper:o()(`${x}-textarea-affix-wrapper`,{[`${x}-affix-wrapper-rtl`]:"rtl"===v,[`${x}-affix-wrapper-borderless`]:!r,[`${x}-affix-wrapper-sm`]:"small"===C,[`${x}-affix-wrapper-lg`]:"large"===C,[`${x}-textarea-show-count`]:f},(0,N.Z)(`${x}-affix-wrapper`,k),R)},classNames:Object.assign(Object.assign({},m),{textarea:o()({[`${x}-borderless`]:!r,[`${x}-sm`]:"small"===C,[`${x}-lg`]:"large"===C},(0,N.Z)(x,k),R,null==m?void 0:m.textarea)}),prefixCls:x,suffix:S&&s.createElement("span",{className:`${x}-textarea-suffix`},E),showCount:f,ref:L})))});O.Group=e=>{let{getPrefixCls:t,direction:i}=(0,s.useContext)(a.E_),{prefixCls:n,className:r}=e,u=t("input-group",n),c=t("input"),[h,g]=(0,d.ZP)(c),p=o()(u,{[`${u}-lg`]:"large"===e.size,[`${u}-sm`]:"small"===e.size,[`${u}-compact`]:e.compact,[`${u}-rtl`]:"rtl"===i},g,r),f=(0,s.useContext)(l.aM),m=(0,s.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return h(s.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(l.aM.Provider,{value:m},e.children)))},O.Search=G,O.TextArea=es,O.Password=z;var ea=O},61469:function(e,t,i){"use strict";i.d(t,{Z:function(){return e5}});var n,r,o=i(40431),s=i(65877),a=i(965),l=i(88684),d=i(90151),u=i(18050),c=i(49449),h=i(70184),g=i(43663),p=i(38340),f=i(86006),m=i(48580),_=i(5004),b=i(42442),v=i(8683),C=i.n(v),y=f.createContext(null),w=i(89301),S=f.memo(function(e){for(var t,i=e.prefixCls,n=e.level,r=e.isStart,o=e.isEnd,a="".concat(i,"-indent-unit"),l=[],d=0;d1&&void 0!==arguments[1]?arguments[1]:null;return i.map(function(c,h){for(var g,p=x(n?n.pos:"0",h),f=N(c[o],p),m=0;m1&&void 0!==arguments[1]?arguments[1]:{},p=g.initWrapper,f=g.processEntity,m=g.onProcessFinished,_=g.externalGetKey,b=g.childrenPropName,v=g.fieldNames,C=arguments.length>2?arguments[2]:void 0,y={},w={},S={posEntities:y,keyEntities:w};return p&&(S=p(S)||S),t=function(e){var t=e.node,i=e.index,n=e.pos,r=e.key,o=e.parentPos,s=e.level,a={node:t,nodes:e.nodes,index:i,key:r,pos:n,level:s},l=N(r,n);y[n]=a,w[l]=a,a.parent=y[o],a.parent&&(a.parent.children=a.parent.children||[],a.parent.children.push(a)),f&&f(a,S)},i={externalGetKey:_||C,childrenPropName:b,fieldNames:v},o=(r=("object"===(0,a.Z)(i)?i:{externalGetKey:i})||{}).childrenPropName,s=r.externalGetKey,u=(l=D(r.fieldNames)).key,c=l.children,h=o||c,s?"string"==typeof s?n=function(e){return e[s]}:"function"==typeof s&&(n=function(e){return s(e)}):n=function(e,t){return N(e[u],t)},function i(r,o,s,a){var l=r?r[h]:e,u=r?x(s.pos,o):"0",c=r?[].concat((0,d.Z)(a),[r]):[];if(r){var g=n(r,u);t({node:r,index:o,pos:u,key:g,parentPos:s.node?s.pos:null,level:s.level+1,nodes:c})}l&&l.forEach(function(e,t){i(e,t,{node:r,pos:u,level:s?s.level+1:-1},c)})}(null),m&&m(S),S}function A(e,t){var i=t.expandedKeys,n=t.selectedKeys,r=t.loadedKeys,o=t.loadingKeys,s=t.checkedKeys,a=t.halfCheckedKeys,l=t.dragOverNodeKey,d=t.dropPosition,u=t.keyEntities[e];return{eventKey:e,expanded:-1!==i.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==s.indexOf(e),halfChecked:-1!==a.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===d,dragOverGapTop:l===e&&-1===d,dragOverGapBottom:l===e&&1===d}}function O(e){var t=e.data,i=e.expanded,n=e.selected,r=e.checked,o=e.loaded,s=e.loading,a=e.halfChecked,d=e.dragOver,u=e.dragOverGapTop,c=e.dragOverGapBottom,h=e.pos,g=e.active,p=e.eventKey,f=(0,l.Z)((0,l.Z)({},t),{},{expanded:i,selected:n,checked:r,loaded:o,loading:s,halfChecked:a,dragOver:d,dragOverGapTop:u,dragOverGapBottom:c,pos:h,active:g,key:p});return"props"in f||Object.defineProperty(f,"props",{get:function(){return(0,_.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),f}var M=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],P="open",F="close",B=function(e){(0,g.Z)(i,e);var t=(0,p.Z)(i);function i(){var e;(0,u.Z)(this,i);for(var n=arguments.length,r=Array(n),o=0;o=0&&i.splice(n,1),i}function V(e,t){var i=(e||[]).slice();return -1===i.indexOf(t)&&i.push(t),i}function z(e){return e.split("-")}function U(e,t,i,n,r,o,s,a,l,d){var u,c,h=e.clientX,g=e.clientY,p=e.target.getBoundingClientRect(),f=p.top,m=p.height,_=(("rtl"===d?-1:1)*(((null==r?void 0:r.x)||0)-h)-12)/n,b=a[i.props.eventKey];if(g-1.5?o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1:o({dragNode:L,dropNode:x,dropPosition:0})?S=0:o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1:o({dragNode:L,dropNode:x,dropPosition:1})?S=1:N=!1,{dropPosition:S,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===S?null:(null===(c=b.parent)||void 0===c?void 0:c.key)||null,dropAllowed:N}}function $(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function K(e){var t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,a.Z)(e))return(0,_.ZP)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function j(e,t){var i=new Set;return(e||[]).forEach(function(e){!function e(n){if(!i.has(n)){var r=t[n];if(r){i.add(n);var o=r.parent;!r.node.disabled&&o&&e(o.key)}}}(e)}),(0,d.Z)(i)}function G(e){if(null==e)throw TypeError("Cannot destructure "+e)}W.displayName="TreeNode",W.isTreeNode=1;var q=i(60456),Z=i(38358),Y=i(43783),Q=i(78641),X=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],J=function(e,t){var i,n,r,s,a,l=e.className,d=e.style,u=e.motion,c=e.motionNodes,h=e.motionType,g=e.onMotionStart,p=e.onMotionEnd,m=e.active,_=e.treeNodeRequiredProps,b=(0,w.Z)(e,X),v=f.useState(!0),S=(0,q.Z)(v,2),E=S[0],k=S[1],L=f.useContext(y).prefixCls,x=c&&"hide"!==h;(0,Z.Z)(function(){c&&x!==E&&k(x)},[c]);var N=f.useRef(!1),D=function(){c&&!N.current&&(N.current=!0,p())};return(i=function(){c&&g()},n=f.useState(!1),s=(r=(0,q.Z)(n,2))[0],a=r[1],f.useLayoutEffect(function(){if(s)return i(),function(){D()}},[s]),f.useLayoutEffect(function(){return a(!0),function(){a(!1)}},[]),c)?f.createElement(Q.ZP,(0,o.Z)({ref:t,visible:E},u,{motionAppear:"show"===h,onVisibleChanged:function(e){x===e&&D()}}),function(e,t){var i=e.className,n=e.style;return f.createElement("div",{ref:t,className:C()("".concat(L,"-treenode-motion"),i),style:n},c.map(function(e){var t=(0,o.Z)({},(G(e.data),e.data)),i=e.title,n=e.key,r=e.isStart,s=e.isEnd;delete t.children;var a=A(n,_);return f.createElement(W,(0,o.Z)({},t,a,{title:i,active:m,data:e.data,key:n,isStart:r,isEnd:s}))}))}):f.createElement(W,(0,o.Z)({domRef:t,className:l,style:d},b,{active:m}))};J.displayName="MotionTreeNode";var ee=f.forwardRef(J);function et(e,t,i){var n=e.findIndex(function(e){return e.key===i}),r=e[n+1],o=t.findIndex(function(e){return e.key===i});if(r){var s=t.findIndex(function(e){return e.key===r.key});return t.slice(o+1,s)}return t.slice(o+1)}var ei=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],en={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},er=function(){},eo="RC_TREE_MOTION_".concat(Math.random()),es={key:eo},ea={key:eo,level:0,index:0,pos:"0",node:es,nodes:[es]},el={parent:null,children:[],pos:ea.pos,data:es,title:null,key:eo,isStart:[],isEnd:[]};function ed(e,t,i,n){return!1!==t&&i?e.slice(0,Math.ceil(i/n)+1):e}function eu(e){return N(e.key,e.pos)}var ec=f.forwardRef(function(e,t){var i=e.prefixCls,n=e.data,r=(e.selectable,e.checkable,e.expandedKeys),s=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,d=e.loadingKeys,u=e.halfCheckedKeys,c=e.keyEntities,h=e.disabled,g=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,_=e.motion,b=e.height,v=e.itemHeight,C=e.virtual,y=e.focusable,S=e.activeItem,E=e.focused,k=e.tabIndex,L=e.onKeyDown,x=e.onFocus,D=e.onBlur,T=e.onActiveChange,I=e.onListChangeStart,R=e.onListChangeEnd,O=(0,w.Z)(e,ei),M=f.useRef(null),P=f.useRef(null);f.useImperativeHandle(t,function(){return{scrollTo:function(e){M.current.scrollTo(e)},getIndentWidth:function(){return P.current.offsetWidth}}});var F=f.useState(r),B=(0,q.Z)(F,2),W=B[0],H=B[1],V=f.useState(n),z=(0,q.Z)(V,2),U=z[0],$=z[1],K=f.useState(n),j=(0,q.Z)(K,2),Q=j[0],X=j[1],J=f.useState([]),es=(0,q.Z)(J,2),ea=es[0],ec=es[1],eh=f.useState(null),eg=(0,q.Z)(eh,2),ep=eg[0],ef=eg[1],em=f.useRef(n);function e_(){var e=em.current;$(e),X(e),ec([]),ef(null),R()}em.current=n,(0,Z.Z)(function(){H(r);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=e.length,n=t.length;if(1!==Math.abs(i-n))return{add:!1,key:null};function r(e,t){var i=new Map;e.forEach(function(e){i.set(e,!0)});var n=t.filter(function(e){return!i.has(e)});return 1===n.length?n[0]:null}return i ").concat(t);return t}(S)),f.createElement("div",null,f.createElement("input",{style:en,disabled:!1===y||h,tabIndex:!1!==y?k:null,onKeyDown:L,onFocus:x,onBlur:D,value:"",onChange:er,"aria-label":"for screen reader"})),f.createElement("div",{className:"".concat(i,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},f.createElement("div",{className:"".concat(i,"-indent")},f.createElement("div",{ref:P,className:"".concat(i,"-indent-unit")}))),f.createElement(Y.Z,(0,o.Z)({},O,{data:eb,itemKey:eu,height:b,fullHeight:!1,virtual:C,itemHeight:v,prefixCls:"".concat(i,"-list"),ref:M,onVisibleChange:function(e,t){var i=new Set(e);t.filter(function(e){return!i.has(e)}).some(function(e){return eu(e)===eo})&&e_()}}),function(e){var t=e.pos,i=(0,o.Z)({},(G(e.data),e.data)),n=e.title,r=e.key,s=e.isStart,a=e.isEnd,l=N(r,t);delete i.key,delete i.children;var d=A(l,ev);return f.createElement(ee,(0,o.Z)({},i,d,{title:n,active:!!S&&r===S.key,pos:t,data:e.data,isStart:s,isEnd:a,motion:_,motionNodes:r===eo?ea:null,motionType:ep,onMotionStart:I,onMotionEnd:e_,treeNodeRequiredProps:ev,onMouseMove:function(){T(null)}}))}))});function eh(e,t){var i=new Set;return e.forEach(function(e){t.has(e)||i.add(e)}),i}function eg(e){var t=e||{},i=t.disabled,n=t.disableCheckbox,r=t.checkable;return!!(i||n)||!1===r}function ep(e,t,i,n){var r,o=[];r=n||eg;var s=new Set(e.filter(function(e){var t=!!i[e];return t||o.push(e),t})),a=new Map,l=0;return Object.keys(i).forEach(function(e){var t=i[e],n=t.level,r=a.get(n);r||(r=new Set,a.set(n,r)),r.add(t),l=Math.max(l,n)}),(0,_.ZP)(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===t?function(e,t,i,n){for(var r=new Set(e),o=new Set,s=0;s<=i;s+=1)(t.get(s)||new Set).forEach(function(e){var t=e.key,i=e.node,o=e.children,s=void 0===o?[]:o;r.has(t)&&!n(i)&&s.filter(function(e){return!n(e.node)}).forEach(function(e){r.add(e.key)})});for(var a=new Set,l=i;l>=0;l-=1)(t.get(l)||new Set).forEach(function(e){var t=e.parent;if(!(n(e.node)||!e.parent||a.has(e.parent.key))){if(n(e.parent.node)){a.add(t.key);return}var i=!0,s=!1;(t.children||[]).filter(function(e){return!n(e.node)}).forEach(function(e){var t=e.key,n=r.has(t);i&&!n&&(i=!1),!s&&(n||o.has(t))&&(s=!0)}),i&&r.add(t.key),s&&o.add(t.key),a.add(t.key)}});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(eh(o,r))}}(s,a,l,r):function(e,t,i,n,r){for(var o=new Set(e),s=new Set(t),a=0;a<=n;a+=1)(i.get(a)||new Set).forEach(function(e){var t=e.key,i=e.node,n=e.children,a=void 0===n?[]:n;o.has(t)||s.has(t)||r(i)||a.filter(function(e){return!r(e.node)}).forEach(function(e){o.delete(e.key)})});s=new Set;for(var l=new Set,d=n;d>=0;d-=1)(i.get(d)||new Set).forEach(function(e){var t=e.parent;if(!(r(e.node)||!e.parent||l.has(e.parent.key))){if(r(e.parent.node)){l.add(t.key);return}var i=!0,n=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,r=o.has(t);i&&!r&&(i=!1),!n&&(r||s.has(t))&&(n=!0)}),i||o.delete(t.key),n&&s.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(eh(s,o))}}(s,t.halfCheckedKeys,a,l,r)}ec.displayName="NodeList";var ef=function(e){(0,g.Z)(i,e);var t=(0,p.Z)(i);function i(){var e;(0,u.Z)(this,i);for(var n=arguments.length,r=Array(n),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];t.forEach(function(t){var i=t.key,r=t.children;n.push(i),e(r)})}(s[l].children),n),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(d),window.addEventListener("dragend",e.onWindowDragEnd),null==a||a({event:t,node:O(i.props)})},e.onNodeDragEnter=function(t,i){var n=e.state,r=n.expandedKeys,o=n.keyEntities,s=n.dragChildrenKeys,a=n.flattenNodes,l=n.indent,u=e.props,c=u.onDragEnter,g=u.onExpand,p=u.allowDrop,f=u.direction,m=i.props,_=m.pos,b=m.eventKey,v=(0,h.Z)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==b&&(e.currentMouseOverDroppableNodeKey=b),!v){e.resetDragState();return}var C=U(t,v,i,l,e.dragStartMousePosition,p,a,o,r,f),y=C.dropPosition,w=C.dropLevelOffset,S=C.dropTargetKey,E=C.dropContainerKey,k=C.dropTargetPos,L=C.dropAllowed,x=C.dragOverNodeKey;if(-1!==s.indexOf(S)||!L||(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(t){clearTimeout(e.delayedDragEnterLogic[t])}),v.props.eventKey!==i.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[_]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var n=(0,d.Z)(r),s=o[i.props.eventKey];s&&(s.children||[]).length&&(n=V(r,i.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(n),null==g||g(n,{node:O(i.props),expanded:!0,nativeEvent:t.nativeEvent})}},800)),v.props.eventKey===S&&0===w)){e.resetDragState();return}e.setState({dragOverNodeKey:x,dropPosition:y,dropLevelOffset:w,dropTargetKey:S,dropContainerKey:E,dropTargetPos:k,dropAllowed:L}),null==c||c({event:t,node:O(i.props),expandedKeys:r})},e.onNodeDragOver=function(t,i){var n=e.state,r=n.dragChildrenKeys,o=n.flattenNodes,s=n.keyEntities,a=n.expandedKeys,l=n.indent,d=e.props,u=d.onDragOver,c=d.allowDrop,g=d.direction,p=(0,h.Z)(e).dragNode;if(p){var f=U(t,p,i,l,e.dragStartMousePosition,c,o,s,a,g),m=f.dropPosition,_=f.dropLevelOffset,b=f.dropTargetKey,v=f.dropContainerKey,C=f.dropAllowed,y=f.dropTargetPos,w=f.dragOverNodeKey;-1===r.indexOf(b)&&C&&(p.props.eventKey===b&&0===_?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():m===e.state.dropPosition&&_===e.state.dropLevelOffset&&b===e.state.dropTargetKey&&v===e.state.dropContainerKey&&y===e.state.dropTargetPos&&C===e.state.dropAllowed&&w===e.state.dragOverNodeKey||e.setState({dropPosition:m,dropLevelOffset:_,dropTargetKey:b,dropContainerKey:v,dropTargetPos:y,dropAllowed:C,dragOverNodeKey:w}),null==u||u({event:t,node:O(i.props)}))}},e.onNodeDragLeave=function(t,i){e.currentMouseOverDroppableNodeKey!==i.props.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var n=e.props.onDragLeave;null==n||n({event:t,node:O(i.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,i){var n=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==n||n({event:t,node:O(i.props)}),e.dragNode=null,window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDrop=function(t,i){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e.state,s=o.dragChildrenKeys,a=o.dropPosition,d=o.dropTargetKey,u=o.dropTargetPos;if(o.dropAllowed){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==d){var h=(0,l.Z)((0,l.Z)({},A(d,e.getTreeNodeRequiredProps())),{},{active:(null===(n=e.getActiveItem())||void 0===n?void 0:n.key)===d,data:e.state.keyEntities[d].node}),g=-1!==s.indexOf(d);(0,_.ZP)(!g,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=z(u),f={event:t,node:O(h),dragNode:e.dragNode?O(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(s),dropToGap:0!==a,dropPosition:a+Number(p[p.length-1])};r||null==c||c(f),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(t,i){var n=e.state,r=n.expandedKeys,o=n.flattenNodes,s=i.expanded,a=i.key;if(!i.isLeaf&&!t.shiftKey&&!t.metaKey&&!t.ctrlKey){var d=o.filter(function(e){return e.key===a})[0],u=O((0,l.Z)((0,l.Z)({},A(a,e.getTreeNodeRequiredProps())),{},{data:d.data}));e.setExpandedKeys(s?H(r,a):V(r,a)),e.onNodeExpand(t,u)}},e.onNodeClick=function(t,i){var n=e.props,r=n.onClick;"click"===n.expandAction&&e.triggerExpandActionExpand(t,i),null==r||r(t,i)},e.onNodeDoubleClick=function(t,i){var n=e.props,r=n.onDoubleClick;"doubleClick"===n.expandAction&&e.triggerExpandActionExpand(t,i),null==r||r(t,i)},e.onNodeSelect=function(t,i){var n=e.state.selectedKeys,r=e.state,o=r.keyEntities,s=r.fieldNames,a=e.props,l=a.onSelect,d=a.multiple,u=i.selected,c=i[s.key],h=!u,g=(n=h?d?V(n,c):[c]:H(n,c)).map(function(e){var t=o[e];return t?t.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:n}),null==l||l(n,{event:"select",selected:h,node:i,selectedNodes:g,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,i,n){var r,o=e.state,s=o.keyEntities,a=o.checkedKeys,l=o.halfCheckedKeys,u=e.props,c=u.checkStrictly,h=u.onCheck,g=i.key,p={event:"check",node:i,checked:n,nativeEvent:t.nativeEvent};if(c){var f=n?V(a,g):H(a,g);r={checked:f,halfChecked:H(l,g)},p.checkedNodes=f.map(function(e){return s[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:f})}else{var m=ep([].concat((0,d.Z)(a),[g]),!0,s),_=m.checkedKeys,b=m.halfCheckedKeys;if(!n){var v=new Set(_);v.delete(g);var C=ep(Array.from(v),{checked:!1,halfCheckedKeys:b},s);_=C.checkedKeys,b=C.halfCheckedKeys}r=_,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=b,_.forEach(function(e){var t=s[e];if(t){var i=t.node,n=t.pos;p.checkedNodes.push(i),p.checkedNodesPositions.push({node:i,pos:n})}}),e.setUncontrolledState({checkedKeys:_},!1,{halfCheckedKeys:b})}null==h||h(r,p)},e.onNodeLoad=function(t){var i=t.key,n=new Promise(function(n,r){e.setState(function(o){var s=o.loadedKeys,a=o.loadingKeys,l=void 0===a?[]:a,d=e.props,u=d.loadData,c=d.onLoad;return u&&-1===(void 0===s?[]:s).indexOf(i)&&-1===l.indexOf(i)?(u(t).then(function(){var r=V(e.state.loadedKeys,i);null==c||c(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState(function(e){return{loadingKeys:H(e.loadingKeys,i)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:H(e.loadingKeys,i)}}),e.loadingRetryTimes[i]=(e.loadingRetryTimes[i]||0)+1,e.loadingRetryTimes[i]>=10){var o=e.state.loadedKeys;(0,_.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:V(o,i)}),n()}r(t)}),{loadingKeys:V(l,i)}):null})});return n.catch(function(){}),n},e.onNodeMouseEnter=function(t,i){var n=e.props.onMouseEnter;null==n||n({event:t,node:i})},e.onNodeMouseLeave=function(t,i){var n=e.props.onMouseLeave;null==n||n({event:t,node:i})},e.onNodeContextMenu=function(t,i){var n=e.props.onRightClick;n&&(t.preventDefault(),n({event:t,node:i}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var i=arguments.length,n=Array(i),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,o=!0,s={};Object.keys(t).forEach(function(i){if(i in e.props){o=!1;return}r=!0,s[i]=t[i]}),r&&(!i||o)&&e.setState((0,l.Z)((0,l.Z)({},s),n))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return(0,c.Z)(i,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,i=this.state,n=i.focused,r=i.flattenNodes,l=i.keyEntities,d=i.draggingNodeKey,u=i.activeKey,c=i.dropLevelOffset,h=i.dropContainerKey,g=i.dropTargetKey,p=i.dropPosition,m=i.dragOverNodeKey,_=i.indent,v=this.props,w=v.prefixCls,S=v.className,E=v.style,k=v.showLine,L=v.focusable,x=v.tabIndex,N=v.selectable,D=v.showIcon,T=v.icon,I=v.switcherIcon,R=v.draggable,A=v.checkable,O=v.checkStrictly,M=v.disabled,P=v.motion,F=v.loadData,B=v.filterTreeNode,W=v.height,H=v.itemHeight,V=v.virtual,z=v.titleRender,U=v.dropIndicatorRender,$=v.onContextMenu,K=v.onScroll,j=v.direction,G=v.rootClassName,q=v.rootStyle,Z=(0,b.Z)(this.props,{aria:!0,data:!0});return R&&(t="object"===(0,a.Z)(R)?R:"function"==typeof R?{nodeDraggable:R}:{}),f.createElement(y.Provider,{value:{prefixCls:w,selectable:N,showIcon:D,icon:T,switcherIcon:I,draggable:t,draggingNodeKey:d,checkable:A,checkStrictly:O,disabled:M,keyEntities:l,dropLevelOffset:c,dropContainerKey:h,dropTargetKey:g,dropPosition:p,dragOverNodeKey:m,indent:_,direction:j,dropIndicatorRender:U,loadData:F,filterTreeNode:B,titleRender:z,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},f.createElement("div",{role:"tree",className:C()(w,S,G,(e={},(0,s.Z)(e,"".concat(w,"-show-line"),k),(0,s.Z)(e,"".concat(w,"-focused"),n),(0,s.Z)(e,"".concat(w,"-active-focused"),null!==u),e)),style:q},f.createElement(ec,(0,o.Z)({ref:this.listRef,prefixCls:w,style:E,data:r,disabled:M,selectable:N,checkable:!!A,motion:P,dragging:null!==d,height:W,itemHeight:H,virtual:V,focusable:L,focused:n,tabIndex:void 0===x?0:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:$,onScroll:K},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var i,n,r=t.prevProps,o={prevProps:e};function a(t){return!r&&t in e||r&&r[t]!==e[t]}var d=t.fieldNames;if(a("fieldNames")&&(d=D(e.fieldNames),o.fieldNames=d),a("treeData")?i=e.treeData:a("children")&&((0,_.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),i=T(e.children)),i){o.treeData=i;var u=R(i,{fieldNames:d});o.keyEntities=(0,l.Z)((0,s.Z)({},eo,ea),u.keyEntities)}var c=o.keyEntities||t.keyEntities;if(a("expandedKeys")||r&&a("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?j(e.expandedKeys,c):e.expandedKeys;else if(!r&&e.defaultExpandAll){var h=(0,l.Z)({},c);delete h[eo],o.expandedKeys=Object.keys(h).map(function(e){return h[e].key})}else!r&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?j(e.defaultExpandedKeys,c):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,i||o.expandedKeys){var g=I(i||t.treeData,o.expandedKeys||t.expandedKeys,d);o.flattenNodes=g}if(e.selectable&&(a("selectedKeys")?o.selectedKeys=$(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(o.selectedKeys=$(e.defaultSelectedKeys,e))),e.checkable&&(a("checkedKeys")?n=K(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?n=K(e.defaultCheckedKeys)||{}:i&&(n=K(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),n)){var p=n,f=p.checkedKeys,m=void 0===f?[]:f,b=p.halfCheckedKeys,v=void 0===b?[]:b;if(!e.checkStrictly){var C=ep(m,!0,c);m=C.checkedKeys,v=C.halfCheckedKeys}o.checkedKeys=m,o.halfCheckedKeys=v}return a("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),i}(f.Component);ef.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,i=e.dropLevelOffset,n=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:r.top=0,r.left=-i*n;break;case 1:r.bottom=0,r.left=-i*n;break;case 0:r.bottom=0,r.left=n}return f.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1},ef.TreeNode=W;var em={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},e_=i(1240),eb=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:em}))}),ev={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},eC=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ev}))}),ey={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ew=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:ey}))}),eS=i(79746),eE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ek=f.forwardRef(function(e,t){return f.createElement(e_.Z,(0,o.Z)({},e,{ref:t,icon:eE}))}),eL=i(80716),ex=i(84596),eN=i(98663),eD=i(70721),eT=i(40650);let eI=e=>{let{checkboxCls:t}=e,i=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[i]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},(0,eN.Wf)(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},(0,eN.oN)(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` ${i}:not(${i}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` diff --git a/pilot/server/static/_next/static/chunks/751-30fee9a32c6e64a2.js b/pilot/server/static/_next/static/chunks/751-30fee9a32c6e64a2.js deleted file mode 100644 index 61dce27ce..000000000 --- a/pilot/server/static/_next/static/chunks/751-30fee9a32c6e64a2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[751],{10504:function(t,i,e){var r=e(86006);let n=r.createContext(void 0);i.Z=n},8189:function(t,i,e){var r=e(86006);let n=r.createContext(void 0);i.Z=n},18818:function(t,i,e){e.d(i,{C:function(){return S},Z:function(){return k}});var r=e(46750),n=e(40431),a=e(86006),o=e(89791),l=e(53832),s=e(47562),d=e(50645),c=e(88930),m=e(47093),v=e(18587);function u(t){return(0,v.d6)("MuiList",t)}(0,v.sI)("MuiList",["root","nesting","scoped","sizeSm","sizeMd","sizeLg","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","horizontal","vertical"]);var g=e(31242),p=e(10504),L=e(8189),I=e(27358);let f=a.createContext(void 0);var x=e(326),Z=e(9268);let h=["component","className","children","size","orientation","wrap","variant","color","role","slots","slotProps"],z=t=>{let{variant:i,color:e,size:r,nesting:n,orientation:a,instanceSize:o}=t,d={root:["root",a,i&&`variant${(0,l.Z)(i)}`,e&&`color${(0,l.Z)(e)}`,!o&&!n&&r&&`size${(0,l.Z)(r)}`,o&&`size${(0,l.Z)(o)}`,n&&"nesting"]};return(0,s.Z)(d,u,{})},S=(0,d.Z)("ul")(({theme:t,ownerState:i})=>{var e;function r(e){return"sm"===e?{"--ListDivider-gap":"0.25rem","--ListItem-minHeight":"2rem","--ListItem-paddingY":"0.25rem","--ListItem-paddingX":"0.5rem","--ListItem-fontSize":t.vars.fontSize.sm,"--ListItemDecorator-size":"horizontal"===i.orientation?"1.5rem":"2rem","--Icon-fontSize":"1.125rem"}:"md"===e?{"--ListDivider-gap":"0.375rem","--ListItem-minHeight":"2.5rem","--ListItem-paddingY":"0.375rem","--ListItem-paddingX":"0.75rem","--ListItem-fontSize":t.vars.fontSize.md,"--ListItemDecorator-size":"horizontal"===i.orientation?"1.75rem":"2.5rem","--Icon-fontSize":"1.25rem"}:"lg"===e?{"--ListDivider-gap":"0.5rem","--ListItem-minHeight":"3rem","--ListItem-paddingY":"0.5rem","--ListItem-paddingX":"1rem","--ListItem-fontSize":t.vars.fontSize.md,"--ListItemDecorator-size":"horizontal"===i.orientation?"2.25rem":"3rem","--Icon-fontSize":"1.5rem"}:{}}return[i.nesting&&(0,n.Z)({},r(i.instanceSize),{"--ListItem-paddingRight":"var(--ListItem-paddingX)","--ListItem-paddingLeft":"var(--NestedListItem-paddingLeft)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px",padding:0,marginInlineStart:"var(--NestedList-marginLeft)",marginInlineEnd:"var(--NestedList-marginRight)",marginBlockStart:"var(--List-gap)",marginBlockEnd:"initial"}),!i.nesting&&(0,n.Z)({},r(i.size),{"--List-gap":"0px","--ListItemDecorator-color":t.vars.palette.text.tertiary,"--List-nestedInsetStart":"0px","--ListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItem-paddingRight":"var(--ListItem-paddingX)","--unstable_List-childRadius":"calc(max(var(--List-radius) - var(--List-padding), min(var(--List-padding) / 2, var(--List-radius) / 2)) - var(--variant-borderWidth, 0px))","--ListItem-radius":"var(--unstable_List-childRadius)","--ListItem-startActionTranslateX":"calc(0.5 * var(--ListItem-paddingLeft))","--ListItem-endActionTranslateX":"calc(-0.5 * var(--ListItem-paddingRight))",margin:"initial"},"horizontal"===i.orientation?(0,n.Z)({},i.wrap?{padding:"var(--List-padding)",marginInlineStart:"calc(-1 * var(--List-gap))",marginBlockStart:"calc(-1 * var(--List-gap))"}:{paddingInline:"var(--List-padding, var(--ListDivider-gap))",paddingBlock:"var(--List-padding)"}):{paddingBlock:"var(--List-padding, var(--ListDivider-gap))",paddingInline:"var(--List-padding)"}),(0,n.Z)({boxSizing:"border-box",borderRadius:"var(--List-radius)",listStyle:"none",display:"flex",flexDirection:"horizontal"===i.orientation?"row":"column"},i.wrap&&{flexWrap:"wrap"},{flexGrow:1,position:"relative"},null==(e=t.variants[i.variant])?void 0:e[i.color],{"--unstable_List-borderWidth":"var(--variant-borderWidth, 0px)"})]}),b=(0,d.Z)(S,{name:"JoyList",slot:"Root",overridesResolver:(t,i)=>i.root})({}),B=a.forwardRef(function(t,i){var e;let l;let s=a.useContext(g.Z),d=a.useContext(L.Z),v=a.useContext(f),u=(0,c.Z)({props:t,name:"JoyList"}),{component:S,className:B,children:k,size:y,orientation:C="vertical",wrap:D=!1,variant:w="plain",color:R="neutral",role:N,slots:W={},slotProps:$={}}=u,P=(0,r.Z)(u,h),{getColor:j}=(0,m.VT)(w),X=j(t.color,R),_=y||(null!=(e=t.size)?e:"md");d&&(l="group"),v&&(l="presentation"),N&&(l=N);let A=(0,n.Z)({},u,{instanceSize:t.size,size:_,nesting:s,orientation:C,wrap:D,variant:w,color:X,role:l}),E=z(A),H=(0,n.Z)({},P,{component:S,slots:W,slotProps:$}),[T,M]=(0,x.Z)("root",{ref:i,className:(0,o.Z)(E.root,B),elementType:b,externalForwardedProps:H,ownerState:A,additionalProps:{as:S,role:l,"aria-labelledby":"string"==typeof s?s:void 0}});return(0,Z.jsx)(T,(0,n.Z)({},M,{children:(0,Z.jsx)(p.Z.Provider,{value:`${"string"==typeof S?S:""}:${l||""}`,children:(0,Z.jsx)(I.Z,{row:"horizontal"===C,wrap:D,children:k})})}))});var k=B},27358:function(t,i,e){e.d(i,{M:function(){return d}});var r=e(40431),n=e(86006),a=e(76620),o=e(52058),l=e(31242),s=e(9268);let d={"--NestedList-marginRight":"0px","--NestedList-marginLeft":"0px","--NestedListItem-paddingLeft":"var(--ListItem-paddingX)","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"0px","--ListItem-marginBlock":"0px","--ListItem-marginInline":"0px"};i.Z=function(t){let{children:i,nested:e,row:d=!1,wrap:c=!1}=t,m=(0,s.jsx)(a.Z.Provider,{value:d,children:(0,s.jsx)(o.Z.Provider,{value:c,children:n.Children.map(i,(t,i)=>n.isValidElement(t)?n.cloneElement(t,(0,r.Z)({},0===i&&{"data-first-child":""})):t)})});return void 0===e?m:(0,s.jsx)(l.Z.Provider,{value:e,children:m})}},31242:function(t,i,e){var r=e(86006);let n=r.createContext(!1);i.Z=n},76620:function(t,i,e){var r=e(86006);let n=r.createContext(!1);i.Z=n},52058:function(t,i,e){var r=e(86006);let n=r.createContext(!1);i.Z=n},70092:function(t,i,e){e.d(i,{r:function(){return S},Z:function(){return k}});var r=e(46750),n=e(40431),a=e(86006),o=e(89791),l=e(53832),s=e(99179),d=e(47562),c=e(46319),m=e(50645),v=e(88930),u=e(47093),g=e(18587);function p(t){return(0,g.d6)("MuiListItemButton",t)}let L=(0,g.sI)("MuiListItemButton",["root","horizontal","vertical","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","focusVisible","disabled","selected","variantPlain","variantSoft","variantOutlined","variantSolid"]);var I=e(54438),f=e(76620),x=e(326),Z=e(9268);let h=["children","className","action","component","orientation","role","selected","color","variant","slots","slotProps"],z=t=>{let{color:i,disabled:e,focusVisible:r,focusVisibleClassName:n,selected:a,variant:o}=t,s={root:["root",e&&"disabled",r&&"focusVisible",i&&`color${(0,l.Z)(i)}`,a&&"selected",o&&`variant${(0,l.Z)(o)}`]},c=(0,d.Z)(s,p,{});return r&&n&&(c.root+=` ${n}`),c},S=(0,m.Z)("div")(({theme:t,ownerState:i})=>{var e,r,a,o,l;return[(0,n.Z)({},i.selected&&{"--ListItemDecorator-color":"initial"},i.disabled&&{"--ListItemDecorator-color":null==(e=t.variants)||null==(e=e[`${i.variant}Disabled`])||null==(e=e[i.color])?void 0:e.color},{WebkitTapHighlightColor:"transparent",boxSizing:"border-box",position:"relative",display:"flex",flexDirection:"row",alignItems:"center",alignSelf:"stretch"},"vertical"===i.orientation&&{flexDirection:"column",justifyContent:"center"},{textAlign:"initial",textDecoration:"initial",backgroundColor:"initial",cursor:"pointer",marginInline:"var(--ListItemButton-marginInline)",marginBlock:"var(--ListItemButton-marginBlock)"},void 0===i["data-first-child"]&&{marginInlineStart:i.row?"var(--List-gap)":void 0,marginBlockStart:i.row?void 0:"var(--List-gap)"},{paddingBlock:"calc(var(--ListItem-paddingY) - var(--variant-borderWidth, 0px))",paddingInlineStart:"calc(var(--ListItem-paddingLeft) + var(--ListItem-startActionWidth, var(--unstable_startActionWidth, 0px)))",paddingInlineEnd:"calc(var(--ListItem-paddingRight) + var(--ListItem-endActionWidth, var(--unstable_endActionWidth, 0px)))",minBlockSize:"var(--ListItem-minHeight)",border:"none",borderRadius:"var(--ListItem-radius)",flexGrow:i.row?0:1,flexBasis:i.row?"auto":"0%",flexShrink:0,minInlineSize:0,fontSize:"var(--ListItem-fontSize)",fontFamily:t.vars.fontFamily.body},i.selected&&{fontWeight:t.vars.fontWeight.md},{[t.focus.selector]:t.focus.default}),(0,n.Z)({},null==(r=t.variants[i.variant])?void 0:r[i.color],!i.selected&&{"&:hover":null==(a=t.variants[`${i.variant}Hover`])?void 0:a[i.color],"&:active":null==(o=t.variants[`${i.variant}Active`])?void 0:o[i.color]}),{[`&.${L.disabled}`]:null==(l=t.variants[`${i.variant}Disabled`])?void 0:l[i.color]}]}),b=(0,m.Z)(S,{name:"JoyListItemButton",slot:"Root",overridesResolver:(t,i)=>i.root})({}),B=a.forwardRef(function(t,i){let e=(0,v.Z)({props:t,name:"JoyListItemButton"}),l=a.useContext(f.Z),{children:d,className:m,action:g,component:p="div",orientation:L="horizontal",role:S,selected:B=!1,color:k=B?"primary":"neutral",variant:y="plain",slots:C={},slotProps:D={}}=e,w=(0,r.Z)(e,h),{getColor:R}=(0,u.VT)(y),N=R(t.color,k),W=a.useRef(null),$=(0,s.Z)(W,i),{focusVisible:P,setFocusVisible:j,getRootProps:X}=(0,c.Z)((0,n.Z)({},e,{rootRef:$}));a.useImperativeHandle(g,()=>({focusVisible:()=>{var t;j(!0),null==(t=W.current)||t.focus()}}),[j]);let _=(0,n.Z)({},e,{component:p,color:N,focusVisible:P,orientation:L,row:l,selected:B,variant:y}),A=z(_),E=(0,n.Z)({},w,{component:p,slots:C,slotProps:D}),[H,T]=(0,x.Z)("root",{ref:i,className:(0,o.Z)(A.root,m),elementType:b,externalForwardedProps:E,ownerState:_,getSlotProps:X});return(0,Z.jsx)(I.Z.Provider,{value:L,children:(0,Z.jsx)(H,(0,n.Z)({},T,{role:null!=S?S:T.role,children:d}))})});var k=B},54438:function(t,i,e){var r=e(86006);let n=r.createContext("horizontal");i.Z=n}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/7518-27ab62f8e2822474.js b/pilot/server/static/_next/static/chunks/7518-27ab62f8e2822474.js deleted file mode 100644 index 33fc826b7..000000000 --- a/pilot/server/static/_next/static/chunks/7518-27ab62f8e2822474.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7518],{67518:function(e,t,r){"use strict";r.d(t,{aM:function(){return eC},Ux:function(){return eq}});var n,i=r(86006),a=r(40431),s=r(89301),o=r(65877),u=r(88684),l=r(90151),c=r(18050),f=r(49449),d=r(70184),h=r(43663),g=r(38340),v=r(25912),p=r(5004),m=r(81027),y="RC_FORM_INTERNAL_HOOKS",F=function(){(0,p.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},b=i.createContext({getFieldValue:F,getFieldsValue:F,getFieldError:F,getFieldWarning:F,getFieldsError:F,isFieldsTouched:F,isFieldTouched:F,isFieldValidating:F,isFieldsValidating:F,resetFields:F,setFields:F,setFieldValue:F,setFieldsValue:F,validateFields:F,submit:F,getInternalHooks:function(){return F(),{dispatch:F,initEntityValue:F,registerField:F,useSubscribe:F,setInitialValues:F,destroyForm:F,setCallbacks:F,registerWatch:F,getFields:F,setValidateMessages:F,setPreserve:F,getInitialValue:F}}}),w=i.createContext(null);function E(e){return null==e?[]:Array.isArray(e)?e:[e]}var P=r(71971),Z=r(27859),V=r(52040);function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),n=1;n=a)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}break;default:return e}}):e}function T(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e}function j(e,t,r){var n=0,i=e.length;!function a(s){if(s&&s.length){r(s);return}var o=n;n+=1,o()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},U={integer:function(e){return U.number(e)&&parseInt(e,10)===e},float:function(e){return U.number(e)&&!U.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"==typeof e&&!U.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(L.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(_())},hex:function(e){return"string"==typeof e&&!!e.match(L.hex)}},W="enum",D={required:S,whitespace:function(e,t,r,n,i){(/^\s+$/.test(t)||""===t)&&n.push(N(i.messages.whitespace,e.fullField))},type:function(e,t,r,n,i){if(e.required&&void 0===t){S(e,t,r,n,i);return}var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?U[a](t)||n.push(N(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&n.push(N(i.messages.types[a],e.fullField,e.type))},range:function(e,t,r,n,i){var a="number"==typeof e.len,s="number"==typeof e.min,o="number"==typeof e.max,u=t,l=null,c="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(c?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(u=t.length),f&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?u!==e.len&&n.push(N(i.messages[l].len,e.fullField,e.len)):s&&!o&&ue.max?n.push(N(i.messages[l].max,e.fullField,e.max)):s&&o&&(ue.max)&&n.push(N(i.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,r,n,i){e[W]=Array.isArray(e[W])?e[W]:[],-1===e[W].indexOf(t)&&n.push(N(i.messages[W],e.fullField,e[W].join(", ")))},pattern:function(e,t,r,n,i){!e.pattern||(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(N(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"!=typeof e.pattern||new RegExp(e.pattern).test(t)||n.push(N(i.messages.pattern.mismatch,e.fullField,t,e.pattern)))}},H=function(e,t,r,n,i){var a=e.type,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t,a)&&!e.required)return r();D.required(e,t,n,s,i,a),T(t,a)||D.type(e,t,n,s,i)}r(s)},z={string:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t,"string")&&!e.required)return r();D.required(e,t,n,a,i,"string"),T(t,"string")||(D.type(e,t,n,a,i),D.range(e,t,n,a,i),D.pattern(e,t,n,a,i),!0===e.whitespace&&D.whitespace(e,t,n,a,i))}r(a)},method:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t)&&!e.required)return r();D.required(e,t,n,a,i),void 0!==t&&D.type(e,t,n,a,i)}r(a)},number:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(""===t&&(t=void 0),T(t)&&!e.required)return r();D.required(e,t,n,a,i),void 0!==t&&(D.type(e,t,n,a,i),D.range(e,t,n,a,i))}r(a)},boolean:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t)&&!e.required)return r();D.required(e,t,n,a,i),void 0!==t&&D.type(e,t,n,a,i)}r(a)},regexp:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t)&&!e.required)return r();D.required(e,t,n,a,i),T(t)||D.type(e,t,n,a,i)}r(a)},integer:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t)&&!e.required)return r();D.required(e,t,n,a,i),void 0!==t&&(D.type(e,t,n,a,i),D.range(e,t,n,a,i))}r(a)},float:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t)&&!e.required)return r();D.required(e,t,n,a,i),void 0!==t&&(D.type(e,t,n,a,i),D.range(e,t,n,a,i))}r(a)},array:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(null==t&&!e.required)return r();D.required(e,t,n,a,i,"array"),null!=t&&(D.type(e,t,n,a,i),D.range(e,t,n,a,i))}r(a)},object:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t)&&!e.required)return r();D.required(e,t,n,a,i),void 0!==t&&D.type(e,t,n,a,i)}r(a)},enum:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t)&&!e.required)return r();D.required(e,t,n,a,i),void 0!==t&&D.enum(e,t,n,a,i)}r(a)},pattern:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t,"string")&&!e.required)return r();D.required(e,t,n,a,i),T(t,"string")||D.pattern(e,t,n,a,i)}r(a)},date:function(e,t,r,n,i){var a,s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t,"date")&&!e.required)return r();D.required(e,t,n,s,i),!T(t,"date")&&(a=t instanceof Date?t:new Date(t),D.type(e,a,n,s,i),a&&D.range(e,a.getTime(),n,s,i))}r(s)},url:H,hex:H,email:H,required:function(e,t,r,n,i){var a=[],s=Array.isArray(t)?"array":typeof t;D.required(e,t,n,a,i,s),r(a)},any:function(e,t,r,n,i){var a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(T(t)&&!e.required)return r();D.required(e,t,n,a,i)}r(a)}};function J(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var B=J(),K=function(){function e(e){this.rules=null,this._messages=B,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!=typeof e||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(r){var n=e[r];t.rules[r]=Array.isArray(n)?n:[n]})},t.messages=function(e){return e&&(this._messages=I(J(),e)),this._messages},t.validate=function(t,r,n){var i=this;void 0===r&&(r={}),void 0===n&&(n=function(){});var a=t,s=r,o=n;if("function"==typeof s&&(o=s,s={}),!this.rules||0===Object.keys(this.rules).length)return o&&o(null,a),Promise.resolve(a);if(s.messages){var u=this.messages();u===B&&(u=J()),I(u,s.messages),s.messages=u}else s.messages=this.messages();var l={};(s.keys||Object.keys(this.rules)).forEach(function(e){var r=i.rules[e],n=a[e];r.forEach(function(r){var s=r;"function"==typeof s.transform&&(a===t&&(a=k({},a)),n=a[e]=s.transform(n)),(s="function"==typeof s?{validator:s}:k({},s)).validator=i.getValidationMethod(s),s.validator&&(s.field=e,s.fullField=s.fullField||e,s.type=i.getType(s),l[e]=l[e]||[],l[e].push({rule:s,value:n,source:a,field:e}))})});var c={};return function(e,t,r,n,i){if(t.first){var a=new Promise(function(t,a){var s;j((s=[],Object.keys(e).forEach(function(t){s.push.apply(s,e[t]||[])}),s),r,function(e){return n(e),e.length?a(new M(e,R(e))):t(i)})});return a.catch(function(e){return e}),a}var s=!0===t.firstFields?Object.keys(e):t.firstFields||[],o=Object.keys(e),u=o.length,l=0,c=[],f=new Promise(function(t,a){var f=function(e){if(c.push.apply(c,e),++l===u)return n(c),c.length?a(new M(c,R(c))):t(i)};o.length||(n(c),t(i)),o.forEach(function(t){var n=e[t];-1!==s.indexOf(t)?j(n,r,f):function(e,t,r){var n=[],i=0,a=e.length;function s(e){n.push.apply(n,e||[]),++i===a&&r(n)}e.forEach(function(e){t(e,s)})}(n,r,f)})});return f.catch(function(e){return e}),f}(l,s,function(t,r){var n,i=t.rule,o=("object"===i.type||"array"===i.type)&&("object"==typeof i.fields||"object"==typeof i.defaultField);function u(e,t){return k({},t,{fullField:i.fullField+"."+e,fullFields:i.fullFields?[].concat(i.fullFields,[e]):[e]})}function l(n){void 0===n&&(n=[]);var l=Array.isArray(n)?n:[n];!s.suppressWarning&&l.length&&e.warning("async-validator:",l),l.length&&void 0!==i.message&&(l=[].concat(i.message));var f=l.map($(i,a));if(s.first&&f.length)return c[i.field]=1,r(f);if(o){if(i.required&&!t.value)return void 0!==i.message?f=[].concat(i.message).map($(i,a)):s.error&&(f=[s.error(i,N(s.messages.required,i.field))]),r(f);var d={};i.defaultField&&Object.keys(t.value).map(function(e){d[e]=i.defaultField});var h={};Object.keys(d=k({},d,t.rule.fields)).forEach(function(e){var t=d[e],r=Array.isArray(t)?t:[t];h[e]=r.map(u.bind(null,e))});var g=new e(h);g.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),g.validate(t.value,t.rule.options||s,function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),r(t.length?t:null)})}else r(f)}if(o=o&&(i.required||!i.required&&t.value),i.field=t.field,i.asyncValidator)n=i.asyncValidator(i,t.value,l,t.source,s);else if(i.validator){try{n=i.validator(i,t.value,l,t.source,s)}catch(e){null==console.error||console.error(e),s.suppressValidatorError||setTimeout(function(){throw e},0),l(e.message)}!0===n?l():!1===n?l("function"==typeof i.message?i.message(i.fullField||i.field):i.message||(i.fullField||i.field)+" fails"):n instanceof Array?l(n):n instanceof Error&&l(n.message)}n&&n.then&&n.then(function(){return l()},function(e){return l(e)})},function(e){!function(e){for(var t=[],r={},n=0;n=n||r<0||r>=n)return e;var i=e[t],a=t-r;return a>0?[].concat((0,l.Z)(e.slice(0,r)),[i],(0,l.Z)(e.slice(r,t)),(0,l.Z)(e.slice(t+1,n))):a<0?[].concat((0,l.Z)(e.slice(0,t)),(0,l.Z)(e.slice(t+1,r+1)),[i],(0,l.Z)(e.slice(r+1,n))):e}var ed=["name"],eh=[];function eg(e,t,r,n,i,a){return"function"==typeof e?e(t,r,"source"in a?{source:a.source}:{}):n!==i}var ev=function(e){(0,h.Z)(r,e);var t=(0,g.Z)(r);function r(e){var n;return(0,c.Z)(this,r),(n=t.call(this,e)).state={resetCount:0},n.cancelRegisterFunc=null,n.mounted=!1,n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.prevValidating=void 0,n.errors=eh,n.warnings=eh,n.cancelRegister=function(){var e=n.props,t=e.preserve,r=e.isListField,i=e.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(r,t,es(i)),n.cancelRegisterFunc=null},n.getNamePath=function(){var e=n.props,t=e.name,r=e.fieldContext.prefixName,i=void 0===r?[]:r;return void 0!==t?[].concat((0,l.Z)(i),(0,l.Z)(t)):[]},n.getRules=function(){var e=n.props,t=e.rules,r=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(r):e})},n.refresh=function(){n.mounted&&n.setState(function(e){return{resetCount:e.resetCount+1}})},n.metaCache=null,n.triggerMetaEvent=function(e){var t=n.props.onMetaChange;if(t){var r=(0,u.Z)((0,u.Z)({},n.getMeta()),{},{destroy:e});(0,m.Z)(n.metaCache,r)||t(r),n.metaCache=r}else n.metaCache=null},n.onStoreChange=function(e,t,r){var i=n.props,a=i.shouldUpdate,s=i.dependencies,o=void 0===s?[]:s,u=i.onReset,l=r.store,c=n.getNamePath(),f=n.getValue(e),d=n.getValue(l),h=t&&eu(t,c);switch("valueUpdate"===r.type&&"external"===r.source&&f!==d&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=eh,n.warnings=eh,n.triggerMetaEvent()),r.type){case"reset":if(!t||h){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=eh,n.warnings=eh,n.triggerMetaEvent(),null==u||u(),n.refresh();return}break;case"remove":if(a){n.reRender();return}break;case"setField":if(h){var g=r.data;"touched"in g&&(n.touched=g.touched),"validating"in g&&!("originRCField"in g)&&(n.validatePromise=g.validating?Promise.resolve([]):null),"errors"in g&&(n.errors=g.errors||eh),"warnings"in g&&(n.warnings=g.warnings||eh),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}if(a&&!c.length&&eg(a,e,l,f,d,r)){n.reRender();return}break;case"dependenciesUpdate":if(o.map(es).some(function(e){return eu(r.relatedFields,e)})){n.reRender();return}break;default:if(h||(!o.length||c.length||a)&&eg(a,e,l,f,d,r)){n.reRender();return}}!0===a&&n.reRender()},n.validateRules=function(e){var t=n.getNamePath(),r=n.getValue(),i=e||{},a=i.triggerName,s=i.validateOnly,o=Promise.resolve().then(function(){if(!n.mounted)return[];var i=n.props,s=i.validateFirst,c=void 0!==s&&s,f=i.messageVariables,d=n.getRules();a&&(d=d.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||E(t).includes(a)}));var h=function(e,t,r,n,i,a){var s,o,l=e.join("."),c=r.map(function(e,t){var r=e.validator,n=(0,u.Z)((0,u.Z)({},e),{},{ruleIndex:t});return r&&(n.validator=function(e,t,n){var i=!1,a=r(e,t,function(){for(var e=arguments.length,t=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:eh;if(n.validatePromise===o){n.validatePromise=null;var t,r=[],i=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,n=e.errors,a=void 0===n?eh:n;t?i.push.apply(i,(0,l.Z)(a)):r.push.apply(r,(0,l.Z)(a))}),n.errors=r,n.warnings=i,n.triggerMetaEvent(),n.reRender()}}),h});return void 0!==s&&s||(n.validatePromise=o,n.dirty=!0,n.errors=eh,n.warnings=eh,n.triggerMetaEvent(),n.reRender()),o},n.isFieldValidating=function(){return!!n.validatePromise},n.isFieldTouched=function(){return n.touched},n.isFieldDirty=function(){return!!n.dirty||void 0!==n.props.initialValue||void 0!==(0,n.props.fieldContext.getInternalHooks(y).getInitialValue)(n.getNamePath())},n.getErrors=function(){return n.errors},n.getWarnings=function(){return n.warnings},n.isListField=function(){return n.props.isListField},n.isList=function(){return n.props.isList},n.isPreserve=function(){return n.props.preserve},n.getMeta=function(){return n.prevValidating=n.isFieldValidating(),{touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:null===n.validatePromise}},n.getOnlyChild=function(e){if("function"==typeof e){var t=n.getMeta();return(0,u.Z)((0,u.Z)({},n.getOnlyChild(e(n.getControlled(),t,n.props.fieldContext))),{},{isFunction:!0})}var r=(0,v.Z)(e);return 1===r.length&&i.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}},n.getValue=function(e){var t=n.props.fieldContext.getFieldsValue,r=n.getNamePath();return(0,ea.Z)(e||t(!0),r)},n.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.props,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,s=t.normalize,l=t.valuePropName,c=t.getValueProps,f=t.fieldContext,d=void 0!==i?i:f.validateTrigger,h=n.getNamePath(),g=f.getInternalHooks,v=f.getFieldsValue,p=g(y).dispatch,m=n.getValue(),F=c||function(e){return(0,o.Z)({},l,e)},b=e[r],w=(0,u.Z)((0,u.Z)({},e),F(m));return w[r]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var e,t=arguments.length,r=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[];if(r.watchList.length){var t=r.getFieldsValue(),n=r.getFieldsValue(!0);r.watchList.forEach(function(r){r(t,n,e)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(e){r.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?r.fieldEntities.filter(function(e){return e.getNamePath().length}):r.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new eb;return r.getFieldEntities(e).forEach(function(e){var r=e.getNamePath();t.set(r,e)}),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return r.getFieldEntities(!0);var t=r.getFieldsMap(!0);return e.map(function(e){var r=es(e);return t.get(r)||{INVALIDATE_NAME_PATH:es(e)}})},this.getFieldsValue=function(e,t){if(r.warningUnhooked(),!0===e||Array.isArray(e)?(n=e,i=t):e&&"object"===(0,ei.Z)(e)&&(a=e.strict,i=e.filter),!0===n&&!i)return r.store;var n,i,a,s=r.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),o=[];return s.forEach(function(e){var t,r,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(a){if(null===(r=e.isList)||void 0===r?void 0:r.call(e))return}else if(!n&&(null===(t=e.isListField)||void 0===t?void 0:t.call(e)))return;i?i("getMeta"in e?e.getMeta():null)&&o.push(s):o.push(s)}),eo(r.store,o.map(es))},this.getFieldValue=function(e){r.warningUnhooked();var t=es(e);return(0,ea.Z)(r.store,t)},this.getFieldsError=function(e){return r.warningUnhooked(),r.getFieldEntitiesForNamePathList(e).map(function(t,r){return!t||"INVALIDATE_NAME_PATH"in t?{name:es(e[r]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})},this.getFieldError=function(e){r.warningUnhooked();var t=es(e);return r.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){r.warningUnhooked();var t=es(e);return r.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){r.warningUnhooked();for(var e,t=arguments.length,n=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},n=new eb,i=r.getFieldEntities(!0);i.forEach(function(e){var t=e.props.initialValue,r=e.getNamePath();if(void 0!==t){var i=n.get(r)||new Set;i.add({entity:e,value:t}),n.set(r,i)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var r,i=n.get(t);i&&(r=e).push.apply(r,(0,l.Z)((0,l.Z)(i).map(function(e){return e.entity})))})):e=i,function(e){e.forEach(function(e){if(void 0!==e.props.initialValue){var i=e.getNamePath();if(void 0!==r.getInitialValue(i))(0,p.ZP)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var a=n.get(i);if(a&&a.size>1)(0,p.ZP)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(a){var s=r.getFieldValue(i);t.skipExist&&void 0!==s||r.updateStore((0,Q.Z)(r.store,i,(0,l.Z)(a)[0].value))}}}})}(e)},this.resetFields=function(e){r.warningUnhooked();var t=r.store;if(!e){r.updateStore((0,Q.T)(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(t,null,{type:"reset"}),r.notifyWatch();return}var n=e.map(es);n.forEach(function(e){var t=r.getInitialValue(e);r.updateStore((0,Q.Z)(r.store,e,t))}),r.resetWithFieldInitialValue({namePathList:n}),r.notifyObservers(t,n,{type:"reset"}),r.notifyWatch(n)},this.setFields=function(e){r.warningUnhooked();var t=r.store,n=[];e.forEach(function(e){var i=e.name,a=(0,s.Z)(e,ew),o=es(i);n.push(o),"value"in a&&r.updateStore((0,Q.Z)(r.store,o,a.value)),r.notifyObservers(t,[o],{type:"setField",data:e})}),r.notifyWatch(n)},this.getFields=function(){return r.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),n=e.getMeta(),i=(0,u.Z)((0,u.Z)({},n),{},{name:t,value:r.getFieldValue(t)});return Object.defineProperty(i,"originRCField",{value:!0}),i})},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var n=e.getNamePath();void 0===(0,ea.Z)(r.store,n)&&r.updateStore((0,Q.Z)(r.store,n,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:r.preserve;return null==t||t},this.registerField=function(e){r.fieldEntities.push(e);var t=e.getNamePath();if(r.notifyWatch([t]),void 0!==e.props.initialValue){var n=r.store;r.resetWithFieldInitialValue({entities:[e],skipExist:!0}),r.notifyObservers(n,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(t){return t!==e}),!r.isMergedPreserve(i)&&(!n||a.length>1)){var s=n?void 0:r.getInitialValue(t);if(t.length&&r.getFieldValue(t)!==s&&r.fieldEntities.every(function(e){return!el(e.getNamePath(),t)})){var o=r.store;r.updateStore((0,Q.Z)(o,t,s,!0)),r.notifyObservers(o,[t],{type:"remove"}),r.triggerDependenciesUpdate(o,t)}}r.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,n=e.value;r.updateValue(t,n);break;case"validateField":var i=e.namePath,a=e.triggerName;r.validateFields([i],{triggerName:a})}},this.notifyObservers=function(e,t,n){if(r.subscribable){var i=(0,u.Z)((0,u.Z)({},n),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(r){(0,r.onStoreChange)(e,t,i)})}else r.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var n=r.getDependencyChildrenFields(t);return n.length&&r.validateFields(n),r.notifyObservers(e,n,{type:"dependenciesUpdate",relatedFields:[t].concat((0,l.Z)(n))}),n},this.updateValue=function(e,t){var n=es(e),i=r.store;r.updateStore((0,Q.Z)(r.store,n,t)),r.notifyObservers(i,[n],{type:"valueUpdate",source:"internal"}),r.notifyWatch([n]);var a=r.triggerDependenciesUpdate(i,n),s=r.callbacks.onValuesChange;s&&s(eo(r.store,[n]),r.getFieldsValue()),r.triggerOnFieldsChange([n].concat((0,l.Z)(a)))},this.setFieldsValue=function(e){r.warningUnhooked();var t=r.store;if(e){var n=(0,Q.T)(r.store,e);r.updateStore(n)}r.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()},this.setFieldValue=function(e,t){r.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,n=[],i=new eb;return r.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var r=es(t);i.update(r,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(r){(i.get(r)||new Set).forEach(function(r){if(!t.has(r)){t.add(r);var i=r.getNamePath();r.isFieldDirty()&&i.length&&(n.push(i),e(i))}})}(e),n},this.triggerOnFieldsChange=function(e,t){var n=r.callbacks.onFieldsChange;if(n){var i=r.getFields();if(t){var a=new eb;t.forEach(function(e){var t=e.name,r=e.errors;a.set(t,r)}),i.forEach(function(e){e.errors=a.get(e.name)||e.errors})}var s=i.filter(function(t){return eu(e,t.name)});s.length&&n(s,i)}},this.validateFields=function(e,t){r.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(s=e,o=t):o=e;var n,i,a,s,o,c=!!s,f=c?s.map(es):[],d=[],h=String(Date.now()),g=new Set;r.getFieldEntities(!0).forEach(function(e){if(c||f.push(e.getNamePath()),(null===(t=o)||void 0===t?void 0:t.recursive)&&c){var t,n=e.getNamePath();n.every(function(e,t){return s[t]===e||void 0===s[t]})&&f.push(n)}if(e.props.rules&&e.props.rules.length){var i=e.getNamePath();if(g.add(i.join(h)),!c||eu(f,i)){var a=e.validateRules((0,u.Z)({validateMessages:(0,u.Z)((0,u.Z)({},G),r.validateMessages)},o));d.push(a.then(function(){return{name:i,errors:[],warnings:[]}}).catch(function(e){var t,r=[],n=[];return(null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,i=e.errors;t?n.push.apply(n,(0,l.Z)(i)):r.push.apply(r,(0,l.Z)(i))}),r.length)?Promise.reject({name:i,errors:r,warnings:n}):{name:i,errors:r,warnings:n}}))}}});var v=(n=!1,i=d.length,a=[],d.length?new Promise(function(e,t){d.forEach(function(r,s){r.catch(function(e){return n=!0,e}).then(function(r){i-=1,a[s]=r,i>0||(n&&t(a),e(a))})})}):Promise.resolve([]));r.lastValidatePromise=v,v.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});r.notifyObservers(r.store,t,{type:"validateFinish"}),r.triggerOnFieldsChange(t,e)});var p=v.then(function(){return r.lastValidatePromise===v?Promise.resolve(r.getFieldsValue(f)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:r.getFieldsValue(f),errorFields:t,outOfDate:r.lastValidatePromise!==v})});p.catch(function(e){return e});var m=f.filter(function(e){return g.has(e.join(h))});return r.triggerOnFieldsChange(m),p},this.submit=function(){r.warningUnhooked(),r.validateFields().then(function(e){var t=r.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=r.callbacks.onFinishFailed;t&&t(e)})},this.forceRootUpdate=t}),eP=function(e){var t=i.useRef(),r=i.useState({}),n=(0,em.Z)(r,2)[1];if(!t.current){if(e)t.current=e;else{var a=new eE(function(){n({})});t.current=a.getForm()}}return[t.current]},eZ=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eV=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"];function ek(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ex=function(){},eO=i.forwardRef(function(e,t){var r,n=e.name,o=e.initialValues,c=e.fields,f=e.form,d=e.preserve,h=e.children,g=e.component,v=void 0===g?"form":g,p=e.validateMessages,m=e.validateTrigger,F=void 0===m?"onChange":m,E=e.onValuesChange,P=e.onFieldsChange,Z=e.onFinish,V=e.onFinishFailed,k=(0,s.Z)(e,eV),x=i.useContext(eZ),O=eP(f),C=(0,em.Z)(O,1)[0],q=C.getInternalHooks(y),A=q.useSubscribe,R=q.setInitialValues,N=q.setCallbacks,T=q.setValidateMessages,j=q.setPreserve,M=q.destroyForm;i.useImperativeHandle(t,function(){return C}),i.useEffect(function(){return x.registerForm(n,C),function(){x.unregisterForm(n)}},[x,C,n]),T((0,u.Z)((0,u.Z)({},x.validateMessages),p)),N({onValuesChange:E,onFieldsChange:function(e){if(x.triggerFormChange(n,e),P){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i=0&&t<=r.length?(d.keys=[].concat((0,l.Z)(d.keys.slice(0,t)),[d.id],(0,l.Z)(d.keys.slice(t))),i([].concat((0,l.Z)(r.slice(0,t)),[e],(0,l.Z)(r.slice(t))))):(d.keys=[].concat((0,l.Z)(d.keys),[d.id]),i([].concat((0,l.Z)(r),[e]))),d.id+=1},remove:function(e){var t=s(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(d.keys=d.keys.filter(function(e,t){return!r.has(t)}),i(t.filter(function(e,t){return!r.has(t)})))},move:function(e,t){if(e!==t){var r=s();e<0||e>=r.length||t<0||t>=r.length||(d.keys=ef(d.keys,e,t),i(ef(r,e,t)))}}},t)})))},eO.useForm=eP,eO.useWatch=function(){for(var e=arguments.length,t=Array(e),r=0;r{let{children:t,status:r,override:n}=e,a=(0,i.useContext)(eC),s=(0,i.useMemo)(()=>{let e=Object.assign({},a);return n&&delete e.isFormItemInput,r&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[r,n,a]);return i.createElement(eC.Provider,{value:s},t)}},52040:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(66003)},66003:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function a(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:a}catch(e){t=a}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u=[],l=!1,c=-1;function f(){l&&n&&(l=!1,n.length?u=n.concat(u):c=-1,u.length&&d())}function d(){if(!l){var e=o(f);l=!0;for(var t=u.length;t;){for(n=u,u=[];++c1)for(var r=1;r{let{gutterBottom:n,noWrap:e,level:r,color:o,variant:a}=t,l={root:["root",r,n&&"gutterBottom",e&&"noWrap",o&&`color${(0,i.Z)(o)}`,a&&`variant${(0,i.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,s.Z)(l,v,{})},b=(0,u.Z)("span",{name:"JoyTypography",slot:"StartDecorator",overridesResolver:(t,n)=>n.startDecorator})(({ownerState:t})=>{var n;return(0,o.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof t.startDecorator&&("flex-start"===t.alignItems||(null==(n=t.sx)?void 0:n.alignItems)==="flex-start")&&{marginTop:"2px"})}),w=(0,u.Z)("span",{name:"JoyTypography",slot:"endDecorator",overridesResolver:(t,n)=>n.endDecorator})(({ownerState:t})=>{var n;return(0,o.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Typography-gap, 0.375em), 0.75rem)"},"string"!=typeof t.endDecorator&&("flex-start"===t.alignItems||(null==(n=t.sx)?void 0:n.alignItems)==="flex-start")&&{marginTop:"2px"})}),$=(0,u.Z)("span",{name:"JoyTypography",slot:"Root",overridesResolver:(t,n)=>n.root})(({theme:t,ownerState:n})=>{var e,r,a,i;return(0,o.Z)({"--Icon-fontSize":"1.25em",margin:"var(--Typography-margin, 0px)"},n.nesting?{display:"inline"}:{fontFamily:t.vars.fontFamily.body,display:"block"},(n.startDecorator||n.endDecorator)&&(0,o.Z)({display:"flex",alignItems:"center"},n.nesting&&(0,o.Z)({display:"inline-flex"},n.startDecorator&&{verticalAlign:"bottom"})),n.level&&"inherit"!==n.level&&t.typography[n.level],{fontSize:`var(--Typography-fontSize, ${n.level&&"inherit"!==n.level&&null!=(e=null==(r=t.typography[n.level])?void 0:r.fontSize)?e:"inherit"})`},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.color&&"context"!==n.color&&{color:`rgba(${null==(a=t.vars.palette[n.color])?void 0:a.mainChannel} / 1)`},n.variant&&(0,o.Z)({borderRadius:t.vars.radius.xs,paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!n.nesting&&{marginInline:"-0.375em"},null==(i=t.variants[n.variant])?void 0:i[n.color]))}),D={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",display1:"h1",display2:"h2",body1:"p",body2:"p",body3:"span",body4:"span",body5:"span",inherit:"p"},O=a.forwardRef(function(t,n){let e=(0,m.Z)({props:t,name:"JoyTypography"}),{color:i,textColor:s}=e,u=(0,r.Z)(e,h),d=a.useContext(Z),v=a.useContext(E),O=(0,c.Z)((0,o.Z)({},u,{color:s})),{component:S,gutterBottom:C=!1,noWrap:I=!1,level:T="body1",levelMapping:R={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",body1:"p",body2:"p",body3:"p",inherit:"p"},children:B,endDecorator:z,startDecorator:K,variant:P,slots:j={},slotProps:k={}}=O,F=(0,r.Z)(O,g),{getColor:L}=(0,f.VT)(P),N=L(t.color,P?null!=i?i:"neutral":i),W=d||v?t.level||"inherit":T,A=S||(d?"span":R[W]||D[W]||"span"),M=(0,o.Z)({},O,{level:W,component:A,color:N,gutterBottom:C,noWrap:I,nesting:d,variant:P}),_=x(M),q=(0,o.Z)({},F,{component:A,slots:j,slotProps:k}),[H,J]=(0,p.Z)("root",{ref:n,className:_.root,elementType:$,externalForwardedProps:q,ownerState:M}),[U,V]=(0,p.Z)("startDecorator",{className:_.startDecorator,elementType:b,externalForwardedProps:q,ownerState:M}),[Y,G]=(0,p.Z)("endDecorator",{className:_.endDecorator,elementType:w,externalForwardedProps:q,ownerState:M});return(0,y.jsx)(Z.Provider,{value:!0,children:(0,y.jsxs)(H,(0,o.Z)({},J,{children:[K&&(0,y.jsx)(U,(0,o.Z)({},V,{children:K})),(0,l.Z)(B,["Skeleton"])?a.cloneElement(B,{variant:B.props.variant||"inline"}):B,z&&(0,y.jsx)(Y,(0,o.Z)({},G,{children:z}))]}))})});var S=O},61085:function(t,n,e){e.d(n,{Z:function(){return g}});var r,o=e(60456),a=e(86006),i=e(8431),l=e(71693);e(5004);var c=e(92510),s=a.createContext(null),u=e(90151),m=e(38358),f=[],p=e(52160),d="rc-util-locker-".concat(Date.now()),v=0,y=!1,h=function(t){return!1!==t&&((0,l.Z)()&&t?"string"==typeof t?document.querySelector(t):"function"==typeof t?t():t:null)},g=a.forwardRef(function(t,n){var e,g,Z,E,x=t.open,b=t.autoLock,w=t.getContainer,$=(t.debug,t.autoDestroy),D=void 0===$||$,O=t.children,S=a.useState(x),C=(0,o.Z)(S,2),I=C[0],T=C[1],R=I||x;a.useEffect(function(){(D||x)&&T(x)},[x,D]);var B=a.useState(function(){return h(w)}),z=(0,o.Z)(B,2),K=z[0],P=z[1];a.useEffect(function(){var t=h(w);P(null!=t?t:null)});var j=function(t,n){var e=a.useState(function(){return(0,l.Z)()?document.createElement("div"):null}),r=(0,o.Z)(e,1)[0],i=a.useRef(!1),c=a.useContext(s),p=a.useState(f),d=(0,o.Z)(p,2),v=d[0],y=d[1],h=c||(i.current?void 0:function(t){y(function(n){return[t].concat((0,u.Z)(n))})});function g(){r.parentElement||document.body.appendChild(r),i.current=!0}function Z(){var t;null===(t=r.parentElement)||void 0===t||t.removeChild(r),i.current=!1}return(0,m.Z)(function(){return t?c?c(g):g():Z(),Z},[t]),(0,m.Z)(function(){v.length&&(v.forEach(function(t){return t()}),y(f))},[v]),[r,h]}(R&&!K,0),k=(0,o.Z)(j,2),F=k[0],L=k[1],N=null!=K?K:F;e=!!(b&&x&&(0,l.Z)()&&(N===F||N===document.body)),g=a.useState(function(){return v+=1,"".concat(d,"_").concat(v)}),Z=(0,o.Z)(g,1)[0],(0,m.Z)(function(){if(e){var t=function(t){if("undefined"==typeof document)return 0;if(void 0===r){var n=document.createElement("div");n.style.width="100%",n.style.height="200px";var e=document.createElement("div"),o=e.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",e.appendChild(n),document.body.appendChild(e);var a=n.offsetWidth;e.style.overflow="scroll";var i=n.offsetWidth;a===i&&(i=e.clientWidth),document.body.removeChild(e),r=a-i}return r}(),n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,p.hq)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(t,"px);"):"","\n}"),Z)}else(0,p.jL)(Z);return function(){(0,p.jL)(Z)}},[e,Z]);var W=null;O&&(0,c.Yr)(O)&&n&&(W=O.ref);var A=(0,c.x1)(W,n);if(!R||!(0,l.Z)()||void 0===K)return null;var M=!1===N||("boolean"==typeof E&&(y=E),y),_=O;return n&&(_=a.cloneElement(O,{ref:A})),a.createElement(s.Provider,{value:L},M?_:(0,i.createPortal)(_,N))})},80716:function(t,n,e){e.d(n,{mL:function(){return c},q0:function(){return l}});let r=()=>({height:0,opacity:0}),o=t=>{let{scrollHeight:n}=t;return{height:n,opacity:1}},a=t=>({height:t?t.offsetHeight:0}),i=(t,n)=>(null==n?void 0:n.deadline)===!0||"height"===n.propertyName,l=t=>void 0!==t&&("topLeft"===t||"topRight"===t)?"slide-down":"slide-up",c=(t,n,e)=>void 0!==e?e:`${t}-${n}`;n.ZP=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant";return{motionName:`${t}-motion-collapse`,onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:a,onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500}}},52593:function(t,n,e){e.d(n,{M2:function(){return i},Tm:function(){return l},l$:function(){return a}});var r,o=e(86006);let{isValidElement:a}=r||(r=e.t(o,2));function i(t){return t&&a(t)&&t.type===o.Fragment}function l(t,n){return a(t)?o.cloneElement(t,"function"==typeof n?n(t.props||{}):n):t}},12381:function(t,n,e){e.d(n,{BR:function(){return c},ri:function(){return l}});var r=e(8683),o=e.n(r);e(25912);var a=e(86006);let i=a.createContext(null),l=(t,n)=>{let e=a.useContext(i),r=a.useMemo(()=>{if(!e)return"";let{compactDirection:r,isFirstItem:a,isLastItem:i}=e,l="vertical"===r?"-vertical-":"-";return o()({[`${t}-compact${l}item`]:!0,[`${t}-compact${l}first-item`]:a,[`${t}-compact${l}last-item`]:i,[`${t}-compact${l}item-rtl`]:"rtl"===n})},[t,n,e]);return{compactSize:null==e?void 0:e.compactSize,compactDirection:null==e?void 0:e.compactDirection,compactItemClassnames:r}},c=t=>{let{children:n}=t;return a.createElement(i.Provider,{value:null},n)}},29138:function(t,n,e){e.d(n,{R:function(){return a}});let r=t=>({animationDuration:t,animationFillMode:"both"}),o=t=>({animationDuration:t,animationFillMode:"both"}),a=function(t,n,e,a){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=i?"&":"";return{[` - ${l}${t}-enter, - ${l}${t}-appear - `]:Object.assign(Object.assign({},r(a)),{animationPlayState:"paused"}),[`${l}${t}-leave`]:Object.assign(Object.assign({},o(a)),{animationPlayState:"paused"}),[` - ${l}${t}-enter${t}-enter-active, - ${l}${t}-appear${t}-appear-active - `]:{animationName:n,animationPlayState:"running"},[`${l}${t}-leave${t}-leave-active`]:{animationName:e,animationPlayState:"running",pointerEvents:"none"}}}},87270:function(t,n,e){e.d(n,{_y:function(){return g}});var r=e(11717),o=e(29138);let a=new r.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),i=new r.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),l=new r.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),c=new r.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),s=new r.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),m=new r.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),f=new r.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),p=new r.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),d=new r.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),v=new r.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),y=new r.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),h={zoom:{inKeyframes:a,outKeyframes:i},"zoom-big":{inKeyframes:l,outKeyframes:c},"zoom-big-fast":{inKeyframes:l,outKeyframes:c},"zoom-left":{inKeyframes:m,outKeyframes:f},"zoom-right":{inKeyframes:p,outKeyframes:d},"zoom-up":{inKeyframes:s,outKeyframes:u},"zoom-down":{inKeyframes:v,outKeyframes:y}},g=(t,n)=>{let{antCls:e}=t,r=`${e}-${n}`,{inKeyframes:a,outKeyframes:i}=h[n];return[(0,o.R)(r,a,i,"zoom-big-fast"===n?t.motionDurationFast:t.motionDurationMid),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]}},25912:function(t,n,e){e.d(n,{Z:function(){return function t(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=[];return r.Children.forEach(n,function(n){(null!=n||e.keepEmpty)&&(Array.isArray(n)?a=a.concat(t(n)):(0,o.isFragment)(n)&&n.props?a=a.concat(t(n.props.children,e)):a.push(n))}),a}}});var r=e(86006),o=e(10854)},98498:function(t,n){n.Z=function(t){if(!t)return!1;if(t instanceof Element){if(t.offsetParent)return!0;if(t.getBBox){var n=t.getBBox(),e=n.width,r=n.height;if(e||r)return!0}if(t.getBoundingClientRect){var o=t.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1}},53457:function(t,n,e){e.d(n,{Z:function(){return c}});var r,o=e(60456),a=e(88684),i=e(86006),l=0;function c(t){var n=i.useState("ssr-id"),c=(0,o.Z)(n,2),s=c[0],u=c[1],m=(0,a.Z)({},r||(r=e.t(i,2))).useId,f=null==m?void 0:m();return(i.useEffect(function(){if(!m){var t=l;l+=1,u("rc_unique_".concat(t))}},[]),t)?t:f||s}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/767-b93280f4b5b5e975.js b/pilot/server/static/_next/static/chunks/767-b93280f4b5b5e975.js deleted file mode 100644 index 1c71e7417..000000000 --- a/pilot/server/static/_next/static/chunks/767-b93280f4b5b5e975.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[767],{311:function(e,t,o){o.d(t,{Z:function(){return S}});var r=o(46750),l=o(40431),a=o(86006),n=o(47562),i=o(53832),d=o(21454),s=o(99179),c=o(44542),b=o(86601),v=o(50645),p=o(88930),u=o(47093),h=o(326),g=o(18587);function f(e){return(0,g.d6)("MuiLink",e)}let y=(0,g.sI)("MuiLink",["root","disabled","focusVisible","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","focusVisible","variantPlain","variantOutlined","variantSoft","variantSolid","underlineNone","underlineHover","underlineAlways","h1","h2","h3","h4","h5","h6","body1","body2","body3","startDecorator","endDecorator"]);var m=o(22046),C=o(9268);let x=["color","textColor","variant"],T=["children","disabled","onBlur","onFocus","level","overlay","underline","endDecorator","startDecorator","component","slots","slotProps"],R=e=>{let{level:t,color:o,variant:r,underline:l,focusVisible:a,disabled:d}=e,s={root:["root",o&&`color${(0,i.Z)(o)}`,d&&"disabled",a&&"focusVisible",t,l&&`underline${(0,i.Z)(l)}`,r&&`variant${(0,i.Z)(r)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,n.Z)(s,f,{})},k=(0,v.Z)("span",{name:"JoyLink",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({ownerState:e})=>{var t;return(0,l.Z)({display:"inline-flex",marginInlineEnd:"clamp(4px, var(--Link-gap, 0.375em), 0.75rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(t=e.sx)?void 0:t.alignItems)==="flex-start")&&{marginTop:"2px"})}),Z=(0,v.Z)("span",{name:"JoyLink",slot:"endDecorator",overridesResolver:(e,t)=>t.endDecorator})(({ownerState:e})=>{var t;return(0,l.Z)({display:"inline-flex",marginInlineStart:"clamp(4px, var(--Link-gap, 0.25em), 0.5rem)"},"string"!=typeof e.startDecorator&&("flex-start"===e.alignItems||(null==(t=e.sx)?void 0:t.alignItems)==="flex-start")&&{marginTop:"2px"})}),w=(0,v.Z)("a",{name:"JoyLink",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,r,a,n,i,d,s;return[(0,l.Z)({"--Icon-fontSize":"1.25em"},t.level&&"inherit"!==t.level&&e.typography[t.level],"inherit"===t.level&&{fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecorationLine:"underline"}},"always"===t.underline&&{textDecoration:"underline"},t.startDecorator&&{verticalAlign:"bottom"},{display:"inline-flex",alignItems:"center",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:e.vars.radius.xs,padding:0,cursor:"pointer"},"context"!==t.color&&{textDecorationColor:`rgba(${null==(o=e.vars.palette[t.color])?void 0:o.mainChannel} / var(--Link-underlineOpacity, 0.72))`},t.variant?(0,l.Z)({paddingBlock:"min(0.15em, 4px)",paddingInline:"0.375em"},!t.nesting&&{marginInline:"-0.375em"}):(0,l.Z)({},"context"!==t.color&&{color:`rgba(${null==(r=e.vars.palette[t.color])?void 0:r.mainChannel} / 1)`},{[`&.${y.disabled}`]:(0,l.Z)({pointerEvents:"none"},"context"!==t.color&&{color:`rgba(${null==(a=e.vars.palette[t.color])?void 0:a.mainChannel} / 0.6)`})}),{userSelect:"none",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},t.overlay?{position:"initial","&::after":{content:'""',display:"block",position:"absolute",top:0,left:0,bottom:0,right:0,borderRadius:"var(--unstable_actionRadius, inherit)",margin:"var(--unstable_actionMargin)"},[`${e.focus.selector}`]:{"&::after":e.focus.default}}:{position:"relative",[e.focus.selector]:e.focus.default}),t.variant&&(0,l.Z)({},null==(n=e.variants[t.variant])?void 0:n[t.color],{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],"&:active":null==(d=e.variants[`${t.variant}Active`])?void 0:d[t.color],[`&.${y.disabled}`]:null==(s=e.variants[`${t.variant}Disabled`])?void 0:s[t.color]})]}),B=a.forwardRef(function(e,t){let o=(0,p.Z)({props:e,name:"JoyLink"}),{color:n="primary",textColor:i,variant:v}=o,g=(0,r.Z)(o,x),{getColor:f}=(0,u.VT)(v),y=f(e.color,n),B=a.useContext(m.FR),S=a.useContext(m.eu),D=(0,b.Z)((0,l.Z)({},g,{color:i})),{children:$,disabled:W=!1,onBlur:A,onFocus:z,level:F="body1",overlay:L=!1,underline:H="hover",endDecorator:I,startDecorator:_,component:N,slots:E={},slotProps:O={}}=D,M=(0,r.Z)(D,T),P=B||S?e.level||"inherit":F,{isFocusVisibleRef:X,onBlur:Y,onFocus:j,ref:J}=(0,d.Z)(),[V,U]=a.useState(!1),q=(0,s.Z)(t,J),G=(0,l.Z)({},D,{color:y,disabled:W,focusVisible:V,underline:H,variant:v,level:P,overlay:L,nesting:B}),K=R(G),Q=(0,l.Z)({},M,{component:N,slots:E,slotProps:O}),[ee,et]=(0,h.Z)("root",{additionalProps:{onBlur:e=>{Y(e),!1===X.current&&U(!1),A&&A(e)},onFocus:e=>{j(e),!0===X.current&&U(!0),z&&z(e)}},ref:q,className:K.root,elementType:w,externalForwardedProps:Q,ownerState:G}),[eo,er]=(0,h.Z)("startDecorator",{className:K.startDecorator,elementType:k,externalForwardedProps:Q,ownerState:G}),[el,ea]=(0,h.Z)("endDecorator",{className:K.endDecorator,elementType:Z,externalForwardedProps:Q,ownerState:G});return(0,C.jsx)(m.FR.Provider,{value:!0,children:(0,C.jsxs)(ee,(0,l.Z)({},et,{children:[_&&(0,C.jsx)(eo,(0,l.Z)({},er,{children:_})),(0,c.Z)($,["Skeleton"])?a.cloneElement($,{variant:$.props.variant||"inline"}):$,I&&(0,C.jsx)(el,(0,l.Z)({},ea,{children:I}))]}))})});var S=B},83192:function(e,t,o){o.d(t,{Z:function(){return T}});var r=o(46750),l=o(40431),a=o(86006),n=o(89791),i=o(53832),d=o(47562),s=o(88930),c=o(47093),b=o(50645),v=o(18587);function p(e){return(0,v.d6)("MuiTable",e)}(0,v.sI)("MuiTable",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","sizeSm","sizeMd","sizeLg","stickyHeader","stickyFooter","noWrap","hoverRow","borderAxisNone","borderAxisX","borderAxisXBetween","borderAxisY","borderAxisYBetween","borderAxisBoth","borderAxisBothBetween"]);var u=o(22046),h=o(326),g=o(9268);let f=["className","component","children","borderAxis","hoverRow","noWrap","size","variant","color","stripe","stickyHeader","stickyFooter","slots","slotProps"],y=e=>{let{size:t,variant:o,color:r,borderAxis:l,stickyHeader:a,stickyFooter:n,noWrap:s,hoverRow:c}=e,b={root:["root",a&&"stickyHeader",n&&"stickyFooter",s&&"noWrap",c&&"hoverRow",l&&`borderAxis${(0,i.Z)(l)}`,o&&`variant${(0,i.Z)(o)}`,r&&`color${(0,i.Z)(r)}`,t&&`size${(0,i.Z)(t)}`]};return(0,d.Z)(b,p,{})},m={getColumnExceptFirst:()=>"& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th",getCell:()=>"& th, & td",getHeadCell:()=>"& th",getHeaderCell:()=>"& thead th",getHeaderCellOfRow:e=>`& thead tr:nth-of-type(${e}) th`,getBottomHeaderCell:()=>"& thead th:not([colspan])",getHeaderNestedFirstColumn:()=>"& thead tr:not(:first-of-type) th:not([colspan]):first-of-type",getDataCell:()=>"& td",getDataCellExceptLastRow:()=>"& tr:not(:last-of-type) > td",getBodyCellExceptLastRow(){return`${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`},getBodyCellOfRow:e=>"number"==typeof e&&e<0?`& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]`:`& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`,getBodyRow:e=>void 0===e?"& tbody tr":`& tbody tr:nth-of-type(${e})`,getFooterCell:()=>"& tfoot th, & tfoot td",getFooterFirstRowCell:()=>"& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td"},C=(0,b.Z)("table",{name:"JoyTable",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var o,r,a,n,i,d,s;let c=null==(o=e.variants[t.variant])?void 0:o[t.color];return[(0,l.Z)({"--Table-headerUnderlineThickness":"2px","--TableCell-borderColor":null!=(r=null==c?void 0:c.borderColor)?r:e.vars.palette.divider,"--TableCell-headBackground":`var(--Sheet-background, ${e.vars.palette.background.surface})`},"sm"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 32px)","--TableCell-paddingX":"0.25rem","--TableCell-paddingY":"0.25rem",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 40px)","--TableCell-paddingX":"0.5rem","--TableCell-paddingY":"0.375rem",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--unstable_TableCell-height":"var(--TableCell-height, 48px)","--TableCell-paddingX":"0.75rem","--TableCell-paddingY":"0.5rem",fontSize:e.vars.fontSize.md},{tableLayout:"fixed",width:"100%",borderSpacing:"0px",borderCollapse:"separate",borderRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))",color:e.vars.palette.text.primary},null==(a=e.variants[t.variant])?void 0:a[t.color],{"& caption":{color:e.vars.palette.text.tertiary,padding:"calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"},[m.getDataCell()]:(0,l.Z)({padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",height:"var(--unstable_TableCell-height)",borderColor:"var(--TableCell-borderColor)",backgroundColor:"var(--TableCell-dataBackground)"},t.noWrap&&{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}),[m.getHeadCell()]:{textAlign:"left",padding:"var(--TableCell-paddingY) var(--TableCell-paddingX)",backgroundColor:"var(--TableCell-headBackground)",height:"var(--unstable_TableCell-height)",fontWeight:e.vars.fontWeight.lg,borderColor:"var(--TableCell-borderColor)",color:e.vars.palette.text.secondary,textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},[m.getHeaderCell()]:{verticalAlign:"bottom","&:first-of-type":{borderTopLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderTopRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}},"& tfoot tr > *":{backgroundColor:`var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,"&:first-of-type":{borderBottomLeftRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"},"&:last-of-type":{borderBottomRightRadius:"var(--TableCell-cornerRadius, var(--unstable_actionRadius))"}}}),((null==(n=t.borderAxis)?void 0:n.startsWith("x"))||(null==(i=t.borderAxis)?void 0:i.startsWith("both")))&&{[m.getHeaderCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[m.getBottomHeaderCell()]:{borderBottomWidth:"var(--Table-headerUnderlineThickness)",borderBottomStyle:"solid"},[m.getBodyCellExceptLastRow()]:{borderBottomWidth:1,borderBottomStyle:"solid"},[m.getFooterCell()]:{borderTopWidth:1,borderTopStyle:"solid"}},((null==(d=t.borderAxis)?void 0:d.startsWith("y"))||(null==(s=t.borderAxis)?void 0:s.startsWith("both")))&&{[`${m.getColumnExceptFirst()}, ${m.getHeaderNestedFirstColumn()}`]:{borderLeftWidth:1,borderLeftStyle:"solid"}},("x"===t.borderAxis||"both"===t.borderAxis)&&{[m.getHeaderCellOfRow(1)]:{borderTopWidth:1,borderTopStyle:"solid"},[m.getBodyCellOfRow(-1)]:{borderBottomWidth:1,borderBottomStyle:"solid"},[m.getFooterCell()]:{borderBottomWidth:1,borderBottomStyle:"solid"}},("y"===t.borderAxis||"both"===t.borderAxis)&&{"& tr > *:first-of-type":{borderLeftWidth:1,borderLeftStyle:"solid"},"& tr > *:last-of-type:not(:first-of-type)":{borderRightWidth:1,borderRightStyle:"solid"}},t.stripe&&{[m.getBodyRow(t.stripe)]:{background:`var(--TableRow-stripeBackground, ${e.vars.palette.background.level1})`,color:e.vars.palette.text.primary}},t.hoverRow&&{[m.getBodyRow()]:{"&:hover":{background:`var(--TableRow-hoverBackground, ${e.vars.palette.background.level2})`}}},t.stickyHeader&&{[m.getHeaderCell()]:{position:"sticky",top:0,zIndex:e.vars.zIndex.table},[m.getHeaderCellOfRow(2)]:{top:"var(--unstable_TableCell-height)"}},t.stickyFooter&&{[m.getFooterCell()]:{position:"sticky",bottom:0,zIndex:e.vars.zIndex.table,color:e.vars.palette.text.secondary,fontWeight:e.vars.fontWeight.lg},[m.getFooterFirstRowCell()]:{bottom:"var(--unstable_TableCell-height)"}}]}),x=a.forwardRef(function(e,t){let o=(0,s.Z)({props:e,name:"JoyTable"}),{className:a,component:i,children:d,borderAxis:b="xBetween",hoverRow:v=!1,noWrap:p=!1,size:m="md",variant:x="plain",color:T="neutral",stripe:R,stickyHeader:k=!1,stickyFooter:Z=!1,slots:w={},slotProps:B={}}=o,S=(0,r.Z)(o,f),{getColor:D}=(0,c.VT)(x),$=D(e.color,T),W=(0,l.Z)({},o,{borderAxis:b,hoverRow:v,noWrap:p,component:i,size:m,color:$,variant:x,stripe:R,stickyHeader:k,stickyFooter:Z}),A=y(W),z=(0,l.Z)({},S,{component:i,slots:w,slotProps:B}),[F,L]=(0,h.Z)("root",{ref:t,className:(0,n.Z)(A.root,a),elementType:C,externalForwardedProps:z,ownerState:W});return(0,g.jsx)(u.eu.Provider,{value:!0,children:(0,g.jsx)(F,(0,l.Z)({},L,{children:d}))})});var T=x}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/769-76f7aafd375fdd6b.js b/pilot/server/static/_next/static/chunks/769-76f7aafd375fdd6b.js deleted file mode 100644 index 58c5e1e1d..000000000 --- a/pilot/server/static/_next/static/chunks/769-76f7aafd375fdd6b.js +++ /dev/null @@ -1,25 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[769],{93644:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})})},32781:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return o}});let n=r(16620),u=r(65231);function o(e,t){return(0,u.normalizePathTrailingSlash)((0,n.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25236:function(e,t){"use strict";function r(e){var t,r;t=self.__next_s,r=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[r,n]=t;return e.then(()=>new Promise((e,t)=>{let u=document.createElement("script");if(n)for(let e in n)"children"!==e&&u.setAttribute(e,n[e]);r?(u.src=r,u.onload=()=>e(),u.onerror=t):n&&(u.innerHTML=n.children,setTimeout(e)),document.head.appendChild(u)}))},Promise.resolve()).then(()=>{r()}).catch(e=>{console.error(e),r()}):r()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return r}}),window.next={version:"13.4.7",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61491:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return u}});let n=r(68802);async function u(e,t){let r=(0,n.getServerActionDispatcher)();if(!r)throw Error("Invariant: missing action dispatcher.");return new Promise((n,u)=>{r({actionId:e,actionArgs:t,resolve:n,reject:u})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78828:function(e,t,r){"use strict";let n,u;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return I}});let o=r(26927),a=r(25909);r(93644);let l=o._(r(93194)),i=a._(r(86006)),c=r(35456),s=r(46436);r(56858);let f=o._(r(8589)),d=r(61491),p=r(12417),h=r(74740),_=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),r=0;r{if((0,p.isNextRouterError)(e.error)){e.preventDefault();return}});let y=e=>t=>e(t)+"",b=r.u,v={};r.u=y(e=>encodeURI(v[e]||b(e)));let m=r.k;r.k=y(m);let g=r.miniCssF;r.miniCssF=y(g),self.__next_require__=r,self.__next_chunk_load__=e=>{if(!e)return Promise.resolve();let[t,n]=e.split(":");return v[t]=n,r.e(t)};let O=document,P=()=>{let{pathname:e,search:t}=location;return e+t},E=new TextEncoder,R=!1,j=!1;function S(e){if(0===e[0])n=[];else{if(!n)throw Error("Unexpected server data: missing bootstrap script.");u?u.enqueue(E.encode(e[1])):n.push(e[1])}}let T=function(){u&&!j&&(u.close(),j=!0,n=void 0),R=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",T,!1):T();let M=self.__next_f=self.__next_f||[];M.forEach(S),M.push=S;let w=new Map;function C(e){let{cacheKey:t}=e;i.default.useEffect(()=>{w.delete(t)});let r=function(e){let t=w.get(e);if(t)return t;let r=new ReadableStream({start(e){n&&(n.forEach(t=>{e.enqueue(E.encode(t))}),R&&!j&&(e.close(),j=!0,n=void 0)),u=e}}),o=(0,c.createFromReadableStream)(r,{callServer:d.callServer});return w.set(e,o),o}(t),o=(0,i.use)(r);return o}let x=i.default.Fragment;function A(e){let{children:t}=e;return i.default.useEffect(()=>{},[]),t}function N(e){let t=P();return i.default.createElement(C,{...e,cacheKey:t})}function I(){let e=i.default.createElement(x,null,i.default.createElement(s.HeadManagerContext.Provider,{value:{appDir:!0}},i.default.createElement(A,null,i.default.createElement(N,null)))),t={onRecoverableError:f.default},r="__next_error__"===document.documentElement.id,n=r?l.default.createRoot(O,t):i.default.startTransition(()=>l.default.hydrateRoot(O,e,t));r&&n.render(e),(0,h.linkGc)()}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74740:function(e,t){"use strict";function r(){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"linkGc",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29070:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(25236);(0,n.appBootstrap)(()=>{r(68802),r(13211);let{hydrate:e}=r(78828);e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36321:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AppRouterAnnouncer",{enumerable:!0,get:function(){return a}});let n=r(86006),u=r(8431),o="next-route-announcer";function a(e){let{tree:t}=e,[r,a]=(0,n.useState)(null);(0,n.useEffect)(()=>{let e=function(){var e;let t=document.getElementsByName(o)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(o);e.style.cssText="position:absolute";let t=document.createElement("div");t.setAttribute("aria-live","assertive"),t.setAttribute("id","__next-route-announcer__"),t.setAttribute("role","alert"),t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal";let r=e.attachShadow({mode:"open"});return r.appendChild(t),document.body.appendChild(e),t}}();return a(e),()=>{let e=document.getElementsByTagName(o)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}},[]);let[l,i]=(0,n.useState)(""),c=(0,n.useRef)();return(0,n.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&i(e),c.current=e},[t]),r?(0,u.createPortal)(l,r):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84767:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RSC:function(){return r},ACTION:function(){return n},NEXT_ROUTER_STATE_TREE:function(){return u},NEXT_ROUTER_PREFETCH:function(){return o},NEXT_URL:function(){return a},FETCH_CACHE_HEADER:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return i},RSC_VARY_HEADER:function(){return c},FLIGHT_PARAMETERS:function(){return s},NEXT_RSC_UNION_QUERY:function(){return f}});let r="RSC",n="Next-Action",u="Next-Router-State-Tree",o="Next-Router-Prefetch",a="Next-Url",l="x-vercel-sc-headers",i="text/x-component",c=r+", "+u+", "+o,s=[[r],[u],[o]],f="_rsc";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68802:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getServerActionDispatcher:function(){return E},urlToUrlWithoutFlightMarker:function(){return R},default:function(){return M}});let n=r(25909),u=n._(r(86006)),o=r(56858),a=r(41732),l=r(39748),i=r(56312),c=r(70510),s=r(27214),f=r(14299),d=r(22457),p=r(75247),h=r(32781),_=r(36321),y=r(51323),b=r(77776),v=r(36822),m=r(98068),g=r(84767),O=new Map,P=null;function E(){return P}function R(e){let t=new URL(e,location.origin);return t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t.pathname.endsWith("/index.txt")?t.pathname=t.pathname.slice(0,-10):t.pathname=t.pathname.slice(0,-4),t}function j(e){return e.origin!==window.location.origin}function S(e){let{tree:t,pushRef:r,canonicalUrl:n,sync:o}=e;return u.default.useInsertionEffect(()=>{let e={__NA:!0,tree:t};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==n?(r.pendingPush=!1,window.history.pushState(e,"",n)):window.history.replaceState(e,"",n),o()},[t,r,n,o]),null}function T(e){let{buildId:t,initialHead:r,initialTree:n,initialCanonicalUrl:i,children:f,assetPrefix:g,notFound:E,notFoundStyles:R,asNotFound:T}=e,M=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:t,children:f,initialCanonicalUrl:i,initialTree:n,initialParallelRoutes:O,isServer:!1,location:window.location,initialHead:r}),[t,f,i,n,r]),[{tree:w,cache:C,prefetchCache:x,pushRef:A,focusAndScrollRef:N,canonicalUrl:I,nextUrl:D},F,k]=(0,s.useReducerWithReduxDevtools)(a.reducer,M);(0,u.useEffect)(()=>{O=null},[]);let{searchParams:L,pathname:U}=(0,u.useMemo)(()=>{let e=new URL(I,window.location.href);return{searchParams:e.searchParams,pathname:e.pathname}},[I]),H=(0,u.useCallback)((e,t,r)=>{u.default.startTransition(()=>{F({type:l.ACTION_SERVER_PATCH,flightData:t,previousTree:e,overrideCanonicalUrl:r,cache:{status:o.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map},mutable:{}})})},[F]),$=(0,u.useCallback)((e,t,r)=>{let n=new URL((0,h.addBasePath)(e),location.href);return F({type:l.ACTION_NAVIGATE,url:n,isExternalUrl:j(n),locationSearch:location.search,forceOptimisticNavigation:r,navigateType:t,cache:{status:o.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map},mutable:{}})},[F]),W=(0,u.useCallback)(e=>{u.default.startTransition(()=>{F({...e,type:l.ACTION_SERVER_ACTION,mutable:{},navigate:$,changeByServerResponse:H})})},[H,F,$]);P=W;let B=(0,u.useMemo)(()=>{let e={back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,p.isBot)(window.navigator.userAgent))return;let r=new URL((0,h.addBasePath)(e),location.href);j(r)||u.default.startTransition(()=>{var e;F({type:l.ACTION_PREFETCH,url:r,kind:null!=(e=null==t?void 0:t.kind)?e:l.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),u.default.startTransition(()=>{$(e,"replace",!!t.forceOptimisticNavigation)})},push:(e,t)=>{void 0===t&&(t={}),u.default.startTransition(()=>{$(e,"push",!!t.forceOptimisticNavigation)})},refresh:()=>{u.default.startTransition(()=>{F({type:l.ACTION_REFRESH,cache:{status:o.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map},mutable:{},origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}};return e},[F,$]);if((0,u.useEffect)(()=>{window.next&&(window.next.router=B)},[B]),(0,u.useEffect)(()=>{window.nd={router:B,cache:C,prefetchCache:x,tree:w}},[B,C,x,w]),A.mpaNavigation){let e=window.location;A.pendingPush?e.assign(I):e.replace(I),(0,u.use)((0,m.createInfinitePromise)())}let Y=(0,u.useCallback)(e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}u.default.startTransition(()=>{F({type:l.ACTION_RESTORE,url:new URL(window.location.href),tree:t.tree})})}},[F]);(0,u.useEffect)(()=>(window.addEventListener("popstate",Y),()=>{window.removeEventListener("popstate",Y)}),[Y]);let V=(0,u.useMemo)(()=>(0,v.findHeadInCache)(C,w[1]),[C,w]),G=u.default.createElement(b.NotFoundBoundary,{notFound:E,notFoundStyles:R,asNotFound:T},u.default.createElement(y.RedirectBoundary,null,V,C.subTreeData,u.default.createElement(_.AppRouterAnnouncer,{tree:w})));return u.default.createElement(u.default.Fragment,null,u.default.createElement(S,{tree:w,pushRef:A,canonicalUrl:I,sync:k}),u.default.createElement(c.PathnameContext.Provider,{value:U},u.default.createElement(c.SearchParamsContext.Provider,{value:L},u.default.createElement(o.GlobalLayoutRouterContext.Provider,{value:{buildId:t,changeByServerResponse:H,tree:w,focusAndScrollRef:N,nextUrl:D}},u.default.createElement(o.AppRouterContext.Provider,{value:B},u.default.createElement(o.LayoutRouterContext.Provider,{value:{childNodes:C.parallelRoutes,tree:w,url:I}},G))))))}function M(e){let{globalErrorComponent:t,...r}=e;return u.default.createElement(f.ErrorBoundary,{errorComponent:t},u.default.createElement(T,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30955:function(e,t,r){"use strict";function n(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return n}}),r(26927),r(86006),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},14299:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ErrorBoundaryHandler:function(){return l},default:function(){return i},ErrorBoundary:function(){return c}});let n=r(26927),u=n._(r(86006)),o=r(30794),a={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};class l extends u.default.Component{static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?u.default.createElement(u.default.Fragment,null,this.props.errorStyles,u.default.createElement(this.props.errorComponent,{error:this.state.error,reset:this.reset})):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function i(e){let{error:t}=e;return u.default.createElement("html",null,u.default.createElement("head",null),u.default.createElement("body",null,u.default.createElement("div",{style:a.error},u.default.createElement("div",null,u.default.createElement("h2",{style:a.text},"Application error: a client-side exception has occurred (see the browser console for more information)."),(null==t?void 0:t.digest)&&u.default.createElement("p",{style:a.text},"Digest: "+t.digest)))))}function c(e){let{errorComponent:t,errorStyles:r,children:n}=e,a=(0,o.usePathname)();return t?u.default.createElement(l,{pathname:a,errorComponent:t,errorStyles:r},n):u.default.createElement(u.default.Fragment,null,n)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45085:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{DYNAMIC_ERROR_CODE:function(){return r},DynamicServerError:function(){return n}});let r="DYNAMIC_SERVER_USAGE";class n extends Error{constructor(e){super("Dynamic server usage: "+e),this.digest=r}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98068:function(e,t){"use strict";let r;function n(){return r||(r=new Promise(()=>{})),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInfinitePromise",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12417:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return o}});let n=r(6090),u=r(89510);function o(e){return e&&e.digest&&((0,u.isRedirectError)(e)||(0,n.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13211:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return E}});let n=r(26927),u=r(25909),o=u._(r(86006)),a=n._(r(8431)),l=r(56858),i=r(67630),c=r(98068),s=r(14299),f=r(7686),d=r(33811),p=r(51323),h=r(77776),_=r(90020),y=r(55114),b=["bottom","height","left","right","top","width","x","y"];function v(e,t){let r=e.getBoundingClientRect();return r.top>=0&&r.top<=t}class m extends o.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var r;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,r)=>(0,f.matchSegment)(t,e[r]))))return;let n=null,u=e.hashFragment;if(u&&(n="top"===u?document.body:null!=(r=document.getElementById(u))?r:document.getElementsByName(u)[0]),n||(n=a.default.findDOMNode(this)),!(n instanceof Element))return;for(;!(n instanceof HTMLElement)||function(e){let t=e.getBoundingClientRect();return b.every(e=>0===t[e])}(n);){if(null===n.nextElementSibling)return;n=n.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,d.handleSmoothScroll)(()=>{if(u){n.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!v(n,t)&&(e.scrollTop=0,v(n,t)||n.scrollIntoView())},{dontForceLayout:!0}),n.focus()}}}}function g(e){let{segmentPath:t,children:r}=e,n=(0,o.useContext)(l.GlobalLayoutRouterContext);if(!n)throw Error("invariant global layout router not mounted");return o.default.createElement(m,{segmentPath:t,focusAndScrollRef:n.focusAndScrollRef},r)}function O(e){let{parallelRouterKey:t,url:r,childNodes:n,childProp:u,segmentPath:a,tree:s,cacheKey:d}=e,p=(0,o.useContext)(l.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:_,tree:y}=p,b=n.get(d);if(u&&null!==u.current&&(b?b.status===l.CacheStates.LAZY_INITIALIZED&&(b.status=l.CacheStates.READY,b.subTreeData=u.current):(n.set(d,{status:l.CacheStates.READY,data:null,subTreeData:u.current,parallelRoutes:new Map}),b=n.get(d))),!b||b.status===l.CacheStates.LAZY_INITIALIZED){let e=function e(t,r){if(t){let[n,u]=t,o=2===t.length;if((0,f.matchSegment)(r[0],n)&&r[1].hasOwnProperty(u)){if(o){let t=e(void 0,r[1][u]);return[r[0],{...r[1],[u]:[t[0],t[1],t[2],"refetch"]}]}return[r[0],{...r[1],[u]:e(t.slice(2),r[1][u])}]}}return r}(["",...a],y);n.set(d,{status:l.CacheStates.DATA_FETCH,data:(0,i.fetchServerResponse)(new URL(r,location.origin),e,p.nextUrl,h),subTreeData:null,head:b&&b.status===l.CacheStates.LAZY_INITIALIZED?b.head:void 0,parallelRoutes:b&&b.status===l.CacheStates.LAZY_INITIALIZED?b.parallelRoutes:new Map}),b=n.get(d)}if(!b)throw Error("Child node should always exist");if(b.subTreeData&&b.data)throw Error("Child node should not have both subTreeData and data");if(b.data){let[e,t]=(0,o.use)(b.data);if("string"==typeof e)return window.location.href=r,null;b.data=null,setTimeout(()=>{o.default.startTransition(()=>{_(y,e,t)})}),(0,o.use)((0,c.createInfinitePromise)())}b.subTreeData||(0,o.use)((0,c.createInfinitePromise)());let v=o.default.createElement(l.LayoutRouterContext.Provider,{value:{tree:s[1][t],childNodes:b.parallelRoutes,url:r}},b.subTreeData);return v}function P(e){let{children:t,loading:r,loadingStyles:n,hasLoading:u}=e;return u?o.default.createElement(o.default.Suspense,{fallback:o.default.createElement(o.default.Fragment,null,n,r)},t):o.default.createElement(o.default.Fragment,null,t)}function E(e){let{parallelRouterKey:t,segmentPath:r,childProp:n,error:u,errorStyles:a,templateStyles:i,loading:c,loadingStyles:d,hasLoading:b,template:v,notFound:m,notFoundStyles:E,asNotFound:R,styles:j}=e,S=(0,o.useContext)(l.LayoutRouterContext);if(!S)throw Error("invariant expected layout router to be mounted");let{childNodes:T,tree:M,url:w}=S,C=T.get(t);C||(T.set(t,new Map),C=T.get(t));let x=M[1][t][0],A=n.segment,N=(0,_.getSegmentValue)(x),I=[x];return o.default.createElement(o.default.Fragment,null,j,I.map(e=>{let j=(0,f.matchSegment)(e,A),S=(0,_.getSegmentValue)(e),T=(0,y.createRouterCacheKey)(e);return o.default.createElement(l.TemplateContext.Provider,{key:(0,y.createRouterCacheKey)(e,!0),value:o.default.createElement(g,{segmentPath:r},o.default.createElement(s.ErrorBoundary,{errorComponent:u,errorStyles:a},o.default.createElement(P,{hasLoading:b,loading:c,loadingStyles:d},o.default.createElement(h.NotFoundBoundary,{notFound:m,notFoundStyles:E,asNotFound:R},o.default.createElement(p.RedirectBoundary,null,o.default.createElement(O,{parallelRouterKey:t,url:w,tree:M,childNodes:C,childProp:j?n:null,segmentPath:r,cacheKey:T,isActive:N===S}))))))},o.default.createElement(o.default.Fragment,null,i,v))}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7686:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{matchSegment:function(){return u},canSegmentBeOverridden:function(){return o}});let n=r(24778),u=(e,t)=>"string"==typeof e&&"string"==typeof t?e===t:!!(Array.isArray(e)&&Array.isArray(t))&&e[0]===t[0]&&e[1]===t[1],o=(e,t)=>{var r;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(r=(0,n.getSegmentParam)(e))?void 0:r.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30794:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ReadonlyURLSearchParams:function(){return p},useSearchParams:function(){return h},usePathname:function(){return _},ServerInsertedHTMLContext:function(){return i.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return i.useServerInsertedHTML},useRouter:function(){return y},useParams:function(){return b},useSelectedLayoutSegments:function(){return v},useSelectedLayoutSegment:function(){return m},redirect:function(){return c.redirect},notFound:function(){return s.notFound}});let n=r(86006),u=r(56858),o=r(70510),a=r(30955),l=r(90020),i=r(16540),c=r(89510),s=r(6090),f=Symbol("internal for urlsearchparams readonly");function d(){return Error("ReadonlyURLSearchParams cannot be modified")}class p{[Symbol.iterator](){return this[f][Symbol.iterator]()}append(){throw d()}delete(){throw d()}set(){throw d()}sort(){throw d()}constructor(e){this[f]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e)}}function h(){(0,a.clientHookInServerComponentError)("useSearchParams");let e=(0,n.useContext)(o.SearchParamsContext),t=(0,n.useMemo)(()=>e?new p(e):null,[e]);return t}function _(){return(0,a.clientHookInServerComponentError)("usePathname"),(0,n.useContext)(o.PathnameContext)}function y(){(0,a.clientHookInServerComponentError)("useRouter");let e=(0,n.useContext)(u.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function b(){(0,a.clientHookInServerComponentError)("useParams");let e=(0,n.useContext)(u.GlobalLayoutRouterContext);return e?function e(t,r){void 0===r&&(r={});let n=t[1];for(let t of Object.values(n)){let n=t[0],u=Array.isArray(n),o=u?n[1]:n;!o||o.startsWith("__PAGE__")||(u&&(r[n[0]]=n[1]),r=e(t,r))}return r}(e.tree):null}function v(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegments");let{tree:t}=(0,n.useContext)(u.LayoutRouterContext);return function e(t,r,n,u){let o;if(void 0===n&&(n=!0),void 0===u&&(u=[]),n)o=t[1][r];else{var a;let e=t[1];o=null!=(a=e.children)?a:Object.values(e)[0]}if(!o)return u;let i=o[0],c=(0,l.getSegmentValue)(i);return!c||c.startsWith("__PAGE__")?u:(u.push(c),e(o,r,!1,u))}(t,e)}function m(e){void 0===e&&(e="children"),(0,a.clientHookInServerComponentError)("useSelectedLayoutSegment");let t=v(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77776:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return l}});let n=r(26927),u=n._(r(86006)),o=r(30794);class a extends u.default.Component{static getDerivedStateFromError(e){if((null==e?void 0:e.digest)==="NEXT_NOT_FOUND")return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?u.default.createElement(u.default.Fragment,null,u.default.createElement("meta",{name:"robots",content:"noindex"}),this.props.notFoundStyles,this.props.notFound):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function l(e){let{notFound:t,notFoundStyles:r,asNotFound:n,children:l}=e,i=(0,o.usePathname)();return t?u.default.createElement(a,{pathname:i,notFound:t,notFoundStyles:r,asNotFound:n},l):u.default.createElement(u.default.Fragment,null,l)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6090:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{notFound:function(){return n},isNotFoundError:function(){return u}});let r="NEXT_NOT_FOUND";function n(){let e=Error(r);throw e.digest=r,e}function u(e){return(null==e?void 0:e.digest)===r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51323:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectErrorBoundary:function(){return i},RedirectBoundary:function(){return c}});let n=r(25909),u=n._(r(86006)),o=r(30794),a=r(89510);function l(e){let{redirect:t,reset:r,redirectType:n}=e,l=(0,o.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{n===a.RedirectType.push?l.push(t,{}):l.replace(t,{}),r()})},[t,n,r,l]),null}class i extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e)){let t=(0,a.getURLFromRedirectError)(e),r=(0,a.getRedirectTypeFromError)(e);return{redirect:t,redirectType:r}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?u.default.createElement(l,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function c(e){let{children:t}=e,r=(0,o.useRouter)();return u.default.createElement(i,{router:r},t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89510:function(e,t,r){"use strict";var n,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RedirectType:function(){return n},getRedirectError:function(){return l},redirect:function(){return i},isRedirectError:function(){return c},getURLFromRedirectError:function(){return s},getRedirectTypeFromError:function(){return f}});let o=r(68214),a="NEXT_REDIRECT";function l(e,t){let r=Error(a);r.digest=a+";"+t+";"+e;let n=o.requestAsyncStorage.getStore();return n&&(r.mutableCookies=n.mutableCookies),r}function i(e,t){throw void 0===t&&(t="replace"),l(e,t)}function c(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;let[t,r,n]=e.digest.split(";",3);return t===a&&("replace"===r||"push"===r)&&"string"==typeof n}function s(e){return c(e)?e.digest.split(";",3)[2]:null}function f(e){if(!c(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(u=n||(n={})).push="push",u.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(25909),u=n._(r(86006)),o=r(56858);function a(){let e=(0,u.useContext)(o.TemplateContext);return u.default.createElement(u.default.Fragment,null,e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81440:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return a}});let n=r(56858),u=r(87839),o=r(57570);function a(e,t,r,a){void 0===a&&(a=!1);let[l,i,c]=r.slice(-3);return null!==i&&(3===r.length?(t.status=n.CacheStates.READY,t.subTreeData=i,(0,u.fillLazyItemsTillLeafWithHead)(t,e,l,c,a)):(t.status=n.CacheStates.READY,t.subTreeData=e.subTreeData,t.parallelRoutes=new Map(e.parallelRoutes),(0,o.fillCacheWithNewSubTreeData)(t,e,r,a)),!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94427:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,r,o){let a;let[l,i,,,c]=r;if(1===t.length){let e=u(r,o);return e}let[s,f]=t;if(!(0,n.matchSegment)(s,l))return null;let d=2===t.length;if(d)a=u(i[f],o);else if(null===(a=e(t.slice(2),i[f],o)))return null;let p=[t[0],{...i,[f]:a}];return c&&(p[4]=!0),p}}});let n=r(7686);function u(e,t){let[r,o]=e,[a,l]=t;if("__DEFAULT__"===a&&"__DEFAULT__"!==r)return e;if((0,n.matchSegment)(r,a)){let t={};for(let e in o){let r=void 0!==l[e];r?t[e]=u(o[e],l[e]):t[e]=o[e]}for(let e in l)t[e]||(t[e]=l[e]);let n=[r,t];return e[2]&&(n[2]=e[2]),e[3]&&(n[3]=e[3]),e[4]&&(n[4]=e[4]),n}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27338:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{extractPathFromFlightRouterState:function(){return l},computeChangedPath:function(){return i}});let n=r(47399),u=r(7686),o=e=>"string"==typeof e?e:e[1];function a(e){return e.split("/").reduce((e,t)=>""===t||t.startsWith("(")&&t.endsWith(")")?e:e+"/"+t,"")||"/"}function l(e){var t;let r=Array.isArray(e[0])?e[0][1]:e[0];if("__DEFAULT__"===r||n.INTERCEPTION_ROUTE_MARKERS.some(e=>r.startsWith(e)))return;if(r.startsWith("__PAGE__"))return"";let u=[r],o=null!=(t=e[1])?t:{},i=o.children?l(o.children):void 0;if(void 0!==i)u.push(i);else for(let[e,t]of Object.entries(o)){if("children"===e)continue;let r=l(t);void 0!==r&&u.push(r)}return a(u.join("/"))}function i(e,t){let r=function e(t,r){let[a,i]=t,[c,s]=r,f=o(a),d=o(c);if(n.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(a,c)){var p;return null!=(p=l(r))?p:""}for(let t in i)if(s[t]){let r=e(i[t],s[t]);if(null!==r)return o(c)+"/"+r}return null}(e,t);return null==r||"/"===r?r:a(r)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56312:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return l}});let n=r(56858),u=r(56312),o=r(87839),a=r(27338);function l(e){var t;let{buildId:r,initialTree:l,children:i,initialCanonicalUrl:c,initialParallelRoutes:s,isServer:f,location:d,initialHead:p}=e,h={status:n.CacheStates.READY,data:null,subTreeData:i,parallelRoutes:f?new Map:s};return(null===s||0===s.size)&&(0,o.fillLazyItemsTillLeafWithHead)(h,void 0,l,p),{buildId:r,tree:l,cache:h,prefetchCache:new Map,pushRef:{pendingPush:!1,mpaNavigation:!1},focusAndScrollRef:{apply:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:d?(0,u.createHrefFromUrl)(d):c,nextUrl:null!=(t=(0,a.extractPathFromFlightRouterState)(l)||(null==d?void 0:d.pathname))?t:null}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35434:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createOptimisticTree",{enumerable:!0,get:function(){return function e(t,r,u){let o;let[a,l,i,c,s]=r||[null,{}],f=t[0],d=1===t.length,p=null!==a&&(0,n.matchSegment)(a,f),h=Object.keys(l).length>1,_=!r||!p||h,y={};if(null!==a&&p&&(y=l),!d&&!h){let r=e(t.slice(1),y?y.children:null,u||_);o=r}let b=[f,{...y,...o?{children:o}:{}}];return i&&(b[2]=i),!u&&_?b[3]="refetch":p&&c&&(b[3]=c),p&&s&&(b[4]=s),b}}});let n=r(7686);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55199:function(e,t){"use strict";function r(e){return e.status="pending",e.then(t=>{"pending"===e.status&&(e.status="fulfilled",e.value=t)},t=>{"pending"===e.status&&(e.status="rejected",e.value=t)}),e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRecordFromThenable",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55114:function(e,t){"use strict";function r(e,t){return void 0===t&&(t=!1),Array.isArray(e)?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith("__PAGE__")?"__PAGE__":e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return r}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67630:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let n=r(35456),u=r(84767),o=r(68802),a=r(61491),l=r(39748),i=r(4877);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0]}async function s(e,t,r,s,f){let d={[u.RSC]:"1",[u.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[u.NEXT_ROUTER_PREFETCH]="1"),r&&(d[u.NEXT_URL]=r);let p=(0,i.hexHash)([d[u.NEXT_ROUTER_PREFETCH]||"0",d[u.NEXT_ROUTER_STATE_TREE]].join(","));try{let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(u.NEXT_RSC_UNION_QUERY,p);let r=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(r.url),i=r.redirected?l:void 0,f=r.headers.get("content-type")||"",h=f===u.RSC_CONTENT_TYPE_HEADER;if(h||(h=f.startsWith("text/plain")),!h||!r.ok)return c(l.toString());let[_,y]=await (0,n.createFromFetch)(Promise.resolve(r),{callServer:a.callServer});if(s!==_)return c(r.url);return[y,i]}catch(t){return console.error("Failed to fetch RSC payload. Falling back to browser navigation.",t),[e.toString(),void 0]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1555:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithDataProperty",{enumerable:!0,get:function(){return function e(t,r,o,a,l){void 0===l&&(l=!1);let i=o.length<=2,[c,s]=o,f=(0,u.createRouterCacheKey)(s),d=r.parallelRoutes.get(c);if(!d||l&&r.parallelRoutes.size>1)return{bailOptimistic:!0};let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),_=p.get(f);if(i){_&&_.data&&_!==h||p.set(f,{status:n.CacheStates.DATA_FETCH,data:a(),subTreeData:null,parallelRoutes:new Map});return}if(!_||!h){_||p.set(f,{status:n.CacheStates.DATA_FETCH,data:a(),subTreeData:null,parallelRoutes:new Map});return}return _===h&&(_={status:_.status,data:_.data,subTreeData:_.subTreeData,parallelRoutes:new Map(_.parallelRoutes)},p.set(f,_)),e(_,h,o.slice(2),a)}}});let n=r(56858),u=r(55114);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57570:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,r,l,i){let c=l.length<=5,[s,f]=l,d=(0,a.createRouterCacheKey)(f),p=r.parallelRoutes.get(s);if(!p)return;let h=t.parallelRoutes.get(s);h&&h!==p||(h=new Map(p),t.parallelRoutes.set(s,h));let _=p.get(d),y=h.get(d);if(c){y&&y.data&&y!==_||(y={status:n.CacheStates.READY,data:null,subTreeData:l[3],parallelRoutes:_?new Map(_.parallelRoutes):new Map},_&&(0,u.invalidateCacheByRouterState)(y,_,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,_,l[2],l[4],i),h.set(d,y));return}y&&_&&(y===_&&(y={status:y.status,data:y.data,subTreeData:y.subTreeData,parallelRoutes:new Map(y.parallelRoutes)},h.set(d,y)),e(y,_,l.slice(2),i))}}});let n=r(56858),u=r(72883),o=r(87839),a=r(55114);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87839:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,r,o,a,l){let i=0===Object.keys(o[1]).length;if(i){t.head=a;return}for(let i in o[1]){let c=o[1][i],s=c[0],f=(0,u.createRouterCacheKey)(s);if(r){let u=r.parallelRoutes.get(i);if(u){let r=new Map(u),o=r.get(f),s=l&&o?{status:o.status,data:o.data,subTreeData:o.subTreeData,parallelRoutes:new Map(o.parallelRoutes)}:{status:n.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map(null==o?void 0:o.parallelRoutes)};r.set(f,s),e(s,o,c,a,l),t.parallelRoutes.set(i,r);continue}}let d={status:n.CacheStates.LAZY_INITIALIZED,data:null,subTreeData:null,parallelRoutes:new Map},p=t.parallelRoutes.get(i);p?p.set(f,d):t.parallelRoutes.set(i,new Map([[f,d]])),e(d,void 0,c,a,l)}}}});let n=r(56858),u=r(55114);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29368:function(e,t){"use strict";var r,n;function u(e){let{kind:t,prefetchTime:r,lastUsedTime:n}=e;return Date.now()<(null!=n?n:r)+3e4?n?"reusable":"fresh":"auto"===t&&Date.now()["children",e]).flat(),p=(0,c.fillCacheWithDataProperty)(f,e.cache,d,()=>(t||(t=(0,o.createRecordFromThenable)((0,u.fetchServerResponse)(r,i,e.nextUrl,e.buildId))),t),!0);if(!(null==p?void 0:p.bailOptimistic))return R.previousTree=e.tree,R.patchedTree=i,R.pendingPush=w,R.hashFragment=T,R.scrollableSegments=[],R.cache=f,R.canonicalUrl=M,e.prefetchCache.set((0,l.createHrefFromUrl)(r,!1),{data:Promise.resolve(t),kind:h.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:e.tree,lastUsedTime:Date.now()}),(0,_.handleMutable)(e,R)}if(!x){let t=(0,o.createRecordFromThenable)((0,u.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId)),n={data:Promise.resolve(t),kind:h.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:e.tree,lastUsedTime:null};e.prefetchCache.set((0,l.createHrefFromUrl)(r,!1),n),x=n}let A=(0,b.getPrefetchEntryCacheStatus)(x),{treeAtTimeOfPrefetch:N,data:I}=x,[D,F]=(0,a.readRecordValue)(I);if(x.lastUsedTime=Date.now(),"string"==typeof D)return m(e,R,D,w);let k=e.tree,L=e.cache,U=[];for(let t of D){let o=t.slice(0,-4),[a]=t.slice(-3),l=(0,f.applyRouterStatePatchToTree)(["",...o],k,a);if(null===l&&(l=(0,f.applyRouterStatePatchToTree)(["",...o],N,a)),null!==l){if((0,p.isNavigatingToNewRootLayout)(k,l))return m(e,R,M,w);let s=(0,y.applyFlightData)(L,E,t,"auto"===x.kind&&A===b.PrefetchCacheEntryStatus.reusable);s||A!==b.PrefetchCacheEntryStatus.stale||(s=function(e,t,r,u,o){let a=!1;e.status=n.CacheStates.READY,e.subTreeData=t.subTreeData,e.parallelRoutes=new Map(t.parallelRoutes);let l=g(u).map(e=>[...r,...e]);for(let r of l){let n=(0,c.fillCacheWithDataProperty)(e,t,r,o);(null==n?void 0:n.bailOptimistic)||(a=!0)}return a}(E,L,o,a,()=>(0,u.fetchServerResponse)(r,k,e.nextUrl,e.buildId)));let f=(0,d.shouldHardNavigate)(["",...o],k);for(let e of(f?(E.status=n.CacheStates.READY,E.subTreeData=L.subTreeData,(0,i.invalidateCacheBelowFlightSegmentPath)(E,L,o),R.cache=E):s&&(R.cache=E),L=E,k=l,g(a))){let t=[...o,...e];"__DEFAULT__"!==t[t.length-1]&&U.push(t)}}}return R.previousTree=e.tree,R.patchedTree=k,R.scrollableSegments=U,R.canonicalUrl=F?(0,l.createHrefFromUrl)(F):M,R.pendingPush=w,R.hashFragment=T,(0,_.handleMutable)(e,R)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prefetchReducer",{enumerable:!0,get:function(){return c}});let n=r(56312),u=r(67630),o=r(39748),a=r(55199),l=r(18908),i=r(84767);function c(e,t){(0,l.prunePrefetchCache)(e.prefetchCache);let{url:r}=t;r.searchParams.delete(i.NEXT_RSC_UNION_QUERY);let c=(0,n.createHrefFromUrl)(r,!1),s=e.prefetchCache.get(c);if(s&&(s.kind===o.PrefetchKind.TEMPORARY&&e.prefetchCache.set(c,{...s,kind:t.kind}),!(s.kind===o.PrefetchKind.AUTO&&t.kind===o.PrefetchKind.FULL)))return e;let f=(0,a.createRecordFromThenable)((0,u.fetchServerResponse)(r,e.tree,e.nextUrl,e.buildId,t.kind));return e.prefetchCache.set(c,{treeAtTimeOfPrefetch:e.tree,data:f,kind:t.kind,prefetchTime:Date.now(),lastUsedTime:null}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18908:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"prunePrefetchCache",{enumerable:!0,get:function(){return u}});let n=r(29368);function u(e){for(let[t,r]of e)(0,n.getPrefetchEntryCacheStatus)(r)===n.PrefetchCacheEntryStatus.expired&&e.delete(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},45905:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return p}});let n=r(67630),u=r(55199),o=r(69736),a=r(56312),l=r(94427),i=r(36711),c=r(57577),s=r(65780),f=r(56858),d=r(87839);function p(e,t){let{cache:r,mutable:p,origin:h}=t,_=e.canonicalUrl,y=JSON.stringify(p.previousTree)===JSON.stringify(e.tree);if(y)return(0,s.handleMutable)(e,p);r.data||(r.data=(0,u.createRecordFromThenable)((0,n.fetchServerResponse)(new URL(_,h),[e.tree[0],e.tree[1],e.tree[2],"refetch"],e.nextUrl,e.buildId)));let[b,v]=(0,o.readRecordValue)(r.data);if("string"==typeof b)return(0,c.handleExternalUrl)(e,p,b,e.pushRef.pendingPush);r.data=null;let m=e.tree;for(let t of b){if(3!==t.length)return console.log("REFRESH FAILED"),e;let[n]=t,u=(0,l.applyRouterStatePatchToTree)([""],m,n);if(null===u)throw Error("SEGMENT MISMATCH");if((0,i.isNavigatingToNewRootLayout)(m,u))return(0,c.handleExternalUrl)(e,p,_,e.pushRef.pendingPush);let o=v?(0,a.createHrefFromUrl)(v):void 0;v&&(p.canonicalUrl=o);let[s,h]=t.slice(-2);null!==s&&(r.status=f.CacheStates.READY,r.subTreeData=s,(0,d.fillLazyItemsTillLeafWithHead)(r,void 0,n,h),p.cache=r,p.prefetchCache=new Map),p.previousTree=m,p.patchedTree=u,p.canonicalUrl=_,m=u}return(0,s.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},92056:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let n=r(56312);function u(e,t){let{url:r,tree:u}=t,o=(0,n.createHrefFromUrl)(r);return{buildId:e.buildId,canonicalUrl:o,pushRef:e.pushRef,focusAndScrollRef:e.focusAndScrollRef,cache:e.cache,prefetchCache:e.prefetchCache,tree:u,nextUrl:r.pathname}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6110:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return p}});let n=r(61491),u=r(84767),o=r(55199),a=r(69736),l=r(35456),i=r(39748),c=r(32781),s=r(56312),f=r(89510);async function d(e,t){let r,{actionId:o,actionArgs:a}=t,i=await (0,l.encodeReply)(a),s=await fetch("",{method:"POST",headers:{Accept:u.RSC_CONTENT_TYPE_HEADER,"Next-Action":o,[u.NEXT_ROUTER_STATE_TREE]:JSON.stringify(e.tree),...e.nextUrl?{[u.NEXT_URL]:e.nextUrl}:{}},body:i}),f=s.headers.get("x-action-redirect");try{let e=JSON.parse(s.headers.get("x-action-revalidated")||"[[],0,0]");r={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){r={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,c.addBasePath)(f),window.location.origin):void 0;if(s.headers.get("content-type")===u.RSC_CONTENT_TYPE_HEADER){let e=await (0,l.createFromFetch)(Promise.resolve(s),{callServer:n.callServer});if(f){let[,t]=e;return{actionFlightData:null==t?void 0:t[1],redirectLocation:d,revalidatedParts:r}}{let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:r}}}return{redirectLocation:d,revalidatedParts:r}}function p(e,t){if(t.mutable.serverActionApplied)return e;t.mutable.inFlightServerAction||(t.mutable.previousTree=e.tree,t.mutable.previousUrl=e.canonicalUrl,t.mutable.inFlightServerAction=(0,o.createRecordFromThenable)(d(e,t)));try{var r,n;let{actionResult:u,actionFlightData:l,redirectLocation:c,revalidatedParts:d}=(0,a.readRecordValue)(t.mutable.inFlightServerAction);if(d.tag||d.cookie?e.prefetchCache.clear():d.paths.length>0&&e.prefetchCache.clear(),c){if(l){let n=(0,s.createHrefFromUrl)(c,!1),u=e.prefetchCache.get(n);e.prefetchCache.set(n,{data:(0,o.createRecordFromThenable)(Promise.resolve([l,void 0])),kind:null!=(r=null==u?void 0:u.kind)?r:i.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:t.mutable.previousTree,lastUsedTime:null})}t.reject((0,f.getRedirectError)(c.toString(),f.RedirectType.push))}else{if(l){let r=(0,s.createHrefFromUrl)(new URL(t.mutable.previousUrl,window.location.origin),!1),u=e.prefetchCache.get(r);e.prefetchCache.set((0,s.createHrefFromUrl)(new URL(t.mutable.previousUrl,window.location.origin),!1),{data:(0,o.createRecordFromThenable)(Promise.resolve([l,void 0])),kind:null!=(n=null==u?void 0:u.kind)?n:i.PrefetchKind.TEMPORARY,prefetchTime:Date.now(),treeAtTimeOfPrefetch:t.mutable.previousTree,lastUsedTime:null}),setTimeout(()=>{t.changeByServerResponse(t.mutable.previousTree,l,void 0)})}t.resolve(u)}}catch(e){if("rejected"===e.status)t.reject(e.value);else throw e}return t.mutable.serverActionApplied=!0,e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65140:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return c}});let n=r(56312),u=r(94427),o=r(36711),a=r(57577),l=r(81440),i=r(65780);function c(e,t){let{flightData:r,previousTree:c,overrideCanonicalUrl:s,cache:f,mutable:d}=t,p=JSON.stringify(c)===JSON.stringify(e.tree);if(!p)return console.log("TREE MISMATCH"),e;if(d.previousTree)return(0,i.handleMutable)(e,d);if("string"==typeof r)return(0,a.handleExternalUrl)(e,d,r,e.pushRef.pendingPush);let h=e.tree,_=e.cache;for(let t of r){let r=t.slice(0,-4),[i]=t.slice(-3,-2),c=(0,u.applyRouterStatePatchToTree)(["",...r],h,i);if(null===c)throw Error("SEGMENT MISMATCH");if((0,o.isNavigatingToNewRootLayout)(h,c))return(0,a.handleExternalUrl)(e,d,e.canonicalUrl,e.pushRef.pendingPush);let p=s?(0,n.createHrefFromUrl)(s):void 0;p&&(d.canonicalUrl=p),(0,l.applyFlightData)(_,f,t),d.previousTree=h,d.patchedTree=c,d.cache=f,_=f,h=c}return(0,i.handleMutable)(e,d)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39748:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return u},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return l},ACTION_PREFETCH:function(){return i},ACTION_FAST_REFRESH:function(){return c},ACTION_SERVER_ACTION:function(){return s}});let u="refresh",o="navigate",a="restore",l="server-patch",i="prefetch",c="fast-refresh",s="server-action";(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41732:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let n=r(39748),u=r(57577),o=r(65140),a=r(92056),l=r(45905),i=r(21418),c=r(3482),s=r(6110),f=function(e,t){switch(t.type){case n.ACTION_NAVIGATE:return(0,u.navigateReducer)(e,t);case n.ACTION_SERVER_PATCH:return(0,o.serverPatchReducer)(e,t);case n.ACTION_RESTORE:return(0,a.restoreReducer)(e,t);case n.ACTION_REFRESH:return(0,l.refreshReducer)(e,t);case n.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case n.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case n.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52569:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,r){let[u,o]=r,[a,l]=t;if(!(0,n.matchSegment)(a,u))return!!Array.isArray(a);let i=t.length<=2;return!i&&e(t.slice(2),o[l])}}});let n=r(7686);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43889:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createSearchParamsBailoutProxy",{enumerable:!0,get:function(){return u}});let n=r(94406);function u(){return new Proxy({},{get(e,t){"string"==typeof t&&(0,n.staticGenerationBailout)("searchParams."+t)}})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94406:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationBailout",{enumerable:!0,get:function(){return a}});let n=r(45085),u=r(1839);class o extends Error{constructor(...e){super(...e),this.code="NEXT_STATIC_GEN_BAILOUT"}}let a=(e,t)=>{let r=u.staticGenerationAsyncStorage.getStore();if(null==r?void 0:r.forceStatic)return!0;if(null==r?void 0:r.dynamicShouldError){let{dynamic:r="error",link:n}=t||{};throw new o('Page with `dynamic = "'+r+"\"` couldn't be rendered statically because it used `"+e+"`."+(n?" See more info here: "+n:""))}if(r&&(r.revalidate=0),null==r?void 0:r.isStaticGeneration){let t=new n.DynamicServerError(e);throw r.dynamicUsageDescription=e,r.dynamicUsageStack=t.stack,t}return!1};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},37396:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(26927),u=n._(r(86006)),o=r(43889);function a(e){let{Component:t,propsForComponent:r}=e,n=(0,o.createSearchParamsBailoutProxy)();return u.default.createElement(t,{searchParams:n,...r})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27214:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useReducerWithReduxDevtools",{enumerable:!0,get:function(){return o}});let n=r(86006);function u(e){if(e instanceof Map){let t={};for(let[r,n]of e.entries()){if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n._bundlerConfig){t[r]="FlightData";continue}}t[r]=u(n)}return t}if("object"==typeof e&&null!==e){let t={};for(let r in e){let n=e[r];if("function"==typeof n){t[r]="fn()";continue}if("object"==typeof n&&null!==n){if(n.$$typeof){t[r]=n.$$typeof.toString();continue}if(n.hasOwnProperty("_bundlerConfig")){t[r]="FlightData";continue}}t[r]=u(n)}return t}return Array.isArray(e)?e.map(u):e}let o=function(e,t){let r=(0,n.useRef)(),o=(0,n.useRef)();(0,n.useEffect)(()=>{if(!r.current&&!1!==o.current){if(void 0===o.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){o.current=!1;return}return r.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),r.current&&r.current.init(u(t)),()=>{r.current=void 0}}},[t]);let[a,l]=(0,n.useReducer)((t,n)=>{let o=e(t,n);return r.current&&r.current.send(n,u(o)),o},t),i=(0,n.useCallback)(()=>{r.current&&r.current.send({type:"RENDER_SYNC"},u(a))},[a]);return[a,l,i]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65231:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return o}});let n=r(30769),u=r(89777),o=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:r,hash:o}=(0,u.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,n.removeTrailingSlash)(t)+r+o:t.endsWith("/")?""+t+r+o:t+"/"+r+o};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8589:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let n=r(65978);function u(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};e.digest!==n.NEXT_DYNAMIC_NO_SSR_CODE&&t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56858:function(e,t,r){"use strict";var n,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{CacheStates:function(){return n},AppRouterContext:function(){return l},LayoutRouterContext:function(){return i},GlobalLayoutRouterContext:function(){return c},TemplateContext:function(){return s}});let o=r(26927),a=o._(r(86006));(u=n||(n={})).LAZY_INITIALIZED="LAZYINITIALIZED",u.DATA_FETCH="DATAFETCH",u.READY="READY";let l=a.default.createContext(null),i=a.default.createContext(null),c=a.default.createContext(null),s=a.default.createContext(null)},4877:function(e,t){"use strict";function r(e){let t=5381;for(let r=0;r!t||t.startsWith("(")&&t.endsWith(")")||t.startsWith("@")||("page"===t||"route"===t)&&r===n.length-1?e:e+"/"+t,""))}function o(e,t){return t?e.replace(/\.rsc($|\?)/,"$1"):e}},33811:function(e,t){"use strict";function r(e,t){void 0===t&&(t={});let r=document.documentElement,n=r.style.scrollBehavior;r.style.scrollBehavior="auto",t.dontForceLayout||r.getClientRects(),e(),r.style.scrollBehavior=n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return r}})},75247:function(e,t){"use strict";function r(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return r}})},89777:function(e,t){"use strict";function r(e){let t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1?{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return r}})},30769:function(e,t){"use strict";function r(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return r}})},16540:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return a}});let n=r(25909),u=n._(r(86006)),o=u.default.createContext(null);function a(e){let t=(0,u.useContext)(o);t&&t(e)}},80211:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return n}});class r{disable(){throw Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available")}getStore(){}run(){throw Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available")}exit(){throw Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available")}enterWith(){throw Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available")}}function n(){return globalThis.AsyncLocalStorage?new globalThis.AsyncLocalStorage:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68214:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return u}});let n=r(80211),u=(0,n.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1839:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return u}});let n=r(80211),u=(0,n.createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93194:function(e,t,r){"use strict";var n=r(8431);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},8431:function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(42614)},82672:function(e,t,r){"use strict";/** - * @license React - * react-server-dom-webpack-client.browser.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n=r(8431),u=r(86006),o={stream:!0},a=new Map,l=new Map;function i(){}var c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,s=Symbol.for("react.element"),f=Symbol.for("react.lazy"),d=Symbol.for("react.default_value"),p=Symbol.iterator,h=Array.isArray,_=new WeakMap;function y(e,t,r,n){var u=1,o=0,a=null;e=JSON.stringify(e,function e(l,i){if(null===i)return null;if("object"==typeof i){if("function"==typeof i.then){null===a&&(a=new FormData),o++;var c,s,f=u++;return i.then(function(n){n=JSON.stringify(n,e);var u=a;u.append(t+f,n),0==--o&&r(u)},function(e){n(e)}),"$@"+f.toString(16)}if(i instanceof FormData){null===a&&(a=new FormData);var d=a,y=t+(l=u++)+"_";return i.forEach(function(e,t){d.append(y+t,e)}),"$K"+l.toString(16)}return!h(i)&&(null===(s=i)||"object"!=typeof s?null:"function"==typeof(s=p&&s[p]||s["@@iterator"])?s:null)?Array.from(i):i}if("string"==typeof i)return"Z"===i[i.length-1]&&this[l]instanceof Date?"$D"+i:i="$"===i[0]?"$"+i:i;if("boolean"==typeof i)return i;if("number"==typeof i)return Number.isFinite(c=i)?0===c&&-1/0==1/c?"$-0":c:1/0===c?"$Infinity":-1/0===c?"$-Infinity":"$NaN";if(void 0===i)return"$undefined";if("function"==typeof i){if(void 0!==(i=_.get(i)))return i=JSON.stringify(i,e),null===a&&(a=new FormData),l=u++,a.set(t+l,i),"$F"+l.toString(16);throw Error("Client Functions cannot be passed directly to Server Functions. Only Functions passed from the Server can be passed back again.")}if("symbol"==typeof i){if(Symbol.for(l=i.description)!==i)throw Error("Only global symbols received from Symbol.for(...) can be passed to Server Functions. The symbol Symbol.for("+i.description+") cannot be found among global symbols.");return"$S"+l}if("bigint"==typeof i)return"$n"+i.toString(10);throw Error("Type "+typeof i+" is not supported as an argument to a Server Function.")}),null===a?r(e):(a.set(t+"0",e),0===o&&r(a))}var b=new WeakMap;function v(e){var t=_.get(this);if(!t)throw Error("Tried to encode a Server Action from a different instance than the encoder is from. This is a bug in React.");var r=null;if(null!==t.bound){if((r=b.get(t))||(n=t,a=new Promise(function(e,t){u=e,o=t}),y(n,"",function(e){if("string"==typeof e){var t=new FormData;t.append("0",e),e=t}a.status="fulfilled",a.value=e,u(e)},function(e){a.status="rejected",a.reason=e,o(e)}),r=a,b.set(t,r)),"rejected"===r.status)throw r.reason;if("fulfilled"!==r.status)throw r;t=r.value;var n,u,o,a,l=new FormData;t.forEach(function(t,r){l.append("$ACTION_"+e+":"+r,t)}),r=l,t="$ACTION_REF_"+e}else t="$ACTION_ID_"+t.id;return{name:t,method:"POST",encType:"multipart/form-data",data:r}}var m=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ContextRegistry;function g(e,t,r,n){this.status=e,this.value=t,this.reason=r,this._response=n}function O(e){switch(e.status){case"resolved_model":M(e);break;case"resolved_module":w(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":throw e;default:throw e.reason}}function P(e,t){for(var r=0;r>>1,u=e[n];if(0>>1;no(i,r))co(s,i)?(e[n]=s,e[c]=r,n=c):(e[n]=i,e[l]=r,n=l);else if(co(s,r))e[n]=s,e[c]=r,n=c;else break}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var a,l=performance;t.unstable_now=function(){return l.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,_=!1,y=!1,b=!1,v="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function O(e){for(var t=n(f);null!==t;){if(null===t.callback)u(f);else if(t.startTime<=e)u(f),t.sortIndex=t.expirationTime,r(s,t);else break;t=n(f)}}function P(e){if(b=!1,O(e),!y){if(null!==n(s))y=!0,N(E);else{var t=n(f);null!==t&&I(P,t.startTime-e)}}}function E(e,r){y=!1,b&&(b=!1,m(S),S=-1),_=!0;var o=h;try{e:{for(O(r),p=n(s);null!==p&&(!(p.expirationTime>r)||e&&!w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var l=a(p.expirationTime<=r);if(r=t.unstable_now(),"function"==typeof l){p.callback=l,O(r);var i=!0;break e}p===n(s)&&u(s),O(r)}else u(s);p=n(s)}if(null!==p)i=!0;else{var c=n(f);null!==c&&I(P,c.startTime-r),i=!1}}return i}finally{p=null,h=o,_=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var R=!1,j=null,S=-1,T=5,M=-1;function w(){return!(t.unstable_now()-Me||125a?(e.sortIndex=o,r(f,e),null===n(s)&&e===n(f)&&(b?(m(S),S=-1):b=!0,I(P,o-a))):(e.sortIndex=l,r(s,e),y||_||(y=!0,N(E))),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},26183:function(e,t,r){"use strict";e.exports=r(24248)},24778:function(e,t){"use strict";function r(e){return e.startsWith("[[...")&&e.endsWith("]]")?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:"dynamic",param:e.slice(1,-1)}:null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return r}})},47399:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return u},isInterceptionRouteAppPath:function(){return o},extractInterceptionRouteInformation:function(){return a}});let n=r(54794),u=["(..)(..)","(.)","(..)","(...)"];function o(e){return void 0!==e.split("/").find(e=>u.find(t=>e.startsWith(t)))}function a(e){let t,r,o;for(let n of e.split("/"))if(r=u.find(e=>n.startsWith(e))){[t,o]=e.split(r,2);break}if(!t||!r||!o)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,n.normalizeAppPath)(t),r){case"(.)":o="/"===t?`/${o}`:t+"/"+o;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);o=t.split("/").slice(0,-1).concat(o).join("/");break;case"(...)":o="/"+o;break;case"(..)(..)":let a=t.split("/");if(a.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);o=a.slice(0,-2).concat(o).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:o}}},26927:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}r.r(t),r.d(t,{_:function(){return n},_interop_require_default:function(){return n}})},25909:function(e,t,r){"use strict";function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(u,a,l):u[a]=e[a]}return u.default=e,r&&r.set(e,u),u}r.r(t),r.d(t,{_:function(){return u},_interop_require_wildcard:function(){return u}})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/790-97e6b769f5c791cb.js b/pilot/server/static/_next/static/chunks/790-97e6b769f5c791cb.js deleted file mode 100644 index 2e4343a2b..000000000 --- a/pilot/server/static/_next/static/chunks/790-97e6b769f5c791cb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[790],{87154:function(e,t,r){var n=r(86006);let o=n.createContext(void 0);t.Z=o},81528:function(e,t,r){r.d(t,{Z:function(){return P}});var n=r(46750),o=r(40431),l=r(86006),a=r(99179),i=r(47375),u=r(66519),s=r(47562),c=r(76655),d=r(9268);function f(e){let t=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,n)=>{let o=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===o||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e)||(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function p(){return!0}var m=function(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:u=f,isEnabled:s=p,open:c}=e,m=l.useRef(!1),h=l.useRef(null),v=l.useRef(null),b=l.useRef(null),y=l.useRef(null),g=l.useRef(!1),x=l.useRef(null),Z=(0,a.Z)(t.ref,x),E=l.useRef(null);l.useEffect(()=>{c&&x.current&&(g.current=!r)},[r,c]),l.useEffect(()=>{if(!c||!x.current)return;let e=(0,i.Z)(x.current);return!x.current.contains(e.activeElement)&&(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),g.current&&x.current.focus()),()=>{o||(b.current&&b.current.focus&&(m.current=!0,b.current.focus()),b.current=null)}},[c]),l.useEffect(()=>{if(!c||!x.current)return;let e=(0,i.Z)(x.current),t=t=>{let{current:r}=x;if(null!==r){if(!e.hasFocus()||n||!s()||m.current){m.current=!1;return}if(!r.contains(e.activeElement)){if(t&&y.current!==t.target||e.activeElement!==y.current)y.current=null;else if(null!==y.current)return;if(!g.current)return;let n=[];if((e.activeElement===h.current||e.activeElement===v.current)&&(n=u(x.current)),n.length>0){var o,l;let e=!!((null==(o=E.current)?void 0:o.shiftKey)&&(null==(l=E.current)?void 0:l.key)==="Tab"),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else r.focus()}}},r=t=>{E.current=t,!n&&s()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(m.current=!0,v.current&&v.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",r,!0);let o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&t(null)},50);return()=>{clearInterval(o),e.removeEventListener("focusin",t),e.removeEventListener("keydown",r,!0)}},[r,n,o,s,c,u]);let R=e=>{null===b.current&&(b.current=e.relatedTarget),g.current=!0};return(0,d.jsxs)(l.Fragment,{children:[(0,d.jsx)("div",{tabIndex:c?0:-1,onFocus:R,ref:h,"data-testid":"sentinelStart"}),l.cloneElement(t,{ref:Z,onFocus:e=>{null===b.current&&(b.current=e.relatedTarget),g.current=!0,y.current=e.target;let r=t.props.onFocus;r&&r(e)}}),(0,d.jsx)("div",{tabIndex:c?0:-1,onFocus:R,ref:v,"data-testid":"sentinelEnd"})]})},h=r(30165);function v(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function b(e){return parseInt((0,h.Z)(e).getComputedStyle(e).paddingRight,10)||0}function y(e,t,r,n,o){let l=[t,r,...n];[].forEach.call(e.children,e=>{let t=-1===l.indexOf(e),r=!function(e){let t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&v(e,o)})}function g(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}var x=r(50645),Z=r(88930),E=r(326),R=r(18587);function k(e){return(0,R.d6)("MuiModal",e)}(0,R.sI)("MuiModal",["root","backdrop"]);var I=r(87154);let T=["children","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onClose","onKeyDown","open","component","slots","slotProps"],A=e=>{let{open:t}=e;return(0,s.Z)({root:["root",!t&&"hidden"],backdrop:["backdrop"]},k,{})},C=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&v(e.modalRef,!1);let n=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);y(t,e.mount,e.modalRef,n,!0);let o=g(this.containers,e=>e.container===t);return -1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){let r=g(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=function(e,t){let r=[],n=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,i.Z)(e);return t.body===e?(0,h.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){let e=function(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}((0,i.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${b(n)+e}px`;let t=(0,i.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${b(t)+e}px`})}if(n.parentNode instanceof DocumentFragment)e=(0,i.Z)(n).body;else{let t=n.parentElement,r=(0,h.Z)(n);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}(n,t))}remove(e,t=!0){let r=this.modals.indexOf(e);if(-1===r)return r;let n=g(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&v(e.modalRef,t),y(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=o.modals[o.modals.length-1];e.modalRef&&v(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},N=(0,x.Z)("div",{name:"JoyModal",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e,theme:t})=>(0,o.Z)({"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`,'& ~ [role="listbox"]':{"--unstable_popup-zIndex":`calc(${t.vars.zIndex.modal} + 1)`},position:"fixed",zIndex:t.vars.zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&{visibility:"hidden"})),S=(0,x.Z)("div",{name:"JoyModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})(({theme:e,ownerState:t})=>(0,o.Z)({zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:e.vars.palette.background.backdrop,WebkitTapHighlightColor:"transparent"},t.open&&{backdropFilter:"blur(8px)"})),w=l.forwardRef(function(e,t){let r=(0,Z.Z)({props:e,name:"JoyModal"}),{children:s,container:f,disableAutoFocus:p=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:v=!1,disablePortal:b=!1,disableRestoreFocus:y=!1,disableScrollLock:g=!1,hideBackdrop:x=!1,keepMounted:R=!1,onClose:k,onKeyDown:w,open:P,component:O,slots:M={},slotProps:F={}}=r,L=(0,n.Z)(r,T),$=l.useRef({}),j=l.useRef(null),D=l.useRef(null),W=(0,a.Z)(D,t),V=!0;"false"!==r["aria-hidden"]&&("boolean"!=typeof r["aria-hidden"]||r["aria-hidden"])||(V=!1);let K=()=>(0,i.Z)(j.current),U=()=>($.current.modalRef=D.current,$.current.mount=j.current,$.current),z=()=>{C.mount(U(),{disableScrollLock:g}),D.current&&(D.current.scrollTop=0)},_=(0,u.Z)(()=>{let e=("function"==typeof f?f():f)||K().body;C.add(U(),e),D.current&&z()}),J=()=>C.isTopModal(U()),B=(0,u.Z)(e=>{if(j.current=e,e){if(P&&J())z();else if(D.current){var t;t=D.current,V?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}}}),H=l.useCallback(()=>{C.remove(U(),V)},[V]);l.useEffect(()=>()=>{H()},[H]),l.useEffect(()=>{P?_():H()},[P,H,_]);let Y=(0,o.Z)({},r,{disableAutoFocus:p,disableEnforceFocus:h,disableEscapeKeyDown:v,disablePortal:b,disableRestoreFocus:y,disableScrollLock:g,hideBackdrop:x,keepMounted:R}),q=A(Y),G=(0,o.Z)({},L,{component:O,slots:M,slotProps:F}),[X,Q]=(0,E.Z)("root",{additionalProps:{role:"presentation",onKeyDown:e=>{w&&w(e),"Escape"===e.key&&J()&&!v&&(e.stopPropagation(),k&&k(e,"escapeKeyDown"))}},ref:W,className:q.root,elementType:N,externalForwardedProps:G,ownerState:Y}),[ee,et]=(0,E.Z)("backdrop",{additionalProps:{"aria-hidden":!0,onClick:e=>{e.target===e.currentTarget&&k&&k(e,"backdropClick")},open:P},className:q.backdrop,elementType:S,externalForwardedProps:G,ownerState:Y});return R||P?(0,d.jsx)(I.Z.Provider,{value:k,children:(0,d.jsx)(c.Z,{ref:B,container:f,disablePortal:b,children:(0,d.jsxs)(X,(0,o.Z)({},Q,{children:[x?null:(0,d.jsx)(ee,(0,o.Z)({},et)),(0,d.jsx)(m,{disableEnforceFocus:h,disableAutoFocus:p,disableRestoreFocus:y,isEnabled:J,open:P,children:l.Children.only(s)&&l.cloneElement(s,(0,o.Z)({},void 0===s.props.tabIndex&&{tabIndex:-1}))})]}))})}):null});var P=w},5737:function(e,t,r){r.d(t,{U:function(){return x},Z:function(){return E}});var n=r(46750),o=r(40431),l=r(86006),a=r(89791),i=r(47562),u=r(53832),s=r(95247),c=r(88930),d=r(50645),f=r(81439),p=r(18587);function m(e){return(0,p.d6)("MuiSheet",e)}(0,p.sI)("MuiSheet",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid"]);var h=r(47093),v=r(326),b=r(9268);let y=["className","color","component","variant","invertedColors","slots","slotProps"],g=e=>{let{variant:t,color:r}=e,n={root:["root",t&&`variant${(0,u.Z)(t)}`,r&&`color${(0,u.Z)(r)}`]};return(0,i.Z)(n,m,{})},x=(0,d.Z)("div",{name:"JoySheet",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,n;let l=null==(r=e.variants[t.variant])?void 0:r[t.color],a=(0,f.V)({theme:e,ownerState:t},"borderRadius"),i=(0,f.V)({theme:e,ownerState:t},"bgcolor"),u=(0,f.V)({theme:e,ownerState:t},"backgroundColor"),c=(0,f.V)({theme:e,ownerState:t},"background"),d=(0,s.DW)(e,`palette.${i}`)||i||(0,s.DW)(e,`palette.${u}`)||u||c||(null==l?void 0:l.backgroundColor)||(null==l?void 0:l.background)||e.vars.palette.background.surface;return[(0,o.Z)({"--ListItem-stickyBackground":d,"--Sheet-background":d},void 0!==a&&{"--List-radius":`calc(${a} - var(--variant-borderWidth, 0px))`,"--unstable_actionRadius":`calc(${a} - var(--variant-borderWidth, 0px))`},{backgroundColor:e.vars.palette.background.surface,position:"relative"}),l,"context"!==t.color&&t.invertedColors&&(null==(n=e.colorInversion[t.variant])?void 0:n[t.color])]}),Z=l.forwardRef(function(e,t){let r=(0,c.Z)({props:e,name:"JoySheet"}),{className:l,color:i="neutral",component:u="div",variant:s="plain",invertedColors:d=!1,slots:f={},slotProps:p={}}=r,m=(0,n.Z)(r,y),{getColor:Z}=(0,h.VT)(s),E=Z(e.color,i),R=(0,o.Z)({},r,{color:E,component:u,invertedColors:d,variant:s}),k=g(R),I=(0,o.Z)({},m,{component:u,slots:f,slotProps:p}),[T,A]=(0,v.Z)("root",{ref:t,className:(0,a.Z)(k.root,l),elementType:x,externalForwardedProps:I,ownerState:R}),C=(0,b.jsx)(T,(0,o.Z)({},A));return d?(0,b.jsx)(h.do,{variant:s,children:C}):C});var E=Z},76655:function(e,t,r){var n=r(86006),o=r(8431),l=r(99179),a=r(11059),i=r(65464),u=r(9268);let s=n.forwardRef(function(e,t){let{children:r,container:s,disablePortal:c=!1}=e,[d,f]=n.useState(null),p=(0,l.Z)(n.isValidElement(r)?r.ref:null,t);return((0,a.Z)(()=>{!c&&f(("function"==typeof s?s():s)||document.body)},[s,c]),(0,a.Z)(()=>{if(d&&!c)return(0,i.Z)(t,d),()=>{(0,i.Z)(t,null)}},[t,d,c]),c)?n.isValidElement(r)?n.cloneElement(r,{ref:p}):(0,u.jsx)(n.Fragment,{children:r}):(0,u.jsx)(n.Fragment,{children:d?o.createPortal(r,d):d})});t.Z=s},81439:function(e,t,r){r.d(t,{V:function(){return o}});var n=r(40431);let o=({theme:e,ownerState:t},r,o)=>{let l;let a={};if(t.sx){!function t(r){if("function"==typeof r){let n=r(e);t(n)}else Array.isArray(r)?r.forEach(e=>{"boolean"!=typeof e&&t(e)}):"object"==typeof r&&(a=(0,n.Z)({},a,r))}(t.sx);let o=a[r];if("string"==typeof o||"number"==typeof o){if("borderRadius"===r){var i;if("number"==typeof o)return`${o}px`;l=(null==(i=e.vars)?void 0:i.radius[o])||o}else l=o}"function"==typeof o&&(l=o(e))}return l||o}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/796-efa6197beb2ead5e.js b/pilot/server/static/_next/static/chunks/796-efa6197beb2ead5e.js deleted file mode 100644 index 356a99225..000000000 --- a/pilot/server/static/_next/static/chunks/796-efa6197beb2ead5e.js +++ /dev/null @@ -1,7 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[796],{1301:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},40020:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Article");t.Z=i},11515:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");t.Z=i},66664:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4h-3.5z"}),"DeleteOutlineOutlined");t.Z=i},601:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");t.Z=i},98703:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H5.17L4 17.17V4h16v12zM7 9h2v2H7zm8 0h2v2h-2zm-4 0h2v2h-2z"}),"SmsOutlined");t.Z=i},84892:function(e,t,r){"use strict";var n=r(78997);t.Z=void 0;var o=n(r(76906)),a=r(9268),i=(0,o.default)((0,a.jsx)("path",{d:"m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7 1.79 1.8 1.41-1.41-1.8-1.79-1.4 1.4zM20 10.5v2h3v-2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2v2.95zm-7.45-3.91 1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8z"}),"WbSunny");t.Z=i},53047:function(e,t,r){"use strict";r.d(t,{Qh:function(){return _},ZP:function(){return x}});var n=r(46750),o=r(40431),a=r(86006),i=r(53832),l=r(99179),s=r(46319),u=r(47562),c=r(50645),d=r(88930),f=r(47093),h=r(326),p=r(18587);function m(e){return(0,p.d6)("MuiIconButton",e)}let g=(0,p.sI)("MuiIconButton",["root","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantOutlined","variantSoft","variantSolid","focusVisible","disabled","sizeSm","sizeMd","sizeLg"]);var v=r(42858),y=r(9268);let b=["children","action","component","color","disabled","variant","size","slots","slotProps"],P=e=>{let{color:t,disabled:r,focusVisible:n,focusVisibleClassName:o,size:a,variant:l}=e,s={root:["root",r&&"disabled",n&&"focusVisible",l&&`variant${(0,i.Z)(l)}`,t&&`color${(0,i.Z)(t)}`,a&&`size${(0,i.Z)(a)}`]},c=(0,u.Z)(s,m,{});return n&&o&&(c.root+=` ${o}`),c},_=(0,c.Z)("button")(({theme:e,ownerState:t})=>{var r,n,a,i;return[(0,o.Z)({"--Icon-margin":"initial"},t.instanceSize&&{"--IconButton-size":({sm:"2rem",md:"2.5rem",lg:"3rem"})[t.instanceSize]},"sm"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2rem) / 1.6)","--CircularProgress-size":"20px",minWidth:"var(--IconButton-size, 2rem)",minHeight:"var(--IconButton-size, 2rem)",fontSize:e.vars.fontSize.sm,paddingInline:"2px"},"md"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 2.5rem) / 1.667)","--CircularProgress-size":"24px",minWidth:"var(--IconButton-size, 2.5rem)",minHeight:"var(--IconButton-size, 2.5rem)",fontSize:e.vars.fontSize.md,paddingInline:"0.25rem"},"lg"===t.size&&{"--Icon-fontSize":"calc(var(--IconButton-size, 3rem) / 1.714)","--CircularProgress-size":"28px",minWidth:"var(--IconButton-size, 3rem)",minHeight:"var(--IconButton-size, 3rem)",fontSize:e.vars.fontSize.lg,paddingInline:"0.375rem"},{WebkitTapHighlightColor:"transparent",paddingBlock:0,fontFamily:e.vars.fontFamily.body,fontWeight:e.vars.fontWeight.md,margin:"var(--IconButton-margin)",borderRadius:`var(--IconButton-radius, ${e.vars.radius.sm})`,border:"none",boxSizing:"border-box",backgroundColor:"transparent",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",[e.focus.selector]:e.focus.default}),null==(r=e.variants[t.variant])?void 0:r[t.color],{"&:hover":{"@media (hover: hover)":null==(n=e.variants[`${t.variant}Hover`])?void 0:n[t.color]}},{"&:active":null==(a=e.variants[`${t.variant}Active`])?void 0:a[t.color]},{[`&.${g.disabled}`]:null==(i=e.variants[`${t.variant}Disabled`])?void 0:i[t.color]}]}),S=(0,c.Z)(_,{name:"JoyIconButton",slot:"Root",overridesResolver:(e,t)=>t.root})({}),w=a.forwardRef(function(e,t){var r;let i=(0,d.Z)({props:e,name:"JoyIconButton"}),{children:u,action:c,component:p="button",color:m="primary",disabled:g,variant:_="soft",size:w="md",slots:x={},slotProps:C={}}=i,O=(0,n.Z)(i,b),j=a.useContext(v.Z),I=e.variant||j.variant||_,E=e.size||j.size||w,{getColor:R}=(0,f.VT)(I),L=R(e.color,j.color||m),M=null!=(r=e.disabled)?r:j.disabled||g,k=a.useRef(null),N=(0,l.Z)(k,t),{focusVisible:T,setFocusVisible:A,getRootProps:$}=(0,s.Z)((0,o.Z)({},i,{disabled:M,rootRef:N}));a.useImperativeHandle(c,()=>({focusVisible:()=>{var e;A(!0),null==(e=k.current)||e.focus()}}),[A]);let z=(0,o.Z)({},i,{component:p,color:L,disabled:M,variant:I,size:E,focusVisible:T,instanceSize:e.size}),B=P(z),H=(0,o.Z)({},O,{component:p,slots:x,slotProps:C}),[Z,D]=(0,h.Z)("root",{ref:t,className:B.root,elementType:S,getSlotProps:$,externalForwardedProps:H,ownerState:z});return(0,y.jsx)(Z,(0,o.Z)({},D,{children:u}))});w.muiName="IconButton";var x=w},4882:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(53832),s=r(44542),u=r(47562),c=r(50645),d=r(88930),f=r(47093),h=r(326),p=r(18587);function m(e){return(0,p.d6)("MuiListItem",e)}(0,p.sI)("MuiListItem",["root","startAction","endAction","nested","nesting","sticky","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","variantPlain","variantSoft","variantOutlined","variantSolid"]);var g=r(31242),v=r(76620),y=r(52058),b=r(10504);let P=a.createContext(void 0);var _=r(8189),S=r(9268);let w=["component","className","children","nested","sticky","variant","color","startAction","endAction","role","slots","slotProps"],x=e=>{let{sticky:t,nested:r,nesting:n,variant:o,color:a}=e,i={root:["root",r&&"nested",n&&"nesting",t&&"sticky",a&&`color${(0,l.Z)(a)}`,o&&`variant${(0,l.Z)(o)}`],startAction:["startAction"],endAction:["endAction"]};return(0,u.Z)(i,m,{})},C=(0,c.Z)("li",{name:"JoyListItem",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;return[!t.nested&&{"--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItemButton-marginBlock":"calc(-1 * var(--ListItem-paddingY))",alignItems:"center",marginInline:"var(--ListItem-marginInline)"},t.nested&&{"--NestedList-marginRight":"calc(-1 * var(--ListItem-paddingRight))","--NestedList-marginLeft":"calc(-1 * var(--ListItem-paddingLeft))","--NestedListItem-paddingLeft":"calc(var(--ListItem-paddingLeft) + var(--List-nestedInsetStart))","--ListItemButton-marginBlock":"0px","--ListItemButton-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))","--ListItem-marginInline":"calc(-1 * var(--ListItem-paddingLeft)) calc(-1 * var(--ListItem-paddingRight))",flexDirection:"column"},(0,o.Z)({"--unstable_actionRadius":"calc(var(--ListItem-radius) - var(--variant-borderWidth, 0px))"},t.startAction&&{"--unstable_startActionWidth":"2rem"},t.endAction&&{"--unstable_endActionWidth":"2.5rem"},{boxSizing:"border-box",borderRadius:"var(--ListItem-radius)",display:"flex",flex:"none",position:"relative",paddingBlockStart:t.nested?0:"var(--ListItem-paddingY)",paddingBlockEnd:t.nested?0:"var(--ListItem-paddingY)",paddingInlineStart:"var(--ListItem-paddingLeft)",paddingInlineEnd:"var(--ListItem-paddingRight)"},void 0===t["data-first-child"]&&(0,o.Z)({},t.row?{marginInlineStart:"var(--List-gap)"}:{marginBlockStart:"var(--List-gap)"}),t.row&&t.wrap&&{marginInlineStart:"var(--List-gap)",marginBlockStart:"var(--List-gap)"},{minBlockSize:"var(--ListItem-minHeight)",fontSize:"var(--ListItem-fontSize)",fontFamily:e.vars.fontFamily.body},t.sticky&&{position:"sticky",top:"var(--ListItem-stickyTop, 0px)",zIndex:1,background:"var(--ListItem-stickyBackground)"}),null==(r=e.variants[t.variant])?void 0:r[t.color]]}),O=(0,c.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",left:0,transform:"translate(var(--ListItem-startActionTranslateX), -50%)",zIndex:1})),j=(0,c.Z)("div",{name:"JoyListItem",slot:"StartAction",overridesResolver:(e,t)=>t.startAction})(({ownerState:e})=>({display:"inherit",position:"absolute",top:e.nested?"calc(var(--ListItem-minHeight) / 2)":"50%",right:0,transform:"translate(var(--ListItem-endActionTranslateX), -50%)"})),I=a.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"JoyListItem"}),l=a.useContext(_.Z),u=a.useContext(b.Z),c=a.useContext(v.Z),p=a.useContext(y.Z),m=a.useContext(g.Z),{component:I,className:E,children:R,nested:L=!1,sticky:M=!1,variant:k="plain",color:N="neutral",startAction:T,endAction:A,role:$,slots:z={},slotProps:B={}}=r,H=(0,n.Z)(r,w),{getColor:Z}=(0,f.VT)(k),D=Z(e.color,N),[W,U]=a.useState(""),[F,q]=(null==u?void 0:u.split(":"))||["",""],V=I||(F&&!F.match(/^(ul|ol|menu)$/)?"div":void 0),G="menu"===l?"none":void 0;u&&(G=({menu:"none",menubar:"none",group:"presentation"})[q]),$&&(G=$);let J=(0,o.Z)({},r,{sticky:M,startAction:T,endAction:A,row:c,wrap:p,variant:k,color:D,nesting:m,nested:L,component:V,role:G}),X=x(J),K=(0,o.Z)({},H,{component:V,slots:z,slotProps:B}),[Y,Q]=(0,h.Z)("root",{additionalProps:{role:G},ref:t,className:(0,i.Z)(X.root,E),elementType:C,externalForwardedProps:K,ownerState:J}),[ee,et]=(0,h.Z)("startAction",{className:X.startAction,elementType:O,externalForwardedProps:K,ownerState:J}),[er,en]=(0,h.Z)("endAction",{className:X.endAction,elementType:j,externalForwardedProps:K,ownerState:J});return(0,S.jsx)(P.Provider,{value:U,children:(0,S.jsx)(g.Z.Provider,{value:!!L&&(W||!0),children:(0,S.jsxs)(Y,(0,o.Z)({},Q,{children:[T&&(0,S.jsx)(ee,(0,o.Z)({},et,{children:T})),a.Children.map(R,(e,t)=>a.isValidElement(e)?a.cloneElement(e,(0,o.Z)({},0===t&&{"data-first-child":""},(0,s.Z)(e,["ListItem"])&&{component:e.props.component||"div"})):e),A&&(0,S.jsx)(er,(0,o.Z)({},en,{children:A}))]}))})})});I.muiName="ListItem";var E=I},64579:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(40431),o=r(46750),a=r(86006),i=r(89791),l=r(47562),s=r(50645),u=r(88930),c=r(18587);function d(e){return(0,c.d6)("MuiListItemContent",e)}(0,c.sI)("MuiListItemContent",["root"]);var f=r(326),h=r(9268);let p=["component","className","children","slots","slotProps"],m=()=>(0,l.Z)({root:["root"]},d,{}),g=(0,s.Z)("div",{name:"JoyListItemContent",slot:"Root",overridesResolver:(e,t)=>t.root})({flex:"1 1 auto",minWidth:0}),v=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"JoyListItemContent"}),{component:a,className:l,children:s,slots:c={},slotProps:d={}}=r,v=(0,o.Z)(r,p),y=(0,n.Z)({},r),b=m(),P=(0,n.Z)({},v,{component:a,slots:c,slotProps:d}),[_,S]=(0,f.Z)("root",{ref:t,className:(0,i.Z)(b.root,l),elementType:g,externalForwardedProps:P,ownerState:y});return(0,h.jsx)(_,(0,n.Z)({},S,{children:s}))});var y=v},62921:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(46750),o=r(40431),a=r(86006),i=r(89791),l=r(47562),s=r(50645),u=r(88930),c=r(18587);function d(e){return(0,c.d6)("MuiListItemDecorator",e)}(0,c.sI)("MuiListItemDecorator",["root"]);var f=r(54438),h=r(326),p=r(9268);let m=["component","className","children","slots","slotProps"],g=()=>(0,l.Z)({root:["root"]},d,{}),v=(0,s.Z)("span",{name:"JoyListItemDecorator",slot:"Root",overridesResolver:(e,t)=>t.root})(({ownerState:e})=>(0,o.Z)({boxSizing:"border-box",display:"inline-flex",color:"var(--ListItemDecorator-color)"},"horizontal"===e.parentOrientation?{minInlineSize:"var(--ListItemDecorator-size)",alignItems:"center"}:{minBlockSize:"var(--ListItemDecorator-size)",justifyContent:"center"})),y=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"JoyListItemDecorator"}),{component:l,className:s,children:c,slots:d={},slotProps:y={}}=r,b=(0,n.Z)(r,m),P=a.useContext(f.Z),_=(0,o.Z)({parentOrientation:P},r),S=g(),w=(0,o.Z)({},b,{component:l,slots:d,slotProps:y}),[x,C]=(0,h.Z)("root",{ref:t,className:(0,i.Z)(S.root,s),elementType:v,externalForwardedProps:w,ownerState:_});return(0,p.jsx)(x,(0,o.Z)({},C,{children:c}))});var b=y},20837:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return ej}});var o=r(90151),a=r(88101),i=r(86006),l=r(17583),s=r(34777),u=r(56222),c=r(27977),d=r(49132),f=r(8683),h=r.n(f),p=r(39112),m=r(50946),g=r(14108),v=e=>{let{type:t,children:r,prefixCls:n,buttonProps:o,close:a,autoFocus:l,emitEvent:s,quitOnNullishReturnValue:u,actionFn:c}=e,d=i.useRef(!1),f=i.useRef(null),[h,v]=(0,p.Z)(!1),y=function(){null==a||a.apply(void 0,arguments)};i.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=f.current)||void 0===e||e.focus()})),()=>{e&&clearTimeout(e)}},[]);let b=e=>{e&&e.then&&(v(!0),e.then(function(){v(!1,!0),y.apply(void 0,arguments),d.current=!1},e=>(v(!1,!0),d.current=!1,Promise.reject(e))))};return i.createElement(m.ZP,Object.assign({},(0,g.n)(t),{onClick:e=>{let t;if(!d.current){if(d.current=!0,!c){y();return}if(s){var r;if(t=c(e),u&&!((r=t)&&r.then)){d.current=!1,y(e);return}}else if(c.length)t=c(a),d.current=!1;else if(!(t=c())){y();return}b(t)}},loading:h,prefixCls:n},o,{ref:f}),r)},y=r(80716),b=r(6783),P=r(40431),_=r(60456),S=r(61085),w=r(88684),x=r(14071),C=r(53457),O=r(48580),j=r(42442);function I(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function E(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if("number"!=typeof r){var o=e.document;"number"!=typeof(r=o.documentElement[n])&&(r=o.body[n])}return r}var R=r(78641),L=i.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate}),M={width:0,height:0,overflow:"hidden",outline:"none"},k=i.forwardRef(function(e,t){var r,n,o,a=e.prefixCls,l=e.className,s=e.style,u=e.title,c=e.ariaId,d=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,g=e.children,v=e.bodyStyle,y=e.bodyProps,b=e.modalRender,_=e.onMouseDown,S=e.onMouseUp,x=e.holderRef,C=e.visible,O=e.forceRender,j=e.width,I=e.height,E=(0,i.useRef)(),R=(0,i.useRef)();i.useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=E.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===R.current?E.current.focus():e||t!==E.current||R.current.focus()}}});var k={};void 0!==j&&(k.width=j),void 0!==I&&(k.height=I),d&&(r=i.createElement("div",{className:"".concat(a,"-footer")},d)),u&&(n=i.createElement("div",{className:"".concat(a,"-header")},i.createElement("div",{className:"".concat(a,"-title"),id:c},u))),f&&(o=i.createElement("button",{type:"button",onClick:m,"aria-label":"Close",className:"".concat(a,"-close")},p||i.createElement("span",{className:"".concat(a,"-close-x")})));var N=i.createElement("div",{className:"".concat(a,"-content")},o,n,i.createElement("div",(0,P.Z)({className:"".concat(a,"-body"),style:v},y),g),r);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":u?c:null,"aria-modal":"true",ref:x,style:(0,w.Z)((0,w.Z)({},s),k),className:h()(a,l),onMouseDown:_,onMouseUp:S},i.createElement("div",{tabIndex:0,ref:E,style:M,"aria-hidden":"true"}),i.createElement(L,{shouldUpdate:C||O},b?b(N):N),i.createElement("div",{tabIndex:0,ref:R,style:M,"aria-hidden":"true"}))}),N=i.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,o=e.style,a=e.className,l=e.visible,s=e.forceRender,u=e.destroyOnClose,c=e.motionName,d=e.ariaId,f=e.onVisibleChanged,p=e.mousePosition,m=(0,i.useRef)(),g=i.useState(),v=(0,_.Z)(g,2),y=v[0],b=v[1],S={};function x(){var e,t,r,n,o,a=(r={left:(t=(e=m.current).getBoundingClientRect()).left,top:t.top},o=(n=e.ownerDocument).defaultView||n.parentWindow,r.left+=E(o),r.top+=E(o,!0),r);b(p?"".concat(p.x-a.left,"px ").concat(p.y-a.top,"px"):"")}return y&&(S.transformOrigin=y),i.createElement(R.ZP,{visible:l,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:s,motionName:c,removeOnLeave:u,ref:m},function(l,s){var u=l.className,c=l.style;return i.createElement(k,(0,P.Z)({},e,{ref:t,title:n,ariaId:d,prefixCls:r,holderRef:s,style:(0,w.Z)((0,w.Z)((0,w.Z)({},c),o),S),className:h()(a,u)}))})});function T(e){var t=e.prefixCls,r=e.style,n=e.visible,o=e.maskProps,a=e.motionName;return i.createElement(R.ZP,{key:"mask",visible:n,motionName:a,leavedClassName:"".concat(t,"-mask-hidden")},function(e,n){var a=e.className,l=e.style;return i.createElement("div",(0,P.Z)({ref:n,style:(0,w.Z)((0,w.Z)({},l),r),className:h()("".concat(t,"-mask"),a)},o))})}function A(e){var t=e.prefixCls,r=void 0===t?"rc-dialog":t,n=e.zIndex,o=e.visible,a=void 0!==o&&o,l=e.keyboard,s=void 0===l||l,u=e.focusTriggerAfterClose,c=void 0===u||u,d=e.wrapStyle,f=e.wrapClassName,p=e.wrapProps,m=e.onClose,g=e.afterOpenChange,v=e.afterClose,y=e.transitionName,b=e.animation,S=e.closable,E=e.mask,R=void 0===E||E,L=e.maskTransitionName,M=e.maskAnimation,k=e.maskClosable,A=e.maskStyle,$=e.maskProps,z=e.rootClassName,B=(0,i.useRef)(),H=(0,i.useRef)(),Z=(0,i.useRef)(),D=i.useState(a),W=(0,_.Z)(D,2),U=W[0],F=W[1],q=(0,C.Z)();function V(e){null==m||m(e)}var G=(0,i.useRef)(!1),J=(0,i.useRef)(),X=null;return(void 0===k||k)&&(X=function(e){G.current?G.current=!1:H.current===e.target&&V(e)}),(0,i.useEffect)(function(){a&&(F(!0),(0,x.Z)(H.current,document.activeElement)||(B.current=document.activeElement))},[a]),(0,i.useEffect)(function(){return function(){clearTimeout(J.current)}},[]),i.createElement("div",(0,P.Z)({className:h()("".concat(r,"-root"),z)},(0,j.Z)(e,{data:!0})),i.createElement(T,{prefixCls:r,visible:R&&a,motionName:I(r,L,M),style:(0,w.Z)({zIndex:n},A),maskProps:$}),i.createElement("div",(0,P.Z)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===O.Z.ESC){e.stopPropagation(),V(e);return}a&&e.keyCode===O.Z.TAB&&Z.current.changeActive(!e.shiftKey)},className:h()("".concat(r,"-wrap"),f),ref:H,onClick:X,style:(0,w.Z)((0,w.Z)({zIndex:n},d),{},{display:U?null:"none"})},p),i.createElement(N,(0,P.Z)({},e,{onMouseDown:function(){clearTimeout(J.current),G.current=!0},onMouseUp:function(){J.current=setTimeout(function(){G.current=!1})},ref:Z,closable:void 0===S||S,ariaId:q,prefixCls:r,visible:a&&U,onClose:V,onVisibleChanged:function(e){if(e)!function(){if(!(0,x.Z)(H.current,document.activeElement)){var e;null===(e=Z.current)||void 0===e||e.focus()}}();else{if(F(!1),R&&B.current&&c){try{B.current.focus({preventScroll:!0})}catch(e){}B.current=null}U&&(null==v||v())}null==g||g(e)},motionName:I(r,y,b)}))))}N.displayName="Content";var $=function(e){var t=e.visible,r=e.getContainer,n=e.forceRender,o=e.destroyOnClose,a=void 0!==o&&o,l=e.afterClose,s=i.useState(t),u=(0,_.Z)(s,2),c=u[0],d=u[1];return(i.useEffect(function(){t&&d(!0)},[t]),n||!a||c)?i.createElement(S.Z,{open:t||n||c,autoDestroy:!1,getContainer:r,autoLock:t||c},i.createElement(A,(0,P.Z)({},e,{destroyOnClose:a,afterClose:function(){null==l||l(),d(!1)}}))):null};$.displayName="Dialog";var z=r(71693),B=r(79746),H=r(21440),Z=r(12381),D=r(31533),W=r(66255);function U(e,t){return i.createElement("span",{className:`${e}-close-x`},t||i.createElement(D.Z,{className:`${e}-close-icon`}))}let F=e=>{let{okText:t,okType:r="primary",cancelText:n,confirmLoading:o,onOk:a,onCancel:l,okButtonProps:s,cancelButtonProps:u}=e,[c]=(0,b.Z)("Modal",(0,W.A)());return i.createElement(i.Fragment,null,i.createElement(m.ZP,Object.assign({onClick:l},u),n||(null==c?void 0:c.cancelText)),i.createElement(m.ZP,Object.assign({},(0,g.n)(r),{loading:o,onClick:a},s),t||(null==c?void 0:c.okText)))};var q=r(98663),V=r(11717),G=r(29138);let J=new V.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),X=new V.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),K=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:r}=e,n=`${r}-fade`,o=t?"&":"";return[(0,G.R)(n,J,X,e.motionDurationMid,t),{[` - ${o}${n}-enter, - ${o}${n}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]};var Y=r(87270),Q=r(40650),ee=r(70721);function et(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}let er=e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},et("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},et("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:K(e)}]},en=e=>{let{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,q.Wf)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${2*e.margin}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderHeight-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},(0,q.Qy)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, - ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},eo=e=>{let{componentCls:t}=e,r=`${t}-confirm`;return{[r]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${r}-body-wrapper`]:Object.assign({},(0,q.dF)()),[`${r}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${r}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,[`+ ${r}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${r}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${r}-title`]:{flex:1},[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${r}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${r}-error ${r}-body > ${e.iconCls}`]:{color:e.colorError},[`${r}-warning ${r}-body > ${e.iconCls}, - ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ea=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ei=e=>{let{componentCls:t,antCls:r}=e,n=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[n]:{[`${r}-modal-body`]:{padding:`${2*e.padding}px ${2*e.padding}px ${e.paddingLG}px`},[`${n}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${n}-btns`]:{marginTop:e.marginLG}}}};var el=(0,Q.Z)("Modal",e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5,o=(0,ee.TS)(e,{modalBodyPadding:e.paddingLG,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderHeight:n*r+2*t,modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalIconHoverColor:e.colorIconHover,modalCloseIconColor:e.colorIcon,modalCloseBtnSize:e.fontSize*e.lineHeight,modalConfirmIconSize:e.fontSize*e.lineHeight});return[en(o),eo(o),ea(o),er(o),e.wireframe&&ei(o),(0,Y._y)(o,"zoom")]},e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading})),es=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};(0,z.Z)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{n={x:e.pageX,y:e.pageY},setTimeout(()=>{n=null},100)},!0);var eu=e=>{var t;let{getPopupContainer:r,getPrefixCls:o,direction:a}=i.useContext(B.E_),l=t=>{let{onCancel:r}=e;null==r||r(t)},{prefixCls:s,className:u,rootClassName:c,open:d,wrapClassName:f,centered:p,getContainer:m,closeIcon:g,focusTriggerAfterClose:v=!0,visible:b,width:P=520,footer:_}=e,S=es(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),w=o("modal",s),x=o(),[C,O]=el(w),j=h()(f,{[`${w}-centered`]:!!p,[`${w}-wrap-rtl`]:"rtl"===a}),I=void 0===_?i.createElement(F,Object.assign({},e,{onOk:t=>{let{onOk:r}=e;null==r||r(t)},onCancel:l})):_;return C(i.createElement(Z.BR,null,i.createElement(H.Ux,{status:!0,override:!0},i.createElement($,Object.assign({width:P},S,{getContainer:void 0===m?r:m,prefixCls:w,rootClassName:h()(O,c),wrapClassName:j,footer:I,visible:null!=d?d:b,mousePosition:null!==(t=S.mousePosition)&&void 0!==t?t:n,onClose:l,closeIcon:U(w,g),focusTriggerAfterClose:v,transitionName:(0,y.mL)(x,"zoom",e.transitionName),maskTransitionName:(0,y.mL)(x,"fade",e.maskTransitionName),className:h()(O,u)})))))};function ec(e){let{icon:t,onCancel:r,onOk:n,close:o,okText:a,okButtonProps:l,cancelText:f,cancelButtonProps:h,confirmPrefixCls:p,rootPrefixCls:m,type:g,okCancel:y,footer:P,locale:_}=e,S=t;if(!t&&null!==t)switch(g){case"info":S=i.createElement(d.Z,null);break;case"success":S=i.createElement(s.Z,null);break;case"error":S=i.createElement(u.Z,null);break;default:S=i.createElement(c.Z,null)}let w=e.okType||"primary",x=null!=y?y:"confirm"===g,C=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[O]=(0,b.Z)("Modal"),j=_||O,I=x&&i.createElement(v,{actionFn:r,close:o,autoFocus:"cancel"===C,buttonProps:h,prefixCls:`${m}-btn`},f||(null==j?void 0:j.cancelText));return i.createElement("div",{className:`${p}-body-wrapper`},i.createElement("div",{className:`${p}-body`},S,void 0===e.title?null:i.createElement("span",{className:`${p}-title`},e.title),i.createElement("div",{className:`${p}-content`},e.content)),void 0===P?i.createElement("div",{className:`${p}-btns`},I,i.createElement(v,{type:w,actionFn:n,close:o,autoFocus:"ok"===C,buttonProps:l,prefixCls:`${m}-btn`},a||(x?null==j?void 0:j.okText:null==j?void 0:j.justOkText))):P)}var ed=e=>{let{close:t,zIndex:r,afterClose:n,visible:o,open:a,keyboard:s,centered:u,getContainer:c,maskStyle:d,direction:f,prefixCls:p,wrapClassName:m,rootPrefixCls:g,iconPrefixCls:v,theme:b,bodyStyle:P,closable:_=!1,closeIcon:S,modalRender:w,focusTriggerAfterClose:x}=e,C=`${p}-confirm`,O=e.width||416,j=e.style||{},I=void 0===e.mask||e.mask,E=void 0!==e.maskClosable&&e.maskClosable,R=h()(C,`${C}-${e.type}`,{[`${C}-rtl`]:"rtl"===f},e.className);return i.createElement(l.ZP,{prefixCls:g,iconPrefixCls:v,direction:f,theme:b},i.createElement(eu,{prefixCls:p,className:R,wrapClassName:h()({[`${C}-centered`]:!!e.centered},m),onCancel:()=>null==t?void 0:t({triggerCancel:!0}),open:a,title:"",footer:null,transitionName:(0,y.mL)(g,"zoom",e.transitionName),maskTransitionName:(0,y.mL)(g,"fade",e.maskTransitionName),mask:I,maskClosable:E,maskStyle:d,style:j,bodyStyle:P,width:O,zIndex:r,afterClose:n,keyboard:s,centered:u,getContainer:c,closable:_,closeIcon:S,modalRender:w,focusTriggerAfterClose:x},i.createElement(ec,Object.assign({},e,{confirmPrefixCls:C}))))},ef=[],eh=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let ep="";function em(e){let t;let r=document.createDocumentFragment(),n=Object.assign(Object.assign({},e),{close:c,open:!0});function s(){for(var t=arguments.length,n=Array(t),i=0;ie&&e.triggerCancel);e.onCancel&&l&&e.onCancel.apply(e,[()=>{}].concat((0,o.Z)(n.slice(1))));for(let e=0;e{let e=(0,W.A)(),{getPrefixCls:t,getIconPrefixCls:d,getTheme:f}=(0,l.w6)(),h=t(void 0,ep),p=s||`${h}-modal`,m=d(),g=f(),v=u;!1===v&&(v=void 0),(0,a.s)(i.createElement(ed,Object.assign({},c,{getContainer:v,prefixCls:p,rootPrefixCls:h,iconPrefixCls:m,okText:n,locale:e,theme:g,cancelText:o||e.cancelText})),r)})}function c(){for(var t=arguments.length,r=Array(t),o=0;o{"function"==typeof e.afterClose&&e.afterClose(),s.apply(this,r)}})).visible&&delete n.visible,u(n)}return u(n),ef.push(c),{destroy:c,update:function(e){u(n="function"==typeof e?e(n):Object.assign(Object.assign({},n),e))}}}function eg(e){return Object.assign(Object.assign({},e),{type:"warning"})}function ev(e){return Object.assign(Object.assign({},e),{type:"info"})}function ey(e){return Object.assign(Object.assign({},e),{type:"success"})}function eb(e){return Object.assign(Object.assign({},e),{type:"error"})}function eP(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var e_=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r},eS=r(91295),ew=i.forwardRef((e,t)=>{var r;let{afterClose:n,config:a}=e,[l,s]=i.useState(!0),[u,c]=i.useState(a),{direction:d,getPrefixCls:f}=i.useContext(B.E_),h=f("modal"),p=f(),m=function(){s(!1);for(var e=arguments.length,t=Array(e),r=0;re&&e.triggerCancel);u.onCancel&&n&&u.onCancel.apply(u,[()=>{}].concat((0,o.Z)(t.slice(1))))};i.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>Object.assign(Object.assign({},t),e))}}));let g=null!==(r=u.okCancel)&&void 0!==r?r:"confirm"===u.type,[v]=(0,b.Z)("Modal",eS.Z.Modal);return i.createElement(ed,Object.assign({prefixCls:h,rootPrefixCls:p},u,{close:m,open:l,afterClose:()=>{var e;n(),null===(e=u.afterClose)||void 0===e||e.call(u)},okText:u.okText||(g?null==v?void 0:v.okText:null==v?void 0:v.justOkText),direction:u.direction||d,cancelText:u.cancelText||(null==v?void 0:v.cancelText)}))});let ex=0,eC=i.memo(i.forwardRef((e,t)=>{let[r,n]=function(){let[e,t]=i.useState([]),r=i.useCallback(e=>(t(t=>[].concat((0,o.Z)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[]);return[e,r]}();return i.useImperativeHandle(t,()=>({patchElement:n}),[]),i.createElement(i.Fragment,null,r)}));function eO(e){return em(eg(e))}eu.useModal=function(){let e=i.useRef(null),[t,r]=i.useState([]);i.useEffect(()=>{if(t.length){let e=(0,o.Z)(t);e.forEach(e=>{e()}),r([])}},[t]);let n=i.useCallback(t=>function(n){var a;let l;ex+=1;let s=i.createRef(),u=i.createElement(ew,{key:`modal-${ex}`,config:t(n),ref:s,afterClose:()=>{null==l||l()}});return(l=null===(a=e.current)||void 0===a?void 0:a.patchElement(u))&&ef.push(l),{destroy:()=>{function e(){var e;null===(e=s.current)||void 0===e||e.destroy()}s.current?e():r(t=>[].concat((0,o.Z)(t),[e]))},update:e=>{function t(){var t;null===(t=s.current)||void 0===t||t.update(e)}s.current?t():r(e=>[].concat((0,o.Z)(e),[t]))}}},[]),a=i.useMemo(()=>({info:n(ev),success:n(ey),error:n(eb),warning:n(eg),confirm:n(eP)}),[]);return[a,i.createElement(eC,{key:"modal-holder",ref:e})]},eu.info=function(e){return em(ev(e))},eu.success=function(e){return em(ey(e))},eu.error=function(e){return em(eb(e))},eu.warning=eO,eu.warn=eO,eu.confirm=function(e){return em(eP(e))},eu.destroyAll=function(){for(;ef.length;){let e=ef.pop();e&&e()}},eu.config=function(e){let{rootPrefixCls:t}=e;ep=t},eu._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,className:r,closeIcon:n,closable:o,type:a,title:l,children:s}=e,u=e_(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:c}=i.useContext(B.E_),d=c(),f=t||c("modal"),[,p]=el(f),m=`${f}-confirm`,g={};return g=a?{closable:null!=o&&o,title:"",footer:"",children:i.createElement(ec,Object.assign({},e,{confirmPrefixCls:m,rootPrefixCls:d,content:s}))}:{closable:null==o||o,title:l,footer:void 0===e.footer?i.createElement(F,Object.assign({},e)):e.footer,children:s},i.createElement(k,Object.assign({prefixCls:f,className:h()(p,`${f}-pure-panel`,a&&m,a&&`${m}-${a}`,r)},u,{closeIcon:U(f,n),closable:o},g))};var ej=eu},60501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return n}}),r(65231);let n=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let r=t[e.type]||[];r.push(e),t[e.type]=r});let n=t.title?t.title[0]:null,o="";if(n){let{children:e}=n.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{r(e,t[e]||[])})}}}r=(e,t)=>{let r=document.getElementsByTagName("head")[0],n=r.querySelector("meta[name=next-head-count]"),i=Number(n.content),l=[];for(let t=0,r=n.previousElementSibling;t{for(let t=0,r=l.length;t{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),u.forEach(e=>r.insertBefore(e,n)),n.content=(i-l.length+u.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57477:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return P}});let n=r(26927),o=n._(r(86006)),a=r(96050),i=r(8993),l=r(6692),s=r(84779),u=r(60501),c=r(50085),d=r(56858),f=r(68891),h=r(38052),p=r(32781),m=r(39748),g=new Set;function v(e,t,r,n,o,a){if(!a&&!(0,i.isLocalURL)(t))return;if(!n.bypassPrefetchedCheck){let o=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,a=t+"%"+r+"%"+o;if(g.has(a))return;g.add(a)}let l=a?e.prefetch(t,o):e.prefetch(t,r,n);Promise.resolve(l).catch(e=>{})}function y(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let b=o.default.forwardRef(function(e,t){let r,n;let{href:l,as:g,children:b,prefetch:P=null,passHref:_,replace:S,shallow:w,scroll:x,locale:C,onClick:O,onMouseEnter:j,onTouchStart:I,legacyBehavior:E=!1,...R}=e;r=b,E&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let L=!1!==P,M=null===P?m.PrefetchKind.AUTO:m.PrefetchKind.FULL,k=o.default.useContext(c.RouterContext),N=o.default.useContext(d.AppRouterContext),T=null!=k?k:N,A=!k,{href:$,as:z}=o.default.useMemo(()=>{if(!k){let e=y(l);return{href:e,as:g?y(g):e}}let[e,t]=(0,a.resolveHref)(k,l,!0);return{href:e,as:g?(0,a.resolveHref)(k,g):t||e}},[k,l,g]),B=o.default.useRef($),H=o.default.useRef(z);E&&(n=o.default.Children.only(r));let Z=E?n&&"object"==typeof n&&n.ref:t,[D,W,U]=(0,f.useIntersection)({rootMargin:"200px"}),F=o.default.useCallback(e=>{(H.current!==z||B.current!==$)&&(U(),H.current=z,B.current=$),D(e),Z&&("function"==typeof Z?Z(e):"object"==typeof Z&&(Z.current=e))},[z,Z,$,U,D]);o.default.useEffect(()=>{T&&W&&L&&v(T,$,z,{locale:C},{kind:M},A)},[z,$,W,C,L,null==k?void 0:k.locale,T,A,M]);let q={ref:F,onClick(e){E||"function"!=typeof O||O(e),E&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,r,n,a,l,s,u,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let t=e.currentTarget,r=t.getAttribute("target");return r&&"_self"!==r||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,i.isLocalURL)(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[a?"replace":"push"](r,n,{shallow:l,locale:u,scroll:s}):t[a?"replace":"push"](n||r,{forceOptimisticNavigation:!d})};c?o.default.startTransition(p):p()}(e,T,$,z,S,w,x,C,A,L)},onMouseEnter(e){E||"function"!=typeof j||j(e),E&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),T&&(L||!A)&&v(T,$,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},A)},onTouchStart(e){E||"function"!=typeof I||I(e),E&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),T&&(L||!A)&&v(T,$,z,{locale:C,priority:!0,bypassPrefetchedCheck:!0},{kind:M},A)}};if((0,s.isAbsoluteUrl)(z))q.href=z;else if(!E||_||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,h.getDomainLocale)(z,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);q.href=t||(0,p.addBasePath)((0,u.addLocale)(z,e,null==k?void 0:k.defaultLocale))}return E?o.default.cloneElement(n,q):o.default.createElement("a",{...R,...q},r)}),P=b;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},28769:function(e,t,r){"use strict";function n(e){return(e=e.slice(0)).startsWith("/")||(e="/"+e),e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return n}}),r(66630),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42342:function(e,t,r){"use strict";function n(e,t){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeLocale",{enumerable:!0,get:function(){return n}}),r(89777),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1364:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{requestIdleCallback:function(){return r},cancelIdleCallback:function(){return n}});let r="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6505:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{markAssetError:function(){return l},isAssetError:function(){return s},getClientBuildManifest:function(){return f},createRouteLoader:function(){return p}}),r(26927),r(56001);let n=r(60932),o=r(1364);function a(e,t,r){let n,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);let a=new Promise(e=>{n=e});return t.set(e,o={resolve:n,future:a}),r?r().then(e=>(n(e),e)).catch(r=>{throw t.delete(e),r}):a}let i=Symbol("ASSET_LOAD_ERROR");function l(e){return Object.defineProperty(e,i,{})}function s(e){return e&&i in e}let u=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),c=()=>"";function d(e,t,r){return new Promise((n,a)=>{let i=!1;e.then(e=>{i=!0,n(e)}).catch(a),(0,o.requestIdleCallback)(()=>setTimeout(()=>{i||a(r)},t))})}function f(){if(self.__BUILD_MANIFEST)return Promise.resolve(self.__BUILD_MANIFEST);let e=new Promise(e=>{let t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}});return d(e,3800,l(Error("Failed to load client build manifest")))}function h(e,t){return f().then(r=>{if(!(t in r))throw l(Error("Failed to lookup route: "+t));let o=r[t].map(t=>e+"/_next/"+encodeURI(t));return{scripts:o.filter(e=>e.endsWith(".js")).map(e=>(0,n.__unsafeCreateTrustedScriptURL)(e)+c()),css:o.filter(e=>e.endsWith(".css")).map(e=>e+c())}})}function p(e){let t=new Map,r=new Map,n=new Map,i=new Map;function s(e){{var t;let n=r.get(e.toString());return n||(document.querySelector('script[src^="'+e+'"]')?Promise.resolve():(r.set(e.toString(),n=new Promise((r,n)=>{(t=document.createElement("script")).onload=r,t.onerror=()=>n(l(Error("Failed to load script: "+e))),t.crossOrigin=void 0,t.src=e,document.body.appendChild(t)})),n))}}function c(e){let t=n.get(e);return t||n.set(e,t=fetch(e).then(t=>{if(!t.ok)throw Error("Failed to load stylesheet: "+e);return t.text().then(t=>({href:e,content:t}))}).catch(e=>{throw l(e)})),t}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,r){(r?Promise.resolve().then(()=>r()).then(e=>({component:e&&e.default||e,exports:e}),e=>({error:e})):Promise.resolve(void 0)).then(r=>{let n=t.get(e);n&&"resolve"in n?r&&(t.set(e,r),n.resolve(r)):(r?t.set(e,r):t.delete(e),i.delete(e))})},loadRoute(r,n){return a(r,i,()=>{let o;return d(h(e,r).then(e=>{let{scripts:n,css:o}=e;return Promise.all([t.has(r)?[]:Promise.all(n.map(s)),Promise.all(o.map(c))])}).then(e=>this.whenEntrypoint(r).then(t=>({entrypoint:t,styles:e[1]}))),3800,l(Error("Route did not complete loading: "+r))).then(e=>{let{entrypoint:t,styles:r}=e,n=Object.assign({styles:r},t);return"error"in t?t:n}).catch(e=>{if(n)throw e;return{error:e}}).finally(()=>null==o?void 0:o())})},prefetch(t){let r;return(r=navigator.connection)&&(r.saveData||/2g/.test(r.effectiveType))?Promise.resolve():h(e,t).then(e=>Promise.all(u?e.scripts.map(e=>{var t,r,n;return t=e.toString(),r="script",new Promise((e,o)=>{let a='\n link[rel="prefetch"][href^="'+t+'"],\n link[rel="preload"][href^="'+t+'"],\n script[src^="'+t+'"]';if(document.querySelector(a))return e();n=document.createElement("link"),r&&(n.as=r),n.rel="prefetch",n.crossOrigin=void 0,n.onload=e,n.onerror=()=>o(l(Error("Failed to prefetch: "+t))),n.href=t,document.head.appendChild(n)})}):[])).then(()=>{(0,o.requestIdleCallback)(()=>this.loadRoute(t,!0).catch(()=>{}))}).catch(()=>{})}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},25076:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{Router:function(){return a.default},default:function(){return h},withRouter:function(){return s.default},useRouter:function(){return p},createRouter:function(){return m},makePublicRouterInstance:function(){return g}});let n=r(26927),o=n._(r(86006)),a=n._(r(70650)),i=r(50085),l=n._(r(40243)),s=n._(r(19451)),u={router:null,readyCallbacks:[],ready(e){if(this.router)return e();this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){if(!u.router)throw Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return u.router}Object.defineProperty(u,"events",{get:()=>a.default.events}),c.forEach(e=>{Object.defineProperty(u,e,{get(){let t=f();return t[e]}})}),d.forEach(e=>{u[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{u.ready(()=>{a.default.events.on(e,function(){for(var t=arguments.length,r=Array(t),n=0;ne()),u.readyCallbacks=[],u.router}function g(e){let t={};for(let r of c){if("object"==typeof e[r]){t[r]=Object.assign(Array.isArray(e[r])?[]:{},e[r]);continue}t[r]=e[r]}return t.events=a.default.events,d.forEach(r=>{t[r]=function(){for(var t=arguments.length,n=Array(t),o=0;o{let{src:t,id:r,onLoad:n=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:l="afterInteractive",onError:u}=e,h=r||t;if(h&&d.has(h))return;if(c.has(t)){d.add(h),c.get(t).then(n,u);return}let p=()=>{o&&o(),d.add(h)},m=document.createElement("script"),g=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});for(let[r,n]of(a?(m.innerHTML=a.__html||"",p()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",p()):t&&(m.src=t,c.set(t,g)),Object.entries(e))){if(void 0===n||f.includes(r))continue;let e=s.DOMAttributeNames[r]||r.toLowerCase();m.setAttribute(e,n)}"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),document.body.appendChild(m)};function p(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))}):h(e)}function m(e){e.forEach(p),function(){let e=[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')];e.forEach(e=>{let t=e.id||e.getAttribute("src");d.add(t)})}()}function g(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:c,...f}=e,{updateScripts:p,scripts:m,getIsSsr:g,appDir:v,nonce:y}=(0,i.useContext)(l.HeadManagerContext),b=(0,i.useRef)(!1);(0,i.useEffect)(()=>{let e=t||r;b.current||(o&&e&&d.has(e)&&o(),b.current=!0)},[o,t,r]);let P=(0,i.useRef)(!1);if((0,i.useEffect)(()=>{!P.current&&("afterInteractive"===s?h(e):"lazyOnload"===s&&("complete"===document.readyState?(0,u.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,u.requestIdleCallback)(()=>h(e))})),P.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(p?(m[s]=(m[s]||[]).concat([{id:t,src:r,onLoad:n,onReady:o,onError:c,...f}]),p(m)):g&&g()?d.add(t||r):g&&!g()&&h(e)),v){if("beforeInteractive"===s)return r?(a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"}),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([r])+")"}})):(f.dangerouslySetInnerHTML&&(f.children=f.dangerouslySetInnerHTML.__html,delete f.dangerouslySetInnerHTML),i.default.createElement("script",{nonce:y,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...f}])+")"}}));"afterInteractive"===s&&r&&a.default.preload(r,f.integrity?{as:"script",integrity:f.integrity}:{as:"script"})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},60932:function(e,t){"use strict";let r;function n(e){var t;return(null==(t=function(){if(void 0===r){var e;r=(null==(e=window.trustedTypes)?void 0:e.createPolicy("nextjs",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e}))||null}return r}())?void 0:t.createScriptURL(e))||e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"__unsafeCreateTrustedScriptURL",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},68891:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let n=r(86006),o=r(1364),a="function"==typeof IntersectionObserver,i=new Map,l=[];function s(e){let{rootRef:t,rootMargin:r,disabled:s}=e,u=s||!a,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),h=(0,n.useCallback)(e=>{f.current=e},[]);(0,n.useEffect)(()=>{if(a){if(u||c)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:o,elements:a}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=i.get(n)))return t;let o=new Map,a=new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:a,elements:o},l.push(r),i.set(r,t),t}(r);return a.set(e,t),o.observe(e),function(){if(a.delete(e),o.unobserve(e),0===a.size){o.disconnect(),i.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=(0,o.requestIdleCallback)(()=>d(!0));return()=>(0,o.cancelIdleCallback)(e)}},[u,r,t,c,f.current]);let p=(0,n.useCallback)(()=>{d(!1)},[]);return[h,c,p]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19451:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let n=r(26927),o=n._(r(86006)),a=r(25076);function i(e){function t(t){return o.default.createElement(e,{router:(0,a.useRouter)(),...t})}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12958:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BloomFilter",{enumerable:!0,get:function(){return r}});class r{static from(e,t){void 0===t&&(t=.01);let n=new r(e.length,t);for(let t of e)n.add(t);return n}export(){let e={numItems:this.numItems,errorRate:this.errorRate,numBits:this.numBits,numHashes:this.numHashes,bitArray:this.bitArray};return e}import(e){this.numItems=e.numItems,this.errorRate=e.errorRate,this.numBits=e.numBits,this.numHashes=e.numHashes,this.bitArray=e.bitArray}add(e){let t=this.getHashValues(e);t.forEach(e=>{this.bitArray[e]=1})}contains(e){let t=this.getHashValues(e);return t.every(e=>this.bitArray[e])}getHashValues(e){let t=[];for(let r=1;r<=this.numHashes;r++){let n=function(e){let t=0;for(let r=0;r>>13,t=Math.imul(t,1540483477)}return t>>>0}(""+e+r)%this.numBits;t.push(n)}return t}constructor(e,t){this.numItems=e,this.errorRate=t,this.numBits=Math.ceil(-(e*Math.log(t))/(Math.log(2)*Math.log(2))),this.numHashes=Math.ceil(this.numBits/e*Math.log(2)),this.bitArray=Array(this.numBits).fill(0)}}},36902:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g;function o(e){return r.test(e)?e.replace(n,"\\$&"):e}},38030:function(e,t){"use strict";function r(e,t){let r;let n=e.split("/");return(t||[]).some(t=>!!n[1]&&n[1].toLowerCase()===t.toLowerCase()&&(r=t,n.splice(1,1),e=n.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},6636:function(e,t){"use strict";function r(e){return Object.prototype.toString.call(e)}function n(e){if("[object Object]"!==r(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t.hasOwnProperty("isPrototypeOf")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getObjectClassLabel:function(){return r},isPlainObject:function(){return n}})},73348:function(e,t){"use strict";function r(){let e=Object.create(null);return{on(t,r){(e[t]||(e[t]=[])).push(r)},off(t,r){e[t]&&e[t].splice(e[t].indexOf(r)>>>0,1)},emit(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o{e(...n)})}}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},42061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"denormalizePagePath",{enumerable:!0,get:function(){return a}});let n=r(4471),o=r(609);function a(e){let t=(0,o.normalizePathSep)(e);return t.startsWith("/index/")&&!(0,n.isDynamicRoute)(t)?t.slice(6):"/index"!==t?t:"/"}},609:function(e,t){"use strict";function r(e){return e.replace(/\\/g,"/")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathSep",{enumerable:!0,get:function(){return r}})},50085:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return a}});let n=r(26927),o=n._(r(86006)),a=o.default.createContext(null)},70650:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return q},matchesMiddleware:function(){return T},createKey:function(){return W}});let n=r(26927),o=r(25909),a=r(30769),i=r(6505),l=r(33772),s=o._(r(40243)),u=r(42061),c=r(38030),d=n._(r(73348)),f=r(84779),h=r(93861),p=r(16590);r(72431);let m=r(58287),g=r(35318),v=r(6692);r(28180);let y=r(89777),b=r(60501),P=r(42342),_=r(28769),S=r(32781),w=r(66630),x=r(3031),C=r(86708),O=r(41714),j=r(16234),I=r(8993),E=r(75247),R=r(86620),L=r(96050),M=r(74875),k=r(33811);function N(){return Object.assign(Error("Route Cancelled"),{cancelled:!0})}async function T(e){let t=await Promise.resolve(e.router.pageLoader.getMiddleware());if(!t)return!1;let{pathname:r}=(0,y.parsePath)(e.asPath),n=(0,w.hasBasePath)(r)?(0,_.removeBasePath)(r):r,o=(0,S.addBasePath)((0,b.addLocale)(n,e.locale));return t.some(e=>new RegExp(e.regexp).test(o))}function A(e){let t=(0,f.getLocationOrigin)();return e.startsWith(t)?e.substring(t.length):e}function $(e,t,r){let[n,o]=(0,L.resolveHref)(e,t,!0),a=(0,f.getLocationOrigin)(),i=n.startsWith(a),l=o&&o.startsWith(a);n=A(n),o=o?A(o):o;let s=i?n:(0,S.addBasePath)(n),u=r?A((0,L.resolveHref)(e,r)):o||n;return{url:s,as:l?u:(0,S.addBasePath)(u)}}function z(e,t){let r=(0,a.removeTrailingSlash)((0,u.denormalizePagePath)(e));return"/404"===r||"/_error"===r?e:(t.includes(r)||t.some(t=>{if((0,h.isDynamicRoute)(t)&&(0,g.getRouteRegex)(t).re.test(r))return e=t,!0}),(0,a.removeTrailingSlash)(e))}async function B(e){let t=await T(e);if(!t||!e.fetchData)return null;try{let t=await e.fetchData(),r=await function(e,t,r){let n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:!0},o=t.headers.get("x-nextjs-rewrite"),l=o||t.headers.get("x-nextjs-matched-path"),s=t.headers.get("x-matched-path");if(!s||l||s.includes("__next_data_catchall")||s.includes("/_error")||s.includes("/404")||(l=s),l){if(l.startsWith("/")){let t=(0,p.parseRelativeUrl)(l),s=(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),u=(0,a.removeTrailingSlash)(s.pathname);return Promise.all([r.router.pageLoader.getPageList(),(0,i.getClientBuildManifest)()]).then(a=>{let[i,{__rewrites:l}]=a,d=(0,b.addLocale)(s.pathname,s.locale);if((0,h.isDynamicRoute)(d)||!o&&i.includes((0,c.normalizeLocalePath)((0,_.removeBasePath)(d),r.router.locales).pathname)){let r=(0,C.getNextPathnameInfo)((0,p.parseRelativeUrl)(e).pathname,{nextConfig:n,parseData:!0});d=(0,S.addBasePath)(r.pathname),t.pathname=d}if(!i.includes(u)){let e=z(u,i);e!==u&&(u=e)}let f=i.includes(u)?u:z((0,c.normalizeLocalePath)((0,_.removeBasePath)(t.pathname),r.router.locales).pathname,i);if((0,h.isDynamicRoute)(f)){let e=(0,m.getRouteMatcher)((0,g.getRouteRegex)(f))(d);Object.assign(t.query,e||{})}return{type:"rewrite",parsedAs:t,resolvedHref:f}})}let t=(0,y.parsePath)(e),s=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(t.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-external",destination:""+s+t.query+t.hash})}let u=t.headers.get("x-nextjs-redirect");if(u){if(u.startsWith("/")){let e=(0,y.parsePath)(u),t=(0,O.formatNextPathnameInfo)({...(0,C.getNextPathnameInfo)(e.pathname,{nextConfig:n,parseData:!0}),defaultLocale:r.router.defaultLocale,buildId:""});return Promise.resolve({type:"redirect-internal",newAs:""+t+e.query+e.hash,newUrl:""+t+e.query+e.hash})}return Promise.resolve({type:"redirect-external",destination:u})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e);return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,cacheKey:t.cacheKey,effect:r}}catch(e){return null}}let H=Symbol("SSG_DATA_NOT_FOUND");function Z(e){try{return JSON.parse(e)}catch(e){return null}}function D(e){var t;let{dataHref:r,inflightCache:n,isPrefetch:o,hasMiddleware:a,isServerRender:l,parseJSON:s,persistCache:u,isBackground:c,unstable_skipClientCache:d}=e,{href:f}=new URL(r,window.location.href),h=e=>(function e(t,r,n){return fetch(t,{credentials:"same-origin",method:n.method||"GET",headers:Object.assign({},n.headers,{"x-nextjs-data":"1"})}).then(o=>!o.ok&&r>1&&o.status>=500?e(t,r-1,n):o)})(r,l?3:1,{headers:Object.assign({},o?{purpose:"prefetch"}:{},o&&a?{"x-middleware-prefetch":"1"}:{}),method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then(t=>t.ok&&(null==e?void 0:e.method)==="HEAD"?{dataHref:r,response:t,text:"",json:{},cacheKey:f}:t.text().then(e=>{if(!t.ok){if(a&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:f};if(404===t.status){var n;if(null==(n=Z(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:H},response:t,text:e,cacheKey:f}}let o=Error("Failed to load static props");throw l||(0,i.markAssetError)(o),o}return{dataHref:r,json:s?Z(e):null,response:t,text:e,cacheKey:f}})).then(e=>(u&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e)).catch(e=>{throw d||delete n[f],("Failed to fetch"===e.message||"NetworkError when attempting to fetch resource."===e.message||"Load failed"===e.message)&&(0,i.markAssetError)(e),e});return d&&u?h({}).then(e=>(n[f]=Promise.resolve(e),e)):void 0!==n[f]?n[f]:n[f]=h(c?{method:"HEAD"}:{})}function W(){return Math.random().toString(36).slice(2,10)}function U(e){let{url:t,router:r}=e;if(t===(0,S.addBasePath)((0,b.addLocale)(r.asPath,r.locale)))throw Error("Invariant: attempted to hard navigate to the same URL "+t+" "+location.href);window.location.href=t}let F=e=>{let{route:t,router:r}=e,n=!1,o=r.clc=()=>{n=!0};return()=>{if(n){let e=Error('Abort fetching component for route: "'+t+'"');throw e.cancelled=!0,e}o===r.clc&&(r.clc=null)}};class q{reload(){window.location.reload()}back(){window.history.back()}forward(){window.history.forward()}push(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=$(this,e,t),this.change("pushState",e,t,r)}replace(e,t,r){return void 0===r&&(r={}),{url:e,as:t}=$(this,e,t),this.change("replaceState",e,t,r)}async _bfl(e,t,r,n){{let s=!1,u=!1;for(let c of[e,t])if(c){let t=(0,a.removeTrailingSlash)(new URL(c,"http://n").pathname),d=(0,S.addBasePath)((0,b.addLocale)(t,r||this.locale));if(t!==(0,a.removeTrailingSlash)(new URL(this.asPath,"http://n").pathname)){var o,i,l;for(let e of(s=s||!!(null==(o=this._bfl_s)?void 0:o.contains(t))||!!(null==(i=this._bfl_s)?void 0:i.contains(d)),[t,d])){let t=e.split("/");for(let e=0;!u&&e{})}}}}return!1}async change(e,t,r,n,o){var u,c,d,x,C,O,E,L,k;let A,B;if(!(0,I.isLocalURL)(t))return U({url:t,router:this}),!1;let Z=1===n._h;Z||n.shallow||await this._bfl(r,void 0,n.locale);let D=Z||n._shouldResolveHref||(0,y.parsePath)(t).pathname===(0,y.parsePath)(r).pathname,W={...this.state},F=!0!==this.isReady;this.isReady=!0;let V=this.isSsr;if(Z||(this.isSsr=!1),Z&&this.clc)return!1;let G=W.locale;f.ST&&performance.mark("routeChange");let{shallow:J=!1,scroll:X=!0}=n,K={shallow:J};this._inFlightRoute&&this.clc&&(V||q.events.emit("routeChangeError",N(),this._inFlightRoute,K),this.clc(),this.clc=null),r=(0,S.addBasePath)((0,b.addLocale)((0,w.hasBasePath)(r)?(0,_.removeBasePath)(r):r,n.locale,this.defaultLocale));let Y=(0,P.removeLocale)((0,w.hasBasePath)(r)?(0,_.removeBasePath)(r):r,W.locale);this._inFlightRoute=r;let Q=G!==W.locale;if(!Z&&this.onlyAHashChange(Y)&&!Q){W.asPath=Y,q.events.emit("hashChangeStart",r,K),this.changeState(e,t,r,{...n,scroll:!1}),X&&this.scrollToHash(Y);try{await this.set(W,this.components[W.route],null)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,K),e}return q.events.emit("hashChangeComplete",r,K),!0}let ee=(0,p.parseRelativeUrl)(t),{pathname:et,query:er}=ee;if(null==(u=this.components[et])?void 0:u.__appRouter)return U({url:r,router:this}),new Promise(()=>{});try{[A,{__rewrites:B}]=await Promise.all([this.pageLoader.getPageList(),(0,i.getClientBuildManifest)(),this.pageLoader.getMiddleware()])}catch(e){return U({url:r,router:this}),!1}this.urlIsNew(Y)||Q||(e="replaceState");let en=r;et=et?(0,a.removeTrailingSlash)((0,_.removeBasePath)(et)):et;let eo=(0,a.removeTrailingSlash)(et),ea=r.startsWith("/")&&(0,p.parseRelativeUrl)(r).pathname,ei=!!(ea&&eo!==ea&&(!(0,h.isDynamicRoute)(eo)||!(0,m.getRouteMatcher)((0,g.getRouteRegex)(eo))(ea))),el=!n.shallow&&await T({asPath:r,locale:W.locale,router:this});if(Z&&el&&(D=!1),D&&"/_error"!==et&&(n._shouldResolveHref=!0,ee.pathname=z(et,A),ee.pathname===et||(et=ee.pathname,ee.pathname=(0,S.addBasePath)(et),el||(t=(0,v.formatWithValidation)(ee)))),!(0,I.isLocalURL)(r))return U({url:r,router:this}),!1;en=(0,P.removeLocale)((0,_.removeBasePath)(en),W.locale),eo=(0,a.removeTrailingSlash)(et);let es=!1;if((0,h.isDynamicRoute)(eo)){let e=(0,p.parseRelativeUrl)(en),n=e.pathname,o=(0,g.getRouteRegex)(eo);es=(0,m.getRouteMatcher)(o)(n);let a=eo===n,i=a?(0,M.interpolateAs)(eo,n,er):{};if(es&&(!a||i.result))a?r=(0,v.formatWithValidation)(Object.assign({},e,{pathname:i.result,query:(0,R.omit)(er,i.params)})):Object.assign(er,es);else{let e=Object.keys(o.groups).filter(e=>!er[e]&&!o.groups[e].optional);if(e.length>0&&!el)throw Error((a?"The provided `href` ("+t+") value is missing query values ("+e.join(", ")+") to be interpolated properly. ":"The provided `as` value ("+n+") is incompatible with the `href` value ("+eo+"). ")+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}}Z||q.events.emit("routeChangeStart",r,K);let eu="/404"===this.pathname||"/_error"===this.pathname;try{let a=await this.getRouteInfo({route:eo,pathname:et,query:er,as:r,resolvedAs:en,routeProps:K,locale:W.locale,isPreview:W.isPreview,hasMiddleware:el,unstable_skipClientCache:n.unstable_skipClientCache,isQueryUpdating:Z&&!this.isFallback,isMiddlewareRewrite:ei});if(Z||n.shallow||await this._bfl(r,"resolvedAs"in a?a.resolvedAs:void 0,W.locale),"route"in a&&el){eo=et=a.route||eo,K.shallow||(er=Object.assign({},a.query||{},er));let e=(0,w.hasBasePath)(ee.pathname)?(0,_.removeBasePath)(ee.pathname):ee.pathname;if(es&&et!==e&&Object.keys(es).forEach(e=>{es&&er[e]===es[e]&&delete er[e]}),(0,h.isDynamicRoute)(et)){let e=!K.shallow&&a.resolvedAs?a.resolvedAs:(0,S.addBasePath)((0,b.addLocale)(new URL(r,location.href).pathname,W.locale),!0),t=e;(0,w.hasBasePath)(t)&&(t=(0,_.removeBasePath)(t));let n=(0,g.getRouteRegex)(et),o=(0,m.getRouteMatcher)(n)(new URL(t,location.href).pathname);o&&Object.assign(er,o)}}if("type"in a){if("redirect-internal"===a.type)return this.change(e,a.newUrl,a.newAs,n);return U({url:a.destination,router:this}),new Promise(()=>{})}let i=a.Component;if(i&&i.unstable_scriptLoader){let e=[].concat(i.unstable_scriptLoader());e.forEach(e=>{(0,l.handleClientScriptLoad)(e.props)})}if((a.__N_SSG||a.__N_SSP)&&a.props){if(a.props.pageProps&&a.props.pageProps.__N_REDIRECT){n.locale=!1;let t=a.props.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.props.pageProps.__N_REDIRECT_BASE_PATH){let r=(0,p.parseRelativeUrl)(t);r.pathname=z(r.pathname,A);let{url:o,as:a}=$(this,t,t);return this.change(e,o,a,n)}return U({url:t,router:this}),new Promise(()=>{})}if(W.isPreview=!!a.props.__N_PREVIEW,a.props.notFound===H){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}if(a=await this.getRouteInfo({route:e,pathname:e,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isNotFound:!0}),"type"in a)throw Error("Unexpected middleware effect on /404")}}Z&&"/_error"===this.pathname&&(null==(c=self.__NEXT_DATA__.props)?void 0:null==(d=c.pageProps)?void 0:d.statusCode)===500&&(null==(x=a.props)?void 0:x.pageProps)&&(a.props.pageProps.statusCode=500);let u=n.shallow&&W.route===(null!=(C=a.route)?C:eo),f=null!=(O=n.scroll)?O:!Z&&!u,v=null!=o?o:f?{x:0,y:0}:null,y={...W,route:eo,pathname:et,query:er,asPath:Y,isFallback:!1};if(Z&&eu){if(a=await this.getRouteInfo({route:this.pathname,pathname:this.pathname,query:er,as:r,resolvedAs:en,routeProps:{shallow:!1},locale:W.locale,isPreview:W.isPreview,isQueryUpdating:Z&&!this.isFallback}),"type"in a)throw Error("Unexpected middleware effect on "+this.pathname);"/_error"===this.pathname&&(null==(E=self.__NEXT_DATA__.props)?void 0:null==(L=E.pageProps)?void 0:L.statusCode)===500&&(null==(k=a.props)?void 0:k.pageProps)&&(a.props.pageProps.statusCode=500);try{await this.set(y,a,v)}catch(e){throw(0,s.default)(e)&&e.cancelled&&q.events.emit("routeChangeError",e,Y,K),e}return!0}q.events.emit("beforeHistoryChange",r,K),this.changeState(e,t,r,n);let P=Z&&!v&&!F&&!Q&&(0,j.compareRouterStates)(y,this.state);if(!P){try{await this.set(y,a,v)}catch(e){if(e.cancelled)a.error=a.error||e;else throw e}if(a.error)throw Z||q.events.emit("routeChangeError",a.error,Y,K),a.error;Z||q.events.emit("routeChangeComplete",r,K),f&&/#.+$/.test(r)&&this.scrollToHash(r)}return!0}catch(e){if((0,s.default)(e)&&e.cancelled)return!1;throw e}}changeState(e,t,r,n){void 0===n&&(n={}),("pushState"!==e||(0,f.getURL)()!==r)&&(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:W()},"",r))}async handleRouteInfoError(e,t,r,n,o,a){if(console.error(e),e.cancelled)throw e;if((0,i.isAssetError)(e)||a)throw q.events.emit("routeChangeError",e,n,o),U({url:n,router:this}),N();try{let n;let{page:o,styleSheets:a}=await this.fetchComponent("/_error"),i={props:n,Component:o,styleSheets:a,err:e,error:e};if(!i.props)try{i.props=await this.getInitialProps(o,{err:e,pathname:t,query:r})}catch(e){console.error("Error in error page `getInitialProps`: ",e),i.props={}}return i}catch(e){return this.handleRouteInfoError((0,s.default)(e)?e:Error(e+""),t,r,n,o,!0)}}async getRouteInfo(e){let{route:t,pathname:r,query:n,as:o,resolvedAs:i,routeProps:l,locale:u,hasMiddleware:d,isPreview:f,unstable_skipClientCache:h,isQueryUpdating:p,isMiddlewareRewrite:m,isNotFound:g}=e,y=t;try{var b,P,S,w;let e=F({route:y,router:this}),t=this.components[y];if(l.shallow&&t&&this.route===y)return t;d&&(t=void 0);let s=!t||"initial"in t?void 0:t,C={dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),skipInterpolation:!0,asPath:g?"/404":i,locale:u}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:p?this.sbc:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h,isBackground:p},O=p&&!m?null:await B({fetchData:()=>D(C),asPath:g?"/404":i,locale:u,router:this}).catch(e=>{if(p)return null;throw e});if(O&&("/_error"===r||"/404"===r)&&(O.effect=void 0),p&&(O?O.json=self.__NEXT_DATA__.props:O={json:self.__NEXT_DATA__.props}),e(),(null==O?void 0:null==(b=O.effect)?void 0:b.type)==="redirect-internal"||(null==O?void 0:null==(P=O.effect)?void 0:P.type)==="redirect-external")return O.effect;if((null==O?void 0:null==(S=O.effect)?void 0:S.type)==="rewrite"){let e=(0,a.removeTrailingSlash)(O.effect.resolvedHref),o=await this.pageLoader.getPageList();if((!p||o.includes(e))&&(y=e,r=O.effect.resolvedHref,n={...n,...O.effect.parsedAs.query},i=(0,_.removeBasePath)((0,c.normalizeLocalePath)(O.effect.parsedAs.pathname,this.locales).pathname),t=this.components[y],l.shallow&&t&&this.route===y&&!d))return{...t,route:y}}if((0,x.isAPIRoute)(y))return U({url:o,router:this}),new Promise(()=>{});let j=s||await this.fetchComponent(y).then(e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP})),I=null==O?void 0:null==(w=O.response)?void 0:w.headers.get("x-middleware-skip"),E=j.__N_SSG||j.__N_SSP;I&&(null==O?void 0:O.dataHref)&&delete this.sdc[O.dataHref];let{props:R,cacheKey:L}=await this._getData(async()=>{if(E){if((null==O?void 0:O.json)&&!I)return{cacheKey:O.cacheKey,props:O.json};let e=(null==O?void 0:O.dataHref)?O.dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:r,query:n}),asPath:i,locale:u}),t=await D({dataHref:e,isServerRender:this.isSsr,parseJSON:!0,inflightCache:I?{}:this.sdc,persistCache:!f,isPrefetch:!1,unstable_skipClientCache:h});return{cacheKey:t.cacheKey,props:t.json||{}}}return{headers:{},props:await this.getInitialProps(j.Component,{pathname:r,query:n,asPath:o,locale:u,locales:this.locales,defaultLocale:this.defaultLocale})}});return j.__N_SSP&&C.dataHref&&L&&delete this.sdc[L],this.isPreview||!j.__N_SSG||p||D(Object.assign({},C,{isBackground:!0,persistCache:!1,inflightCache:this.sbc})).catch(()=>{}),R.pageProps=Object.assign({},R.pageProps),j.props=R,j.route=y,j.query=n,j.resolvedAs=i,this.components[y]=j,j}catch(e){return this.handleRouteInfoError((0,s.getProperError)(e),r,n,o,l)}}set(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;let[t,r]=this.asPath.split("#"),[n,o]=e.split("#");return!!o&&t===n&&r===o||t===n&&r!==o}scrollToHash(e){let[,t=""]=e.split("#");if(""===t||"top"===t){(0,k.handleSmoothScroll)(()=>window.scrollTo(0,0));return}let r=decodeURIComponent(t),n=document.getElementById(r);if(n){(0,k.handleSmoothScroll)(()=>n.scrollIntoView());return}let o=document.getElementsByName(r)[0];o&&(0,k.handleSmoothScroll)(()=>o.scrollIntoView())}urlIsNew(e){return this.asPath!==e}async prefetch(e,t,r){if(void 0===t&&(t=e),void 0===r&&(r={}),(0,E.isBot)(window.navigator.userAgent))return;let n=(0,p.parseRelativeUrl)(e),o=n.pathname,{pathname:i,query:l}=n,s=i,u=await this.pageLoader.getPageList(),c=t,d=void 0!==r.locale?r.locale||void 0:this.locale,f=await T({asPath:t,locale:d,router:this});n.pathname=z(n.pathname,u),(0,h.isDynamicRoute)(n.pathname)&&(i=n.pathname,n.pathname=i,Object.assign(l,(0,m.getRouteMatcher)((0,g.getRouteRegex)(n.pathname))((0,y.parsePath)(t).pathname)||{}),f||(e=(0,v.formatWithValidation)(n)));let b=await B({fetchData:()=>D({dataHref:this.pageLoader.getDataHref({href:(0,v.formatWithValidation)({pathname:s,query:l}),skipInterpolation:!0,asPath:c,locale:d}),hasMiddleware:!0,isServerRender:this.isSsr,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0}),asPath:t,locale:d,router:this});if((null==b?void 0:b.effect.type)==="rewrite"&&(n.pathname=b.effect.resolvedHref,i=b.effect.resolvedHref,l={...l,...b.effect.parsedAs.query},c=b.effect.parsedAs.pathname,e=(0,v.formatWithValidation)(n)),(null==b?void 0:b.effect.type)==="redirect-external")return;let P=(0,a.removeTrailingSlash)(i);await this._bfl(t,c,r.locale,!0)&&(this.components[o]={__appRouter:!0}),await Promise.all([this.pageLoader._isSsg(P).then(t=>!!t&&D({dataHref:(null==b?void 0:b.json)?null==b?void 0:b.dataHref:this.pageLoader.getDataHref({href:e,asPath:c,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:this.sdc,persistCache:!this.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then(()=>!1).catch(()=>!1)),this.pageLoader[r.priority?"loadPage":"prefetch"](P)])}async fetchComponent(e){let t=F({route:e,router:this});try{let r=await this.pageLoader.loadPage(e);return t(),r}catch(e){throw t(),e}}_getData(e){let t=!1,r=()=>{t=!0};return this.clc=r,e().then(e=>{if(r===this.clc&&(this.clc=null),t){let e=Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e})}_getFlightData(e){return D({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then(e=>{let{text:t}=e;return{data:t}})}getInitialProps(e,t){let{Component:r}=this.components["/_app"],n=this._wrapApp(r);return t.AppTree=n,(0,f.loadGetInitialProps)(r,{AppTree:n,Component:e,router:this,ctx:t})}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}constructor(e,t,n,{initialProps:o,pageLoader:i,App:l,wrapApp:s,Component:u,err:c,subscription:d,isFallback:m,locale:g,locales:y,defaultLocale:b,domainLocales:P,isPreview:_}){this.sdc={},this.sbc={},this.isFirstPopStateEvent=!0,this._key=W(),this.onPopState=e=>{let t;let{isFirstPopStateEvent:r}=this;this.isFirstPopStateEvent=!1;let n=e.state;if(!n){let{pathname:e,query:t}=this;this.changeState("replaceState",(0,v.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),(0,f.getURL)());return}if(n.__NA){window.location.reload();return}if(!n.__N||r&&this.locale===n.options.locale&&n.as===this.asPath)return;let{url:o,as:a,options:i,key:l}=n;this._key=l;let{pathname:s}=(0,p.parseRelativeUrl)(o);(!this.isSsr||a!==(0,S.addBasePath)(this.asPath)||s!==(0,S.addBasePath)(this.pathname))&&(!this._bps||this._bps(n))&&this.change("replaceState",o,a,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale,_h:0}),t)};let w=(0,a.removeTrailingSlash)(e);this.components={},"/_error"!==e&&(this.components[w]={Component:u,initial:!0,props:o,err:c,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP}),this.components["/_app"]={Component:l,styleSheets:[]};{let{BloomFilter:e}=r(12958),t={numItems:6,errorRate:.01,numBits:58,numHashes:7,bitArray:[0,1,1,1,0,1,1,0,0,0,0,1,1,1,1,1,0,0,0,1,0,0,1,0,1,0,0,0,1,0,0,0,1,0,1,0,0,1,1,1,1,0,1,0,1,1,0,0,1,1,1,1,1,1,1,0,1,0]},n={numItems:0,errorRate:.01,numBits:0,numHashes:null,bitArray:[]};(null==t?void 0:t.numHashes)&&(this._bfl_s=new e(t.numItems,t.errorRate),this._bfl_s.import(t)),(null==n?void 0:n.numHashes)&&(this._bfl_d=new e(n.numItems,n.errorRate),this._bfl_d.import(n))}this.events=q.events,this.pageLoader=i;let x=(0,h.isDynamicRoute)(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=d,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||!x&&!self.location.search),this.state={route:w,pathname:e,query:t,asPath:x?e:n,isPreview:!!_,locale:void 0,isFallback:m},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!n.startsWith("//")){let r={locale:g},o=(0,f.getURL)();this._initialMatchesMiddlewarePromise=T({router:this,locale:g,asPath:o}).then(a=>(r._shouldResolveHref=n!==e,this.changeState("replaceState",a?o:(0,v.formatWithValidation)({pathname:(0,S.addBasePath)(e),query:t}),o,r),a))}window.addEventListener("popstate",this.onPopState)}}q.events=(0,d.default)()},58485:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return a}});let n=r(16620),o=r(29973);function a(e,t,r,a){if(!t||t===r)return e;let i=e.toLowerCase();return!a&&((0,o.pathHasPrefix)(i,"/api")||(0,o.pathHasPrefix)(i,"/"+t.toLowerCase()))?e:(0,n.addPathPrefix)(e,"/"+t)}},75061:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:o,hash:a}=(0,n.parsePath)(e);return""+r+t+o+a}},16234:function(e,t){"use strict";function r(e,t){let r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=r.length;n--;){let o=r[n];if("query"===o){let r=Object.keys(e.query);if(r.length!==Object.keys(t.query).length)return!1;for(let n=r.length;n--;){let o=r[n];if(!t.query.hasOwnProperty(o)||e.query[o]!==t.query[o])return!1}}else if(!t.hasOwnProperty(o)||e[o]!==t[o])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"compareRouterStates",{enumerable:!0,get:function(){return r}})},41714:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return l}});let n=r(30769),o=r(16620),a=r(75061),i=r(58485);function l(e){let t=(0,i.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,n.removeTrailingSlash)(t)),e.buildId&&(t=(0,a.addPathSuffix)((0,o.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,o.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,a.addPathSuffix)(t,"/"):(0,n.removeTrailingSlash)(t)}},6692:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{formatUrl:function(){return i},urlObjectKeys:function(){return l},formatWithValidation:function(){return s}});let n=r(25909),o=n._(r(61937)),a=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?"["+r+"]":r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let c=e.search||s&&"?"+s||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),""+n+u+(i=i.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+l}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function s(e){return i(e)}},56001:function(e,t){"use strict";function r(e,t){void 0===t&&(t="");let r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index"+e:""+e;return r+t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}})},86708:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return i}});let n=r(38030),o=r(6223),a=r(29973);function i(e,t){var r,i,l;let{basePath:s,i18n:u,trailingSlash:c}=null!=(r=t.nextConfig)?r:{},d={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):c};if(s&&(0,a.pathHasPrefix)(d.pathname,s)&&(d.pathname=(0,o.removePathPrefix)(d.pathname,s),d.basePath=s),!0===t.parseData&&d.pathname.startsWith("/_next/data/")&&d.pathname.endsWith(".json")){let e=d.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),t=e[0];d.pathname="index"!==e[1]?"/"+e.slice(1).join("/"):"/",d.buildId=t}if(t.i18nProvider){let e=t.i18nProvider.analyze(d.pathname);d.locale=e.detectedLocale,d.pathname=null!=(i=e.pathname)?i:d.pathname}else if(u){let e=(0,n.normalizeLocalePath)(d.pathname,u.locales);d.locale=e.detectedLocale,d.pathname=null!=(l=e.pathname)?l:d.pathname}return d}},4471:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getSortedRoutes:function(){return n.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let n=r(28057),o=r(93861)},74875:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return a}});let n=r(58287),o=r(35318);function a(e,t,r){let a="",i=(0,o.getRouteRegex)(e),l=i.groups,s=(t!==e?(0,n.getRouteMatcher)(i)(t):"")||r;a=e;let u=Object.keys(l);return u.every(e=>{let t=s[e]||"",{repeat:r,optional:n}=l[e],o="["+(r?"...":"")+e+"]";return n&&(o=(t?"":"/")+"["+o+"]"),r&&!Array.isArray(t)&&(t=[t]),(n||e in s)&&(a=a.replace(o,r?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(a=""),{params:u,result:a}}},93861:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return n}});let r=/\/\[[^/]+?\](?=\/|$)/;function n(e){return r.test(e)}},8993:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(66630);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},86620:function(e,t){"use strict";function r(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return r}})},16590:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parseRelativeUrl",{enumerable:!0,get:function(){return a}});let n=r(84779),o=r(61937);function a(e,t){let r=new URL((0,n.getLocationOrigin)()),a=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,{pathname:i,searchParams:l,search:s,hash:u,href:c,origin:d}=new URL(e,a);if(d!==r.origin)throw Error("invariant: invalid relative URL, router received "+e);return{pathname:i,query:(0,o.searchParamsToUrlQuery)(l),search:s,hash:u,href:c.slice(r.origin.length)}}},29973:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let n=r(89777);function o(e,t){if("string"!=typeof e)return!1;let{pathname:r}=(0,n.parsePath)(e);return r===t||r.startsWith(t+"/")}},61937:function(e,t){"use strict";function r(e){let t={};return e.forEach((e,r)=>{void 0===t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]}),t}function n(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[r,o]=e;Array.isArray(o)?o.forEach(e=>t.append(r,n(e))):t.set(r,n(o))}),t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,r)=>e.append(r,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{searchParamsToUrlQuery:function(){return r},urlQueryToSearchParams:function(){return o},assign:function(){return a}})},6223:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return o}});let n=r(29973);function o(e,t){if(!(0,n.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},96050:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return d}});let n=r(61937),o=r(6692),a=r(86620),i=r(84779),l=r(65231),s=r(8993),u=r(93861),c=r(74875);function d(e,t,r){let d;let f="string"==typeof t?t:(0,o.formatWithValidation)(t),h=f.match(/^[a-zA-Z]{1,}:\/\//),p=h?f.slice(h[0].length):f,m=p.split("?");if((m[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+f+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,i.normalizeRepeatedSlashes)(p);f=(h?h[0]:"")+t}if(!(0,s.isLocalURL)(f))return r?[f]:f;try{d=new URL(f.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){d=new URL("/","http://n")}try{let e=new URL(f,d);e.pathname=(0,l.normalizePathTrailingSlash)(e.pathname);let t="";if((0,u.isDynamicRoute)(e.pathname)&&e.searchParams&&r){let r=(0,n.searchParamsToUrlQuery)(e.searchParams),{result:i,params:l}=(0,c.interpolateAs)(e.pathname,e.pathname,r);i&&(t=(0,o.formatWithValidation)({pathname:i,hash:e.hash,query:(0,a.omit)(r,l)}))}let i=e.origin===d.origin?e.href.slice(e.origin.length):e.href;return r?[i,t||i]:i}catch(e){return r?[f]:f}}},58287:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let n=r(84779);function o(e){let{re:t,groups:r}=e;return e=>{let o=t.exec(e);if(!o)return!1;let a=e=>{try{return decodeURIComponent(e)}catch(e){throw new n.DecodeError("failed to decode param")}},i={};return Object.keys(r).forEach(e=>{let t=r[e],n=o[t.pos];void 0!==n&&(i[e]=~n.indexOf("/")?n.split("/").map(e=>a(e)):t.repeat?[a(n)]:a(n))}),i}}},35318:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{getRouteRegex:function(){return s},getNamedRouteRegex:function(){return c},getNamedMiddlewareRegex:function(){return d}});let n=r(36902),o=r(30769),a="nxtP";function i(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}function l(e){let t=(0,o.removeTrailingSlash)(e).slice(1).split("/"),r={},a=1;return{parameterizedRoute:t.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:t,optional:n,repeat:o}=i(e.slice(1,-1));return r[t]={pos:a++,repeat:o,optional:n},o?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:r}}function s(e){let{parameterizedRoute:t,groups:r}=l(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:r}}function u(e,t){let r,l;let s=(0,o.removeTrailingSlash)(e).slice(1).split("/"),u=(r=97,l=1,()=>{let e="";for(let t=0;t122&&(l++,r=97);return e}),c={};return{namedParameterizedRoute:s.map(e=>{if(!(e.startsWith("[")&&e.endsWith("]")))return"/"+(0,n.escapeStringRegexp)(e);{let{key:r,optional:n,repeat:o}=i(e.slice(1,-1)),l=r.replace(/\W/g,"");t&&(l=""+a+l);let s=!1;return(0===l.length||l.length>30)&&(s=!0),isNaN(parseInt(l.slice(0,1)))||(s=!0),s&&(l=u()),t?c[l]=""+a+r:c[l]=""+r,o?n?"(?:/(?<"+l+">.+?))?":"/(?<"+l+">.+?)":"/(?<"+l+">[^/]+?)"}}).join(""),routeKeys:c}}function c(e,t){let r=u(e,t);return{...s(e),namedRegex:"^"+r.namedParameterizedRoute+"(?:/)?$",routeKeys:r.routeKeys}}function d(e,t){let{parameterizedRoute:r}=l(e),{catchAll:n=!0}=t;if("/"===r)return{namedRegex:"^/"+(n?".*":"")+"$"};let{namedParameterizedRoute:o}=u(e,!1);return{namedRegex:"^"+o+(n?"(?:(/.*)?)":"")+"$"}}},28057:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n}});class r{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let r=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&r.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),r}_insert(e,t,n){if(0===e.length){this.placeholder=!1;return}if(n)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let r=o.slice(1,-1),i=!1;if(r.startsWith("[")&&r.endsWith("]")&&(r=r.slice(1,-1),i=!0),r.startsWith("...")&&(r=r.substring(3),n=!0),r.startsWith("[")||r.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+r+"').");if(r.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+r+"').");function a(e,r){if(null!==e&&e!==r)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+r+"').");t.forEach(e=>{if(e===r)throw Error('You cannot have the same slug name "'+r+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+r+'" differ only by non-word symbols within a single dynamic path')}),t.push(r)}if(n){if(i){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');a(this.optionalRestSlugName,r),this.optionalRestSlugName=r,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');a(this.restSlugName,r),this.restSlugName=r,o="[...]"}}else{if(i)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');a(this.slugName,r),this.slugName=r,o="[]"}}this.children.has(o)||this.children.set(o,new r),this.children.get(o)._insert(e.slice(1),t,n)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function n(e){let t=new r;return e.forEach(e=>t.insert(e)),t.smoosh()}},84779:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{WEB_VITALS:function(){return r},execOnce:function(){return n},isAbsoluteUrl:function(){return a},getLocationOrigin:function(){return i},getURL:function(){return l},getDisplayName:function(){return s},isResSent:function(){return u},normalizeRepeatedSlashes:function(){return c},loadGetInitialProps:function(){return d},SP:function(){return f},ST:function(){return h},DecodeError:function(){return p},NormalizeError:function(){return m},PageNotFoundError:function(){return g},MissingStaticPage:function(){return v},MiddlewareNotFoundError:function(){return y}});let r=["CLS","FCP","FID","INP","LCP","TTFB"];function n(e){let t,r=!1;return function(){for(var n=arguments.length,o=Array(n),a=0;ao.test(e);function i(){let{protocol:e,hostname:t,port:r}=window.location;return e+"//"+t+(r?":"+r:"")}function l(){let{href:e}=window.location,t=i();return e.substring(t.length)}function s(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function u(e){return e.finished||e.headersSent}function c(e){let t=e.split("?"),r=t[0];return r.replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function d(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await d(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&u(r))return n;if(!n){let t='"'+s(e)+'.getInitialProps()" should resolve to an object. But found "'+n+'" instead.';throw Error(t)}return n}let f="undefined"!=typeof performance,h=f&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class p extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class v extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class y extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}},3031:function(e,t){"use strict";function r(e){return"/api"===e||!!(null==e?void 0:e.startsWith("/api/"))}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isAPIRoute",{enumerable:!0,get:function(){return r}})},40243:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return o},getProperError:function(){return a}});let n=r(6636);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}function a(e){return o(e)?e:Error((0,n.isPlainObject)(e)?JSON.stringify(e):e+"")}},35846:function(e,t,r){e.exports=r(57477)},53794:function(e,t,r){e.exports=r(25076)},54486:function(e,t,r){var n,o;void 0!==(o="function"==typeof(n=function(){var e,t,r,n={};n.version="0.2.0";var o=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
    '};function a(e,t,r){return er?r:e}n.configure=function(e){var t,r;for(t in e)void 0!==(r=e[t])&&e.hasOwnProperty(t)&&(o[t]=r);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,o.minimum,1),n.status=1===e?null:e;var r=n.render(!t),s=r.querySelector(o.barSelector),u=o.speed,c=o.easing;return r.offsetWidth,i(function(t){var a,i;""===o.positionUsing&&(o.positionUsing=n.getPositioningCSS()),l(s,(a=e,(i="translate3d"===o.positionUsing?{transform:"translate3d("+(-1+a)*100+"%,0,0)"}:"translate"===o.positionUsing?{transform:"translate("+(-1+a)*100+"%,0)"}:{"margin-left":(-1+a)*100+"%"}).transition="all "+u+"ms "+c,i)),1===e?(l(r,{transition:"none",opacity:1}),r.offsetWidth,setTimeout(function(){l(r,{transition:"all "+u+"ms linear",opacity:0}),setTimeout(function(){n.remove(),t()},u)},u)):setTimeout(t,u)}),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout(function(){n.status&&(n.trickle(),e())},o.trickleSpeed)};return o.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*o.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()&&(0===t&&n.start(),e++,t++,r.always(function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=o.template;var r,a,i=t.querySelector(o.barSelector),s=e?"-100":(-1+(n.status||0))*100,c=document.querySelector(o.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),!o.showSpinner&&(a=t.querySelector(o.spinnerSelector))&&f(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){c(document.documentElement,"nprogress-busy"),c(document.querySelector(o.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&f(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var i=(r=[],function(e){r.push(e),1==r.length&&function e(){var t=r.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function r(r,n,o){var a;n=t[a=(a=n).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[a]=function(t){var r=document.body.style;if(t in r)return t;for(var n,o=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);o--;)if((n=e[o]+a)in r)return n;return t}(a)),r.style[n]=o}return function(e,t){var n,o,a=arguments;if(2==a.length)for(n in t)void 0!==(o=t[n])&&t.hasOwnProperty(n)&&r(e,n,o);else r(e,a[1],a[2])}}();function s(e,t){return("string"==typeof e?e:d(e)).indexOf(" "+t+" ")>=0}function u(e,t){var r=d(e),n=r+t;s(r,t)||(e.className=n.substring(1))}function c(e,t){var r,n=d(e);s(e,t)&&(r=n.replace(" "+t+" "," "),e.className=r.substring(1,r.length-1))}function d(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function f(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n})?n.call(t,r,t,e):n)&&(e.exports=o)}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/7e4358a0-8f10c290d655cdf1.js b/pilot/server/static/_next/static/chunks/7e4358a0-8f10c290d655cdf1.js deleted file mode 100644 index 550fd93cb..000000000 --- a/pilot/server/static/_next/static/chunks/7e4358a0-8f10c290d655cdf1.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[282],{59860:function(e,t,i){var n,s,o,r,a,l,h;e=i.nmd(e),(n=function(){return this}())||"undefined"==typeof window||(n=window),(s=function(e,t,i){if("string"!=typeof e){s.original?s.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}2==arguments.length&&(i=t),s.modules[e]||(s.payloads[e]=i,s.modules[e]=null)}).modules={},s.payloads={},o=function(e,t,i){if("string"==typeof t){var n=l(e,t);if(void 0!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(t)){for(var s=[],o=0,a=t.length;othis.length)&&(t=this.length),t-=e.length;var i=this.indexOf(e,t);return -1!==i&&i===t}),String.prototype.repeat||n(String.prototype,"repeat",function(e){for(var t="",i=this;e>0;)1&e&&(t+=i),(e>>=1)&&(i+=i);return t}),String.prototype.includes||n(String.prototype,"includes",function(e,t){return -1!=this.indexOf(e,t)}),Object.assign||(Object.assign=function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i>>0,i=arguments[1],n=i>>0,s=n<0?Math.max(t+n,0):Math.min(n,t),o=arguments[2],r=void 0===o?t:o>>0,a=r<0?Math.max(t+r,0):Math.min(r,t);s0;)1&t&&(i+=e),(t>>=1)&&(e+=e);return i};var n=/^\s\s*/,s=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(s,"")},t.copyObject=function(e){var t={};for(var i in e)t[i]=e[i];return t},t.copyArray=function(e){for(var t=[],i=0,n=e.length;i=0?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,t.isAIR=o.indexOf("AdobeAIR")>=0,t.isAndroid=o.indexOf("Android")>=0,t.isChromeOS=o.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,t,i){"use strict";var n,s=e("./useragent");t.buildDom=function e(t,i,n){if("string"==typeof t&&t){var s=document.createTextNode(t);return i&&i.appendChild(s),s}if(!Array.isArray(t))return t&&t.appendChild&&i&&i.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var o=[],r=0;r=1.5,s.isChromeOS&&(t.HI_DPI=!1),"undefined"!=typeof document){var l=document.createElement("div");t.HI_DPI&&void 0!==l.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),s.isEdge||void 0===l.style.animationName||(t.HAS_CSS_ANIMATION=!0),l=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,i){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(i)+"px)"}:t.translate=function(e,t,i){e.style.top=Math.round(i)+"px",e.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";var n=e("./dom");t.get=function(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.onreadystatechange=function(){4===i.readyState&&t(i.responseText)},i.send(null)},t.loadScript=function(e,t){var i=n.getDocumentHead(),s=document.createElement("script");s.src=e,i.appendChild(s),s.onload=s.onreadystatechange=function(e,i){!i&&s.readyState&&"loaded"!=s.readyState&&"complete"!=s.readyState||(s=s.onload=s.onreadystatechange=null,i||t())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(e,t,i){"use strict";var n={},s=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[e]||[],n=this._defaultHandlers[e];if(i.length||n){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=s),t.preventDefault||(t.preventDefault=o),i=i.slice();for(var r=0;r1&&(s=i[i.length-2]);var r=a[t+"Path"];return null==r?r=a.basePath:"/"==n&&(t=n=""),r&&"/"!=r.slice(-1)&&(r+="/"),r+t+n+s+this.get("suffix")},t.setModuleUrl=function(e,t){return a.$moduleUrls[e]=t};var l=function(t,i){return"ace/theme/textmate"==t?i(null,e("./theme/textmate")):console.error("loader is not configured")};t.setLoader=function(e){l=e},t.$loading={},t.loadModule=function(i,n){Array.isArray(i)&&(r=i[0],i=i[1]);try{o=e(i)}catch(e){}if(o&&!t.$loading[i])return n&&n(o);if(t.$loading[i]||(t.$loading[i]=[]),t.$loading[i].push(n),!(t.$loading[i].length>1)){var o,r,a=function(){l(i,function(e,n){t._emit("load.module",{name:i,module:n});var s=t.$loading[i];t.$loading[i]=null,s.forEach(function(e){e&&e(n)})})};if(!t.get("packaged"))return a();s.loadScript(t.moduleUrl(i,r),a),h()}};var h=function(){a.basePath||a.workerPath||a.modePath||a.themePath||Object.keys(a.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),h=function(){})};t.version="1.12.5"}),ace.define("ace/loader_build",["require","exports","module","ace/lib/fixoldbrowsers","ace/config"],function(e,t,n){"use strict";e("./lib/fixoldbrowsers");var s=e("./config");s.setLoader(function(t,i){e([t],function(e){i(null,e)})});var o=function(){return this||"undefined"!=typeof window&&window}();function r(t){if(o&&o.document){s.set("packaged",t||e.packaged||n.packaged||o.define&&i.amdD.packaged);for(var r={},a="",l=document.currentScript||document._currentScript,h=(l&&l.ownerDocument||document).getElementsByTagName("script"),c=0;c1?++u>4&&(u=1):u=1,o.isIE){var r=Math.abs(e.clientX-a)>5||Math.abs(e.clientY-l)>5;(!h||r)&&(u=1),h&&clearTimeout(h),h=setTimeout(function(){h=null},i[u-1]||600),1==u&&(a=e.clientX,l=e.clientY)}if(e._clicks=u,n[s]("mousedown",e),u>4)u=0;else if(u>1)return n[s](d[u],e)}Array.isArray(e)||(e=[e]),e.forEach(function(e){c(e,"mousedown",g,r)})};var d=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function g(e,t,i){var n=d(t);if(!o.isMac&&r){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(n|=8),r.altGr){if((3&n)==3)return;r.altGr=0}if(18===i||17===i){var l="location"in t?t.location:t.keyLocation;17===i&&1===l?1==r[i]&&(a=t.timeStamp):18===i&&3===n&&2===l&&t.timeStamp-a<50&&(r.altGr=!0)}}if(i in s.MODIFIER_KEYS&&(i=-1),!n&&13===i){var l="location"in t?t.location:t.keyLocation;if(3===l&&(e(t,n,-i),t.defaultPrevented))return}if(o.isChromeOS&&8&n){if(e(t,n,i),t.defaultPrevented)return;n&=-9}return(!!n||i in s.FUNCTION_KEYS||i in s.PRINTABLE_KEYS)&&e(t,n,i)}function f(){r=Object.create(null)}if(t.getModifierString=function(e){return s.KEY_MODS[d(e)]},t.addCommandKeyListener=function(e,i,n){if(!o.isOldGecko&&(!o.isOpera||"KeyboardEvent"in window)){var s=null;c(e,"keydown",function(e){r[e.keyCode]=(r[e.keyCode]||0)+1;var t=g(i,e,e.keyCode);return s=e.defaultPrevented,t},n),c(e,"keypress",function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)},n),c(e,"keyup",function(e){r[e.keyCode]=null},n),r||(f(),c(window,"focus",f))}else{var a=null;c(e,"keydown",function(e){a=e.keyCode},n),c(e,"keypress",function(e){return g(i,e,a)},n)}},"object"==typeof window&&window.postMessage&&!o.isOldIE){var m=1;t.nextTick=function(e,i){i=i||window;var n="zero-timeout-message-"+m++,s=function(o){o.data==n&&(t.stopPropagation(o),u(i,"message",s),e())};c(i,"message",s),i.postMessage(n,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,i){return setTimeout(function i(){t.$idleBlocked?setTimeout(i,100):e()},i)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout(function(){t.$idleBlocked=!1},e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/range",["require","exports","module"],function(e,t,i){"use strict";var n=function(e,t,i,n){this.start={row:e,column:t},this.end={row:i,column:n}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,i=e.end,n=e.start;return 1==(t=this.compare(i.row,i.column))?1==(t=this.compare(n.row,n.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(n.row,n.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return -1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return!(0!=this.compare(e,t)||this.isEnd(e,t)||this.isStart(e,t))},this.insideStart=function(e,t){return!(0!=this.compare(e,t)||this.isEnd(e,t))},this.insideEnd=function(e,t){return!(0!=this.compare(e,t)||this.isStart(e,t))},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var i={row:t+1,column:0};else if(this.end.rowt)var s={row:t+1,column:0};else if(this.start.rowDate.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,i){"use strict";var n=e("../lib/event"),s=e("../lib/useragent"),o=e("../lib/dom"),r=e("../lib/lang"),a=e("../clipboard"),l=s.isChrome<18,h=s.isIE,c=s.isChrome>63,u=e("../lib/keys"),d=u.KEY_MODS,g=s.isIOS,f=g?/\s/:/\n/,m=s.isMobile;t.TextInput=function(e,t){var i,p,v,w,$=o.createElement("textarea");$.className="ace_text-input",$.setAttribute("wrap","off"),$.setAttribute("autocorrect","off"),$.setAttribute("autocapitalize","off"),$.setAttribute("spellcheck",!1),$.style.opacity="0",e.insertBefore($,e.firstChild);var b=!1,y=!1,C=!1,S=!1,x="";m||($.style.fontSize="1px");var k=!1,A=!1,L="",R=0,M=0,E=0;try{var T=document.activeElement===$}catch(e){}n.addListener($,"blur",function(e){A||(t.onBlur(e),T=!1)},t),n.addListener($,"focus",function(e){if(!A){if(T=!0,s.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),s.isEdge?setTimeout(_):_()}},t),this.$focusScroll=!1,this.focus=function(){if(x||c||"browser"==this.$focusScroll)return $.focus({preventScroll:!0});var e=$.style.top;$.style.position="fixed",$.style.top="0px";try{var t=0!=$.getBoundingClientRect().top}catch(e){return}var i=[];if(t)for(var n=$.parentElement;n&&1==n.nodeType;)i.push(n),n.setAttribute("ace_nocontext",!0),n=!n.parentElement&&n.getRootNode?n.getRootNode().host:n.parentElement;$.focus({preventScroll:!0}),t&&i.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){$.style.position="","0px"==$.style.top&&($.style.top=e)},0)},this.blur=function(){$.blur()},this.isFocused=function(){return T},t.on("beforeEndOperation",function(){var e=t.curOp,i=e&&e.command&&e.command.name;if("insertstring"!=i){var n=i&&(e.docChanged||e.selectionChanged);C&&n&&(L=$.value="",z()),_()}});var _=g?function(e){if(T&&(!b||e)&&!S){e||(e="");var i="\n ab"+e+"cde fg\n";i!=$.value&&($.value=L=i);var n=4+(e.length||(t.selection.isEmpty()?0:1));(4!=R||M!=n)&&$.setSelectionRange(4,n),R=4,M=n}}:function(){if(!C&&!S&&(T||I)){C=!0;var e=0,i=0,n="";if(t.session){var s=t.selection,o=s.getRange(),r=s.cursor.row;if(e=o.start.column,i=o.end.column,n=t.session.getLine(r),o.start.row!=r){var a=t.session.getLine(r-1);e=o.start.rowr+1?l.length:i)+(n.length+1),n=n+"\n"+l}else m&&r>0&&(n="\n"+n,i+=1,e+=1);n.length>400&&(e<400&&i<400?n=n.slice(0,400):(n="\n",e==i?e=i=0:(e=0,i=1)))}var h=n+"\n\n";if(h!=L&&($.value=L=h,R=M=h.length),I&&(R=$.selectionStart,M=$.selectionEnd),M!=i||R!=e||$.selectionEnd!=M)try{$.setSelectionRange(e,i),R=e,M=i}catch(e){}C=!1}};this.resetSelection=_,T&&t.onFocus();var F=null;this.setInputHandler=function(e){F=e},this.getInputHandler=function(){return F};var I=!1,W=function(e,i){if(I&&(I=!1),y)return _(),e&&t.onPaste(e),y=!1,"";for(var n=$.selectionStart,o=$.selectionEnd,r=R,a=L.length-M,l=e,h=e.length-n,c=e.length-o,u=0;r>0&&L[u]==e[u];)u++,r--;for(l=l.slice(u),u=1;a>0&&L.length-u>R-1&&L[L.length-u]==e[e.length-u];)u++,a--;h-=u-1,c-=u-1;var d=l.length-u+1;if(d<0&&(r=-d,d=0),l=l.slice(0,d),!i&&!l&&!h&&!r&&!a&&!c)return"";S=!0;var g=!1;return s.isAndroid&&". "==l&&(l=" ",g=!0),(!l||r||a||h||c)&&!k?t.onTextInput(l,{extendLeft:r,extendRight:a,restoreStart:h,restoreEnd:c}):t.onTextInput(l),S=!1,L=e,R=n,M=o,E=c,g?"\n":l},O=function(e){if(C)return V();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var i=$.value,n=W(i,!0);(i.length>500||f.test(n)||m&&R<1&&R==M)&&_()},H=function(e,t,i){var n=e.clipboardData||window.clipboardData;if(n&&!l){var s=h||i?"Text":"text/plain";try{if(t)return!1!==n.setData(s,t);return n.getData(s)}catch(e){if(!i)return H(e,t,!0)}}},D=function(e,i){var s=t.getCopyText();if(!s)return n.preventDefault(e);H(e,s)?(g&&(_(s),b=s,setTimeout(function(){b=!1},10)),i?t.onCut():t.onCopy(),n.preventDefault(e)):(b=!0,$.value=s,$.select(),setTimeout(function(){b=!1,_(),i?t.onCut():t.onCopy()}))},B=function(e){D(e,!0)},P=function(e){D(e,!1)},N=function(e){var i=H(e);a.pasteCancelled()||("string"==typeof i?(i&&t.onPaste(i,e),s.isIE&&setTimeout(_),n.preventDefault(e)):($.value="",y=!0))};n.addCommandKeyListener($,t.onCommandKey.bind(t),t),n.addListener($,"select",function(e){!C&&(b?b=!1:0===$.selectionStart&&$.selectionEnd>=L.length&&$.value===L&&L&&$.selectionEnd!==M?(t.selectAll(),_()):m&&$.selectionStart!=R&&_())},t),n.addListener($,"input",O,t),n.addListener($,"cut",B,t),n.addListener($,"copy",P,t),n.addListener($,"paste",N,t),"oncut"in $&&"oncopy"in $&&"onpaste"in $||n.addListener(e,"keydown",function(e){if((!s.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:P(e);break;case 86:N(e);break;case 88:B(e)}},t);var V=function(){if(C&&t.onCompositionUpdate&&!t.$readOnly){if(k)return U();C.useTextareaForIME?t.onCompositionUpdate($.value):(W($.value),C.markerRange&&(C.context&&(C.markerRange.start.column=C.selectionStart=C.context.compositionStartOffset),C.markerRange.end.column=C.markerRange.start.column+M-C.selectionStart+E))}},z=function(e){t.onCompositionEnd&&!t.$readOnly&&(C=!1,t.onCompositionEnd(),t.off("mousedown",U),e&&O())};function U(){A=!0,$.blur(),$.focus(),A=!1}var G=r.delayedCall(V,50).schedule.bind(null,null);function K(){clearTimeout(w),w=setTimeout(function(){x&&($.style.cssText=x,x=""),t.renderer.$isMousePressed=!1,t.renderer.$keepTextAreaAtCursor&&t.renderer.$moveTextAreaToCursor()},0)}n.addListener($,"compositionstart",function(e){if(!C&&t.onCompositionStart&&!t.$readOnly&&(C={},!k)){e.data&&(C.useTextareaForIME=!1),setTimeout(V,0),t._signal("compositionStart"),t.on("mousedown",U);var i=t.getSelectionRange();i.end.row=i.start.row,i.end.column=i.start.column,C.markerRange=i,C.selectionStart=R,t.onCompositionStart(C),C.useTextareaForIME?(L=$.value="",R=0,M=0):($.msGetInputContext&&(C.context=$.msGetInputContext()),$.getInputContext&&(C.context=$.getInputContext()))}},t),n.addListener($,"compositionupdate",V,t),n.addListener($,"keyup",function(e){27==e.keyCode&&$.value.length<$.selectionStart&&(C||(L=$.value),R=M=-1,_()),G()},t),n.addListener($,"keydown",G,t),n.addListener($,"compositionend",z,t),this.getElement=function(){return $},this.setCommandMode=function(e){k=e,$.readOnly=!1},this.setReadOnly=function(e){k||($.readOnly=e)},this.setCopyWithEmptySelection=function(e){},this.onContextMenu=function(e){I=!0,_(),t._emit("nativecontextmenu",{target:t,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,i){x||(x=$.style.cssText),$.style.cssText=(i?"z-index:100000;":"")+(s.isIE?"opacity:0.1;":"")+"text-indent: -"+(R+M)*t.renderer.characterWidth*.5+"px;";var r=t.container.getBoundingClientRect(),a=o.computedStyle(t.container),l=r.top+(parseInt(a.borderTopWidth)||0),h=r.left+(parseInt(r.borderLeftWidth)||0),c=r.bottom-l-$.clientHeight-2,u=function(e){o.translate($,e.clientX-h-2,Math.min(e.clientY-l-2,c))};u(e),"mousedown"==e.type&&(t.renderer.$isMousePressed=!0,clearTimeout(w),s.isWin&&n.capture(t.container,u,K))},this.onContextMenuClose=K;var j=function(e){t.textInput.onContextMenu(e),K()};n.addListener($,"mouseup",j,t),n.addListener($,"mousedown",function(e){e.preventDefault(),K()},t),n.addListener(t.renderer.scroller,"contextmenu",j,t),n.addListener($,"contextmenu",j,t),g&&(i=null,p=!1,$.addEventListener("keydown",function(e){i&&clearTimeout(i),p=!0},!0),$.addEventListener("keyup",function(e){i=setTimeout(function(){p=!1},100)},!0),v=function(e){if(document.activeElement===$&&!p&&!C&&!t.$mouseHandler.isMousePressed&&!b){var i=$.selectionStart,n=$.selectionEnd,s=null,o=0;if(0==i?s=u.up:1==i?s=u.home:n>M&&"\n"==L[n]?s=u.end:iM&&L.slice(0,n).split("\n").length>2?s=u.down:n>M&&" "==L[n-1]?(s=u.right,o=d.option):(n>M||n==M&&M!=R&&i==n)&&(s=u.right),i!==n&&(o|=d.shift),s){if(!t.onCommandKey({},o,s)&&t.commands){s=u.keyCodeToString(s);var r=t.commands.findKeyCommand(o,s);r&&t.execCommand(r)}R=i,M=n,_("")}}},document.addEventListener("selectionchange",v),t.on("destroy",function(){document.removeEventListener("selectionchange",v)})),this.destroy=function(){$.parentElement&&$.parentElement.removeChild($)}},t.$setUserAgentForTests=function(e,t){m=e,g=t}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/useragent");function s(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e)),["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(t){e[t]=this[t]},this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function o(e,t){if(e.start.row==e.end.row)var i=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)var i=2*t.row-e.start.row-e.end.row;else var i=t.column-4;return i<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),i=e.getDocumentPosition();this.mousedownEvent=e;var s=this.editor,o=e.getButton();if(0!==o){(s.getSelectionRange().isEmpty()||1==o)&&s.selection.moveToPosition(i),2!=o||(s.textInput.onContextMenu(e.domEvent),n.isMozilla||e.preventDefault());return}if(this.mousedownEvent.time=Date.now(),t&&!s.isFocused()&&(s.focus(),this.$focusTimeout&&!this.$clickSelection&&!s.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(e);return}return this.captureMouse(e),this.startSelect(i,e.domEvent._clicks>1),e.preventDefault()},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(e):t||i.selection.moveToPosition(e),t||this.select(),i.renderer.scroller.setCapture&&i.renderer.scroller.setCapture(),i.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,i=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var n=this.$clickSelection.comparePoint(i);if(-1==n)e=this.$clickSelection.end;else if(1==n)e=this.$clickSelection.start;else{var s=o(this.$clickSelection,i);i=s.cursor,e=s.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(i),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,i=this.editor,n=i.renderer.screenToTextCoordinates(this.x,this.y),s=i.selection[e](n.row,n.column);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(s.start),a=this.$clickSelection.comparePoint(s.end);if(-1==r&&a<=0)t=this.$clickSelection.end,(s.end.row!=n.row||s.end.column!=n.column)&&(n=s.start);else if(1==a&&r>=0)t=this.$clickSelection.start,(s.start.row!=n.row||s.start.column!=n.column)&&(n=s.end);else if(-1==r&&1==a)n=s.end,t=s.start;else{var l=o(this.$clickSelection,n);n=l.cursor,t=l.anchor}i.selection.setSelectionAnchor(t.row,t.column)}i.selection.selectToPosition(n),i.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,i=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,Math.sqrt(Math.pow(this.x-e,2)+Math.pow(this.y-t,2))),n=Date.now();(i>0||n-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),i=this.editor,n=i.session.getBracketRange(t);n?(n.isEmpty()&&(n.start.column--,n.end.column++),this.setState("select")):(n=i.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=n,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var n=i.getSelectionRange();n.isMultiLine()&&n.contains(t.row,t.column)?(this.$clickSelection=i.selection.getLineRange(n.start.row),this.$clickSelection.end=i.selection.getLineRange(n.end.row).end):this.$clickSelection=i.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var i=this.$lastScroll,n=e.domEvent.timeStamp,s=n-i.t,o=s?e.wheelX/s:i.vx,r=s?e.wheelY/s:i.vy;s<550&&(o=(o+i.vx)/2,r=(r+i.vy)/2);var a=Math.abs(o/r),l=!1;if(a>=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(l=!0),a<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(l=!0),l?i.allowed=n:n-i.allowed<550&&(Math.abs(o)<=1.5*Math.abs(i.vx)&&Math.abs(r)<=1.5*Math.abs(i.vy)?(l=!0,i.allowed=n):i.allowed=0),i.t=n,i.vx=o,i.vy=r,l)return t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()}}}).call(s.prototype),t.DefaultHandlers=s}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t,i){"use strict";e("./lib/oop");var n=e("./lib/dom"),s="ace_tooltip";function o(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}(function(){this.$init=function(){return this.$element=n.createElement("div"),this.$element.className=s,this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){n.addCssClass(this.getElement(),e)},this.show=function(e,t,i){null!=e&&this.setText(e),null!=t&&null!=i&&this.setPosition(t,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.getElement().className=s,this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(o.prototype),t.Tooltip=o}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t,i){"use strict";var n=e("../lib/dom"),s=e("../lib/oop"),o=e("../lib/event"),r=e("../tooltip").Tooltip;function a(e){r.call(this,e)}s.inherits(a,r),(function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,s=this.getWidth(),o=this.getHeight();t+=15,(e+=15)+s>i&&(e-=e+s-i),t+o>n&&(t-=20+o),r.prototype.setPosition.call(this,e,t)}}).call(a.prototype),t.GutterHandler=function(e){var t,i,s,r=e.editor,l=r.renderer.$gutterLayer,h=new a(r.container);function c(){t&&(t=clearTimeout(t)),s&&(h.hide(),s=null,r._signal("hideGutterTooltip",h),r.off("mousewheel",c))}function u(e){h.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",function(t){if(r.isFocused()&&0==t.getButton()&&"foldWidgets"!=l.getRegion(t)){var i=t.getDocumentPosition().row,n=r.session.selection;if(t.getShiftKey())n.selectTo(i,0);else{if(2==t.domEvent.detail)return r.selectAll(),t.preventDefault();e.$clickSelection=r.selection.getLineRange(i)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}),e.editor.setDefaultHandler("guttermousemove",function(o){var a=o.domEvent.target||o.domEvent.srcElement;if(n.hasCssClass(a,"ace_fold-widget"))return c();s&&e.$tooltipFollowsMouse&&u(o),i=o,t||(t=setTimeout(function(){t=null,i&&!e.isMousePressed?function(){var t=i.getDocumentPosition().row,n=l.$annotations[t];if(!n)return c();if(t==r.session.getLength()){var o=r.renderer.pixelToScreenCoordinates(0,i.y).row,a=i.$pos;if(o>r.session.documentToScreenRow(a.row,a.column))return c()}if(s!=n){s=n.text.join("
    "),h.setHtml(s);var d=n.className;if(d&&h.setClassName(d.trim()),h.show(),r._signal("showGutterTooltip",h),r.on("mousewheel",c),e.$tooltipFollowsMouse)u(i);else{var g=i.domEvent.target.getBoundingClientRect(),f=h.getElement().style;f.left=g.right+"px",f.top=g.bottom+"px"}}}():c()},50))}),o.addListener(r.renderer.$gutter,"mouseout",function(e){i=null,s&&!t&&(t=setTimeout(function(){t=null,c()},50))},r),r.on("changeSession",c)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/event"),s=e("../lib/useragent");(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=s.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call((t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1}).prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/dom"),s=e("../lib/event"),o=e("../lib/useragent");function r(e){var t,i,r,l,h,c=e.editor,u=n.createElement("div");u.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",u.textContent="\xa0",["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(t){e[t]=this[t]},this),c.on("mousedown",this.onMouseDown.bind(e));var d,g,f,m,p,v,w=c.container,$=0;function b(){var e,t,i,n,s,o,u,d,m,p,w,$,b,y,C,S,x=v;e=v=c.renderer.screenToTextCoordinates(g,f),t=Date.now(),i=!x||e.row!=x.row,n=!x||e.column!=x.column,!l||i||n?(c.moveCursorToPosition(e),l=t,h={x:g,y:f}):a(h.x,h.y,g,f)>5?l=null:t-l>=200&&(c.renderer.scrollCursorIntoView(),l=null),s=v,o=Date.now(),u=c.renderer.layerConfig.lineHeight,d=c.renderer.layerConfig.characterWidth,w=Math.min((p={x:{left:g-(m=c.renderer.scroller.getBoundingClientRect()).left,right:m.right-g},y:{top:f-m.top,bottom:m.bottom-f}}).x.left,p.x.right),$=Math.min(p.y.top,p.y.bottom),b={row:s.row,column:s.column},w/d<=2&&(b.column+=p.x.left=200&&c.renderer.scrollCursorIntoView(b):r=o:r=null}function y(){p=c.selection.toOrientedRange(),d=c.session.addMarker(p,"ace_selection",c.getSelectionStyle()),c.clearSelection(),c.isFocused()&&c.renderer.$cursorLayer.setBlinking(!1),clearInterval(m),b(),m=setInterval(b,20),$=0,s.addListener(document,"mousemove",x)}function C(){clearInterval(m),c.session.removeMarker(d),d=null,c.selection.fromOrientedRange(p),c.isFocused()&&!i&&c.$resetCursorStyle(),p=null,v=null,$=0,r=null,l=null,s.removeListener(document,"mousemove",x)}this.onDragStart=function(e){if(this.cancelDrag||!w.draggable){var t=this;return setTimeout(function(){t.startSelect(),t.captureMouse(e)},0),e.preventDefault()}p=c.getSelectionRange();var n=e.dataTransfer;n.effectAllowed=c.getReadOnly()?"copy":"copyMove",c.container.appendChild(u),n.setDragImage&&n.setDragImage(u,0,0),setTimeout(function(){c.container.removeChild(u)}),n.clearData(),n.setData("Text",c.session.getTextRange()),i=!0,this.setState("drag")},this.onDragEnd=function(e){if(w.draggable=!1,i=!1,this.setState(null),!c.getReadOnly()){var n=e.dataTransfer.dropEffect;t||"move"!=n||c.session.remove(c.getSelectionRange()),c.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!c.getReadOnly()&&k(e.dataTransfer))return g=e.clientX,f=e.clientY,d||y(),$++,e.dataTransfer.dropEffect=t=A(e),s.preventDefault(e)},this.onDragOver=function(e){if(!c.getReadOnly()&&k(e.dataTransfer))return g=e.clientX,f=e.clientY,!d&&(y(),$++),null!==S&&(S=null),e.dataTransfer.dropEffect=t=A(e),s.preventDefault(e)},this.onDragLeave=function(e){if(--$<=0&&d)return C(),t=null,s.preventDefault(e)},this.onDrop=function(e){if(v){var n=e.dataTransfer;if(i)switch(t){case"move":p=p.contains(v.row,v.column)?{start:v,end:v}:c.moveText(p,v);break;case"copy":p=c.moveText(p,v,!0)}else{var o=n.getData("Text");p={start:v,end:c.session.insert(v,o)},c.focus(),t=null}return C(),s.preventDefault(e)}},s.addListener(w,"dragstart",this.onDragStart.bind(e),c),s.addListener(w,"dragend",this.onDragEnd.bind(e),c),s.addListener(w,"dragenter",this.onDragEnter.bind(e),c),s.addListener(w,"dragover",this.onDragOver.bind(e),c),s.addListener(w,"dragleave",this.onDragLeave.bind(e),c),s.addListener(w,"drop",this.onDrop.bind(e),c);var S=null;function x(){null==S&&(S=setTimeout(function(){null!=S&&d&&C()},20))}function k(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function A(e){var t=["copy","copymove","all","uninitialized"],i=o.isMac?e.altKey:e.ctrlKey,n="uninitialized";try{n=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var s="none";return i&&t.indexOf(n)>=0?s="copy":["move","copymove","linkmove","all","uninitialized"].indexOf(n)>=0?s="move":t.indexOf(n)>=0&&(s="copy"),s}}function a(e,t,i,n){return Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))}(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=o.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(o.isIE&&"dragReady"==this.state){var i=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);i>3&&t.dragDrop()}if("dragWait"===this.state){var i=a(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);i>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,i=e.inSelection(),n=e.getButton();if(1===(e.domEvent.detail||1)&&0===n&&i){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var s=e.domEvent.target||e.domEvent.srcElement;"unselectable"in s&&(s.unselectable="on"),t.getDragDelay()?(o.isWebKit&&(this.cancelDrag=!0,t.container.draggable=!0),this.setState("dragWait")):this.startDrag(),this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(r.prototype),t.DragdropHandler=r}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,t,i){"use strict";var n=e("./mouse_event").MouseEvent,s=e("../lib/event"),o=e("../lib/dom");t.addTouchListeners=function(e,t){var i,r,a,l,h,c,u,d,g,f="scroll",m=0,p=0,v=0,w=0;function $(){if(!g){var e,i,n,s;e=window.navigator&&window.navigator.clipboard,i=!1,n=function(){var n=t.getCopyText(),s=t.session.getUndoManager().hasUndo();g.replaceChild(o.buildDom(i?["span",!n&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],n&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],n&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],s&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Palette"]]:["span"]),g.firstChild)},s=function(s){var o=s.target.getAttribute("action");if("more"==o||!i)return i=!i,n();"paste"==o?e.readText().then(function(e){t.execCommand(o,e)}):o&&(("cut"==o||"copy"==o)&&(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(o)),g.firstChild.style.display="none",i=!1,"openCommandPallete"!=o&&t.focus()},g=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){f="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),s(e)},onclick:s},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}var r=t.selection.cursor,a=t.renderer.textToScreenCoordinates(r.row,r.column),l=t.renderer.textToScreenCoordinates(0,0).pageX,h=t.renderer.scrollLeft,c=t.container.getBoundingClientRect();g.style.top=a.pageY-c.top-3+"px",a.pageX-c.left1){clearTimeout(h),h=null,a=-1,f="zoom";return}d=t.$mouseHandler.isMousePressed=!0;var c=t.renderer.layerConfig.lineHeight,g=t.renderer.layerConfig.lineHeight,$=e.timeStamp;l=$;var b=o[0],C=b.clientX,S=b.clientY;if(Math.abs(i-C)+Math.abs(r-S)>c&&(a=-1),i=e.clientX=C,r=e.clientY=S,v=w=0,u=new n(e,t).getDocumentPosition(),$-a<500&&1==o.length&&!m)p++,e.preventDefault(),e.button=0,clearTimeout(h=null),t.selection.moveToPosition(u),(s=p>=2?t.selection.getLineRange(u.row):t.session.getBracketRange(u))&&!s.isEmpty()?t.selection.setRange(s):t.selection.selectWord(),f="wait";else{p=0;var x=t.selection.cursor,k=t.selection.isEmpty()?x:t.selection.anchor,A=t.renderer.$cursorLayer.getPixelPosition(x,!0),L=t.renderer.$cursorLayer.getPixelPosition(k,!0),R=t.renderer.scroller.getBoundingClientRect(),M=t.renderer.layerConfig.offset,E=t.renderer.scrollLeft,T=function(e,t){return(e/=g)*e+(t=t/c-.75)*t};if(e.clientXF?"cursor":"anchor"),f=F<3.5?"anchor":_<3.5?"cursor":"scroll",h=setTimeout(y,450)}a=$},t),s.addListener(e,"touchend",function(e){d=t.$mouseHandler.isMousePressed=!1,c&&clearInterval(c),"zoom"==f?(f="",m=0):h?(t.selection.moveToPosition(u),m=0,$()):"scroll"==f?(m+=60,c=setInterval(function(){m--<=0&&(clearInterval(c),c=null),.01>Math.abs(v)&&(v=0),.01>Math.abs(w)&&(w=0),m<20&&(v*=.9),m<20&&(w*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*v,10*w),e==t.session.getScrollTop()&&(m=0)},10),b()):$(),clearTimeout(h),h=null},t),s.addListener(e,"touchmove",function(e){h&&(clearTimeout(h),h=null);var s=e.touches;if(!(s.length>1)&&"zoom"!=f){var o=s[0],a=i-o.clientX,c=r-o.clientY;if("wait"==f){if(!(a*a+c*c>4))return e.preventDefault();f="cursor"}i=o.clientX,r=o.clientY,e.clientX=o.clientX,e.clientY=o.clientY;var u=e.timeStamp,d=u-l;if(l=u,"scroll"==f){var g=new n(e,t);g.speed=1,g.wheelX=a,g.wheelY=c,10*Math.abs(a)=e){for(o=u+1;o=e;)o++;for(a=u,l=o-1;a>8;if(0==i)return t>191?0:c[t];if(5==i)return/[\u0591-\u05f4]/.test(e)?1:0;if(6==i)return/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?12:/[\u0660-\u0669\u066b-\u066c]/.test(e)?3:1642==t?11:/[\u06f0-\u06f9]/.test(e)?2:7;return 32==i&&t<=8287?u[255&t]:254==i?t>=65136?7:4:4}t.L=0,t.R=1,t.EN=2,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="\xb7",t.doBidiReorder=function(e,i,c){if(e.length<2)return{};var u=e.split(""),f=Array(u.length),m=Array(u.length),p=[];n=c?1:0,function(e,t,i,c){var u=n?h:l,d=null,f=null,m=null,p=0,v=null,w=-1,$=null,b=null,y=[];if(!c)for($=0,c=[];$=t.length||2!=(l=i[s-1])&&3!=l||2!=(h=t[s+1])&&3!=h)return 4;return o&&(h=3),h==l?h:4;case 10:if(2==(l=s>0?i[s-1]:5)&&s+10&&2==i[s-1])return 2;if(o)return 4;for(u=s+1,c=t.length;u=1425&&g<=2303||64286==g)&&(1==l||7==l))return 1}if(s<1||5==(l=t[s-1]))return 4;return i[s-1];case 5:return o=!1,r=!0,n;case 6:return a=!0,4;case 13:case 14:case 16:case 17:case 15:o=!1;case 18:return 4}}(e,c,y,b),v=240&(p=u[d][f]),p&=15,t[b]=m=u[p][5],v>0){if(16==v){for($=w;$-1){for($=w;$=0;C--)if(8==c[C])t[C]=n;else break}}}(u,p,u.length,i);for(var v=0;v7&&i[v]<13||4===i[v]||18===i[v])?p[v]=t.ON_R:v>0&&"ل"===u[v-1]&&/\u0622|\u0623|\u0625|\u0627/.test(u[v])&&(p[v-1]=p[v]=t.R_H,v++);u[u.length-1]===t.DOT&&(p[u.length-1]=t.B),"‫"===u[0]&&(p[0]=t.RLE);for(var v=0;v=0&&(e=this.session.$docRowCache[i])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length)for(var i,n=this.session.$getRowCacheIndex(t,this.currentRow);this.currentRow-e>0&&(i=this.session.$getRowCacheIndex(t,this.currentRow-e-1))===n;)n=i,e++;else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var i=e===this.session.getLength()-1?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var o=this.session.$wrapData[e];o&&(void 0===t&&(t=this.getSplitIndex()),t>0&&o.length?(this.wrapIndent=o.indent,this.wrapOffset=this.wrapIndent*this.charWidths[n.L],this.line=tt?this.session.getOverwrite()?e:e-1:t,s=n.getVisualFromLogicalIdx(i,this.bidiMap),o=this.bidiMap.bidiLevels,r=0;!this.session.getOverwrite()&&e<=t&&o[s]%2!=0&&s++;for(var a=0;at&&o[s]%2==0&&(r+=this.charWidths[o[s]]),this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(r+=this.rtlLineOffset),r},this.getSelections=function(e,t){var i,n=this.bidiMap,s=n.bidiLevels,o=[],r=0,a=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,h=!1,c=!1,u=0;this.wrapIndent&&(r+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var d,g=0;g=a&&di+o/2;){if(i+=o,n===s.length-1){o=0;break}o=this.charWidths[s[++n]]}return n>0&&s[n-1]%2!=0&&s[n]%2==0?(e0&&s[n-1]%2==0&&s[n]%2!=0?t=1+(e>i?this.bidiMap.logicalFromVisual[n]:this.bidiMap.logicalFromVisual[n-1]):this.isRtlDir&&n===s.length-1&&0===o&&s[n-1]%2==0||!this.isRtlDir&&0===n&&s[n]%2!=0?t=1+this.bidiMap.logicalFromVisual[n]:(n>0&&s[n-1]%2!=0&&0!==o&&n--,t=this.bidiMap.logicalFromVisual[n]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(r.prototype),t.BidiHandler=r}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,r=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")})};(function(){n.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?r.fromPoints(t,t):this.isBackwards()?r.fromPoints(t,e):r.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var i=t?e.end:e.start,n=t?e.start:e.end;this.$setSelection(i.row,i.column,n.row,n.column)},this.$setSelection=function(e,t,i,n){if(!this.$silent){var s=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,n),this.$isEmpty=!r.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||s!=this.$isEmpty||o)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var i=e||this.lead;e=i.row,t=i.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var i,n="number"==typeof e?e:this.lead.row,s=this.session.getFoldLine(n);return(s?(n=s.start.row,i=s.end.row):i=n,!0===t)?new r(n,0,i,this.session.getLine(i).length):new r(n,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var n=e.column,s=e.column+t;return i<0&&(n=e.column-t,s=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(n,s).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var i=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,i,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=n)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var s=this.session.getFoldAt(e,t,1);if(s){this.moveCursorTo(s.end.row,s.end.column);return}if(this.session.nonTokenRe.exec(n)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=i.substring(t)),t>=i.length){this.moveCursorTo(e,i.length),this.moveCursorRight(),e0&&this.moveCursorWordLeft();return}this.session.tokenRe.exec(o)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,i)},this.$shortWordEndIndex=function(e){var t,i=0,n=/\s/,s=this.session.tokenRe;if(s.lastIndex=0,this.session.tokenRe.exec(e))i=this.session.tokenRe.lastIndex;else{for(;(t=e[i])&&n.test(t);)i++;if(i<1){for(s.lastIndex=0;(t=e[i])&&!s.test(t);)if(s.lastIndex=0,i++,n.test(t)){if(i>2){i--;break}for(;(t=e[i])&&n.test(t);)i++;if(i>2)break}}}return s.lastIndex=0,i},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t),s=this.session.getFoldAt(e,t,1);if(s)return this.moveCursorTo(s.end.row,s.end.column);if(t==i.length){var o=this.doc.getLength();do e++,n=this.doc.getLine(e);while(e0&&/^\s*$/.test(n));i=n.length,/\s+$/.test(n)||(n="")}var o=s.stringReverse(n),r=this.$shortWordEndIndex(o);return this.moveCursorTo(t,i-r)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var i,n=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(n.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(n.column),n.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=n.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?n.column=this.$desiredColumn:this.$desiredColumn=n.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var s=this.session.lineWidgets[this.lead.row];e<0?e-=s.rowsAbove||0:e>0&&(e+=s.rowCount-(s.rowsAbove||0))}var o=this.session.screenToDocumentPosition(n.row+e,n.column,i);0!==e&&0===t&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,i){var n=this.session.getFoldAt(e,t,1);n&&(e=n.start.row,t=n.start.column),this.$keepDesiredColumnOnChange=!0;var s=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(s.charAt(t))&&s.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,i){var n=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(n.row,n.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var i=this.getCursor();return r.fromPoints(t,i)}catch(e){return r.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else{var e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var i=r.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t,i){"use strict";var n=e("./config"),s=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var i=this.states[t],n=[],s=0,o=this.matchMappings[t]={defaultToken:"text"},r="g",a=[],l=0;l1?h.onMatch=this.$applyToken:h.onMatch=h.token),u>1&&(/\\\d/.test(h.regex)?c=h.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+s+1)}):(u=1,c=this.removeCapturingGroups(h.regex)),h.splitRegex||"string"==typeof h.token||a.push(h)),o[s]=l,s+=u,n.push(c),h.onMatch||(h.onMatch=null)}}n.length||(o[0]=0,n.push("$")),a.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,r)},this),this.regExps[t]=RegExp("("+n.join(")|(")+")|($)",r)}};(function(){this.$setMaxTokenCount=function(e){s=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),i=this.token.apply(this,t);if("string"==typeof i)return[{type:i,value:e}];for(var n=[],s=0,o=i.length;sc){var v=e.substring(c,p-m.length);d.type==g?d.value+=v:(d.type&&h.push(d),d={type:g,value:v})}for(var w=0;ws){for(u>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c1&&i[0]!==n&&i.unshift("#tmp",n),{tokens:h,state:i.length?i:n}},this.reportError=n.reportError}).call(o.prototype),t.Tokenizer=o}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,i){"use strict";var n=e("../lib/lang"),s=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(!t){for(var i in e)this.$rules[i]=e[i];return}for(var i in e){for(var n=e[i],s=0;s=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,i=e[t].start;if(void 0!==i)return i;for(i=0;t>0;)t-=1,i+=e[t].value.length;return i},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new n(this.$row,t,this.$row,t+e.value.length)}}).call(s.prototype),t.TokenIterator=s}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,i){"use strict";var n,s=e("../../lib/oop"),o=e("../behaviour").Behaviour,r=e("../../token_iterator").TokenIterator,a=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],h=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],c={},u={'"':'"',"'":"'"},d=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,c.rangeCount!=e.multiSelect.rangeCount&&(c={rangeCount:e.multiSelect.rangeCount})),c[t])return n=c[t];n=c[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},g=function(e,t,i,n){var s=e.end.row-e.start.row;return{text:i+t+n,selection:[0,e.start.column+1,s,e.end.column+(s?0:1)]}},f=function(e){this.add("braces","insertion",function(t,i,s,o,r){var l=s.getCursorPosition(),h=o.doc.getLine(l.row);if("{"==r){d(s);var c=s.getSelectionRange(),u=o.doc.getTextRange(c);if(""!==u&&"{"!==u&&s.getWrapBehavioursEnabled())return g(c,u,"{","}");if(f.isSaneInsertion(s,o))return/[\]\}\)]/.test(h[l.column])||s.inMultiSelectMode||e&&e.braces?(f.recordAutoInsert(s,o,"}"),{text:"{}",selection:[1,1]}):(f.recordMaybeInsert(s,o,"{"),{text:"{",selection:[1,1]})}else if("}"==r){d(s);var m=h.substring(l.column,l.column+1);if("}"==m&&null!==o.$findOpeningBracket("}",{column:l.column+1,row:l.row})&&f.isAutoInsertedClosing(l,h,r))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}else if("\n"==r||"\r\n"==r){d(s);var p="";f.isMaybeInsertedClosing(l,h)&&(p=a.stringRepeat("}",n.maybeInsertedBrackets),f.clearMaybeInsertedClosing());var m=h.substring(l.column,l.column+1);if("}"===m){var v=o.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!v)return null;var w=this.$getIndent(o.getLine(v.row))}else if(p)var w=this.$getIndent(h);else{f.clearMaybeInsertedClosing();return}var $=w+o.getTabString();return{text:"\n"+$+"\n"+w+p,selection:[1,$.length,1,$.length]}}else f.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(e,t,i,s,o){var r=s.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==r){if(d(i),"}"==s.doc.getLine(o.start.row).substring(o.end.column,o.end.column+1))return o.end.column++,o;n.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,i,n,s){if("("==s){d(i);var o=i.getSelectionRange(),r=n.doc.getTextRange(o);if(""!==r&&i.getWrapBehavioursEnabled())return g(o,r,"(",")");if(f.isSaneInsertion(i,n))return f.recordAutoInsert(i,n,")"),{text:"()",selection:[1,1]}}else if(")"==s){d(i);var a=i.getCursorPosition(),l=n.doc.getLine(a.row);if(")"==l.substring(a.column,a.column+1)&&null!==n.$findOpeningBracket(")",{column:a.column+1,row:a.row})&&f.isAutoInsertedClosing(a,l,s))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("parens","deletion",function(e,t,i,n,s){var o=n.doc.getTextRange(s);if(!s.isMultiLine()&&"("==o&&(d(i),")"==n.doc.getLine(s.start.row).substring(s.start.column+1,s.start.column+2)))return s.end.column++,s}),this.add("brackets","insertion",function(e,t,i,n,s){if("["==s){d(i);var o=i.getSelectionRange(),r=n.doc.getTextRange(o);if(""!==r&&i.getWrapBehavioursEnabled())return g(o,r,"[","]");if(f.isSaneInsertion(i,n))return f.recordAutoInsert(i,n,"]"),{text:"[]",selection:[1,1]}}else if("]"==s){d(i);var a=i.getCursorPosition(),l=n.doc.getLine(a.row);if("]"==l.substring(a.column,a.column+1)&&null!==n.$findOpeningBracket("]",{column:a.column+1,row:a.row})&&f.isAutoInsertedClosing(a,l,s))return f.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}),this.add("brackets","deletion",function(e,t,i,n,s){var o=n.doc.getTextRange(s);if(!s.isMultiLine()&&"["==o&&(d(i),"]"==n.doc.getLine(s.start.row).substring(s.start.column+1,s.start.column+2)))return s.end.column++,s}),this.add("string_dquotes","insertion",function(e,t,i,n,s){var o=n.$mode.$quotes||u;if(1==s.length&&o[s]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(s))return;d(i);var r=i.getSelectionRange(),a=n.doc.getTextRange(r);if(""!==a&&(1!=a.length||!o[a])&&i.getWrapBehavioursEnabled())return g(r,a,s,s);if(!a){var l,h=i.getCursorPosition(),c=n.doc.getLine(h.row),f=c.substring(h.column-1,h.column),m=c.substring(h.column,h.column+1),p=n.getTokenAt(h.row,h.column),v=n.getTokenAt(h.row,h.column+1);if("\\"==f&&p&&/escape/.test(p.type))return null;var w=p&&/string|escape/.test(p.type),$=!v||/string|escape/.test(v.type);if(m==s)(l=w!==$)&&/string\.end/.test(v.type)&&(l=!1);else{if(w&&!$||w&&$)return null;var b=n.$mode.tokenRe;b.lastIndex=0;var y=b.test(f);b.lastIndex=0;var C=b.test(f);if(y||C||m&&!/[\s;,.})\]\\]/.test(m))return null;var S=c[h.column-2];if(f==s&&(S==s||b.test(S)))return null;l=!0}return{text:l?s+s:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,i,n,s){var o=n.$mode.$quotes||u,r=n.doc.getTextRange(s);if(!s.isMultiLine()&&o.hasOwnProperty(r)&&(d(i),n.doc.getLine(s.start.row).substring(s.start.column+1,s.start.column+2)==r))return s.end.column++,s})};f.isSaneInsertion=function(e,t){var i=e.getCursorPosition(),n=new r(t,i.row,i.column);if(!this.$matchTokenType(n.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(i.row)[i.column]))return!0;var s=new r(t,i.row,i.column+1);if(!this.$matchTokenType(s.getCurrentToken()||"text",l))return!1}return n.stepForward(),n.getCurrentTokenRow()!==i.row||this.$matchTokenType(n.getCurrentToken()||"text",h)},f.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},f.recordAutoInsert=function(e,t,i){var s=e.getCursorPosition(),o=t.doc.getLine(s.row);this.isAutoInsertedClosing(s,o,n.autoInsertedLineEnd[0])||(n.autoInsertedBrackets=0),n.autoInsertedRow=s.row,n.autoInsertedLineEnd=i+o.substr(s.column),n.autoInsertedBrackets++},f.recordMaybeInsert=function(e,t,i){var s=e.getCursorPosition(),o=t.doc.getLine(s.row);this.isMaybeInsertedClosing(s,o)||(n.maybeInsertedBrackets=0),n.maybeInsertedRow=s.row,n.maybeInsertedLineStart=o.substr(0,s.column)+i,n.maybeInsertedLineEnd=o.substr(s.column),n.maybeInsertedBrackets++},f.isAutoInsertedClosing=function(e,t,i){return n.autoInsertedBrackets>0&&e.row===n.autoInsertedRow&&i===n.autoInsertedLineEnd[0]&&t.substr(e.column)===n.autoInsertedLineEnd},f.isMaybeInsertedClosing=function(e,t){return n.maybeInsertedBrackets>0&&e.row===n.maybeInsertedRow&&t.substr(e.column)===n.maybeInsertedLineEnd&&t.substr(0,e.column)==n.maybeInsertedLineStart},f.popAutoInsertedClosing=function(){n.autoInsertedLineEnd=n.autoInsertedLineEnd.substr(1),n.autoInsertedBrackets--},f.clearMaybeInsertedClosing=function(){n&&(n.maybeInsertedBrackets=0,n.maybeInsertedRow=-1)},s.inherits(f,o),t.CstyleBehaviour=f}),ace.define("ace/unicode",["require","exports","module"],function(e,t,i){"use strict";for(var n=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],s=0,o=[],r=0;r2?n%h!=h-1:n%h==0}}else{if(!this.blockComment)return!1;var d=this.blockComment.start,w=this.blockComment.end,u=RegExp("^(\\s*)(?:"+l.escapeRegExp(d)+")"),$=RegExp("(?:"+l.escapeRegExp(w)+")\\s*$"),m=function(e,t){!p(e,t)&&(!o||/\S/.test(e))&&(s.insertInLine({row:t,column:e.length},w),s.insertInLine({row:t,column:a},d))},g=function(e,t){var i;(i=e.match($))&&s.removeInLine(t,e.length-i[0].length,e.length),(i=e.match(u))&&s.removeInLine(t,i[1].length,i[0].length)},p=function(e,i){if(u.test(e))return!0;for(var n=t.getTokens(i),s=0;se.length&&(y=e.length)}),a==1/0&&(a=y,o=!1,r=!1),c&&a%h!=0&&(a=Math.floor(a/h)*h),b(r?g:m)},this.toggleBlockComment=function(e,t,i,n){var s=this.blockComment;if(s){!s.start&&s[0]&&(s=s[0]);var o=new h(t,n.row,n.column),r=o.getCurrentToken();t.selection;var a=t.selection.toOrientedRange();if(r&&/comment/.test(r.type)){for(;r&&/comment/.test(r.type);){var l,u,d,g,f=r.value.indexOf(s.start);if(-1!=f){var m=o.getCurrentTokenRow(),p=o.getCurrentTokenColumn()+f;d=new c(m,p,m,p+s.start.length);break}r=o.stepBackward()}for(var o=new h(t,n.row,n.column),r=o.getCurrentToken();r&&/comment/.test(r.type);){var f=r.value.indexOf(s.end);if(-1!=f){var m=o.getCurrentTokenRow(),p=o.getCurrentTokenColumn()+f;g=new c(m,p,m,p+s.end.length);break}r=o.stepForward()}g&&t.remove(g),d&&(t.remove(d),l=d.start.row,u=-s.start.length)}else u=s.start.length,l=i.start.row,t.insert(i.end,s.end),t.insert(i.start,s.start);a.start.row==l&&(a.start.column+=u),a.end.row==l&&(a.end.column+=u),t.selection.fromOrientedRange(a)}},this.getNextLineIndent=function(e,t,i){return this.$getIndent(t)},this.checkOutdent=function(e,t,i){return!1},this.autoOutdent=function(e,t,i){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var i=e[t],s=i.prototype.$id,o=n.$modes[s];o||(n.$modes[s]=o=new i),n.$modes[t]||(n.$modes[t]=o),this.$embeds.push(t),this.$modes[t]=o}for(var r=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],t=0;tthis.row)){var i,n,s,o,r,a,l,h=(i={row:this.row,column:this.column},n=this.$insertRight,o=((s="insert"==t.action)?1:-1)*(t.end.row-t.start.row),r=(s?1:-1)*(t.end.column-t.start.column),a=t.start,l=s?a:t.end,e(i,a,n)?{row:i.row,column:i.column}:e(l,i,!n)?{row:i.row+o,column:i.column+(i.row==l.row?r:0)}:{row:a.row,column:a.column});this.setPosition(h.row,h.column,!0)}},this.setPosition=function(e,t,i){if(n=i?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=n.row||this.column!=n.column){var n,s={row:this.row,column:this.column};this.row=n.row,this.column=n.column,this._signal("change",{old:s,value:n})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var i={};return e>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):e<0?(i.row=0,i.column=0):(i.row=e,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,t))),t<0&&(i.column=0),i}}).call((t.Anchor=function(e,t,i){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===i?this.setPosition(t.row,t.column):this.setPosition(t,i)}).prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,r=e("./range").Range,a=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){n.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new r(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e||"")},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new a(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var i=t.length-1;e.end.row-e.start.row==i&&(t[i]=t[i].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return 1>=this.getLength()&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var i=this.clippedPos(e.row,e.column),n=this.pos(e.row,e.column+t.length);return this.applyDelta({start:i,end:n,action:"insert",lines:[t]},!0),this.clonePos(n)},this.clippedPos=function(e,t){var i=this.getLength();void 0===e?e=i:e<0?e=0:e>=i&&(e=i-1,t=void 0);var n=this.getLine(e);return void 0==t&&(t=n.length),t=Math.min(Math.max(t,0),n.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var i=0;e0,n=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return(e instanceof r||(e=r.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty())?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var i="insert"==e.action;(i?e.lines.length<=1&&!e.lines[0]:!r.comparePoints(e.start,e.end))||(i&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(s(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row20){i.running=setTimeout(i.$worker,20);break}}i.currentLine=t,-1==n&&(n=t),o<=n&&i.fireUpdateEvent(o,n)}}};(function(){n.implement(this,s),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){this._signal("update",{data:{first:e,last:t}})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,i=e.end.row-t;if(0===i)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,i+1,null),this.states.splice(t,i+1,null);else{var n=Array(i+1);n.unshift(t,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),i=this.states[e-1],n=this.tokenizer.getLineTokens(t,i,e);return this.states[e]+""!=n.state+""?(this.states[e]=n.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=n.tokens},this.cleanup=function(){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.removeAllListeners()}}).call(o.prototype),t.BackgroundTokenizer=o}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";var n=e("./lib/lang");e("./lib/oop");var s=e("./range").Range,o=function(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,o){if(this.regExp)for(var r=o.firstRow,a=o.lastRow,l={},h=r;h<=a;h++){var c=this.cache[h];null==c&&((c=n.getMatchOffsets(i.getLine(h),this.regExp)).length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map(function(e){return new s(h,e.offset,h,e.offset+e.length)}),this.cache[h]=c.length?c:"");for(var u=c.length;u--;){var d=c[u].toScreenRange(i),g=d.toString();l[g]||(l[g]=!0,t.drawSingleLineMarker(e,d,this.clazz,o))}}}}).call(o.prototype),t.SearchHighlight=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,i){"use strict";var n=e("../range").Range;function s(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var i=t[t.length-1];this.range=new n(t[0].start.row,t[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):0>this.range.compareStart(e.end.row,e.end.column)&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else if(e.end.row==this.start.row)this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column;else throw Error("Trying to add fold to FoldRow that doesn't have a matching row");e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){var n,s,o=0,r=this.folds,a=!0;null==t&&(t=this.end.row,i=this.end.column);for(var l=0;l0)){var l=n(e,r.start);if(0===a)return t&&0!==l?-o-2:o;if(l>0||0===l&&!t)return o;break}}return-o-1},this.add=function(e){var t=!e.isEmpty(),i=this.pointIndex(e.start,t);i<0&&(i=-i-1);var n=this.pointIndex(e.end,t,i);return n<0?n=-n-1:n++,this.ranges.splice(i,n-i,e)},this.addList=function(e){for(var t=[],i=e.length;i--;)t.push.apply(t,this.add(e[i]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],i=this.ranges,s=(i=i.sort(function(e,t){return n(e.start,t.start)}))[0],o=1;on(e.end,s.end)&&(e.end.row=s.end.row,e.end.column=s.end.column),i.splice(o,1),t.push(s),s=e,o--)}return this.ranges=i,t},this.contains=function(e,t){return this.pointIndex({row:e,column:t})>=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var i=this.ranges;if(i[0].start.row>t||i[i.length-1].start.row=n)break}if("insert"==e.action)for(var h=s-n,c=-t.column+i.column;rn)break;if(l.start.row==n&&l.start.column>=t.column&&(l.start.column==t.column&&this.$bias<=0||(l.start.column+=c,l.start.row+=h)),l.end.row==n&&l.end.column>=t.column){if(l.end.column==t.column&&this.$bias<0)continue;l.end.column==t.column&&c>0&&rl.start.column&&l.end.column==o[r+1].start.column&&(l.end.column-=c),l.end.column+=c,l.end.row+=h}}else for(var h=n-s,c=t.column-i.column;rs)break;l.end.rowt.column)&&(l.end.column=t.column,l.end.row=t.row):(l.end.column+=c,l.end.row+=h):l.end.row>s&&(l.end.row+=h),l.start.rowt.column)&&(l.start.column=t.column,l.start.row=t.row):(l.start.column+=c,l.start.row+=h):l.start.row>s&&(l.start.row+=h)}if(0!=h&&r=e)return s;if(s.end.row>e)break}return null},this.getNextFoldLine=function(e,t){var i=this.$foldData,n=0;for(t&&(n=i.indexOf(t)),-1==n&&(n=0);n=e)return s}return null},this.getFoldedRowCount=function(e,t){for(var i=this.$foldData,n=t-e+1,s=0;s=t){a=e?n-=t-a:n=0);break}r>=e&&(a>=e?n-=r-a:n-=r-e+1)}return n},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var i,n=this.$foldData,r=!1;e instanceof o?i=e:(i=new o(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(i.range);var a=i.start.row,l=i.start.column,h=i.end.row,c=i.end.column,u=this.getFoldAt(a,l,1),d=this.getFoldAt(h,c,-1);if(u&&d==u)return u.addSubFold(i);u&&!u.range.isStart(a,l)&&this.removeFold(u),d&&!d.range.isEnd(h,c)&&this.removeFold(d);var g=this.getFoldsInRange(i.range);g.length>0&&(this.removeFolds(g),i.collapseChildren||g.forEach(function(e){i.addSubFold(e)}));for(var f=0;f0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){if(null==e)i=new n(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)i=new n(e,0,e,this.getLine(e).length);else if("row"in e)i=n.fromPoints(e,e);else{if(Array.isArray(e))return s=[],e.forEach(function(e){s=s.concat(this.unfold(e))},this),s;i=e}for(var i,s,o=s=this.getFoldsInRangeList(i);1==s.length&&0>n.comparePoints(s[0].start,i.start)&&n.comparePoints(s[0].end,i.end)>0;)this.expandFolds(s),s=this.getFoldsInRangeList(i);if(!1!=t?this.removeFolds(s):this.expandFolds(s),o.length)return o},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var i=this.getFoldLine(e,t);return i?i.end.row:e},this.getRowFoldStart=function(e,t){var i=this.getFoldLine(e,t);return i?i.start.row:e},this.getFoldDisplayLine=function(e,t,i,n,s){null==n&&(n=e.start.row),null==s&&(s=0),null==t&&(t=e.end.row),null==i&&(i=this.getLine(t).length);var o=this.doc,r="";return e.walk(function(e,t,i,a){if(!(tc)break;while(o&&l.test(o.type)&&!/^comment.start/.test(o.type));o=s.stepBackward()}else o=s.getCurrentToken();return h.end.row=s.getCurrentTokenRow(),h.end.column=s.getCurrentTokenColumn(),/^comment.end/.test(o.type)||(h.end.column+=o.value.length-2),h}},this.foldAll=function(e,t,i,n){void 0==i&&(i=1e5);var s=this.foldWidgets;if(s){t=t||this.getLength(),e=e||0;for(var o=e;o=e&&(o=r.end.row,r.collapseChildren=i,this.addFold("...",r))}}},this.foldToLevel=function(e){for(this.foldAll();e-- >0;)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,function(t){for(var i=e.getTokens(t),n=0;n=0;){var o=i[s];if(null==o&&(o=i[s]=this.getFoldWidget(s)),"start"==o){var r=this.getFoldWidgetRange(s);if(n||(n=r),r&&r.end.row>=e)break}s--}return{range:-1!==s&&r,firstRange:n}},this.onFoldWidgetClick=function(e,t){var i={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,i)){var n=t.target||t.srcElement;n&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var i=this.getFoldWidget(e),n=this.getLine(e),s="end"===i?-1:1,o=this.getFoldAt(e,-1===s?0:n.length,s);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var r=this.getFoldWidgetRange(e,!0);if(r&&!r.isMultiLine()&&(o=this.getFoldAt(r.start.row,r.start.column,1))&&r.isEqual(o.range))return this.removeFold(o),o;if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,h=a.range.end.row;this.foldAll(l,h,t.all?1e4:0)}else t.children?(h=r?r.end.row:this.getLength(),this.foldAll(e+1,h,t.all?1e4:0)):r&&(t.all&&(r.collapseChildren=1e4),this.addFold("...",r));return r}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var i=this.$toggleFoldWidget(t,{});if(!i){var n=this.getParentFoldRangeData(t,!0);if(i=n.range||n.firstRange){t=i.start.row;var s=this.getFoldAt(t,this.getLine(t).length,1);s?this.removeFold(s):this.addFold("...",i)}}},this.updateFoldWidgets=function(e){var t=e.start.row,i=e.end.row-t;if(0===i)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,i+1,null);else{var n=Array(i+1);n.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,n)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,i){"use strict";var n=e("../token_iterator").TokenIterator,s=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var i=t||this.getLine(e.row).charAt(e.column-1);if(""==i)return null;var n=i.match(/([\(\[\{])|([\)\]\}])/);return n?n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e):null},this.getBracketRange=function(e){var t,i=this.getLine(e.row),n=!0,o=i.charAt(e.column-1),r=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(r||(o=i.charAt(e.column),e={row:e.row,column:e.column+1},r=o&&o.match(/([\(\[\{])|([\)\]\}])/),n=!1),!r)return null;if(r[1]){var a=this.$findClosingBracket(r[1],e);if(!a)return null;t=s.fromPoints(e,a),!n&&(t.end.column++,t.start.column--),t.cursor=t.end}else{var a=this.$findOpeningBracket(r[2],e);if(!a)return null;t=s.fromPoints(a,e),!n&&(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e,t){var i=this.getLine(e.row),n=/([\(\[\{])|([\)\]\}])/,o=!t&&i.charAt(e.column-1),r=o&&o.match(n);if(r||(o=(void 0===t||t)&&i.charAt(e.column),e={row:e.row,column:e.column+1},r=o&&o.match(n)),!r)return null;var a=new s(e.row,e.column-1,e.row,e.column),l=r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e);return l?[a,new s(l.row,l.column,l.row,l.column+1)]:[a]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,i){var s=this.$brackets[e],o=1,r=new n(this,t.row,t.column),a=r.getCurrentToken();if(a||(a=r.stepForward()),a){i||(i=RegExp("(\\.?"+a.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-r.getCurrentTokenColumn()-2,h=a.value;;){for(;l>=0;){var c=h.charAt(l);if(c==s){if(0==(o-=1))return{row:r.getCurrentTokenRow(),column:l+r.getCurrentTokenColumn()}}else c==e&&(o+=1);l-=1}do a=r.stepBackward();while(a&&!i.test(a.type));if(null==a)break;l=(h=a.value).length-1}return null}},this.$findClosingBracket=function(e,t,i){var s=this.$brackets[e],o=1,r=new n(this,t.row,t.column),a=r.getCurrentToken();if(a||(a=r.stepForward()),a){i||(i=RegExp("(\\.?"+a.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var l=t.column-r.getCurrentTokenColumn();;){for(var h=a.value,c=h.length;l"===t.value?n=!0:-1!==t.type.indexOf("tag-name")&&(i=!0));while(t&&!i);return t},this.$findClosingTag=function(e,t){var i,n=t.value,o=t.value,r=0,a=new s(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);t=e.stepForward();var l=new s(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length),h=!1;do if(i=t,t=e.stepForward()){if(">"===t.value&&!h){var c=new s(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);h=!0}if(-1!==t.type.indexOf("tag-name")){if(o===(n=t.value)){if("<"===i.value)r++;else if(""!==t.value)return;var g=new s(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}}else if(o===n&&"/>"===t.value&&--r<0)var u=new s(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+2),d=u,g=d,c=new s(l.end.row,l.end.column,l.end.row,l.end.column+1)}while(t&&r>=0);if(a&&c&&u&&g&&l&&d)return{openTag:new s(a.start.row,a.start.column,c.end.row,c.end.column),closeTag:new s(u.start.row,u.start.column,g.end.row,g.end.column),openTagName:l,closeTagName:d}},this.$findOpeningTag=function(e,t){var i=e.getCurrentToken(),n=t.value,o=0,r=e.getCurrentTokenRow(),a=e.getCurrentTokenColumn(),l=a+2,h=new s(r,a,r,l);e.stepForward();var c=new s(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+t.value.length);if((t=e.stepForward())&&">"===t.value){var u=new s(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);e.stepBackward(),e.stepBackward();do if(t=i,r=e.getCurrentTokenRow(),l=(a=e.getCurrentTokenColumn())+t.value.length,i=e.stepBackward(),t){if(-1!==t.type.indexOf("tag-name")){if(n===t.value){if("<"===i.value){if(++o>0){var d=new s(r,a,r,l),g=new s(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1);do t=e.stepForward();while(t&&">"!==t.value);var f=new s(e.getCurrentTokenRow(),e.getCurrentTokenColumn(),e.getCurrentTokenRow(),e.getCurrentTokenColumn()+1)}}else""===t.value){for(var m=0,p=i;p;){if(-1!==p.type.indexOf("tag-name")&&p.value===n){o--;break}if("<"===p.value)break;p=e.stepBackward(),m++}for(var v=0;vi&&(this.$docRowCache.splice(i,t),this.$screenRowCache.splice(i,t))},this.$getRowCacheIndex=function(e,t){for(var i=0,n=e.length-1;i<=n;){var s=i+n>>1,o=e[s];if(t>o)i=s+1;else{if(!(t=t);o++);return(i=n[o])?(i.index=o,i.start=s-i.value.length,i):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=s.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?s.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(n=!!i.charAt(t-1).match(this.tokenRe)),n||(n=!!i.charAt(t).match(this.tokenRe)),n)var s=this.tokenRe;else if(/^\s+$/.test(i.slice(t-1,t+1)))var s=/\s/;else var s=this.nonTokenRe;var o=t;if(o>0){do o--;while(o>=0&&i.charAt(o).match(s));o++}for(var r=t;re&&(e=t.screenWidth)}),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,s=0,o=this.$foldData[s],r=o?o.start.row:1/0,a=t.length,l=0;lr){if((l=o.end.row+1)>=a)break;r=(o=this.$foldData[s++])?o.start.row:1/0}null==i[l]&&(i[l]=this.$getStringScreenWidth(t[l])[0]),i[l]>n&&(n=i[l])}this.screenWidth=n}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=e.length-1;-1!=i;i--){var n=e[i];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=0;ie.end.column&&(o.start.column+=a),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=a)),r&&o.start.row>=e.end.row&&(o.start.row+=r,o.end.row+=r)}if(o.end=this.insert(o.start,n),s.length){var l=e.start,h=o.start,r=h.row-l.row,a=h.column-l.column;this.addFolds(s.map(function(e){return(e=e.clone()).start.row==l.row&&(e.start.column+=a),e.end.row==l.row&&(e.end.column+=a),e.start.row+=r,e.end.row+=r,e}))}return o},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(e){for(var t=e.collapseRows(),i=new c(0,0,0,0),n=this.getTabSize(),s=t.start.row;s<=t.end.row;++s){var o=this.getLine(s);i.start.row=s,i.end.row=s;for(var r=0;r0){var n=this.getRowFoldEnd(t+i);if(n>this.doc.getLength()-1)return 0;var s=n-t}else{e=this.$clipRowToDocument(e);var s=(t=this.$clipRowToDocument(t))-e+1}var o=new c(e,0,t,Number.MAX_VALUE),r=this.getFoldsInRange(o).map(function(e){return e=e.clone(),e.start.row+=s,e.end.row+=s,e}),a=0==i?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+s,a),r.length&&this.addFolds(r),s},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var i=this.doc.getLength();e>=i?(e=i-1,t=this.doc.getLine(i-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){(this.$wrapLimitRange.min!==e||this.$wrapLimitRange.max!==t)&&(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var i=this.$wrapLimitRange;i.max<0&&(i={min:t,max:t});var n=this.$constrainWrapLimit(e,i.min,i.max);return n!=this.$wrapLimit&&n>1&&(this.$wrapLimit=n,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,i){return t&&(e=Math.max(t,e)),i&&(e=Math.min(i,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,i=e.action,n=e.start,s=e.end,o=n.row,r=s.row,a=r-o,l=null;if(this.$updating=!0,0!=a){if("remove"===i){this[t?"$wrapData":"$rowLengthCache"].splice(o,a);var h=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var c=this.getFoldLine(s.row),u=0;if(c){c.addRemoveChars(s.row,s.column,n.column-s.column),c.shiftRow(-a);var d=this.getFoldLine(o);d&&d!==c&&(d.merge(c),c=d),u=h.indexOf(c)+1}for(;u=s.row&&c.shiftRow(-a)}r=o}else{var g=Array(a);g.unshift(o,0);var f=t?this.$wrapData:this.$rowLengthCache;f.splice.apply(f,g);var h=this.$foldData,c=this.getFoldLine(o),u=0;if(c){var m=c.range.compareInside(n.row,n.column);0==m?(c=c.split(n.row,n.column))&&(c.shiftRow(a),c.addRemoveChars(r,0,s.column-n.column)):-1==m&&(c.addRemoveChars(o,0,s.column-n.column),c.shiftRow(a)),u=h.indexOf(c)+1}for(;u=o&&c.shiftRow(a)}}}else{a=Math.abs(e.start.column-e.end.column),"remove"===i&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a);var c=this.getFoldLine(o);c&&c.addRemoveChars(o,n.column,a)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,r):this.$updateRowLengthCache(o,r),l},this.$updateRowLengthCache=function(e,t,i){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(i,n){var s,o,r=this.doc.getAllLines(),a=this.getTabSize(),l=this.$wrapData,h=this.$wrapLimit,c=i;for(n=Math.min(n,r.length-1);c<=n;)(o=this.getFoldLine(c,o))?(s=[],o.walk((function(i,n,o,a){var l;if(null!=i){(l=this.$getDisplayTokens(i,s.length))[0]=e;for(var h=1;h=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(i,n,s){if(0==i.length)return[];var o=[],r=i.length,a=0,l=0,h=this.$wrapAsCode,c=this.$indentedSoftWrap,u=n<=Math.max(2*s,8)||!1===c?0:Math.floor(n/2);function d(e){for(var t=e-a,n=a;nn-g;){var f=a+n-g;if(i[f-1]>=10&&i[f]>=10){d(f);continue}if(i[f]==e||i[f]==t){for(;f!=a-1&&i[f]!=e;f--);if(f>a){d(f);continue}for(f=a+n;f>2)),a-1);f>m&&i[f]m&&i[f]m&&9==i[f];)f--}else for(;f>m&&i[f]<10;)f--;if(f>m){d(++f);continue}2==i[f=a+n]&&f--,d(f-g)}return o},this.$getDisplayTokens=function(e,t){var n,s=[];t=t||0;for(var o=0;o39&&r<48||r>57&&r<64?s.push(9):r>=4352&&i(r)?s.push(1,2):s.push(1)}return s},this.$getStringScreenWidth=function(e,t,n){var s,o;if(0==t)return[0,0];for(null==t&&(t=1/0),n=n||0,o=0;o=4352&&i(s)?n+=2:n+=1,!(n>t));o++);return[n,o]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return(this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e])?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(!this.$useWrapMode)return 0;var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),i=this.$wrapData[t.row];return i.length&&i[0]=0)var a=h[c],o=this.$docRowCache[c],d=e>h[u-1];else var d=!u;for(var g=this.getLength()-1,f=this.getNextFoldLine(o),m=f?f.start.row:1/0;a<=e&&!(a+(l=this.getRowLength(o))>e)&&!(o>=g);)a+=l,++o>m&&(o=f.end.row+1,m=(f=this.getNextFoldLine(o,f))?f.start.row:1/0),d&&(this.$docRowCache.push(o),this.$screenRowCache.push(a));if(f&&f.start.row<=o)n=this.getFoldDisplayLine(f),o=f.start.row;else{if(a+l<=e||o>g)return{row:g,column:this.getLine(g).length};n=this.getLine(o),f=null}var p=0,v=Math.floor(e-a);if(this.$useWrapMode){var w=this.$wrapData[o];w&&(s=w[v],v>0&&w.length&&(p=w.indent,r=w[v-1]||w[w.length-1],n=n.substring(r)))}return(void 0!==i&&this.$bidiHandler.isBidiRow(a+v,o,v)&&(t=this.$bidiHandler.offsetToCol(i)),r+=this.$getStringScreenWidth(n,t-p)[1],this.$useWrapMode&&r>=s&&(r=s-1),f)?f.idxToPosition(r):{row:o,column:r}},this.documentToScreenPosition=function(e,t){if(void 0===t)var i=this.$clipPositionToDocument(e.row,e.column);else i=this.$clipPositionToDocument(e,t);e=i.row,t=i.column;var n=0,s=null,o=null;(o=this.getFoldAt(e,t,1))&&(e=o.start.row,t=o.start.column);var r,a=0,l=this.$docRowCache,h=this.$getRowCacheIndex(l,e),c=l.length;if(c&&h>=0)var a=l[h],n=this.$screenRowCache[h],u=e>l[c-1];else var u=!c;for(var d=this.getNextFoldLine(a),g=d?d.start.row:1/0;a=g){if((r=d.end.row+1)>e)break;g=(d=this.getNextFoldLine(r,d))?d.start.row:1/0}else r=a+1;n+=this.getRowLength(a),a=r,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(n))}var f="";d&&a>=g?(f=this.getFoldDisplayLine(d,e,t),s=d.start.row):(f=this.getLine(e).substring(0,t),s=e);var m=0;if(this.$useWrapMode){var p=this.$wrapData[s];if(p){for(var v=0;f.length>=p[v];)n++,v++;f=f.substring(p[v-1]||0,f.length),m=v>0?p.indent:0}}return this.lineWidgets&&this.lineWidgets[a]&&this.lineWidgets[a].rowsAbove&&(n+=this.lineWidgets[a].rowsAbove),{row:n,column:m+this.$getStringScreenWidth(f)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var i=this.$wrapData.length,n=0,s=0,t=this.$foldData[s++],o=t?t.start.row:1/0;no&&(n=t.end.row+1,o=(t=this.$foldData[s++])?t.start.row:1/0)}else{e=this.getLength();for(var a=this.$foldData,s=0;si));o++);return[n,o]})},this.destroy=function(){this.destroyed||(this.bgTokenizer.setDocument(null),this.bgTokenizer.cleanup(),this.destroyed=!0),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=i}).call(f.prototype),e("./edit_session/folding").Folding.call(f.prototype),e("./edit_session/bracket_match").BracketMatch.call(f.prototype),r.defineOptions(f.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e){if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)}},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){(e=parseInt(e))>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=f}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";var n=e("./lib/lang"),s=e("./lib/oop"),o=e("./range").Range,r=function(){this.$options={}};(function(){this.set=function(e){return s.mixin(this.$options,e),this},this.getOptions=function(){return n.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,i=this.$matchIterator(e,t);if(!i)return!1;var n=null;return i.forEach(function(e,i,s,r){return n=new o(e,i,s,r),!(i==r&&t.start&&t.start.start&&!1!=t.skipCurrent&&n.isEqual(t.start))||(n=null,!1)}),n},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var i=t.range,s=i?e.getLines(i.start.row,i.end.row):e.doc.getAllLines(),r=[],a=t.re;if(t.$isMultiLine){var l,h=a.length,c=s.length-h;e:for(var u=a.offset||0;u<=c;u++){for(var d=0;dm||(r.push(l=new o(u,m,u+h-1,p)),h>2&&(u=u+h-2))}}else for(var v=0;vy&&r[d].end.row==C;)d--;for(r=r.slice(v,d+1),v=0,d=r.length;v=a;i--)if(u(i,Number.MAX_VALUE,e))return;if(!1!=t.wrap){for(i=l,a=r.row;i>=a;i--)if(u(i,Number.MAX_VALUE,e))return}}};else var h=function(e){var i=r.row;if(!u(i,r.column,e)){for(i+=1;i<=l;i++)if(u(i,0,e))return;if(!1!=t.wrap){for(i=a,l=r.row;i<=l;i++)if(u(i,0,e))return}}};if(t.$isMultiLine)var c=i.length,u=function(t,s,o){var r=n?t-c+1:t;if(!(r<0||r+c>e.getLength())){var a=e.getLine(r),l=a.search(i[0]);if((n||!(ls))&&o(r,l,r+c-1,u))return!0}}};else if(n)var u=function(t,n,s){var o,r=e.getLine(t),a=[],l=0;for(i.lastIndex=0;o=i.exec(r);){var h=o[0].length;if(l=o.index,!h){if(l>=r.length)break;i.lastIndex=l+=1}if(o.index+h>n)break;a.push(o.index,h)}for(var c=a.length-1;c>=0;c-=2){var u=a[c-1],h=a[c];if(s(t,u,t,u+h))return!0}};else var u=function(t,n,s){var o,r,a=e.getLine(t);for(i.lastIndex=n;r=i.exec(a);){var l=r[0].length;if(o=r.index,s(t,o,t,o+l))return!0;if(!l&&(i.lastIndex=o+=1,o>=a.length))return!1}};return{forEach:h}}}).call(r.prototype),t.Search=r}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/keys"),s=e("../lib/useragent"),o=n.KEY_MODS;function r(e,t){this.platform=t||(s.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function a(e,t){r.call(this,e,t),this.$singleCommand=!1}a.prototype=r.prototype,(function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var i=e&&("string"==typeof e?e:e.name);e=this.commands[i],t||delete this.commands[i];var n=this.commandKeyBinding;for(var s in n){var o=n[s];if(o==e)delete n[s];else if(Array.isArray(o)){var r=o.indexOf(e);-1!=r&&(o.splice(r,1),1==o.length&&(n[s]=o[0]))}}},this.bindKey=function(e,t,i){if("object"==typeof e&&e&&(void 0==i&&(i=e.position),e=e[this.platform]),e){if("function"==typeof t)return this.addCommand({exec:t,bindKey:e,name:t.name||e});e.split("|").forEach(function(e){var n="";if(-1!=e.indexOf(" ")){var s=e.split(/\s+/);e=s.pop(),s.forEach(function(e){var t=this.parseKeys(e),i=o[t.hashId]+t.key;n+=(n?" ":"")+i,this._addCommandToBinding(n,"chainKeys")},this),n+=" "}var r=this.parseKeys(e),a=o[r.hashId]+r.key;this._addCommandToBinding(n+a,t,i)},this)}},this._addCommandToBinding=function(t,i,n){var s,o=this.commandKeyBinding;if(i){if(!o[t]||this.$singleCommand)o[t]=i;else{Array.isArray(o[t])?-1!=(s=o[t].indexOf(i))&&o[t].splice(s,1):o[t]=[o[t]],"number"!=typeof n&&(n=e(i));var r=o[t];for(s=0;sn);s++);r.splice(s,0,i)}}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var i=e[t];if(i){if("string"==typeof i)return this.bindKey(i,t);"function"==typeof i&&(i={exec:i}),"object"==typeof i&&(i.name||(i.name=t),this.addCommand(i))}},this)},this.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)},this.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),i=t.pop(),s=n[i];if(n.FUNCTION_KEYS[s])i=n.FUNCTION_KEYS[s].toLowerCase();else if(!t.length)return{key:i,hashId:-1};else if(1==t.length&&"shift"==t[0])return{key:i.toUpperCase(),hashId:-1};for(var o=0,r=t.length;r--;){var a=n.KEY_MODS[t[r]];if(null==a)return"undefined"!=typeof console&&console.error("invalid modifier "+t[r]+" in "+e),!1;o|=a}return{key:i,hashId:o}},this.findKeyCommand=function(e,t){var i=o[e]+t;return this.commandKeyBinding[i]},this.handleKeyboard=function(e,t,i,n){if(!(n<0)){var s=o[t]+i,r=this.commandKeyBinding[s];return(e.$keyChain&&(e.$keyChain+=" "+s,r=this.commandKeyBinding[e.$keyChain]||r),r&&("chainKeys"==r||"chainKeys"==r[r.length-1]))?(e.$keyChain=e.$keyChain||s,{command:"null"}):(e.$keyChain&&(t&&4!=t||1!=i.length?(-1==t||n>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-s.length-1)),{command:r})}},this.getStatusText=function(e,t){return t.$keyChain||""}}).call(r.prototype),t.HashHandler=r,t.MultiHashHandler=a}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("../lib/oop"),s=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,r=function(e,t){s.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.args?e.command.exec(e.editor,e.args,e.event,!1):e.command.exec(e.editor,{},e.event,!0)})};n.inherits(r,s),(function(){n.implement(this,o),this.exec=function(e,t,i){if(Array.isArray(e)){for(var n=e.length;n--;)if(this.exec(e[n],t,i))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e||t&&t.$readOnly&&!e.readOnly||!1!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var s={editor:t,command:e,args:i};return s.returnValue=this._emit("exec",s),this._signal("afterExec",s),!1!==s.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return(e&&e._emit("changeStatus"),this.recording)?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=(function(e){this.macro.push([e.command,e.args])}).bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach(function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}).call(r.prototype),t.CommandManager=r}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,i){"use strict";var n=e("../lib/lang"),s=e("../config"),o=e("../range").Range;function r(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:r("Ctrl-,","Command-,"),exec:function(e){s.loadModule("ace/ext/settings_menu",function(t){t.init(e),e.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:r("Alt-E","F4"),exec:function(e){s.loadModule("./ext/error_marker",function(t){t.showErrorMarker(e,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:r("Alt-Shift-E","Shift-F4"),exec:function(e){s.loadModule("./ext/error_marker",function(t){t.showErrorMarker(e,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:r("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:r(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:r("Ctrl-L","Command-L"),exec:function(e,t){"number"!=typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:r("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:r("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:r("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:r("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:r(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:r(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:r("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:r("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:r("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:r("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:r("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:r("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:r("Ctrl-F","Command-F"),exec:function(e){s.loadModule("ace/ext/searchbox",function(t){t.Search(e)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:r("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:r("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:r("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:r("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:r("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:r("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:r("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:r("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:r("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:r("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:r("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:r("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:r("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:r("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:r("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:r("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:r("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:r("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:r("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:r("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:r(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:r("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:r(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:r("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:r("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:r("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:r("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:r("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:r("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:r("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:r(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty()?e.selection.getLineRange():e.selection.getRange();e._emit("cut",t),t.isEmpty()||e.session.remove(t),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:r("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:r("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:r("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:r("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:r("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:r("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:r("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:r("Ctrl-H","Command-Option-F"),exec:function(e){s.loadModule("ace/ext/searchbox",function(t){t.Search(e,!0)})}},{name:"undo",description:"Undo",bindKey:r("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:r("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:r("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:r("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:r("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:r("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:r("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:r("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:r("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:r("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:r("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:r("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:r("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:r("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:r("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:r("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:r("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:r("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:r("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(n.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:r(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:r("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:r("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:r("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:r(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:r("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"openlink",bindKey:r("Ctrl+F3","F3"),exec:function(e){e.openLink()}},{name:"joinlines",description:"Join lines",bindKey:r(null,null),exec:function(e){for(var t=e.selection.isBackwards(),i=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),s=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),r=e.session.doc.getLine(i.row).length,a=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,l=e.session.doc.getLine(i.row),h=i.row+1;h<=s.row+1;h++){var c=n.stringTrimLeft(n.stringTrimRight(e.session.doc.getLine(h)));0!==c.length&&(c=" "+c),l+=c}s.row+10?(e.selection.moveCursorTo(i.row,i.column),e.selection.selectTo(i.row,i.column+a)):(r=e.session.doc.getLine(i.row).length>r?r+1:r,e.selection.moveCursorTo(i.row,r))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:r(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,s=[];n.length<1&&(n=[e.selection.getRange()]);for(var r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=e("./lib/oop"),o=e("./lib/dom"),r=e("./lib/lang"),a=e("./lib/useragent"),l=e("./keyboard/textinput").TextInput,h=e("./mouse/mouse_handler").MouseHandler,c=e("./mouse/fold_handler").FoldHandler,u=e("./keyboard/keybinding").KeyBinding,d=e("./edit_session").EditSession,g=e("./search").Search,f=e("./range").Range,m=e("./lib/event_emitter").EventEmitter,p=e("./commands/command_manager").CommandManager,v=e("./commands/default_commands").commands,w=e("./config"),$=e("./token_iterator").TokenIterator,b=e("./clipboard"),y=function(e,t,i){this.$toDestroy=[];var n=e.getContainerElement();this.container=n,this.renderer=e,this.id="editor"+ ++y.$uid,this.commands=new p(a.isMac?"mac":"win",v),"object"==typeof document&&(this.textInput=new l(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.$mouseHandler=new h(this),new c(this)),this.keyBinding=new u(this),this.$search=new g().set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=r.delayedCall((function(){this._signal("input",{}),this.session&&!this.session.destroyed&&this.session.bgTokenizer.scheduleStart()}).bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(t||i&&i.session||new d("")),w.resetOptions(this),i&&this.setOptions(i),w._signal("editor",this)};y.$uid=0,(function(){s.implement(this,m),this.$initOperationListeners=function(){this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=r.delayedCall(this.endOperation.bind(this,!0)),this.on("change",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.docChanged=!0}).bind(this),!0),this.on("changeSelection",(function(){this.curOp||(this.startOperation(),this.curOp.selectionBefore=this.$lastSel),this.curOp.selectionChanged=!0}).bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp=this.session.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.selectionBefore=this.selection.toJSON()},this.endOperation=function(e){if(this.curOp&&this.session){if(e&&!1===e.returnValue||!this.session)return this.curOp=null;if((!0!=e||!this.curOp.command||"mouse"!=this.curOp.command.name)&&(this._signal("beforeEndOperation"),this.curOp)){var t=this.curOp.command,i=t&&t.scrollIntoView;if(i){switch(i){case"center-animate":i="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var n=this.selection.getRange(),s=this.renderer.layerConfig;(n.start.row>=s.lastRow||n.end.row<=s.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==i&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,i=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var s=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(s)||/\s/.test(t.args)),this.mergeNextCommand=!0}else n=n&&-1!==i.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(n=!1),n?this.session.mergeUndoDeltas=!0:-1!==i.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"==typeof e&&"ace"!=e){this.$keybindingId=e;var i=this;w.loadModule(["keybinding",e],function(n){i.$keybindingId==e&&i.keyBinding.setKeyboardHandler(n&&n.handler),t&&t()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var i=this.session.getSelection();i.off("changeCursor",this.$onCursorChange),i.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&!e.destroyed&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||o.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout(function(){e.$highlightPending=!1;var t=e.session;if(t&&!t.destroyed){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach(function(e){t.removeMarker(e)}),t.$bracketHighlight=null);var i=e.getCursorPosition(),n=e.getKeyboardHandler(),s=n&&n.$getDirectionForHighlight&&n.$getDirectionForHighlight(e),o=t.getMatchingBracketRanges(i,s);if(!o){var r=new $(t,i.row,i.column).getCurrentToken();if(r&&/\b(?:tag-open|tag-name)/.test(r.type)){var a=t.getMatchingTags(i);a&&(o=[a.openTagName,a.closeTagName])}}if(!o&&t.$mode.getMatching&&(o=t.$mode.getMatching(e.session)),!o){e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide();return}var l="ace_bracket";Array.isArray(o)?1==o.length&&(l="ace_error_bracket"):o=[o],2==o.length&&(0==f.comparePoints(o[0].end,o[1].start)?o=[f.fromPoints(o[0].start,o[1].end)]:0==f.comparePoints(o[0].start,o[1].end)&&(o=[f.fromPoints(o[1].start,o[0].end)])),t.$bracketHighlight={ranges:o,markerIds:o.map(function(e){return t.addMarker(e,l,"text")})},e.getHighlightIndentGuides()&&e.renderer.$textLayer.$highlightIndentGuide()}},50)}},this.focus=function(){this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor(),this.$highlightBrackets(),this.$updateHighlightActiveLine()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,i=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,i,t),this._signal("change",e),this.$cursorChange()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.theme&&this.renderer.theme.$selectionColorConflict&&!this.selection.isEmpty()&&(e=!1),this.renderer.$maxLines&&1===this.session.getLength()&&!(this.renderer.$minLines>1)&&(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var i=new f(e.row,e.column,e.row,1/0);i.id=t.addMarker(i,"ace_active-line","screenLine"),t.$highlightLineMarker=i}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var i=this.selection.getRange(),n=this.getSelectionStyle();t.$selectionMarker=t.addMarker(i,"ace_selection",n)}var s=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(s),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!(t.isEmpty()||t.isMultiLine())){var i=t.start.column,n=t.end.column,s=e.getLine(t.start.row),o=s.substring(i,n);if(!(o.length>5e3)&&/[\w\d]/.test(o)){var r=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),a=s.substring(i-1,n+1);if(r.test(a))return r}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),i=!1;if(!e&&this.$copyWithEmptySelection){i=!0;for(var n=this.selection.getAllRanges(),s=0;sa.search(/\S|$/)){var l=a.substr(s.column).search(/\S|$/);i.doc.removeInLine(s.row,s.column,s.column+l)}}this.clearSelection();var h=s.column,c=i.getState(s.row),a=i.getLine(s.row),u=n.checkOutdent(c,a,e);if(i.insert(s,e),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new f(s.row,h+o.selection[0],s.row,h+o.selection[1])):this.selection.setSelectionRange(new f(s.row+o.selection[0],o.selection[1],s.row+o.selection[2],o.selection[3]))),this.$enableAutoIndent){if(i.getDocument().isNewLine(e)){var d=n.getNextLineIndent(c,a.slice(0,s.column),i.getTabString());i.insert({row:s.row+1,column:0},d)}u&&n.autoOutdent(c,i,s.row)}},this.autoIndent=function(){var e,t,i,n,s,o=this.session,r=o.getMode();if(this.selection.isEmpty())e=0,t=o.doc.getLength()-1;else{var a=this.getSelectionRange();e=a.start.row,t=a.end.row}for(var l="",h="",c="",u=o.getTabString(),d=e;d<=t;d++)d>0&&(l=o.getState(d-1),h=o.getLine(d-1),c=r.getNextLineIndent(l,h,u)),i=o.getLine(d),c!==(n=r.$getIndent(i))&&(n.length>0&&(s=new f(d,0,d,n.length),o.remove(s)),c.length>0&&o.insert({row:d,column:0},c)),r.autoOutdent(l,o,d)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var i=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(i):i(),this.endOperation()},this.applyComposition=function(e,t){if(t.extendLeft||t.extendRight){var i=this.selection.getRange();i.start.column-=t.extendLeft,i.end.column+=t.extendRight,i.start.column<0&&(i.start.row--,i.start.column+=this.session.getLine(i.start.row).length+1),this.selection.setRange(i),e||i.isEmpty()||this.remove()}if((e||!this.selection.isEmpty())&&this.insert(e,!0),t.restoreStart||t.restoreEnd){var i=this.selection.getRange();i.start.column-=t.restoreStart,i.end.column-=t.restoreEnd,this.selection.setRange(i)}},this.onCommandKey=function(e,t,i){return this.keyBinding.onCommandKey(e,t,i)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setHighlightIndentGuides=function(e){this.renderer.setHighlightIndentGuides(e)},this.getHighlightIndentGuides=function(){return this.renderer.getHighlightIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var i=this.session,n=i.getState(t.start.row),s=i.getMode().transformAction(n,"deletion",this,i,t);if(0===t.end.column){var o=i.getTextRange(t);if("\n"==o[o.length-1]){var r=i.getLine(t.end.row);/^\s+$/.test(r)&&(t.end.column=r.length)}}s&&(t=s)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e,t,i=this.getCursorPosition(),n=i.column;if(0!==n){var s=this.session.getLine(i.row);nt.toLowerCase()?1:0});for(var s=new f(0,0,0,0),n=e.first;n<=e.last;n++){var o=t.getLine(n);s.start.row=n,s.end.row=n,s.end.column=o.length,t.replace(s,i[n-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,i,e)},this.getNumberAt=function(e,t){var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g;i.lastIndex=0;for(var n=this.session.getLine(e);i.lastIndex=t)return{value:s[0],start:s.index,end:s.index+s[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,i=this.selection.getCursor().column,n=new f(t,i-1,t,i),s=this.session.getTextRange(n);if(!isNaN(parseFloat(s))&&isFinite(s)){var o=this.getNumberAt(t,i);if(o){var r=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,a=o.start+o.value.length-r,l=parseFloat(o.value);l*=Math.pow(10,a),r!==o.end&&i=l&&a<=h&&(n=e,c.selection.clearSelection(),c.moveCursorTo(t,l+s),c.selection.selectTo(t,h+s)),l=h});for(var u=this.$toggleWordPairs,d=0;d=l&&s<=h&&d.match(/((?:https?|ftp):\/\/[\S]+)/)){a=d.replace(/[\s:.,'";}\]]+$/,"");break}l=h}}catch(e){o={error:e}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(o)throw o.error}}return a},this.openLink=function(){var e=this.selection.getCursor(),t=this.findLinkAt(e.row,e.column);return t&&window.open(t,"_blank"),null!=t},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,i=e.getRange(),n=e.isBackwards();if(i.isEmpty()){var s=i.start.row;t.duplicateLines(s,s)}else{var o=n?i.start:i.end,r=t.insert(o,t.getTextRange(i),!1);i.start=o,i.end=r,e.setSelectionRange(i,n)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,i){return this.session.moveText(e,t,i)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var i,n,s=this.selection;if(!s.inMultiSelectMode||this.inVirtualSelectionMode){var o=s.toOrientedRange();i=this.$getSelectedRows(o),n=this.session.$moveLines(i.first,i.last,t?0:e),t&&-1==e&&(n=0),o.moveBy(n,0),s.fromOrientedRange(o)}else{var r=s.rangeList.ranges;s.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,h=r.length,c=0;cg+1)break;g=f.last}for(c--,a=this.session.$moveLines(d,g,t?0:e),t&&-1==e&&(u=c+1);u<=c;)r[u].moveBy(a,0),u++;t||(a=0),l+=a}s.fromOrientedRange(s.ranges[0]),s.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,n=this.renderer.layerConfig,s=e*Math.floor(n.height/n.lineHeight);!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(s,0)}):!1===t&&(this.selection.moveCursorBy(s,0),this.selection.clearSelection());var o=i.scrollTop;i.scrollBy(0,s*n.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,n){this.renderer.scrollToLine(e,t,i,n)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i,n,s,o,r=this.getCursorPosition(),a=new $(this.session,r.row,r.column),l=a.getCurrentToken(),h=0;l&&-1!==l.type.indexOf("tag-name")&&(l=a.stepBackward());var c=l||a.stepForward();if(c){var u=!1,d={},g=r.column-c.start,m={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(c.value.match(/[{}()\[\]]/g)){for(;g1?d[c.value]++:"Math.abs(o.column-r.column))&&(s=this.session.getBracketRange(o)));else if("tag"===i){if(!c||-1===c.type.indexOf("tag-name"))return;if(0===(s=new f(a.getCurrentTokenRow(),a.getCurrentTokenColumn()-2,a.getCurrentTokenRow(),a.getCurrentTokenColumn()-2)).compare(r.row,r.column)){var p=this.session.getMatchingTags(r);p&&(p.openTag.contains(r.row,r.column)?o=(s=p.closeTag).start:(s=p.openTag,o=p.closeTag.start.row===r.row&&p.closeTag.start.column===r.column?s.end:s.start))}o=o||s.start}(o=s&&s.cursor||o)&&(e?s&&t?this.selection.setRange(s):s&&s.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(o.row,o.column):this.selection.moveTo(o.row,o.column))}}},this.gotoLine=function(e,t,i){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,i)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var i=this.$search.find(this.session),n=0;return i&&(this.$tryReplace(i,e)&&(n=1),this.selection.setSelectionRange(i),this.renderer.scrollSelectionIntoView(i.start,i.end)),n},this.replaceAll=function(e,t){t&&this.$search.set(t);var i=this.$search.findAll(this.session),n=0;if(!i.length)return n;var s=this.getSelectionRange();this.selection.moveTo(0,0);for(var o=i.length-1;o>=0;--o)this.$tryReplace(i[o],e)&&n++;return this.selection.setSelectionRange(s),n},this.$tryReplace=function(e,t){var i=this.session.getTextRange(e);return null!==(t=this.$search.replace(i,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,i){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&s.mixin(t,e);var n=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(n)||this.$search.$options.needle)||(n=this.session.getWordRange(n.start.row,n.start.column),e=this.session.getTextRange(n)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:n});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,i),o):void(t.backwards?n.start=n.end:n.end=n.start,this.selection.setRange(n))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var i=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(i)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(e){e.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,i=this,n=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var s=this.$scrollAnchor;s.style.cssText="position:absolute",this.container.insertBefore(s,this.container.firstChild);var o=this.on("changeSelection",function(){n=!0}),r=this.renderer.on("beforeRender",function(){n&&(t=i.renderer.container.getBoundingClientRect())}),a=this.renderer.on("afterRender",function(){if(n&&t&&(i.isFocused()||i.searchBox&&i.searchBox.isFocused())){var e=i.renderer,o=e.$cursorLayer.$pixelPos,r=e.layerConfig,a=o.top-r.offset;null!=(n=o.top>=0&&a+t.top<0||(!(o.topwindow.innerHeight))&&null)&&(s.style.top=a+"px",s.style.left=o.left+"px",s.style.height=r.lineHeight+"px",s.scrollIntoView(n)),n=t=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",r))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,o.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,i){var n=this;w.loadModule("./ext/prompt",function(s){s.prompt(n,e,t,i)})}}).call(y.prototype),w.defineOptions(y.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?C.attach(this):C.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?C.attach(this):C.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=(function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),o.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),o.addCssClass(this.container,"ace_hasPlaceholder");var t=o.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}).bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},customScrollbar:"renderer",hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",highlightIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var C={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"\xb7":""))+""},getWidth:function(e,t,i){return Math.max(t.toString().length,(i.lastRow+1).toString().length,2)*i.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=y}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,i){"use strict";var n=function(){this.$maxRev=0,this.$fromUndo=!1,this.$undoDepth=1/0,this.reset()};(function(){this.addSession=function(e){this.$session=e},this.add=function(e,t,i){if(!this.$fromUndo&&e!=this.$lastDelta){if(this.$keepRedoStack||(this.$redoStack.length=0),!1===t||!this.lastDeltas){this.lastDeltas=[];var n=this.$undoStack.length;n>this.$undoDepth-1&&this.$undoStack.splice(0,n-this.$undoDepth+1),this.$undoStack.push(this.lastDeltas),e.id=this.$rev=++this.$maxRev}("remove"==e.action||"insert"==e.action)&&(this.$lastDelta=e),this.lastDeltas.push(e)}},this.addSelection=function(e,t){this.selections.push({value:e,rev:t||this.$rev})},this.startNewGroup=function(){return this.lastDeltas=null,this.$rev},this.markIgnored=function(e,t){null==t&&(t=this.$rev+1);for(var i=this.$undoStack,n=i.length;n--;){var s=i[n][0];if(s.id<=e)break;s.ido(e.start,t.start)?c(t,e,1):c(e,t,1);else if(r&&!a)o(e.start,t.end)>=0?c(e,t,-1):(0>=o(e.start,t.start)||c(e,s.fromPoints(t.start,e.start),-1),c(t,e,1));else if(!r&&a)o(t.start,e.end)>=0?c(t,e,-1):(0>=o(t.start,e.start)||c(t,s.fromPoints(e.start,t.start),-1),c(e,t,1));else if(!r&&!a){if(o(t.start,e.end)>=0)c(t,e,-1);else{if(!(0>=o(t.end,e.start)))return 0>o(e.start,t.start)&&(i=e,e=d(e,t.start)),o(e.end,t.end)>0&&(n=d(e,t.end)),u(t.end,e.start,e.end,-1),n&&!i&&(e.lines=n.lines,e.start=n.start,e.end=n.end,n=e),[t,i,n].filter(Boolean);c(e,t,-1)}}return[t,e]}(a[l],t);t=h[0],2!=h.length&&(h[2]?(a.splice(l+1,1,h[1],h[2]),l++):!h[1]&&(a.splice(l,1),l--))}a.length||e.splice(n,1)}}(e,n[a])})(this.$redoStack,i),this.$redoStackBaseRev=this.$rev,this.$redoStack.forEach(function(e){e[0].id=++this.$maxRev},this)}var n=this.$redoStack.pop(),a=null;return n&&(a=e.redoChanges(n,t),this.$undoStack.push(n),this.$syncRev()),this.$fromUndo=!1,a},this.$syncRev=function(){var e=this.$undoStack,t=e[e.length-1],i=t&&t[0].id||0;this.$redoStackBaseRev=i,this.$rev=i},this.reset=function(){this.lastDeltas=null,this.$lastDelta=null,this.$undoStack=[],this.$redoStack=[],this.$rev=0,this.mark=0,this.$redoStackBaseRev=this.$rev,this.selections=[]},this.canUndo=function(){return this.$undoStack.length>0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){void 0==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?a(e):a(this.$undoStack)+"\n---\n"+a(this.$redoStack)}}).call(n.prototype);var s=e("./range").Range,o=s.comparePoints;function r(e){return{row:e.row,column:e.column}}function a(e){if(Array.isArray(e=e||this))return e.map(a).join("\n");var t="";return e.action?t=("insert"==e.action?"+":"-")+"["+e.lines+"]":e.value&&(t=Array.isArray(e.value)?e.value.map(l).join("\n"):l(e.value)),e.start&&(t+=l(e)),(e.id||e.rev)&&(t+=" ("+(e.id||e.rev)+")"),t}function l(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function h(e,t){var i="insert"==e.action,n="insert"==t.action;if(i&&n){if(o(t.start,e.end)>=0)c(t,e,-1);else{if(!(0>=o(t.start,e.start)))return null;c(e,t,1)}}else if(i&&!n){if(o(t.start,e.end)>=0)c(t,e,-1);else{if(!(0>=o(t.end,e.start)))return null;c(e,t,-1)}}else if(!i&&n){if(o(t.start,e.start)>=0)c(t,e,1);else{if(!(0>=o(t.start,e.start)))return null;c(e,t,1)}}else if(!i&&!n){if(o(t.start,e.start)>=0)c(t,e,1);else{if(!(0>=o(t.end,e.start)))return null;c(e,t,-1)}}return[t,e]}function c(e,t,i){u(e.start,t.start,t.end,i),u(e.end,t.start,t.end,i)}function u(e,t,i,n){e.row==(1==n?t:i).row&&(e.column+=n*(i.column-t.column)),e.row+=n*(i.row-t.row)}function d(e,t){var i=e.lines,n=e.end;e.end=r(t);var s=e.end.row-e.start.row,o=i.splice(s,i.length),a=s?t.column:t.column-e.start.column;return i.push(o[0].substring(0,a)),o[0]=o[0].substr(a),{start:r(t),end:n,lines:o,action:e.action}}s.comparePoints,t.UndoManager=n}),ace.define("ace/layer/lines",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";var n=e("../lib/dom"),s=function(e,t){this.element=e,this.canvasHeight=t||5e5,this.element.style.height=2*this.canvasHeight+"px",this.cells=[],this.cellCache=[],this.$offsetCoefficient=0};(function(){this.moveContainer=function(e){n.translate(this.element,0,-(e.firstRowScreen*e.lineHeight%this.canvasHeight)-e.offset*this.$offsetCoefficient)},this.pageChanged=function(e,t){return Math.floor(e.firstRowScreen*e.lineHeight/this.canvasHeight)!==Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight)},this.computeLineTop=function(e,t,i){var n=Math.floor(t.firstRowScreen*t.lineHeight/this.canvasHeight);return i.documentToScreenRow(e,0)*t.lineHeight-n*this.canvasHeight},this.computeLineHeight=function(e,t,i){return t.lineHeight*i.getRowLineCount(e)},this.getLength=function(){return this.cells.length},this.get=function(e){return this.cells[e]},this.shift=function(){this.$cacheCell(this.cells.shift())},this.pop=function(){this.$cacheCell(this.cells.pop())},this.push=function(e){if(Array.isArray(e)){this.cells.push.apply(this.cells,e);for(var t=n.createFragment(this.element),i=0;io&&(l=s.end.row+1,o=(s=t.getNextFoldLine(l,s))?s.start.row:1/0),l>n){for(;this.$lines.getLength()>a+1;)this.$lines.pop();break}(r=this.$lines.get(++a))?r.row=l:(r=this.$lines.createCell(l,e,this.session,h),this.$lines.push(r)),this.$renderCell(r,e,s,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,i=t.gutterRenderer||this.$renderer,n=t.$firstLineNumber,s=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(s=t.getLength()+n-1);var o=i?i.getWidth(t,s,e):s.toString().length*e.characterWidth,r=this.$padding||this.$computePadding();(o+=r.left+r.right)===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var i=0;i=this.$cursorRow){if(n.row>this.$cursorRow){var s=this.session.getFoldLine(this.$cursorRow);if(i>0&&s&&s.start.row==t[i-1].row)n=t[i-1];else break}n.element.className="ace_gutter-active-line "+n.element.className,this.$cursorCell=n;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var i=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),n=this.oldLastRow;if(this.oldLastRow=i,!t||n0;s--)this.$lines.shift();if(n>i)for(var s=this.session.getFoldedRowCount(i+1,n);s>0;s--)this.$lines.pop();e.firstRown&&this.$lines.push(this.$renderLines(e,n+1,i)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,i){for(var n=[],s=t,o=this.session.getNextFoldLine(s),r=o?o.start.row:1/0;s>r&&(s=o.end.row+1,r=(o=this.session.getNextFoldLine(s,o))?o.start.row:1/0),!(s>i);){var a=this.$lines.createCell(s,e,this.session,h);this.$renderCell(a,e,o,s),n.push(a),s++}return n},this.$renderCell=function(e,t,i,s){var o=e.element,r=this.session,a=o.childNodes[0],l=o.childNodes[1],h=r.$firstLineNumber,c=r.$breakpoints,u=r.$decorations,d=r.gutterRenderer||this.$renderer,g=this.$showFoldWidgets&&r.foldWidgets,f=i?i.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";if(this.$highlightGutterLine&&(s==this.$cursorRow||i&&s=f&&this.$cursorRow<=i.end.row)&&(m+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),c[s]&&(m+=c[s]),u[s]&&(m+=u[s]),this.$annotations[s]&&(m+=this.$annotations[s].className),o.className!=m&&(o.className=m),g){var p=g[s];null==p&&(p=g[s]=r.getFoldWidget(s))}if(p){var m="ace_fold-widget ace_"+p;"start"==p&&s==f&&si.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,i){"use strict";var n=e("../range").Range,s=e("../lib/dom"),o=function(e){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var i=-1!=this.i&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=t,i.className=e},this.update=function(e){if(e){for(var t in this.config=e,this.i=0,this.markers){var i,n=this.markers[t];if(!n.range){n.update(i,this,this.session,e);continue}var s=n.range.clipRows(e.firstRow,e.lastRow);if(!s.isEmpty()){if(s=s.toScreenRange(this.session),n.renderer){var o=this.$getTop(s.start.row,e),r=this.$padding+s.start.column*e.characterWidth;n.renderer(i,s,r,o,e)}else"fullLine"==n.type?this.drawFullLineMarker(i,s,n.clazz,e):"screenLine"==n.type?this.drawScreenLineMarker(i,s,n.clazz,e):s.isMultiLine()?"text"==n.type?this.drawTextMarker(i,s,n.clazz,e):this.drawMultiLineMarker(i,s,n.clazz,e):this.drawSingleLineMarker(i,s,n.clazz+" ace_start ace_br15",e)}}if(-1!=this.i)for(;this.id?4:0)|(h==l?8:0)),s,h==l?0:1,o)},this.drawMultiLineMarker=function(e,t,i,n,s){var o=this.$padding,r=n.lineHeight,a=this.$getTop(t.start.row,n),l=o+t.start.column*n.characterWidth;if(s=s||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var h=t.clone();h.end.row=h.start.row,h.end.column=this.session.getLine(h.start.row).length,this.drawBidiSingleLineMarker(e,h,i+" ace_br1 ace_start",n,null,s)}else this.elt(i+" ace_br1 ace_start","height:"+r+"px;right:0;top:"+a+"px;left:"+l+"px;"+(s||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){var h=t.clone();h.start.row=h.end.row,h.start.column=0,this.drawBidiSingleLineMarker(e,h,i+" ace_br12",n,null,s)}else{a=this.$getTop(t.end.row,n);var c=t.end.column*n.characterWidth;this.elt(i+" ace_br12","height:"+r+"px;width:"+c+"px;top:"+a+"px;left:"+o+"px;"+(s||""))}if(!((r=(t.end.row-t.start.row-1)*n.lineHeight)<=0)){a=this.$getTop(t.start.row+1,n);var u=(t.start.column?1:0)|(t.end.column?0:8);this.elt(i+(u?" ace_br"+u:""),"height:"+r+"px;right:0;top:"+a+"px;left:"+o+"px;"+(s||""))}},this.drawSingleLineMarker=function(e,t,i,n,s,o){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,i,n,s,o);var r=n.lineHeight,a=(t.end.column+(s||0)-t.start.column)*n.characterWidth,l=this.$getTop(t.start.row,n),h=this.$padding+t.start.column*n.characterWidth;this.elt(i,"height:"+r+"px;width:"+a+"px;top:"+l+"px;left:"+h+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(e,t,i,n,s,o){var r=n.lineHeight,a=this.$getTop(t.start.row,n),l=this.$padding;this.session.$bidiHandler.getSelections(t.start.column,t.end.column).forEach(function(e){this.elt(i,"height:"+r+"px;width:"+e.width+(s||0)+"px;top:"+a+"px;left:"+(l+e.left)+"px;"+(o||""))},this)},this.drawFullLineMarker=function(e,t,i,n,s){var o=this.$getTop(t.start.row,n),r=n.lineHeight;t.start.row!=t.end.row&&(r+=this.$getTop(t.end.row,n)-o),this.elt(i,"height:"+r+"px;top:"+o+"px;left:0;right:0;"+(s||""))},this.drawScreenLineMarker=function(e,t,i,n,s){var o=this.$getTop(t.start.row,n),r=n.lineHeight;this.elt(i,"height:"+r+"px;top:"+o+"px;left:0;right:0;"+(s||""))}}).call(o.prototype),t.Marker=o}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("../lib/oop"),s=e("../lib/dom"),o=e("../lib/lang"),r=e("./lines").Lines,a=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=s,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new r(this.element)};(function(){n.implement(this,a),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=t)return this.EOL_CHAR=t,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",(function(e){this._signal("changeCharacterSize",e)}).bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$highlightIndentGuides=!0,this.setHighlightIndentGuides=function(e){return this.$highlightIndentGuides!==e&&(this.$highlightIndentGuides=e,e)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],i=1;ic&&(a=l.end.row+1,c=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(a>s);){var u=o[r++];if(u){this.dom.removeChildren(u),this.$renderLine(u,a,a==c&&l),h&&(u.style.top=this.$lines.computeLineTop(a,e,this.session)+"px");var d=e.lineHeight*this.session.getRowLength(a)+"px";u.style.height!=d&&(h=!0,u.style.height=d)}a++}if(h)for(;r0;s--)this.$lines.shift();if(t.lastRow>e.lastRow)for(var s=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);s>0;s--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow)),this.$highlightIndentGuide()},this.$renderLinesFragment=function(e,t,i){for(var n=[],o=t,r=this.session.getNextFoldLine(o),a=r?r.start.row:1/0;o>a&&(o=r.end.row+1,a=(r=this.session.getNextFoldLine(o,r))?r.start.row:1/0),!(o>i);){var l=this.$lines.createCell(o,e,this.session),h=l.element;this.dom.removeChildren(h),s.setStyle(h.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),s.setStyle(h.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(h,o,o==a&&r),this.$useLineGroups()?h.className="ace_line_group":h.className="ace_line",n.push(l),o++}return n},this.update=function(e){this.$lines.moveContainer(e),this.config=e;for(var t=e.firstRow,i=e.lastRow,n=this.$lines;n.getLength();)n.pop();n.push(this.$renderLinesFragment(e,t,i))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,i,n){for(var s,r=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC\u2066\u2067\u2068\u202A\u202B\u202D\u202E\u202C\u2069]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,a=this.dom.createFragment(this.element),l=0;s=r.exec(n);){var h=s[1],c=s[2],u=s[3],d=s[4],g=s[5];if(this.showSpaces||!c){var f=l!=s.index?n.slice(l,s.index):"";if(l=s.index+s[0].length,f&&a.appendChild(this.dom.createTextNode(f,this.element)),h){var m=this.session.getScreenTabSize(t+s.index);a.appendChild(this.$tabStrings[m].cloneNode(!0)),t+=m-1}else if(c){if(this.showSpaces){var p=this.dom.createElement("span");p.className="ace_invisible ace_invisible_space",p.textContent=o.stringRepeat(this.SPACE_CHAR,c.length),a.appendChild(p)}else a.appendChild(this.com.createTextNode(c,this.element))}else if(u){var p=this.dom.createElement("span");p.className="ace_invisible ace_invisible_space ace_invalid",p.textContent=o.stringRepeat(this.SPACE_CHAR,u.length),a.appendChild(p)}else if(d){t+=1;var p=this.dom.createElement("span");p.style.width=2*this.config.characterWidth+"px",p.className=this.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",p.textContent=this.showSpaces?this.SPACE_CHAR:d,a.appendChild(p)}else if(g){t+=1;var p=this.dom.createElement("span");p.style.width=2*this.config.characterWidth+"px",p.className="ace_cjk",p.textContent=g,a.appendChild(p)}}}if(a.appendChild(this.dom.createTextNode(l?n.slice(l):n,this.element)),this.$textToken[i.type])e.appendChild(a);else{var v="ace_"+i.type.replace(/\./g," ace_"),p=this.dom.createElement("span");"fold"==i.type&&(p.style.width=i.value.length*this.config.characterWidth+"px"),p.className=v,p.appendChild(a),e.appendChild(p)}return t+n.length},this.renderIndentGuide=function(e,t,i){var n=t.search(this.$indentGuideRe);if(n<=0||n>=i)return t;if(" "==t[0]){for(var s=(n-=n%this.tabSize)/this.tabSize,o=0;os[o].start.row?this.$highlightIndentGuideMarker.dir=-1:this.$highlightIndentGuideMarker.dir=1;break}}if(!this.$highlightIndentGuideMarker.end&&""!==e[t.row]&&t.column===e[t.row].length){this.$highlightIndentGuideMarker.dir=1;for(var o=t.row+1;o0){for(var n=0;n=this.$highlightIndentGuideMarker.start+1){if(n.row>=this.$highlightIndentGuideMarker.end)break;this.$setIndentGuideActive(n,t)}}else for(var i=e.length-1;i>=0;i--){var n=e[i];if(this.$highlightIndentGuideMarker.end&&n.row=r;)a=this.$renderToken(l,a,c,u.substring(0,r-n)),u=u.substring(r-n),n=r,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat("\xa0",i.indent),this.element)),a=0,r=i[++s]||Number.MAX_VALUE;0!=u.length&&(n+=u.length,a=this.$renderToken(l,a,c,u))}}i[i.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,a,null,"",!0)},this.$renderSimpleLine=function(e,t){for(var i=0,n=0;nthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,i,s,o);i=this.$renderToken(e,i,s,o)}}},this.$renderOverflowMessage=function(e,t,i,n,s){i&&this.$renderToken(e,t,i,n.slice(0,this.MAX_LINE_LENGTH-t));var o=this.dom.createElement("span");o.className="ace_inline_button ace_keyword ace_toggle_wrap",o.textContent=s?"":"",e.appendChild(o)},this.$renderLine=function(e,t,i){if(i||!1==i||(i=this.session.getFoldLine(t)),i)var n=this.$getFoldLineTokens(t,i);else var n=this.session.getTokens(t);var s=e;if(n.length){var o=this.session.getRowSplitData(t);if(o&&o.length){this.$renderWrappedLine(e,n,o);var s=e.lastChild}else{var s=e;this.$useLineGroups()&&(s=this.$createLineElement(),e.appendChild(s)),this.$renderSimpleLine(s,n)}}else this.$useLineGroups()&&(s=this.$createLineElement(),e.appendChild(s));if(this.showEOL&&s){i&&(t=i.end.row);var r=this.dom.createElement("span");r.className="ace_invisible ace_invisible_eol",r.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,s.appendChild(r)}},this.$getFoldLineTokens=function(e,t){var i=this.session,n=[],s=i.getTokens(e);return t.walk(function(e,t,o,r,a){null!=e?n.push({type:"fold",value:e}):(a&&(s=i.getTokens(t)),s.length&&function(e,t,i){for(var s=0,o=0;o+e[s].value.lengthi-t&&(r=r.substring(0,i-t)),n.push({type:e[s].type,value:r}),o=t+r.length,s+=1}for(;oi?n.push({type:e[s].type,value:r.substring(0,i-o)}):n.push(e[s]),o+=r.length,s+=1}}(s,r,o))},t.end.row,this.session.getLine(t.end.row).length),n},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";var n=e("../lib/dom"),s=function(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),n.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i--;)n.setStyle(t[i].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout((function(){this.$isAnimating&&n.addCssClass(this.element,"ace_animate-blinking")}).bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,n.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,n.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=n.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,n.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,n.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,n.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),!this.isBlinking||!this.blinkInterval||!this.isVisible){this.$stopCssAnimation();return}if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout((function(){this.$isSmoothBlinking&&n.addCssClass(this.element,"ace_smooth-blinking")}).bind(this))),n.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=(function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}).bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(e);return{left:this.$padding+(this.session.$bidiHandler.isBidiRow(i.row,e.row)?this.session.$bidiHandler.getPosLeft(i.column):i.column*this.config.characterWidth),top:(i.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset)&&!(r.top<0)||!(i>1)){var a=this.cursors[s++]||this.addCursor(),l=a.style;this.drawCursor?this.drawCursor(a,r,e,t[i],this.session):this.isCursorInView(r,e)?(n.setStyle(l,"display","block"),n.translate(a,r.left,r.top),n.setStyle(l,"width",Math.round(e.characterWidth)+"px"),n.setStyle(l,"height",e.lineHeight+"px")):n.setStyle(l,"display","none")}}for(;this.cursors.length>s;)this.removeCursor();var h=this.session.getOverwrite();this.$setOverwrite(h),this.$pixelPos=r,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?n.addCssClass(this.element,"ace_overwrite-cursors"):n.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(s.prototype),t.Cursor=s}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),o=e("./lib/event"),r=e("./lib/event_emitter").EventEmitter,a=function(e){this.element=s.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=s.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){n.implement(this,r),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var l=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=s.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};n.inherits(l,a),(function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>32768?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}).call(l.prototype);var h=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(h,a),(function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}).call(h.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=h,t.VScrollBar=l,t.HScrollBar=h}),ace.define("ace/scrollbar_custom",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),o=e("./lib/event"),r=e("./lib/event_emitter").EventEmitter;s.importCssString(".ace_editor>.ace_sb-v div, .ace_editor>.ace_sb-h div{\n position: absolute;\n background: rgba(128, 128, 128, 0.6);\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n border: 1px solid #bbb;\n border-radius: 2px;\n z-index: 8;\n}\n.ace_editor>.ace_sb-v, .ace_editor>.ace_sb-h {\n position: absolute;\n z-index: 6;\n background: none;\n overflow: hidden!important;\n}\n.ace_editor>.ace_sb-v {\n z-index: 6;\n right: 0;\n top: 0;\n width: 12px;\n}\n.ace_editor>.ace_sb-v div {\n z-index: 8;\n right: 0;\n width: 100%;\n}\n.ace_editor>.ace_sb-h {\n bottom: 0;\n left: 0;\n height: 12px;\n}\n.ace_editor>.ace_sb-h div {\n bottom: 0;\n height: 100%;\n}\n.ace_editor>.ace_sb_grabbed {\n z-index: 8;\n background: #000;\n}","ace_scrollbar.css",!1);var a=function(e){this.element=s.createElement("div"),this.element.className="ace_sb"+this.classSuffix,this.inner=s.createElement("div"),this.inner.className="",this.element.appendChild(this.inner),this.VScrollWidth=12,this.HScrollHeight=12,e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addMultiMouseDownListener(this.element,[500,300,300],this,"onMouseDown")};(function(){n.implement(this,r),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(a.prototype);var l=function(e,t){a.call(this,e),this.scrollTop=0,this.scrollHeight=0,this.parent=e,this.width=this.VScrollWidth,this.renderer=t,this.inner.style.width=this.element.style.width=(this.width||15)+"px",this.$minWidth=0};n.inherits(l,a),(function(){this.classSuffix="-v",n.implement(this,r),this.onMouseDown=function(e,t){if("mousedown"===e&&0===o.getButton(t)&&2!==t.detail){if(t.target===this.inner){var i=this,n=t.clientY,s=t.clientY,r=this.thumbTop;o.capture(this.inner,function(e){n=e.clientY},function(){clearInterval(a)});var a=setInterval(function(){if(void 0!==n){var e=i.scrollTopFromThumbTop(r+n-s);e!==i.scrollTop&&i._emit("scroll",{data:e})}},20);return o.preventDefault(t)}var l=t.clientY-this.element.getBoundingClientRect().top-this.thumbHeight/2;return this._emit("scroll",{data:this.scrollTopFromThumbTop(l)}),o.preventDefault(t)}},this.getHeight=function(){return this.height},this.scrollTopFromThumbTop=function(e){var t=e*(this.pageHeight-this.viewHeight)/(this.slideHeight-this.thumbHeight);return(t>>=0)<0?t=0:t>this.pageHeight-this.viewHeight&&(t=this.pageHeight-this.viewHeight),t},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.height=Math.max(0,e),this.slideHeight=this.height,this.viewHeight=this.height,this.setScrollHeight(this.pageHeight,!0)},this.setInnerHeight=this.setScrollHeight=function(e,t){(this.pageHeight!==e||t)&&(this.pageHeight=e,this.thumbHeight=this.slideHeight*this.viewHeight/this.pageHeight,this.thumbHeight>this.slideHeight&&(this.thumbHeight=this.slideHeight),this.thumbHeight<15&&(this.thumbHeight=15),this.inner.style.height=this.thumbHeight+"px",this.scrollTop>this.pageHeight-this.viewHeight&&(this.scrollTop=this.pageHeight-this.viewHeight,this.scrollTop<0&&(this.scrollTop=0),this._emit("scroll",{data:this.scrollTop})))},this.setScrollTop=function(e){this.scrollTop=e,e<0&&(e=0),this.thumbTop=e*(this.slideHeight-this.thumbHeight)/(this.pageHeight-this.viewHeight),this.inner.style.top=this.thumbTop+"px"}}).call(l.prototype);var h=function(e,t){a.call(this,e),this.scrollLeft=0,this.scrollWidth=0,this.height=this.HScrollHeight,this.inner.style.height=this.element.style.height=(this.height||12)+"px",this.renderer=t};n.inherits(h,a),(function(){this.classSuffix="-h",n.implement(this,r),this.onMouseDown=function(e,t){if("mousedown"===e&&0===o.getButton(t)&&2!==t.detail){if(t.target===this.inner){var i=this,n=t.clientX,s=t.clientX,r=this.thumbLeft;o.capture(this.inner,function(e){n=e.clientX},function(){clearInterval(a)});var a=setInterval(function(){if(void 0!==n){var e=i.scrollLeftFromThumbLeft(r+n-s);e!==i.scrollLeft&&i._emit("scroll",{data:e})}},20);return o.preventDefault(t)}var l=t.clientX-this.element.getBoundingClientRect().left-this.thumbWidth/2;return this._emit("scroll",{data:this.scrollLeftFromThumbLeft(l)}),o.preventDefault(t)}},this.getHeight=function(){return this.isVisible?this.height:0},this.scrollLeftFromThumbLeft=function(e){var t=e*(this.pageWidth-this.viewWidth)/(this.slideWidth-this.thumbWidth);return(t>>=0)<0?t=0:t>this.pageWidth-this.viewWidth&&(t=this.pageWidth-this.viewWidth),t},this.setWidth=function(e){this.width=Math.max(0,e),this.element.style.width=this.width+"px",this.slideWidth=this.width,this.viewWidth=this.width,this.setScrollWidth(this.pageWidth,!0)},this.setInnerWidth=this.setScrollWidth=function(e,t){(this.pageWidth!==e||t)&&(this.pageWidth=e,this.thumbWidth=this.slideWidth*this.viewWidth/this.pageWidth,this.thumbWidth>this.slideWidth&&(this.thumbWidth=this.slideWidth),this.thumbWidth<15&&(this.thumbWidth=15),this.inner.style.width=this.thumbWidth+"px",this.scrollLeft>this.pageWidth-this.viewWidth&&(this.scrollLeft=this.pageWidth-this.viewWidth,this.scrollLeft<0&&(this.scrollLeft=0),this._emit("scroll",{data:this.scrollLeft})))},this.setScrollLeft=function(e){this.scrollLeft=e,e<0&&(e=0),this.thumbLeft=e*(this.slideWidth-this.thumbWidth)/(this.pageWidth-this.viewWidth),this.inner.style.left=this.thumbLeft+"px"}}).call(h.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=h,t.VScrollBar=l,t.HScrollBar=h}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,i){"use strict";var n=e("./lib/event"),s=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var i=this;this._flush=function(e){i.pending=!1;var t=i.changes;if(t&&(n.blockIdle(100),i.changes=0,i.onRender(t)),i.changes){if(i.$recursionLimit--<0)return;i.schedule()}else i.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(n.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(s.prototype),t.RenderLoop=s}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,i){var n=e("../lib/oop"),s=e("../lib/dom"),o=e("../lib/lang"),r=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,h="function"==typeof ResizeObserver;(function(){n.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver(function(t){e.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=r.onIdle(function t(){e.checkForSizeChanges(),r.onIdle(t,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){return this.$main.textContent=o.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=s.buildDom([e(0,0),e(200,0),e(0,200),e(200,200)],this.el)},this.transformCoordinates=function(e,t){function i(e,t,i){var n=e[1]*t[0]-e[0]*t[1];return[(-t[1]*i[0]+t[0]*i[1])/n,(+e[1]*i[0]-e[0]*i[1])/n]}function n(e,t){return[e[0]-t[0],e[1]-t[1]]}function s(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function r(e){var t=e.getBoundingClientRect();return[t.left,t.top]}e&&(e=o(1/this.$getZoom(this.el),e)),this.els||this.$initTransformMeasureNodes();var a=r(this.els[0]),l=r(this.els[1]),h=r(this.els[2]),c=r(this.els[3]),u=i(n(c,l),n(c,h),n(s(l,h),s(c,a))),d=o(1+u[0],n(l,a)),g=o(1+u[1],n(h,a));if(t){var f=u[0]*t[0]/200+u[1]*t[1]/200+1,m=s(o(t[0],d),o(t[1],g));return s(o(1/f/200,m),a)}var p=n(e,a),v=i(n(d,o(u[0],p)),n(g,o(u[1],p)),p);return o(200,v)}}).call((t.FontMetrics=function(e){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",256),this.$characterSize={width:0,height:0},h?this.$addObserver():this.checkForSizeChanges()}).prototype)}),ace.define("ace/css/editor.css",["require","exports","module"],function(e,t,i){i.exports='/*\nstyles = []\nfor (var i = 1; i < 16; i++) {\n styles.push(".ace_br" + i + "{" + (\n ["top-left", "top-right", "bottom-right", "bottom-left"]\n ).map(function(x, j) {\n return i & (1< .ace_line, .ace_text-layer > .ace_line_group {\n contain: style size layout;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n}\n\n.ace_hidpi .ace_text-layer,\n.ace_hidpi .ace_gutter-layer,\n.ace_hidpi .ace_content,\n.ace_hidpi .ace_gutter {\n contain: strict;\n will-change: transform;\n}\n.ace_hidpi .ace_text-layer > .ace_line, \n.ace_hidpi .ace_text-layer > .ace_line_group {\n contain: strict;\n}\n\n.ace_cjk {\n display: inline-block;\n text-align: center;\n}\n\n.ace_cursor-layer {\n z-index: 4;\n}\n\n.ace_cursor {\n z-index: 4;\n position: absolute;\n box-sizing: border-box;\n border-left: 2px solid;\n /* workaround for smooth cursor repaintng whole screen in chrome */\n transform: translatez(0);\n}\n\n.ace_multiselect .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_slim-cursors .ace_cursor {\n border-left-width: 1px;\n}\n\n.ace_overwrite-cursors .ace_cursor {\n border-left-width: 0;\n border-bottom: 1px solid;\n}\n\n.ace_hidden-cursors .ace_cursor {\n opacity: 0.2;\n}\n\n.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {\n opacity: 0;\n}\n\n.ace_smooth-blinking .ace_cursor {\n transition: opacity 0.18s;\n}\n\n.ace_animate-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: step-end;\n animation-name: blink-ace-animate;\n animation-iteration-count: infinite;\n}\n\n.ace_animate-blinking.ace_smooth-blinking .ace_cursor {\n animation-duration: 1000ms;\n animation-timing-function: ease-in-out;\n animation-name: blink-ace-animate-smooth;\n}\n \n@keyframes blink-ace-animate {\n from, to { opacity: 1; }\n 60% { opacity: 0; }\n}\n\n@keyframes blink-ace-animate-smooth {\n from, to { opacity: 1; }\n 45% { opacity: 1; }\n 60% { opacity: 0; }\n 85% { opacity: 0; }\n}\n\n.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {\n position: absolute;\n z-index: 3;\n}\n\n.ace_marker-layer .ace_selection {\n position: absolute;\n z-index: 5;\n}\n\n.ace_marker-layer .ace_bracket {\n position: absolute;\n z-index: 6;\n}\n\n.ace_marker-layer .ace_error_bracket {\n position: absolute;\n border-bottom: 1px solid #DE5555;\n border-radius: 0;\n}\n\n.ace_marker-layer .ace_active-line {\n position: absolute;\n z-index: 2;\n}\n\n.ace_marker-layer .ace_selected-word {\n position: absolute;\n z-index: 4;\n box-sizing: border-box;\n}\n\n.ace_line .ace_fold {\n box-sizing: border-box;\n\n display: inline-block;\n height: 11px;\n margin-top: -2px;\n vertical-align: middle;\n\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");\n background-repeat: no-repeat, repeat-x;\n background-position: center center, top left;\n color: transparent;\n\n border: 1px solid black;\n border-radius: 2px;\n\n cursor: pointer;\n pointer-events: auto;\n}\n\n.ace_dark .ace_fold {\n}\n\n.ace_fold:hover{\n background-image:\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),\n url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");\n}\n\n.ace_tooltip {\n background-color: #FFF;\n background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));\n border: 1px solid gray;\n border-radius: 1px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n color: black;\n max-width: 100%;\n padding: 3px 4px;\n position: fixed;\n z-index: 999999;\n box-sizing: border-box;\n cursor: default;\n white-space: pre;\n word-wrap: break-word;\n line-height: normal;\n font-style: normal;\n font-weight: normal;\n letter-spacing: normal;\n pointer-events: none;\n}\n\n.ace_folding-enabled > .ace_gutter-cell {\n padding-right: 13px;\n}\n\n.ace_fold-widget {\n box-sizing: border-box;\n\n margin: 0 -12px 0 1px;\n display: none;\n width: 11px;\n vertical-align: top;\n\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: 3px;\n \n border: 1px solid transparent;\n cursor: pointer;\n}\n\n.ace_folding-enabled .ace_fold-widget {\n display: inline-block; \n}\n\n.ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");\n}\n\n.ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");\n}\n\n.ace_fold-widget:hover {\n border: 1px solid rgba(0, 0, 0, 0.3);\n background-color: rgba(255, 255, 255, 0.2);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);\n}\n\n.ace_fold-widget:active {\n border: 1px solid rgba(0, 0, 0, 0.4);\n background-color: rgba(0, 0, 0, 0.05);\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);\n}\n/**\n * Dark version for fold widgets\n */\n.ace_dark .ace_fold-widget {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");\n}\n.ace_dark .ace_fold-widget.ace_end {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget.ace_closed {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");\n}\n.ace_dark .ace_fold-widget:hover {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n background-color: rgba(255, 255, 255, 0.1);\n}\n.ace_dark .ace_fold-widget:active {\n box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);\n}\n\n.ace_inline_button {\n border: 1px solid lightgray;\n display: inline-block;\n margin: -1px 8px;\n padding: 0 5px;\n pointer-events: auto;\n cursor: pointer;\n}\n.ace_inline_button:hover {\n border-color: gray;\n background: rgba(200,200,200,0.2);\n display: inline-block;\n pointer-events: auto;\n}\n\n.ace_fold-widget.ace_invalid {\n background-color: #FFB4B4;\n border-color: #DE5555;\n}\n\n.ace_fade-fold-widgets .ace_fold-widget {\n transition: opacity 0.4s ease 0.05s;\n opacity: 0;\n}\n\n.ace_fade-fold-widgets:hover .ace_fold-widget {\n transition: opacity 0.05s ease 0.05s;\n opacity:1;\n}\n\n.ace_underline {\n text-decoration: underline;\n}\n\n.ace_bold {\n font-weight: bold;\n}\n\n.ace_nobold .ace_bold {\n font-weight: normal;\n}\n\n.ace_italic {\n font-style: italic;\n}\n\n\n.ace_error-marker {\n background-color: rgba(255, 0, 0,0.2);\n position: absolute;\n z-index: 9;\n}\n\n.ace_highlight-marker {\n background-color: rgba(255, 255, 0,0.2);\n position: absolute;\n z-index: 8;\n}\n\n.ace_mobile-menu {\n position: absolute;\n line-height: 1.5;\n border-radius: 4px;\n -ms-user-select: none;\n -moz-user-select: none;\n -webkit-user-select: none;\n user-select: none;\n background: white;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #dcdcdc;\n color: black;\n}\n.ace_dark > .ace_mobile-menu {\n background: #333;\n color: #ccc;\n box-shadow: 1px 3px 2px grey;\n border: 1px solid #444;\n\n}\n.ace_mobile-button {\n padding: 2px;\n cursor: pointer;\n overflow: hidden;\n}\n.ace_mobile-button:hover {\n background-color: #eee;\n opacity:1;\n}\n.ace_mobile-button:active {\n background-color: #ddd;\n}\n\n.ace_placeholder {\n font-family: arial;\n transform: scale(0.9);\n transform-origin: left;\n white-space: pre;\n opacity: 0.7;\n margin: 0 10px;\n}'}),ace.define("ace/layer/decorators",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("../lib/dom"),s=e("../lib/oop"),o=e("../lib/event_emitter").EventEmitter,r=function(e,t){this.canvas=n.createElement("canvas"),this.renderer=t,this.pixelRatio=1,this.maxHeight=t.layerConfig.maxHeight,this.lineHeight=t.layerConfig.lineHeight,this.canvasHeight=e.parent.scrollHeight,this.heightRatio=this.canvasHeight/this.maxHeight,this.canvasWidth=e.width,this.minDecorationHeight=2*this.pixelRatio|0,this.halfMinDecorationHeight=this.minDecorationHeight/2|0,this.canvas.width=this.canvasWidth,this.canvas.height=this.canvasHeight,this.canvas.style.top="0px",this.canvas.style.right="0px",this.canvas.style.zIndex="7px",this.canvas.style.position="absolute",this.colors={},this.colors.dark={error:"rgba(255, 18, 18, 1)",warning:"rgba(18, 136, 18, 1)",info:"rgba(18, 18, 136, 1)"},this.colors.light={error:"rgb(255,51,51)",warning:"rgb(32,133,72)",info:"rgb(35,68,138)"},e.element.appendChild(this.canvas)};(function(){s.implement(this,o),this.$updateDecorators=function(e){var t=!0===this.renderer.theme.isDark?this.colors.dark:this.colors.light;e&&(this.maxHeight=e.maxHeight,this.lineHeight=e.lineHeight,this.canvasHeight=e.height,(e.lastRow+1)*this.lineHeightt.priority?1:0});for(var o=this.renderer.session.$foldData,r=0;rthis.canvasHeight&&(d=this.canvasHeight-this.halfMinDecorationHeight),c=Math.round(d-this.halfMinDecorationHeight),u=Math.round(d+this.halfMinDecorationHeight)}i.fillStyle=t[n[r].type]||null,i.fillRect(0,h,this.canvasWidth,u-c)}}var g=this.renderer.session.selection.getCursor();if(g){var l=this.compensateFoldRows(g.row,o),h=Math.round((g.row-l)*this.lineHeight*this.heightRatio);i.fillStyle="rgba(0, 0, 0, 0.5)",i.fillRect(0,h,this.canvasWidth,2)}},this.compensateFoldRows=function(e,t){var i=0;if(t&&t.length>0)for(var n=0;nt[n].start.row&&e=t[n].end.row&&(i+=t[n].end.row-t[n].start.row);return i}}).call(r.prototype),t.Decorator=r}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/scrollbar_custom","ace/scrollbar_custom","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/css/editor.css","ace/layer/decorators","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),o=e("./config"),r=e("./layer/gutter").Gutter,a=e("./layer/marker").Marker,l=e("./layer/text").Text,h=e("./layer/cursor").Cursor,c=e("./scrollbar").HScrollBar,u=e("./scrollbar").VScrollBar,d=e("./scrollbar_custom").HScrollBar,g=e("./scrollbar_custom").VScrollBar,f=e("./renderloop").RenderLoop,m=e("./layer/font_metrics").FontMetrics,p=e("./lib/event_emitter").EventEmitter,v=e("./css/editor.css"),w=e("./layer/decorators").Decorator,$=e("./lib/useragent"),b=$.isIE;s.importCssString(v,"ace_editor.css",!1);var y=function(e,t){var i=this;this.container=e||s.createElement("div"),s.addCssClass(this.container,"ace_editor"),s.HI_DPI&&s.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==o.get("useStrictCSP")&&o.set("useStrictCSP",!1),this.$gutter=s.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=s.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=s.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new r(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new a(this.content);var n=this.$textLayer=new l(this.content);this.canvas=n.element,this.$markerFront=new a(this.content),this.$cursorLayer=new h(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new c(this.container,this),this.scrollBarV.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollTop(e.data-i.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollLeft(e.data-i.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new m(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!$.isIOS,this.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,n.implement(this,p),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),s.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&0>=e.getScrollTop()&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,i){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,i,n){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var s=this.container;n||(n=s.clientHeight||s.scrollHeight),i||(i=s.clientWidth||s.scrollWidth);var o=this.$updateCachedSize(e,t,i,n);if(!this.$size.scrollerHeight||!i&&!n)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.$customScrollbar&&this.$updateCustomScrollbar(!0)}},this.$updateCachedSize=function(e,t,i,n){n-=this.$extraHeight||0;var o=0,r=this.$size,a={width:r.width,height:r.height,scrollerHeight:r.scrollerHeight,scrollerWidth:r.scrollerWidth};if(n&&(e||r.height!=n)&&(r.height=n,o|=this.CHANGE_SIZE,r.scrollerHeight=r.height,this.$horizScroll&&(r.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.setHeight(r.scrollerHeight),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),i&&(e||r.width!=i)){o|=this.CHANGE_SIZE,r.width=i,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,s.setStyle(this.scrollBarH.element.style,"left",t+"px"),s.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),r.scrollerWidth=Math.max(0,i-t-this.scrollBarV.getWidth()-this.margin.h),s.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";s.setStyle(this.scrollBarH.element.style,"right",l),s.setStyle(this.scroller.style,"right",l),s.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),this.scrollBarH.setWidth(r.scrollerWidth),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return r.$dirty=!i||!n,o&&this._signal("resize",a),o},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=Math.floor((this.$size.scrollerWidth-2*this.$padding)/this.characterWidth);return this.session.adjustWrapLimit(e,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.getHighlightIndentGuides=function(){return this.getOption("highlightIndentGuides")},this.setHighlightIndentGuides=function(e){this.setOption("highlightIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=s.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=s.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(!this.$keepTextAreaAtCursor&&!t){s.translate(this.textarea,-100,0);return}var i=this.$cursorLayer.$pixelPos;if(i){t&&t.markerRange&&(i=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var n=this.layerConfig,o=i.top,r=i.left;o-=n.offset;var a=t&&t.useTextareaForIME?this.lineHeight:b?0:1;if(o<0||o>n.height-a){s.translate(this.textarea,0,0);return}var l=1,h=this.$size.height-a;if(t){if(t.useTextareaForIME){var c=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(c)[0]}else o+=this.lineHeight+2}else o+=this.lineHeight;(r-=this.scrollLeft)>this.$size.scrollerWidth-l&&(r=this.$size.scrollerWidth-l),r+=this.gutterWidth+this.margin.left,s.setStyle(e,"height",a+"px"),s.setStyle(e,"width",l+"px"),s.translate(this.textarea,Math.min(r,this.$size.scrollerWidth-l),Math.min(o,h))}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,i,n){var s=this.scrollMargin;s.top=0|e,s.bottom=0|t,s.right=0|n,s.left=0|i,s.v=s.top+s.bottom,s.h=s.left+s.right,s.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-s.top),this.updateFull()},this.setMargin=function(e,t,i,n){var s=this.margin;s.top=0|e,s.bottom=0|t,s.right=0|n,s.left=0|i,s.v=s.top+s.bottom,s.h=s.left+s.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!e&&!t){this.$changes|=e;return}if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var i=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),i.firstRow!=this.layerConfig.firstRow&&i.firstRowScreen==this.layerConfig.firstRowScreen){var n=this.scrollTop+(i.firstRow-this.layerConfig.firstRow)*this.lineHeight;n>0&&(this.scrollTop=n,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}i=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),s.translate(this.content,-this.scrollLeft,-i.offset);var o=i.width+2*this.$padding+"px",r=i.minHeight+"px";s.setStyle(this.content.style,"width",o),s.setStyle(this.content.style,"height",r)}if(e&this.CHANGE_H_SCROLL&&(s.translate(this.content,-this.scrollLeft,-i.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL){this.$changedLines=null,this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(i),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),this._signal("afterRender",e);return}if(e&this.CHANGE_SCROLL){this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(i):this.$textLayer.scrollLines(i),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(i):this.$gutterLayer.scrollLines(i)),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(i),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),this._signal("afterRender",e);return}e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(i)):e&this.CHANGE_LINES?((this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(i),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(i)):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?(this.$showGutter&&this.$gutterLayer.update(i),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(i)):e&this.CHANGE_CURSOR&&(this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(i),this.$customScrollbar&&this.$scrollDecorator.$updateDecorators(i)),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(i),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(i),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(i),this._signal("afterRender",e)},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,i=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&i>this.$maxPixelHeight&&(i=this.$maxPixelHeight);var n=!(i<=2*this.lineHeight)&&e>t;if(i!=this.desiredHeight||this.$size.height!=this.desiredHeight||n!=this.$vScroll){n!=this.$vScroll&&(this.$vScroll=n,this.scrollBarV.setVisible(n));var s=this.container.clientWidth;this.container.style.height=i+"px",this.$updateCachedSize(!0,this.$gutterWidth,s,i),this.desiredHeight=i,this._signal("autosize")}},this.$computeLayerConfig=function(){var e,t,i=this.session,n=this.$size,s=n.height<=2*this.lineHeight,o=this.session.getScreenLength()*this.lineHeight,r=this.$getLongestLine(),a=!s&&(this.$hScrollBarAlwaysVisible||n.scrollerWidth-r-2*this.$padding<0),l=this.$horizScroll!==a;l&&(this.$horizScroll=a,this.scrollBarH.setVisible(a));var h=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=n.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(n.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;o+=u;var d=this.scrollMargin;this.session.setScrollTop(Math.max(-d.top,Math.min(this.scrollTop,o-n.scrollerHeight+d.bottom))),this.session.setScrollLeft(Math.max(-d.left,Math.min(this.scrollLeft,r+2*this.$padding-n.scrollerWidth+d.right)));var g=!s&&(this.$vScrollBarAlwaysVisible||n.scrollerHeight-o+u<0||this.scrollTop>d.top),f=h!==g;f&&(this.$vScroll=g,this.scrollBarV.setVisible(g));var m=this.scrollTop%this.lineHeight,p=Math.ceil(c/this.lineHeight)-1,v=Math.max(0,Math.round((this.scrollTop-m)/this.lineHeight)),w=v+p,$=this.lineHeight;v=i.screenToDocumentRow(v,0);var b=i.getFoldLine(v);b&&(v=b.start.row),e=i.documentToScreenRow(v,0),t=i.getRowLength(v)*$,w=Math.min(i.screenToDocumentRow(w,0),i.getLength()-1),c=n.scrollerHeight+i.getRowLength(w)*$+t,m=this.scrollTop-e*$;var y=0;return(this.layerConfig.width!=r||l)&&(y=this.CHANGE_H_SCROLL),(l||f)&&(y|=this.$updateCachedSize(!0,this.gutterWidth,n.width,n.height),this._signal("scrollbarVisibilityChanged"),f&&(r=this.$getLongestLine())),this.layerConfig={width:r,padding:this.$padding,firstRow:v,firstRowScreen:e,lastRow:w,lineHeight:$,characterWidth:this.characterWidth,minHeight:c,maxHeight:o,offset:m,gutterOffset:$?Math.max(0,Math.ceil((m+n.height-n.scrollerHeight)/$)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(r-this.$padding),y},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var i=this.layerConfig;if(!(e>i.lastRow+1)&&!(tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,i){this.scrollCursorIntoView(e,i),this.scrollCursorIntoView(t,i)},this.scrollCursorIntoView=function(e,t,i){if(0!==this.$size.scrollerHeight){var n=this.$cursorLayer.getPixelPosition(e),s=n.left,o=n.top,r=i&&i.top||0,a=i&&i.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+r>o?(t&&l+r>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-as?(s=1-this.scrollMargin.top||t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(e,t){if(this.$hasCssTransforms){i={top:0,left:0};var i,n=this.$fontMetrics.transformCoordinates([e,t]);e=n[1]-this.gutterWidth-this.margin.left,t=n[0]}else i=this.scroller.getBoundingClientRect();var s=e+this.scrollLeft-i.left-this.$padding,o=s/this.characterWidth,r=Math.floor((t+this.scrollTop-i.top)/this.lineHeight),a=this.$blockCursor?Math.floor(o):Math.round(o);return{row:r,column:a,side:o-a>0?1:-1,offsetX:s}},this.screenToTextCoordinates=function(e,t){if(this.$hasCssTransforms){i={top:0,left:0};var i,n=this.$fontMetrics.transformCoordinates([e,t]);e=n[1]-this.gutterWidth-this.margin.left,t=n[0]}else i=this.scroller.getBoundingClientRect();var s=e+this.scrollLeft-i.left-this.$padding,o=s/this.characterWidth,r=this.$blockCursor?Math.floor(o):Math.round(o),a=Math.floor((t+this.scrollTop-i.top)/this.lineHeight);return this.session.screenToDocumentPosition(a,Math.max(r,0),s)},this.textToScreenCoordinates=function(e,t){var i=this.scroller.getBoundingClientRect(),n=this.session.documentToScreenPosition(e,t),s=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e)?this.session.$bidiHandler.getPosLeft(n.column):Math.round(n.column*this.characterWidth)),o=n.row*this.lineHeight;return{pageX:i.left+s-this.scrollLeft,pageY:i.top+o-this.scrollTop}},this.visualizeFocus=function(){s.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){s.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),void 0==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(s.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),s.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,i,n){var s=this.session;s.bgTokenizer.lines[i]=null;var o={type:t,value:e},r=s.getTokens(i);if(null==n)r.push(o);else for(var a=0,l=0;l50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(l.prototype),t.UIWorkerClient=function(e,t,i){var n=null,s=!1,a=Object.create(o),h=[],c=new l({messageBuffer:h,terminate:function(){},postMessage:function(e){h.push(e),n&&(s?setTimeout(u):u())}});c.setEmitSync=function(e){s=e};var u=function(){var e=h.shift();e.command?n[e.command].apply(n,e.args):e.event&&a._signal(e.event,e.data)};return a.postMessage=function(e){c.onMessage({data:e})},a.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},a.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},r.loadModule(["worker",t],function(e){for(n=new e[i](a);h.length;)u()}),c},t.WorkerClient=l,t.createWorker=a}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,i){"use strict";var n=e("./range").Range,s=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),r=function(e,t,i,n,s,o){var r=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=s,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate,!0),this.$others=n,this.$onCursorChange=function(){setTimeout(function(){r.onCursorChange()})},this.$pos=i;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,s),this.setup=function(){var e=this,t=this.doc,i=this.session;this.selectionBefore=i.selection.toJSON(),i.selection.inMultiSelectMode&&i.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var s=this.pos;s.$insertRight=!0,s.detach(),s.markerId=i.addMarker(new n(s.row,s.column,s.row,s.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(i){var n=t.createAnchor(i.row,i.column);n.$insertRight=!0,n.detach(),e.others.push(n)}),i.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach(function(i){i.markerId=e.addMarker(new n(i.row,i.column,i.row,i.column+t.length),t.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&e.start.column<=this.pos.column+this.length+1,s=e.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=t),i&&!this.session.$fromUndo){if("insert"===e.action)for(var o=this.others.length-1;o>=0;o--){var r=this.others[o],a={row:r.row,column:r.column+s};this.doc.insertMergedLines(a,e.lines)}else if("remove"===e.action)for(var o=this.others.length-1;o>=0;o--){var r=this.others[o],a={row:r.row,column:r.column+s};this.doc.remove(new n(a.row,a.column,a.row,a.column-t))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,i=function(i,s){t.removeMarker(i.markerId),i.markerId=t.addMarker(new n(i.row,i.column,i.row,i.column+e.length),s,null,!1)};i(this.pos,this.mainClass);for(var s=this.others.length;s--;)i(this.others[s],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;i1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var n=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new n(t.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,t,i){var n=e("./range_list").RangeList,s=e("./range").Range,o=e("./selection").Selection,r=e("./mouse/multi_select_handler").onMouseDown,a=e("./lib/event"),l=e("./lib/lang"),h=e("./commands/multi_select_commands");t.commands=h.defaultCommands.concat(h.multiSelectCommands);var c=new(e("./search")).Search;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(e("./edit_session").EditSession.prototype),(function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var i=this.toOrientedRange();if(this.rangeList.add(i),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(i),this.$onAddRange(i)}e.cursor||(e.cursor=e.end);var n=this.rangeList.add(e);return this.$onAddRange(e),n.length&&this.$onRemoveRange(n),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var i=e.length;i--;){var n=this.ranges.indexOf(e[i]);this.ranges.splice(n,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new n,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],i=0;i1){var e=this.rangeList.ranges,t=e[e.length-1],i=s.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(i,t.cursor==t.start)}else{var n=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor);this.rectangularRangeBlock(n,o).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,i){var n,o=[],r=e.column0;)w--;if(w>0)for(var $=0;o[$].isEmpty();)$++;for(var b=w;b>=$;b--)o[b].isEmpty()&&o.splice(b,1)}return o}}).call(o.prototype);var u=e("./editor").Editor;function d(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",r),e.commands.addCommands(h.defaultCommands),function(e){if(e.textInput){var t=e.textInput.getElement(),i=!1;a.addListener(t,"keydown",function(t){var s=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&s?i||(e.renderer.setMouseCursor("crosshair"),i=!0):i&&n()},e),a.addListener(t,"keyup",n,e),a.addListener(t,"blur",n,e)}function n(t){i&&(e.renderer.setMouseCursor(""),i=!1)}}(e))}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,i=e.length;i--;){var n=e[i];if(n.marker){this.session.removeMarker(n.marker);var s=t.indexOf(n);-1!=s&&t.splice(s,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(h.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(h.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,i=e.editor;if(i.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?n=i.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?n=i.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(i.exitMultiSelectMode(),n=t.exec(i,e.args||{})):n=t.multiSelectAction(i,e.args||{});else{var n=t.exec(i,e.args||{});i.multiSelect.addRange(i.multiSelect.toOrientedRange()),i.multiSelect.mergeOverlappingRanges()}return n}},this.forEachSelection=function(e,t,i){if(!this.inVirtualSelectionMode){var n,s=i&&i.keepOrder,r=!0==i||i&&i.$byLines,a=this.session,l=this.selection,h=l.rangeList,c=(s?l:h).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var u=l._eventRegistry;l._eventRegistry={};var d=new o(a);this.inVirtualSelectionMode=!0;for(var g=c.length;g--;){if(r)for(;g>0&&c[g].start.row==c[g-1].end.row;)g--;d.fromOrientedRange(c[g]),d.index=g,this.selection=a.selection=d;var f=e.exec?e.exec(this,t||{}):e(this,t||{});n||void 0===f||(n=f),d.toOrientedRange(c[g])}d.detach(),this.selection=a.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=u,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),n}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,i=[],n=0;nr&&(r=i.column),nc?e.insert(n,l.stringRepeat(" ",o-c)):e.remove(new s(n.row,n.column,n.row,n.column-o+c)),t.start.column=t.end.column=r,t.start.row=t.end.row=n.row,t.cursor=t.end}),t.fromOrientedRange(i[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var c=this.selection.getRange(),u=c.start.row,d=c.end.row,g=u==d;if(g){var f,m=this.session.getLength();do f=this.session.getLine(d);while(/[=:]/.test(f)&&++d0);u<0&&(u=0),d>=m&&(d=m-1)}var p=this.session.removeFullLines(u,d);p=this.$reAlignText(p,g),this.session.insert({row:u,column:0},p.join("\n")+"\n"),g||(c.start.column=0,c.end.column=p[p.length-1].length),this.selection.setRange(c)}},this.$reAlignText=function(e,t){var i,n,s,o=!0,r=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==i?(i=t[1].length,n=t[2].length,s=t[3].length,t):(i+n+s!=t[1].length+t[2].length+t[3].length&&(r=!1),i!=t[1].length&&(o=!1),i>t[1].length&&(i=t[1].length),nt[3].length&&(s=t[3].length),t):[e]}).map(t?h:o?r?function(e){return e[2]?a(i+n-e[2].length)+e[2]+a(s)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:h:function(e){return e[2]?a(i)+e[2]+a(s)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]});function a(e){return l.stringRepeat(" ",e)}function h(e){return e[2]?a(i)+e[2]+a(n-e[2].length+s)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(u.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var i=e.oldSession;i&&(i.multiSelect.off("addRange",this.$onAddRange),i.multiSelect.off("removeRange",this.$onRemoveRange),i.multiSelect.off("multiSelect",this.$onMultiSelect),i.multiSelect.off("singleSelect",this.$onSingleSelect),i.multiSelect.lead.off("change",this.$checkMultiselectChange),i.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=d,e("./config").defineOptions(u.prototype,"editor",{enableMultiselect:{set:function(e){d(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",r)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",r))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,i){"use strict";var n=e("../../range").Range;(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,i){var n=e.getLine(i);return this.foldingStartMarker.test(n)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(n)?"end":""},this.getFoldWidgetRange=function(e,t,i){return null},this.indentationBlock=function(e,t,i){var s=/\S/,o=e.getLine(t),r=o.search(s);if(-1!=r){for(var a=i||o.length,l=e.getLength(),h=t,c=t;++th){var g=e.getLine(c).length;return new n(h,a,c,g)}}},this.openingBracketBlock=function(e,t,i,s,o){var r={row:i,column:s+1},a=e.$findClosingBracket(t,r,o);if(a){var l=e.foldWidgets[a.row];return null==l&&(l=e.getFoldWidget(a.row)),"start"==l&&a.row>r.row&&(a.row--,a.column=e.getLine(a.row).length),n.fromPoints(r,a)}},this.closingBracketBlock=function(e,t,i,s,o){var r={row:i,column:s},a=e.$findOpeningBracket(t,r);if(a)return a.column++,r.column--,n.fromPoints(a,r)}}).call((t.FoldMode=function(){}).prototype)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";var n=e("./lib/dom");function s(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return(t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e])?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)}),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},this.updateOnFold=function(e,t){var i=t.lineWidgets;if(i&&e.action){for(var n=e.data,s=n.start.row,o=n.end.row,r="add"==e.action,a=s+1;at[i].column&&i++,o.unshift(i,0),t.splice.apply(t,o),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach(function(e,i){if(e)for(t=!1,e.row=i;e.$oldWidget;)e.$oldWidget.row=i,e=e.$oldWidget}),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=n.createElement("div"),e.el.innerHTML=e.html),e.el&&(n.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var i=this.session.getFoldAt(e.row,0);if(e.$fold=i,i){var s=this.session.lineWidgets;e.row!=i.end.row||s[i.start.row]?e.hidden=!0:s[i.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,i=t&&t[e],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var i=this.session._changedWidgets,n=t.layerConfig;if(i&&i.length){for(var s=1/0,o=0;o0&&!n[s];)s--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,t.$cursorLayer.config=i;for(var r=s;r<=o;r++){var a=n[r];if(a&&a.el){if(a.hidden){a.el.style.top=-100-(a.pixelHeight||0)+"px";continue}a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:r,column:0},!0).top;a.coverLine||(l+=i.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-i.offset+"px";var h=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(h-=t.scrollLeft),a.el.style.left=h+"px",a.fullWidth&&a.screenWidth&&(a.el.style.minWidth=i.width+2*i.padding+"px"),a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(s.prototype),t.LineWidgets=s}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t,i){"use strict";var n=e("../line_widgets").LineWidgets,s=e("../lib/dom"),o=e("../range").Range;t.showErrorMarker=function(e,t){var i,r=e.session;r.widgetManager||(r.widgetManager=new n(r),r.widgetManager.attach(e));var a=e.getCursorPosition(),l=a.row,h=r.widgetManager.getWidgetsAtRow(l).filter(function(e){return"errorMarker"==e.type})[0];h?h.destroy():l-=t;var c=function(e,t,i){var n=e.getAnnotations().sort(o.comparePoints);if(n.length){var s=function(e,t,i){for(var n=0,s=e.length-1;n<=s;){var o=n+s>>1,r=i(t,e[o]);if(r>0)n=o+1;else{if(!(r<0))return o;s=o-1}}return-(n+1)}(n,{row:t,column:-1},o.comparePoints);s<0&&(s=-s-1),s>=n.length?s=i>0?0:n.length-1:0===s&&i<0&&(s=n.length-1);var r=n[s];if(r&&i){if(r.row===t){do r=n[s+=i];while(r&&r.row===t);if(!r)return n.slice()}var a=[];t=r.row;do a[i<0?"unshift":"push"](r),r=n[s+=i];while(r&&r.row==t);return a.length&&a}}}(r,l,t);if(c){var u=c[0];a.column=(u.pos&&"number"!=typeof u.column?u.pos.sc:u.column)||0,a.row=u.row,i=e.renderer.$gutterLayer.$annotations[a.row]}else{if(h)return;i={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(a.row),e.selection.moveToPosition(a);var d={row:a.row,fixedWidth:!0,coverGutter:!0,el:s.createElement("div"),type:"errorMarker"},g=d.el.appendChild(s.createElement("div")),f=d.el.appendChild(s.createElement("div"));f.className="error_widget_arrow "+i.className;var m=e.renderer.$cursorLayer.getPixelPosition(a).left;f.style.left=m+e.renderer.gutterWidth-5+"px",d.el.className="error_widget_wrapper",g.className="error_widget "+i.className,g.innerHTML=i.text.join("
    "),g.appendChild(s.createElement("div"));var p=function(e,t,i){if(0===t&&("esc"===i||"return"===i))return d.destroy(),{command:"null"}};d.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(p),r.widgetManager.removeLineWidget(d),e.off("changeSelection",d.destroy),e.off("changeSession",d.destroy),e.off("mouseup",d.destroy),e.off("change",d.destroy))},e.keyBinding.addKeyboardHandler(p),e.on("changeSelection",d.destroy),e.on("changeSession",d.destroy),e.on("mouseup",d.destroy),e.on("change",d.destroy),e.session.widgetManager.addLineWidget(d),d.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:d.el.offsetHeight})},s.importCssString("\n .error_widget_wrapper {\n background: inherit;\n color: inherit;\n border:none\n }\n .error_widget {\n border-top: solid 2px;\n border-bottom: solid 2px;\n margin: 5px 0;\n padding: 10px 40px;\n white-space: pre-wrap;\n }\n .error_widget.ace_error, .error_widget_arrow.ace_error{\n border-color: #ff5a5a\n }\n .error_widget.ace_warning, .error_widget_arrow.ace_warning{\n border-color: #F1D817\n }\n .error_widget.ace_info, .error_widget_arrow.ace_info{\n border-color: #5a5a5a\n }\n .error_widget.ace_ok, .error_widget_arrow.ace_ok{\n border-color: #5aaa5a\n }\n .error_widget_arrow {\n position: absolute;\n border: solid 5px;\n border-top-color: transparent!important;\n border-right-color: transparent!important;\n border-left-color: transparent!important;\n top: -5px;\n }\n","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config","ace/loader_build"],function(e,t,i){"use strict";e("./loader_build")(t);var n=e("./lib/dom"),s=e("./lib/event"),o=e("./range").Range,r=e("./editor").Editor,a=e("./edit_session").EditSession,l=e("./undomanager").UndoManager,h=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.edit=function(e,i){if("string"==typeof e){var o=e;if(!(e=document.getElementById(o)))throw Error("ace.edit can't find div #"+o)}if(e&&e.env&&e.env.editor instanceof r)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;a=l.value,e=n.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(a=e.textContent,e.innerHTML="");var c=t.createEditSession(a),u=new r(new h(e),c,i),d={document:c,editor:u,onResize:u.resize.bind(u,null)};return l&&(d.textarea=l),s.addListener(window,"resize",d.onResize),u.on("destroy",function(){s.removeListener(window,"resize",d.onResize),d.editor.container.env=null}),u.container.env=u.env=d,u},t.createEditSession=function(e,t){var i=new a(e,t);return i.setUndoManager(new l),i},t.Range=o,t.Editor=r,t.EditSession=a,t.UndoManager=l,t.VirtualRenderer=h,t.version=t.config.version}),ace.require(["ace/ace"],function(t){for(var i in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(i)&&(window.ace[i]=t[i]);window.ace.default=window.ace,e&&(e.exports=window.ace)})}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/81-96228d374838bf49.js b/pilot/server/static/_next/static/chunks/81-96228d374838bf49.js deleted file mode 100644 index 2a48da03d..000000000 --- a/pilot/server/static/_next/static/chunks/81-96228d374838bf49.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81],{89081:function(n,t,e){"use strict";e.d(t,{Z:function(){return z}});var r,i=function(){return(i=Object.assign||function(n){for(var t,e=1,r=arguments.length;et.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]]);return e}function u(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,o=e.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(n){i={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return u}function a(n,t,e){if(e||2==arguments.length)for(var r,i=0,o=t.length;i-1&&(o=setTimeout(function(){p.delete(n)},t)),p.set(n,i(i({},e),{timer:o}))},y=new Map,g=function(n,t){y.set(n,t),t.then(function(t){return y.delete(n),t}).catch(function(){y.delete(n)})},m={},b=function(n,t){m[n]&&m[n].forEach(function(n){return n(t)})},w=function(n,t){return m[n]||(m[n]=[]),m[n].push(t),function(){var e=m[n].indexOf(t);m[n].splice(e,1)}},x=function(n,t){var e=t.cacheKey,r=t.cacheTime,i=void 0===r?3e5:r,o=t.staleTime,f=void 0===o?0:o,l=t.setCache,v=t.getCache,m=(0,c.useRef)(),x=(0,c.useRef)(),O=function(n,t){l?l(t):h(n,i,t),b(n,t.data)},j=function(n,t){return(void 0===t&&(t=[]),v)?v(t):p.get(n)};return(s(function(){if(e){var t=j(e);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===f||new Date().getTime()-t.time<=f)&&(n.state.loading=!1)),m.current=w(e,function(t){n.setState({data:t})})}},[]),d(function(){var n;null===(n=m.current)||void 0===n||n.call(m)}),e)?{onBefore:function(n){var t=j(e,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===f||new Date().getTime()-t.time<=f?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(n,t){var r=y.get(e);return r&&r!==x.current||(r=n.apply(void 0,a([],u(t),!1)),x.current=r,g(e,r)),{servicePromise:r}},onSuccess:function(t,r){var i;e&&(null===(i=m.current)||void 0===i||i.call(m),O(e,{data:t,params:r,time:new Date().getTime()}),m.current=w(e,function(t){n.setState({data:t})}))},onMutate:function(t){var r;e&&(null===(r=m.current)||void 0===r||r.call(m),O(e,{data:t,params:n.state.params,time:new Date().getTime()}),m.current=w(e,function(t){n.setState({data:t})}))}}:{}},O=e(56762),j=e.n(O),S=function(n,t){var e=t.debounceWait,r=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,f=(0,c.useRef)(),l=(0,c.useMemo)(function(){var n={};return void 0!==r&&(n.leading=r),void 0!==i&&(n.trailing=i),void 0!==o&&(n.maxWait=o),n},[r,i,o]);return((0,c.useEffect)(function(){if(e){var t=n.runAsync.bind(n);return f.current=j()(function(n){n()},e,l),n.runAsync=function(){for(var n=[],e=0;e-1&&C.splice(n,1)})}return function(){f()}},[e,i]),d(function(){f()}),{}},k=function(n,t){var e=t.retryInterval,r=t.retryCount,i=(0,c.useRef)(),o=(0,c.useRef)(0),u=(0,c.useRef)(!1);return r?{onBefore:function(){u.current||(o.current=0),u.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,-1===r||o.current<=r){var t=null!=e?e:Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){u.current=!0,n.refresh()},t)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},B=e(25832),N=e.n(B),W=function(n,t){var e=t.throttleWait,r=t.throttleLeading,i=t.throttleTrailing,o=(0,c.useRef)(),f={};return(void 0!==r&&(f.leading=r),void 0!==i&&(f.trailing=i),(0,c.useEffect)(function(){if(e){var t=n.runAsync.bind(n);return o.current=N()(function(n){n()},e,f),n.runAsync=function(){for(var n=[],e=0;e0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=t||e<0||y&&r>=l}function w(){var n,e,r,o=i();if(b(o))return x(o);v=setTimeout(w,(n=o-d,e=o-p,r=t-n,y?a(r,l-e):r))}function x(n){return(v=void 0,g&&c)?m(n):(c=f=void 0,s)}function O(){var n,e=i(),r=b(e);if(c=arguments,f=this,d=e,r){if(void 0===v)return p=n=d,v=setTimeout(w,t),h?m(n):s;if(y)return clearTimeout(v),v=setTimeout(w,t),m(d)}return void 0===v&&(v=setTimeout(w,t)),s}return t=o(t)||0,r(e)&&(h=!!e.leading,l=(y="maxWait"in e)?u(o(e.maxWait)||0,t):l,g="trailing"in e?!!e.trailing:g),O.cancel=function(){void 0!==v&&clearTimeout(v),p=0,c=d=f=v=void 0},O.flush=function(){return void 0===v?s:x(i())},O}},74331:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},60655:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},50246:function(n,t,e){var r=e(48276),i=e(60655);n.exports=function(n){return"symbol"==typeof n||i(n)&&"[object Symbol]"==r(n)}},49552:function(n,t,e){var r=e(41314);n.exports=function(){return r.Date.now()}},25832:function(n,t,e){var r=e(56762),i=e(74331);n.exports=function(n,t,e){var o=!0,u=!0;if("function"!=typeof n)throw TypeError("Expected a function");return i(e)&&(o="leading"in e?!!e.leading:o,u="trailing"in e?!!e.trailing:u),r(n,t,{leading:o,maxWait:t,trailing:u})}},64528:function(n,t,e){var r=e(84886),i=e(74331),o=e(50246),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(o(n))return u;if(i(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=i(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=r(n);var e=c.test(n);return e||f.test(n)?l(n.slice(2),e?2:8):a.test(n)?u:+n}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/8453-e1d34a0c4726f67c.js b/pilot/server/static/_next/static/chunks/8453-e1d34a0c4726f67c.js new file mode 100644 index 000000000..cbaa40e4f --- /dev/null +++ b/pilot/server/static/_next/static/chunks/8453-e1d34a0c4726f67c.js @@ -0,0 +1,5 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8453],{31515:function(e,t,n){n.d(t,{Z:function(){return l}});var o=n(40431),r=n(86006),a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},i=n(1240),l=r.forwardRef(function(e,t){return r.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},57406:function(e,t){t.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})},57746:function(e,t,n){n.d(t,{Z:function(){return tA}});var o=n(31533),r=n(40431),a=n(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},l=n(1240),c=a.forwardRef(function(e,t){return a.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:i}))}),u={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},s=a.forwardRef(function(e,t){return a.createElement(l.Z,(0,r.Z)({},e,{ref:t,icon:u}))}),d=n(8683),f=n.n(d),p=n(65877),v=n(88684),m=n(60456),b=n(965),h=n(89301),g=n(98861),y=n(63940),$=n(78641),x=(0,a.createContext)(null),k=a.forwardRef(function(e,t){var n=e.prefixCls,o=e.className,r=e.style,i=e.id,l=e.active,c=e.tabKey,u=e.children;return a.createElement("div",{id:i&&"".concat(i,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(c),"aria-hidden":!l,style:r,className:f()(n,l&&"".concat(n,"-active"),o),ref:t},u)}),Z=["key","forceRender","style","className"];function C(e){var t=e.id,n=e.activeKey,o=e.animated,i=e.tabPosition,l=e.destroyInactiveTabPane,c=a.useContext(x),u=c.prefixCls,s=c.tabs,d=o.tabPane,m="".concat(u,"-tabpane");return a.createElement("div",{className:f()("".concat(u,"-content-holder"))},a.createElement("div",{className:f()("".concat(u,"-content"),"".concat(u,"-content-").concat(i),(0,p.Z)({},"".concat(u,"-content-animated"),d))},s.map(function(e){var i=e.key,c=e.forceRender,u=e.style,s=e.className,p=(0,h.Z)(e,Z),b=i===n;return a.createElement($.ZP,(0,r.Z)({key:i,visible:b,forceRender:c,removeOnLeave:!!l,leavedClassName:"".concat(m,"-hidden")},o.tabPaneMotion),function(e,n){var o=e.style,l=e.className;return a.createElement(k,(0,r.Z)({},p,{prefixCls:m,id:t,tabKey:i,animated:d,active:b,style:(0,v.Z)((0,v.Z)({},u),o),className:f()(s,l),ref:n}))})})))}var w=n(90151),E=n(29333),S=n(23254),_=n(66643),R=n(92510),P={width:0,height:0,left:0,top:0};function M(e,t){var n=a.useRef(e),o=a.useState({}),r=(0,m.Z)(o,2)[1];return[n.current,function(e){var o="function"==typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,r({})}]}var I=n(38358);function N(e){var t=(0,a.useState)(0),n=(0,m.Z)(t,2),o=n[0],r=n[1],i=(0,a.useRef)(0),l=(0,a.useRef)();return l.current=e,(0,I.o)(function(){var e;null===(e=l.current)||void 0===e||e.call(l)},[o]),function(){i.current===o&&(i.current+=1,r(i.current))}}var T={width:0,height:0,left:0,top:0,right:0};function O(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function L(e){return String(e).replace(/"/g,"TABS_DQ")}function D(e,t,n,o){return!!n&&!o&&!1!==e&&(void 0!==e||!1!==t&&null!==t)}var K=a.forwardRef(function(e,t){var n=e.prefixCls,o=e.editable,r=e.locale,i=e.style;return o&&!1!==o.showAdd?a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==r?void 0:r.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}),A=a.forwardRef(function(e,t){var n,o=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l={};return"object"!==(0,b.Z)(i)||a.isValidElement(i)?l.right=i:l=i,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?a.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},n):null}),z=n(90214),B=n(48580),j=B.Z.ESC,W=B.Z.TAB,G=(0,a.forwardRef)(function(e,t){var n=e.overlay,o=e.arrow,r=e.prefixCls,i=(0,a.useMemo)(function(){return"function"==typeof n?n():n},[n]),l=(0,R.sQ)(t,null==i?void 0:i.ref);return a.createElement(a.Fragment,null,o&&a.createElement("div",{className:"".concat(r,"-arrow")}),a.cloneElement(i,{ref:(0,R.Yr)(i)?l:void 0}))}),H={adjustX:1,adjustY:1},X=[0,0],V={topLeft:{points:["bl","tl"],overflow:H,offset:[0,-4],targetOffset:X},top:{points:["bc","tc"],overflow:H,offset:[0,-4],targetOffset:X},topRight:{points:["br","tr"],overflow:H,offset:[0,-4],targetOffset:X},bottomLeft:{points:["tl","bl"],overflow:H,offset:[0,4],targetOffset:X},bottom:{points:["tc","bc"],overflow:H,offset:[0,4],targetOffset:X},bottomRight:{points:["tr","br"],overflow:H,offset:[0,4],targetOffset:X}},F=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"],q=a.forwardRef(function(e,t){var n,o,i,l,c,u,s,d,v,b,g,y,$,x,k=e.arrow,Z=void 0!==k&&k,C=e.prefixCls,w=void 0===C?"rc-dropdown":C,E=e.transitionName,S=e.animation,P=e.align,M=e.placement,I=e.placements,N=e.getPopupContainer,T=e.showAction,O=e.hideAction,L=e.overlayClassName,D=e.overlayStyle,K=e.visible,A=e.trigger,B=void 0===A?["hover"]:A,H=e.autoFocus,X=e.overlay,q=e.children,Y=e.onVisibleChange,Q=(0,h.Z)(e,F),U=a.useState(),J=(0,m.Z)(U,2),ee=J[0],et=J[1],en="visible"in e?K:ee,eo=a.useRef(null),er=a.useRef(null),ea=a.useRef(null);a.useImperativeHandle(t,function(){return eo.current});var ei=function(e){et(e),null==Y||Y(e)};o=(n={visible:en,triggerRef:ea,onVisibleChange:ei,autoFocus:H,overlayRef:er}).visible,i=n.triggerRef,l=n.onVisibleChange,c=n.autoFocus,u=n.overlayRef,s=a.useRef(!1),d=function(){if(o){var e,t;null===(e=i.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==l||l(!1)}},v=function(){var e;return null!==(e=u.current)&&void 0!==e&&!!e.focus&&(u.current.focus(),s.current=!0,!0)},b=function(e){switch(e.keyCode){case j:d();break;case W:var t=!1;s.current||(t=v()),t?e.preventDefault():d()}},a.useEffect(function(){return o?(window.addEventListener("keydown",b),c&&(0,_.Z)(v,3),function(){window.removeEventListener("keydown",b),s.current=!1}):function(){s.current=!1}},[o]);var el=function(){return a.createElement(G,{ref:er,overlay:X,prefixCls:w,arrow:Z})},ec=a.cloneElement(q,{className:f()(null===(x=q.props)||void 0===x?void 0:x.className,en&&(void 0!==(g=e.openClassName)?g:"".concat(w,"-open"))),ref:(0,R.Yr)(q)?(0,R.sQ)(ea,q.ref):void 0}),eu=O;return eu||-1===B.indexOf("contextMenu")||(eu=["click"]),a.createElement(z.Z,(0,r.Z)({builtinPlacements:void 0===I?V:I},Q,{prefixCls:w,ref:eo,popupClassName:f()(L,(0,p.Z)({},"".concat(w,"-show-arrow"),Z)),popupStyle:D,action:B,showAction:T,hideAction:eu,popupPlacement:void 0===M?"bottomLeft":M,popupAlign:P,popupTransitionName:E,popupAnimation:S,popupVisible:en,stretch:(y=e.minOverlayWidthMatchTrigger,$=e.alignPoint,"minOverlayWidthMatchTrigger"in e?y:!$)?"minWidth":"",popup:"function"==typeof X?el:el(),onPopupVisibleChange:ei,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:N}),ec)}),Y=n(35960),Q=n(5004),U=n(8431),J=n(81027),ee=a.createContext(null);function et(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function en(e){return et(a.useContext(ee),e)}var eo=n(55567),er=["children","locked"],ea=a.createContext(null);function ei(e){var t=e.children,n=e.locked,o=(0,h.Z)(e,er),r=a.useContext(ea),i=(0,eo.Z)(function(){var e;return e=(0,v.Z)({},r),Object.keys(o).forEach(function(t){var n=o[t];void 0!==n&&(e[t]=n)}),e},[r,o],function(e,t){return!n&&(e[0]!==t[0]||!(0,J.Z)(e[1],t[1],!0))});return a.createElement(ea.Provider,{value:i},t)}var el=a.createContext(null);function ec(){return a.useContext(el)}var eu=a.createContext([]);function es(e){var t=a.useContext(eu);return a.useMemo(function(){return void 0!==e?[].concat((0,w.Z)(t),[e]):t},[t,e])}var ed=a.createContext(null),ef=a.createContext({}),ep=n(98498);function ev(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,ep.Z)(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),a=Number(r),i=null;return r&&!Number.isNaN(a)?i=a:o&&null===i&&(i=0),o&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var em=B.Z.LEFT,eb=B.Z.RIGHT,eh=B.Z.UP,eg=B.Z.DOWN,ey=B.Z.ENTER,e$=B.Z.ESC,ex=B.Z.HOME,ek=B.Z.END,eZ=[eh,eg,em,eb];function eC(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,w.Z)(e.querySelectorAll("*")).filter(function(e){return ev(e,t)});return ev(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function ew(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=eC(e,t),a=r.length,i=r.findIndex(function(e){return n===e});return o<0?-1===i?i=a-1:i-=1:o>0&&(i+=1),r[i=(i+a)%a]}var eE="__RC_UTIL_PATH_SPLIT__",eS=function(e){return e.join(eE)},e_="rc-menu-more";function eR(e){var t=a.useRef(e);t.current=e;var n=a.useCallback(function(){for(var e,n=arguments.length,o=Array(n),r=0;r1&&(Z.motionAppear=!1);var C=Z.onVisibleChanged;return(Z.onVisibleChanged=function(e){return b.current||e||x(!0),null==C?void 0:C(e)},y)?null:a.createElement(ei,{mode:l,locked:!b.current},a.createElement($.ZP,(0,r.Z)({visible:k},Z,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),function(e){var n=e.className,o=e.style;return a.createElement(eq,{id:t,className:n,style:o},i)}))}var e5=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],e4=["active"],e7=function(e){var t,n=e.style,o=e.className,i=e.title,l=e.eventKey,c=(e.warnKey,e.disabled),u=e.internalPopupClose,s=e.children,d=e.itemIcon,b=e.expandIcon,g=e.popupClassName,y=e.popupOffset,$=e.onClick,x=e.onMouseEnter,k=e.onMouseLeave,Z=e.onTitleClick,C=e.onTitleMouseEnter,w=e.onTitleMouseLeave,E=(0,h.Z)(e,e5),S=en(l),_=a.useContext(ea),R=_.prefixCls,P=_.mode,M=_.openKeys,I=_.disabled,N=_.overflowDisabled,T=_.activeKey,O=_.selectedKeys,L=_.itemIcon,D=_.expandIcon,K=_.onItemClick,A=_.onOpenChange,z=_.onActive,B=a.useContext(ef)._internalRenderSubMenuItem,j=a.useContext(ed).isSubPathKey,W=es(),G="".concat(R,"-submenu"),H=I||c,X=a.useRef(),V=a.useRef(),F=b||D,q=M.includes(l),Q=!N&&q,U=j(O,l),J=eD(l,H,C,w),ee=J.active,et=(0,h.Z)(J,e4),eo=a.useState(!1),er=(0,m.Z)(eo,2),el=er[0],ec=er[1],eu=function(e){H||ec(e)},ep=a.useMemo(function(){return ee||"inline"!==P&&(el||j([T],l))},[P,ee,T,el,l,j]),ev=eK(W.length),em=eR(function(e){null==$||$(eB(e)),K(e)}),eb=S&&"".concat(S,"-popup"),eh=a.createElement("div",(0,r.Z)({role:"menuitem",style:ev,className:"".concat(G,"-title"),tabIndex:H?null:-1,ref:X,title:"string"==typeof i?i:null,"data-menu-id":N&&S?null:S,"aria-expanded":Q,"aria-haspopup":!0,"aria-controls":eb,"aria-disabled":H,onClick:function(e){H||(null==Z||Z({key:l,domEvent:e}),"inline"===P&&A(l,!q))},onFocus:function(){z(l)}},et),i,a.createElement(eA,{icon:"horizontal"!==P?F:null,props:(0,v.Z)((0,v.Z)({},e),{},{isOpen:Q,isSubMenu:!0})},a.createElement("i",{className:"".concat(G,"-arrow")}))),eg=a.useRef(P);if("inline"!==P&&W.length>1?eg.current="vertical":eg.current=P,!N){var ey=eg.current;eh=a.createElement(e6,{mode:ey,prefixCls:G,visible:!u&&Q&&"inline"!==P,popupClassName:g,popupOffset:y,popup:a.createElement(ei,{mode:"horizontal"===ey?"vertical":ey},a.createElement(eq,{id:eb,ref:V},s)),disabled:H,onVisibleChange:function(e){"inline"!==P&&A(l,e)}},eh)}var e$=a.createElement(Y.Z.Item,(0,r.Z)({role:"none"},E,{component:"li",style:n,className:f()(G,"".concat(G,"-").concat(P),o,(t={},(0,p.Z)(t,"".concat(G,"-open"),Q),(0,p.Z)(t,"".concat(G,"-active"),ep),(0,p.Z)(t,"".concat(G,"-selected"),U),(0,p.Z)(t,"".concat(G,"-disabled"),H),t)),onMouseEnter:function(e){eu(!0),null==x||x({key:l,domEvent:e})},onMouseLeave:function(e){eu(!1),null==k||k({key:l,domEvent:e})}}),eh,!N&&a.createElement(e8,{id:eb,open:Q,keyPath:W},s));return B&&(e$=B(e$,e,{selected:U,active:ep,open:Q,disabled:H})),a.createElement(ei,{onItemClick:em,mode:"horizontal"===P?"vertical":P,itemIcon:d||L,expandIcon:F},e$)};function e3(e){var t,n=e.eventKey,o=e.children,r=es(n),i=eQ(o,r),l=ec();return a.useEffect(function(){if(l)return l.registerPath(n,r),function(){l.unregisterPath(n,r)}},[r]),t=l?i:a.createElement(e7,e,i),a.createElement(eu.Provider,{value:r},t)}var e9=["className","title","eventKey","children"],te=["children"],tt=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=(0,h.Z)(e,e9),l=a.useContext(ea).prefixCls,c="".concat(l,"-item-group");return a.createElement("li",(0,r.Z)({role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:f()(c,t)}),a.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),a.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function tn(e){var t=e.children,n=(0,h.Z)(e,te),o=eQ(t,es(n.eventKey));return ec()?o:a.createElement(tt,(0,eL.Z)(n,["warnKey"]),o)}function to(e){var t=e.className,n=e.style,o=a.useContext(ea).prefixCls;return ec()?null:a.createElement("li",{className:f()("".concat(o,"-item-divider"),t),style:n})}var tr=["label","children","key","type"],ta=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],ti=[],tl=a.forwardRef(function(e,t){var n,o,i,l,c,u,s,d,g,$,x,k,Z,C,E,S,R,P,M,I,N,T,O,L,D,K,A,z=e.prefixCls,B=void 0===z?"rc-menu":z,j=e.rootClassName,W=e.style,G=e.className,H=e.tabIndex,X=e.items,V=e.children,F=e.direction,q=e.id,Q=e.mode,en=void 0===Q?"vertical":Q,eo=e.inlineCollapsed,er=e.disabled,ea=e.disabledOverflow,ec=e.subMenuOpenDelay,eu=e.subMenuCloseDelay,es=e.forceSubMenuRender,ep=e.defaultOpenKeys,ev=e.openKeys,eI=e.activeKey,eN=e.defaultActiveFirst,eT=e.selectable,eO=void 0===eT||eT,eL=e.multiple,eD=void 0!==eL&&eL,eK=e.defaultSelectedKeys,eA=e.selectedKeys,ez=e.onSelect,ej=e.onDeselect,eW=e.inlineIndent,eG=e.motion,eH=e.defaultMotions,eX=e.triggerSubMenuAction,eF=e.builtinPlacements,eq=e.itemIcon,eY=e.expandIcon,eU=e.overflowedIndicator,eJ=void 0===eU?"...":eU,e0=e.overflowedIndicatorPopupClassName,e1=e.getPopupContainer,e2=e.onClick,e6=e.onOpenChange,e8=e.onKeyDown,e5=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),e4=e._internalRenderSubMenuItem,e7=(0,h.Z)(e,ta),e9=a.useMemo(function(){var e;return e=V,X&&(e=function e(t){return(t||[]).map(function(t,n){if(t&&"object"===(0,b.Z)(t)){var o=t.label,i=t.children,l=t.key,c=t.type,u=(0,h.Z)(t,tr),s=null!=l?l:"tmp-".concat(n);return i||"group"===c?"group"===c?a.createElement(tn,(0,r.Z)({key:s},u,{title:o}),e(i)):a.createElement(e3,(0,r.Z)({key:s},u,{title:o}),e(i)):"divider"===c?a.createElement(to,(0,r.Z)({key:s},u)):a.createElement(eV,(0,r.Z)({key:s},u),o)}return null}).filter(function(e){return e})}(X)),eQ(e,ti)},[V,X]),te=a.useState(!1),tt=(0,m.Z)(te,2),tl=tt[0],tc=tt[1],tu=a.useRef(),ts=(n=(0,y.Z)(q,{value:q}),i=(o=(0,m.Z)(n,2))[0],l=o[1],a.useEffect(function(){eM+=1;var e="".concat(eP,"-").concat(eM);l("rc-menu-uuid-".concat(e))},[]),i),td="rtl"===F,tf=(0,y.Z)(ep,{value:ev,postState:function(e){return e||ti}}),tp=(0,m.Z)(tf,2),tv=tp[0],tm=tp[1],tb=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tm(e),null==e6||e6(e)}t?(0,U.flushSync)(n):n()},th=a.useState(tv),tg=(0,m.Z)(th,2),ty=tg[0],t$=tg[1],tx=a.useRef(!1),tk=a.useMemo(function(){return("inline"===en||"vertical"===en)&&eo?["vertical",eo]:[en,!1]},[en,eo]),tZ=(0,m.Z)(tk,2),tC=tZ[0],tw=tZ[1],tE="inline"===tC,tS=a.useState(tC),t_=(0,m.Z)(tS,2),tR=t_[0],tP=t_[1],tM=a.useState(tw),tI=(0,m.Z)(tM,2),tN=tI[0],tT=tI[1];a.useEffect(function(){tP(tC),tT(tw),tx.current&&(tE?tm(ty):tb(ti))},[tC,tw]);var tO=a.useState(0),tL=(0,m.Z)(tO,2),tD=tL[0],tK=tL[1],tA=tD>=e9.length-1||"horizontal"!==tR||ea;a.useEffect(function(){tE&&t$(tv)},[tv]),a.useEffect(function(){return tx.current=!0,function(){tx.current=!1}},[]);var tz=(c=a.useState({}),u=(0,m.Z)(c,2)[1],s=(0,a.useRef)(new Map),d=(0,a.useRef)(new Map),g=a.useState([]),x=($=(0,m.Z)(g,2))[0],k=$[1],Z=(0,a.useRef)(0),C=(0,a.useRef)(!1),E=function(){C.current||u({})},S=(0,a.useCallback)(function(e,t){var n=eS(t);d.current.set(n,e),s.current.set(e,n),Z.current+=1;var o=Z.current;Promise.resolve().then(function(){o===Z.current&&E()})},[]),R=(0,a.useCallback)(function(e,t){var n=eS(t);d.current.delete(n),s.current.delete(e)},[]),P=(0,a.useCallback)(function(e){k(e)},[]),M=(0,a.useCallback)(function(e,t){var n=(s.current.get(e)||"").split(eE);return t&&x.includes(n[0])&&n.unshift(e_),n},[x]),I=(0,a.useCallback)(function(e,t){return e.some(function(e){return M(e,!0).includes(t)})},[M]),N=(0,a.useCallback)(function(e){var t="".concat(s.current.get(e)).concat(eE),n=new Set;return(0,w.Z)(d.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(d.current.get(e))}),n},[]),a.useEffect(function(){return function(){C.current=!0}},[]),{registerPath:S,unregisterPath:R,refreshOverflowKeys:P,isSubPathKey:I,getKeyPath:M,getKeys:function(){var e=(0,w.Z)(s.current.keys());return x.length&&e.push(e_),e},getSubPathKeys:N}),tB=tz.registerPath,tj=tz.unregisterPath,tW=tz.refreshOverflowKeys,tG=tz.isSubPathKey,tH=tz.getKeyPath,tX=tz.getKeys,tV=tz.getSubPathKeys,tF=a.useMemo(function(){return{registerPath:tB,unregisterPath:tj}},[tB,tj]),tq=a.useMemo(function(){return{isSubPathKey:tG}},[tG]);a.useEffect(function(){tW(tA?ti:e9.slice(tD+1).map(function(e){return e.key}))},[tD,tA]);var tY=(0,y.Z)(eI||eN&&(null===(K=e9[0])||void 0===K?void 0:K.key),{value:eI}),tQ=(0,m.Z)(tY,2),tU=tQ[0],tJ=tQ[1],t0=eR(function(e){tJ(e)}),t1=eR(function(){tJ(void 0)});(0,a.useImperativeHandle)(t,function(){return{list:tu.current,focus:function(e){var t,n,o,r,a=null!=tU?tU:null===(t=e9.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key;a&&(null===(n=tu.current)||void 0===n||null===(o=n.querySelector("li[data-menu-id='".concat(et(ts,a),"']")))||void 0===o||null===(r=o.focus)||void 0===r||r.call(o,e))}}});var t2=(0,y.Z)(eK||[],{value:eA,postState:function(e){return Array.isArray(e)?e:null==e?ti:[e]}}),t6=(0,m.Z)(t2,2),t8=t6[0],t5=t6[1],t4=function(e){if(eO){var t,n=e.key,o=t8.includes(n);t5(t=eD?o?t8.filter(function(e){return e!==n}):[].concat((0,w.Z)(t8),[n]):[n]);var r=(0,v.Z)((0,v.Z)({},e),{},{selectedKeys:t});o?null==ej||ej(r):null==ez||ez(r)}!eD&&tv.length&&"inline"!==tR&&tb(ti)},t7=eR(function(e){null==e2||e2(eB(e)),t4(e)}),t3=eR(function(e,t){var n=tv.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tR){var o=tV(e);n=n.filter(function(e){return!o.has(e)})}(0,J.Z)(tv,n,!0)||tb(n,!0)}),t9=(T=function(e,t){var n=null!=t?t:!tv.includes(e);t3(e,n)},O=a.useRef(),(L=a.useRef()).current=tU,D=function(){_.Z.cancel(O.current)},a.useEffect(function(){return function(){D()}},[]),function(e){var t=e.which;if([].concat(eZ,[ey,e$,ex,ek]).includes(t)){var n=function(){return l=new Set,c=new Map,u=new Map,tX().forEach(function(e){var t=document.querySelector("[data-menu-id='".concat(et(ts,e),"']"));t&&(l.add(t),u.set(t,e),c.set(e,t))}),l};n();var o=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(c.get(tU),l),r=u.get(o),a=function(e,t,n,o){var r,a,i,l,c="prev",u="next",s="children",d="parent";if("inline"===e&&o===ey)return{inlineTrigger:!0};var f=(r={},(0,p.Z)(r,eh,c),(0,p.Z)(r,eg,u),r),v=(a={},(0,p.Z)(a,em,n?u:c),(0,p.Z)(a,eb,n?c:u),(0,p.Z)(a,eg,s),(0,p.Z)(a,ey,s),a),m=(i={},(0,p.Z)(i,eh,c),(0,p.Z)(i,eg,u),(0,p.Z)(i,ey,s),(0,p.Z)(i,e$,d),(0,p.Z)(i,em,n?s:d),(0,p.Z)(i,eb,n?d:s),i);switch(null===(l=({inline:f,horizontal:v,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m})["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[o]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}(tR,1===tH(r,!0).length,td,t);if(!a&&t!==ex&&t!==ek)return;(eZ.includes(t)||[ex,ek].includes(t))&&e.preventDefault();var i=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=u.get(e);tJ(o),D(),O.current=(0,_.Z)(function(){L.current===o&&t.focus()})}};if([ex,ek].includes(t)||a.sibling||!o){var l,c,u,s,d=eC(s=o&&"inline"!==tR?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(o):tu.current,l);i(t===ex?d[0]:t===ek?d[d.length-1]:ew(s,l,o,a.offset))}else if(a.inlineTrigger)T(r);else if(a.offset>0)T(r,!0),D(),O.current=(0,_.Z)(function(){n();var e=o.getAttribute("aria-controls");i(ew(document.getElementById(e),l))},5);else if(a.offset<0){var f=tH(r,!0),v=f[f.length-2],m=c.get(v);T(v,!1),i(m)}}null==e8||e8(e)});a.useEffect(function(){tc(!0)},[]);var ne=a.useMemo(function(){return{_internalRenderMenuItem:e5,_internalRenderSubMenuItem:e4}},[e5,e4]),nt="horizontal"!==tR||ea?e9:e9.map(function(e,t){return a.createElement(ei,{key:e.key,overflowDisabled:t>tD},e)}),nn=a.createElement(Y.Z,(0,r.Z)({id:q,ref:tu,prefixCls:"".concat(B,"-overflow"),component:"ul",itemComponent:eV,className:f()(B,"".concat(B,"-root"),"".concat(B,"-").concat(tR),G,(A={},(0,p.Z)(A,"".concat(B,"-inline-collapsed"),tN),(0,p.Z)(A,"".concat(B,"-rtl"),td),A),j),dir:F,style:W,role:"menu",tabIndex:void 0===H?0:H,data:nt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?e9.slice(-t):null;return a.createElement(e3,{eventKey:e_,title:eJ,disabled:tA,internalPopupClose:0===t,popupClassName:e0},n)},maxCount:"horizontal"!==tR||ea?Y.Z.INVALIDATE:Y.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tK(e)},onKeyDown:t9},e7));return a.createElement(ef.Provider,{value:ne},a.createElement(ee.Provider,{value:ts},a.createElement(ei,{prefixCls:B,rootClassName:j,mode:tR,openKeys:tv,rtl:td,disabled:er,motion:tl?eG:null,defaultMotions:tl?eH:null,activeKey:tU,onActive:t0,onInactive:t1,selectedKeys:t8,inlineIndent:void 0===eW?24:eW,subMenuOpenDelay:void 0===ec?.1:ec,subMenuCloseDelay:void 0===eu?.1:eu,forceSubMenuRender:es,builtinPlacements:eF,triggerSubMenuAction:void 0===eX?"hover":eX,getPopupContainer:e1,itemIcon:eq,expandIcon:eY,onItemClick:t7,onOpenChange:t3},a.createElement(ed.Provider,{value:tq},nn),a.createElement("div",{style:{display:"none"},"aria-hidden":!0},a.createElement(el.Provider,{value:tF},e9)))))});tl.Item=eV,tl.SubMenu=e3,tl.ItemGroup=tn,tl.Divider=to;var tc=a.memo(a.forwardRef(function(e,t){var n=e.prefixCls,o=e.id,r=e.tabs,i=e.locale,l=e.mobile,c=e.moreIcon,u=void 0===c?"More":c,s=e.moreTransitionName,d=e.style,v=e.className,b=e.editable,h=e.tabBarGutter,g=e.rtl,y=e.removeAriaLabel,$=e.onTabClick,x=e.getPopupContainer,k=e.popupClassName,Z=(0,a.useState)(!1),C=(0,m.Z)(Z,2),w=C[0],E=C[1],S=(0,a.useState)(null),_=(0,m.Z)(S,2),R=_[0],P=_[1],M="".concat(o,"-more-popup"),I="".concat(n,"-dropdown"),N=null!==R?"".concat(M,"-").concat(R):null,T=null==i?void 0:i.dropdownAriaLabel,O=a.createElement(tl,{onClick:function(e){$(e.key,e.domEvent),E(!1)},prefixCls:"".concat(I,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[R],"aria-label":void 0!==T?T:"expanded dropdown"},r.map(function(e){var t=e.closable,n=e.disabled,r=e.closeIcon,i=e.key,l=e.label,c=D(t,r,b,n);return a.createElement(eV,{key:i,id:"".concat(M,"-").concat(i),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(i),disabled:n},a.createElement("span",null,l),c&&a.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(I,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),e.preventDefault(),e.stopPropagation(),b.onEdit("remove",{key:i,event:e})}},r||b.removeIcon||"\xd7"))}));function L(e){for(var t=r.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===R})||0,o=t.length,a=0;at?"left":"right"})}),eT=(0,m.Z)(eN,2),eO=eT[0],eL=eT[1],eD=M(0,function(e,t){!eI&&eC&&eC({direction:e>t?"top":"bottom"})}),eK=(0,m.Z)(eD,2),eA=eK[0],ez=eK[1],eB=(0,a.useState)([0,0]),ej=(0,m.Z)(eB,2),eW=ej[0],eG=ej[1],eH=(0,a.useState)([0,0]),eX=(0,m.Z)(eH,2),eV=eX[0],eF=eX[1],eq=(0,a.useState)([0,0]),eY=(0,m.Z)(eq,2),eQ=eY[0],eU=eY[1],eJ=(0,a.useState)([0,0]),e0=(0,m.Z)(eJ,2),e1=e0[0],e2=e0[1],e6=(n=new Map,o=(0,a.useRef)([]),i=(0,a.useState)({}),l=(0,m.Z)(i,2)[1],c=(0,a.useRef)("function"==typeof n?n():n),u=N(function(){var e=c.current;o.current.forEach(function(t){e=t(e)}),o.current=[],c.current=e,l({})}),[c.current,function(e){o.current.push(e),u()}]),e8=(0,m.Z)(e6,2),e5=e8[0],e4=e8[1],e7=(s=eV[0],(0,a.useMemo)(function(){for(var e=new Map,t=e5.get(null===(r=es[0])||void 0===r?void 0:r.key)||P,n=t.left+t.width,o=0;oti?ti:e}eI&&eb?(ta=0,ti=Math.max(0,e9-to)):(ta=Math.min(0,to-e9),ti=0);var tf=(0,a.useRef)(),tp=(0,a.useState)(),tv=(0,m.Z)(tp,2),tm=tv[0],tb=tv[1];function th(){tb(Date.now())}function tg(){window.clearTimeout(tf.current)}d=function(e,t){function n(e,t){e(function(e){return tl(e+t)})}return!!tn&&(eI?n(eL,e):n(ez,t),tg(),th(),!0)},b=(0,a.useState)(),g=(h=(0,m.Z)(b,2))[0],y=h[1],$=(0,a.useState)(0),Z=(k=(0,m.Z)($,2))[0],C=k[1],I=(0,a.useState)(0),z=(D=(0,m.Z)(I,2))[0],B=D[1],j=(0,a.useState)(),G=(W=(0,m.Z)(j,2))[0],H=W[1],X=(0,a.useRef)(),V=(0,a.useRef)(),(F=(0,a.useRef)(null)).current={onTouchStart:function(e){var t=e.touches[0];y({x:t.screenX,y:t.screenY}),window.clearInterval(X.current)},onTouchMove:function(e){if(g){e.preventDefault();var t=e.touches[0],n=t.screenX,o=t.screenY;y({x:n,y:o});var r=n-g.x,a=o-g.y;d(r,a);var i=Date.now();C(i),B(i-Z),H({x:r,y:a})}},onTouchEnd:function(){if(g&&(y(null),H(null),G)){var e=G.x/z,t=G.y/z;if(!(.1>Math.max(Math.abs(e),Math.abs(t)))){var n=e,o=t;X.current=window.setInterval(function(){if(.01>Math.abs(n)&&.01>Math.abs(o)){window.clearInterval(X.current);return}d(20*(n*=.9046104802746175),20*(o*=.9046104802746175))},20)}}},onWheel:function(e){var t=e.deltaX,n=e.deltaY,o=0,r=Math.abs(t),a=Math.abs(n);r===a?o="x"===V.current?t:n:r>a?(o=t,V.current="x"):(o=n,V.current="y"),d(-o,-o)&&e.preventDefault()}},a.useEffect(function(){function e(e){F.current.onTouchMove(e)}function t(e){F.current.onTouchEnd(e)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),e_.current.addEventListener("touchstart",function(e){F.current.onTouchStart(e)},{passive:!1}),e_.current.addEventListener("wheel",function(e){F.current.onWheel(e)}),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}},[]),(0,a.useEffect)(function(){return tg(),tm&&(tf.current=window.setTimeout(function(){tb(0)},100)),tg},[tm]);var ty=(q=eI?eO:eA,ee=(Y=(0,v.Z)((0,v.Z)({},e),{},{tabs:es})).tabs,et=Y.tabPosition,en=Y.rtl,["top","bottom"].includes(et)?(Q="width",U=en?"right":"left",J=Math.abs(q)):(Q="height",U="top",J=-q),(0,a.useMemo)(function(){if(!ee.length)return[0,0];for(var e=ee.length,t=e,n=0;nJ+to){t=n-1;break}}for(var r=0,a=e-1;a>=0;a-=1)if((e7.get(ee[a].key)||T)[U]=t?[0,0]:[r,t]},[e7,to,e9,te,tt,J,et,ee.map(function(e){return e.key}).join("_"),en])),t$=(0,m.Z)(ty,2),tx=t$[0],tk=t$[1],tZ=(0,S.Z)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:em,t=e7.get(e)||{width:0,height:0,left:0,right:0,top:0};if(eI){var n=eO;eb?t.righteO+to&&(n=t.right+t.width-to):t.left<-eO?n=-t.left:t.left+t.width>-eO+to&&(n=-(t.left+t.width-to)),ez(0),eL(tl(n))}else{var o=eA;t.top<-eA?o=-t.top:t.top+t.height>-eA+to&&(o=-(t.top+t.height-to)),eL(0),ez(tl(o))}}),tC={};"top"===e$||"bottom"===e$?tC[eb?"marginRight":"marginLeft"]=ex:tC.marginTop=ex;var tw=es.map(function(e,t){var n=e.key;return a.createElement(tu,{id:ep,prefixCls:eu,key:n,tab:e,style:0===t?void 0:tC,closable:e.closable,editable:eg,active:n===em,renderWrapper:ek,removeAriaLabel:null==ey?void 0:ey.removeAriaLabel,onClick:function(e){eZ(n,e)},onFocus:function(){tZ(n),th(),e_.current&&(eb||(e_.current.scrollLeft=0),e_.current.scrollTop=0)}})}),tE=function(){return e4(function(){var e=new Map;return es.forEach(function(t){var n,o=t.key,r=null===(n=eR.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(L(o),'"]'));r&&e.set(o,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})}),e})};(0,a.useEffect)(function(){tE()},[es.map(function(e){return e.key}).join("_")]);var tS=N(function(){var e=ts(ew),t=ts(eE),n=ts(eS);eG([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=ts(eM);eU(o),e2(ts(eP));var r=ts(eR);eF([r[0]-o[0],r[1]-o[1]]),tE()}),t_=es.slice(0,tx),tR=es.slice(tk+1),tP=[].concat((0,w.Z)(t_),(0,w.Z)(tR)),tM=(0,a.useState)(),tI=(0,m.Z)(tM,2),tN=tI[0],tT=tI[1],tO=e7.get(em),tL=(0,a.useRef)();function tD(){_.Z.cancel(tL.current)}(0,a.useEffect)(function(){var e={};return tO&&(eI?(eb?e.right=tO.right:e.left=tO.left,e.width=tO.width):(e.top=tO.top,e.height=tO.height)),tD(),tL.current=(0,_.Z)(function(){tT(e)}),tD},[tO,eI,eb]),(0,a.useEffect)(function(){tZ()},[em,ta,ti,O(tO),O(e7),eI]),(0,a.useEffect)(function(){tS()},[eb]);var tK=!!tP.length,tA="".concat(eu,"-nav-wrap");return eI?eb?(ea=eO>0,er=eO!==ti):(er=eO<0,ea=eO!==ta):(ei=eA<0,el=eA!==ta),a.createElement(E.Z,{onResize:tS},a.createElement("div",{ref:(0,R.x1)(t,ew),role:"tablist",className:f()("".concat(eu,"-nav"),ed),style:ef,onKeyDown:function(){th()}},a.createElement(A,{ref:eE,position:"left",extra:eh,prefixCls:eu}),a.createElement("div",{className:f()(tA,(eo={},(0,p.Z)(eo,"".concat(tA,"-ping-left"),er),(0,p.Z)(eo,"".concat(tA,"-ping-right"),ea),(0,p.Z)(eo,"".concat(tA,"-ping-top"),ei),(0,p.Z)(eo,"".concat(tA,"-ping-bottom"),el),eo)),ref:e_},a.createElement(E.Z,{onResize:tS},a.createElement("div",{ref:eR,className:"".concat(eu,"-nav-list"),style:{transform:"translate(".concat(eO,"px, ").concat(eA,"px)"),transition:tm?"none":void 0}},tw,a.createElement(K,{ref:eM,prefixCls:eu,locale:ey,editable:eg,style:(0,v.Z)((0,v.Z)({},0===tw.length?void 0:tC),{},{visibility:tK?"hidden":null})}),a.createElement("div",{className:f()("".concat(eu,"-ink-bar"),(0,p.Z)({},"".concat(eu,"-ink-bar-animated"),ev.inkBar)),style:tN})))),a.createElement(tc,(0,r.Z)({},e,{removeAriaLabel:null==ey?void 0:ey.removeAriaLabel,ref:eP,prefixCls:eu,tabs:tP,className:!tK&&tr,tabMoving:!!tm})),a.createElement(A,{ref:eS,position:"right",extra:eh,prefixCls:eu})))}),tp=["renderTabBar"],tv=["label","key"];function tm(e){var t=e.renderTabBar,n=(0,h.Z)(e,tp),o=a.useContext(x).tabs;return t?t((0,v.Z)((0,v.Z)({},n),{},{panes:o.map(function(e){var t=e.label,n=e.key,o=(0,h.Z)(e,tv);return a.createElement(k,(0,r.Z)({tab:t,key:n,tabKey:n},o))})}),tf):a.createElement(tf,n)}var tb=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],th=0,tg=a.forwardRef(function(e,t){var n,o,i=e.id,l=e.prefixCls,c=void 0===l?"rc-tabs":l,u=e.className,s=e.items,d=e.direction,$=e.activeKey,k=e.defaultActiveKey,Z=e.editable,w=e.animated,E=e.tabPosition,S=void 0===E?"top":E,_=e.tabBarGutter,R=e.tabBarStyle,P=e.tabBarExtraContent,M=e.locale,I=e.moreIcon,N=e.moreTransitionName,T=e.destroyInactiveTabPane,O=e.renderTabBar,L=e.onChange,D=e.onTabClick,K=e.onTabScroll,A=e.getPopupContainer,z=e.popupClassName,B=(0,h.Z)(e,tb),j=a.useMemo(function(){return(s||[]).filter(function(e){return e&&"object"===(0,b.Z)(e)&&"key"in e})},[s]),W="rtl"===d,G=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,v.Z)({inkBar:!0},"object"===(0,b.Z)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(w),H=(0,a.useState)(!1),X=(0,m.Z)(H,2),V=X[0],F=X[1];(0,a.useEffect)(function(){F((0,g.Z)())},[]);var q=(0,y.Z)(function(){var e;return null===(e=j[0])||void 0===e?void 0:e.key},{value:$,defaultValue:k}),Y=(0,m.Z)(q,2),Q=Y[0],U=Y[1],J=(0,a.useState)(function(){return j.findIndex(function(e){return e.key===Q})}),ee=(0,m.Z)(J,2),et=ee[0],en=ee[1];(0,a.useEffect)(function(){var e,t=j.findIndex(function(e){return e.key===Q});-1===t&&(t=Math.max(0,Math.min(et,j.length-1)),U(null===(e=j[t])||void 0===e?void 0:e.key)),en(t)},[j.map(function(e){return e.key}).join("_"),Q,et]);var eo=(0,y.Z)(null,{value:i}),er=(0,m.Z)(eo,2),ea=er[0],ei=er[1];(0,a.useEffect)(function(){i||(ei("rc-tabs-".concat(th)),th+=1)},[]);var el={id:ea,activeKey:Q,animated:G,tabPosition:S,rtl:W,mobile:V},ec=(0,v.Z)((0,v.Z)({},el),{},{editable:Z,locale:M,moreIcon:I,moreTransitionName:N,tabBarGutter:_,onTabClick:function(e,t){null==D||D(e,t);var n=e!==Q;U(e),n&&(null==L||L(e))},onTabScroll:K,extra:P,style:R,panes:null,getPopupContainer:A,popupClassName:z});return a.createElement(x.Provider,{value:{tabs:j,prefixCls:c}},a.createElement("div",(0,r.Z)({ref:t,id:i,className:f()(c,"".concat(c,"-").concat(S),(n={},(0,p.Z)(n,"".concat(c,"-mobile"),V),(0,p.Z)(n,"".concat(c,"-editable"),Z),(0,p.Z)(n,"".concat(c,"-rtl"),W),n),u)},B),o,a.createElement(tm,(0,r.Z)({},ec,{renderTabBar:O})),a.createElement(C,(0,r.Z)({destroyInactiveTabPane:T},el,{animated:G}))))}),ty=n(79746),t$=n(30069),tx=n(80716);let tk={motionAppear:!1,motionEnter:!0,motionLeave:!0};var tZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n},tC=n(98663),tw=n(40650),tE=n(70721),tS=n(53279),t_=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[(0,tS.oN)(e,"slide-up"),(0,tS.oN)(e,"slide-down")]]};let tR=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:a,itemSelectedColor:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:i,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},tP=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,tC.Wf)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${o}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},tC.vS),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},tM=e=>{let{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:a,verticalItemMargin:i}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:1.25*e.controlHeight,[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:i},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},tI=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,horizontalItemPaddingSM:r,horizontalItemPaddingLG:a}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o}}}}}},tN=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:a,horizontalItemPadding:i,itemSelectedColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",display:"inline-flex",alignItems:"center",padding:i,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,tC.Qy)(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:o},[`&${c}-active ${c}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:a}}}},tT=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},tO=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:a,itemActiveColor:i,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,tC.Wf)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,marginLeft:{_skip_check_:!0,value:r},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},(0,tC.Qy)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),tN(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var tL=(0,tw.Z)("Tabs",e=>{let t=(0,tE.TS)(e,{tabsCardPadding:e.cardPadding||`${(e.cardHeight-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${e.horizontalItemGutter}px`});return[tI(t),tT(t),tM(t),tP(t),tR(t),tO(t),t_(t)]},e=>{let t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:"",cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),tD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let tK=e=>{let t;let{type:n,className:r,rootClassName:i,size:l,onEdit:u,hideAdd:d,centered:p,addIcon:v,popupClassName:m,children:b,items:h,animated:g,style:y}=e,$=tD(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:x,moreIcon:k=a.createElement(c,null)}=$,{direction:Z,tabs:C,getPrefixCls:w,getPopupContainer:E}=a.useContext(ty.E_),S=w("tabs",x),[_,R]=tL(S);"editable-card"===n&&(t={onEdit:(e,t)=>{let{key:n,event:o}=t;null==u||u("add"===e?o:n,e)},removeIcon:a.createElement(o.Z,null),addIcon:v||a.createElement(s,null),showAdd:!0!==d});let P=w(),M=function(e,t){if(e)return e;let n=(0,eY.Z)(t).map(e=>{if(a.isValidElement(e)){let{key:t,props:n}=e,o=n||{},{tab:r}=o,a=tZ(o,["tab"]),i=Object.assign(Object.assign({key:String(t)},a),{label:r});return i}return null});return n.filter(e=>e)}(h,b),I=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return(t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{})).tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},tk),{motionName:(0,tx.m)(e,"switch")})),t}(S,g),N=(0,t$.Z)(l),T=Object.assign(Object.assign({},null==C?void 0:C.style),y);return _(a.createElement(tg,Object.assign({direction:Z,getPopupContainer:E,moreTransitionName:`${P}-slide-up`},$,{items:M,className:f()({[`${S}-${N}`]:N,[`${S}-card`]:["card","editable-card"].includes(n),[`${S}-editable-card`]:"editable-card"===n,[`${S}-centered`]:p},null==C?void 0:C.className,r,i,R),popupClassName:f()(m,R),style:T,editable:t,moreIcon:k,prefixCls:S,animated:I})))};tK.TabPane=()=>null;var tA=tK}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/8582-c8bcc62f5b0aabc2.js b/pilot/server/static/_next/static/chunks/8582-c8bcc62f5b0aabc2.js new file mode 100644 index 000000000..72eb723cc --- /dev/null +++ b/pilot/server/static/_next/static/chunks/8582-c8bcc62f5b0aabc2.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8582],{78141:function(i,a,e){var r=e(78997);a.Z=void 0;var o=r(e(76906)),n=e(9268),t=(0,o.default)((0,n.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");a.Z=t},73220:function(i,a,e){var r=e(78997);a.Z=void 0;var o=r(e(76906)),n=e(9268),t=(0,o.default)((0,n.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"}),"Chat");a.Z=t},59970:function(i,a,e){var r=e(78997);a.Z=void 0;var o=r(e(76906)),n=e(9268),t=(0,o.default)((0,n.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");a.Z=t},79214:function(i,a,e){var r=e(78997);a.Z=void 0;var o=r(e(76906)),n=e(9268),t=(0,o.default)((0,n.jsx)("path",{d:"M7 9H2V7h5v2zm0 3H2v2h5v-2zm13.59 7-3.83-3.83c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L22 17.59 20.59 19zM17 11c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3zM2 19h10v-2H2v2z"}),"ManageSearch");a.Z=t},30929:function(i,a,e){var r=e(78997);a.Z=void 0;var o=r(e(76906)),n=e(9268),t=(0,o.default)((0,n.jsx)("path",{d:"m14.17 13.71 1.4-2.42c.09-.15.05-.34-.08-.45l-1.48-1.16c.03-.22.05-.45.05-.68s-.02-.46-.05-.69l1.48-1.16c.13-.11.17-.3.08-.45l-1.4-2.42c-.09-.15-.27-.21-.43-.15l-1.74.7c-.36-.28-.75-.51-1.18-.69l-.26-1.85c-.03-.16-.18-.29-.35-.29h-2.8c-.17 0-.32.13-.35.3L6.8 4.15c-.42.18-.82.41-1.18.69l-1.74-.7c-.16-.06-.34 0-.43.15l-1.4 2.42c-.09.15-.05.34.08.45l1.48 1.16c-.03.22-.05.45-.05.68s.02.46.05.69l-1.48 1.16c-.13.11-.17.3-.08.45l1.4 2.42c.09.15.27.21.43.15l1.74-.7c.36.28.75.51 1.18.69l.26 1.85c.03.16.18.29.35.29h2.8c.17 0 .32-.13.35-.3l.26-1.85c.42-.18.82-.41 1.18-.69l1.74.7c.16.06.34 0 .43-.15zM8.81 11c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm13.11 7.67-.96-.74c.02-.14.04-.29.04-.44 0-.15-.01-.3-.04-.44l.95-.74c.08-.07.11-.19.05-.29l-.9-1.55c-.05-.1-.17-.13-.28-.1l-1.11.45c-.23-.18-.48-.33-.76-.44l-.17-1.18c-.01-.12-.11-.2-.21-.2h-1.79c-.11 0-.21.08-.22.19l-.17 1.18c-.27.12-.53.26-.76.44l-1.11-.45c-.1-.04-.22 0-.28.1l-.9 1.55c-.05.1-.04.22.05.29l.95.74c-.02.14-.03.29-.03.44 0 .15.01.3.03.44l-.95.74c-.08.07-.11.19-.05.29l.9 1.55c.05.1.17.13.28.1l1.11-.45c.23.18.48.33.76.44l.17 1.18c.02.11.11.19.22.19h1.79c.11 0 .21-.08.22-.19l.17-1.18c.27-.12.53-.26.75-.44l1.12.45c.1.04.22 0 .28-.1l.9-1.55c.06-.09.03-.21-.05-.28zm-4.29.16c-.74 0-1.35-.6-1.35-1.35s.6-1.35 1.35-1.35 1.35.6 1.35 1.35-.61 1.35-1.35 1.35z"}),"MiscellaneousServices");a.Z=t},99011:function(i,a,e){var r=e(78997);a.Z=void 0;var o=r(e(76906)),n=e(9268),t=(0,o.default)((0,n.jsx)("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2zm-2-1h8v-2H5v2zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5zm4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6l-.63 1.37zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94L19 6z"}),"TipsAndUpdates");a.Z=t},58927:function(i,a,e){e.d(a,{Z:function(){return D}});var r=e(46750),o=e(40431),n=e(86006),t=e(89791),l=e(47562),c=e(73811),d=e(53832),s=e(49657),h=e(88930),v=e(50645),p=e(47093),m=e(18587);function C(i){return(0,m.d6)("MuiChip",i)}let u=(0,m.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),g=n.createContext({disabled:void 0,variant:void 0,color:void 0});var f=e(326),b=e(9268);let z=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],Z=i=>{let{disabled:a,size:e,color:r,clickable:o,variant:n,focusVisible:t}=i,c={root:["root",a&&"disabled",r&&`color${(0,d.Z)(r)}`,e&&`size${(0,d.Z)(e)}`,n&&`variant${(0,d.Z)(n)}`,o&&"clickable"],action:["action",a&&"disabled",t&&"focusVisible"],label:["label",e&&`label${(0,d.Z)(e)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(c,C,{})},x=(0,v.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(i,a)=>a.root})(({theme:i,ownerState:a})=>{var e,r,n,t;return[(0,o.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===a.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:i.vars.fontSize.xs},"md"===a.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:i.vars.fontSize.sm},"lg"===a.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:i.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:i.vars.fontWeight.md,fontFamily:i.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${u.disabled}`]:{color:null==(e=i.variants[`${a.variant}Disabled`])||null==(e=e[a.color])?void 0:e.color}}),...a.clickable?[{"--variant-borderWidth":"0px",color:null==(t=i.variants[a.variant])||null==(t=t[a.color])?void 0:t.color}]:[null==(r=i.variants[a.variant])?void 0:r[a.color],{[`&.${u.disabled}`]:null==(n=i.variants[`${a.variant}Disabled`])?void 0:n[a.color]}]]}),H=(0,v.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(i,a)=>a.label})(({ownerState:i})=>(0,o.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},i.clickable&&{zIndex:1,pointerEvents:"none"})),I=(0,v.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(i,a)=>a.action})(({theme:i,ownerState:a})=>{var e,r,o,n;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[i.focus.selector]:i.focus.default},null==(e=i.variants[a.variant])?void 0:e[a.color],{"&:hover":null==(r=i.variants[`${a.variant}Hover`])?void 0:r[a.color]},{"&:active":null==(o=i.variants[`${a.variant}Active`])?void 0:o[a.color]},{[`&.${u.disabled}`]:null==(n=i.variants[`${a.variant}Disabled`])?void 0:n[a.color]}]}),S=(0,v.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(i,a)=>a.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),_=(0,v.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(i,a)=>a.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),y=n.forwardRef(function(i,a){let e=(0,h.Z)({props:i,name:"JoyChip"}),{children:l,className:d,color:v="primary",onClick:m,disabled:C=!1,size:u="md",variant:y="solid",startDecorator:D,endDecorator:M,component:R,slots:k={},slotProps:L={}}=e,j=(0,r.Z)(e,z),{getColor:$}=(0,p.VT)(y),W=$(i.color,v),w=!!m||!!L.action,N=(0,o.Z)({},e,{disabled:C,size:u,color:W,variant:y,clickable:w,focusVisible:!1}),V="function"==typeof L.action?L.action(N):L.action,E=n.useRef(null),{focusVisible:A,getRootProps:O}=(0,c.Z)((0,o.Z)({},V,{disabled:C,rootRef:E}));N.focusVisible=A;let T=Z(N),J=(0,o.Z)({},j,{component:R,slots:k,slotProps:L}),[P,B]=(0,f.Z)("root",{ref:a,className:(0,t.Z)(T.root,d),elementType:x,externalForwardedProps:J,ownerState:N}),[F,G]=(0,f.Z)("label",{className:T.label,elementType:H,externalForwardedProps:J,ownerState:N}),U=(0,s.Z)(G.id),[q,K]=(0,f.Z)("action",{className:T.action,elementType:I,externalForwardedProps:J,ownerState:N,getSlotProps:O,additionalProps:{"aria-labelledby":U,as:null==V?void 0:V.component,onClick:m}}),[Q,X]=(0,f.Z)("startDecorator",{className:T.startDecorator,elementType:S,externalForwardedProps:J,ownerState:N}),[Y,ii]=(0,f.Z)("endDecorator",{className:T.endDecorator,elementType:_,externalForwardedProps:J,ownerState:N}),ia=n.useMemo(()=>({disabled:C,variant:y,color:"context"===W?void 0:W}),[W,C,y]);return(0,b.jsx)(g.Provider,{value:ia,children:(0,b.jsxs)(P,(0,o.Z)({},B,{children:[w&&(0,b.jsx)(q,(0,o.Z)({},K)),(0,b.jsx)(F,(0,o.Z)({},G,{id:U,children:l})),D&&(0,b.jsx)(Q,(0,o.Z)({},X,{children:D})),M&&(0,b.jsx)(Y,(0,o.Z)({},ii,{children:M}))]}))})});var D=y}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/86-6193a530bd8e3ef4.js b/pilot/server/static/_next/static/chunks/86-6193a530bd8e3ef4.js deleted file mode 100644 index af32be27e..000000000 --- a/pilot/server/static/_next/static/chunks/86-6193a530bd8e3ef4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86],{31857:function(r,e,n){var t=n(86006);let o=t.createContext(void 0);e.Z=o},35086:function(r,e,n){n.d(e,{ZP:function(){return H}});var t=n(46750),o=n(40431),a=n(86006),i=n(53832),l=n(47562),d=n(50645),u=n(88930),c=n(47093),s=n(326),p=n(18587);function v(r){return(0,p.d6)("MuiInput",r)}let I=(0,p.sI)("MuiInput",["root","input","formControl","focused","disabled","error","adornedStart","adornedEnd","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft","variantSolid","fullWidth","startDecorator","endDecorator"]);var h=n(74313),g=n(9268);let f=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","fullWidth","size","color","variant","startDecorator","endDecorator","component","slots","slotProps"],m=r=>{let{disabled:e,fullWidth:n,variant:t,color:o,size:a}=r,d={root:["root",e&&"disabled",n&&"fullWidth",t&&`variant${(0,i.Z)(t)}`,o&&`color${(0,i.Z)(o)}`,a&&`size${(0,i.Z)(a)}`],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(d,v,{})},b=(0,d.Z)("div")(({theme:r,ownerState:e})=>{var n,t,a,i,l;let d=null==(n=r.variants[`${e.variant}`])?void 0:n[e.color];return[(0,o.Z)({"--Input-radius":r.vars.radius.sm,"--Input-gap":"0.5rem","--Input-placeholderColor":"inherit","--Input-placeholderOpacity":.5,"--Input-focused":"0","--Input-focusedThickness":r.vars.focus.thickness},"context"===e.color?{"--Input-focusedHighlight":r.vars.palette.focusVisible}:{"--Input-focusedHighlight":null==(t=r.vars.palette["neutral"===e.color?"primary":e.color])?void 0:t[500]},"sm"===e.size&&{"--Input-minHeight":"2rem","--Input-paddingInline":"0.5rem","--Input-decoratorChildHeight":"min(1.5rem, var(--Input-minHeight))","--Icon-fontSize":"1.25rem"},"md"===e.size&&{"--Input-minHeight":"2.5rem","--Input-paddingInline":"0.75rem","--Input-decoratorChildHeight":"min(2rem, var(--Input-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===e.size&&{"--Input-minHeight":"3rem","--Input-paddingInline":"1rem","--Input-gap":"0.75rem","--Input-decoratorChildHeight":"min(2.375rem, var(--Input-minHeight))","--Icon-fontSize":"1.75rem"},{"--Input-decoratorChildOffset":"min(calc(var(--Input-paddingInline) - (var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2), var(--Input-paddingInline))","--_Input-paddingBlock":"max((var(--Input-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Input-decoratorChildHeight)) / 2, 0px)","--Input-decoratorChildRadius":"max(var(--Input-radius) - var(--variant-borderWidth, 0px) - var(--_Input-paddingBlock), min(var(--_Input-paddingBlock) + var(--variant-borderWidth, 0px), var(--Input-radius) / 2))","--Button-minHeight":"var(--Input-decoratorChildHeight)","--IconButton-size":"var(--Input-decoratorChildHeight)","--Button-radius":"var(--Input-decoratorChildRadius)","--IconButton-radius":"var(--Input-decoratorChildRadius)",boxSizing:"border-box",minWidth:0,minHeight:"var(--Input-minHeight)"},e.fullWidth&&{width:"100%"},{cursor:"text",position:"relative",display:"flex",paddingInline:"var(--Input-paddingInline)",borderRadius:"var(--Input-radius)",fontFamily:r.vars.fontFamily.body,fontSize:r.vars.fontSize.md},"sm"===e.size&&{fontSize:r.vars.fontSize.sm},{"&:before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Input-focusedInset, inset) 0 0 0 calc(var(--Input-focused) * var(--Input-focusedThickness)) var(--Input-focusedHighlight)"}}),(0,o.Z)({},d,{backgroundColor:null!=(a=null==d?void 0:d.backgroundColor)?a:r.vars.palette.background.surface,"&:hover":(0,o.Z)({},null==(i=r.variants[`${e.variant}Hover`])?void 0:i[e.color],{backgroundColor:null}),[`&.${I.disabled}`]:null==(l=r.variants[`${e.variant}Disabled`])?void 0:l[e.color],"&:focus-within::before":{"--Input-focused":"1"}})]}),Z=(0,d.Z)("input")(({ownerState:r})=>({border:"none",minWidth:0,outline:0,padding:0,flex:1,color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit",textOverflow:"ellipsis","&:-webkit-autofill":(0,o.Z)({paddingInline:"var(--Input-paddingInline)"},!r.startDecorator&&{marginInlineStart:"calc(-1 * var(--Input-paddingInline))",paddingInlineStart:"var(--Input-paddingInline)",borderTopLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomLeftRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"},!r.endDecorator&&{marginInlineEnd:"calc(-1 * var(--Input-paddingInline))",paddingInlineEnd:"var(--Input-paddingInline)",borderTopRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))",borderBottomRightRadius:"calc(var(--Input-radius) - var(--variant-borderWidth, 0px))"}),"&::-webkit-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Input-placeholderColor)",opacity:"var(--Input-placeholderOpacity)"}})),C=(0,d.Z)("div")(({theme:r,ownerState:e})=>{var n,t;return(0,o.Z)({"--Button-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--IconButton-margin":"0 0 0 calc(var(--Input-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Input-paddingInline) / -4)",display:"inherit",alignItems:"center",paddingBlock:"var(--unstable_InputPaddingBlock)",flexWrap:"wrap",marginInlineEnd:"var(--Input-gap)",color:r.vars.palette.text.tertiary,cursor:"initial"},e.focused&&{color:null==(n=r.variants[e.variant])||null==(n=n[e.color])?void 0:n.color},e.disabled&&{color:null==(t=r.variants[`${e.variant}Disabled`])||null==(t=t[e.color])?void 0:t.color})}),y=(0,d.Z)("div")(({theme:r,ownerState:e})=>{var n,t;return(0,o.Z)({"--Button-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--IconButton-margin":"0 calc(var(--Input-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Input-paddingInline) / -4) 0 0",display:"inherit",alignItems:"center",marginInlineStart:"var(--Input-gap)",color:null==(n=r.variants[e.variant])||null==(n=n[e.color])?void 0:n.color,cursor:"initial"},e.disabled&&{color:null==(t=r.variants[`${e.variant}Disabled`])||null==(t=t[e.color])?void 0:t.color})}),x=(0,d.Z)(b,{name:"JoyInput",slot:"Root",overridesResolver:(r,e)=>e.root})({}),S=(0,d.Z)(Z,{name:"JoyInput",slot:"Input",overridesResolver:(r,e)=>e.input})({}),z=(0,d.Z)(C,{name:"JoyInput",slot:"StartDecorator",overridesResolver:(r,e)=>e.startDecorator})({}),k=(0,d.Z)(y,{name:"JoyInput",slot:"EndDecorator",overridesResolver:(r,e)=>e.endDecorator})({}),D=a.forwardRef(function(r,e){var n,a,i,l,d;let p=(0,u.Z)({props:r,name:"JoyInput"}),v=(0,h.Z)(p,I),{propsToForward:b,rootStateClasses:Z,inputStateClasses:C,getRootProps:y,getInputProps:D,formControl:H,focused:R,error:B=!1,disabled:W,fullWidth:w=!1,size:F="md",color:P="neutral",variant:O="outlined",startDecorator:T,endDecorator:E,component:$,slots:N={},slotProps:_={}}=v,q=(0,t.Z)(v,f),J=null!=(n=null!=(a=r.error)?a:null==H?void 0:H.error)?n:B,V=null!=(i=null!=(l=r.size)?l:null==H?void 0:H.size)?i:F,{getColor:j}=(0,c.VT)(O),L=j(r.color,J?"danger":null!=(d=null==H?void 0:H.color)?d:P),M=(0,o.Z)({},p,{fullWidth:w,color:L,disabled:W,error:J,focused:R,size:V,variant:O}),K=m(M),U=(0,o.Z)({},q,{component:$,slots:N,slotProps:_}),[A,G]=(0,s.Z)("root",{ref:e,className:[K.root,Z],elementType:x,getSlotProps:y,externalForwardedProps:U,ownerState:M}),[Q,X]=(0,s.Z)("input",(0,o.Z)({},H&&{additionalProps:{id:H.htmlFor,"aria-describedby":H["aria-describedby"]}},{className:[K.input,C],elementType:S,getSlotProps:D,internalForwardedProps:b,externalForwardedProps:U,ownerState:M})),[Y,rr]=(0,s.Z)("startDecorator",{className:K.startDecorator,elementType:z,externalForwardedProps:U,ownerState:M}),[re,rn]=(0,s.Z)("endDecorator",{className:K.endDecorator,elementType:k,externalForwardedProps:U,ownerState:M});return(0,g.jsxs)(A,(0,o.Z)({},G,{children:[T&&(0,g.jsx)(Y,(0,o.Z)({},rr,{children:T})),(0,g.jsx)(Q,(0,o.Z)({},X)),E&&(0,g.jsx)(re,(0,o.Z)({},rn,{children:E}))]}))});var H=D},74313:function(r,e,n){n.d(e,{Z:function(){return p}});var t=n(40431),o=n(46750),a=n(86006),i=n(16066),l=n(99179);let d=a.createContext(void 0);var u=n(87862),c=n(31857);let s=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","defaultValue","disabled","error","id","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","type","value"];function p(r,e){let n=a.useContext(c.Z),{"aria-describedby":p,"aria-label":v,"aria-labelledby":I,autoComplete:h,autoFocus:g,className:f,defaultValue:m,disabled:b,error:Z,id:C,name:y,onClick:x,onChange:S,onKeyDown:z,onKeyUp:k,onFocus:D,onBlur:H,placeholder:R,readOnly:B,required:W,type:w,value:F}=r,P=(0,o.Z)(r,s),{getRootProps:O,getInputProps:T,focused:E,error:$,disabled:N}=function(r){let e,n,o,c,s;let{defaultValue:p,disabled:v=!1,error:I=!1,onBlur:h,onChange:g,onFocus:f,required:m=!1,value:b,inputRef:Z}=r,C=a.useContext(d);if(C){var y,x,S;e=void 0,n=null!=(y=C.disabled)&&y,o=null!=(x=C.error)&&x,c=null!=(S=C.required)&&S,s=C.value}else e=p,n=v,o=I,c=m,s=b;let{current:z}=a.useRef(null!=s),k=a.useCallback(r=>{},[]),D=a.useRef(null),H=(0,l.Z)(D,Z,k),[R,B]=a.useState(!1);a.useEffect(()=>{!C&&n&&R&&(B(!1),null==h||h())},[C,n,R,h]);let W=r=>e=>{var n,t;if(null!=C&&C.disabled){e.stopPropagation();return}null==(n=r.onFocus)||n.call(r,e),C&&C.onFocus?null==C||null==(t=C.onFocus)||t.call(C):B(!0)},w=r=>e=>{var n;null==(n=r.onBlur)||n.call(r,e),C&&C.onBlur?C.onBlur():B(!1)},F=r=>(e,...n)=>{var t,o;if(!z){let r=e.target||D.current;if(null==r)throw Error((0,i.Z)(17))}null==C||null==(t=C.onChange)||t.call(C,e),null==(o=r.onChange)||o.call(r,e,...n)},P=r=>e=>{var n;D.current&&e.currentTarget===e.target&&D.current.focus(),null==(n=r.onClick)||n.call(r,e)};return{disabled:n,error:o,focused:R,formControlContext:C,getInputProps:(r={})=>{let a=(0,t.Z)({},{onBlur:h,onChange:g,onFocus:f},(0,u.Z)(r)),i=(0,t.Z)({},r,a,{onBlur:w(a),onChange:F(a),onFocus:W(a)});return(0,t.Z)({},i,{"aria-invalid":o||void 0,defaultValue:e,ref:H,value:s,required:c,disabled:n})},getRootProps:(e={})=>{let n=(0,u.Z)(r,["onBlur","onChange","onFocus"]),o=(0,t.Z)({},n,(0,u.Z)(e));return(0,t.Z)({},e,o,{onClick:P(o)})},inputRef:H,required:c,value:s}}({disabled:null!=b?b:null==n?void 0:n.disabled,defaultValue:m,error:Z,onBlur:H,onClick:x,onChange:S,onFocus:D,required:null!=W?W:null==n?void 0:n.required,value:F}),_={[e.disabled]:N,[e.error]:$,[e.focused]:E,[e.formControl]:!!n,[f]:f},q={[e.disabled]:N};return(0,t.Z)({formControl:n,propsToForward:{"aria-describedby":p,"aria-label":v,"aria-labelledby":I,autoComplete:h,autoFocus:g,disabled:N,id:C,onKeyDown:z,onKeyUp:k,name:y,placeholder:R,readOnly:B,type:w},rootStateClasses:_,inputStateClasses:q,getRootProps:O,getInputProps:T,focused:E,error:$,disabled:N},P)}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/872-4a145d8028102d89.js b/pilot/server/static/_next/static/chunks/872-4a145d8028102d89.js deleted file mode 100644 index 8cf263a7f..000000000 --- a/pilot/server/static/_next/static/chunks/872-4a145d8028102d89.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[872],{72474:function(e,t,r){r.d(t,{Z:function(){return l}});var o=r(40431),n=r(86006),a={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},i=r(1240),l=n.forwardRef(function(e,t){return n.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:a}))})},59534:function(e,t,r){var o=r(78997);t.Z=void 0;var n=o(r(76906)),a=r(9268),i=(0,n.default)((0,a.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"}),"CheckCircleOutlined");t.Z=i},68949:function(e,t,r){var o=r(78997);t.Z=void 0;var n=o(r(76906)),a=r(9268),i=(0,n.default)((0,a.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");t.Z=i},28086:function(e,t,r){r.d(t,{Z:function(){return D}});var o=r(46750),n=r(40431),a=r(86006),i=r(53832),l=r(47562),c=r(24263),s=r(21454),d=r(99179),u=r(50645),p=r(88930),m=r(47093),h=r(326),f=r(18587);function g(e){return(0,f.d6)("MuiSwitch",e)}let v=(0,f.sI)("MuiSwitch",["root","checked","disabled","action","input","thumb","track","focusVisible","readOnly","colorPrimary","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantOutlined","variantSoft","variantSolid","startDecorator","endDecorator"]);var b=r(31857),y=r(9268);let w=["checked","defaultChecked","disabled","onBlur","onChange","onFocus","onFocusVisible","readOnly","required","id","color","variant","size","startDecorator","endDecorator","component","slots","slotProps"],x=e=>{let{checked:t,disabled:r,focusVisible:o,readOnly:n,color:a,variant:c}=e,s={root:["root",t&&"checked",r&&"disabled",o&&"focusVisible",n&&"readOnly",c&&`variant${(0,i.Z)(c)}`,a&&`color${(0,i.Z)(a)}`],thumb:["thumb",t&&"checked"],track:["track",t&&"checked"],action:["action",o&&"focusVisible"],input:["input"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(s,g,{})},$=({theme:e,ownerState:t})=>(r={})=>{var o;let n=(null==(o=e.variants[`${t.variant}${r.state||""}`])?void 0:o[t.color])||{};return{"--Switch-trackBackground":n.backgroundColor,"--Switch-trackColor":n.color,"--Switch-trackBorderColor":"outlined"===t.variant?n.borderColor:"currentColor","--Switch-thumbBackground":n.color,"--Switch-thumbColor":n.backgroundColor}},S=(0,u.Z)("div",{name:"JoySwitch",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r;let o=$({theme:e,ownerState:t});return(0,n.Z)({"--variant-borderWidth":null==(r=e.variants[t.variant])||null==(r=r[t.color])?void 0:r["--variant-borderWidth"],"--Switch-trackRadius":e.vars.radius.lg,"--Switch-thumbShadow":"soft"===t.variant?"none":"0 0 0 1px var(--Switch-trackBackground)"},"sm"===t.size&&{"--Switch-trackWidth":"40px","--Switch-trackHeight":"20px","--Switch-thumbSize":"12px","--Switch-gap":"6px",fontSize:e.vars.fontSize.sm},"md"===t.size&&{"--Switch-trackWidth":"48px","--Switch-trackHeight":"24px","--Switch-thumbSize":"16px","--Switch-gap":"8px",fontSize:e.vars.fontSize.md},"lg"===t.size&&{"--Switch-trackWidth":"64px","--Switch-trackHeight":"32px","--Switch-thumbSize":"24px","--Switch-gap":"12px"},{"--unstable_paddingBlock":"max((var(--Switch-trackHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Switch-thumbSize)) / 2, 0px)","--Switch-thumbRadius":"max(var(--Switch-trackRadius) - var(--unstable_paddingBlock), min(var(--unstable_paddingBlock) / 2, var(--Switch-trackRadius) / 2))","--Switch-thumbWidth":"var(--Switch-thumbSize)","--Switch-thumbOffset":"max((var(--Switch-trackHeight) - var(--Switch-thumbSize)) / 2, 0px)"},o(),{"&:hover":(0,n.Z)({},o({state:"Hover"})),[`&.${v.checked}`]:(0,n.Z)({},o(),{"&:hover":(0,n.Z)({},o({state:"Hover"}))}),[`&.${v.disabled}`]:(0,n.Z)({pointerEvents:"none",color:e.vars.palette.text.tertiary},o({state:"Disabled"})),display:"inline-flex",alignItems:"center",alignSelf:"center",fontFamily:e.vars.fontFamily.body,position:"relative",padding:"calc((var(--Switch-thumbSize) / 2) - (var(--Switch-trackHeight) / 2)) calc(-1 * var(--Switch-thumbOffset))",backgroundColor:"initial",border:"none",margin:"var(--unstable_Switch-margin)"})}),k=(0,u.Z)("div",{name:"JoySwitch",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e})=>({borderRadius:"var(--Switch-trackRadius)",position:"absolute",top:0,left:0,bottom:0,right:0,[e.focus.selector]:e.focus.default})),C=(0,u.Z)("input",{name:"JoySwitch",slot:"Input",overridesResolver:(e,t)=>t.input})({margin:0,height:"100%",width:"100%",opacity:0,position:"absolute",cursor:"pointer"}),E=(0,u.Z)("span",{name:"JoySwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>(0,n.Z)({position:"relative",color:"var(--Switch-trackColor)",height:"var(--Switch-trackHeight)",width:"var(--Switch-trackWidth)",display:"flex",flexShrink:0,justifyContent:"space-between",alignItems:"center",boxSizing:"border-box",border:"var(--variant-borderWidth, 0px) solid",borderColor:"var(--Switch-trackBorderColor)",backgroundColor:"var(--Switch-trackBackground)",borderRadius:"var(--Switch-trackRadius)",fontFamily:e.vars.fontFamily.body},"sm"===t.size&&{fontSize:e.vars.fontSize.xs},"md"===t.size&&{fontSize:e.vars.fontSize.sm},"lg"===t.size&&{fontSize:e.vars.fontSize.md})),Z=(0,u.Z)("span",{name:"JoySwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})({"--Icon-fontSize":"calc(var(--Switch-thumbSize) * 0.75)",display:"inline-flex",justifyContent:"center",alignItems:"center",position:"absolute",top:"50%",left:"calc(50% - var(--Switch-trackWidth) / 2 + var(--Switch-thumbWidth) / 2 + var(--Switch-thumbOffset))",transform:"translate(-50%, -50%)",width:"var(--Switch-thumbWidth)",height:"var(--Switch-thumbSize)",borderRadius:"var(--Switch-thumbRadius)",boxShadow:"var(--Switch-thumbShadow)",color:"var(--Switch-thumbColor)",backgroundColor:"var(--Switch-thumbBackground)",[`&.${v.checked}`]:{left:"calc(50% + var(--Switch-trackWidth) / 2 - var(--Switch-thumbWidth) / 2 - var(--Switch-thumbOffset))"}}),O=(0,u.Z)("span",{name:"JoySwitch",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({display:"inline-flex",marginInlineEnd:"var(--Switch-gap)"}),z=(0,u.Z)("span",{name:"JoySwitch",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({display:"inline-flex",marginInlineStart:"var(--Switch-gap)"}),T=a.forwardRef(function(e,t){var r,i,l,u,f;let g=(0,p.Z)({props:e,name:"JoySwitch"}),{checked:v,defaultChecked:$,disabled:T,onBlur:D,onChange:I,onFocus:R,onFocusVisible:j,readOnly:H,id:N,color:M,variant:P="solid",size:F="md",startDecorator:B,endDecorator:W,component:L,slots:A={},slotProps:_={}}=g,X=(0,o.Z)(g,w),V=a.useContext(b.Z),U=null!=(r=null!=(i=e.disabled)?i:null==V?void 0:V.disabled)?r:T,q=null!=(l=null!=(u=e.size)?u:null==V?void 0:V.size)?l:F,{getColor:J}=(0,m.VT)(P),G=J(e.color,null!=V&&V.error?"danger":null!=(f=null==V?void 0:V.color)?f:M),{getInputProps:K,checked:Q,disabled:Y,focusVisible:ee,readOnly:et}=function(e){let{checked:t,defaultChecked:r,disabled:o,onBlur:i,onChange:l,onFocus:u,onFocusVisible:p,readOnly:m,required:h}=e,[f,g]=(0,c.Z)({controlled:t,default:!!r,name:"Switch",state:"checked"}),v=e=>t=>{var r;t.nativeEvent.defaultPrevented||(g(t.target.checked),null==l||l(t),null==(r=e.onChange)||r.call(e,t))},{isFocusVisibleRef:b,onBlur:y,onFocus:w,ref:x}=(0,s.Z)(),[$,S]=a.useState(!1);o&&$&&S(!1),a.useEffect(()=>{b.current=$},[$,b]);let k=a.useRef(null),C=e=>t=>{var r;k.current||(k.current=t.currentTarget),w(t),!0===b.current&&(S(!0),null==p||p(t)),null==u||u(t),null==(r=e.onFocus)||r.call(e,t)},E=e=>t=>{var r;y(t),!1===b.current&&S(!1),null==i||i(t),null==(r=e.onBlur)||r.call(e,t)},Z=(0,d.Z)(x,k);return{checked:f,disabled:!!o,focusVisible:$,getInputProps:(e={})=>(0,n.Z)({checked:t,defaultChecked:r,disabled:o,readOnly:m,ref:Z,required:h,type:"checkbox"},e,{onChange:v(e),onFocus:C(e),onBlur:E(e)}),inputRef:Z,readOnly:!!m}}({checked:v,defaultChecked:$,disabled:U,onBlur:D,onChange:I,onFocus:R,onFocusVisible:j,readOnly:H}),er=(0,n.Z)({},g,{id:N,checked:Q,disabled:Y,focusVisible:ee,readOnly:et,color:Q?G||"primary":G||"neutral",variant:P,size:q}),eo=x(er),en=(0,n.Z)({},X,{component:L,slots:A,slotProps:_}),[ea,ei]=(0,h.Z)("root",{ref:t,className:eo.root,elementType:S,externalForwardedProps:en,ownerState:er}),[el,ec]=(0,h.Z)("startDecorator",{additionalProps:{"aria-hidden":!0},className:eo.startDecorator,elementType:O,externalForwardedProps:en,ownerState:er}),[es,ed]=(0,h.Z)("endDecorator",{additionalProps:{"aria-hidden":!0},className:eo.endDecorator,elementType:z,externalForwardedProps:en,ownerState:er}),[eu,ep]=(0,h.Z)("track",{className:eo.track,elementType:E,externalForwardedProps:en,ownerState:er}),[em,eh]=(0,h.Z)("thumb",{className:eo.thumb,elementType:Z,externalForwardedProps:en,ownerState:er}),[ef,eg]=(0,h.Z)("action",{className:eo.action,elementType:k,externalForwardedProps:en,ownerState:er}),[ev,eb]=(0,h.Z)("input",{additionalProps:{id:null!=N?N:null==V?void 0:V.htmlFor,"aria-describedby":null==V?void 0:V["aria-describedby"]},className:eo.input,elementType:C,externalForwardedProps:en,getSlotProps:K,ownerState:er});return(0,y.jsxs)(ea,(0,n.Z)({},ei,{children:[B&&(0,y.jsx)(el,(0,n.Z)({},ec,{children:"function"==typeof B?B(er):B})),(0,y.jsxs)(eu,(0,n.Z)({},ep,{children:[null==ep?void 0:ep.children,(0,y.jsx)(em,(0,n.Z)({},eh))]})),(0,y.jsx)(ef,(0,n.Z)({},eg,{children:(0,y.jsx)(ev,(0,n.Z)({},eb))})),W&&(0,y.jsx)(es,(0,n.Z)({},ed,{children:"function"==typeof W?W(er):W}))]}))});var D=T},866:function(e,t,r){r.d(t,{Z:function(){return j}});var o=r(46750),n=r(40431),a=r(86006),i=r(53832),l=r(47562),c=r(8431),s=r(99179),d=r(30165),u=r(22099),p=r(11059),m=r(9268);let h=["onChange","maxRows","minRows","style","value"];function f(e){return parseInt(e,10)||0}let g={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function v(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}let b=a.forwardRef(function(e,t){let{onChange:r,maxRows:i,minRows:l=1,style:b,value:y}=e,w=(0,o.Z)(e,h),{current:x}=a.useRef(null!=y),$=a.useRef(null),S=(0,s.Z)(t,$),k=a.useRef(null),C=a.useRef(0),[E,Z]=a.useState({outerHeightStyle:0}),O=a.useCallback(()=>{let t=$.current,r=(0,d.Z)(t),o=r.getComputedStyle(t);if("0px"===o.width)return{outerHeightStyle:0};let n=k.current;n.style.width=o.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");let a=o.boxSizing,c=f(o.paddingBottom)+f(o.paddingTop),s=f(o.borderBottomWidth)+f(o.borderTopWidth),u=n.scrollHeight;n.value="x";let p=n.scrollHeight,m=u;l&&(m=Math.max(Number(l)*p,m)),i&&(m=Math.min(Number(i)*p,m)),m=Math.max(m,p);let h=m+("border-box"===a?c+s:0),g=1>=Math.abs(m-u);return{outerHeightStyle:h,overflow:g}},[i,l,e.placeholder]),z=(e,t)=>{let{outerHeightStyle:r,overflow:o}=t;return C.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==o)?(C.current+=1,{overflow:o,outerHeightStyle:r}):e},T=a.useCallback(()=>{let e=O();v(e)||Z(t=>z(t,e))},[O]),D=()=>{let e=O();v(e)||c.flushSync(()=>{Z(t=>z(t,e))})};return a.useEffect(()=>{let e;let t=(0,u.Z)(()=>{C.current=0,$.current&&D()}),r=$.current,o=(0,d.Z)(r);return o.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(r),()=>{t.clear(),o.removeEventListener("resize",t),e&&e.disconnect()}}),(0,p.Z)(()=>{T()}),a.useEffect(()=>{C.current=0},[y]),(0,m.jsxs)(a.Fragment,{children:[(0,m.jsx)("textarea",(0,n.Z)({value:y,onChange:e=>{C.current=0,x||T(),r&&r(e)},ref:S,rows:l,style:(0,n.Z)({height:E.outerHeightStyle,overflow:E.overflow?"hidden":void 0},b)},w)),(0,m.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:(0,n.Z)({},g.shadow,b,{paddingTop:0,paddingBottom:0})})]})});var y=r(50645),w=r(88930),x=r(47093),$=r(326),S=r(18587);function k(e){return(0,S.d6)("MuiTextarea",e)}let C=(0,S.sI)("MuiTextarea",["root","textarea","startDecorator","endDecorator","formControl","disabled","error","focused","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","sizeSm","sizeMd","sizeLg","variantPlain","variantOutlined","variantSoft"]);var E=r(74313);let Z=["propsToForward","rootStateClasses","inputStateClasses","getRootProps","getInputProps","formControl","focused","error","disabled","size","color","variant","startDecorator","endDecorator","minRows","maxRows","component","slots","slotProps"],O=e=>{let{disabled:t,variant:r,color:o,size:n}=e,a={root:["root",t&&"disabled",r&&`variant${(0,i.Z)(r)}`,o&&`color${(0,i.Z)(o)}`,n&&`size${(0,i.Z)(n)}`],textarea:["textarea"],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,l.Z)(a,k,{})},z=(0,y.Z)("div",{name:"JoyTextarea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var r,o,a,i,l;let c=null==(r=e.variants[`${t.variant}`])?void 0:r[t.color];return[(0,n.Z)({"--Textarea-radius":e.vars.radius.sm,"--Textarea-gap":"0.5rem","--Textarea-placeholderColor":"inherit","--Textarea-placeholderOpacity":.5,"--Textarea-focused":"0","--Textarea-focusedThickness":e.vars.focus.thickness},"context"===t.color?{"--Textarea-focusedHighlight":e.vars.palette.focusVisible}:{"--Textarea-focusedHighlight":null==(o=e.vars.palette["neutral"===t.color?"primary":t.color])?void 0:o[500]},"sm"===t.size&&{"--Textarea-minHeight":"2rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.5rem","--Textarea-decoratorChildHeight":"min(1.5rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.25rem"},"md"===t.size&&{"--Textarea-minHeight":"2.5rem","--Textarea-paddingBlock":"calc(0.5rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"0.75rem","--Textarea-decoratorChildHeight":"min(2rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.5rem"},"lg"===t.size&&{"--Textarea-minHeight":"3rem","--Textarea-paddingBlock":"calc(0.75rem - var(--variant-borderWidth, 0px))","--Textarea-paddingInline":"1rem","--Textarea-gap":"0.75rem","--Textarea-decoratorChildHeight":"min(2.375rem, var(--Textarea-minHeight))","--Icon-fontSize":"1.75rem"},{"--_Textarea-paddingBlock":"max((var(--Textarea-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Textarea-decoratorChildHeight)) / 2, 0px)","--Textarea-decoratorChildRadius":"max(var(--Textarea-radius) - var(--variant-borderWidth, 0px) - var(--_Textarea-paddingBlock), min(var(--_Textarea-paddingBlock) + var(--variant-borderWidth, 0px), var(--Textarea-radius) / 2))","--Button-minHeight":"var(--Textarea-decoratorChildHeight)","--IconButton-size":"var(--Textarea-decoratorChildHeight)","--Button-radius":"var(--Textarea-decoratorChildRadius)","--IconButton-radius":"var(--Textarea-decoratorChildRadius)",boxSizing:"border-box",minWidth:0,minHeight:"var(--Textarea-minHeight)",cursor:"text",position:"relative",display:"flex",flexDirection:"column",paddingInlineStart:"var(--Textarea-paddingInline)",paddingBlock:"var(--Textarea-paddingBlock)",borderRadius:"var(--Textarea-radius)",fontFamily:e.vars.fontFamily.body,fontSize:e.vars.fontSize.md,lineHeight:e.vars.lineHeight.md},"sm"===t.size&&{fontSize:e.vars.fontSize.sm,lineHeight:e.vars.lineHeight.sm},{"&:before":{boxSizing:"border-box",content:'""',display:"block",position:"absolute",pointerEvents:"none",top:0,left:0,right:0,bottom:0,zIndex:1,borderRadius:"inherit",margin:"calc(var(--variant-borderWidth, 0px) * -1)",boxShadow:"var(--Textarea-focusedInset, inset) 0 0 0 calc(var(--Textarea-focused) * var(--Textarea-focusedThickness)) var(--Textarea-focusedHighlight)"}}),(0,n.Z)({},c,{backgroundColor:null!=(a=null==c?void 0:c.backgroundColor)?a:e.vars.palette.background.surface,"&:hover":(0,n.Z)({},null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color],{backgroundColor:null,cursor:"text"}),[`&.${C.disabled}`]:null==(l=e.variants[`${t.variant}Disabled`])?void 0:l[t.color],"&:focus-within::before":{"--Textarea-focused":"1"}})]}),T=(0,y.Z)(b,{name:"JoyTextarea",slot:"Textarea",overridesResolver:(e,t)=>t.textarea})({resize:"none",border:"none",minWidth:0,outline:0,padding:0,paddingInlineEnd:"var(--Textarea-paddingInline)",flex:"auto",alignSelf:"stretch",color:"inherit",backgroundColor:"transparent",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontWeight:"inherit",lineHeight:"inherit","&::-webkit-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-moz-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&:-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"},"&::-ms-input-placeholder":{color:"var(--Textarea-placeholderColor)",opacity:"var(--Textarea-placeholderOpacity)"}}),D=(0,y.Z)("div",{name:"JoyTextarea",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})(({theme:e})=>({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockEnd:"var(--Textarea-gap)",color:e.vars.palette.text.tertiary,cursor:"initial"})),I=(0,y.Z)("div",{name:"JoyTextarea",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})(({theme:e})=>({display:"flex",marginInlineStart:"calc(var(--Textarea-paddingBlock) - var(--Textarea-paddingInline))",marginInlineEnd:"var(--Textarea-paddingBlock)",marginBlockStart:"var(--Textarea-gap)",color:e.vars.palette.text.tertiary,cursor:"initial"})),R=a.forwardRef(function(e,t){var r,a,i,l,c,s,d;let u=(0,w.Z)({props:e,name:"JoyTextarea"}),p=(0,E.Z)(u,C),{propsToForward:h,rootStateClasses:f,inputStateClasses:g,getRootProps:v,getInputProps:b,formControl:y,focused:S,error:k=!1,disabled:R=!1,size:j="md",color:H="neutral",variant:N="outlined",startDecorator:M,endDecorator:P,minRows:F,maxRows:B,component:W,slots:L={},slotProps:A={}}=p,_=(0,o.Z)(p,Z),X=null!=(r=null!=(a=e.disabled)?a:null==y?void 0:y.disabled)?r:R,V=null!=(i=null!=(l=e.error)?l:null==y?void 0:y.error)?i:k,U=null!=(c=null!=(s=e.size)?s:null==y?void 0:y.size)?c:j,{getColor:q}=(0,x.VT)(N),J=q(e.color,V?"danger":null!=(d=null==y?void 0:y.color)?d:H),G=(0,n.Z)({},u,{color:J,disabled:X,error:V,focused:S,size:U,variant:N}),K=O(G),Q=(0,n.Z)({},_,{component:W,slots:L,slotProps:A}),[Y,ee]=(0,$.Z)("root",{ref:t,className:[K.root,f],elementType:z,externalForwardedProps:Q,getSlotProps:v,ownerState:G}),[et,er]=(0,$.Z)("textarea",{additionalProps:{id:null==y?void 0:y.htmlFor,"aria-describedby":null==y?void 0:y["aria-describedby"]},className:[K.textarea,g],elementType:T,internalForwardedProps:(0,n.Z)({},h,{minRows:F,maxRows:B}),externalForwardedProps:Q,getSlotProps:b,ownerState:G}),[eo,en]=(0,$.Z)("startDecorator",{className:K.startDecorator,elementType:D,externalForwardedProps:Q,ownerState:G}),[ea,ei]=(0,$.Z)("endDecorator",{className:K.endDecorator,elementType:I,externalForwardedProps:Q,ownerState:G});return(0,m.jsxs)(Y,(0,n.Z)({},ee,{children:[M&&(0,m.jsx)(eo,(0,n.Z)({},en,{children:M})),(0,m.jsx)(et,(0,n.Z)({},er)),P&&(0,m.jsx)(ea,(0,n.Z)({},ei,{children:P}))]}))});var j=R},50157:function(e,t,r){r.d(t,{default:function(){return tl}});var o=r(86006),n=r(90151),a=r(8683),i=r.n(a),l=r(40431),c=r(18050),s=r(49449),d=r(43663),u=r(38340),p=r(65877),m=r(89301),h=r(71971),f=r(965),g=r(27859),v=r(42442);function b(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function y(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var o=e.data[t];if(Array.isArray(o)){o.forEach(function(e){r.append("".concat(t,"[]"),e)});return}r.append(t,o)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){if(t.status<200||t.status>=300){var r;return e.onError(((r=Error("cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"))).status=t.status,r.method=e.method,r.url=e.action,r),b(t))}return e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(e){null!==o[e]&&t.setRequestHeader(e,o[e])}),t.send(r),{abort:function(){t.abort()}}}var w=+new Date,x=0;function $(){return"rc-upload-".concat(w,"-").concat(++x)}var S=r(5004),k=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),o=e.name||"",n=e.type||"",a=n.replace(/\/.*$/,"");return r.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=o.toLowerCase(),i=t.toLowerCase(),l=[i];return(".jpg"===i||".jpeg"===i)&&(l=[".jpg",".jpeg"]),l.some(function(e){return r.endsWith(e)})}return/\/\*$/.test(t)?a===t.replace(/\/.*$/,""):n===t||!!/^\w+$/.test(t)&&((0,S.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0},C=function(e,t,r){var o=function e(o,n){if(o.path=n||"",o.isFile)o.file(function(e){r(e)&&(o.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))});else if(o.isDirectory){var a,i,l;a=function(t){t.forEach(function(t){e(t,"".concat(n).concat(o.name,"/"))})},i=o.createReader(),l=[],function e(){i.readEntries(function(t){var r=Array.prototype.slice.apply(t);l=l.concat(r),r.length?e():a(l)})}()}};e.forEach(function(e){o(e.webkitGetAsEntry())})},E=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Z=function(e){(0,d.Z)(r,e);var t=(0,u.Z)(r);function r(){(0,c.Z)(this,r);for(var e,o,a=arguments.length,i=Array(a),l=0;l{let{uid:r}=t;return r===e.uid});return -1===o?r.push(e):r[o]=e,r}function K(e,t){let r=void 0!==e.uid?"uid":"name";return t.filter(t=>t[r]===e[r])[0]}let Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),r=t[t.length-1],o=r.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},Y=e=>0===e.indexOf("image/"),ee=e=>{if(e.type&&!e.thumbUrl)return Y(e.type);let t=e.thumbUrl||e.url||"",r=Q(t);return!!(/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r))||!/^data:/.test(t)&&!r};function et(e){return new Promise(t=>{if(!e.type||!Y(e.type)){t("");return}let r=document.createElement("canvas");r.width=200,r.height=200,r.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(r);let o=r.getContext("2d"),n=new Image;if(n.onload=()=>{let{width:e,height:a}=n,i=200,l=200,c=0,s=0;e>a?s=-((l=a*(200/e))-i)/2:c=-((i=e*(200/a))-l)/2,o.drawImage(n,c,s,i,l);let d=r.toDataURL();document.body.removeChild(r),t(d)},n.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){let t=new FileReader;t.addEventListener("load",()=>{t.result&&(n.src=t.result)}),t.readAsDataURL(e)}else n.src=window.URL.createObjectURL(e)})}var er={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},eo=o.forwardRef(function(e,t){return o.createElement(M.Z,(0,l.Z)({},e,{ref:t,icon:er}))}),en={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},ea=o.forwardRef(function(e,t){return o.createElement(M.Z,(0,l.Z)({},e,{ref:t,icon:en}))}),ei={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},el=o.forwardRef(function(e,t){return o.createElement(M.Z,(0,l.Z)({},e,{ref:t,icon:ei}))}),ec=r(34777),es=r(95131),ed=r(56222),eu=r(31533),ep=r(73234),em=r(88684),eh={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ef=function(){var e=(0,o.useRef)([]),t=(0,o.useRef)(null);return(0,o.useEffect)(function(){var r=Date.now(),o=!1;e.current.forEach(function(e){if(e){o=!0;var n=e.style;n.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(n.transitionDuration="0s, 0s")}}),o&&(t.current=Date.now())}),e.current},eg=r(60456),ev=r(71693),eb=0,ey=(0,ev.Z)(),ew=function(e){var t=o.useState(),r=(0,eg.Z)(t,2),n=r[0],a=r[1];return o.useEffect(function(){var e;a("rc_progress_".concat((ey?(e=eb,eb+=1):e="TEST_OR_SSR",e)))},[]),e||n},ex=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function e$(e){return+e.replace("%","")}function eS(e){var t=null!=e?e:[];return Array.isArray(t)?t:[t]}var ek=function(e,t,r,o,n,a,i,l,c,s){var d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,u=(100-o)/100*t;return"round"===c&&100!==o&&(u+=s/2)>=t&&(u=t-.01),{stroke:"string"==typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:u+d,transform:"rotate(".concat(n+r/100*360*((360-a)/360)+(0===a?0:({bottom:0,top:180,left:90,right:-90})[i]),"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},eC=function(e){var t,r,n,a,c=(0,em.Z)((0,em.Z)({},eh),e),s=c.id,d=c.prefixCls,u=c.steps,p=c.strokeWidth,h=c.trailWidth,g=c.gapDegree,v=void 0===g?0:g,b=c.gapPosition,y=c.trailColor,w=c.strokeLinecap,x=c.style,$=c.className,S=c.strokeColor,k=c.percent,C=(0,m.Z)(c,ex),E=ew(s),Z="".concat(E,"-gradient"),O=50-p/2,z=2*Math.PI*O,T=v>0?90+v/2:-90,D=z*((360-v)/360),I="object"===(0,f.Z)(u)?u:{count:u,space:2},R=I.count,j=I.space,H=ek(z,D,0,100,T,v,b,y,w,p),N=eS(k),M=eS(S),P=M.find(function(e){return e&&"object"===(0,f.Z)(e)}),F=ef();return o.createElement("svg",(0,l.Z)({className:i()("".concat(d,"-circle"),$),viewBox:"".concat(-50," ").concat(-50," ").concat(100," ").concat(100),style:x,id:s,role:"presentation"},C),P&&o.createElement("defs",null,o.createElement("linearGradient",{id:Z,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(P).sort(function(e,t){return e$(e)-e$(t)}).map(function(e,t){return o.createElement("stop",{key:t,offset:e,stopColor:P[e]})}))),!R&&o.createElement("circle",{className:"".concat(d,"-circle-trail"),r:O,cx:0,cy:0,stroke:y,strokeLinecap:w,strokeWidth:h||p,style:H}),R?(t=Math.round(R*(N[0]/100)),r=100/R,n=0,Array(R).fill(null).map(function(e,a){var i=a<=t-1?M[0]:y,l=i&&"object"===(0,f.Z)(i)?"url(#".concat(Z,")"):void 0,c=ek(z,D,n,r,T,v,b,i,"butt",p,j);return n+=(D-c.strokeDashoffset+j)*100/D,o.createElement("circle",{key:a,className:"".concat(d,"-circle-path"),r:O,cx:0,cy:0,stroke:l,strokeWidth:p,opacity:1,style:c,ref:function(e){F[a]=e}})})):(a=0,N.map(function(e,t){var r=M[t]||M[M.length-1],n=r&&"object"===(0,f.Z)(r)?"url(#".concat(Z,")"):void 0,i=ek(z,D,a,e,T,v,b,r,w,p);return a+=e,o.createElement("circle",{key:t,className:"".concat(d,"-circle-path"),r:O,cx:0,cy:0,stroke:n,strokeLinecap:w,strokeWidth:p,opacity:0===e?0:1,style:i,ref:function(e){F[t]=e}})}).reverse()))},eE=r(15241),eZ=r(70333);function eO(e){return!e||e<0?0:e>100?100:e}function ez(e){let{success:t,successPercent:r}=e,o=r;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}let eT=e=>{let{percent:t,success:r,successPercent:o}=e,n=eO(ez({success:r,successPercent:o}));return[n,eO(eO(t)-n)]},eD=e=>{let{success:t={},strokeColor:r}=e,{strokeColor:o}=t;return[o||eZ.ez.green,r||null]},eI=(e,t,r)=>{var o,n,a,i;let l=-1,c=-1;if("step"===t){let t=r.steps,o=r.strokeWidth;"string"==typeof e||void 0===e?(l="small"===e?2:14,c=null!=o?o:8):"number"==typeof e?[l,c]=[e,e]:[l=14,c=8]=e,l*=t}else if("line"===t){let t=null==r?void 0:r.strokeWidth;"string"==typeof e||void 0===e?c=t||("small"===e?6:8):"number"==typeof e?[l,c]=[e,e]:[l=-1,c=8]=e}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[l,c]="small"===e?[60,60]:[120,120]:"number"==typeof e?[l,c]=[e,e]:(l=null!==(n=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==n?n:120,c=null!==(i=null!==(a=e[0])&&void 0!==a?a:e[1])&&void 0!==i?i:120));return[l,c]},eR=e=>3/e*100;var ej=e=>{let{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:l,width:c=120,type:s,children:d,success:u,size:p=c}=e,[m,h]=eI(p,"circle"),{strokeWidth:f}=e;void 0===f&&(f=Math.max(eR(m),6));let g=o.useMemo(()=>l||0===l?l:"dashboard"===s?75:void 0,[l,s]),v=a||"dashboard"===s&&"bottom"||void 0,b="[object Object]"===Object.prototype.toString.call(e.strokeColor),y=eD({success:u,strokeColor:e.strokeColor}),w=i()(`${t}-inner`,{[`${t}-circle-gradient`]:b}),x=o.createElement(eC,{percent:eT(e),strokeWidth:f,trailWidth:f,strokeColor:y,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:g,gapPosition:v});return o.createElement("div",{className:w,style:{width:m,height:h,fontSize:.15*m+6}},m<=20?o.createElement(eE.Z,{title:d},o.createElement("span",null,x)):o.createElement(o.Fragment,null,x,d))},eH=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let eN=e=>{let t=[];return Object.keys(e).forEach(r=>{let o=parseFloat(r.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[r]})}),(t=t.sort((e,t)=>e.key-t.key)).map(e=>{let{key:t,value:r}=e;return`${r} ${t}%`}).join(", ")},eM=(e,t)=>{let{from:r=eZ.ez.blue,to:o=eZ.ez.blue,direction:n="rtl"===t?"to left":"to right"}=e,a=eH(e,["from","to","direction"]);if(0!==Object.keys(a).length){let e=eN(a);return{backgroundImage:`linear-gradient(${n}, ${e})`}}return{backgroundImage:`linear-gradient(${n}, ${r}, ${o})`}};var eP=e=>{let{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:i,strokeColor:l,strokeLinecap:c="round",children:s,trailColor:d=null,success:u}=e,p=l&&"string"!=typeof l?eM(l,r):{backgroundColor:l},m="square"===c||"butt"===c?0:void 0,h=null!=a?a:[-1,i||("small"===a?6:8)],[f,g]=eI(h,"line",{strokeWidth:i}),v=Object.assign({width:`${eO(n)}%`,height:g,borderRadius:m},p),b=ez(e),y={width:`${eO(b)}%`,height:g,borderRadius:m,backgroundColor:null==u?void 0:u.strokeColor};return o.createElement(o.Fragment,null,o.createElement("div",{className:`${t}-outer`,style:{width:f<0?"100%":f,height:g}},o.createElement("div",{className:`${t}-inner`,style:{backgroundColor:d||void 0,borderRadius:m}},o.createElement("div",{className:`${t}-bg`,style:v}),void 0!==b?o.createElement("div",{className:`${t}-success-bg`,style:y}):null)),s)},eF=e=>{let{size:t,steps:r,percent:n=0,strokeWidth:a=8,strokeColor:l,trailColor:c=null,prefixCls:s,children:d}=e,u=Math.round(r*(n/100)),p=null!=t?t:["small"===t?2:14,a],[m,h]=eI(p,"step",{steps:r,strokeWidth:a}),f=m/r,g=Array(r);for(let e=0;e{let{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},(0,eA.Wf)(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:e_,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},eV=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},eU=e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},eq=e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}};var eJ=(0,eW.Z)("Progress",e=>{let t=e.marginXXS/2,r=(0,eL.TS)(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eX(r),eV(r),eU(r),eq(r)]}),eG=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let eK=["normal","exception","active","success"],eQ=o.forwardRef((e,t)=>{let r;let{prefixCls:n,className:a,rootClassName:l,steps:c,strokeColor:s,percent:d=0,size:u="default",showInfo:p=!0,type:m="line",status:h,format:f}=e,g=eG(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format"]),v=o.useMemo(()=>{var t,r;let o=ez(e);return parseInt(void 0!==o?null===(t=null!=o?o:0)||void 0===t?void 0:t.toString():null===(r=null!=d?d:0)||void 0===r?void 0:r.toString(),10)},[d,e.success,e.successPercent]),b=o.useMemo(()=>!eK.includes(h)&&v>=100?"success":h||"normal",[h,v]),{getPrefixCls:y,direction:w}=o.useContext(I.E_),x=y("progress",n),[$,S]=eJ(x),k=o.useMemo(()=>{let t;if(!p)return null;let r=ez(e),n=f||(e=>`${e}%`),a="line"===m;return f||"exception"!==b&&"success"!==b?t=n(eO(d),eO(r)):"exception"===b?t=a?o.createElement(ed.Z,null):o.createElement(eu.Z,null):"success"===b&&(t=a?o.createElement(ec.Z,null):o.createElement(es.Z,null)),o.createElement("span",{className:`${x}-text`,title:"string"==typeof t?t:void 0},t)},[p,d,v,b,m,x,f]),C=Array.isArray(s)?s[0]:s,E="string"==typeof s||Array.isArray(s)?s:void 0;"line"===m?r=c?o.createElement(eF,Object.assign({},e,{strokeColor:E,prefixCls:x,steps:c}),k):o.createElement(eP,Object.assign({},e,{strokeColor:C,prefixCls:x,direction:w}),k):("circle"===m||"dashboard"===m)&&(r=o.createElement(ej,Object.assign({},e,{strokeColor:C,prefixCls:x,progressStatus:b}),k));let Z=i()(x,{[`${x}-inline-circle`]:"circle"===m&&eI(u,"circle")[0]<=20,[`${x}-${"dashboard"===m&&"circle"||c&&"steps"||m}`]:!0,[`${x}-status-${b}`]:!0,[`${x}-show-info`]:p,[`${x}-${u}`]:"string"==typeof u,[`${x}-rtl`]:"rtl"===w},a,l,S);return $(o.createElement("div",Object.assign({ref:t,className:Z,role:"progressbar","aria-valuenow":v},(0,ep.Z)(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),r))}),eY=o.forwardRef((e,t)=>{var r,n;let{prefixCls:a,className:l,style:c,locale:s,listType:d,file:u,items:p,progress:m,iconRender:h,actionIconRender:f,itemRender:g,isImgUrl:v,showPreviewIcon:b,showRemoveIcon:y,showDownloadIcon:w,previewIcon:x,removeIcon:$,downloadIcon:S,onPreview:k,onDownload:C,onClose:E}=e,{status:Z}=u,[O,z]=o.useState(Z);o.useEffect(()=>{"removed"!==Z&&z(Z)},[Z]);let[T,D]=o.useState(!1),R=o.useRef(null);o.useEffect(()=>(R.current=setTimeout(()=>{D(!0)},300),()=>{R.current&&clearTimeout(R.current)}),[]);let j=h(u),H=o.createElement("div",{className:`${a}-icon`},j);if("picture"===d||"picture-card"===d||"picture-circle"===d){if("uploading"!==O&&(u.thumbUrl||u.url)){let e=(null==v?void 0:v(u))?o.createElement("img",{src:u.thumbUrl||u.url,alt:u.name,className:`${a}-list-item-image`,crossOrigin:u.crossOrigin}):j,t=i()({[`${a}-list-item-thumbnail`]:!0,[`${a}-list-item-file`]:v&&!v(u)});H=o.createElement("a",{className:t,onClick:e=>k(u,e),href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}else{let e=i()({[`${a}-list-item-thumbnail`]:!0,[`${a}-list-item-file`]:"uploading"!==O});H=o.createElement("div",{className:e},j)}}let N=i()(`${a}-list-item`,`${a}-list-item-${O}`),M="string"==typeof u.linkProps?JSON.parse(u.linkProps):u.linkProps,P=y?f(("function"==typeof $?$(u):$)||o.createElement(eo,null),()=>E(u),a,s.removeFile):null,F=w&&"done"===O?f(("function"==typeof S?S(u):S)||o.createElement(ea,null),()=>C(u),a,s.downloadFile):null,B="picture-card"!==d&&"picture-circle"!==d&&o.createElement("span",{key:"download-delete",className:i()(`${a}-list-item-actions`,{picture:"picture"===d})},F,P),W=i()(`${a}-list-item-name`),L=u.url?[o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:u.name},M,{href:u.url,onClick:e=>k(u,e)}),u.name),B]:[o.createElement("span",{key:"view",className:W,onClick:e=>k(u,e),title:u.name},u.name),B],A=b?o.createElement("a",{href:u.url||u.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:u.url||u.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:e=>k(u,e),title:s.previewFile},"function"==typeof x?x(u):x||o.createElement(el,null)):null,X=("picture-card"===d||"picture-circle"===d)&&"uploading"!==O&&o.createElement("span",{className:`${a}-list-item-actions`},A,"done"===O&&F,P),{getPrefixCls:V}=o.useContext(I.E_),U=V(),q=o.createElement("div",{className:N},H,L,X,T&&o.createElement(_.ZP,{motionName:`${U}-fade`,visible:"uploading"===O,motionDeadline:2e3},e=>{let{className:t}=e,r="percent"in u?o.createElement(eQ,Object.assign({},m,{type:"line",percent:u.percent,"aria-label":u["aria-label"],"aria-labelledby":u["aria-labelledby"]})):null;return o.createElement("div",{className:i()(`${a}-list-item-progress`,t)},r)})),J=u.response&&"string"==typeof u.response?u.response:(null===(r=u.error)||void 0===r?void 0:r.statusText)||(null===(n=u.error)||void 0===n?void 0:n.message)||s.uploadError,G="error"===O?o.createElement(eE.Z,{title:J,getPopupContainer:e=>e.parentNode},q):q;return o.createElement("div",{className:i()(`${a}-list-item-container`,l),style:c,ref:t},g?g(G,u,p,{download:C.bind(null,u),preview:k.bind(null,u),remove:E.bind(null,u)}):G)}),e0=o.forwardRef((e,t)=>{let{listType:r="text",previewFile:a=et,onPreview:l,onDownload:c,onRemove:s,locale:d,iconRender:u,isImageUrl:p=ee,prefixCls:m,items:h=[],showPreviewIcon:f=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:b,previewIcon:y,downloadIcon:w,progress:x={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:S=!0,itemRender:k,disabled:C}=e,E=(0,X.Z)(),[Z,O]=o.useState(!1);o.useEffect(()=>{("picture"===r||"picture-card"===r||"picture-circle"===r)&&(h||[]).forEach(e=>{"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",a&&a(e.originFileObj).then(t=>{e.thumbUrl=t||"",E()}))})},[r,h,a]),o.useEffect(()=>{O(!0)},[]);let z=(e,t)=>{if(l)return null==t||t.preventDefault(),l(e)},T=e=>{"function"==typeof c?c(e):e.url&&window.open(e.url)},D=e=>{null==s||s(e)},R=e=>{if(u)return u(e,r);let t="uploading"===e.status,n=p&&p(e)?o.createElement(A,null):o.createElement(P,null),a=t?o.createElement(F.Z,null):o.createElement(W,null);return"picture"===r?a=t?o.createElement(F.Z,null):n:("picture-card"===r||"picture-circle"===r)&&(a=t?d.uploading:n),a},j=(e,t,r,n)=>{let a={type:"text",size:"small",title:n,onClick:r=>{t(),(0,U.l$)(e)&&e.props.onClick&&e.props.onClick(r)},className:`${r}-list-item-action`,disabled:C};if((0,U.l$)(e)){let t=(0,U.Tm)(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}));return o.createElement(q.ZP,Object.assign({},a,{icon:t}))}return o.createElement(q.ZP,Object.assign({},a),o.createElement("span",null,e))};o.useImperativeHandle(t,()=>({handlePreview:z,handleDownload:T}));let{getPrefixCls:H}=o.useContext(I.E_),N=H("upload",m),M=H(),B=i()({[`${N}-list`]:!0,[`${N}-list-${r}`]:!0}),L=(0,n.Z)(h.map(e=>({key:e.uid,file:e}))),J="picture-card"===r||"picture-circle"===r?"animate-inline":"animate",G={motionDeadline:2e3,motionName:`${N}-${J}`,keys:L,motionAppear:Z},K=o.useMemo(()=>{let e=Object.assign({},(0,V.ZP)(M));return delete e.onAppearEnd,delete e.onEnterEnd,delete e.onLeaveEnd,e},[M]);return"picture-card"!==r&&"picture-circle"!==r&&(G=Object.assign(Object.assign({},K),G)),o.createElement("div",{className:B},o.createElement(_.V4,Object.assign({},G,{component:!1}),e=>{let{key:t,file:n,className:a,style:i}=e;return o.createElement(eY,{key:t,locale:d,prefixCls:N,className:a,style:i,file:n,items:h,progress:x,listType:r,isImgUrl:p,showPreviewIcon:f,showRemoveIcon:g,showDownloadIcon:v,removeIcon:b,previewIcon:y,downloadIcon:w,iconRender:R,actionIconRender:j,itemRender:k,onPreview:z,onDownload:T,onClose:D})}),$&&o.createElement(_.ZP,Object.assign({},G,{visible:S,forceRender:!0}),e=>{let{className:t,style:r}=e;return(0,U.Tm)($,e=>({className:i()(e.className,t),style:Object.assign(Object.assign(Object.assign({},r),{pointerEvents:t?"none":void 0}),e.style)}))}))});var e1=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),e2=e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${r}, - p${t}-text, - p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},e3=e=>{let{componentCls:t,antCls:r,iconCls:o,fontSize:n,lineHeight:a}=e,i=`${t}-list-item`,l=`${i}-actions`,c=`${i}-action`,s=Math.round(n*a);return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},(0,eA.dF)()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*n,marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:Object.assign(Object.assign({},eA.vS),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[c]:{opacity:0},[`${c}${r}-btn-sm`]:{height:s,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${c}:focus, - &.picture ${c} - `]:{opacity:1},[o]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:n},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:n+e.paddingXS,fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${c}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${o}`]:{color:e.colorError},[l]:{[`${o}, ${o}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}};let e6=new eB.E4("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),e4=new eB.E4("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var e8=e=>{let{componentCls:t}=e,r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:e6},[`${r}-leave`]:{animationName:e4}}},e6,e4]},e7=r(57389);let e5=e=>{let{componentCls:t,iconCls:r,uploadThumbnailSize:o,uploadProgressOffset:n}=e,a=`${t}-list`,i=`${a}-item`;return{[`${t}-wrapper`]:{[` - ${a}${a}-picture, - ${a}${a}-picture-card, - ${a}${a}-picture-circle - `]:{[i]:{position:"relative",height:o+2*e.lineWidth+2*e.paddingXS,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:Object.assign(Object.assign({},eA.vS),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:n,width:`calc(100% - ${2*e.paddingSM}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${r}`]:{[`svg path[fill='${eZ.iN[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${eZ.iN.primary}']`]:{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:n}}},[`${a}${a}-picture-circle ${i}`]:{[`&, &::before, ${i}-thumbnail`]:{borderRadius:"50%"}}}}},e9=e=>{let{componentCls:t,iconCls:r,fontSizeLG:o,colorTextLightSolid:n}=e,a=`${t}-list`,i=`${a}-item`,l=e.uploadPicCardSize;return{[` - ${t}-wrapper${t}-picture-card-wrapper, - ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,eA.dF)()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{[`${a}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${2*e.paddingXS}px)`,height:`calc(100% - ${2*e.paddingXS}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${r}-eye, ${r}-download, ${r}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${i}-actions, ${i}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new e7.C(n).setAlpha(.65).toRgbString(),"&:hover":{color:n}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${2*e.paddingXS}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${2*e.paddingXS}px)`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}};var te=e=>{let{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}};let tt=e=>{let{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},(0,eA.Wf)(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}};var tr=(0,eW.Z)("Upload",e=>{let{fontSizeHeading3:t,fontSize:r,lineHeight:o,lineWidth:n,controlHeightLG:a}=e,i=(0,eL.TS)(e,{uploadThumbnailSize:2*t,uploadProgressOffset:Math.round(r*o)/2+n,uploadPicCardSize:2.55*a});return[tt(i),e2(i),e5(i),e9(i),e3(i),e8(i),te(i),e1(i)]},e=>({actionsColor:e.colorTextDescription}));let to=`__LIST_IGNORE_${Date.now()}__`,tn=o.forwardRef((e,t)=>{var r;let{fileList:a,defaultFileList:l,onRemove:c,showUploadList:s=!0,listType:d="text",onPreview:u,onDownload:p,onChange:m,onDrop:h,previewFile:f,disabled:g,locale:v,iconRender:b,isImageUrl:y,progress:w,prefixCls:x,className:$,type:S="select",children:k,style:C,itemRender:E,maxCount:Z,data:O={},multiple:N=!1,action:M="",accept:P="",supportServerRender:F=!0}=e,B=o.useContext(R.Z),W=null!=g?g:B,[L,A]=(0,T.Z)(l||[],{value:a,postState:e=>null!=e?e:[]}),[_,X]=o.useState("drop"),V=o.useRef(null);o.useMemo(()=>{let e=Date.now();(a||[]).forEach((t,r)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${r}__`)})},[a]);let U=(e,t,r)=>{let o=(0,n.Z)(t),a=!1;1===Z?o=o.slice(-1):Z&&(a=!0,o=o.slice(0,Z)),(0,D.flushSync)(()=>{A(o)});let i={file:e,fileList:o};r&&(i.event=r),(!a||o.some(t=>t.uid===e.uid))&&(0,D.flushSync)(()=>{null==m||m(i)})},q=e=>{let t=e.filter(e=>!e.file[to]);if(!t.length)return;let r=t.map(e=>J(e.file)),o=(0,n.Z)(L);r.forEach(e=>{o=G(e,o)}),r.forEach((e,r)=>{let n=e;if(t[r].parsedFile)e.status="uploading";else{let t;let{originFileObj:r}=e;try{t=new File([r],r.name,{type:r.type})}catch(e){(t=new Blob([r],{type:r.type})).name=r.name,t.lastModifiedDate=new Date,t.lastModified=new Date().getTime()}t.uid=e.uid,n=t}U(n,o)})},Q=(e,t,r)=>{try{"string"==typeof e&&(e=JSON.parse(e))}catch(e){}if(!K(t,L))return;let o=J(t);o.status="done",o.percent=100,o.response=e,o.xhr=r;let n=G(o,L);U(o,n)},Y=(e,t)=>{if(!K(t,L))return;let r=J(t);r.status="uploading",r.percent=e.percent;let o=G(r,L);U(r,o,e)},ee=(e,t,r)=>{if(!K(r,L))return;let o=J(r);o.error=e,o.response=t,o.status="error";let n=G(o,L);U(o,n)},et=e=>{let t;Promise.resolve("function"==typeof c?c(e):c).then(r=>{var o;if(!1===r)return;let n=function(e,t){let r=void 0!==e.uid?"uid":"name",o=t.filter(t=>t[r]!==e[r]);return o.length===t.length?null:o}(e,L);n&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null==L||L.forEach(e=>{let r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")}),null===(o=V.current)||void 0===o||o.abort(t),U(t,n))})},er=e=>{X(e.type),"drop"===e.type&&(null==h||h(e))};o.useImperativeHandle(t,()=>({onBatchStart:q,onSuccess:Q,onProgress:Y,onError:ee,fileList:L,upload:V.current}));let{getPrefixCls:eo,direction:en}=o.useContext(I.E_),ea=eo("upload",x),ei=Object.assign(Object.assign({onBatchStart:q,onError:ee,onProgress:Y,onSuccess:Q},e),{data:O,multiple:N,action:M,accept:P,supportServerRender:F,prefixCls:ea,disabled:W,beforeUpload:(t,r)=>{var o,n,a,i;return o=void 0,n=void 0,a=void 0,i=function*(){let{beforeUpload:o,transformFile:n}=e,a=t;if(o){let e=yield o(t,r);if(!1===e)return!1;if(delete t[to],e===to)return Object.defineProperty(t,to,{value:!0,configurable:!0}),!1;"object"==typeof e&&e&&(a=e)}return n&&(a=yield n(a)),a},new(a||(a=Promise))(function(e,t){function r(e){try{c(i.next(e))}catch(e){t(e)}}function l(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var o;t.done?e(t.value):((o=t.value)instanceof a?o:new a(function(e){e(o)})).then(r,l)}c((i=i.apply(o,n||[])).next())})},onChange:void 0});delete ei.className,delete ei.style,(!k||W)&&delete ei.id;let[el,ec]=tr(ea),[es]=(0,j.Z)("Upload",H.Z.Upload),{showRemoveIcon:ed,showPreviewIcon:eu,showDownloadIcon:ep,removeIcon:em,previewIcon:eh,downloadIcon:ef}="boolean"==typeof s?{}:s,eg=(e,t)=>s?o.createElement(e0,{prefixCls:ea,listType:d,items:L,previewFile:f,onPreview:u,onDownload:p,onRemove:et,showRemoveIcon:!W&&ed,showPreviewIcon:eu,showDownloadIcon:ep,removeIcon:em,previewIcon:eh,downloadIcon:ef,iconRender:b,locale:Object.assign(Object.assign({},es),v),isImageUrl:y,progress:w,appendAction:e,appendActionVisible:t,itemRender:E,disabled:W}):e,ev={[`${ea}-rtl`]:"rtl"===en};if("drag"===S){let e=i()(ea,{[`${ea}-drag`]:!0,[`${ea}-drag-uploading`]:L.some(e=>"uploading"===e.status),[`${ea}-drag-hover`]:"dragover"===_,[`${ea}-disabled`]:W,[`${ea}-rtl`]:"rtl"===en},ec);return el(o.createElement("span",{className:i()(`${ea}-wrapper`,ev,$,ec)},o.createElement("div",{className:e,onDrop:er,onDragOver:er,onDragLeave:er,style:C},o.createElement(z,Object.assign({},ei,{ref:V,className:`${ea}-btn`}),o.createElement("div",{className:`${ea}-drag-container`},k))),eg()))}let eb=i()(ea,`${ea}-select`,{[`${ea}-disabled`]:W}),ey=(r=k?void 0:{display:"none"},o.createElement("div",{className:eb,style:r},o.createElement(z,Object.assign({},ei,{ref:V}))));return el("picture-card"===d||"picture-circle"===d?o.createElement("span",{className:i()(`${ea}-wrapper`,{[`${ea}-picture-card-wrapper`]:"picture-card"===d,[`${ea}-picture-circle-wrapper`]:"picture-circle"===d},ev,$,ec)},eg(ey,!!k)):o.createElement("span",{className:i()(`${ea}-wrapper`,ev,$,ec)},ey,eg()))});var ta=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);nt.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r};let ti=o.forwardRef((e,t)=>{var{style:r,height:n}=e,a=ta(e,["style","height"]);return o.createElement(tn,Object.assign({ref:t},a,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))});tn.Dragger=ti,tn.LIST_IGNORE=to;var tl=tn}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/877-546903595944ff79.js b/pilot/server/static/_next/static/chunks/877-546903595944ff79.js deleted file mode 100644 index 1dc7c46b0..000000000 --- a/pilot/server/static/_next/static/chunks/877-546903595944ff79.js +++ /dev/null @@ -1,77 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[877],{70333:function(e,t,r){"use strict";r.d(t,{iN:function(){return g},R_:function(){return f},ez:function(){return d}});var n=r(32675),o=r(79185),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,r=e.g,o=e.b,i=(0,n.py)(t,r,o);return{h:360*i.h,s:i.s,v:i.v}}function l(e){var t=e.r,r=e.g,o=e.b;return"#".concat((0,n.vq)(t,r,o,!1))}function s(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function c(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function u(e,t,r){var n;return(n=r?e.v+.05*t:e.v-.15*t)>1&&(n=1),Number(n.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(n),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));r.push(p)}r.push(l(n));for(var h=1;h<=4;h+=1){var g=a(n),m=l((0,o.uA)({h:s(g,h),s:c(g,h),v:u(g,h)}));r.push(m)}return"dark"===t.theme?i.map(function(e){var n,i,a,s=e.index,c=e.opacity;return l((n=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(r[s]),a=100*c/100,{r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b}))}):r}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}),p.red,p.volcano,p.gold,p.orange,p.yellow,p.lime,p.green,p.cyan;var g=p.blue;p.geekblue,p.purple,p.magenta,p.grey,p.grey},11717:function(e,t,r){"use strict";r.d(t,{E4:function(){return H},jG:function(){return U},t2:function(){return k},fp:function(){return A},xy:function(){return N}});var n=r(90151),o=r(88684),i=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},a=r(86006);r(55567),r(81027);var l=r(18050),s=r(49449),c=r(65877),u=function(){function e(t){(0,l.Z)(this,e),(0,c.Z)(this,"instanceId",void 0),(0,c.Z)(this,"cache",new Map),this.instanceId=t}return(0,s.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var r=e.join("%"),n=t(this.cache.get(r));null===n?this.cache.delete(r):this.cache.set(r,n)}}]),e}(),f="data-token-hash",d="data-css-hash",p="__cssinjs_instance__",h=a.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(d,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[p]=t[p]||e,t[p]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(d,"]"))).forEach(function(t){var r,o=t.getAttribute(d);n[o]?t[p]===e&&(null===(r=t.parentNode)||void 0===r||r.removeChild(t)):n[o]=!0})}return new u(e)}(),defaultCache:!0}),g=r(965),m=r(71693),v=r(52160);function y(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n&&"object"===(0,g.Z)(n)?t+=y(n):t+=n}),t}var b="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),x="903px",C=void 0,w=r(60456);function S(e,t,r,o){var i=a.useContext(h).cache,l=[e].concat((0,n.Z)(t));return a.useMemo(function(){i.update(l,function(e){var t=(0,w.Z)(e||[],2),n=t[0];return[(void 0===n?0:n)+1,t[1]||r()]})},[l.join("_")]),a.useEffect(function(){return function(){i.update(l,function(e){var t=(0,w.Z)(e||[],2),r=t[0],n=void 0===r?0:r,i=t[1];return 0==n-1?(null==o||o(i,!1),null):[n-1,i]})}},l),i.get(l)[1]}var E={},$=new Map,k=function(e,t,r,n){var i=r.getDerivativeToken(e),a=(0,o.Z)((0,o.Z)({},i),t);return n&&(a=n(a)),a};function A(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,a.useContext)(h).cache.instanceId,l=r.salt,s=void 0===l?"":l,c=r.override,u=void 0===c?E:c,d=r.formatToken,g=a.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,n.Z)(t)))},[t]),m=a.useMemo(function(){return y(g)},[g]),v=a.useMemo(function(){return y(u)},[u]);return S("token",[s,e.id,m,v],function(){var t=k(g,u,e,d),r=i("".concat(s,"_").concat(y(t)));t._tokenKey=r,$.set(r,($.get(r)||0)+1);var n="".concat("css","-").concat(i(r));return t._hashId=n,[t,n]},function(e){var t,r,n;t=e[0]._tokenKey,$.set(t,($.get(t)||0)-1),(n=(r=Array.from($.keys())).filter(function(e){return 0>=($.get(e)||0)})).length1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=i.root,l=i.injectHash,s=i.parentSelectors,c=r.hashId,u=r.layer,f=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d;r.linters;var h="",y={};function S(t){var n=t.getName(c);if(!y[n]){var o=e(t.style,r,{root:!1,parentSelectors:s}),i=(0,w.Z)(o,1)[0];y[n]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(t)?t:[t]).forEach(function(t){var i="string"!=typeof t||a?t:{};if("string"==typeof i)h+="".concat(i,"\n");else if(i._keyframe)S(i);else{var u=p.reduce(function(e,t){var r;return(null==t?void 0:null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e},i);Object.keys(u).forEach(function(t){var i=u[t];if("object"!==(0,g.Z)(i)||!i||"animationName"===t&&i._keyframe||"object"===(0,g.Z)(i)&&i&&("_skip_check_"in i||R in i)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;Z[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(S(t),n=t.getName(c)),h+="".concat(r,":").concat(n,";")}var p,m=null!==(p=null==i?void 0:i.value)&&void 0!==p?p:i;"object"===(0,g.Z)(i)&&null!=i&&i[R]&&Array.isArray(m)?m.forEach(function(e){d(t,e)}):d(t,m)}else{var v=!1,b=t.trim(),x=!1;(a||l)&&c?b.startsWith("@")?v=!0:b=function(e,t,r){if(!t)return e;var o=".".concat(t),i="low"===r?":where(".concat(o,")"):o;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),o=r[0]||"",a=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(a).concat(i).concat(o.slice(a.length))].concat((0,n.Z)(r.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===b||""===b)&&(b="",x=!0);var C=e(i,r,{root:x,injectHash:v,parentSelectors:[].concat((0,n.Z)(s),[b])}),E=(0,w.Z)(C,2),$=E[0],k=E[1];y=(0,o.Z)((0,o.Z)({},y),k),h+="".concat(b).concat($)}})}}),a){if(u&&(void 0===C&&(C=function(e,t){if((0,m.Z)()){(0,v.hq)(e,b);var r,n=document.createElement("div");n.style.position="fixed",n.style.left="0",n.style.top="0",null==t||t(n),document.body.appendChild(n);var o=getComputedStyle(n).width===x;return null===(r=n.parentNode)||void 0===r||r.removeChild(n),(0,v.jL)(b),o}return!1}("@layer ".concat(b," { .").concat(b," { width: ").concat(x,"!important; } }"),function(e){e.className=b})),C)){var E=u.split(","),$=E[E.length-1].trim();h="@layer ".concat($," {").concat(h,"}"),E.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,y]};function _(){return null}function N(e,t){var r=e.token,o=e.path,l=e.hashId,s=e.layer,u=e.nonce,g=a.useContext(h),m=g.autoClear,y=(g.mock,g.defaultCache),b=g.hashPriority,x=g.container,C=g.ssrInline,E=g.transformers,$=g.linters,k=g.cache,A=r._tokenKey,Z=[A].concat((0,n.Z)(o)),B=S("style",Z,function(){var e=F(t(),{hashId:l,hashPriority:b,layer:s,path:o.join("-"),transformers:E,linters:$}),r=(0,w.Z)(e,2),n=r[0],a=r[1],c=M(n),h=i("".concat(Z.join("%")).concat(c));if(j){var g={mark:d,prepend:"queue",attachTo:x},m="function"==typeof u?u():u;m&&(g.csp={nonce:m});var y=(0,v.hq)(c,h,g);y[p]=k.instanceId,y.setAttribute(f,A),Object.keys(a).forEach(function(e){(0,v.hq)(M(a[e]),"_effect-".concat(e),g)})}return[c,A,h]},function(e,t){var r=(0,w.Z)(e,3)[2];(t||m)&&j&&(0,v.jL)(r,{mark:d})}),P=(0,w.Z)(B,3),T=P[0],R=P[1],N=P[2];return function(e){var t,r;return t=C&&!j&&y?a.createElement("style",(0,O.Z)({},(r={},(0,c.Z)(r,f,R),(0,c.Z)(r,d,N),r),{dangerouslySetInnerHTML:{__html:T}})):a.createElement(_,null),a.createElement(a.Fragment,null,t,e)}}var H=function(){function e(t,r){(0,l.Z)(this,e),(0,c.Z)(this,"name",void 0),(0,c.Z)(this,"style",void 0),(0,c.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,s.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}(),D=function(){function e(){(0,l.Z)(this,e),(0,c.Z)(this,"cache",void 0),(0,c.Z)(this,"keys",void 0),(0,c.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,s.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,r;o=null===(t=o)||void 0===t?void 0:null===(r=t.map)||void 0===r?void 0:r.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var r=(0,w.Z)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),L+=1}return(0,s.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),z=new D;function U(e){var t=Array.isArray(e)?e:[e];return z.has(t)||z.set(t,new I(t)),z.get(t)}function W(e){return e.notSplit=!0,e}W(["borderTop","borderBottom"]),W(["borderTop"]),W(["borderBottom"]),W(["borderLeft","borderRight"]),W(["borderLeft"]),W(["borderRight"])},1240:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(40431),o=r(60456),i=r(65877),a=r(89301),l=r(86006),s=r(8683),c=r.n(s),u=r(70333),f=r(83346),d=r(88684),p=r(965),h=r(5004),g=r(52160),m=r(60618);function v(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):t[r]=n,t},{})}function b(e){return(0,u.R_)(e)[0]}function x(e){return e?Array.isArray(e)?e:[e]:[]}var C=function(e){var t=(0,l.useContext)(f.Z),r=t.csp,n=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),(0,l.useEffect)(function(){var t=e.current,n=(0,m.A)(t);(0,g.hq)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},w=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},E=function(e){var t,r,n=e.icon,o=e.className,i=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,f=(0,a.Z)(e,w),p=l.useRef(),g=S;if(c&&(g={primaryColor:c,secondaryColor:u||b(c)}),C(p),t=v(n),r="icon should be icon definiton, but got ".concat(n),(0,h.ZP)(t,"[@ant-design/icons] ".concat(r)),!v(n))return null;var m=n;return m&&"function"==typeof m.icon&&(m=(0,d.Z)((0,d.Z)({},m),{},{icon:m.icon(g.primaryColor,g.secondaryColor)})),function e(t,r,n){return n?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:r},y(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:r},y(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))}(m.icon,"svg-".concat(m.name),(0,d.Z)((0,d.Z)({className:o,onClick:i,style:s,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function $(e){var t=x(e),r=(0,o.Z)(t,2),n=r[0],i=r[1];return E.setTwoToneColors({primaryColor:n,secondaryColor:i})}E.displayName="IconReact",E.getTwoToneColors=function(){return(0,d.Z)({},S)},E.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;S.primaryColor=t,S.secondaryColor=r||b(t),S.calculated=!!r};var k=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];$(u.iN.primary);var A=l.forwardRef(function(e,t){var r,s=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,k),y=l.useContext(f.Z),b=y.prefixCls,C=void 0===b?"anticon":b,w=y.rootClassName,S=c()(w,C,(r={},(0,i.Z)(r,"".concat(C,"-").concat(u.name),!!u.name),(0,i.Z)(r,"".concat(C,"-spin"),!!d||"loading"===u.name),r),s),$=h;void 0===$&&g&&($=-1);var A=x(m),O=(0,o.Z)(A,2),Z=O[0],B=O[1];return l.createElement("span",(0,n.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:$,onClick:g,className:S}),l.createElement(E,{icon:u,primaryColor:Z,secondaryColor:B,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});A.displayName="AntdIcon",A.getTwoToneColor=function(){var e=E.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},A.setTwoToneColor=$;var O=A},83346:function(e,t,r){"use strict";var n=(0,r(86006).createContext)({});t.Z=n},34777:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},56222:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},31533:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},27977:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},49132:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},75710:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},32675:function(e,t,r){"use strict";r.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var n=r(25752);function o(e,t,r){return{r:255*(0,n.sh)(e,255),g:255*(0,n.sh)(t,255),b:255*(0,n.sh)(r,255)}}function i(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-r)/c+(t1&&(r-=1),r<1/6)?e+(t-e)*(6*r):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function l(e,t,r){if(e=(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100),0===t)i=r,l=r,o=r;else{var o,i,l,s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-r)/l+(t>16,g:(65280&e)>>8,b:255&e}}},29888:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},79185:function(e,t,r){"use strict";r.d(t,{uA:function(){return a}});var n=r(32675),o=r(29888),i=r(25752);function a(e){var t={r:0,g:0,b:0},r=1,a=null,l=null,s=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=u.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=u.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=u.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=u.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=u.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=u.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=u.hex8.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),a:(0,n.T6)(r[4]),format:t?"name":"hex8"}:(r=u.hex6.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),format:t?"name":"hex"}:(r=u.hex4.exec(e))?{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),a:(0,n.T6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=u.hex3.exec(e))&&{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,n.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,n.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,n.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,i.Yq)(r),{ok:c,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return!!u.CSS_UNIT.exec(String(e))}},57389:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var n=r(32675),o=r(29888),i=r(79185),a=r(25752),l=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=r.format)&&void 0!==o?o:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,n.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,n.py)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,n.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,n.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,n.vq)(this.r,this.g,this.b,!1),t=0,r=Object.entries(o.R);t=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(255*(t/100))))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(255*(t/100))))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(255*(t/100))))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(a)},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],l=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;aMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}r.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return n}})},43709:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t-1&&!e.return)switch(e.type){case a.h5:e.return=function e(t,r){switch((0,i.vp)(t,r)){case 5103:return a.G$+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.G$+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a.G$+t+a.uj+t+a.MS+t+t;case 6828:case 4268:return a.G$+t+a.MS+t+t;case 6165:return a.G$+t+a.MS+"flex-"+t+t;case 5187:return a.G$+t+(0,i.gx)(t,/(\w+).+(:[^]+)/,a.G$+"box-$1$2"+a.MS+"flex-$1$2")+t;case 5443:return a.G$+t+a.MS+"flex-item-"+(0,i.gx)(t,/flex-|-self/,"")+t;case 4675:return a.G$+t+a.MS+"flex-line-pack"+(0,i.gx)(t,/align-content|flex-|-self/,"")+t;case 5548:return a.G$+t+a.MS+(0,i.gx)(t,"shrink","negative")+t;case 5292:return a.G$+t+a.MS+(0,i.gx)(t,"basis","preferred-size")+t;case 6060:return a.G$+"box-"+(0,i.gx)(t,"-grow","")+a.G$+t+a.MS+(0,i.gx)(t,"grow","positive")+t;case 4554:return a.G$+(0,i.gx)(t,/([^-])(transform)/g,"$1"+a.G$+"$2")+t;case 6187:return(0,i.gx)((0,i.gx)((0,i.gx)(t,/(zoom-|grab)/,a.G$+"$1"),/(image-set)/,a.G$+"$1"),t,"")+t;case 5495:case 3959:return(0,i.gx)(t,/(image-set\([^]*)/,a.G$+"$1$`$1");case 4968:return(0,i.gx)((0,i.gx)(t,/(.+:)(flex-)?(.*)/,a.G$+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.G$+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.gx)(t,/(.+)-inline(.+)/,a.G$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.to)(t)-1-r>6)switch((0,i.uO)(t,r+1)){case 109:if(45!==(0,i.uO)(t,r+4))break;case 102:return(0,i.gx)(t,/(.+:)(.+)-([^]+)/,"$1"+a.G$+"$2-$3$1"+a.uj+(108==(0,i.uO)(t,r+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.Cw)(t,"stretch")?e((0,i.gx)(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==(0,i.uO)(t,r+1))break;case 6444:switch((0,i.uO)(t,(0,i.to)(t)-3-(~(0,i.Cw)(t,"!important")&&10))){case 107:return(0,i.gx)(t,":",":"+a.G$)+t;case 101:return(0,i.gx)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.G$+(45===(0,i.uO)(t,14)?"inline-":"")+"box$3$1"+a.G$+"$2$3$1"+a.MS+"$2box$3")+t}break;case 5936:switch((0,i.uO)(t,r+11)){case 114:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a.G$+t+a.MS+(0,i.gx)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a.G$+t+a.MS+t+t}return t}(e.value,e.length);break;case a.lK:return(0,l.q)([(0,o.JG)(e,{value:(0,i.gx)(e.value,"@","@"+a.G$)})],n);case a.Fr:if(e.length)return(0,i.$e)(e.props,function(t){switch((0,i.EQ)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(read-\w+)/,":"+a.uj+"$1")]})],n);case"::placeholder":return(0,l.q)([(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.G$+"input-$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,":"+a.uj+"$1")]}),(0,o.JG)(e,{props:[(0,i.gx)(t,/:(plac\w+)/,a.MS+"input-$1")]})],n)}return""})}}],g=function(e){var t,r,o,a,c,u=e.key;if("css"===u){var f=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(f,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var g=e.stylisPlugins||h,m={},v=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+u+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}},85124:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return l}});var n,o=r(86006),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},75941:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return i},fp:function(){return n},hC:function(){return o}});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(40431),o=r(46750),i=r(86006),a=r(89791),l=r(4323),s=r(51579),c=r(86601),u=r(95887),f=r(9268);let d=["className","component"];var p=r(47327),h=r(98918),g=r(8622);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:p="MuiBox-root",generateClassName:h}=e,g=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),m=i.forwardRef(function(e,i){let l=(0,u.Z)(r),s=(0,c.Z)(e),{className:m,component:v="div"}=s,y=(0,o.Z)(s,d);return(0,f.jsx)(g,(0,n.Z)({as:v,ref:i,className:(0,a.Z)(m,h?h(p):p),theme:t&&l[t]||l},y))});return m}({themeId:g.Z,defaultTheme:h.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var v=m},18587:function(e,t,r){"use strict";r.d(t,{d6:function(){return i},sI:function(){return a}});var n=r(13809),o=r(88539);let i=(e,t)=>(0,n.Z)(e,t,"Joy"),a=(e,t)=>(0,o.Z)(e,t,"Joy")},38230:function(e,t){"use strict";t.Z={grey:{50:"#F7F7F8",100:"#EBEBEF",200:"#D8D8DF",300:"#B9B9C6",400:"#8F8FA3",500:"#73738C",600:"#5A5A72",700:"#434356",800:"#25252D",900:"#131318"},blue:{50:"#F4FAFF",100:"#DDF1FF",200:"#ADDBFF",300:"#6FB6FF",400:"#3990FF",500:"#096BDE",600:"#054DA7",700:"#02367D",800:"#072859",900:"#00153C"},yellow:{50:"#FFF8C5",100:"#FAE17D",200:"#EAC54F",300:"#D4A72C",400:"#BF8700",500:"#9A6700",600:"#7D4E00",700:"#633C01",800:"#4D2D00",900:"#3B2300"},red:{50:"#FFF8F6",100:"#FFE9E8",200:"#FFC7C5",300:"#FF9192",400:"#FA5255",500:"#D3232F",600:"#A10E25",700:"#77061B",800:"#580013",900:"#39000D"},green:{50:"#F3FEF5",100:"#D7F5DD",200:"#77EC95",300:"#4CC76E",400:"#2CA24D",500:"#1A7D36",600:"#0F5D26",700:"#034318",800:"#002F0F",900:"#001D09"},purple:{50:"#FDF7FF",100:"#F4EAFF",200:"#E1CBFF",300:"#C69EFF",400:"#A374F9",500:"#814DDE",600:"#5F35AE",700:"#452382",800:"#301761",900:"#1D0A42"}}},31227:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(40431);function o(e,t,r){return void 0===e||"string"==typeof e?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},87862:function(e,t,r){"use strict";function n(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}r.d(t,{Z:function(){return n}})},85059:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(89791),i=r(87862);function a(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function l(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:l,externalForwardedProps:s,className:c}=e;if(!t){let e=(0,o.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==r?void 0:r.className),t=(0,n.Z)({},null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),i=(0,n.Z)({},r,s,l);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.Z)((0,n.Z)({},s,l)),f=a(l),d=a(s),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==r?void 0:r.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,n.Z)({},null==p?void 0:p.style,null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,n.Z)({},p,r,d,f);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},95596:function(e,t,r){"use strict";function n(e,t,r){return"function"==typeof e?e(t,r):e}r.d(t,{Z:function(){return n}})},47093:function(e,t,r){"use strict";r.d(t,{VT:function(){return s},do:function(){return c}});var n=r(86006),o=r(29720),i=r(98918),a=r(9268);let l=n.createContext(void 0),s=e=>{let t=n.useContext(l);return{getColor:(r,n)=>t&&e&&t.includes(e)?r||"context":r||n}};function c({children:e,variant:t}){var r;let n=(0,o.F)();return(0,a.jsx)(l.Provider,{value:t?(null!=(r=n.colorInversionConfig)?r:i.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},29720:function(e,t,r){"use strict";r.d(t,{F:function(){return c},Z:function(){return u}}),r(86006);var n=r(95887),o=r(14446),i=r(98918),a=r(41287),l=r(8622),s=r(9268);let c=()=>{let e=(0,n.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let r=i.Z;return t&&(r=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:r,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},98918:function(e,t,r){"use strict";var n=r(41287);let o=(0,n.Z)();t.Z=o},41287:function(e,t,r){"use strict";r.d(t,{Z:function(){return A}});var n=r(40431),o=r(46750),i=r(95135),a=r(82190),l=r(23343),s=r(57716),c=r(93815);let u=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},f=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,a])=>{r&&(!r||r([...o,n]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,n],Array.isArray(a)?[...i,n]:i):t([...o,n],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let r=e[e.length-1];return r.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:d(e,t)}),u(i,e,`var(${n})`,l),u(a,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],g=["light"];var m=function(e,t){let{colorSchemes:r={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=r,m=(0,o.Z)(r,g);if(Object.entries(m||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=p(r,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:n}}),d){let{css:e,vars:r,varsWithDefaults:n}=p(d,t);u=(0,i.Z)(u,n),f.light={css:e,vars:r}}return{vars:u,generateCssVars:e=>e?{css:(0,n.Z)({},f[e].css),vars:f[e].vars}:{css:(0,n.Z)({},s),vars:l}}},v=r(51579),y=r(2272);let b=(0,n.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=r(38230);function C(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var w=r(18587),S=r(52428);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],$=["colorSchemes"],k=(e="joy")=>(0,a.Z)(e);function A(e){var t,r,a,u,f,d,p,h,g,y,A,O,Z,B,P,T,j,R,M,F,_,N,H,D,L,I,z,U,W,G,K,q,V,X,Y,J,Q,ee,et,er,en,eo,ei,ea,el,es,ec,eu,ef,ed,ep,eh,eg,em,ev,ey;let eb=e||{},{cssVarPrefix:ex="joy",breakpoints:eC,spacing:ew,components:eS,variants:eE,colorInversion:e$,shouldSkipGeneratingVar:ek=C}=eb,eA=(0,o.Z)(eb,E),eO=k(ex),eZ={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,info:x.Z.purple,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FFF",black:"#09090D"}},eB=e=>{var t;let r=e.split("-"),n=r[1],o=r[2];return eO(e,null==(t=eZ[n])?void 0:t[o])},eP=e=>({plainColor:eB(`palette-${e}-600`),plainHoverBg:eB(`palette-${e}-100`),plainActiveBg:eB(`palette-${e}-200`),plainDisabledColor:eB(`palette-${e}-200`),outlinedColor:eB(`palette-${e}-500`),outlinedBorder:eB(`palette-${e}-200`),outlinedHoverBg:eB(`palette-${e}-100`),outlinedHoverBorder:eB(`palette-${e}-300`),outlinedActiveBg:eB(`palette-${e}-200`),outlinedDisabledColor:eB(`palette-${e}-100`),outlinedDisabledBorder:eB(`palette-${e}-100`),softColor:eB(`palette-${e}-600`),softBg:eB(`palette-${e}-100`),softHoverBg:eB(`palette-${e}-200`),softActiveBg:eB(`palette-${e}-300`),softDisabledColor:eB(`palette-${e}-300`),softDisabledBg:eB(`palette-${e}-50`),solidColor:"#fff",solidBg:eB(`palette-${e}-500`),solidHoverBg:eB(`palette-${e}-600`),solidActiveBg:eB(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:eB(`palette-${e}-200`)}),eT=e=>({plainColor:eB(`palette-${e}-300`),plainHoverBg:eB(`palette-${e}-800`),plainActiveBg:eB(`palette-${e}-700`),plainDisabledColor:eB(`palette-${e}-800`),outlinedColor:eB(`palette-${e}-200`),outlinedBorder:eB(`palette-${e}-700`),outlinedHoverBg:eB(`palette-${e}-800`),outlinedHoverBorder:eB(`palette-${e}-600`),outlinedActiveBg:eB(`palette-${e}-900`),outlinedDisabledColor:eB(`palette-${e}-800`),outlinedDisabledBorder:eB(`palette-${e}-800`),softColor:eB(`palette-${e}-200`),softBg:eB(`palette-${e}-900`),softHoverBg:eB(`palette-${e}-800`),softActiveBg:eB(`palette-${e}-700`),softDisabledColor:eB(`palette-${e}-800`),softDisabledBg:eB(`palette-${e}-900`),solidColor:"#fff",solidBg:eB(`palette-${e}-600`),solidHoverBg:eB(`palette-${e}-700`),solidActiveBg:eB(`palette-${e}-800`),solidDisabledColor:eB(`palette-${e}-700`),solidDisabledBg:eB(`palette-${e}-900`)}),ej={palette:{mode:"light",primary:(0,n.Z)({},eZ.primary,eP("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:eB("palette-neutral-800"),plainHoverColor:eB("palette-neutral-900"),plainHoverBg:eB("palette-neutral-100"),plainActiveBg:eB("palette-neutral-200"),plainDisabledColor:eB("palette-neutral-300"),outlinedColor:eB("palette-neutral-800"),outlinedBorder:eB("palette-neutral-200"),outlinedHoverColor:eB("palette-neutral-900"),outlinedHoverBg:eB("palette-neutral-100"),outlinedHoverBorder:eB("palette-neutral-300"),outlinedActiveBg:eB("palette-neutral-200"),outlinedDisabledColor:eB("palette-neutral-300"),outlinedDisabledBorder:eB("palette-neutral-100"),softColor:eB("palette-neutral-800"),softBg:eB("palette-neutral-100"),softHoverColor:eB("palette-neutral-900"),softHoverBg:eB("palette-neutral-200"),softActiveBg:eB("palette-neutral-300"),softDisabledColor:eB("palette-neutral-300"),softDisabledBg:eB("palette-neutral-50"),solidColor:eB("palette-common-white"),solidBg:eB("palette-neutral-600"),solidHoverBg:eB("palette-neutral-700"),solidActiveBg:eB("palette-neutral-800"),solidDisabledColor:eB("palette-neutral-300"),solidDisabledBg:eB("palette-neutral-50")}),danger:(0,n.Z)({},eZ.danger,eP("danger")),info:(0,n.Z)({},eZ.info,eP("info")),success:(0,n.Z)({},eZ.success,eP("success")),warning:(0,n.Z)({},eZ.warning,eP("warning"),{solidColor:eB("palette-warning-800"),solidBg:eB("palette-warning-200"),solidHoverBg:eB("palette-warning-300"),solidActiveBg:eB("palette-warning-400"),solidDisabledColor:eB("palette-warning-200"),solidDisabledBg:eB("palette-warning-50"),softColor:eB("palette-warning-800"),softBg:eB("palette-warning-50"),softHoverBg:eB("palette-warning-100"),softActiveBg:eB("palette-warning-200"),softDisabledColor:eB("palette-warning-200"),softDisabledBg:eB("palette-warning-50"),outlinedColor:eB("palette-warning-800"),outlinedHoverBg:eB("palette-warning-50"),plainColor:eB("palette-warning-800"),plainHoverBg:eB("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:eB("palette-neutral-800"),secondary:eB("palette-neutral-600"),tertiary:eB("palette-neutral-500")},background:{body:eB("palette-common-white"),surface:eB("palette-common-white"),popup:eB("palette-common-white"),level1:eB("palette-neutral-50"),level2:eB("palette-neutral-100"),level3:eB("palette-neutral-200"),tooltip:eB("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${eO("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.28)`,focusVisible:eB("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},eR={palette:{mode:"dark",primary:(0,n.Z)({},eZ.primary,eT("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:eB("palette-neutral-200"),plainHoverColor:eB("palette-neutral-50"),plainHoverBg:eB("palette-neutral-800"),plainActiveBg:eB("palette-neutral-700"),plainDisabledColor:eB("palette-neutral-700"),outlinedColor:eB("palette-neutral-200"),outlinedBorder:eB("palette-neutral-800"),outlinedHoverColor:eB("palette-neutral-50"),outlinedHoverBg:eB("palette-neutral-800"),outlinedHoverBorder:eB("palette-neutral-700"),outlinedActiveBg:eB("palette-neutral-800"),outlinedDisabledColor:eB("palette-neutral-800"),outlinedDisabledBorder:eB("palette-neutral-800"),softColor:eB("palette-neutral-200"),softBg:eB("palette-neutral-800"),softHoverColor:eB("palette-neutral-50"),softHoverBg:eB("palette-neutral-700"),softActiveBg:eB("palette-neutral-600"),softDisabledColor:eB("palette-neutral-700"),softDisabledBg:eB("palette-neutral-900"),solidColor:eB("palette-common-white"),solidBg:eB("palette-neutral-600"),solidHoverBg:eB("palette-neutral-700"),solidActiveBg:eB("palette-neutral-800"),solidDisabledColor:eB("palette-neutral-700"),solidDisabledBg:eB("palette-neutral-900")}),danger:(0,n.Z)({},eZ.danger,eT("danger")),info:(0,n.Z)({},eZ.info,eT("info")),success:(0,n.Z)({},eZ.success,eT("success"),{solidColor:"#fff",solidBg:eB("palette-success-600"),solidHoverBg:eB("palette-success-700"),solidActiveBg:eB("palette-success-800")}),warning:(0,n.Z)({},eZ.warning,eT("warning"),{solidColor:eB("palette-common-black"),solidBg:eB("palette-warning-300"),solidHoverBg:eB("palette-warning-400"),solidActiveBg:eB("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:eB("palette-neutral-100"),secondary:eB("palette-neutral-300"),tertiary:eB("palette-neutral-400")},background:{body:eB("palette-neutral-900"),surface:eB("palette-common-black"),popup:eB("palette-neutral-900"),level1:eB("palette-neutral-800"),level2:eB("palette-neutral-700"),level3:eB("palette-neutral-600"),tooltip:eB("palette-neutral-600"),backdrop:`rgba(${eO("palette-neutral-darkChannel",(0,l.n8)(eZ.neutral[800]))} / 0.5)`},divider:`rgba(${eO("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.24)`,focusVisible:eB("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},eM='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',eF=(0,n.Z)({body:`"Public Sans", ${eO(`fontFamily-fallback, ${eM}`)}`,display:`"Public Sans", ${eO(`fontFamily-fallback, ${eM}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:eM},eA.fontFamily),e_=(0,n.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eA.fontWeight),eN=(0,n.Z)({xs3:"0.5rem",xs2:"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem"},eA.fontSize),eH=(0,n.Z)({sm:1.25,md:1.5,lg:1.7},eA.lineHeight),eD=(0,n.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eA.letterSpacing),eL={colorSchemes:{light:ej,dark:eR},fontSize:eN,fontFamily:eF,fontWeight:e_,focus:{thickness:"2px",selector:`&.${(0,w.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${eO("focus-thickness",null!=(t=null==(r=eA.focus)?void 0:r.thickness)?t:"2px")})`,outline:`${eO("focus-thickness",null!=(a=null==(u=eA.focus)?void 0:u.thickness)?a:"2px")} solid ${eO("palette-focusVisible",eZ.primary[500])}`}},lineHeight:eH,letterSpacing:eD,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${eO("shadowRing",null!=(f=null==(d=eA.colorSchemes)||null==(d=d.light)?void 0:d.shadowRing)?f:ej.shadowRing)}, 0 1px 2px 0 rgba(${eO("shadowChannel",null!=(p=null==(h=eA.colorSchemes)||null==(h=h.light)?void 0:h.shadowChannel)?p:ej.shadowChannel)} / 0.12)`,sm:`${eO("shadowRing",null!=(g=null==(y=eA.colorSchemes)||null==(y=y.light)?void 0:y.shadowRing)?g:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(A=null==(O=eA.colorSchemes)||null==(O=O.light)?void 0:O.shadowChannel)?A:ej.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${eO("shadowChannel",null!=(Z=null==(B=eA.colorSchemes)||null==(B=B.light)?void 0:B.shadowChannel)?Z:ej.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${eO("shadowChannel",null!=(P=null==(T=eA.colorSchemes)||null==(T=T.light)?void 0:T.shadowChannel)?P:ej.shadowChannel)} / 0.26)`,md:`${eO("shadowRing",null!=(j=null==(R=eA.colorSchemes)||null==(R=R.light)?void 0:R.shadowRing)?j:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(M=null==(F=eA.colorSchemes)||null==(F=F.light)?void 0:F.shadowChannel)?M:ej.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${eO("shadowChannel",null!=(_=null==(N=eA.colorSchemes)||null==(N=N.light)?void 0:N.shadowChannel)?_:ej.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${eO("shadowChannel",null!=(H=null==(D=eA.colorSchemes)||null==(D=D.light)?void 0:D.shadowChannel)?H:ej.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${eO("shadowChannel",null!=(L=null==(I=eA.colorSchemes)||null==(I=I.light)?void 0:I.shadowChannel)?L:ej.shadowChannel)} / 0.29)`,lg:`${eO("shadowRing",null!=(z=null==(U=eA.colorSchemes)||null==(U=U.light)?void 0:U.shadowRing)?z:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(W=null==(G=eA.colorSchemes)||null==(G=G.light)?void 0:G.shadowChannel)?W:ej.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${eO("shadowChannel",null!=(K=null==(q=eA.colorSchemes)||null==(q=q.light)?void 0:q.shadowChannel)?K:ej.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${eO("shadowChannel",null!=(V=null==(X=eA.colorSchemes)||null==(X=X.light)?void 0:X.shadowChannel)?V:ej.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${eO("shadowChannel",null!=(Y=null==(J=eA.colorSchemes)||null==(J=J.light)?void 0:J.shadowChannel)?Y:ej.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${eO("shadowChannel",null!=(Q=null==(ee=eA.colorSchemes)||null==(ee=ee.light)?void 0:ee.shadowChannel)?Q:ej.shadowChannel)} / 0.21)`,xl:`${eO("shadowRing",null!=(et=null==(er=eA.colorSchemes)||null==(er=er.light)?void 0:er.shadowRing)?et:ej.shadowRing)}, 0.3px 0.8px 1.1px rgba(${eO("shadowChannel",null!=(en=null==(eo=eA.colorSchemes)||null==(eo=eo.light)?void 0:eo.shadowChannel)?en:ej.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${eO("shadowChannel",null!=(ei=null==(ea=eA.colorSchemes)||null==(ea=ea.light)?void 0:ea.shadowChannel)?ei:ej.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${eO("shadowChannel",null!=(el=null==(es=eA.colorSchemes)||null==(es=es.light)?void 0:es.shadowChannel)?el:ej.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${eO("shadowChannel",null!=(ec=null==(eu=eA.colorSchemes)||null==(eu=eu.light)?void 0:eu.shadowChannel)?ec:ej.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${eO("shadowChannel",null!=(ef=null==(ed=eA.colorSchemes)||null==(ed=ed.light)?void 0:ed.shadowChannel)?ef:ej.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${eO("shadowChannel",null!=(ep=null==(eh=eA.colorSchemes)||null==(eh=eh.light)?void 0:eh.shadowChannel)?ep:ej.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${eO("shadowChannel",null!=(eg=null==(em=eA.colorSchemes)||null==(em=em.light)?void 0:em.shadowChannel)?eg:ej.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${eO("shadowChannel",null!=(ev=null==(ey=eA.colorSchemes)||null==(ey=ey.light)?void 0:ey.shadowChannel)?ev:ej.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-xl, ${e_.xl}`),fontSize:eO(`fontSize-xl7, ${eN.xl7}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},display2:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-xl, ${e_.xl}`),fontSize:eO(`fontSize-xl6, ${eN.xl6}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h1:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-lg, ${e_.lg}`),fontSize:eO(`fontSize-xl5, ${eN.xl5}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h2:{fontFamily:eO(`fontFamily-display, ${eF.display}`),fontWeight:eO(`fontWeight-lg, ${e_.lg}`),fontSize:eO(`fontSize-xl4, ${eN.xl4}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),letterSpacing:eO(`letterSpacing-sm, ${eD.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h3:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-xl3, ${eN.xl3}`),lineHeight:eO(`lineHeight-sm, ${eH.sm}`),color:eO("palette-text-primary",ej.palette.text.primary)},h4:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-xl2, ${eN.xl2}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},h5:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-xl, ${eN.xl}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},h6:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontWeight:eO(`fontWeight-md, ${e_.md}`),fontSize:eO(`fontSize-lg, ${eN.lg}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},body1:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-md, ${eN.md}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-primary",ej.palette.text.primary)},body2:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-sm, ${eN.sm}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-secondary",ej.palette.text.secondary)},body3:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-xs, ${eN.xs}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-tertiary",ej.palette.text.tertiary)},body4:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-xs2, ${eN.xs2}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-tertiary",ej.palette.text.tertiary)},body5:{fontFamily:eO(`fontFamily-body, ${eF.body}`),fontSize:eO(`fontSize-xs3, ${eN.xs3}`),lineHeight:eO(`lineHeight-md, ${eH.md}`),color:eO("palette-text-tertiary",ej.palette.text.tertiary)}}},eI=eA?(0,i.Z)(eL,eA):eL,{colorSchemes:ez}=eI,eU=(0,o.Z)(eI,$),eW=(0,n.Z)({colorSchemes:ez},eU,{breakpoints:(0,s.Z)(null!=eC?eC:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var r;let o=e.instanceFontSize;return(0,n.Z)({color:"var(--Icon-color)",margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(r=t.vars.palette[e.color])?void 0:r.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eS),cssVarPrefix:ex,getCssVar:eO,spacing:(0,c.Z)(ew),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(eW.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(r=>{let n={main:"500",light:"200",dark:"800"};"dark"===e&&(n.main=400),!t[r].mainChannel&&t[r][n.main]&&(t[r].mainChannel=(0,l.n8)(t[r][n.main])),!t[r].lightChannel&&t[r][n.light]&&(t[r].lightChannel=(0,l.n8)(t[r][n.light])),!t[r].darkChannel&&t[r][n.dark]&&(t[r].darkChannel=(0,l.n8)(t[r][n.dark]))})}(e,t.palette)});let{vars:eG,generateCssVars:eK}=m((0,n.Z)({colorSchemes:ez},eU),{prefix:ex,shouldSkipGeneratingVar:ek});eW.vars=eG,eW.generateCssVars=eK,eW.unstable_sxConfig=(0,n.Z)({},b,null==e?void 0:e.unstable_sxConfig),eW.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},eW.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eq={getCssVar:eO,palette:eW.colorSchemes.light.palette};return eW.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eq),plainHover:(0,S.Zm)("plainHover",eq),plainActive:(0,S.Zm)("plainActive",eq),plainDisabled:(0,S.Zm)("plainDisabled",eq),outlined:(0,S.Zm)("outlined",eq),outlinedHover:(0,S.Zm)("outlinedHover",eq),outlinedActive:(0,S.Zm)("outlinedActive",eq),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eq),soft:(0,S.Zm)("soft",eq),softHover:(0,S.Zm)("softHover",eq),softActive:(0,S.Zm)("softActive",eq),softDisabled:(0,S.Zm)("softDisabled",eq),solid:(0,S.Zm)("solid",eq),solidHover:(0,S.Zm)("solidHover",eq),solidActive:(0,S.Zm)("solidActive",eq),solidDisabled:(0,S.Zm)("solidDisabled",eq)},eE),eW.palette=(0,n.Z)({},eW.colorSchemes.light.palette,{colorScheme:"light"}),eW.shouldSkipGeneratingVar=ek,eW.colorInversion="function"==typeof e$?e$:(0,i.Z)({soft:(0,S.pP)(eW,!0),solid:(0,S.Lo)(eW,!0)},e$||{},{clone:!1}),eW}},8622:function(e,t){"use strict";t.Z="$$joy"},50645:function(e,t,r){"use strict";var n=r(9312),o=r(98918),i=r(8622);let a=(0,n.ZP)({defaultTheme:o.Z,themeId:i.Z});t.Z=a},88930:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(38295),i=r(98918),a=r(8622);function l({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},i.Z,{components:{}}),themeId:a.Z})}},52428:function(e,t,r){"use strict";r.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var n=r(40431),o=r(82190);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,r)=>{t.includes("Color")&&(e.color=r),t.includes("Bg")&&(e.backgroundColor=r),t.includes("Border")&&(e.borderColor=r)},l=(e,t,r)=>{let n={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=r?r(t):o;t.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),t.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),a(n,t,e)}}),n},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let r={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(r=(0,n.Z)({},r,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return r.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverColor:"var(--variant-solidHoverColor)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),r},u=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{var n;let o=t.split("-"),i=o[1],a=o[2];return r(t,null==(n=e.palette)||null==(n=n[i])?void 0:n[a])}:r;return Object.entries(e.palette).forEach(t=>{let[r,o]=t;i(o)&&(a[r]={"--Badge-ringColor":l(`palette-${r}-softBg`),[n("--shadowChannel")]:l(`palette-${r}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[n("--palette-focusVisible")]:l(`palette-${r}-300`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${r}-100`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.6)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${r}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${r}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${r}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${r}-100`),"--variant-softBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${r}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${r}-400`),"--variant-solidActiveBg":l(`palette-${r}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[n("--palette-focusVisible")]:l(`palette-${r}-500`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,[n("--palette-text-primary")]:l(`palette-${r}-700`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.68)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${r}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${r}-600`),"--variant-outlinedHoverBorder":l(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${r}-600`),"--variant-softBg":`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${r}-700`),"--variant-softHoverBg":l(`palette-${r}-200`),"--variant-softActiveBg":l(`palette-${r}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${r}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${r}-500`),"--variant-solidActiveBg":l(`palette-${r}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{let n=t.split("-"),o=n[1],i=n[2];return r(t,e.palette[o][i])}:r;return Object.entries(e.palette).forEach(e=>{let[t,r]=e;i(r)&&("warning"===t?a.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-700`),[n("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[n("--palette-background-popup")]:l(`palette-${t}-100`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${t}-900`),[n("--palette-text-secondary")]:l(`palette-${t}-700`),[n("--palette-text-tertiary")]:l(`palette-${t}-500`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,"--variant-plainColor":l(`palette-${t}-700`),"--variant-plainHoverColor":l(`palette-${t}-800`),"--variant-plainHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-700`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.5)`,"--variant-outlinedHoverColor":l(`palette-${t}-800`),"--variant-outlinedHoverBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.6)`,"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${t}-800`),"--variant-softHoverColor":l(`palette-${t}-900`),"--variant-softBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.28)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${t}-600`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${t}-700`),"--variant-solidActiveBg":l(`palette-${t}-800`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`}:a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-200`),[n("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[n("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[n("--palette-background-popup")]:l(`palette-${t}-700`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l("palette-common-white"),[n("--palette-text-secondary")]:l(`palette-${t}-100`),[n("--palette-text-tertiary")]:l(`palette-${t}-200`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverColor":l(`palette-${t}-700`),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-200`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},326:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(40431),o=r(46750),i=r(99179),a=r(95596),l=r(85059),s=r(31227),c=r(47093);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:r,elementType:h,ownerState:g,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:C={[e]:void 0},slotProps:w={[e]:void 0}}=m,S=(0,o.Z)(m,f),E=C[e]||h,$=(0,a.Z)(w[e],g),k=(0,l.Z)((0,n.Z)({className:r},b,{externalForwardedProps:"root"===e?S:void 0,externalSlotProps:$})),{props:{component:A},internalRef:O}=k,Z=(0,o.Z)(k.props,d),B=(0,i.Z)(O,null==$?void 0:$.ref,t.ref),P=v?v(Z):{},{disableColorInversion:T=!1}=P,j=(0,o.Z)(P,p),R=(0,n.Z)({},g,j),{getColor:M}=(0,c.VT)(R.variant);if("root"===e){var F;R.color=null!=(F=Z.color)?F:g.color}else T||(R.color=M(Z.color,R.color));let _="root"===e?A||x:A,N=(0,s.Z)(E,(0,n.Z)({},"root"===e&&!x&&!C[e]&&y,"root"!==e&&!C[e]&&y,Z,_&&{as:_},{ref:B}),R);return Object.keys(j).forEach(e=>{delete N[e]}),[E,N]}},44169:function(e,t,r){"use strict";var n=r(86006);let o=n.createContext(null);t.Z=o},63678:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(86006),o=r(44169);function i(){let e=n.useContext(o.Z);return e}},4323:function(e,t,r){"use strict";r.d(t,{ZP:function(){return v},Co:function(){return y}});var n=r(40431),o=r(86006),i=r(83596),a=/^((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|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)-.*))$/,l=(0,i.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=r(17464),c=r(75941),u=r(5013),f=r(85124),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,f.L)(function(){return(0,c.My)(t,r,n)}),null},m=(function e(t,r){var i,a,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var d=h(t,r,l),m=d||p(f),v=!m("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,C=1;C{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},14446:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(40431),o=r(86006),i=r(63678),a=r(44169);let l="function"==typeof Symbol&&Symbol.for;var s=l?Symbol.for("mui.nested"):"__THEME_NESTED__",c=r(9268),u=function(e){let{children:t,theme:r}=e,l=(0,i.Z)(),u=o.useMemo(()=>{let e=null===l?r:function(e,t){if("function"==typeof t){let r=t(e);return r}return(0,n.Z)({},e,t)}(l,r);return null!=e&&(e[s]=null!==l),e},[r,l]);return(0,c.jsx)(a.Z.Provider,{value:u,children:t})},f=r(17464),d=r(65396);let p={};function h(e,t,r,i=!1){return o.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof r){let a=r(o),l=e?(0,n.Z)({},t,{[e]:a}):a;return i?()=>l:l}return e?(0,n.Z)({},t,{[e]:r}):(0,n.Z)({},t,r)},[e,t,r,i])}var g=function(e){let{children:t,theme:r,themeId:n}=e,o=(0,d.Z)(p),a=(0,i.Z)()||p,l=h(n,o,r),s=h(n,a,r,!0);return(0,c.jsx)(u,{theme:s,children:(0,c.jsx)(f.T.Provider,{value:l,children:t})})}},91559:function(e,t,r){"use strict";r.d(t,{L7:function(){return s},P$:function(){return u},VO:function(){return o},W8:function(){return l},dt:function(){return c},k9:function(){return a}});var n=r(95135);let o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${o[e]}px)`};function a(e,t,r){let n=e.theme||{};if(Array.isArray(t)){let e=n.breakpoints||i;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){let e=n.breakpoints||i;return Object.keys(t).reduce((n,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){let o=e.up(i);n[o]=r(t[i],i)}else n[i]=t[i];return n},{})}let a=r(t);return a}function l(e={}){var t;let r=null==(t=e.keys)?void 0:t.reduce((t,r)=>{let n=e.up(r);return t[n]={},t},{});return r||{}}function s(e,t){return e.reduce((e,t)=>{let r=e[t],n=!r||0===Object.keys(r).length;return n&&delete e[t],e},t)}function c(e,...t){let r=l(e),o=[r,...t].reduce((e,t)=>(0,n.Z)(e,t),{});return s(Object.keys(r),o)}function u({values:e,breakpoints:t,base:r}){let n;let o=r||function(e,t){if("object"!=typeof e)return{};let r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((t,n)=>{n{null!=e[t]&&(r[t]=!0)}),r}(e,t),i=Object.keys(o);return 0===i.length?e:i.reduce((t,r,o)=>(Array.isArray(e)?(t[r]=null!=e[o]?e[o]:e[n],n=o):"object"==typeof e?(t[r]=null!=e[r]?e[r]:e[n],n=r):t[r]=e,t),{})}},23343:function(e,t,r){"use strict";r.d(t,{$n:function(){return f},_j:function(){return u},mi:function(){return c},n8:function(){return a}});var n=r(16066);function o(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function i(e){let t;if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(e));let r=e.indexOf("("),o=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(o))throw Error((0,n.Z)(9,e));let a=e.substring(r+1,e.length-1);if("color"===o){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,n.Z)(10,t))}else a=a.split(",");return{type:o,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let a=e=>{let t=i(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};function l(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),`${t}(${n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);let{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),s=(e,t=(e+r/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1),c="rgb",u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){let r=s(e),n=s(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return l(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return l(e)}},9312:function(e,t,r){"use strict";r.d(t,{ZP:function(){return b},x9:function(){return m}});var n=r(46750),o=r(40431),i=r(4323),a=r(89587),l=r(53832);let s=["variant"];function c(e){return 0===e.length}function u(e){let{variant:t}=e,r=(0,n.Z)(e,s),o=t||"";return Object.keys(r).sort().forEach(t=>{"color"===t?o+=c(o)?e[t]:(0,l.Z)(e[t]):o+=`${c(o)?t:(0,l.Z)(t)}${(0,l.Z)(e[t].toString())}`}),o}var f=r(51579);let d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,h=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);let n={};return r.forEach(e=>{let t=u(e.props);n[t]=e.style}),n},g=(e,t,r,n)=>{var o;let{ownerState:i={}}=e,a=[],l=null==r||null==(o=r.components)||null==(o=o[n])?void 0:o.variants;return l&&l.forEach(r=>{let n=!0;Object.keys(r.props).forEach(t=>{i[t]!==r.props[t]&&e[t]!==r.props[t]&&(n=!1)}),n&&a.push(t[u(r.props)])}),a};function m(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let v=(0,a.Z)();function y({defaultTheme:e,theme:t,themeId:r}){return 0===Object.keys(t).length?e:t[r]||t}function b(e={}){let{themeId:t,defaultTheme:r=v,rootShouldForwardProp:a=m,slotShouldForwardProp:l=m}=e,s=e=>(0,f.Z)((0,o.Z)({},e,{theme:y((0,o.Z)({},e,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(e,c={})=>{let u;(0,i.Co)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:f,slot:v,skipVariantsResolver:b,skipSx:x,overridesResolver:C}=c,w=(0,n.Z)(c,d),S=void 0!==b?b:v&&"Root"!==v||!1,E=x||!1,$=m;"Root"===v?$=a:v?$=l:"string"==typeof e&&e.charCodeAt(0)>96&&($=void 0);let k=(0,i.ZP)(e,(0,o.Z)({shouldForwardProp:$,label:u},w)),A=(n,...i)=>{let a=i?i.map(e=>"function"==typeof e&&e.__emotion_real!==e?n=>e((0,o.Z)({},n,{theme:y((0,o.Z)({},n,{defaultTheme:r,themeId:t}))})):e):[],l=n;f&&C&&a.push(e=>{let n=y((0,o.Z)({},e,{defaultTheme:r,themeId:t})),i=p(f,n);if(i){let t={};return Object.entries(i).forEach(([r,i])=>{t[r]="function"==typeof i?i((0,o.Z)({},e,{theme:n})):i}),C(e,t)}return null}),f&&!S&&a.push(e=>{let n=y((0,o.Z)({},e,{defaultTheme:r,themeId:t}));return g(e,h(f,n),n,f)}),E||a.push(s);let c=a.length-i.length;if(Array.isArray(n)&&c>0){let e=Array(c).fill("");(l=[...n,...e]).raw=[...n.raw,...e]}else"function"==typeof n&&n.__emotion_real!==n&&(l=e=>n((0,o.Z)({},e,{theme:y((0,o.Z)({},e,{defaultTheme:r,themeId:t}))})));let u=k(l,...a);return e.muiName&&(u.muiName=e.muiName),u};return k.withConfig&&(A.withConfig=k.withConfig),A}}},57716:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(46750),o=r(40431);let i=["values","unit","step"],a=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,o.Z)({},e,{[t.key]:t.val}),{})};function l(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:l=5}=e,s=(0,n.Z)(e,i),c=a(t),u=Object.keys(c);function f(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function d(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-l/100}${r})`}function p(e,n){let o=u.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==o&&"number"==typeof t[u[o]]?t[u[o]]:n)-l/100}${r})`}return(0,o.Z)({keys:u,values:c,up:f,down:d,between:p,only:function(e){return u.indexOf(e)+1{let r=0===e.length?[1]:e;return r.map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ")};return r.mui=!0,r}},89587:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(40431),o=r(46750),i=r(95135),a=r(57716),l={borderRadius:4},s=r(93815),c=r(51579),u=r(2272);let f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){let{breakpoints:r={},palette:d={},spacing:p,shape:h={}}=e,g=(0,o.Z)(e,f),m=(0,a.Z)(r),v=(0,s.Z)(p),y=(0,i.Z)({breakpoints:m,direction:"ltr",components:{},palette:(0,n.Z)({mode:"light"},d),spacing:v,shape:(0,n.Z)({},l,h)},g);return(y=t.reduce((e,t)=>(0,i.Z)(e,t),y)).unstable_sxConfig=(0,n.Z)({},u.Z,null==g?void 0:g.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},y}},82190:function(e,t,r){"use strict";function n(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`}r.d(t,{Z:function(){return n}})},70233:function(e,t,r){"use strict";var n=r(95135);t.Z=function(e,t){return t?(0,n.Z)(e,t,{clone:!1}):e}},48527:function(e,t,r){"use strict";r.d(t,{hB:function(){return h},eI:function(){return p},NA:function(){return g},e6:function(){return v},o3:function(){return y}});var n=r(91559),o=r(95247),i=r(70233);let a={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!s[e])return[e];e=s[e]}let[t,r]=e.split(""),n=a[t],o=l[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...f];function p(e,t,r,n){var i;let a=null!=(i=(0,o.DW)(e,t,!1))?i:r;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>void 0}function h(e){return p(e,"spacing",8,"spacing")}function g(e,t){if("string"==typeof t||null==t)return t;let r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function m(e,t){let r=h(e.theme);return Object.keys(e).map(o=>(function(e,t,r,o){if(-1===t.indexOf(r))return null;let i=c(r),a=e[r];return(0,n.k9)(e,a,e=>i.reduce((t,r)=>(t[r]=g(o,e),t),{}))})(e,t,o,r)).reduce(i.Z,{})}function v(e){return m(e,u)}function y(e){return m(e,f)}function b(e){return m(e,d)}v.propTypes={},v.filterProps=u,y.propTypes={},y.filterProps=f,b.propTypes={},b.filterProps=d},95247:function(e,t,r){"use strict";r.d(t,{DW:function(){return i},Jq:function(){return a}});var n=r(53832),o=r(91559);function i(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function a(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:i(e,r)||n,t&&(o=t(o,n,e)),o}t.ZP=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:l,transform:s}=e,c=e=>{if(null==e[t])return null;let c=e[t],u=e.theme,f=i(u,l)||{};return(0,o.k9)(e,c,e=>{let o=a(f,s,e);return(e===o&&"string"==typeof e&&(o=a(f,s,`${t}${"default"===e?"":(0,n.Z)(e)}`,e)),!1===r)?o:{[r]:o}})};return c.propTypes={},c.filterProps=[t],c}},2272:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});var n=r(48527),o=r(95247),i=r(70233),a=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?(0,i.Z)(r,t[n](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r},l=r(91559);function s(e){return"number"!=typeof e?e:`${e}px solid`}let c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:s}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:s}),f=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:s}),d=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:s}),p=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:s}),h=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),m=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),v=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,n.eI)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,l.k9)(e,e.borderRadius,e=>({borderRadius:(0,n.NA)(t,e)}))}return null};b.propTypes={},b.filterProps=["borderRadius"],a(c,u,f,d,p,h,g,m,v,y,b);let x=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,n.eI)(e.theme,"spacing",8,"gap");return(0,l.k9)(e,e.gap,e=>({gap:(0,n.NA)(t,e)}))}return null};x.propTypes={},x.filterProps=["gap"];let C=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,n.eI)(e.theme,"spacing",8,"columnGap");return(0,l.k9)(e,e.columnGap,e=>({columnGap:(0,n.NA)(t,e)}))}return null};C.propTypes={},C.filterProps=["columnGap"];let w=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,n.eI)(e.theme,"spacing",8,"rowGap");return(0,l.k9)(e,e.rowGap,e=>({rowGap:(0,n.NA)(t,e)}))}return null};w.propTypes={},w.filterProps=["rowGap"];let S=(0,o.ZP)({prop:"gridColumn"}),E=(0,o.ZP)({prop:"gridRow"}),$=(0,o.ZP)({prop:"gridAutoFlow"}),k=(0,o.ZP)({prop:"gridAutoColumns"}),A=(0,o.ZP)({prop:"gridAutoRows"}),O=(0,o.ZP)({prop:"gridTemplateColumns"}),Z=(0,o.ZP)({prop:"gridTemplateRows"}),B=(0,o.ZP)({prop:"gridTemplateAreas"}),P=(0,o.ZP)({prop:"gridArea"});function T(e,t){return"grey"===t?t:e}a(x,C,w,S,E,$,k,A,O,Z,B,P);let j=(0,o.ZP)({prop:"color",themeKey:"palette",transform:T}),R=(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:T}),M=(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:T});function F(e){return e<=1&&0!==e?`${100*e}%`:e}a(j,R,M);let _=(0,o.ZP)({prop:"width",transform:F}),N=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,l.k9)(e,e.maxWidth,t=>{var r;let n=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||l.VO[t];return{maxWidth:n||F(t)}}):null;N.filterProps=["maxWidth"];let H=(0,o.ZP)({prop:"minWidth",transform:F}),D=(0,o.ZP)({prop:"height",transform:F}),L=(0,o.ZP)({prop:"maxHeight",transform:F}),I=(0,o.ZP)({prop:"minHeight",transform:F});(0,o.ZP)({prop:"size",cssProperty:"width",transform:F}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:F});let z=(0,o.ZP)({prop:"boxSizing"});a(_,N,H,D,L,I,z);let U={border:{themeKey:"borders",transform:s},borderTop:{themeKey:"borders",transform:s},borderRight:{themeKey:"borders",transform:s},borderBottom:{themeKey:"borders",transform:s},borderLeft:{themeKey:"borders",transform:s},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:T},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:T},backgroundColor:{themeKey:"palette",transform:T},p:{style:n.o3},pt:{style:n.o3},pr:{style:n.o3},pb:{style:n.o3},pl:{style:n.o3},px:{style:n.o3},py:{style:n.o3},padding:{style:n.o3},paddingTop:{style:n.o3},paddingRight:{style:n.o3},paddingBottom:{style:n.o3},paddingLeft:{style:n.o3},paddingX:{style:n.o3},paddingY:{style:n.o3},paddingInline:{style:n.o3},paddingInlineStart:{style:n.o3},paddingInlineEnd:{style:n.o3},paddingBlock:{style:n.o3},paddingBlockStart:{style:n.o3},paddingBlockEnd:{style:n.o3},m:{style:n.e6},mt:{style:n.e6},mr:{style:n.e6},mb:{style:n.e6},ml:{style:n.e6},mx:{style:n.e6},my:{style:n.e6},margin:{style:n.e6},marginTop:{style:n.e6},marginRight:{style:n.e6},marginBottom:{style:n.e6},marginLeft:{style:n.e6},marginX:{style:n.e6},marginY:{style:n.e6},marginInline:{style:n.e6},marginInlineStart:{style:n.e6},marginInlineEnd:{style:n.e6},marginBlock:{style:n.e6},marginBlockStart:{style:n.e6},marginBlockEnd:{style:n.e6},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:x},rowGap:{style:w},columnGap:{style:C},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:F},maxWidth:{style:N},minWidth:{transform:F},height:{transform:F},maxHeight:{transform:F},minHeight:{transform:F},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var W=U},86601:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(40431),o=r(46750),i=r(95135),a=r(2272);let l=["sx"],s=e=>{var t,r;let n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:a.Z;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function c(e){let t;let{sx:r}=e,a=(0,o.Z)(e,l),{systemProps:c,otherProps:u}=s(a);return t=Array.isArray(r)?[c,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,i.P)(t)?(0,n.Z)({},c,t):c}:(0,n.Z)({},c,r),(0,n.Z)({},u,{sx:t})}},51579:function(e,t,r){"use strict";var n=r(53832),o=r(70233),i=r(95247),a=r(91559),l=r(2272);let s=function(){function e(e,t,r,o){let l={[e]:t,theme:r},s=o[e];if(!s)return{[e]:t};let{cssProperty:c=e,themeKey:u,transform:f,style:d}=s;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};let p=(0,i.DW)(r,u)||{};return d?d(l):(0,a.k9)(l,t,t=>{let r=(0,i.Jq)(p,f,t);return(t===r&&"string"==typeof t&&(r=(0,i.Jq)(p,f,`${e}${"default"===t?"":(0,n.Z)(t)}`,t)),!1===c)?r:{[c]:r}})}return function t(r){var n;let{sx:i,theme:s={}}=r||{};if(!i)return null;let c=null!=(n=s.unstable_sxConfig)?n:l.Z;function u(r){let n=r;if("function"==typeof r)n=r(s);else if("object"!=typeof r)return r;if(!n)return null;let i=(0,a.W8)(s.breakpoints),l=Object.keys(i),u=i;return Object.keys(n).forEach(r=>{var i;let l="function"==typeof(i=n[r])?i(s):i;if(null!=l){if("object"==typeof l){if(c[r])u=(0,o.Z)(u,e(r,l,s,c));else{let e=(0,a.k9)({theme:s},l,e=>({[r]:e}));(function(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)})(e,l)?u[r]=t({sx:l,theme:s}):u=(0,o.Z)(u,e)}}else u=(0,o.Z)(u,e(r,l,s,c))}}),(0,a.L7)(l,u)}return Array.isArray(i)?i.map(u):u(i)}}();s.filterProps=["sx"],t.Z=s},95887:function(e,t,r){"use strict";var n=r(89587),o=r(65396);let i=(0,n.Z)();t.Z=function(e=i){return(0,o.Z)(e)}},38295:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(40431),o=r(95887);function i({props:e,name:t,defaultTheme:r,themeId:i}){let a=(0,o.Z)(r);i&&(a=a[i]||a);let l=function(e){let{theme:t,name:r,props:o}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?function e(t,r){let o=(0,n.Z)({},r);return Object.keys(t).forEach(i=>{if(i.toString().match(/^(components|slots)$/))o[i]=(0,n.Z)({},t[i],o[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){let a=t[i]||{},l=r[i];o[i]={},l&&Object.keys(l)?a&&Object.keys(a)?(o[i]=(0,n.Z)({},l),Object.keys(a).forEach(t=>{o[i][t]=e(a[t],l[t])})):o[i]=l:o[i]=a}else void 0===o[i]&&(o[i]=t[i])}),o}(t.components[r].defaultProps,o):o}({theme:a,name:t,props:e});return l}},65396:function(e,t,r){"use strict";var n=r(86006),o=r(17464);t.Z=function(e=null){let t=n.useContext(o.T);return t&&0!==Object.keys(t).length?t:e}},47327:function(e,t){"use strict";let r;let n=e=>e,o=(r=n,{configure(e){r=e},generate:e=>r(e),reset(){r=n}});t.Z=o},53832:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(16066);function o(e){if("string"!=typeof e)throw Error((0,n.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},47562:function(e,t,r){"use strict";function n(e,t,r){let n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){let o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}r.d(t,{Z:function(){return n}})},95135:function(e,t,r){"use strict";r.d(t,{P:function(){return o},Z:function(){return function e(t,r,i={clone:!0}){let a=i.clone?(0,n.Z)({},t):t;return o(t)&&o(r)&&Object.keys(r).forEach(n=>{"__proto__"!==n&&(o(r[n])&&n in t&&o(t[n])?a[n]=e(t[n],r[n],i):i.clone?a[n]=o(r[n])?function e(t){if(!o(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[n]):r[n]:a[n]=r[n])}),a}}});var n=r(40431);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}},16066:function(e,t,r){"use strict";function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e{o[t]=(0,n.Z)(e,t,r)}),o}},44542:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(86006);function o(e,t){return n.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},65464:function(e,t,r){"use strict";function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}r.d(t,{Z:function(){return n}})},99179:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(86006),o=r(65464);function i(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,o.Z)(e,t)})},e)}},21454:function(e,t,r){"use strict";let n;r.d(t,{Z:function(){return f}});var o=r(86006);let i=!0,a=!1,l={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 s(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function u(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(){let e=o.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",s,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0)}},[]),t=o.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return i||function(e){let{type:t,tagName:r}=e;return"INPUT"===r&&!!l[t]&&!e.readOnly||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(n),n=window.setTimeout(()=>{a=!1},100),t.current=!1,!0)},ref:e}}},20538:function(e,t,r){"use strict";r.d(t,{n:function(){return i}});var n=r(86006);let o=n.createContext(!1),i=e=>{let{children:t,disabled:r}=e,i=n.useContext(o);return n.createElement(o.Provider,{value:null!=r?r:i},t)};t.Z=o},25844:function(e,t,r){"use strict";r.d(t,{q:function(){return a}});var n=r(86006),o=r(30069);let i=n.createContext(void 0),a=e=>{let{children:t,size:r}=e,a=(0,o.Z)(r);return n.createElement(i.Provider,{value:a},t)};t.Z=i},79746:function(e,t,r){"use strict";r.d(t,{E_:function(){return i},oR:function(){return o}});var n=r(86006);let o="anticon",i=n.createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:o}),{Consumer:a}=i},30069:function(e,t,r){"use strict";var n=r(86006),o=r(25844);t.Z=e=>{let t=n.useContext(o.Z),r=n.useMemo(()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t,[e,t]);return r}},17583:function(e,t,r){"use strict";let n,o,i;r.d(t,{ZP:function(){return N},w6:function(){return M}});var a=r(11717),l=r(83346),s=r(55567),c=r(79035),u=r(86006),f=(0,u.createContext)(void 0),d=r(66255),p=r(67044),h=e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;u.useEffect(()=>((0,d.f)(t&&t.Modal),()=>{(0,d.f)()}),[t]);let o=u.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return u.createElement(p.Z.Provider,{value:o},r)},g=r(91295),m=r(31508),v=r(99528),y=r(79746),b=r(70333),x=r(57389),C=r(71693),w=r(52160);let S=`-ant-${Date.now()}-${Math.random()}`;var E=r(20538),$=r(25844),k=r(81027),A=r(78641);function O(e){let{children:t}=e,[,r]=(0,m.dQ)(),{motion:n}=r,o=u.useRef(!1);return(o.current=o.current||!1===n,o.current)?u.createElement(A.zt,{motion:n},t):t}var Z=r(98663),B=(e,t)=>{let[r,n]=(0,m.dQ)();return(0,a.xy)({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,Z.Ro)()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},P=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let T=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"];function j(){return n||"ant"}function R(){return o||y.oR}let M=()=>({getPrefixCls:(e,t)=>t||(e?`${j()}-${e}`:j()),getIconPrefixCls:R,getRootPrefixCls:()=>n||j(),getTheme:()=>i}),F=e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,form:o,locale:i,componentSize:d,direction:p,space:b,virtual:x,dropdownMatchSelectWidth:C,popupMatchSelectWidth:w,popupOverflow:S,legacyLocale:A,parentContext:Z,iconPrefixCls:j,theme:R,componentDisabled:M}=e,F=u.useCallback((t,r)=>{let{prefixCls:n}=e;if(r)return r;let o=n||Z.getPrefixCls("");return t?`${o}-${t}`:o},[Z.getPrefixCls,e.prefixCls]),_=j||Z.iconPrefixCls||y.oR,N=_!==Z.iconPrefixCls,H=r||Z.csp,D=B(_,H),L=function(e,t){let r=e||{},n=!1!==r.inherit&&t?t:m.u_,o=(0,s.Z)(()=>{if(!e)return t;let o=Object.assign({},n.components);return Object.keys(e.components||{}).forEach(t=>{o[t]=Object.assign(Object.assign({},o[t]),e.components[t])}),Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(e,t)=>e.some((e,r)=>{let n=t[r];return!(0,k.Z)(e,n,!0)}));return o}(R,Z.theme),I={csp:H,autoInsertSpaceInButton:n,locale:i||A,direction:p,space:b,virtual:x,popupMatchSelectWidth:null!=w?w:C,popupOverflow:S,getPrefixCls:F,iconPrefixCls:_,theme:L},z=Object.assign({},Z);Object.keys(I).forEach(e=>{void 0!==I[e]&&(z[e]=I[e])}),T.forEach(t=>{let r=e[t];r&&(z[t]=r)});let U=(0,s.Z)(()=>z,z,(e,t)=>{let r=Object.keys(e),n=Object.keys(t);return r.length!==n.length||r.some(r=>e[r]!==t[r])}),W=u.useMemo(()=>({prefixCls:_,csp:H}),[_,H]),G=N?D(t):t,K=u.useMemo(()=>{var e,t,r;return(0,c.T)((null===(e=g.Z.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(r=null===(t=U.locale)||void 0===t?void 0:t.Form)||void 0===r?void 0:r.defaultValidateMessages)||{},(null==o?void 0:o.validateMessages)||{})},[U,null==o?void 0:o.validateMessages]);Object.keys(K).length>0&&(G=u.createElement(f.Provider,{value:K},t)),i&&(G=u.createElement(h,{locale:i,_ANT_MARK__:"internalMark"},G)),(_||H)&&(G=u.createElement(l.Z.Provider,{value:W},G)),d&&(G=u.createElement($.q,{size:d},G)),G=u.createElement(O,null,G);let q=u.useMemo(()=>{let e=L||{},{algorithm:t,token:r}=e,n=P(e,["algorithm","token"]),o=t&&(!Array.isArray(t)||t.length>0)?(0,a.jG)(t):void 0;return Object.assign(Object.assign({},n),{theme:o,token:Object.assign(Object.assign({},v.Z),r)})},[L]);return R&&(G=u.createElement(m.Mj.Provider,{value:q},G)),void 0!==M&&(G=u.createElement(E.n,{disabled:M},G)),u.createElement(y.E_.Provider,{value:U},G)},_=e=>{let t=u.useContext(y.E_),r=u.useContext(p.Z);return u.createElement(F,Object.assign({parentContext:t,legacyLocale:r},e))};_.ConfigContext=y.E_,_.SizeContext=$.Z,_.config=e=>{let{prefixCls:t,iconPrefixCls:r,theme:a}=e;void 0!==t&&(n=t),void 0!==r&&(o=r),a&&(Object.keys(a).some(e=>e.endsWith("Color"))?function(e,t){let r=function(e,t){let r={},n=(e,t)=>{let r=e.clone();return(r=(null==t?void 0:t(r))||r).toRgbString()},o=(e,t)=>{let o=new x.C(e),i=(0,b.R_)(o.toRgbString());r[`${t}-color`]=n(o),r[`${t}-color-disabled`]=i[1],r[`${t}-color-hover`]=i[4],r[`${t}-color-active`]=i[6],r[`${t}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),r[`${t}-color-deprecated-bg`]=i[0],r[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new x.C(t.primaryColor),i=(0,b.R_)(e.toRgbString());i.forEach((e,t)=>{r[`primary-${t+1}`]=e}),r["primary-color-deprecated-l-35"]=n(e,e=>e.lighten(35)),r["primary-color-deprecated-l-20"]=n(e,e=>e.lighten(20)),r["primary-color-deprecated-t-20"]=n(e,e=>e.tint(20)),r["primary-color-deprecated-t-50"]=n(e,e=>e.tint(50)),r["primary-color-deprecated-f-12"]=n(e,e=>e.setAlpha(.12*e.getAlpha()));let a=new x.C(i[0]);r["primary-color-active-deprecated-f-30"]=n(a,e=>e.setAlpha(.3*e.getAlpha())),r["primary-color-active-deprecated-d-02"]=n(a,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let i=Object.keys(r).map(t=>`--${e}-${t}: ${r[t]};`);return` - :root { - ${i.join("\n")} - } - `.trim()}(e,t);(0,C.Z)()&&(0,w.hq)(r,`${S}-dynamic-theme`)}(j(),a):i=a)},_.useConfig=function(){let e=(0,u.useContext)(E.Z),t=(0,u.useContext)($.Z);return{componentDisabled:e,componentSize:t}},Object.defineProperty(_,"SizeContext",{get:()=>$.Z});var N=_},67044:function(e,t,r){"use strict";var n=r(86006);let o=(0,n.createContext)(void 0);t.Z=o},91295:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(91219),o={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};let i={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),timePickerLocale:Object.assign({},o)},a="${label} is not a valid ${type}",l={locale:"en",Pagination:n.Z,DatePicker:i,TimePicker:o,Calendar:i,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh"},ColorPicker:{presetEmpty:"Empty"}};var s=l},21628:function(e,t,r){"use strict";r.d(t,{ZP:function(){return X}});var n=r(90151),o=r(88101),i=r(86006),a=r(17583),l=r(75710),s=r(27977),c=r(56222),u=r(34777),f=r(49132),d=r(60456),p=r(89301),h=r(40431),g=r(88684),m=r(8431),v=r(78641),y=r(8683),b=r.n(y),x=r(65877),C=r(48580),w=i.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,o=e.className,a=e.duration,l=void 0===a?4.5:a,s=e.eventKey,c=e.content,u=e.closable,f=e.closeIcon,p=void 0===f?"x":f,g=e.props,m=e.onClick,v=e.onNoticeClose,y=e.times,w=i.useState(!1),S=(0,d.Z)(w,2),E=S[0],$=S[1],k=function(){v(s)};i.useEffect(function(){if(!E&&l>0){var e=setTimeout(function(){k()},1e3*l);return function(){clearTimeout(e)}}},[l,E,y]);var A="".concat(r,"-notice");return i.createElement("div",(0,h.Z)({},g,{ref:t,className:b()(A,o,(0,x.Z)({},"".concat(A,"-closable"),u)),style:n,onMouseEnter:function(){$(!0)},onMouseLeave:function(){$(!1)},onClick:m}),i.createElement("div",{className:"".concat(A,"-content")},c),u&&i.createElement("a",{tabIndex:0,className:"".concat(A,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===C.Z.ENTER)&&k()},onClick:function(e){e.preventDefault(),e.stopPropagation(),k()}},p))}),S=i.forwardRef(function(e,t){var r=e.prefixCls,o=void 0===r?"rc-notification":r,a=e.container,l=e.motion,s=e.maxCount,c=e.className,u=e.style,f=e.onAllRemoved,p=i.useState([]),y=(0,d.Z)(p,2),x=y[0],C=y[1],S=function(e){var t,r=x.find(function(t){return t.key===e});null==r||null===(t=r.onClose)||void 0===t||t.call(r),C(function(t){return t.filter(function(t){return t.key!==e})})};i.useImperativeHandle(t,function(){return{open:function(e){C(function(t){var r,o=(0,n.Z)(t),i=o.findIndex(function(t){return t.key===e.key}),a=(0,g.Z)({},e);return i>=0?(a.times=((null===(r=t[i])||void 0===r?void 0:r.times)||0)+1,o[i]=a):(a.times=0,o.push(a)),s>0&&o.length>s&&(o=o.slice(-s)),o})},close:function(e){S(e)},destroy:function(){C([])}}});var E=i.useState({}),$=(0,d.Z)(E,2),k=$[0],A=$[1];i.useEffect(function(){var e={};x.forEach(function(t){var r=t.placement,n=void 0===r?"topRight":r;n&&(e[n]=e[n]||[],e[n].push(t))}),Object.keys(k).forEach(function(t){e[t]=e[t]||[]}),A(e)},[x]);var O=function(e){A(function(t){var r=(0,g.Z)({},t);return(r[e]||[]).length||delete r[e],r})},Z=i.useRef(!1);if(i.useEffect(function(){Object.keys(k).length>0?Z.current=!0:Z.current&&(null==f||f(),Z.current=!1)},[k]),!a)return null;var B=Object.keys(k);return(0,m.createPortal)(i.createElement(i.Fragment,null,B.map(function(e){var t=k[e].map(function(e){return{config:e,key:e.key}}),r="function"==typeof l?l(e):l;return i.createElement(v.V4,(0,h.Z)({key:e,className:b()(o,"".concat(o,"-").concat(e),null==c?void 0:c(e)),style:null==u?void 0:u(e),keys:t,motionAppear:!0},r,{onAllRemoved:function(){O(e)}}),function(e,t){var r=e.config,n=e.className,a=e.style,l=r.key,s=r.times,c=r.className,u=r.style;return i.createElement(w,(0,h.Z)({},r,{ref:t,prefixCls:o,className:b()(n,c),style:(0,g.Z)((0,g.Z)({},a),u),times:s,key:l,eventKey:l,onNoticeClose:S}))})})),a)}),E=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],$=function(){return document.body},k=0,A=r(11717),O=r(98663),Z=r(40650),B=r(70721);let P=e=>{let{componentCls:t,iconCls:r,boxShadow:n,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:s,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:h,zIndexPopup:g,contentPadding:m,contentBg:v}=e,y=`${t}-notice`,b=new A.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new A.E4("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),C={padding:p,textAlign:"center",[`${t}-custom-content > ${r}`]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:m,background:v,borderRadius:h,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:i},[`${t}-error > ${r}`]:{color:a},[`${t}-warning > ${r}`]:{color:l},[`${t}-info > ${r}, - ${t}-loading > ${r}`]:{color:s}};return[{[t]:Object.assign(Object.assign({},(0,O.Wf)(e)),{color:o,position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[y]:Object.assign({},C)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},C),{padding:0,textAlign:"start"})}]};var T=(0,Z.Z)("Message",e=>{let t=(0,B.TS)(e,{height:150});return[P(t)]},e=>({zIndexPopup:e.zIndexPopupBase+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),j=r(79746),R=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let M={info:i.createElement(f.Z,null),success:i.createElement(u.Z,null),error:i.createElement(c.Z,null),warning:i.createElement(s.Z,null),loading:i.createElement(l.Z,null)};function F(e){let{prefixCls:t,type:r,icon:n,children:o}=e;return i.createElement("div",{className:b()(`${t}-custom-content`,`${t}-${r}`)},n||M[r],i.createElement("span",null,o))}var _=r(31533);function N(e){let t;let r=new Promise(r=>{t=e(()=>{r(!0)})}),n=()=>{null==t||t()};return n.then=(e,t)=>r.then(e,t),n.promise=r,n}var H=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let D=i.forwardRef((e,t)=>{let{top:r,prefixCls:o,getContainer:a,maxCount:l,duration:s=3,rtl:c,transitionName:u,onAllRemoved:f}=e,{getPrefixCls:h,getPopupContainer:g}=i.useContext(j.E_),m=o||h("message"),[,v]=T(m),y=i.createElement("span",{className:`${m}-close-x`},i.createElement(_.Z,{className:`${m}-close-icon`})),[x,C]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,r=void 0===t?$:t,o=e.motion,a=e.prefixCls,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,f=(0,p.Z)(e,E),h=i.useState(),g=(0,d.Z)(h,2),m=g[0],v=g[1],y=i.useRef(),b=i.createElement(S,{container:m,ref:y,prefixCls:a,motion:o,maxCount:l,className:s,style:c,onAllRemoved:u}),x=i.useState([]),C=(0,d.Z)(x,2),w=C[0],A=C[1],O=i.useMemo(function(){return{open:function(e){var t=function(){for(var e={},t=arguments.length,r=Array(t),n=0;n({left:"50%",transform:"translateX(-50%)",top:null!=r?r:8}),className:()=>b()(v,c?`${m}-rtl`:""),motion:()=>({motionName:null!=u?u:`${m}-move-up`}),closable:!1,closeIcon:y,duration:s,getContainer:()=>(null==a?void 0:a())||(null==g?void 0:g())||document.body,maxCount:l,onAllRemoved:f});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:m,hashId:v})),C}),L=0;function I(e){let t=i.useRef(null),r=i.useMemo(()=>{let e=e=>{var r;null===(r=t.current)||void 0===r||r.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:n,prefixCls:o,hashId:a}=t.current,l=`${o}-notice`,{content:s,icon:c,type:u,key:f,className:d,onClose:p}=r,h=H(r,["content","icon","type","key","className","onClose"]),g=f;return null==g&&(L+=1,g=`antd-message-${L}`),N(t=>(n(Object.assign(Object.assign({},h),{key:g,content:i.createElement(F,{prefixCls:o,type:u,icon:c},s),placement:"top",className:b()(u&&`${l}-${u}`,a,d),onClose:()=>{null==p||p(),t()}})),()=>{e(g)}))},n={open:r,destroy:r=>{var n;void 0!==r?e(r):null===(n=t.current)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{n[e]=(t,n,o)=>{let i,a,l;i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof n?l=n:(a=n,l=o);let s=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return r(s)}}),n},[]);return[r,i.createElement(D,Object.assign({key:"message-holder"},e,{ref:t}))]}let z=null,U=e=>e(),W=[],G={},K=i.forwardRef((e,t)=>{let r=()=>{let{prefixCls:e,container:t,maxCount:r,duration:n,rtl:o,top:i}=function(){let{prefixCls:e,getContainer:t,duration:r,rtl:n,maxCount:o,top:i}=G,l=null!=e?e:(0,a.w6)().getPrefixCls("message"),s=(null==t?void 0:t())||document.body;return{prefixCls:l,container:s,duration:r,rtl:n,maxCount:o,top:i}}();return{prefixCls:e,getContainer:()=>t,maxCount:r,duration:n,rtl:o,top:i}},[n,o]=i.useState(r),[l,s]=I(n),c=(0,a.w6)(),u=c.getRootPrefixCls(),f=c.getIconPrefixCls(),d=c.getTheme(),p=()=>{o(r)};return i.useEffect(p,[]),i.useImperativeHandle(t,()=>{let e=Object.assign({},l);return Object.keys(e).forEach(t=>{e[t]=function(){return p(),l[t].apply(l,arguments)}}),{instance:e,sync:p}}),i.createElement(a.ZP,{prefixCls:u,iconPrefixCls:f,theme:d},s)});function q(){if(!z){let e=document.createDocumentFragment(),t={fragment:e};z=t,U(()=>{(0,o.s)(i.createElement(K,{ref:e=>{let{instance:r,sync:n}=e||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=n,q())})}}),e)});return}z.instance&&(W.forEach(e=>{let{type:t,skipped:r}=e;if(!r)switch(t){case"open":U(()=>{let t=z.instance.open(Object.assign(Object.assign({},G),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":U(()=>{null==z||z.instance.destroy(e.key)});break;default:U(()=>{var r;let o=(r=z.instance)[t].apply(r,(0,n.Z)(e.args));null==o||o.then(e.resolve),e.setCloseFn(o)})}}),W=[])}let V={open:function(e){let t=N(t=>{let r;let n={type:"open",config:e,resolve:t,setCloseFn:e=>{r=e}};return W.push(n),()=>{r?U(()=>{r()}):n.skipped=!0}});return q(),t},destroy:function(e){W.push({type:"destroy",key:e}),q()},config:function(e){G=Object.assign(Object.assign({},G),e),U(()=>{var e;null===(e=null==z?void 0:z.sync)||void 0===e||e.call(z)})},useMessage:function(e){return I(e)},_InternalPanelDoNotUseOrYouWillBeFired:function(e){let{prefixCls:t,className:r,type:n,icon:o,content:a}=e,l=R(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=i.useContext(j.E_),c=t||s("message"),[,u]=T(c);return i.createElement(w,Object.assign({},l,{prefixCls:c,className:b()(r,u,`${c}-notice-pure-panel`),eventKey:"pure",duration:null,content:i.createElement(F,{prefixCls:c,type:n,icon:o},a)}))}};["success","info","warning","error","loading"].forEach(e=>{V[e]=function(){for(var t=arguments.length,r=Array(t),n=0;n{let n;let o={type:e,args:t,resolve:r,setCloseFn:e=>{n=e}};return W.push(o),()=>{n?U(()=>{n()}):o.skipped=!0}});return q(),r}(e,r)}});var X=V},66255:function(e,t,r){"use strict";r.d(t,{A:function(){return a},f:function(){return i}});var n=r(91295);let o=Object.assign({},n.Z.Modal);function i(e){o=e?Object.assign(Object.assign({},o),e):Object.assign({},n.Z.Modal)}function a(){return o}},98663:function(e,t,r){"use strict";r.d(t,{Lx:function(){return l},Qy:function(){return u},Ro:function(){return i},Wf:function(){return o},dF:function(){return a},du:function(){return s},oN:function(){return c},vS:function(){return n}});let n={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},o=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),i=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),a=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),l=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, - &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t)=>{let{fontFamily:r,fontSize:n}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},c=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),u=e=>({"&:focus-visible":Object.assign({},c(e))})},31508:function(e,t,r){"use strict";r.d(t,{Mj:function(){return u},u_:function(){return c},dQ:function(){return f}});var n=r(11717),o=r(86006),i=r(47794),a=r(99528),l=r(85207);let s=(0,n.jG)(i.Z),c={token:a.Z,hashed:!0},u=o.createContext(c);function f(){let{token:e,hashed:t,theme:r,components:i}=o.useContext(u),c=`5.6.2-${t||""}`,f=r||s,[d,p]=(0,n.fp)(f,[a.Z,e],{salt:c,override:Object.assign({override:e},i),formatToken:l.Z});return[f,d,t?p:""]}},47794:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(70333),o=r(33058),i=r(99528),a=r(41433),l=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},s=r(57389);let c=(e,t)=>new s.C(e).setAlpha(t).toRgbString(),u=(e,t)=>{let r=new s.C(e);return r.darken(t).toHexString()},f=e=>{let t=(0,n.R_)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},d=(e,t)=>{let r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:c(n,.88),colorTextSecondary:c(n,.65),colorTextTertiary:c(n,.45),colorTextQuaternary:c(n,.25),colorFill:c(n,.15),colorFillSecondary:c(n,.06),colorFillTertiary:c(n,.04),colorFillQuaternary:c(n,.02),colorBgLayout:u(r,4),colorBgContainer:u(r,0),colorBgElevated:u(r,0),colorBgSpotlight:c(n,.85),colorBorder:u(r,15),colorBorderSecondary:u(r,6)}};var p=r(89931);function h(e){let t=Object.keys(i.M).map(t=>{let r=(0,n.R_)(e[t]);return Array(10).fill(1).reduce((e,n,o)=>(e[`${t}-${o+1}`]=r[o],e[`${t}${o+1}`]=r[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,a.Z)(e,{generateColorPalettes:f,generateNeutralColorPalettes:d})),(0,p.Z)(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}(e)),(0,o.Z)(e)),function(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+2*t).toFixed(1)}s`,motionDurationSlow:`${(r+3*t).toFixed(1)}s`,lineWidthBold:o+1},l(n))}(e))}},99528:function(e,t,r){"use strict";r.d(t,{M:function(){return n}});let n={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},n),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, -'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});t.Z=o},41433:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(57389);function o(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:o}=t,{colorSuccess:i,colorWarning:a,colorError:l,colorInfo:s,colorPrimary:c,colorBgBase:u,colorTextBase:f}=e,d=r(c),p=r(i),h=r(a),g=r(l),m=r(s),v=o(u,f);return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new n.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},33058:function(e,t){"use strict";t.Z=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},89931:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});var n=e=>{let t=function(e){let t=Array(10).fill(null).map((t,r)=>{let n=e*Math.pow(2.71828,(r-1)/5);return 2*Math.floor((r>1?Math.floor(n):Math.ceil(n))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:(e+8)/e}))}(e),r=t.map(e=>e.size),n=t.map(e=>e.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}}},85207:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(57389),o=r(99528);function i(e){return e>=0&&e<=255}var a=function(e,t){let{r:r,g:o,b:a,a:l}=new n.C(e).toRgb();if(l<1)return e;let{r:s,g:c,b:u}=new n.C(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((r-s*(1-e))/e),l=Math.round((o-c*(1-e))/e),f=Math.round((a-u*(1-e))/e);if(i(t)&&i(l)&&i(f))return new n.C({r:t,g:l,b:f,a:Math.round(100*e)/100}).toRgbString()}return new n.C({r:r,g:o,b:a,a:1}).toRgbString()},l=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function s(e){let{override:t}=e,r=l(e,["override"]),i=Object.assign({},t);Object.keys(o.Z).forEach(e=>{delete i[e]});let s=Object.assign(Object.assign({},r),i);!1===s.motion&&(s.motionDurationFast="0s",s.motionDurationMid="0s",s.motionDurationSlow="0s");let c=Object.assign(Object.assign(Object.assign({},s),{colorLink:s.colorInfoText,colorLinkHover:s.colorInfoHover,colorLinkActive:s.colorInfoActive,colorFillContent:s.colorFillSecondary,colorFillContentHover:s.colorFill,colorFillAlter:s.colorFillQuaternary,colorBgContainerDisabled:s.colorFillTertiary,colorBorderBg:s.colorBgContainer,colorSplit:a(s.colorBorderSecondary,s.colorBgContainer),colorTextPlaceholder:s.colorTextQuaternary,colorTextDisabled:s.colorTextQuaternary,colorTextHeading:s.colorText,colorTextLabel:s.colorTextSecondary,colorTextDescription:s.colorTextTertiary,colorTextLightSolid:s.colorWhite,colorHighlight:s.colorError,colorBgTextHover:s.colorFillSecondary,colorBgTextActive:s.colorFill,colorIcon:s.colorTextTertiary,colorIconHover:s.colorText,colorErrorOutline:a(s.colorErrorBg,s.colorBgContainer),colorWarningOutline:a(s.colorWarningBg,s.colorBgContainer),fontSizeIcon:s.fontSizeSM,lineWidthFocus:4*s.lineWidth,lineWidth:s.lineWidth,controlOutlineWidth:2*s.lineWidth,controlInteractiveSize:s.controlHeight/2,controlItemBgHover:s.colorFillTertiary,controlItemBgActive:s.colorPrimaryBg,controlItemBgActiveHover:s.colorPrimaryBgHover,controlItemBgActiveDisabled:s.colorFill,controlTmpOutline:s.colorFillQuaternary,controlOutline:a(s.colorPrimaryBg,s.colorBgContainer),lineType:s.lineType,borderRadius:s.borderRadius,borderRadiusXS:s.borderRadiusXS,borderRadiusSM:s.borderRadiusSM,borderRadiusLG:s.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:s.sizeXXS,paddingXS:s.sizeXS,paddingSM:s.sizeSM,padding:s.size,paddingMD:s.sizeMD,paddingLG:s.sizeLG,paddingXL:s.sizeXL,paddingContentHorizontalLG:s.sizeLG,paddingContentVerticalLG:s.sizeMS,paddingContentHorizontal:s.sizeMS,paddingContentVertical:s.sizeSM,paddingContentHorizontalSM:s.size,paddingContentVerticalSM:s.sizeXS,marginXXS:s.sizeXXS,marginXS:s.sizeXS,marginSM:s.sizeSM,margin:s.size,marginMD:s.sizeMD,marginLG:s.sizeLG,marginXL:s.sizeXL,marginXXL:s.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new n.C("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new n.C("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new n.C("rgba(0, 0, 0, 0.09)").toRgbString()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerDown:` - 0 -6px 16px 0 rgba(0, 0, 0, 0.08), - 0 -3px 6px -4px rgba(0, 0, 0, 0.12), - 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),i);return c}},40650:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(11717);r(65493);var o=r(86006),i=r(79746),a=r(98663),l=r(31508),s=r(70721);function c(e,t,r,c){return u=>{let[f,d,p]=(0,l.dQ)(),{getPrefixCls:h,iconPrefixCls:g,csp:m}=(0,o.useContext)(i.E_),v=h(),y={theme:f,token:d,hashId:p,nonce:()=>null==m?void 0:m.nonce};return(0,n.xy)(Object.assign(Object.assign({},y),{path:["Shared",v]}),()=>[{"&":(0,a.Lx)(d)}]),[(0,n.xy)(Object.assign(Object.assign({},y),{path:[e,u,g]}),()=>{let{token:n,flush:o}=(0,s.ZP)(d),i=Object.assign({},d[e]);if(null==c?void 0:c.deprecatedTokens){let{deprecatedTokens:e}=c;e.forEach(e=>{var t;let[r,n]=e;((null==i?void 0:i[r])||(null==i?void 0:i[n]))&&(null!==(t=i[n])&&void 0!==t||(i[n]=null==i?void 0:i[r]))})}let l="function"==typeof r?r((0,s.TS)(n,null!=i?i:{})):r,f=Object.assign(Object.assign({},l),i),h=`.${u}`,m=(0,s.TS)(n,{componentCls:h,prefixCls:u,iconCls:`.${g}`,antCls:`.${v}`},f),y=t(m,{hashId:p,prefixCls:u,rootPrefixCls:v,iconPrefixCls:g,overrideComponentToken:i});return o(e,f),[(null==c?void 0:c.resetStyle)===!1?null:(0,a.du)(d,u),y]}),p]}}},70721:function(e,t,r){"use strict";r.d(t,{TS:function(){return i},ZP:function(){return s}});let n="undefined"!=typeof CSSINJS_STATISTIC,o=!0;function i(){for(var e=arguments.length,t=Array(e),r=0;r{let t=Object.keys(e);t.forEach(t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})})}),o=!0,i}let a={};function l(){}function s(e){let t;let r=e,i=l;return n&&(t=new Set,r=new Proxy(e,{get:(e,r)=>(o&&t.add(r),e[r])}),i=(e,r)=>{a[e]={global:Array.from(t),component:r}}),{token:r,keys:t,flush:i}}},8683:function(e,t){var r;/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t0?a-4:a;for(r=0;r>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===l&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===l&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,l=n-o;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>l?l:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */var n=r(675),o=r(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|p(e,t),n=a(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return A(e).length;default:if(o)return n?-1:$(e).length;t=(""+t).toLowerCase(),o=!0}}function h(e,t,r){var o,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(i=r=+r)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,a=1,l=e.length,s=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,l/=2,s/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=r;il&&(r=l-s),i=r;i>=0;i--){for(var f=!0,d=0;d239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&c)<<6|63&i)>127&&(u=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],(192&i)==128&&(192&a)==128&&(192&l)==128&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,f=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function x(e,t,r,n,o,i){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function C(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function w(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,i){return t=+t,r>>>=0,i||C(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,r){return s(e,t,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,r){return(c(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);or&&(e+=" ... "),""},i&&(l.prototype[i]=l.prototype.inspect),l.prototype.compare=function(e,t,r,n,o){if(Z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,s=Math.min(i,a),c=this.slice(n,o),u=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,l,s,c,u,f,d,p,h,g,m=this.length-t;if((void 0===r||r>m)&&(r=m),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a>8,o.push(r%256),o.push(n);return o}(e,this.length-h),this,h,g);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;x(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);x(this,e,t,r,o-1,-o)}var i=r-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,r){return w(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return w(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function k(e){for(var t=[],r=0;r=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var B=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,o){var i,a,l=8*o-n-1,s=(1<>1,u=-7,f=r?o-1:0,d=r?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-u)-1,p>>=-u,u+=l;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=n;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,n),i-=c}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,l,s,c=8*i-o-1,u=(1<>1,d=23===o?5960464477539062e-23:0,p=n?0:i-1,h=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+f>=1?t+=d/s:t+=d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=u?(l=0,a=u):a+f>=1?(l=(t*s-1)*Math.pow(2,o),a+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&l,p+=h,l/=256,o-=8);for(a=a<0;e[r+p]=255&a,p+=h,a/=256,c-=8);e[r+p-h]|=128*g}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},a=!0;try{t[e](i,i.exports,n),a=!1}finally{a&&delete r[e]}return i.exports}n.ab="//";var o=n(72);e.exports=o}()},66003:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s=[],c=!1,u=-1;function f(){c&&n&&(c=!1,n.length?s=n.concat(s):u=-1,s.length&&d())}function d(){if(!c){var e=l(f);c=!0;for(var t=s.length;t;){for(n=s,s=[];++u1)for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,X.Z)(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i},t]},J=[T,j,R,"end"],Q=[T,M];function ee(e){return e===R||"end"===e}var et=function(e,t,r){var n=(0,k.Z)(P),o=(0,u.Z)(n,2),i=o[0],a=o[1],l=Y(),s=(0,u.Z)(l,2),c=s[0],f=s[1],d=t?Q:J;return V(function(){if(i!==P&&"end"!==i){var e=d.indexOf(i),t=d[e+1],n=r(i);!1===n?a(t,!0):t&&c(function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[e,i]),m.useEffect(function(){return function(){f()}},[]),[function(){a(T,!0)},i]},er=(a=U,"object"===(0,f.Z)(U)&&(a=U.transitionSupport),(l=m.forwardRef(function(e,t){var r=e.visible,n=void 0===r||r,o=e.removeOnLeave,i=void 0===o||o,l=e.forceRender,f=e.children,d=e.motionName,v=e.leavedClassName,y=e.eventProps,x=m.useContext(b).motion,C=!!(e.motionName&&a&&!1!==x),w=(0,m.useRef)(),S=(0,m.useRef)(),E=function(e,t,r,n){var o=n.motionEnter,i=void 0===o||o,a=n.motionAppear,l=void 0===a||a,f=n.motionLeave,d=void 0===f||f,p=n.motionDeadline,h=n.motionLeaveImmediately,g=n.onAppearPrepare,v=n.onEnterPrepare,y=n.onLeavePrepare,b=n.onAppearStart,x=n.onEnterStart,C=n.onLeaveStart,w=n.onAppearActive,S=n.onEnterActive,E=n.onLeaveActive,$=n.onAppearEnd,P=n.onEnterEnd,F=n.onLeaveEnd,_=n.onVisibleChanged,N=(0,k.Z)(),H=(0,u.Z)(N,2),D=H[0],L=H[1],I=(0,k.Z)(A),z=(0,u.Z)(I,2),U=z[0],W=z[1],G=(0,k.Z)(null),K=(0,u.Z)(G,2),X=K[0],Y=K[1],J=(0,m.useRef)(!1),Q=(0,m.useRef)(null),er=(0,m.useRef)(!1);function en(){W(A,!0),Y(null,!0)}function eo(e){var t,n=r();if(!e||e.deadline||e.target===n){var o=er.current;U===O&&o?t=null==$?void 0:$(n,e):U===Z&&o?t=null==P?void 0:P(n,e):U===B&&o&&(t=null==F?void 0:F(n,e)),U!==A&&o&&!1!==t&&en()}}var ei=q(eo),ea=(0,u.Z)(ei,1)[0],el=function(e){var t,r,n;switch(e){case O:return t={},(0,s.Z)(t,T,g),(0,s.Z)(t,j,b),(0,s.Z)(t,R,w),t;case Z:return r={},(0,s.Z)(r,T,v),(0,s.Z)(r,j,x),(0,s.Z)(r,R,S),r;case B:return n={},(0,s.Z)(n,T,y),(0,s.Z)(n,j,C),(0,s.Z)(n,R,E),n;default:return{}}},es=m.useMemo(function(){return el(U)},[U]),ec=et(U,!e,function(e){if(e===T){var t,n=es[T];return!!n&&n(r())}return ed in es&&Y((null===(t=es[ed])||void 0===t?void 0:t.call(es,r(),null))||null),ed===R&&(ea(r()),p>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){eo({deadline:!0})},p))),ed===M&&en(),!0}),eu=(0,u.Z)(ec,2),ef=eu[0],ed=eu[1],ep=ee(ed);er.current=ep,V(function(){L(t);var r,n=J.current;J.current=!0,!n&&t&&l&&(r=O),n&&t&&i&&(r=Z),(n&&!t&&d||!n&&h&&!t&&d)&&(r=B);var o=el(r);r&&(e||o[T])?(W(r),ef()):W(A)},[t]),(0,m.useEffect)(function(){(U!==O||l)&&(U!==Z||i)&&(U!==B||d)||W(A)},[l,i,d]),(0,m.useEffect)(function(){return function(){J.current=!1,clearTimeout(Q.current)}},[]);var eh=m.useRef(!1);(0,m.useEffect)(function(){D&&(eh.current=!0),void 0!==D&&U===A&&((eh.current||D)&&(null==_||_(D)),eh.current=!0)},[D,U]);var eg=X;return es[T]&&ed===j&&(eg=(0,c.Z)({transition:"none"},eg)),[U,ed,eg,null!=D?D:t]}(C,n,function(){try{return w.current instanceof HTMLElement?w.current:(0,h.Z)(S.current)}catch(e){return null}},e),P=(0,u.Z)(E,4),F=P[0],_=P[1],N=P[2],H=P[3],D=m.useRef(H);H&&(D.current=!0);var L=m.useCallback(function(e){w.current=e,(0,g.mH)(t,e)},[t]),I=(0,c.Z)((0,c.Z)({},y),{},{visible:n});if(f){if(F===A)z=H?f((0,c.Z)({},I),L):!i&&D.current&&v?f((0,c.Z)((0,c.Z)({},I),{},{className:v}),L):!l&&(i||v)?null:f((0,c.Z)((0,c.Z)({},I),{},{style:{display:"none"}}),L);else{_===T?W="prepare":ee(_)?W="active":_===j&&(W="start");var z,U,W,G=K(d,"".concat(F,"-").concat(W));z=f((0,c.Z)((0,c.Z)({},I),{},{className:p()(K(d,F),(U={},(0,s.Z)(U,G,G&&W),(0,s.Z)(U,d,"string"==typeof d),U)),style:N}),L)}}else z=null;return m.isValidElement(z)&&(0,g.Yr)(z)&&!z.ref&&(z=m.cloneElement(z,{ref:L})),m.createElement($,{ref:S},z)})).displayName="CSSMotion",l),en=r(40431),eo=r(70184),ei="keep",ea="remove",el="removed";function es(e){var t;return t=e&&"object"===(0,f.Z)(e)&&"key"in e?e:{key:e},(0,c.Z)((0,c.Z)({},t),{},{key:String(t.key)})}function ec(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(es)}var eu=["component","children","onVisibleChanged","onAllRemoved"],ef=["status"],ed=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"],ep=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,r=function(e){(0,S.Z)(n,e);var r=(0,E.Z)(n);function n(){var e;(0,C.Z)(this,n);for(var t=arguments.length,o=Array(t),i=0;i0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[],n=0,o=t.length,i=ec(e),a=ec(t);i.forEach(function(e){for(var t=!1,i=n;i1}).forEach(function(e){(r=r.filter(function(t){var r=t.key,n=t.status;return r!==e||n!==ea})).forEach(function(t){t.key===e&&(t.status=ei)})}),r})(n,ec(r)).filter(function(e){var t=n.find(function(t){var r=t.key;return e.key===r});return!t||t.status!==el||e.status!==ea})}}}]),n}(m.Component);return(0,s.Z)(r,"defaultProps",{component:"div"}),r}(U),eh=er},91219:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},71693:function(e,t,r){"use strict";function n(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}r.d(t,{Z:function(){return n}})},14071:function(e,t,r){"use strict";function n(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}r.d(t,{Z:function(){return n}})},52160:function(e,t,r){"use strict";r.d(t,{hq:function(){return p},jL:function(){return d}});var n=r(71693),o=r(14071),i="data-rc-order",a=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function c(e){return Array.from((a.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,n.Z)())return null;var r=t.csp,o=t.prepend,a=document.createElement("style");a.setAttribute(i,"queue"===o?"prependQueue":o?"prepend":"append"),null!=r&&r.nonce&&(a.nonce=null==r?void 0:r.nonce),a.innerHTML=e;var l=s(t),u=l.firstChild;if(o){if("queue"===o){var f=c(l).filter(function(e){return["prepend","prependQueue"].includes(e.getAttribute(i))});if(f.length)return l.insertBefore(a,f[f.length-1].nextSibling),a}l.insertBefore(a,u)}else l.appendChild(a);return a}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(s(t)).find(function(r){return r.getAttribute(l(t))===e})}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=f(e,t);r&&s(t).removeChild(r)}function p(e,t){var r,n,i,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){var r=a.get(e);if(!r||!(0,o.Z)(document,r)){var n=u("",t),i=n.parentNode;a.set(e,i),e.removeChild(n)}}(s(c),c);var d=f(t,c);if(d)return null!==(r=c.csp)&&void 0!==r&&r.nonce&&d.nonce!==(null===(n=c.csp)||void 0===n?void 0:n.nonce)&&(d.nonce=null===(i=c.csp)||void 0===i?void 0:i.nonce),d.innerHTML!==e&&(d.innerHTML=e),d;var p=u(e,c);return p.setAttribute(l(c),t),p}},49175:function(e,t,r){"use strict";r.d(t,{S:function(){return i},Z:function(){return a}});var n=r(86006),o=r(8431);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof n.Component?o.findDOMNode(e):null}},60618:function(e,t,r){"use strict";function n(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return n(e)!==(null==e?void 0:e.ownerDocument)?n(e):null}r.d(t,{A:function(){return o}})},48580:function(e,t){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE||e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY||e>=r.A&&e<=r.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=r},88101:function(e,t,r){"use strict";r.d(t,{s:function(){return m},v:function(){return y}});var n,o,i=r(71971),a=r(27859),l=r(965),s=r(88684),c=r(8431),u=(0,s.Z)({},n||(n=r.t(c,2))),f=u.version,d=u.render,p=u.unmountComponentAtNode;try{Number((f||"").split(".")[0])>=18&&(o=u.createRoot)}catch(e){}function h(e){var t=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,l.Z)(t)&&(t.usingClientEntryPoint=e)}var g="__rc_react_root__";function m(e,t){if(o){var r;h(!0),r=t[g]||o(t),h(!1),r.render(e),t[g]=r;return}d(e,t)}function v(){return(v=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[g])||void 0===e||e.unmount(),delete t[g]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function y(e){return b.apply(this,arguments)}function b(){return(b=(0,a.Z)((0,i.Z)().mark(function e(t){return(0,i.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(void 0!==o)){e.next=2;break}return e.abrupt("return",function(e){return v.apply(this,arguments)}(t));case 2:p(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}},23254:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(86006);function o(e){var t=n.useRef();return t.current=e,n.useCallback(function(){for(var e,r=arguments.length,n=Array(r),o=0;o2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.ZP)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(r&&l>1)return!1;i.add(t);var c=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u1&&void 0!==arguments[1]?arguments[1]:1,n=o+=1;return!function t(o){if(0===o)i.delete(n),e();else{var a=r(function(){t(o-1)});i.set(n,a)}}(t),n};a.cancel=function(e){var t=i.get(e);return i.delete(t),n(t)},t.Z=a},92510:function(e,t,r){"use strict";r.d(t,{Yr:function(){return c},mH:function(){return a},sQ:function(){return l},x1:function(){return s}});var n=r(965),o=r(10854),i=r(55567);function a(e,t){"function"==typeof e?e(t):"object"===(0,n.Z)(e)&&e&&"current"in e&&(e.current=t)}function l(){for(var e=arguments.length,t=Array(e),r=0;r3&&void 0!==arguments[3]&&arguments[3];return t.length&&n&&void 0===r&&!(0,l.Z)(e,t.slice(0,-1))?e:function e(t,r,n,l){if(!r.length)return n;var s,c=(0,a.Z)(r),u=c[0],f=c.slice(1);return s=t||"number"!=typeof u?Array.isArray(t)?(0,i.Z)(t):(0,o.Z)({},t):[],l&&void 0===n&&1===f.length?delete s[u][f[0]]:s[u]=e(s[u],f,n,l),s}(e,t,r,n)}function c(e){return Array.isArray(e)?[]:{}}var u="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,t=Array(e),r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},46750:function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,{Z:function(){return n}})},71971:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(965);function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o,a,l=Object.create((t&&t.prototype instanceof h?t:h).prototype);return i(l,"_invoke",{value:(o=new $(n||[]),a="suspendedStart",function(t,n){if("executing"===a)throw Error("Generator is already running");if("completed"===a){if("throw"===t)throw n;return A()}for(o.method=t,o.arg=n;;){var i=o.delegate;if(i){var l=function e(t,r){var n=r.method,o=t.iterator[n];if(void 0===o)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):a:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,p)}(i,o);if(l){if(l===p)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===a)throw a="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a="executing";var s=d(e,r,o);if("normal"===s.type){if(a=o.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(a="completed",o.method="throw",o.arg=s.arg)}})}),l}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=f;var p={};function h(){}function g(){}function m(){}var v={};u(v,l,function(){return this});var y=Object.getPrototypeOf,b=y&&y(y(k([])));b&&b!==t&&r.call(b,l)&&(v=b);var x=m.prototype=h.prototype=Object.create(v);function C(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var o;i(this,"_invoke",{value:function(i,a){function l(){return new t(function(o,l){!function o(i,a,l,s){var c=d(e[i],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==(0,n.Z)(f)&&r.call(f,"__await")?t.resolve(f.__await).then(function(e){o("next",e,l,s)},function(e){o("throw",e,l,s)}):t.resolve(f).then(function(e){u.value=e,l(u)},function(e){return o("throw",e,l,s)})}s(c.arg)}(i,a,o,l)})}return o=o?o.then(l,l):l()}})}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(l&&s){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:k(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}},60456:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(86351),o=r(24537),i=r(62160);function a(e,t){return(0,n.Z)(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,l=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||(0,o.Z)(e,t)||(0,i.Z)()}},29221:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(86351),o=r(13804),i=r(24537),a=r(62160);function l(e){return(0,n.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},90151:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(16544),o=r(13804),i=r(24537);function a(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},58774:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(965);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==(0,n.Z)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,n.Z)(t)?t:String(t)}},965:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{Z:function(){return n}})},24537:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(16544);function o(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n.Z)(e,t)}}},24214:function(e,t,r){"use strict";let n;function o(e,t){return function(){return e.apply(t,arguments)}}r.d(t,{Z:function(){return eL}});let{toString:i}=Object.prototype,{getPrototypeOf:a}=Object,l=(M=Object.create(null),e=>{let t=i.call(e);return M[t]||(M[t]=t.slice(8,-1).toLowerCase())}),s=e=>(e=e.toLowerCase(),t=>l(t)===e),c=e=>t=>typeof t===e,{isArray:u}=Array,f=c("undefined"),d=s("ArrayBuffer"),p=c("string"),h=c("function"),g=c("number"),m=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==l(e))return!1;let t=a(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},y=s("Date"),b=s("File"),x=s("Blob"),C=s("FileList"),w=s("URLSearchParams");function S(e,t,{allOwnKeys:r=!1}={}){let n,o;if(null!=e){if("object"!=typeof e&&(e=[e]),u(e))for(n=0,o=e.length;n0;)if(t===(r=n[o]).toLowerCase())return r;return null}let $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,k=e=>!f(e)&&e!==$,A=(F="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>F&&e instanceof F),O=s("HTMLFormElement"),Z=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),B=s("RegExp"),P=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};S(r,(r,o)=>{!1!==t(r,o,e)&&(n[o]=r)}),Object.defineProperties(e,n)},T="abcdefghijklmnopqrstuvwxyz",j="0123456789",R={DIGIT:j,ALPHA:T,ALPHA_DIGIT:T+T.toUpperCase()+j};var M,F,_={isArray:u,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||h(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:p,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:v,isUndefined:f,isDate:y,isFile:b,isBlob:x,isRegExp:B,isFunction:h,isStream:e=>m(e)&&h(e.pipe),isURLSearchParams:w,isTypedArray:A,isFileList:C,forEach:S,merge:function e(){let{caseless:t}=k(this)&&this||{},r={},n=(n,o)=>{let i=t&&E(r,o)||o;v(r[i])&&v(n)?r[i]=e(r[i],n):v(n)?r[i]=e({},n):u(n)?r[i]=n.slice():r[i]=n};for(let e=0,t=arguments.length;e(S(t,(t,n)=>{r&&h(t)?e[n]=o(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,l;let s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)l=o[i],(!n||n(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=!1!==r&&a(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:s,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(u(e))return e;let t=e.length;if(!g(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=e&&e[Symbol.iterator],o=n.call(e);for(;(r=o.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:O,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:P,freezeMethods:e=>{P(e,(t,r)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=e[r];if(h(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(u(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>Number.isFinite(e=+e)?e:t,findKey:E,global:$,isContextDefined:k,ALPHABET:R,generateString:(e=16,t=R.ALPHA_DIGIT)=>{let r="",{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let o=u(e)?[]:{};return S(e,(e,t)=>{let i=r(e,n+1);f(i)||(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)}};function N(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}_.inherits(N,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let H=N.prototype,D={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{D[e]={value:e}}),Object.defineProperties(N,D),Object.defineProperty(H,"isAxiosError",{value:!0}),N.from=(e,t,r,n,o,i)=>{let a=Object.create(H);return _.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),N.call(a,e.message,t,r,n,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var L=r(91083).Buffer;function I(e){return _.isPlainObject(e)||_.isArray(e)}function z(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function U(e,t,r){return e?e.concat(t).map(function(e,t){return e=z(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let W=_.toFlatObject(_,{},null,function(e){return/^is[A-Z]/.test(e)});var G=function(e,t,r){if(!_.isObject(e))throw TypeError("target must be an object");t=t||new FormData,r=_.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!_.isUndefined(t[e])});let n=r.metaTokens,o=r.visitor||u,i=r.dots,a=r.indexes,l=r.Blob||"undefined"!=typeof Blob&&Blob,s=l&&_.isSpecCompliantForm(t);if(!_.isFunction(o))throw TypeError("visitor must be a function");function c(e){if(null===e)return"";if(_.isDate(e))return e.toISOString();if(!s&&_.isBlob(e))throw new N("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(e)||_.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):L.from(e):e}function u(e,r,o){let l=e;if(e&&!o&&"object"==typeof e){if(_.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var s;if(_.isArray(e)&&(s=e,_.isArray(s)&&!s.some(I))||(_.isFileList(e)||_.endsWith(r,"[]"))&&(l=_.toArray(e)))return r=z(r),l.forEach(function(e,n){_.isUndefined(e)||null===e||t.append(!0===a?U([r],n,i):null===a?r:r+"[]",c(e))}),!1}}return!!I(e)||(t.append(U(o,r,i),c(e)),!1)}let f=[],d=Object.assign(W,{defaultVisitor:u,convertValue:c,isVisitable:I});if(!_.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!_.isUndefined(r)){if(-1!==f.indexOf(r))throw Error("Circular reference detected in "+n.join("."));f.push(r),_.forEach(r,function(r,i){let a=!(_.isUndefined(r)||null===r)&&o.call(t,r,_.isString(i)?i.trim():i,n,d);!0===a&&e(r,n?n.concat(i):[i])}),f.pop()}}(e),t};function K(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function q(e,t){this._pairs=[],e&&G(e,this,t)}let V=q.prototype;function X(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(e,t,r){let n;if(!t)return e;let o=r&&r.encode||X,i=r&&r.serialize;if(n=i?i(t,r):_.isURLSearchParams(t)?t.toString():new q(t,r).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}V.append=function(e,t){this._pairs.push([e,t])},V.toString=function(e){let t=e?function(t){return e.call(this,t,K)}:K;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var J=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_.forEach(this.handlers,function(t){null!==t&&e(t)})}},Q={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ee="undefined"!=typeof URLSearchParams?URLSearchParams:q,et="undefined"!=typeof FormData?FormData:null,er="undefined"!=typeof Blob?Blob:null;let en=("undefined"==typeof navigator||"ReactNative"!==(n=navigator.product)&&"NativeScript"!==n&&"NS"!==n)&&"undefined"!=typeof window&&"undefined"!=typeof document,eo="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var ei={isBrowser:!0,classes:{URLSearchParams:ee,FormData:et,Blob:er},isStandardBrowserEnv:en,isStandardBrowserWebWorkerEnv:eo,protocols:["http","https","file","blob","url","data"]},ea=function(e){if(_.isFormData(e)&&_.isFunction(e.entries)){let t={};return _.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){let i=t[o++],a=Number.isFinite(+i),l=o>=t.length;if(i=!i&&_.isArray(n)?n.length:i,l)return _.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&_.isObject(n[i])||(n[i]=[]);let s=e(t,r,n[i],o);return s&&_.isArray(n[i])&&(n[i]=function(e){let t,r;let n={},o=Object.keys(e),i=o.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let el={"Content-Type":void 0},es={transitional:Q,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=_.isObject(e);i&&_.isHTMLForm(e)&&(e=new FormData(e));let a=_.isFormData(e);if(a)return o&&o?JSON.stringify(ea(e)):e;if(_.isArrayBuffer(e)||_.isBuffer(e)||_.isStream(e)||_.isFile(e)||_.isBlob(e))return e;if(_.isArrayBufferView(e))return e.buffer;if(_.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1){var l,s;return(l=e,s=this.formSerializer,G(l,new ei.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ei.isNode&&_.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},s))).toString()}if((r=_.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return G(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,r){if(_.isString(e))try{return(0,JSON.parse)(e),_.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||es.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&_.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw N.from(e,N.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ei.classes.FormData,Blob:ei.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_.forEach(["delete","get","head"],function(e){es.headers[e]={}}),_.forEach(["post","put","patch"],function(e){es.headers[e]=_.merge(el)});let ec=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eu=e=>{let t,r,n;let o={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||o[t]&&ec[t]||("set-cookie"===t?o[t]?o[t].push(r):o[t]=[r]:o[t]=o[t]?o[t]+", "+r:r)}),o};let ef=Symbol("internals");function ed(e){return e&&String(e).trim().toLowerCase()}function ep(e){return!1===e||null==e?e:_.isArray(e)?e.map(ep):String(e)}function eh(e,t,r,n,o){if(_.isFunction(n))return n.call(this,t,r);if(o&&(t=r),_.isString(t)){if(_.isString(n))return -1!==t.indexOf(n);if(_.isRegExp(n))return n.test(t)}}class eg{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=ed(t);if(!o)throw Error("header name must be a non-empty string");let i=_.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=ep(e))}let i=(e,t)=>_.forEach(e,(e,r)=>o(e,r,t));if(_.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{var a;_.isString(e)&&(e=e.trim())&&(a=e,!/^[-_a-zA-Z]+$/.test(a.trim()))?i(eu(e),t):null!=e&&o(t,e,r)}return this}get(e,t){if(e=ed(e)){let r=_.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(_.isFunction(t))return t.call(this,e,r);if(_.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ed(e)){let r=_.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eh(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=ed(e)){let o=_.findKey(r,e);o&&(!t||eh(r,r[o],o,t))&&(delete r[o],n=!0)}}return _.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||eh(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return _.forEach(this,(n,o)=>{let i=_.findKey(r,o);if(i){t[i]=ep(n),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();a!==o&&delete t[o],t[a]=ep(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return _.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&_.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=this[ef]=this[ef]={accessors:{}},r=t.accessors,n=this.prototype;function o(e){let t=ed(e);r[t]||(!function(e,t){let r=_.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(n,e),r[t]=!0)}return _.isArray(e)?e.forEach(o):o(e),this}}function em(e,t){let r=this||es,n=t||r,o=eg.from(n.headers),i=n.data;return _.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function ev(e){return!!(e&&e.__CANCEL__)}function ey(e,t,r){N.call(this,null==e?"canceled":e,N.ERR_CANCELED,t,r),this.name="CanceledError"}eg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_.freezeMethods(eg.prototype),_.freezeMethods(eg),_.inherits(ey,N,{__CANCEL__:!0});var eb=ei.isStandardBrowserEnv?{write:function(e,t,r,n,o,i){let a=[];a.push(e+"="+encodeURIComponent(t)),_.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),_.isString(n)&&a.push("path="+n),_.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function ex(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e:t}var eC=ei.isStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=_.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},ew=function(e,t){let r;e=e||10;let n=Array(e),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(l){let s=Date.now(),c=o[a];r||(r=s),n[i]=l,o[i]=s;let u=a,f=0;for(;u!==i;)f+=n[u++],u%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),s-r{let i=o.loaded,a=o.lengthComputable?o.total:void 0,l=i-r,s=n(l),c=i<=a;r=i;let u={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&c?(a-i)/s:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}let eE="undefined"!=typeof XMLHttpRequest;var e$=eE&&function(e){return new Promise(function(t,r){let n,o=e.data,i=eg.from(e.headers).normalize(),a=e.responseType;function l(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}_.isFormData(o)&&(ei.isStandardBrowserEnv||ei.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let s=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(t+":"+r))}let c=ex(e.baseURL,e.url);function u(){if(!s)return;let n=eg.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders()),o=a&&"text"!==a&&"json"!==a?s.response:s.responseText,i={data:o,status:s.status,statusText:s.statusText,headers:n,config:e,request:s};!function(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new N("Request failed with status code "+r.status,[N.ERR_BAD_REQUEST,N.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}(function(e){t(e),l()},function(e){r(e),l()},i),s=null}if(s.open(e.method.toUpperCase(),Y(c,e.params,e.paramsSerializer),!0),s.timeout=e.timeout,"onloadend"in s?s.onloadend=u:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(u)},s.onabort=function(){s&&(r(new N("Request aborted",N.ECONNABORTED,e,s)),s=null)},s.onerror=function(){r(new N("Network Error",N.ERR_NETWORK,e,s)),s=null},s.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||Q;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new N(t,n.clarifyTimeoutError?N.ETIMEDOUT:N.ECONNABORTED,e,s)),s=null},ei.isStandardBrowserEnv){let t=(e.withCredentials||eC(c))&&e.xsrfCookieName&&eb.read(e.xsrfCookieName);t&&i.set(e.xsrfHeaderName,t)}void 0===o&&i.setContentType(null),"setRequestHeader"in s&&_.forEach(i.toJSON(),function(e,t){s.setRequestHeader(t,e)}),_.isUndefined(e.withCredentials)||(s.withCredentials=!!e.withCredentials),a&&"json"!==a&&(s.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&s.addEventListener("progress",eS(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",eS(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{s&&(r(!t||t.type?new ey(null,e,s):t),s.abort(),s=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let f=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);if(f&&-1===ei.protocols.indexOf(f)){r(new N("Unsupported protocol "+f+":",N.ERR_BAD_REQUEST,e));return}s.send(o||null)})};let ek={http:null,xhr:e$};_.forEach(ek,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});var eA={getAdapter:e=>{let t,r;e=_.isArray(e)?e:[e];let{length:n}=e;for(let o=0;oe instanceof eg?e.toJSON():e;function eP(e,t){t=t||{};let r={};function n(e,t,r){return _.isPlainObject(e)&&_.isPlainObject(t)?_.merge.call({caseless:r},e,t):_.isPlainObject(t)?_.merge({},t):_.isArray(t)?t.slice():t}function o(e,t,r){return _.isUndefined(t)?_.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function i(e,t){if(!_.isUndefined(t))return n(void 0,t)}function a(e,t){return _.isUndefined(t)?_.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function l(r,o,i){return i in t?n(r,o):i in e?n(void 0,r):void 0}let s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t)=>o(eB(e),eB(t),!0)};return _.forEach(Object.keys(e).concat(Object.keys(t)),function(n){let i=s[n]||o,a=i(e[n],t[n],n);_.isUndefined(a)&&i!==l||(r[n]=a)}),r}let eT="1.3.4",ej={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ej[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let eR={};ej.transitional=function(e,t,r){function n(e,t){return"[Axios v"+eT+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new N(n(o," has been removed"+(t?" in "+t:"")),N.ERR_DEPRECATED);return t&&!eR[o]&&(eR[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}};var eM={assertOptions:function(e,t,r){if("object"!=typeof e)throw new N("options must be an object",N.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],a=t[i];if(a){let t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new N("option "+i+" must be "+r,N.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new N("Unknown option "+i,N.ERR_BAD_OPTION)}},validators:ej};let eF=eM.validators;class e_{constructor(e){this.defaults=e,this.interceptors={request:new J,response:new J}}request(e,t){let r,n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=eP(this.defaults,t);let{transitional:i,paramsSerializer:a,headers:l}=t;void 0!==i&&eM.assertOptions(i,{silentJSONParsing:eF.transitional(eF.boolean),forcedJSONParsing:eF.transitional(eF.boolean),clarifyTimeoutError:eF.transitional(eF.boolean)},!1),void 0!==a&&eM.assertOptions(a,{encode:eF.function,serialize:eF.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(r=l&&_.merge(l.common,l[t.method]))&&_.forEach(["delete","get","head","post","put","patch","common"],e=>{delete l[e]}),t.headers=eg.concat(r,l);let s=[],c=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(c=c&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let f=0;if(!c){let e=[eZ.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,u),o=e.length,n=Promise.resolve(t);f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new ey(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;let t=new eN(function(t){e=t});return{token:t,cancel:e}}}let eH={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eH).forEach(([e,t])=>{eH[t]=e});let eD=function e(t){let r=new e_(t),n=o(e_.prototype.request,r);return _.extend(n,e_.prototype,r,{allOwnKeys:!0}),_.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eP(t,r))},n}(es);eD.Axios=e_,eD.CanceledError=ey,eD.CancelToken=eN,eD.isCancel=ev,eD.VERSION=eT,eD.toFormData=G,eD.AxiosError=N,eD.Cancel=eD.CanceledError,eD.all=function(e){return Promise.all(e)},eD.spread=function(e){return function(t){return e.apply(null,t)}},eD.isAxiosError=function(e){return _.isObject(e)&&!0===e.isAxiosError},eD.mergeConfig=eP,eD.AxiosHeaders=eg,eD.formToJSON=e=>ea(_.isHTMLForm(e)?new FormData(e):e),eD.HttpStatusCode=eH,eD.default=eD;var eL=eD},57436:function(e,t,r){"use strict";r.d(t,{Ab:function(){return a},Fr:function(){return l},G$:function(){return i},JM:function(){return f},K$:function(){return c},MS:function(){return n},h5:function(){return s},lK:function(){return u},uj:function(){return o}});var n="-ms-",o="-moz-",i="-webkit-",a="comm",l="rule",s="decl",c="@import",u="@keyframes",f="@layer"},99946:function(e,t,r){"use strict";r.d(t,{MY:function(){return a}});var n=r(57436),o=r(10036),i=r(125);function a(e){return(0,i.cE)(function e(t,r,a,c,u,f,d,p,h){for(var g,m=0,v=0,y=d,b=0,x=0,C=0,w=1,S=1,E=1,$=0,k="",A=u,O=f,Z=c,B=k;S;)switch(C=$,$=(0,i.lp)()){case 40:if(108!=C&&58==(0,o.uO)(B,y-1)){-1!=(0,o.Cw)(B+=(0,o.gx)((0,i.iF)($),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:B+=(0,i.iF)($);break;case 9:case 10:case 13:case 32:B+=(0,i.Qb)(C);break;case 92:B+=(0,i.kq)((0,i.Ud)()-1,7);continue;case 47:switch((0,i.fj)()){case 42:case 47:(0,o.R3)((g=(0,i.q6)((0,i.lp)(),(0,i.Ud)()),(0,i.dH)(g,r,a,n.Ab,(0,o.Dp)((0,i.Tb)()),(0,o.tb)(g,2,-2),0)),h);break;default:B+="/"}break;case 123*w:p[m++]=(0,o.to)(B)*E;case 125*w:case 59:case 0:switch($){case 0:case 125:S=0;case 59+v:-1==E&&(B=(0,o.gx)(B,/\f/g,"")),x>0&&(0,o.to)(B)-y&&(0,o.R3)(x>32?s(B+";",c,a,y-1):s((0,o.gx)(B," ","")+";",c,a,y-2),h);break;case 59:B+=";";default:if((0,o.R3)(Z=l(B,r,a,m,v,u,p,k,A=[],O=[],y),f),123===$){if(0===v)e(B,r,Z,Z,A,f,y,p,O);else switch(99===b&&110===(0,o.uO)(B,3)?100:b){case 100:case 108:case 109:case 115:e(t,Z,Z,c&&(0,o.R3)(l(t,Z,Z,0,0,u,p,k,u,A=[],y),O),u,O,y,p,c?A:O);break;default:e(B,Z,Z,Z,[""],O,0,p,O)}}}m=v=x=0,w=E=1,k=B="",y=d;break;case 58:y=1+(0,o.to)(B),x=C;default:if(w<1){if(123==$)--w;else if(125==$&&0==w++&&125==(0,i.mp)())continue}switch(B+=(0,o.Dp)($),$*w){case 38:E=v>0?1:(B+="\f",-1);break;case 44:p[m++]=((0,o.to)(B)-1)*E,E=1;break;case 64:45===(0,i.fj)()&&(B+=(0,i.iF)((0,i.lp)())),b=(0,i.fj)(),v=y=(0,o.to)(k=B+=(0,i.QU)((0,i.Ud)())),$++;break;case 45:45===C&&2==(0,o.to)(B)&&(w=0)}}return f}("",null,null,null,[""],e=(0,i.un)(e),0,[0],e))}function l(e,t,r,a,l,s,c,u,f,d,p){for(var h=l-1,g=0===l?s:[""],m=(0,o.Ei)(g),v=0,y=0,b=0;v0?g[x]+" "+C:(0,o.gx)(C,/&\f/g,g[x])))&&(f[b++]=w);return(0,i.dH)(e,t,r,0===l?n.Fr:u,f,d,p)}function s(e,t,r,a){return(0,i.dH)(e,t,r,n.h5,(0,o.tb)(e,0,a),(0,o.tb)(e,a+1,-1),a)}},34523:function(e,t,r){"use strict";r.d(t,{P:function(){return a},q:function(){return i}});var n=r(57436),o=r(10036);function i(e,t){for(var r="",n=(0,o.Ei)(e),i=0;i0?(0,n.uO)(c,--l):0,i--,10===s&&(i=1,o--),s}function h(){return s=l2||y(s)>3?"":" "}function S(e,t){for(;--t&&h()&&!(s<48)&&!(s>102)&&(!(s>57)||!(s<65))&&(!(s>70)||!(s<97)););return v(e,l+(t<6&&32==g()&&32==h()))}function E(e,t){for(;h();)if(e+s===57)break;else if(e+s===84&&47===g())break;return"/*"+v(t,l-1)+"*"+(0,n.Dp)(47===e?e:h())}function $(e){for(;!y(g());)h();return v(e,l)}},10036:function(e,t,r){"use strict";r.d(t,{$e:function(){return m},Cw:function(){return u},Dp:function(){return o},EQ:function(){return s},Ei:function(){return h},R3:function(){return g},Wn:function(){return n},f0:function(){return i},fy:function(){return l},gx:function(){return c},tb:function(){return d},to:function(){return p},uO:function(){return f},vp:function(){return a}});var n=Math.abs,o=String.fromCharCode,i=Object.assign;function a(e,t){return 45^f(e,0)?(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3):0}function l(e){return e.trim()}function s(e,t){return(e=t.exec(e))?e[0]:e}function c(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function f(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function p(e){return e.length}function h(e){return e.length}function g(e,t){return t.push(e),e}function m(e,t){return e.map(t).join("")}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/780-e770982b619de0c1.js b/pilot/server/static/_next/static/chunks/877-adf13c5d30ef2124.js similarity index 83% rename from pilot/server/static/_next/static/chunks/780-e770982b619de0c1.js rename to pilot/server/static/_next/static/chunks/877-adf13c5d30ef2124.js index 6b39170cc..6c9168843 100644 --- a/pilot/server/static/_next/static/chunks/780-e770982b619de0c1.js +++ b/pilot/server/static/_next/static/chunks/877-adf13c5d30ef2124.js @@ -1,4 +1,4 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[780],{70333:function(e,t,r){"use strict";r.d(t,{iN:function(){return g},R_:function(){return f},ez:function(){return d}});var n=r(32675),o=r(79185),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,r=e.g,o=e.b,i=(0,n.py)(t,r,o);return{h:360*i.h,s:i.s,v:i.v}}function l(e){var t=e.r,r=e.g,o=e.b;return"#".concat((0,n.vq)(t,r,o,!1))}function s(e,t,r){var n;return(n=Math.round(e.h)>=60&&240>=Math.round(e.h)?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function c(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function u(e,t,r){var n;return(n=r?e.v+.05*t:e.v-.15*t)>1&&(n=1),Number(n.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(n),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));r.push(p)}r.push(l(n));for(var h=1;h<=4;h+=1){var g=a(n),m=l((0,o.uA)({h:s(g,h),s:c(g,h),v:u(g,h)}));r.push(m)}return"dark"===t.theme?i.map(function(e){var n,i,a,s=e.index,c=e.opacity;return l((n=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(r[s]),a=100*c/100,{r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b}))}):r}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}),p.red,p.volcano,p.gold,p.orange,p.yellow,p.lime,p.green,p.cyan;var g=p.blue;p.geekblue,p.purple,p.magenta,p.grey,p.grey},84596:function(e,t,r){"use strict";r.d(t,{E4:function(){return ew},jG:function(){return k},t2:function(){return N},fp:function(){return H},xy:function(){return eC}});var n,o=r(90151),i=r(88684),a=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},l=r(86006),s=r.t(l,2);r(55567),r(81027);var c=r(18050),u=r(49449),f=r(65877),d=function(){function e(t){(0,c.Z)(this,e),(0,f.Z)(this,"instanceId",void 0),(0,f.Z)(this,"cache",new Map),this.instanceId=t}return(0,u.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var r=e.join("%"),n=t(this.cache.get(r));null===n?this.cache.delete(r):this.cache.set(r,n)}}]),e}(),p="data-token-hash",h="data-css-hash",g="__cssinjs_instance__",m=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(h,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[g]=t[g]||e,t[g]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(h,"]"))).forEach(function(t){var r,o=t.getAttribute(h);n[o]?t[g]===e&&(null===(r=t.parentNode)||void 0===r||r.removeChild(t)):n[o]=!0})}return new d(e)}(),defaultCache:!0}),v=r(965),y=r(71693),b=r(52160),x=r(60456),C=function(){function e(){(0,c.Z)(this,e),(0,f.Z)(this,"cache",void 0),(0,f.Z)(this,"keys",void 0),(0,f.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,u.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,r;o=null===(t=o)||void 0===t?void 0:null===(r=t.map)||void 0===r?void 0:r.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var r=(0,x.Z)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),S+=1}return(0,u.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),A=new C;function k(e){var t=Array.isArray(e)?e:[e];return A.has(t)||A.set(t,new E(t)),A.get(t)}function O(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof E?t+=n.id:n&&"object"===(0,v.Z)(n)?t+=O(n):t+=n}),t}var $="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Z="_bAmBoO_",j=void 0,B=r(38358),T=(0,i.Z)({},s).useInsertionEffect,P=T?function(e,t,r){return T(function(){return e(),t()},r)}:function(e,t,r){l.useMemo(e,r),(0,B.Z)(function(){return t(!0)},r)},R=void 0!==(0,i.Z)({},s).useInsertionEffect?function(e){var t=[],r=!1;return l.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){r||t.push(e)}}:function(){return function(e){e()}};function M(e,t,r,n,i){var a=l.useContext(m).cache,s=[e].concat((0,o.Z)(t)),c=s.join("_"),u=R([c]),f=function(e){a.update(s,function(t){var n=(0,x.Z)(t||[],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i})};l.useMemo(function(){f()},[c]);var d=a.get(s)[1];return P(function(){null==i||i(d)},function(e){return f(function(t){var r=(0,x.Z)(t,2),n=r[0],o=r[1];return e&&0===n&&(null==i||i(d)),[n+1,o]}),function(){a.update(s,function(e){var t=(0,x.Z)(e||[],2),r=t[0],o=void 0===r?0:r,i=t[1];return 0==o-1?(u(function(){return null==n?void 0:n(i,!1)}),null):[o-1,i]})}},[c]),d}var _={},F=new Map,N=function(e,t,r,n){var o=r.getDerivativeToken(e),a=(0,i.Z)((0,i.Z)({},o),t);return n&&(a=n(a)),a};function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,l.useContext)(m).cache.instanceId,i=r.salt,s=void 0===i?"":i,c=r.override,u=void 0===c?_:c,f=r.formatToken,d=r.getComputedToken,h=l.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))},[t]),v=l.useMemo(function(){return O(h)},[h]),y=l.useMemo(function(){return O(u)},[u]);return M("token",[s,e.id,v,y],function(){var t=d?d(h,u,e):N(h,u,e,f),r=a("".concat(s,"_").concat(O(t)));t._tokenKey=r,F.set(r,(F.get(r)||0)+1);var n="".concat("css","-").concat(a(r));return t._hashId=n,[t,n]},function(e){var t,r,o;t=e[0]._tokenKey,F.set(t,(F.get(t)||0)-1),o=(r=Array.from(F.keys())).filter(function(e){return 0>=(F.get(e)||0)}),r.length-o.length>0&&o.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(p,'="').concat(e,'"]')).forEach(function(e){if(e[g]===n){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),F.delete(e)})})}var L=r(40431),D={animationIterationCount: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},I="comm",z="rule",U="decl",W=Math.abs,K=String.fromCharCode;function G(e,t,r){return e.replace(t,r)}function q(e,t){return 0|e.charCodeAt(t)}function V(e,t,r){return e.slice(t,r)}function X(e){return e.length}function Y(e,t){return t.push(e),e}function J(e,t){for(var r="",n=0;n0?p[y]+" "+b:G(b,/&\f/g,p[y])).trim())&&(s[v++]=x);return ea(e,t,r,0===o?z:l,s,c,u,f)}function ed(e,t,r,n,o){return ea(e,t,r,U,V(e,0,n),V(e,n+1,-1),n,o)}var ep="data-ant-cssinjs-cache-path",eh="_FILE_STYLE__",eg=!0,em=(0,y.Z)(),ev="_multi_value_";function ey(e){var t,r,n;return J((n=function e(t,r,n,o,i,a,l,s,c){for(var u,f=0,d=0,p=l,h=0,g=0,m=0,v=1,y=1,b=1,x=0,C="",w=i,S=a,E=o,A=C;y;)switch(m=x,x=el()){case 40:if(108!=m&&58==q(A,p-1)){-1!=(A+=G(eu(x),"&","&\f")).indexOf("&\f")&&(b=-1);break}case 34:case 39:case 91:A+=eu(x);break;case 9:case 10:case 13:case 32:A+=function(e){for(;eo=es();)if(eo<33)el();else break;return ec(e)>2||ec(eo)>3?"":" "}(m);break;case 92:A+=function(e,t){for(var r;--t&&el()&&!(eo<48)&&!(eo>102)&&(!(eo>57)||!(eo<65))&&(!(eo>70)||!(eo<97)););return r=en+(t<6&&32==es()&&32==el()),V(ei,e,r)}(en-1,7);continue;case 47:switch(es()){case 42:case 47:Y(ea(u=function(e,t){for(;el();)if(e+eo===57)break;else if(e+eo===84&&47===es())break;return"/*"+V(ei,t,en-1)+"*"+K(47===e?e:el())}(el(),en),r,n,I,K(eo),V(u,2,-2),0,c),c);break;default:A+="/"}break;case 123*v:s[f++]=X(A)*b;case 125*v:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+d:-1==b&&(A=G(A,/\f/g,"")),g>0&&X(A)-p&&Y(g>32?ed(A+";",o,n,p-1,c):ed(G(A," ","")+";",o,n,p-2,c),c);break;case 59:A+=";";default:if(Y(E=ef(A,r,n,f,d,i,s,C,w=[],S=[],p,a),a),123===x){if(0===d)e(A,r,E,E,w,a,p,s,S);else switch(99===h&&110===q(A,3)?100:h){case 100:case 108:case 109:case 115:e(t,E,E,o&&Y(ef(t,E,E,0,0,i,s,C,i,w=[],p,S),S),i,S,p,s,o?w:S);break;default:e(A,E,E,E,[""],S,0,s,S)}}}f=d=g=0,v=b=1,C=A="",p=l;break;case 58:p=1+X(A),g=m;default:if(v<1){if(123==x)--v;else if(125==x&&0==v++&&125==(eo=en>0?q(ei,--en):0,et--,10===eo&&(et=1,ee--),eo))continue}switch(A+=K(x),x*v){case 38:b=d>0?1:(A+="\f",-1);break;case 44:s[f++]=(X(A)-1)*b,b=1;break;case 64:45===es()&&(A+=eu(el())),h=es(),d=p=X(C=A+=function(e){for(;!ec(es());)el();return V(ei,e,en)}(en)),x++;break;case 45:45===m&&2==X(A)&&(v=0)}}return a}("",null,null,null,[""],(r=t=e,ee=et=1,er=X(ei=r),en=0,t=[]),0,[0],t),ei="",n),Q).replace(/\{%%%\:[^;];}/g,";")}var eb=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,l=n.injectHash,s=n.parentSelectors,c=r.hashId,u=r.layer,f=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d;r.linters;var h="",g={};function m(t){var n=t.getName(c);if(!g[n]){var o=e(t.style,r,{root:!1,parentSelectors:s}),i=(0,x.Z)(o,1)[0];g[n]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||a?t:{};if("string"==typeof n)h+="".concat(n,"\n");else if(n._keyframe)m(n);else{var u=p.reduce(function(e,t){var r;return(null==t?void 0:null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e},n);Object.keys(u).forEach(function(t){var n=u[t];if("object"!==(0,v.Z)(n)||!n||"animationName"===t&&n._keyframe||"object"===(0,v.Z)(n)&&n&&("_skip_check_"in n||ev in n)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;D[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),n=t.getName(c)),h+="".concat(r,":").concat(n,";")}var p,y=null!==(p=null==n?void 0:n.value)&&void 0!==p?p:n;"object"===(0,v.Z)(n)&&null!=n&&n[ev]&&Array.isArray(y)?y.forEach(function(e){d(t,e)}):d(t,y)}else{var b=!1,C=t.trim(),w=!1;(a||l)&&c?C.startsWith("@")?b=!0:C=function(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",a=(null===(t=n.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[n="".concat(a).concat(i).concat(n.slice(a.length))].concat((0,o.Z)(r.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===C||""===C)&&(C="",w=!0);var S=e(n,r,{root:w,injectHash:b,parentSelectors:[].concat((0,o.Z)(s),[C])}),E=(0,x.Z)(S,2),A=E[0],k=E[1];g=(0,i.Z)((0,i.Z)({},g),k),h+="".concat(C).concat(A)}})}}),a){if(u&&(void 0===j&&(j=function(e,t,r){if((0,y.Z)()){(0,b.hq)(e,$);var n,o,i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=r?r(i):null===(n=getComputedStyle(i).content)||void 0===n?void 0:n.includes(Z);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,b.jL)($),a}return!1}("@layer ".concat($," { .").concat($,' { content: "').concat(Z,'"!important; } }'),function(e){e.className=$})),j)){var C=u.split(","),w=C[C.length-1].trim();h="@layer ".concat(w," {").concat(h,"}"),C.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,g]};function ex(){return null}function eC(e,t){var r=e.token,i=e.path,s=e.hashId,c=e.layer,u=e.nonce,d=e.clientOnly,v=e.order,C=void 0===v?0:v,w=l.useContext(m),S=w.autoClear,E=(w.mock,w.defaultCache),A=w.hashPriority,k=w.container,O=w.ssrInline,$=w.transformers,Z=w.linters,j=w.cache,B=r._tokenKey,T=[B].concat((0,o.Z)(i)),P=M("style",T,function(){var e=T.join("|");if(!function(){if(!n&&(n={},(0,y.Z)())){var e,t=document.createElement("div");t.className=ep,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,x.Z)(t,2),o=r[0],i=r[1];n[o]=i});var o=document.querySelector("style[".concat(ep,"]"));o&&(eg=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),n[e]){var r=function(e){var t=n[e],r=null;if(t&&(0,y.Z)()){if(eg)r=eh;else{var o=document.querySelector("style[".concat(h,'="').concat(n[e],'"]'));o?r=o.innerHTML:delete n[e]}}return[r,t]}(e),o=(0,x.Z)(r,2),l=o[0],u=o[1];if(l)return[l,B,u,{},d,C]}var f=eb(t(),{hashId:s,hashPriority:A,layer:c,path:i.join("-"),transformers:$,linters:Z}),p=(0,x.Z)(f,2),g=p[0],m=p[1],v=ey(g),b=a("".concat(T.join("%")).concat(v));return[v,B,b,m,d,C]},function(e,t){var r=(0,x.Z)(e,3)[2];(t||S)&&em&&(0,b.jL)(r,{mark:h})},function(e){var t=(0,x.Z)(e,4),r=t[0],n=(t[1],t[2]),o=t[3];if(em&&r!==eh){var i={mark:h,prepend:"queue",attachTo:k,priority:C},a="function"==typeof u?u():u;a&&(i.csp={nonce:a});var l=(0,b.hq)(r,n,i);l[g]=j.instanceId,l.setAttribute(p,B),Object.keys(o).forEach(function(e){(0,b.hq)(ey(o[e]),"_effect-".concat(e),i)})}}),R=(0,x.Z)(P,3),_=R[0],F=R[1],N=R[2];return function(e){var t,r;return t=O&&!em&&E?l.createElement("style",(0,L.Z)({},(r={},(0,f.Z)(r,p,F),(0,f.Z)(r,h,N),r),{dangerouslySetInnerHTML:{__html:_}})):l.createElement(ex,null),l.createElement(l.Fragment,null,t,e)}}var ew=function(){function e(t,r){(0,c.Z)(this,e),(0,f.Z)(this,"name",void 0),(0,f.Z)(this,"style",void 0),(0,f.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,u.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eS(e){return e.notSplit=!0,e}eS(["borderTop","borderBottom"]),eS(["borderTop"]),eS(["borderBottom"]),eS(["borderLeft","borderRight"]),eS(["borderLeft"]),eS(["borderRight"])},1240:function(e,t,r){"use strict";r.d(t,{Z:function(){return j}});var n=r(40431),o=r(60456),i=r(65877),a=r(89301),l=r(86006),s=r(8683),c=r.n(s),u=r(70333),f=r(83346),d=r(88684),p=r(965),h=r(76135),g=r.n(h),m=r(52160),v=r(60618),y=r(5004);function b(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[g()(r)]=n),t},{})}function C(e){return(0,u.R_)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var S=function(e){var t=(0,l.useContext)(f.Z),r=t.csp,n=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),(0,l.useEffect)(function(){var t=e.current,n=(0,v.A)(t);(0,m.hq)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},E=["icon","className","onClick","style","primaryColor","secondaryColor"],A={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},k=function(e){var t,r,n=e.icon,o=e.className,i=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,f=(0,a.Z)(e,E),p=l.useRef(),h=A;if(c&&(h={primaryColor:c,secondaryColor:u||C(c)}),S(p),t=b(n),r="icon should be icon definiton, but got ".concat(n),(0,y.ZP)(t,"[@ant-design/icons] ".concat(r)),!b(n))return null;var g=n;return g&&"function"==typeof g.icon&&(g=(0,d.Z)((0,d.Z)({},g),{},{icon:g.icon(h.primaryColor,h.secondaryColor)})),function e(t,r,n){return n?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:r},x(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:r},x(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,d.Z)((0,d.Z)({className:o,onClick:i,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function O(e){var t=w(e),r=(0,o.Z)(t,2),n=r[0],i=r[1];return k.setTwoToneColors({primaryColor:n,secondaryColor:i})}k.displayName="IconReact",k.getTwoToneColors=function(){return(0,d.Z)({},A)},k.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;A.primaryColor=t,A.secondaryColor=r||C(t),A.calculated=!!r};var $=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O(u.iN.primary);var Z=l.forwardRef(function(e,t){var r,s=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,$),y=l.useContext(f.Z),b=y.prefixCls,x=void 0===b?"anticon":b,C=y.rootClassName,S=c()(C,x,(r={},(0,i.Z)(r,"".concat(x,"-").concat(u.name),!!u.name),(0,i.Z)(r,"".concat(x,"-spin"),!!d||"loading"===u.name),r),s),E=h;void 0===E&&g&&(E=-1);var A=w(m),O=(0,o.Z)(A,2),Z=O[0],j=O[1];return l.createElement("span",(0,n.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:E,onClick:g,className:S}),l.createElement(k,{icon:u,primaryColor:Z,secondaryColor:j,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});Z.displayName="AntdIcon",Z.getTwoToneColor=function(){var e=k.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Z.setTwoToneColor=O;var j=Z},83346:function(e,t,r){"use strict";var n=(0,r(86006).createContext)({});t.Z=n},34777:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},56222:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},31533:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},27977:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},49132:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},75710:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},32675:function(e,t,r){"use strict";r.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var n=r(25752);function o(e,t,r){return{r:255*(0,n.sh)(e,255),g:255*(0,n.sh)(t,255),b:255*(0,n.sh)(r,255)}}function i(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-r)/c+(t1&&(r-=1),r<1/6)?e+(t-e)*(6*r):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function l(e,t,r){if(e=(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100),0===t)i=r,l=r,o=r;else{var o,i,l,s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-r)/l+(t>16,g:(65280&e)>>8,b:255&e}}},29888:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},79185:function(e,t,r){"use strict";r.d(t,{uA:function(){return a}});var n=r(32675),o=r(29888),i=r(25752);function a(e){var t={r:0,g:0,b:0},r=1,a=null,l=null,s=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=u.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=u.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=u.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=u.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=u.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=u.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=u.hex8.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),a:(0,n.T6)(r[4]),format:t?"name":"hex8"}:(r=u.hex6.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),format:t?"name":"hex"}:(r=u.hex4.exec(e))?{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),a:(0,n.T6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=u.hex3.exec(e))&&{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,n.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,n.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,n.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,i.Yq)(r),{ok:c,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return!!u.CSS_UNIT.exec(String(e))}},57389:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var n=r(32675),o=r(29888),i=r(79185),a=r(25752),l=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=r.format)&&void 0!==o?o:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,n.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,n.py)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,n.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,n.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,n.vq)(this.r,this.g,this.b,!1),t=0,r=Object.entries(o.R);t=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(255*(t/100))))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(255*(t/100))))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(255*(t/100))))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(a)},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],l=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;aMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}r.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return n}})},89620:function(e,t,r){"use strict";r.d(t,{Z:function(){return U}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?g[C]+" "+w:l(w,/&\f/g,g[C])).trim())&&(f[x++]=S);return b(e,t,r,0===i?j:c,f,d,p)}function _(e,t,r,n){return b(e,t,r,B,u(e,0,n),u(e,n+1,-1),n)}var F=function(e,t,r){for(var n=0,o=0;n=o,o=w(),38===n&&12===o&&(t[r]=1),!S(o);)C();return u(y,e,m)},N=function(e,t){var r=-1,n=44;do switch(S(n)){case 0:38===n&&12===w()&&(t[r]=1),e[r]+=F(m-1,t,r);break;case 2:e[r]+=A(n);break;case 4:if(44===n){e[++r]=58===w()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}while(n=C());return e},H=function(e,t){var r;return r=N(E(e),t),y="",r},L=new WeakMap,D=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||L.get(r))&&!n){L.set(e,!0);for(var o=[],i=H(t,o),a=r.props,l=0,s=0;l-1&&!e.return)switch(e.type){case B:e.return=function e(t,r){switch(45^c(t,0)?(((r<<2^c(t,0))<<2^c(t,1))<<2^c(t,2))<<2^c(t,3):0){case 5103:return $+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return $+t+O+t+k+t+t;case 6828:case 4268:return $+t+k+t+t;case 6165:return $+t+k+"flex-"+t+t;case 5187:return $+t+l(t,/(\w+).+(:[^]+)/,$+"box-$1$2"+k+"flex-$1$2")+t;case 5443:return $+t+k+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return $+t+k+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return $+t+k+l(t,"shrink","negative")+t;case 5292:return $+t+k+l(t,"basis","preferred-size")+t;case 6060:return $+"box-"+l(t,"-grow","")+$+t+k+l(t,"grow","positive")+t;case 4554:return $+l(t,/([^-])(transform)/g,"$1"+$+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(t)-1-r>6)switch(c(t,r+1)){case 109:if(45!==c(t,r+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+O+(108==c(t,r+3)?"$3":"$2-$3"))+t;case 115:return~s(t,"stretch")?e(l(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==c(t,r+1))break;case 6444:switch(c(t,f(t)-3-(~s(t,"!important")&&10))){case 107:return l(t,":",":"+$)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(45===c(t,14)?"inline-":"")+"box$3$1"+$+"$2$3$1"+k+"$2box$3")+t}break;case 5936:switch(c(t,r+11)){case 114:return $+t+k+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return $+t+k+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return $+t+k+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return $+t+k+t+t}return t}(e.value,e.length);break;case T:return P([x(e,{value:l(e.value,"@","@"+$)})],n);case j:if(e.length)return e.props.map(function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return P([x(e,{props:[l(t,/:(read-\w+)/,":"+O+"$1")]})],n);case"::placeholder":return P([x(e,{props:[l(t,/:(plac\w+)/,":"+$+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":"+O+"$1")]}),x(e,{props:[l(t,/:(plac\w+)/,k+"input-$1")]})],n)}return""}).join("")}}],U=function(e){var t,r,o,a,g,x=e.key;if("css"===x){var k=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(k,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var O=e.stylisPlugins||z,$={},j=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r2||S(v)>3?"":" "}(R);break;case 92:W+=function(e,t){for(var r;--t&&C()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return r=m+(t<6&&32==w()&&32==C()),u(y,e,r)}(m-1,7);continue;case 47:switch(w()){case 42:case 47:d(b(O=function(e,t){for(;C();)if(e+v===57)break;else if(e+v===84&&47===w())break;return"/*"+u(y,t,m-1)+"*"+i(47===e?e:C())}(C(),m),r,n,Z,i(v),u(O,2,-2),0),k);break;default:W+="/"}break;case 123*F:E[$++]=f(W)*H;case 125*F:case 59:case 0:switch(L){case 0:case 125:N=0;case 59+j:-1==H&&(W=l(W,/\f/g,"")),P>0&&f(W)-B&&d(P>32?_(W+";",o,n,B-1):_(l(W," ","")+";",o,n,B-2),k);break;case 59:W+=";";default:if(d(U=M(W,r,n,$,j,a,E,D,I=[],z=[],B),g),123===L){if(0===j)e(W,r,U,U,I,g,B,E,z);else switch(99===T&&110===c(W,3)?100:T){case 100:case 108:case 109:case 115:e(t,U,U,o&&d(M(t,U,U,0,0,a,E,D,a,I=[],B),z),a,z,B,E,o?I:z);break;default:e(W,U,U,U,[""],z,0,E,z)}}}$=j=P=0,F=H=1,D=W="",B=x;break;case 58:B=1+f(W),P=R;default:if(F<1){if(123==L)--F;else if(125==L&&0==F++&&125==(v=m>0?c(y,--m):0,h--,10===v&&(h=1,p--),v))continue}switch(W+=i(L),L*F){case 38:H=j>0?1:(W+="\f",-1);break;case 44:E[$++]=(f(W)-1)*H,H=1;break;case 64:45===w()&&(W+=A(C())),T=w(),j=B=f(D=W+=function(e){for(;!S(w());)C();return u(y,e,m)}(m)),L++;break;case 45:45===R&&2==f(W)&&(F=0)}}return g}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",r),B)},F={key:x,sheet:new n({key:x,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:$,registered:{},insert:function(e,t,r,n){g=r,T(e?e+"{"+t.styles+"}":t.styles),n&&(F.inserted[t.name]=!0)}};return F.sheet.hydrate(j),F}},83596:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},17464:function(e,t,r){"use strict";r.d(t,{T:function(){return s},i:function(){return i},w:function(){return l}});var n=r(86006),o=r(89620);r(50558),r(85124);var i=!0,a=n.createContext("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null);a.Provider;var l=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(a),r)})};i||(l=function(e){return function(t){var r=(0,n.useContext)(a);return null===r?(r=(0,o.Z)({key:"css"}),n.createElement(a.Provider,{value:r},e(t,r))):e(t,r)}});var s=n.createContext({})},72120:function(e,t,r){"use strict";r.d(t,{F4:function(){return u},iv:function(){return c},xB:function(){return s}});var n=r(17464),o=r(86006),i=r(75941),a=r(85124),l=r(50558);r(89620),r(86979);var s=(0,n.w)(function(e,t){var r=e.styles,s=(0,l.O)([r],void 0,o.useContext(n.T));if(!n.i){for(var c,u=s.name,f=s.styles,d=s.next;void 0!==d;)u+=" "+d.name,f+=d.styles,d=d.next;var p=!0===t.compat,h=t.insert("",{name:u,styles:f},t.sheet,p);return p?null:o.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:h},c.nonce=t.sheet.nonce,c))}var g=o.useRef();return(0,a.j)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,o=document.querySelector('style[data-emotion="'+e+" "+s.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),g.current=[r,n],function(){r.flush()}},[t]),(0,a.j)(function(){var e=g.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==s.next&&(0,i.My)(t,s.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",s,r,!1)},[t,s.name]),null});function c(){for(var e=arguments.length,t=Array(e),r=0;r=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}},85124:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return l}});var n,o=r(86006),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},75941:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return i},fp:function(){return n},hC:function(){return o}});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},46240:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(40431);function o(e,t,r){return void 0===e||"string"==typeof e?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},50487:function(e,t,r){"use strict";function n(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}r.d(t,{Z:function(){return n}})},28426:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(89791),i=r(50487);function a(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function l(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:l,externalForwardedProps:s,className:c}=e;if(!t){let e=(0,o.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==r?void 0:r.className),t=(0,n.Z)({},null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),i=(0,n.Z)({},r,s,l);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.Z)((0,n.Z)({},s,l)),f=a(l),d=a(s),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==r?void 0:r.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,n.Z)({},null==p?void 0:p.style,null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,n.Z)({},p,r,d,f);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},61914:function(e,t,r){"use strict";function n(e,t,r){return"function"==typeof e?e(t,r):e}r.d(t,{Z:function(){return n}})},18587:function(e,t,r){"use strict";r.d(t,{d6:function(){return i},sI:function(){return a}});var n=r(13809),o=r(88539);let i=(e,t)=>(0,n.Z)(e,t,"Joy"),a=(e,t)=>(0,o.Z)(e,t,"Joy")},38230:function(e,t){"use strict";t.Z={grey:{50:"#F7F7F8",100:"#EBEBEF",200:"#D8D8DF",300:"#B9B9C6",400:"#8F8FA3",500:"#73738C",600:"#5A5A72",700:"#434356",800:"#25252D",900:"#131318"},blue:{50:"#F4FAFF",100:"#DDF1FF",200:"#ADDBFF",300:"#6FB6FF",400:"#3990FF",500:"#096BDE",600:"#054DA7",700:"#02367D",800:"#072859",900:"#00153C"},yellow:{50:"#FFF8C5",100:"#FAE17D",200:"#EAC54F",300:"#D4A72C",400:"#BF8700",500:"#9A6700",600:"#7D4E00",700:"#633C01",800:"#4D2D00",900:"#3B2300"},red:{50:"#FFF8F6",100:"#FFE9E8",200:"#FFC7C5",300:"#FF9192",400:"#FA5255",500:"#D3232F",600:"#A10E25",700:"#77061B",800:"#580013",900:"#39000D"},green:{50:"#F3FEF5",100:"#D7F5DD",200:"#77EC95",300:"#4CC76E",400:"#2CA24D",500:"#1A7D36",600:"#0F5D26",700:"#034318",800:"#002F0F",900:"#001D09"},purple:{50:"#FDF7FF",100:"#F4EAFF",200:"#E1CBFF",300:"#C69EFF",400:"#A374F9",500:"#814DDE",600:"#5F35AE",700:"#452382",800:"#301761",900:"#1D0A42"}}},47093:function(e,t,r){"use strict";r.d(t,{VT:function(){return s},do:function(){return c}});var n=r(86006),o=r(29720),i=r(98918),a=r(9268);let l=n.createContext(void 0),s=e=>{let t=n.useContext(l);return{getColor:(r,n)=>t&&e&&t.includes(e)?r||"context":r||n}};function c({children:e,variant:t}){var r;let n=(0,o.F)();return(0,a.jsx)(l.Provider,{value:t?(null!=(r=n.colorInversionConfig)?r:i.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},29720:function(e,t,r){"use strict";r.d(t,{F:function(){return c},Z:function(){return u}}),r(86006);var n=r(95887),o=r(14446),i=r(98918),a=r(41287),l=r(8622),s=r(9268);let c=()=>{let e=(0,n.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let r=i.Z;return t&&(r=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:r,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},98918:function(e,t,r){"use strict";var n=r(41287);let o=(0,n.Z)();t.Z=o},41287:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(40431),o=r(46750),i=r(95135),a=r(82190),l=r(23343),s=r(57716),c=r(93815);let u=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},f=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,a])=>{r&&(!r||r([...o,n]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,n],Array.isArray(a)?[...i,n]:i):t([...o,n],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let r=e[e.length-1];return r.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:d(e,t)}),u(i,e,`var(${n})`,l),u(a,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],g=["light"];var m=function(e,t){let{colorSchemes:r={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=r,m=(0,o.Z)(r,g);if(Object.entries(m||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=p(r,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:n}}),d){let{css:e,vars:r,varsWithDefaults:n}=p(d,t);u=(0,i.Z)(u,n),f.light={css:e,vars:r}}return{vars:u,generateCssVars:e=>e?{css:(0,n.Z)({},f[e].css),vars:f[e].vars}:{css:(0,n.Z)({},s),vars:l}}},v=r(51579),y=r(2272);let b=(0,n.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=r(38230);function C(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var w=r(18587),S=r(52428);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],A=["colorSchemes"],k=(e="joy")=>(0,a.Z)(e);function O(e){var t,r,a,u,f,d,p,h,g,y,O,$,Z,j,B,T,P,R,M,_,F,N,H,L,D,I,z,U,W,K,G,q,V,X,Y,J,Q,ee,et,er,en,eo,ei,ea,el,es,ec,eu,ef,ed,ep,eh,eg,em,ev,ey;let eb=e||{},{cssVarPrefix:ex="joy",breakpoints:eC,spacing:ew,components:eS,variants:eE,colorInversion:eA,shouldSkipGeneratingVar:ek=C}=eb,eO=(0,o.Z)(eb,E),e$=k(ex),eZ={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,info:x.Z.purple,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FFF",black:"#09090D"}},ej=e=>{var t;let r=e.split("-"),n=r[1],o=r[2];return e$(e,null==(t=eZ[n])?void 0:t[o])},eB=e=>({plainColor:ej(`palette-${e}-600`),plainHoverBg:ej(`palette-${e}-100`),plainActiveBg:ej(`palette-${e}-200`),plainDisabledColor:ej(`palette-${e}-200`),outlinedColor:ej(`palette-${e}-500`),outlinedBorder:ej(`palette-${e}-200`),outlinedHoverBg:ej(`palette-${e}-100`),outlinedHoverBorder:ej(`palette-${e}-300`),outlinedActiveBg:ej(`palette-${e}-200`),outlinedDisabledColor:ej(`palette-${e}-100`),outlinedDisabledBorder:ej(`palette-${e}-100`),softColor:ej(`palette-${e}-600`),softBg:ej(`palette-${e}-100`),softHoverBg:ej(`palette-${e}-200`),softActiveBg:ej(`palette-${e}-300`),softDisabledColor:ej(`palette-${e}-300`),softDisabledBg:ej(`palette-${e}-50`),solidColor:"#fff",solidBg:ej(`palette-${e}-500`),solidHoverBg:ej(`palette-${e}-600`),solidActiveBg:ej(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:ej(`palette-${e}-200`)}),eT=e=>({plainColor:ej(`palette-${e}-300`),plainHoverBg:ej(`palette-${e}-800`),plainActiveBg:ej(`palette-${e}-700`),plainDisabledColor:ej(`palette-${e}-800`),outlinedColor:ej(`palette-${e}-200`),outlinedBorder:ej(`palette-${e}-700`),outlinedHoverBg:ej(`palette-${e}-800`),outlinedHoverBorder:ej(`palette-${e}-600`),outlinedActiveBg:ej(`palette-${e}-900`),outlinedDisabledColor:ej(`palette-${e}-800`),outlinedDisabledBorder:ej(`palette-${e}-800`),softColor:ej(`palette-${e}-200`),softBg:ej(`palette-${e}-900`),softHoverBg:ej(`palette-${e}-800`),softActiveBg:ej(`palette-${e}-700`),softDisabledColor:ej(`palette-${e}-800`),softDisabledBg:ej(`palette-${e}-900`),solidColor:"#fff",solidBg:ej(`palette-${e}-600`),solidHoverBg:ej(`palette-${e}-700`),solidActiveBg:ej(`palette-${e}-800`),solidDisabledColor:ej(`palette-${e}-700`),solidDisabledBg:ej(`palette-${e}-900`)}),eP={palette:{mode:"light",primary:(0,n.Z)({},eZ.primary,eB("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:ej("palette-neutral-800"),plainHoverColor:ej("palette-neutral-900"),plainHoverBg:ej("palette-neutral-100"),plainActiveBg:ej("palette-neutral-200"),plainDisabledColor:ej("palette-neutral-300"),outlinedColor:ej("palette-neutral-800"),outlinedBorder:ej("palette-neutral-200"),outlinedHoverColor:ej("palette-neutral-900"),outlinedHoverBg:ej("palette-neutral-100"),outlinedHoverBorder:ej("palette-neutral-300"),outlinedActiveBg:ej("palette-neutral-200"),outlinedDisabledColor:ej("palette-neutral-300"),outlinedDisabledBorder:ej("palette-neutral-100"),softColor:ej("palette-neutral-800"),softBg:ej("palette-neutral-100"),softHoverColor:ej("palette-neutral-900"),softHoverBg:ej("palette-neutral-200"),softActiveBg:ej("palette-neutral-300"),softDisabledColor:ej("palette-neutral-300"),softDisabledBg:ej("palette-neutral-50"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-300"),solidDisabledBg:ej("palette-neutral-50")}),danger:(0,n.Z)({},eZ.danger,eB("danger")),info:(0,n.Z)({},eZ.info,eB("info")),success:(0,n.Z)({},eZ.success,eB("success")),warning:(0,n.Z)({},eZ.warning,eB("warning"),{solidColor:ej("palette-warning-800"),solidBg:ej("palette-warning-200"),solidHoverBg:ej("palette-warning-300"),solidActiveBg:ej("palette-warning-400"),solidDisabledColor:ej("palette-warning-200"),solidDisabledBg:ej("palette-warning-50"),softColor:ej("palette-warning-800"),softBg:ej("palette-warning-50"),softHoverBg:ej("palette-warning-100"),softActiveBg:ej("palette-warning-200"),softDisabledColor:ej("palette-warning-200"),softDisabledBg:ej("palette-warning-50"),outlinedColor:ej("palette-warning-800"),outlinedHoverBg:ej("palette-warning-50"),plainColor:ej("palette-warning-800"),plainHoverBg:ej("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-800"),secondary:ej("palette-neutral-600"),tertiary:ej("palette-neutral-500")},background:{body:ej("palette-common-white"),surface:ej("palette-common-white"),popup:ej("palette-common-white"),level1:ej("palette-neutral-50"),level2:ej("palette-neutral-100"),level3:ej("palette-neutral-200"),tooltip:ej("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.28)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},eR={palette:{mode:"dark",primary:(0,n.Z)({},eZ.primary,eT("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:ej("palette-neutral-200"),plainHoverColor:ej("palette-neutral-50"),plainHoverBg:ej("palette-neutral-800"),plainActiveBg:ej("palette-neutral-700"),plainDisabledColor:ej("palette-neutral-700"),outlinedColor:ej("palette-neutral-200"),outlinedBorder:ej("palette-neutral-800"),outlinedHoverColor:ej("palette-neutral-50"),outlinedHoverBg:ej("palette-neutral-800"),outlinedHoverBorder:ej("palette-neutral-700"),outlinedActiveBg:ej("palette-neutral-800"),outlinedDisabledColor:ej("palette-neutral-800"),outlinedDisabledBorder:ej("palette-neutral-800"),softColor:ej("palette-neutral-200"),softBg:ej("palette-neutral-800"),softHoverColor:ej("palette-neutral-50"),softHoverBg:ej("palette-neutral-700"),softActiveBg:ej("palette-neutral-600"),softDisabledColor:ej("palette-neutral-700"),softDisabledBg:ej("palette-neutral-900"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-700"),solidDisabledBg:ej("palette-neutral-900")}),danger:(0,n.Z)({},eZ.danger,eT("danger")),info:(0,n.Z)({},eZ.info,eT("info")),success:(0,n.Z)({},eZ.success,eT("success"),{solidColor:"#fff",solidBg:ej("palette-success-600"),solidHoverBg:ej("palette-success-700"),solidActiveBg:ej("palette-success-800")}),warning:(0,n.Z)({},eZ.warning,eT("warning"),{solidColor:ej("palette-common-black"),solidBg:ej("palette-warning-300"),solidHoverBg:ej("palette-warning-400"),solidActiveBg:ej("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-100"),secondary:ej("palette-neutral-300"),tertiary:ej("palette-neutral-400")},background:{body:ej("palette-neutral-900"),surface:ej("palette-common-black"),popup:ej("palette-neutral-900"),level1:ej("palette-neutral-800"),level2:ej("palette-neutral-700"),level3:ej("palette-neutral-600"),tooltip:ej("palette-neutral-600"),backdrop:`rgba(${e$("palette-neutral-darkChannel",(0,l.n8)(eZ.neutral[800]))} / 0.5)`},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.24)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},eM='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',e_=(0,n.Z)({body:`"Public Sans", ${e$(`fontFamily-fallback, ${eM}`)}`,display:`"Public Sans", ${e$(`fontFamily-fallback, ${eM}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:eM},eO.fontFamily),eF=(0,n.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eO.fontWeight),eN=(0,n.Z)({xs3:"0.5rem",xs2:"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem"},eO.fontSize),eH=(0,n.Z)({sm:1.25,md:1.5,lg:1.7},eO.lineHeight),eL=(0,n.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eO.letterSpacing),eD={colorSchemes:{light:eP,dark:eR},fontSize:eN,fontFamily:e_,fontWeight:eF,focus:{thickness:"2px",selector:`&.${(0,w.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${e$("focus-thickness",null!=(t=null==(r=eO.focus)?void 0:r.thickness)?t:"2px")})`,outline:`${e$("focus-thickness",null!=(a=null==(u=eO.focus)?void 0:u.thickness)?a:"2px")} solid ${e$("palette-focusVisible",eZ.primary[500])}`}},lineHeight:eH,letterSpacing:eL,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${e$("shadowRing",null!=(f=null==(d=eO.colorSchemes)||null==(d=d.light)?void 0:d.shadowRing)?f:eP.shadowRing)}, 0 1px 2px 0 rgba(${e$("shadowChannel",null!=(p=null==(h=eO.colorSchemes)||null==(h=h.light)?void 0:h.shadowChannel)?p:eP.shadowChannel)} / 0.12)`,sm:`${e$("shadowRing",null!=(g=null==(y=eO.colorSchemes)||null==(y=y.light)?void 0:y.shadowRing)?g:eP.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(O=null==($=eO.colorSchemes)||null==($=$.light)?void 0:$.shadowChannel)?O:eP.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${e$("shadowChannel",null!=(Z=null==(j=eO.colorSchemes)||null==(j=j.light)?void 0:j.shadowChannel)?Z:eP.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${e$("shadowChannel",null!=(B=null==(T=eO.colorSchemes)||null==(T=T.light)?void 0:T.shadowChannel)?B:eP.shadowChannel)} / 0.26)`,md:`${e$("shadowRing",null!=(P=null==(R=eO.colorSchemes)||null==(R=R.light)?void 0:R.shadowRing)?P:eP.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(M=null==(_=eO.colorSchemes)||null==(_=_.light)?void 0:_.shadowChannel)?M:eP.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${e$("shadowChannel",null!=(F=null==(N=eO.colorSchemes)||null==(N=N.light)?void 0:N.shadowChannel)?F:eP.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${e$("shadowChannel",null!=(H=null==(L=eO.colorSchemes)||null==(L=L.light)?void 0:L.shadowChannel)?H:eP.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${e$("shadowChannel",null!=(D=null==(I=eO.colorSchemes)||null==(I=I.light)?void 0:I.shadowChannel)?D:eP.shadowChannel)} / 0.29)`,lg:`${e$("shadowRing",null!=(z=null==(U=eO.colorSchemes)||null==(U=U.light)?void 0:U.shadowRing)?z:eP.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(W=null==(K=eO.colorSchemes)||null==(K=K.light)?void 0:K.shadowChannel)?W:eP.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(G=null==(q=eO.colorSchemes)||null==(q=q.light)?void 0:q.shadowChannel)?G:eP.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(V=null==(X=eO.colorSchemes)||null==(X=X.light)?void 0:X.shadowChannel)?V:eP.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(Y=null==(J=eO.colorSchemes)||null==(J=J.light)?void 0:J.shadowChannel)?Y:eP.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(Q=null==(ee=eO.colorSchemes)||null==(ee=ee.light)?void 0:ee.shadowChannel)?Q:eP.shadowChannel)} / 0.21)`,xl:`${e$("shadowRing",null!=(et=null==(er=eO.colorSchemes)||null==(er=er.light)?void 0:er.shadowRing)?et:eP.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(en=null==(eo=eO.colorSchemes)||null==(eo=eo.light)?void 0:eo.shadowChannel)?en:eP.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(ei=null==(ea=eO.colorSchemes)||null==(ea=ea.light)?void 0:ea.shadowChannel)?ei:eP.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(el=null==(es=eO.colorSchemes)||null==(es=es.light)?void 0:es.shadowChannel)?el:eP.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(ec=null==(eu=eO.colorSchemes)||null==(eu=eu.light)?void 0:eu.shadowChannel)?ec:eP.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(ef=null==(ed=eO.colorSchemes)||null==(ed=ed.light)?void 0:ed.shadowChannel)?ef:eP.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${e$("shadowChannel",null!=(ep=null==(eh=eO.colorSchemes)||null==(eh=eh.light)?void 0:eh.shadowChannel)?ep:eP.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${e$("shadowChannel",null!=(eg=null==(em=eO.colorSchemes)||null==(em=em.light)?void 0:em.shadowChannel)?eg:eP.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${e$("shadowChannel",null!=(ev=null==(ey=eO.colorSchemes)||null==(ey=ey.light)?void 0:ey.shadowChannel)?ev:eP.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-xl, ${eF.xl}`),fontSize:e$(`fontSize-xl7, ${eN.xl7}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eL.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},display2:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-xl, ${eF.xl}`),fontSize:e$(`fontSize-xl6, ${eN.xl6}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eL.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},h1:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-lg, ${eF.lg}`),fontSize:e$(`fontSize-xl5, ${eN.xl5}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eL.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},h2:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-lg, ${eF.lg}`),fontSize:e$(`fontSize-xl4, ${eN.xl4}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eL.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},h3:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-xl3, ${eN.xl3}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},h4:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-xl2, ${eN.xl2}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eP.palette.text.primary)},h5:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-xl, ${eN.xl}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eP.palette.text.primary)},h6:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-lg, ${eN.lg}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eP.palette.text.primary)},body1:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-md, ${eN.md}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eP.palette.text.primary)},body2:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-sm, ${eN.sm}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-secondary",eP.palette.text.secondary)},body3:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-xs, ${eN.xs}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-tertiary",eP.palette.text.tertiary)},body4:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-xs2, ${eN.xs2}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-tertiary",eP.palette.text.tertiary)},body5:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-xs3, ${eN.xs3}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-tertiary",eP.palette.text.tertiary)}}},eI=eO?(0,i.Z)(eD,eO):eD,{colorSchemes:ez}=eI,eU=(0,o.Z)(eI,A),eW=(0,n.Z)({colorSchemes:ez},eU,{breakpoints:(0,s.Z)(null!=eC?eC:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var r;let o=e.instanceFontSize;return(0,n.Z)({color:"var(--Icon-color)",margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(r=t.vars.palette[e.color])?void 0:r.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eS),cssVarPrefix:ex,getCssVar:e$,spacing:(0,c.Z)(ew),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(eW.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(r=>{let n={main:"500",light:"200",dark:"800"};"dark"===e&&(n.main=400),!t[r].mainChannel&&t[r][n.main]&&(t[r].mainChannel=(0,l.n8)(t[r][n.main])),!t[r].lightChannel&&t[r][n.light]&&(t[r].lightChannel=(0,l.n8)(t[r][n.light])),!t[r].darkChannel&&t[r][n.dark]&&(t[r].darkChannel=(0,l.n8)(t[r][n.dark]))})}(e,t.palette)});let{vars:eK,generateCssVars:eG}=m((0,n.Z)({colorSchemes:ez},eU),{prefix:ex,shouldSkipGeneratingVar:ek});eW.vars=eK,eW.generateCssVars=eG,eW.unstable_sxConfig=(0,n.Z)({},b,null==e?void 0:e.unstable_sxConfig),eW.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},eW.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eq={getCssVar:e$,palette:eW.colorSchemes.light.palette};return eW.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eq),plainHover:(0,S.Zm)("plainHover",eq),plainActive:(0,S.Zm)("plainActive",eq),plainDisabled:(0,S.Zm)("plainDisabled",eq),outlined:(0,S.Zm)("outlined",eq),outlinedHover:(0,S.Zm)("outlinedHover",eq),outlinedActive:(0,S.Zm)("outlinedActive",eq),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eq),soft:(0,S.Zm)("soft",eq),softHover:(0,S.Zm)("softHover",eq),softActive:(0,S.Zm)("softActive",eq),softDisabled:(0,S.Zm)("softDisabled",eq),solid:(0,S.Zm)("solid",eq),solidHover:(0,S.Zm)("solidHover",eq),solidActive:(0,S.Zm)("solidActive",eq),solidDisabled:(0,S.Zm)("solidDisabled",eq)},eE),eW.palette=(0,n.Z)({},eW.colorSchemes.light.palette,{colorScheme:"light"}),eW.shouldSkipGeneratingVar=ek,eW.colorInversion="function"==typeof eA?eA:(0,i.Z)({soft:(0,S.pP)(eW,!0),solid:(0,S.Lo)(eW,!0)},eA||{},{clone:!1}),eW}},8622:function(e,t){"use strict";t.Z="$$joy"},50645:function(e,t,r){"use strict";var n=r(9312),o=r(98918),i=r(8622);let a=(0,n.ZP)({defaultTheme:o.Z,themeId:i.Z});t.Z=a},88930:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(38295),i=r(98918),a=r(8622);function l({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},i.Z,{components:{}}),themeId:a.Z})}},52428:function(e,t,r){"use strict";r.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var n=r(40431),o=r(82190);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,r)=>{t.includes("Color")&&(e.color=r),t.includes("Bg")&&(e.backgroundColor=r),t.includes("Border")&&(e.borderColor=r)},l=(e,t,r)=>{let n={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=r?r(t):o;t.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),t.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),a(n,t,e)}}),n},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let r={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(r=(0,n.Z)({},r,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return r.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverColor:"var(--variant-solidHoverColor)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),r},u=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{var n;let o=t.split("-"),i=o[1],a=o[2];return r(t,null==(n=e.palette)||null==(n=n[i])?void 0:n[a])}:r;return Object.entries(e.palette).forEach(t=>{let[r,o]=t;i(o)&&(a[r]={"--Badge-ringColor":l(`palette-${r}-softBg`),[n("--shadowChannel")]:l(`palette-${r}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[n("--palette-focusVisible")]:l(`palette-${r}-300`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${r}-100`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.6)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${r}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${r}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${r}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${r}-100`),"--variant-softBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${r}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${r}-400`),"--variant-solidActiveBg":l(`palette-${r}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[n("--palette-focusVisible")]:l(`palette-${r}-500`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,[n("--palette-text-primary")]:l(`palette-${r}-700`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.68)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${r}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${r}-600`),"--variant-outlinedHoverBorder":l(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${r}-600`),"--variant-softBg":`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${r}-700`),"--variant-softHoverBg":l(`palette-${r}-200`),"--variant-softActiveBg":l(`palette-${r}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${r}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${r}-500`),"--variant-solidActiveBg":l(`palette-${r}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{let n=t.split("-"),o=n[1],i=n[2];return r(t,e.palette[o][i])}:r;return Object.entries(e.palette).forEach(e=>{let[t,r]=e;i(r)&&("warning"===t?a.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-700`),[n("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[n("--palette-background-popup")]:l(`palette-${t}-100`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${t}-900`),[n("--palette-text-secondary")]:l(`palette-${t}-700`),[n("--palette-text-tertiary")]:l(`palette-${t}-500`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,"--variant-plainColor":l(`palette-${t}-700`),"--variant-plainHoverColor":l(`palette-${t}-800`),"--variant-plainHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-700`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.5)`,"--variant-outlinedHoverColor":l(`palette-${t}-800`),"--variant-outlinedHoverBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.6)`,"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${t}-800`),"--variant-softHoverColor":l(`palette-${t}-900`),"--variant-softBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.28)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${t}-600`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${t}-700`),"--variant-solidActiveBg":l(`palette-${t}-800`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`}:a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-200`),[n("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[n("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[n("--palette-background-popup")]:l(`palette-${t}-700`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l("palette-common-white"),[n("--palette-text-secondary")]:l(`palette-${t}-100`),[n("--palette-text-tertiary")]:l(`palette-${t}-200`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverColor":l(`palette-${t}-700`),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-200`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},326:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(40431),o=r(46750),i=r(99179),a=r(61914),l=r(28426),s=r(46240),c=r(47093);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:r,elementType:h,ownerState:g,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:C={[e]:void 0},slotProps:w={[e]:void 0}}=m,S=(0,o.Z)(m,f),E=C[e]||h,A=(0,a.Z)(w[e],g),k=(0,l.Z)((0,n.Z)({className:r},b,{externalForwardedProps:"root"===e?S:void 0,externalSlotProps:A})),{props:{component:O},internalRef:$}=k,Z=(0,o.Z)(k.props,d),j=(0,i.Z)($,null==A?void 0:A.ref,t.ref),B=v?v(Z):{},{disableColorInversion:T=!1}=B,P=(0,o.Z)(B,p),R=(0,n.Z)({},g,P),{getColor:M}=(0,c.VT)(R.variant);if("root"===e){var _;R.color=null!=(_=Z.color)?_:g.color}else T||(R.color=M(Z.color,R.color));let F="root"===e?O||x:O,N=(0,s.Z)(E,(0,n.Z)({},"root"===e&&!x&&!C[e]&&y,"root"!==e&&!C[e]&&y,Z,F&&{as:F},{ref:j}),R);return Object.keys(P).forEach(e=>{delete N[e]}),[E,N]}},44169:function(e,t,r){"use strict";var n=r(86006);let o=n.createContext(null);t.Z=o},63678:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(86006),o=r(44169);function i(){let e=n.useContext(o.Z);return e}},4323:function(e,t,r){"use strict";r.d(t,{ZP:function(){return v},Co:function(){return y}});var n=r(40431),o=r(86006),i=r(83596),a=/^((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|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)-.*))$/,l=(0,i.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=r(17464),c=r(75941),u=r(50558),f=r(85124),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,f.L)(function(){return(0,c.My)(t,r,n)}),null},m=(function e(t,r){var i,a,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var d=h(t,r,l),m=d||p(f),v=!m("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,C=1;C=60&&240>=Math.round(e.h)?r?Math.round(e.h)-2*t:Math.round(e.h)+2*t:r?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?n+=360:n>=360&&(n-=360),n}function c(e,t,r){var n;return 0===e.h&&0===e.s?e.s:((n=r?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(n=1),r&&5===t&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)))}function u(e,t,r){var n;return(n=r?e.v+.05*t:e.v-.15*t)>1&&(n=1),Number(n.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],n=(0,o.uA)(e),f=5;f>0;f-=1){var d=a(n),p=l((0,o.uA)({h:s(d,f,!0),s:c(d,f,!0),v:u(d,f,!0)}));r.push(p)}r.push(l(n));for(var h=1;h<=4;h+=1){var g=a(n),m=l((0,o.uA)({h:s(g,h),s:c(g,h),v:u(g,h)}));r.push(m)}return"dark"===t.theme?i.map(function(e){var n,i,a,s=e.index,c=e.opacity;return l((n=(0,o.uA)(t.backgroundColor||"#141414"),i=(0,o.uA)(r[s]),a=100*c/100,{r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b}))}):r}var d={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},p={},h={};Object.keys(d).forEach(function(e){p[e]=f(d[e]),p[e].primary=p[e][5],h[e]=f(d[e],{theme:"dark",backgroundColor:"#141414"}),h[e].primary=h[e][5]}),p.red,p.volcano,p.gold,p.orange,p.yellow,p.lime,p.green,p.cyan;var g=p.blue;p.geekblue,p.purple,p.magenta,p.grey,p.grey},84596:function(e,t,r){"use strict";r.d(t,{E4:function(){return ew},jG:function(){return k},t2:function(){return N},fp:function(){return H},xy:function(){return eC}});var n,o=r(90151),i=r(88684),a=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)},l=r(86006),s=r.t(l,2);r(55567),r(81027);var c=r(18050),u=r(49449),f=r(65877),d=function(){function e(t){(0,c.Z)(this,e),(0,f.Z)(this,"instanceId",void 0),(0,f.Z)(this,"cache",new Map),this.instanceId=t}return(0,u.Z)(e,[{key:"get",value:function(e){return this.cache.get(e.join("%"))||null}},{key:"update",value:function(e,t){var r=e.join("%"),n=t(this.cache.get(r));null===n?this.cache.delete(r):this.cache.set(r,n)}}]),e}(),p="data-token-hash",h="data-css-hash",g="__cssinjs_instance__",m=l.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(h,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(t){t[g]=t[g]||e,t[g]===e&&document.head.insertBefore(t,r)});var n={};Array.from(document.querySelectorAll("style[".concat(h,"]"))).forEach(function(t){var r,o=t.getAttribute(h);n[o]?t[g]===e&&(null===(r=t.parentNode)||void 0===r||r.removeChild(t)):n[o]=!0})}return new d(e)}(),defaultCache:!0}),v=r(965),y=r(71693),b=r(52160),x=r(60456),C=function(){function e(){(0,c.Z)(this,e),(0,f.Z)(this,"cache",void 0),(0,f.Z)(this,"keys",void 0),(0,f.Z)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,u.Z)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t,r;o=null===(t=o)||void 0===t?void 0:null===(r=t.map)||void 0===r?void 0:r.get(e)}else o=void 0}),null!==(t=o)&&void 0!==t&&t.value&&n&&(o.value[1]=this.cacheCallTimes++),null===(r=o)||void 0===r?void 0:r.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,r){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var r=(0,x.Z)(e,2)[1];return n.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),S+=1}return(0,u.Z)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,r){return r(e,t)},void 0)}}]),e}(),A=new C;function k(e){var t=Array.isArray(e)?e:[e];return A.has(t)||A.set(t,new E(t)),A.get(t)}function O(e){var t="";return Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof E?t+=n.id:n&&"object"===(0,v.Z)(n)?t+=O(n):t+=n}),t}var $="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Z="_bAmBoO_",j=void 0,B=r(38358),T=(0,i.Z)({},s).useInsertionEffect,P=T?function(e,t,r){return T(function(){return e(),t()},r)}:function(e,t,r){l.useMemo(e,r),(0,B.Z)(function(){return t(!0)},r)},R=void 0!==(0,i.Z)({},s).useInsertionEffect?function(e){var t=[],r=!1;return l.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){r||t.push(e)}}:function(){return function(e){e()}};function M(e,t,r,n,i){var a=l.useContext(m).cache,s=[e].concat((0,o.Z)(t)),c=s.join("_"),u=R([c]),f=function(e){a.update(s,function(t){var n=(0,x.Z)(t||[],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i})};l.useMemo(function(){f()},[c]);var d=a.get(s)[1];return P(function(){null==i||i(d)},function(e){return f(function(t){var r=(0,x.Z)(t,2),n=r[0],o=r[1];return e&&0===n&&(null==i||i(d)),[n+1,o]}),function(){a.update(s,function(e){var t=(0,x.Z)(e||[],2),r=t[0],o=void 0===r?0:r,i=t[1];return 0==o-1?(u(function(){return null==n?void 0:n(i,!1)}),null):[o-1,i]})}},[c]),d}var _={},F=new Map,N=function(e,t,r,n){var o=r.getDerivativeToken(e),a=(0,i.Z)((0,i.Z)({},o),t);return n&&(a=n(a)),a};function H(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,l.useContext)(m).cache.instanceId,i=r.salt,s=void 0===i?"":i,c=r.override,u=void 0===c?_:c,f=r.formatToken,d=r.getComputedToken,h=l.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,o.Z)(t)))},[t]),v=l.useMemo(function(){return O(h)},[h]),y=l.useMemo(function(){return O(u)},[u]);return M("token",[s,e.id,v,y],function(){var t=d?d(h,u,e):N(h,u,e,f),r=a("".concat(s,"_").concat(O(t)));t._tokenKey=r,F.set(r,(F.get(r)||0)+1);var n="".concat("css","-").concat(a(r));return t._hashId=n,[t,n]},function(e){var t,r,o;t=e[0]._tokenKey,F.set(t,(F.get(t)||0)-1),o=(r=Array.from(F.keys())).filter(function(e){return 0>=(F.get(e)||0)}),r.length-o.length>0&&o.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(p,'="').concat(e,'"]')).forEach(function(e){if(e[g]===n){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}}),F.delete(e)})})}var L=r(40431),D={animationIterationCount: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},I="comm",z="rule",U="decl",W=Math.abs,K=String.fromCharCode;function G(e,t,r){return e.replace(t,r)}function q(e,t){return 0|e.charCodeAt(t)}function V(e,t,r){return e.slice(t,r)}function X(e){return e.length}function Y(e,t){return t.push(e),e}function J(e,t){for(var r="",n=0;n0?p[y]+" "+b:G(b,/&\f/g,p[y])).trim())&&(s[v++]=x);return ea(e,t,r,0===o?z:l,s,c,u,f)}function ed(e,t,r,n,o){return ea(e,t,r,U,V(e,0,n),V(e,n+1,-1),n,o)}var ep="data-ant-cssinjs-cache-path",eh="_FILE_STYLE__",eg=!0,em=(0,y.Z)(),ev="_multi_value_";function ey(e){var t,r,n;return J((n=function e(t,r,n,o,i,a,l,s,c){for(var u,f=0,d=0,p=l,h=0,g=0,m=0,v=1,y=1,b=1,x=0,C="",w=i,S=a,E=o,A=C;y;)switch(m=x,x=el()){case 40:if(108!=m&&58==q(A,p-1)){-1!=(A+=G(eu(x),"&","&\f")).indexOf("&\f")&&(b=-1);break}case 34:case 39:case 91:A+=eu(x);break;case 9:case 10:case 13:case 32:A+=function(e){for(;eo=es();)if(eo<33)el();else break;return ec(e)>2||ec(eo)>3?"":" "}(m);break;case 92:A+=function(e,t){for(var r;--t&&el()&&!(eo<48)&&!(eo>102)&&(!(eo>57)||!(eo<65))&&(!(eo>70)||!(eo<97)););return r=en+(t<6&&32==es()&&32==el()),V(ei,e,r)}(en-1,7);continue;case 47:switch(es()){case 42:case 47:Y(ea(u=function(e,t){for(;el();)if(e+eo===57)break;else if(e+eo===84&&47===es())break;return"/*"+V(ei,t,en-1)+"*"+K(47===e?e:el())}(el(),en),r,n,I,K(eo),V(u,2,-2),0,c),c);break;default:A+="/"}break;case 123*v:s[f++]=X(A)*b;case 125*v:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+d:-1==b&&(A=G(A,/\f/g,"")),g>0&&X(A)-p&&Y(g>32?ed(A+";",o,n,p-1,c):ed(G(A," ","")+";",o,n,p-2,c),c);break;case 59:A+=";";default:if(Y(E=ef(A,r,n,f,d,i,s,C,w=[],S=[],p,a),a),123===x){if(0===d)e(A,r,E,E,w,a,p,s,S);else switch(99===h&&110===q(A,3)?100:h){case 100:case 108:case 109:case 115:e(t,E,E,o&&Y(ef(t,E,E,0,0,i,s,C,i,w=[],p,S),S),i,S,p,s,o?w:S);break;default:e(A,E,E,E,[""],S,0,s,S)}}}f=d=g=0,v=b=1,C=A="",p=l;break;case 58:p=1+X(A),g=m;default:if(v<1){if(123==x)--v;else if(125==x&&0==v++&&125==(eo=en>0?q(ei,--en):0,et--,10===eo&&(et=1,ee--),eo))continue}switch(A+=K(x),x*v){case 38:b=d>0?1:(A+="\f",-1);break;case 44:s[f++]=(X(A)-1)*b,b=1;break;case 64:45===es()&&(A+=eu(el())),h=es(),d=p=X(C=A+=function(e){for(;!ec(es());)el();return V(ei,e,en)}(en)),x++;break;case 45:45===m&&2==X(A)&&(v=0)}}return a}("",null,null,null,[""],(r=t=e,ee=et=1,er=X(ei=r),en=0,t=[]),0,[0],t),ei="",n),Q).replace(/\{%%%\:[^;];}/g,";")}var eb=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,l=n.injectHash,s=n.parentSelectors,c=r.hashId,u=r.layer,f=(r.path,r.hashPriority),d=r.transformers,p=void 0===d?[]:d;r.linters;var h="",g={};function m(t){var n=t.getName(c);if(!g[n]){var o=e(t.style,r,{root:!1,parentSelectors:s}),i=(0,x.Z)(o,1)[0];g[n]="@keyframes ".concat(t.getName(c)).concat(i)}}if((function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,r):t&&r.push(t)}),r})(Array.isArray(t)?t:[t]).forEach(function(t){var n="string"!=typeof t||a?t:{};if("string"==typeof n)h+="".concat(n,"\n");else if(n._keyframe)m(n);else{var u=p.reduce(function(e,t){var r;return(null==t?void 0:null===(r=t.visit)||void 0===r?void 0:r.call(t,e))||e},n);Object.keys(u).forEach(function(t){var n=u[t];if("object"!==(0,v.Z)(n)||!n||"animationName"===t&&n._keyframe||"object"===(0,v.Z)(n)&&n&&("_skip_check_"in n||ev in n)){function d(e,t){var r=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),n=t;D[e]||"number"!=typeof n||0===n||(n="".concat(n,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),n=t.getName(c)),h+="".concat(r,":").concat(n,";")}var p,y=null!==(p=null==n?void 0:n.value)&&void 0!==p?p:n;"object"===(0,v.Z)(n)&&null!=n&&n[ev]&&Array.isArray(y)?y.forEach(function(e){d(t,e)}):d(t,y)}else{var b=!1,C=t.trim(),w=!1;(a||l)&&c?C.startsWith("@")?b=!0:C=function(e,t,r){if(!t)return e;var n=".".concat(t),i="low"===r?":where(".concat(n,")"):n;return e.split(",").map(function(e){var t,r=e.trim().split(/\s+/),n=r[0]||"",a=(null===(t=n.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[n="".concat(a).concat(i).concat(n.slice(a.length))].concat((0,o.Z)(r.slice(1))).join(" ")}).join(",")}(t,c,f):a&&!c&&("&"===C||""===C)&&(C="",w=!0);var S=e(n,r,{root:w,injectHash:b,parentSelectors:[].concat((0,o.Z)(s),[C])}),E=(0,x.Z)(S,2),A=E[0],k=E[1];g=(0,i.Z)((0,i.Z)({},g),k),h+="".concat(C).concat(A)}})}}),a){if(u&&(void 0===j&&(j=function(e,t,r){if((0,y.Z)()){(0,b.hq)(e,$);var n,o,i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",null==t||t(i),document.body.appendChild(i);var a=r?r(i):null===(n=getComputedStyle(i).content)||void 0===n?void 0:n.includes(Z);return null===(o=i.parentNode)||void 0===o||o.removeChild(i),(0,b.jL)($),a}return!1}("@layer ".concat($," { .").concat($,' { content: "').concat(Z,'"!important; } }'),function(e){e.className=$})),j)){var C=u.split(","),w=C[C.length-1].trim();h="@layer ".concat(w," {").concat(h,"}"),C.length>1&&(h="@layer ".concat(u,"{%%%:%}").concat(h))}}else h="{".concat(h,"}");return[h,g]};function ex(){return null}function eC(e,t){var r=e.token,i=e.path,s=e.hashId,c=e.layer,u=e.nonce,d=e.clientOnly,v=e.order,C=void 0===v?0:v,w=l.useContext(m),S=w.autoClear,E=(w.mock,w.defaultCache),A=w.hashPriority,k=w.container,O=w.ssrInline,$=w.transformers,Z=w.linters,j=w.cache,B=r._tokenKey,T=[B].concat((0,o.Z)(i)),P=M("style",T,function(){var e=T.join("|");if(!function(){if(!n&&(n={},(0,y.Z)())){var e,t=document.createElement("div");t.className=ep,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var r=getComputedStyle(t).content||"";(r=r.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),r=(0,x.Z)(t,2),o=r[0],i=r[1];n[o]=i});var o=document.querySelector("style[".concat(ep,"]"));o&&(eg=!1,null===(e=o.parentNode)||void 0===e||e.removeChild(o)),document.body.removeChild(t)}}(),n[e]){var r=function(e){var t=n[e],r=null;if(t&&(0,y.Z)()){if(eg)r=eh;else{var o=document.querySelector("style[".concat(h,'="').concat(n[e],'"]'));o?r=o.innerHTML:delete n[e]}}return[r,t]}(e),o=(0,x.Z)(r,2),l=o[0],u=o[1];if(l)return[l,B,u,{},d,C]}var f=eb(t(),{hashId:s,hashPriority:A,layer:c,path:i.join("-"),transformers:$,linters:Z}),p=(0,x.Z)(f,2),g=p[0],m=p[1],v=ey(g),b=a("".concat(T.join("%")).concat(v));return[v,B,b,m,d,C]},function(e,t){var r=(0,x.Z)(e,3)[2];(t||S)&&em&&(0,b.jL)(r,{mark:h})},function(e){var t=(0,x.Z)(e,4),r=t[0],n=(t[1],t[2]),o=t[3];if(em&&r!==eh){var i={mark:h,prepend:"queue",attachTo:k,priority:C},a="function"==typeof u?u():u;a&&(i.csp={nonce:a});var l=(0,b.hq)(r,n,i);l[g]=j.instanceId,l.setAttribute(p,B),Object.keys(o).forEach(function(e){(0,b.hq)(ey(o[e]),"_effect-".concat(e),i)})}}),R=(0,x.Z)(P,3),_=R[0],F=R[1],N=R[2];return function(e){var t,r;return t=O&&!em&&E?l.createElement("style",(0,L.Z)({},(r={},(0,f.Z)(r,p,F),(0,f.Z)(r,h,N),r),{dangerouslySetInnerHTML:{__html:_}})):l.createElement(ex,null),l.createElement(l.Fragment,null,t,e)}}var ew=function(){function e(t,r){(0,c.Z)(this,e),(0,f.Z)(this,"name",void 0),(0,f.Z)(this,"style",void 0),(0,f.Z)(this,"_keyframe",!0),this.name=t,this.style=r}return(0,u.Z)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function eS(e){return e.notSplit=!0,e}eS(["borderTop","borderBottom"]),eS(["borderTop"]),eS(["borderBottom"]),eS(["borderLeft","borderRight"]),eS(["borderLeft"]),eS(["borderRight"])},1240:function(e,t,r){"use strict";r.d(t,{Z:function(){return j}});var n=r(40431),o=r(60456),i=r(65877),a=r(89301),l=r(86006),s=r(8683),c=r.n(s),u=r(70333),f=r(83346),d=r(88684),p=r(965),h=r(76135),g=r.n(h),m=r(52160),v=r(60618),y=r(5004);function b(e){return"object"===(0,p.Z)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.Z)(e.icon)||"function"==typeof e.icon)}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return"class"===r?(t.className=n,delete t.class):(delete t[r],t[g()(r)]=n),t},{})}function C(e){return(0,u.R_)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var S=function(e){var t=(0,l.useContext)(f.Z),r=t.csp,n=t.prefixCls,o="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),(0,l.useEffect)(function(){var t=e.current,n=(0,v.A)(t);(0,m.hq)(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})},[])},E=["icon","className","onClick","style","primaryColor","secondaryColor"],A={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},k=function(e){var t,r,n=e.icon,o=e.className,i=e.onClick,s=e.style,c=e.primaryColor,u=e.secondaryColor,f=(0,a.Z)(e,E),p=l.useRef(),h=A;if(c&&(h={primaryColor:c,secondaryColor:u||C(c)}),S(p),t=b(n),r="icon should be icon definiton, but got ".concat(n),(0,y.ZP)(t,"[@ant-design/icons] ".concat(r)),!b(n))return null;var g=n;return g&&"function"==typeof g.icon&&(g=(0,d.Z)((0,d.Z)({},g),{},{icon:g.icon(h.primaryColor,h.secondaryColor)})),function e(t,r,n){return n?l.createElement(t.tag,(0,d.Z)((0,d.Z)({key:r},x(t.attrs)),n),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))})):l.createElement(t.tag,(0,d.Z)({key:r},x(t.attrs)),(t.children||[]).map(function(n,o){return e(n,"".concat(r,"-").concat(t.tag,"-").concat(o))}))}(g.icon,"svg-".concat(g.name),(0,d.Z)((0,d.Z)({className:o,onClick:i,style:s,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:p}))};function O(e){var t=w(e),r=(0,o.Z)(t,2),n=r[0],i=r[1];return k.setTwoToneColors({primaryColor:n,secondaryColor:i})}k.displayName="IconReact",k.getTwoToneColors=function(){return(0,d.Z)({},A)},k.setTwoToneColors=function(e){var t=e.primaryColor,r=e.secondaryColor;A.primaryColor=t,A.secondaryColor=r||C(t),A.calculated=!!r};var $=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O(u.iN.primary);var Z=l.forwardRef(function(e,t){var r,s=e.className,u=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,g=e.onClick,m=e.twoToneColor,v=(0,a.Z)(e,$),y=l.useContext(f.Z),b=y.prefixCls,x=void 0===b?"anticon":b,C=y.rootClassName,S=c()(C,x,(r={},(0,i.Z)(r,"".concat(x,"-").concat(u.name),!!u.name),(0,i.Z)(r,"".concat(x,"-spin"),!!d||"loading"===u.name),r),s),E=h;void 0===E&&g&&(E=-1);var A=w(m),O=(0,o.Z)(A,2),Z=O[0],j=O[1];return l.createElement("span",(0,n.Z)({role:"img","aria-label":u.name},v,{ref:t,tabIndex:E,onClick:g,className:S}),l.createElement(k,{icon:u,primaryColor:Z,secondaryColor:j,style:p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0}))});Z.displayName="AntdIcon",Z.getTwoToneColor=function(){var e=k.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Z.setTwoToneColor=O;var j=Z},83346:function(e,t,r){"use strict";var n=(0,r(86006).createContext)({});t.Z=n},34777:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},56222:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},31533:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},27977:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},49132:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},75710:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(86006),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=r(1240),l=o.forwardRef(function(e,t){return o.createElement(a.Z,(0,n.Z)({},e,{ref:t,icon:i}))})},32675:function(e,t,r){"use strict";r.d(t,{T6:function(){return d},VD:function(){return p},WE:function(){return c},Yt:function(){return h},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return l},vq:function(){return u}});var n=r(25752);function o(e,t,r){return{r:255*(0,n.sh)(e,255),g:255*(0,n.sh)(t,255),b:255*(0,n.sh)(r,255)}}function i(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=0,s=(o+i)/2;if(o===i)l=0,a=0;else{var c=o-i;switch(l=s>.5?c/(2-o-i):c/(o+i),o){case e:a=(t-r)/c+(t1&&(r-=1),r<1/6)?e+(t-e)*(6*r):r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function l(e,t,r){if(e=(0,n.sh)(e,360),t=(0,n.sh)(t,100),r=(0,n.sh)(r,100),0===t)i=r,l=r,o=r;else{var o,i,l,s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;o=a(c,s,e+1/3),i=a(c,s,e),l=a(c,s,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function s(e,t,r){var o=Math.max(e=(0,n.sh)(e,255),t=(0,n.sh)(t,255),r=(0,n.sh)(r,255)),i=Math.min(e,t,r),a=0,l=o-i;if(o===i)a=0;else{switch(o){case e:a=(t-r)/l+(t>16,g:(65280&e)>>8,b:255&e}}},29888:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var n={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},79185:function(e,t,r){"use strict";r.d(t,{uA:function(){return a}});var n=r(32675),o=r(29888),i=r(25752);function a(e){var t={r:0,g:0,b:0},r=1,a=null,l=null,s=null,c=!1,d=!1;return"string"==typeof e&&(e=function(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var r=u.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=u.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=u.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=u.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=u.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=u.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=u.hex8.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),a:(0,n.T6)(r[4]),format:t?"name":"hex8"}:(r=u.hex6.exec(e))?{r:(0,n.VD)(r[1]),g:(0,n.VD)(r[2]),b:(0,n.VD)(r[3]),format:t?"name":"hex"}:(r=u.hex4.exec(e))?{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),a:(0,n.T6)(r[4]+r[4]),format:t?"name":"hex8"}:!!(r=u.hex3.exec(e))&&{r:(0,n.VD)(r[1]+r[1]),g:(0,n.VD)(r[2]+r[2]),b:(0,n.VD)(r[3]+r[3]),format:t?"name":"hex"}}(e)),"object"==typeof e&&(f(e.r)&&f(e.g)&&f(e.b)?(t=(0,n.rW)(e.r,e.g,e.b),c=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):f(e.h)&&f(e.s)&&f(e.v)?(a=(0,i.JX)(e.s),l=(0,i.JX)(e.v),t=(0,n.WE)(e.h,a,l),c=!0,d="hsv"):f(e.h)&&f(e.s)&&f(e.l)&&(a=(0,i.JX)(e.s),s=(0,i.JX)(e.l),t=(0,n.ve)(e.h,a,s),c=!0,d="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=(0,i.Yq)(r),{ok:c,format:e.format||d,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:RegExp("rgb"+s),rgba:RegExp("rgba"+c),hsl:RegExp("hsl"+s),hsla:RegExp("hsla"+c),hsv:RegExp("hsv"+s),hsva:RegExp("hsva"+c),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){return!!u.CSS_UNIT.exec(String(e))}},57389:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var n=r(32675),o=r(29888),i=r(79185),a=r(25752),l=function(){function e(t,r){if(void 0===t&&(t=""),void 0===r&&(r={}),t instanceof e)return t;"number"==typeof t&&(t=(0,n.Yt)(t)),this.originalInput=t;var o,a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=r.format)&&void 0!==o?o:a.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return 128>this.getBrightness()},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,r=e.g/255,n=e.b/255;return .2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,n.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,n.py)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,n.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,n.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),r=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,n.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,n.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(r,")"):"rgba(".concat(e,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,n.vq)(this.r,this.g,this.b,!1),t=0,r=Object.entries(o.R);t=0;return!t&&n&&(e.startsWith("hex")||"name"===e)?"name"===e&&0===this.a?this.toName():this.toRgbString():("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),("hex"===e||"hex6"===e)&&(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.brighten=function(t){void 0===t&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(-(255*(t/100))))),r.g=Math.max(0,Math.min(255,r.g-Math.round(-(255*(t/100))))),r.b=Math.max(0,Math.min(255,r.b-Math.round(-(255*(t/100))))),new e(r)},e.prototype.darken=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=(0,a.V2)(r.l),new e(r)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.saturate=function(t){void 0===t&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=(0,a.V2)(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){void 0===r&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(a)},e.prototype.analogous=function(t,r){void 0===t&&(t=6),void 0===r&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],l=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;aMath.abs(e-t))?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return(isNaN(e=parseFloat(e))||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}r.d(t,{FZ:function(){return l},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return n}})},89620:function(e,t,r){"use strict";r.d(t,{Z:function(){return U}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?g[C]+" "+w:l(w,/&\f/g,g[C])).trim())&&(f[x++]=S);return b(e,t,r,0===i?j:c,f,d,p)}function _(e,t,r,n){return b(e,t,r,B,u(e,0,n),u(e,n+1,-1),n)}var F=function(e,t,r){for(var n=0,o=0;n=o,o=w(),38===n&&12===o&&(t[r]=1),!S(o);)C();return u(y,e,m)},N=function(e,t){var r=-1,n=44;do switch(S(n)){case 0:38===n&&12===w()&&(t[r]=1),e[r]+=F(m-1,t,r);break;case 2:e[r]+=A(n);break;case 4:if(44===n){e[++r]=58===w()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=i(n)}while(n=C());return e},H=function(e,t){var r;return r=N(E(e),t),y="",r},L=new WeakMap,D=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||L.get(r))&&!n){L.set(e,!0);for(var o=[],i=H(t,o),a=r.props,l=0,s=0;l-1&&!e.return)switch(e.type){case B:e.return=function e(t,r){switch(45^c(t,0)?(((r<<2^c(t,0))<<2^c(t,1))<<2^c(t,2))<<2^c(t,3):0){case 5103:return $+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return $+t+O+t+k+t+t;case 6828:case 4268:return $+t+k+t+t;case 6165:return $+t+k+"flex-"+t+t;case 5187:return $+t+l(t,/(\w+).+(:[^]+)/,$+"box-$1$2"+k+"flex-$1$2")+t;case 5443:return $+t+k+"flex-item-"+l(t,/flex-|-self/,"")+t;case 4675:return $+t+k+"flex-line-pack"+l(t,/align-content|flex-|-self/,"")+t;case 5548:return $+t+k+l(t,"shrink","negative")+t;case 5292:return $+t+k+l(t,"basis","preferred-size")+t;case 6060:return $+"box-"+l(t,"-grow","")+$+t+k+l(t,"grow","positive")+t;case 4554:return $+l(t,/([^-])(transform)/g,"$1"+$+"$2")+t;case 6187:return l(l(l(t,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),t,"")+t;case 5495:case 3959:return l(t,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return l(l(t,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+k+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+t+t;case 4095:case 3583:case 4068:case 2532:return l(t,/(.+)-inline(.+)/,$+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(t)-1-r>6)switch(c(t,r+1)){case 109:if(45!==c(t,r+4))break;case 102:return l(t,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+O+(108==c(t,r+3)?"$3":"$2-$3"))+t;case 115:return~s(t,"stretch")?e(l(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==c(t,r+1))break;case 6444:switch(c(t,f(t)-3-(~s(t,"!important")&&10))){case 107:return l(t,":",":"+$)+t;case 101:return l(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(45===c(t,14)?"inline-":"")+"box$3$1"+$+"$2$3$1"+k+"$2box$3")+t}break;case 5936:switch(c(t,r+11)){case 114:return $+t+k+l(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return $+t+k+l(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return $+t+k+l(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return $+t+k+t+t}return t}(e.value,e.length);break;case T:return P([x(e,{value:l(e.value,"@","@"+$)})],n);case j:if(e.length)return e.props.map(function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return P([x(e,{props:[l(t,/:(read-\w+)/,":"+O+"$1")]})],n);case"::placeholder":return P([x(e,{props:[l(t,/:(plac\w+)/,":"+$+"input-$1")]}),x(e,{props:[l(t,/:(plac\w+)/,":"+O+"$1")]}),x(e,{props:[l(t,/:(plac\w+)/,k+"input-$1")]})],n)}return""}).join("")}}],U=function(e){var t,r,o,a,g,x=e.key;if("css"===x){var k=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(k,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var O=e.stylisPlugins||z,$={},j=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+x+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r2||S(v)>3?"":" "}(R);break;case 92:W+=function(e,t){for(var r;--t&&C()&&!(v<48)&&!(v>102)&&(!(v>57)||!(v<65))&&(!(v>70)||!(v<97)););return r=m+(t<6&&32==w()&&32==C()),u(y,e,r)}(m-1,7);continue;case 47:switch(w()){case 42:case 47:d(b(O=function(e,t){for(;C();)if(e+v===57)break;else if(e+v===84&&47===w())break;return"/*"+u(y,t,m-1)+"*"+i(47===e?e:C())}(C(),m),r,n,Z,i(v),u(O,2,-2),0),k);break;default:W+="/"}break;case 123*F:E[$++]=f(W)*H;case 125*F:case 59:case 0:switch(L){case 0:case 125:N=0;case 59+j:-1==H&&(W=l(W,/\f/g,"")),P>0&&f(W)-B&&d(P>32?_(W+";",o,n,B-1):_(l(W," ","")+";",o,n,B-2),k);break;case 59:W+=";";default:if(d(U=M(W,r,n,$,j,a,E,D,I=[],z=[],B),g),123===L){if(0===j)e(W,r,U,U,I,g,B,E,z);else switch(99===T&&110===c(W,3)?100:T){case 100:case 108:case 109:case 115:e(t,U,U,o&&d(M(t,U,U,0,0,a,E,D,a,I=[],B),z),a,z,B,E,o?I:z);break;default:e(W,U,U,U,[""],z,0,E,z)}}}$=j=P=0,F=H=1,D=W="",B=x;break;case 58:B=1+f(W),P=R;default:if(F<1){if(123==L)--F;else if(125==L&&0==F++&&125==(v=m>0?c(y,--m):0,h--,10===v&&(h=1,p--),v))continue}switch(W+=i(L),L*F){case 38:H=j>0?1:(W+="\f",-1);break;case 44:E[$++]=(f(W)-1)*H,H=1;break;case 64:45===w()&&(W+=A(C())),T=w(),j=B=f(D=W+=function(e){for(;!S(w());)C();return u(y,e,m)}(m)),L++;break;case 45:45===R&&2==f(W)&&(F=0)}}return g}("",null,null,null,[""],t=E(t=e),0,[0],t),y="",r),B)},F={key:x,sheet:new n({key:x,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:$,registered:{},insert:function(e,t,r,n){g=r,T(e?e+"{"+t.styles+"}":t.styles),n&&(F.inserted[t.name]=!0)}};return F.sheet.hydrate(j),F}},83596:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},17464:function(e,t,r){"use strict";r.d(t,{T:function(){return s},i:function(){return i},w:function(){return l}});var n=r(86006),o=r(89620);r(50558),r(85124);var i=!0,a=n.createContext("undefined"!=typeof HTMLElement?(0,o.Z)({key:"css"}):null);a.Provider;var l=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(a),r)})};i||(l=function(e){return function(t){var r=(0,n.useContext)(a);return null===r?(r=(0,o.Z)({key:"css"}),n.createElement(a.Provider,{value:r},e(t,r))):e(t,r)}});var s=n.createContext({})},72120:function(e,t,r){"use strict";r.d(t,{F4:function(){return u},iv:function(){return c},xB:function(){return s}});var n=r(17464),o=r(86006),i=r(75941),a=r(85124),l=r(50558);r(89620),r(86979);var s=(0,n.w)(function(e,t){var r=e.styles,s=(0,l.O)([r],void 0,o.useContext(n.T));if(!n.i){for(var c,u=s.name,f=s.styles,d=s.next;void 0!==d;)u+=" "+d.name,f+=d.styles,d=d.next;var p=!0===t.compat,h=t.insert("",{name:u,styles:f},t.sheet,p);return p?null:o.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:h},c.nonce=t.sheet.nonce,c))}var g=o.useRef();return(0,a.j)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,o=document.querySelector('style[data-emotion="'+e+" "+s.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==o&&(n=!0,o.setAttribute("data-emotion",e),r.hydrate([o])),g.current=[r,n],function(){r.flush()}},[t]),(0,a.j)(function(){var e=g.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==s.next&&(0,i.My)(t,s.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",s,r,!1)},[t,s.name]),null});function c(){for(var e=arguments.length,t=Array(e),r=0;r=4;++n,o-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+c,styles:a,next:n}}},85124:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return l}});var n,o=r(86006),i=!!(n||(n=r.t(o,2))).useInsertionEffect&&(n||(n=r.t(o,2))).useInsertionEffect,a=i||function(e){return e()},l=i||o.useLayoutEffect},75941:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return i},fp:function(){return n},hC:function(){return o}});var o=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},i=function(e,t,r){o(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}}},46240:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(40431);function o(e,t,r){return void 0===e||"string"==typeof e?t:(0,n.Z)({},t,{ownerState:(0,n.Z)({},t.ownerState,r)})}},50487:function(e,t,r){"use strict";function n(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}r.d(t,{Z:function(){return n}})},28426:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(89791),i=r(50487);function a(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function l(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:l,externalForwardedProps:s,className:c}=e;if(!t){let e=(0,o.Z)(null==s?void 0:s.className,null==l?void 0:l.className,c,null==r?void 0:r.className),t=(0,n.Z)({},null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),i=(0,n.Z)({},r,s,l);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let u=(0,i.Z)((0,n.Z)({},s,l)),f=a(l),d=a(s),p=t(u),h=(0,o.Z)(null==p?void 0:p.className,null==r?void 0:r.className,c,null==s?void 0:s.className,null==l?void 0:l.className),g=(0,n.Z)({},null==p?void 0:p.style,null==r?void 0:r.style,null==s?void 0:s.style,null==l?void 0:l.style),m=(0,n.Z)({},p,r,d,f);return h.length>0&&(m.className=h),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:p.ref}}},61914:function(e,t,r){"use strict";function n(e,t,r){return"function"==typeof e?e(t,r):e}r.d(t,{Z:function(){return n}})},90545:function(e,t,r){"use strict";r.d(t,{Z:function(){return v}});var n=r(40431),o=r(46750),i=r(86006),a=r(73702),l=r(4323),s=r(51579),c=r(86601),u=r(95887),f=r(9268);let d=["className","component"];var p=r(47327),h=r(98918),g=r(8622);let m=function(e={}){let{themeId:t,defaultTheme:r,defaultClassName:p="MuiBox-root",generateClassName:h}=e,g=(0,l.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(s.Z),m=i.forwardRef(function(e,i){let l=(0,u.Z)(r),s=(0,c.Z)(e),{className:m,component:v="div"}=s,y=(0,o.Z)(s,d);return(0,f.jsx)(g,(0,n.Z)({as:v,ref:i,className:(0,a.Z)(m,h?h(p):p),theme:t&&l[t]||l},y))});return m}({themeId:g.Z,defaultTheme:h.Z,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var v=m},18587:function(e,t,r){"use strict";r.d(t,{d6:function(){return i},sI:function(){return a}});var n=r(13809),o=r(88539);let i=(e,t)=>(0,n.Z)(e,t,"Joy"),a=(e,t)=>(0,o.Z)(e,t,"Joy")},38230:function(e,t){"use strict";t.Z={grey:{50:"#F7F7F8",100:"#EBEBEF",200:"#D8D8DF",300:"#B9B9C6",400:"#8F8FA3",500:"#73738C",600:"#5A5A72",700:"#434356",800:"#25252D",900:"#131318"},blue:{50:"#F4FAFF",100:"#DDF1FF",200:"#ADDBFF",300:"#6FB6FF",400:"#3990FF",500:"#096BDE",600:"#054DA7",700:"#02367D",800:"#072859",900:"#00153C"},yellow:{50:"#FFF8C5",100:"#FAE17D",200:"#EAC54F",300:"#D4A72C",400:"#BF8700",500:"#9A6700",600:"#7D4E00",700:"#633C01",800:"#4D2D00",900:"#3B2300"},red:{50:"#FFF8F6",100:"#FFE9E8",200:"#FFC7C5",300:"#FF9192",400:"#FA5255",500:"#D3232F",600:"#A10E25",700:"#77061B",800:"#580013",900:"#39000D"},green:{50:"#F3FEF5",100:"#D7F5DD",200:"#77EC95",300:"#4CC76E",400:"#2CA24D",500:"#1A7D36",600:"#0F5D26",700:"#034318",800:"#002F0F",900:"#001D09"},purple:{50:"#FDF7FF",100:"#F4EAFF",200:"#E1CBFF",300:"#C69EFF",400:"#A374F9",500:"#814DDE",600:"#5F35AE",700:"#452382",800:"#301761",900:"#1D0A42"}}},47093:function(e,t,r){"use strict";r.d(t,{VT:function(){return s},do:function(){return c}});var n=r(86006),o=r(29720),i=r(98918),a=r(9268);let l=n.createContext(void 0),s=e=>{let t=n.useContext(l);return{getColor:(r,n)=>t&&e&&t.includes(e)?r||"context":r||n}};function c({children:e,variant:t}){var r;let n=(0,o.F)();return(0,a.jsx)(l.Provider,{value:t?(null!=(r=n.colorInversionConfig)?r:i.Z.colorInversionConfig)[t]:void 0,children:e})}t.ZP=l},29720:function(e,t,r){"use strict";r.d(t,{F:function(){return c},Z:function(){return u}}),r(86006);var n=r(95887),o=r(14446),i=r(98918),a=r(41287),l=r(8622),s=r(9268);let c=()=>{let e=(0,n.Z)(i.Z);return e[l.Z]||e};function u({children:e,theme:t}){let r=i.Z;return t&&(r=(0,a.Z)(l.Z in t?t[l.Z]:t)),(0,s.jsx)(o.Z,{theme:r,themeId:t&&l.Z in t?l.Z:void 0,children:e})}},98918:function(e,t,r){"use strict";var n=r(41287);let o=(0,n.Z)();t.Z=o},41287:function(e,t,r){"use strict";r.d(t,{Z:function(){return O}});var n=r(40431),o=r(46750),i=r(95135),a=r(82190),l=r(23343),s=r(57716),c=r(93815);let u=(e,t,r,n=[])=>{let o=e;t.forEach((e,i)=>{i===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},f=(e,t,r)=>{!function e(n,o=[],i=[]){Object.entries(n).forEach(([n,a])=>{r&&(!r||r([...o,n]))||null==a||("object"==typeof a&&Object.keys(a).length>0?e(a,[...o,n],Array.isArray(a)?[...i,n]:i):t([...o,n],a,i))})}(e)},d=(e,t)=>{if("number"==typeof t){if(["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t)))return t;let r=e[e.length-1];return r.toLowerCase().indexOf("opacity")>=0?t:`${t}px`}return t};function p(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},a={};return f(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:d(e,t)}),u(i,e,`var(${n})`,l),u(a,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:i,varsWithDefaults:a}}let h=["colorSchemes","components"],g=["light"];var m=function(e,t){let{colorSchemes:r={}}=e,a=(0,o.Z)(e,h),{vars:l,css:s,varsWithDefaults:c}=p(a,t),u=c,f={},{light:d}=r,m=(0,o.Z)(r,g);if(Object.entries(m||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=p(r,t);u=(0,i.Z)(u,a),f[e]={css:o,vars:n}}),d){let{css:e,vars:r,varsWithDefaults:n}=p(d,t);u=(0,i.Z)(u,n),f.light={css:e,vars:r}}return{vars:u,generateCssVars:e=>e?{css:(0,n.Z)({},f[e].css),vars:f[e].vars}:{css:(0,n.Z)({},s),vars:l}}},v=r(51579),y=r(2272);let b=(0,n.Z)({},y.Z,{borderRadius:{themeKey:"radius"},boxShadow:{themeKey:"shadow"},fontFamily:{themeKey:"fontFamily"},fontSize:{themeKey:"fontSize"},fontWeight:{themeKey:"fontWeight"},letterSpacing:{themeKey:"letterSpacing"},lineHeight:{themeKey:"lineHeight"}});var x=r(38230);function C(e){var t;return!!e[0].match(/^(typography|variants|breakpoints|colorInversion|colorInversionConfig)$/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/^(mode)$/))||"focus"===e[0]&&"thickness"!==e[1]}var w=r(18587),S=r(52428);let E=["cssVarPrefix","breakpoints","spacing","components","variants","colorInversion","shouldSkipGeneratingVar"],A=["colorSchemes"],k=(e="joy")=>(0,a.Z)(e);function O(e){var t,r,a,u,f,d,p,h,g,y,O,$,Z,j,B,T,P,R,M,_,F,N,H,L,D,I,z,U,W,K,G,q,V,X,Y,J,Q,ee,et,er,en,eo,ei,ea,el,es,ec,eu,ef,ed,ep,eh,eg,em,ev,ey;let eb=e||{},{cssVarPrefix:ex="joy",breakpoints:eC,spacing:ew,components:eS,variants:eE,colorInversion:eA,shouldSkipGeneratingVar:ek=C}=eb,eO=(0,o.Z)(eb,E),e$=k(ex),eZ={primary:x.Z.blue,neutral:x.Z.grey,danger:x.Z.red,info:x.Z.purple,success:x.Z.green,warning:x.Z.yellow,common:{white:"#FFF",black:"#09090D"}},ej=e=>{var t;let r=e.split("-"),n=r[1],o=r[2];return e$(e,null==(t=eZ[n])?void 0:t[o])},eB=e=>({plainColor:ej(`palette-${e}-600`),plainHoverBg:ej(`palette-${e}-100`),plainActiveBg:ej(`palette-${e}-200`),plainDisabledColor:ej(`palette-${e}-200`),outlinedColor:ej(`palette-${e}-500`),outlinedBorder:ej(`palette-${e}-200`),outlinedHoverBg:ej(`palette-${e}-100`),outlinedHoverBorder:ej(`palette-${e}-300`),outlinedActiveBg:ej(`palette-${e}-200`),outlinedDisabledColor:ej(`palette-${e}-100`),outlinedDisabledBorder:ej(`palette-${e}-100`),softColor:ej(`palette-${e}-600`),softBg:ej(`palette-${e}-100`),softHoverBg:ej(`palette-${e}-200`),softActiveBg:ej(`palette-${e}-300`),softDisabledColor:ej(`palette-${e}-300`),softDisabledBg:ej(`palette-${e}-50`),solidColor:"#fff",solidBg:ej(`palette-${e}-500`),solidHoverBg:ej(`palette-${e}-600`),solidActiveBg:ej(`palette-${e}-700`),solidDisabledColor:"#fff",solidDisabledBg:ej(`palette-${e}-200`)}),eT=e=>({plainColor:ej(`palette-${e}-300`),plainHoverBg:ej(`palette-${e}-800`),plainActiveBg:ej(`palette-${e}-700`),plainDisabledColor:ej(`palette-${e}-800`),outlinedColor:ej(`palette-${e}-200`),outlinedBorder:ej(`palette-${e}-700`),outlinedHoverBg:ej(`palette-${e}-800`),outlinedHoverBorder:ej(`palette-${e}-600`),outlinedActiveBg:ej(`palette-${e}-900`),outlinedDisabledColor:ej(`palette-${e}-800`),outlinedDisabledBorder:ej(`palette-${e}-800`),softColor:ej(`palette-${e}-200`),softBg:ej(`palette-${e}-900`),softHoverBg:ej(`palette-${e}-800`),softActiveBg:ej(`palette-${e}-700`),softDisabledColor:ej(`palette-${e}-800`),softDisabledBg:ej(`palette-${e}-900`),solidColor:"#fff",solidBg:ej(`palette-${e}-600`),solidHoverBg:ej(`palette-${e}-700`),solidActiveBg:ej(`palette-${e}-800`),solidDisabledColor:ej(`palette-${e}-700`),solidDisabledBg:ej(`palette-${e}-900`)}),eP={palette:{mode:"light",primary:(0,n.Z)({},eZ.primary,eB("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:ej("palette-neutral-800"),plainHoverColor:ej("palette-neutral-900"),plainHoverBg:ej("palette-neutral-100"),plainActiveBg:ej("palette-neutral-200"),plainDisabledColor:ej("palette-neutral-300"),outlinedColor:ej("palette-neutral-800"),outlinedBorder:ej("palette-neutral-200"),outlinedHoverColor:ej("palette-neutral-900"),outlinedHoverBg:ej("palette-neutral-100"),outlinedHoverBorder:ej("palette-neutral-300"),outlinedActiveBg:ej("palette-neutral-200"),outlinedDisabledColor:ej("palette-neutral-300"),outlinedDisabledBorder:ej("palette-neutral-100"),softColor:ej("palette-neutral-800"),softBg:ej("palette-neutral-100"),softHoverColor:ej("palette-neutral-900"),softHoverBg:ej("palette-neutral-200"),softActiveBg:ej("palette-neutral-300"),softDisabledColor:ej("palette-neutral-300"),softDisabledBg:ej("palette-neutral-50"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-300"),solidDisabledBg:ej("palette-neutral-50")}),danger:(0,n.Z)({},eZ.danger,eB("danger")),info:(0,n.Z)({},eZ.info,eB("info")),success:(0,n.Z)({},eZ.success,eB("success")),warning:(0,n.Z)({},eZ.warning,eB("warning"),{solidColor:ej("palette-warning-800"),solidBg:ej("palette-warning-200"),solidHoverBg:ej("palette-warning-300"),solidActiveBg:ej("palette-warning-400"),solidDisabledColor:ej("palette-warning-200"),solidDisabledBg:ej("palette-warning-50"),softColor:ej("palette-warning-800"),softBg:ej("palette-warning-50"),softHoverBg:ej("palette-warning-100"),softActiveBg:ej("palette-warning-200"),softDisabledColor:ej("palette-warning-200"),softDisabledBg:ej("palette-warning-50"),outlinedColor:ej("palette-warning-800"),outlinedHoverBg:ej("palette-warning-50"),plainColor:ej("palette-warning-800"),plainHoverBg:ej("palette-warning-50")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-800"),secondary:ej("palette-neutral-600"),tertiary:ej("palette-neutral-500")},background:{body:ej("palette-common-white"),surface:ej("palette-common-white"),popup:ej("palette-common-white"),level1:ej("palette-neutral-50"),level2:ej("palette-neutral-100"),level3:ej("palette-neutral-200"),tooltip:ej("palette-neutral-800"),backdrop:"rgba(255 255 255 / 0.5)"},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.28)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"187 187 187"},eR={palette:{mode:"dark",primary:(0,n.Z)({},eZ.primary,eT("primary")),neutral:(0,n.Z)({},eZ.neutral,{plainColor:ej("palette-neutral-200"),plainHoverColor:ej("palette-neutral-50"),plainHoverBg:ej("palette-neutral-800"),plainActiveBg:ej("palette-neutral-700"),plainDisabledColor:ej("palette-neutral-700"),outlinedColor:ej("palette-neutral-200"),outlinedBorder:ej("palette-neutral-800"),outlinedHoverColor:ej("palette-neutral-50"),outlinedHoverBg:ej("palette-neutral-800"),outlinedHoverBorder:ej("palette-neutral-700"),outlinedActiveBg:ej("palette-neutral-800"),outlinedDisabledColor:ej("palette-neutral-800"),outlinedDisabledBorder:ej("palette-neutral-800"),softColor:ej("palette-neutral-200"),softBg:ej("palette-neutral-800"),softHoverColor:ej("palette-neutral-50"),softHoverBg:ej("palette-neutral-700"),softActiveBg:ej("palette-neutral-600"),softDisabledColor:ej("palette-neutral-700"),softDisabledBg:ej("palette-neutral-900"),solidColor:ej("palette-common-white"),solidBg:ej("palette-neutral-600"),solidHoverBg:ej("palette-neutral-700"),solidActiveBg:ej("palette-neutral-800"),solidDisabledColor:ej("palette-neutral-700"),solidDisabledBg:ej("palette-neutral-900")}),danger:(0,n.Z)({},eZ.danger,eT("danger")),info:(0,n.Z)({},eZ.info,eT("info")),success:(0,n.Z)({},eZ.success,eT("success"),{solidColor:"#fff",solidBg:ej("palette-success-600"),solidHoverBg:ej("palette-success-700"),solidActiveBg:ej("palette-success-800")}),warning:(0,n.Z)({},eZ.warning,eT("warning"),{solidColor:ej("palette-common-black"),solidBg:ej("palette-warning-300"),solidHoverBg:ej("palette-warning-400"),solidActiveBg:ej("palette-warning-500")}),common:{white:"#FFF",black:"#09090D"},text:{primary:ej("palette-neutral-100"),secondary:ej("palette-neutral-300"),tertiary:ej("palette-neutral-400")},background:{body:ej("palette-neutral-900"),surface:ej("palette-common-black"),popup:ej("palette-neutral-900"),level1:ej("palette-neutral-800"),level2:ej("palette-neutral-700"),level3:ej("palette-neutral-600"),tooltip:ej("palette-neutral-600"),backdrop:`rgba(${e$("palette-neutral-darkChannel",(0,l.n8)(eZ.neutral[800]))} / 0.5)`},divider:`rgba(${e$("palette-neutral-mainChannel",(0,l.n8)(eZ.neutral[500]))} / 0.24)`,focusVisible:ej("palette-primary-500")},shadowRing:"0 0 #000",shadowChannel:"0 0 0"},eM='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',e_=(0,n.Z)({body:`"Public Sans", ${e$(`fontFamily-fallback, ${eM}`)}`,display:`"Public Sans", ${e$(`fontFamily-fallback, ${eM}`)}`,code:"Source Code Pro,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace",fallback:eM},eO.fontFamily),eF=(0,n.Z)({xs:200,sm:300,md:500,lg:600,xl:700,xl2:800,xl3:900},eO.fontWeight),eN=(0,n.Z)({xs3:"0.5rem",xs2:"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem",xl2:"1.5rem",xl3:"1.875rem",xl4:"2.25rem",xl5:"3rem",xl6:"3.75rem",xl7:"4.5rem"},eO.fontSize),eH=(0,n.Z)({sm:1.25,md:1.5,lg:1.7},eO.lineHeight),eL=(0,n.Z)({sm:"-0.01em",md:"0.083em",lg:"0.125em"},eO.letterSpacing),eD={colorSchemes:{light:eP,dark:eR},fontSize:eN,fontFamily:e_,fontWeight:eF,focus:{thickness:"2px",selector:`&.${(0,w.d6)("","focusVisible")}, &:focus-visible`,default:{outlineOffset:`var(--focus-outline-offset, ${e$("focus-thickness",null!=(t=null==(r=eO.focus)?void 0:r.thickness)?t:"2px")})`,outline:`${e$("focus-thickness",null!=(a=null==(u=eO.focus)?void 0:u.thickness)?a:"2px")} solid ${e$("palette-focusVisible",eZ.primary[500])}`}},lineHeight:eH,letterSpacing:eL,radius:{xs:"4px",sm:"8px",md:"12px",lg:"16px",xl:"20px"},shadow:{xs:`${e$("shadowRing",null!=(f=null==(d=eO.colorSchemes)||null==(d=d.light)?void 0:d.shadowRing)?f:eP.shadowRing)}, 0 1px 2px 0 rgba(${e$("shadowChannel",null!=(p=null==(h=eO.colorSchemes)||null==(h=h.light)?void 0:h.shadowChannel)?p:eP.shadowChannel)} / 0.12)`,sm:`${e$("shadowRing",null!=(g=null==(y=eO.colorSchemes)||null==(y=y.light)?void 0:y.shadowRing)?g:eP.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(O=null==($=eO.colorSchemes)||null==($=$.light)?void 0:$.shadowChannel)?O:eP.shadowChannel)} / 0.11), 0.5px 1.3px 1.8px -0.6px rgba(${e$("shadowChannel",null!=(Z=null==(j=eO.colorSchemes)||null==(j=j.light)?void 0:j.shadowChannel)?Z:eP.shadowChannel)} / 0.18), 1.1px 2.7px 3.8px -1.2px rgba(${e$("shadowChannel",null!=(B=null==(T=eO.colorSchemes)||null==(T=T.light)?void 0:T.shadowChannel)?B:eP.shadowChannel)} / 0.26)`,md:`${e$("shadowRing",null!=(P=null==(R=eO.colorSchemes)||null==(R=R.light)?void 0:R.shadowRing)?P:eP.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(M=null==(_=eO.colorSchemes)||null==(_=_.light)?void 0:_.shadowChannel)?M:eP.shadowChannel)} / 0.12), 1.1px 2.8px 3.9px -0.4px rgba(${e$("shadowChannel",null!=(F=null==(N=eO.colorSchemes)||null==(N=N.light)?void 0:N.shadowChannel)?F:eP.shadowChannel)} / 0.17), 2.4px 6.1px 8.6px -0.8px rgba(${e$("shadowChannel",null!=(H=null==(L=eO.colorSchemes)||null==(L=L.light)?void 0:L.shadowChannel)?H:eP.shadowChannel)} / 0.23), 5.3px 13.3px 18.8px -1.2px rgba(${e$("shadowChannel",null!=(D=null==(I=eO.colorSchemes)||null==(I=I.light)?void 0:I.shadowChannel)?D:eP.shadowChannel)} / 0.29)`,lg:`${e$("shadowRing",null!=(z=null==(U=eO.colorSchemes)||null==(U=U.light)?void 0:U.shadowRing)?z:eP.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(W=null==(K=eO.colorSchemes)||null==(K=K.light)?void 0:K.shadowChannel)?W:eP.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(G=null==(q=eO.colorSchemes)||null==(q=q.light)?void 0:q.shadowChannel)?G:eP.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(V=null==(X=eO.colorSchemes)||null==(X=X.light)?void 0:X.shadowChannel)?V:eP.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(Y=null==(J=eO.colorSchemes)||null==(J=J.light)?void 0:J.shadowChannel)?Y:eP.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(Q=null==(ee=eO.colorSchemes)||null==(ee=ee.light)?void 0:ee.shadowChannel)?Q:eP.shadowChannel)} / 0.21)`,xl:`${e$("shadowRing",null!=(et=null==(er=eO.colorSchemes)||null==(er=er.light)?void 0:er.shadowRing)?et:eP.shadowRing)}, 0.3px 0.8px 1.1px rgba(${e$("shadowChannel",null!=(en=null==(eo=eO.colorSchemes)||null==(eo=eo.light)?void 0:eo.shadowChannel)?en:eP.shadowChannel)} / 0.11), 1.8px 4.5px 6.4px -0.2px rgba(${e$("shadowChannel",null!=(ei=null==(ea=eO.colorSchemes)||null==(ea=ea.light)?void 0:ea.shadowChannel)?ei:eP.shadowChannel)} / 0.13), 3.2px 7.9px 11.2px -0.4px rgba(${e$("shadowChannel",null!=(el=null==(es=eO.colorSchemes)||null==(es=es.light)?void 0:es.shadowChannel)?el:eP.shadowChannel)} / 0.16), 4.8px 12px 17px -0.5px rgba(${e$("shadowChannel",null!=(ec=null==(eu=eO.colorSchemes)||null==(eu=eu.light)?void 0:eu.shadowChannel)?ec:eP.shadowChannel)} / 0.19), 7px 17.5px 24.7px -0.7px rgba(${e$("shadowChannel",null!=(ef=null==(ed=eO.colorSchemes)||null==(ed=ed.light)?void 0:ed.shadowChannel)?ef:eP.shadowChannel)} / 0.21), 10.2px 25.5px 36px -0.9px rgba(${e$("shadowChannel",null!=(ep=null==(eh=eO.colorSchemes)||null==(eh=eh.light)?void 0:eh.shadowChannel)?ep:eP.shadowChannel)} / 0.24), 14.8px 36.8px 52.1px -1.1px rgba(${e$("shadowChannel",null!=(eg=null==(em=eO.colorSchemes)||null==(em=em.light)?void 0:em.shadowChannel)?eg:eP.shadowChannel)} / 0.27), 21px 52.3px 74px -1.2px rgba(${e$("shadowChannel",null!=(ev=null==(ey=eO.colorSchemes)||null==(ey=ey.light)?void 0:ey.shadowChannel)?ev:eP.shadowChannel)} / 0.29)`},zIndex:{badge:1,table:10,popup:1e3,modal:1300,tooltip:1500},typography:{display1:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-xl, ${eF.xl}`),fontSize:e$(`fontSize-xl7, ${eN.xl7}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eL.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},display2:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-xl, ${eF.xl}`),fontSize:e$(`fontSize-xl6, ${eN.xl6}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eL.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},h1:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-lg, ${eF.lg}`),fontSize:e$(`fontSize-xl5, ${eN.xl5}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eL.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},h2:{fontFamily:e$(`fontFamily-display, ${e_.display}`),fontWeight:e$(`fontWeight-lg, ${eF.lg}`),fontSize:e$(`fontSize-xl4, ${eN.xl4}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),letterSpacing:e$(`letterSpacing-sm, ${eL.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},h3:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-xl3, ${eN.xl3}`),lineHeight:e$(`lineHeight-sm, ${eH.sm}`),color:e$("palette-text-primary",eP.palette.text.primary)},h4:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-xl2, ${eN.xl2}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eP.palette.text.primary)},h5:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-xl, ${eN.xl}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eP.palette.text.primary)},h6:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontWeight:e$(`fontWeight-md, ${eF.md}`),fontSize:e$(`fontSize-lg, ${eN.lg}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eP.palette.text.primary)},body1:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-md, ${eN.md}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-primary",eP.palette.text.primary)},body2:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-sm, ${eN.sm}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-secondary",eP.palette.text.secondary)},body3:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-xs, ${eN.xs}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-tertiary",eP.palette.text.tertiary)},body4:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-xs2, ${eN.xs2}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-tertiary",eP.palette.text.tertiary)},body5:{fontFamily:e$(`fontFamily-body, ${e_.body}`),fontSize:e$(`fontSize-xs3, ${eN.xs3}`),lineHeight:e$(`lineHeight-md, ${eH.md}`),color:e$("palette-text-tertiary",eP.palette.text.tertiary)}}},eI=eO?(0,i.Z)(eD,eO):eD,{colorSchemes:ez}=eI,eU=(0,o.Z)(eI,A),eW=(0,n.Z)({colorSchemes:ez},eU,{breakpoints:(0,s.Z)(null!=eC?eC:{}),components:(0,i.Z)({MuiSvgIcon:{defaultProps:{fontSize:"xl"},styleOverrides:{root:({ownerState:e,theme:t})=>{var r;let o=e.instanceFontSize;return(0,n.Z)({color:"var(--Icon-color)",margin:"var(--Icon-margin)"},e.fontSize&&"inherit"!==e.fontSize&&{fontSize:`var(--Icon-fontSize, ${t.vars.fontSize[e.fontSize]})`},e.color&&"inherit"!==e.color&&"context"!==e.color&&t.vars.palette[e.color]&&{color:`rgba(${null==(r=t.vars.palette[e.color])?void 0:r.mainChannel} / 1)`},"context"===e.color&&{color:t.vars.palette.text.secondary},o&&"inherit"!==o&&{"--Icon-fontSize":t.vars.fontSize[o]})}}}},eS),cssVarPrefix:ex,getCssVar:e$,spacing:(0,c.Z)(ew),colorInversionConfig:{soft:["plain","outlined","soft","solid"],solid:["plain","outlined","soft","solid"]}});Object.entries(eW.colorSchemes).forEach(([e,t])=>{!function(e,t){Object.keys(t).forEach(r=>{let n={main:"500",light:"200",dark:"800"};"dark"===e&&(n.main=400),!t[r].mainChannel&&t[r][n.main]&&(t[r].mainChannel=(0,l.n8)(t[r][n.main])),!t[r].lightChannel&&t[r][n.light]&&(t[r].lightChannel=(0,l.n8)(t[r][n.light])),!t[r].darkChannel&&t[r][n.dark]&&(t[r].darkChannel=(0,l.n8)(t[r][n.dark]))})}(e,t.palette)});let{vars:eK,generateCssVars:eG}=m((0,n.Z)({colorSchemes:ez},eU),{prefix:ex,shouldSkipGeneratingVar:ek});eW.vars=eK,eW.generateCssVars=eG,eW.unstable_sxConfig=(0,n.Z)({},b,null==e?void 0:e.unstable_sxConfig),eW.unstable_sx=function(e){return(0,v.Z)({sx:e,theme:this})},eW.getColorSchemeSelector=e=>"light"===e?"&":`&[data-joy-color-scheme="${e}"], [data-joy-color-scheme="${e}"] &`;let eq={getCssVar:e$,palette:eW.colorSchemes.light.palette};return eW.variants=(0,i.Z)({plain:(0,S.Zm)("plain",eq),plainHover:(0,S.Zm)("plainHover",eq),plainActive:(0,S.Zm)("plainActive",eq),plainDisabled:(0,S.Zm)("plainDisabled",eq),outlined:(0,S.Zm)("outlined",eq),outlinedHover:(0,S.Zm)("outlinedHover",eq),outlinedActive:(0,S.Zm)("outlinedActive",eq),outlinedDisabled:(0,S.Zm)("outlinedDisabled",eq),soft:(0,S.Zm)("soft",eq),softHover:(0,S.Zm)("softHover",eq),softActive:(0,S.Zm)("softActive",eq),softDisabled:(0,S.Zm)("softDisabled",eq),solid:(0,S.Zm)("solid",eq),solidHover:(0,S.Zm)("solidHover",eq),solidActive:(0,S.Zm)("solidActive",eq),solidDisabled:(0,S.Zm)("solidDisabled",eq)},eE),eW.palette=(0,n.Z)({},eW.colorSchemes.light.palette,{colorScheme:"light"}),eW.shouldSkipGeneratingVar=ek,eW.colorInversion="function"==typeof eA?eA:(0,i.Z)({soft:(0,S.pP)(eW,!0),solid:(0,S.Lo)(eW,!0)},eA||{},{clone:!1}),eW}},8622:function(e,t){"use strict";t.Z="$$joy"},50645:function(e,t,r){"use strict";var n=r(9312),o=r(98918),i=r(8622);let a=(0,n.ZP)({defaultTheme:o.Z,themeId:i.Z});t.Z=a},88930:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(40431),o=r(38295),i=r(98918),a=r(8622);function l({props:e,name:t}){return(0,o.Z)({props:e,name:t,defaultTheme:(0,n.Z)({},i.Z,{components:{}}),themeId:a.Z})}},52428:function(e,t,r){"use strict";r.d(t,{Lo:function(){return f},Zm:function(){return c},pP:function(){return u}});var n=r(40431),o=r(82190);let i=e=>e&&"object"==typeof e&&Object.keys(e).some(e=>{var t;return null==(t=e.match)?void 0:t.call(e,/^(plain(Hover|Active|Disabled)?(Color|Bg)|outlined(Hover|Active|Disabled)?(Color|Border|Bg)|soft(Hover|Active|Disabled)?(Color|Bg)|solid(Hover|Active|Disabled)?(Color|Bg))$/)}),a=(e,t,r)=>{t.includes("Color")&&(e.color=r),t.includes("Bg")&&(e.backgroundColor=r),t.includes("Border")&&(e.borderColor=r)},l=(e,t,r)=>{let n={};return Object.entries(t||{}).forEach(([t,o])=>{if(t.match(RegExp(`${e}(color|bg|border)`,"i"))&&o){let e=r?r(t):o;t.includes("Disabled")&&(n.pointerEvents="none",n.cursor="default"),t.match(/(Hover|Active|Disabled)/)||(n["--variant-borderWidth"]||(n["--variant-borderWidth"]="0px"),t.includes("Border")&&(n["--variant-borderWidth"]="1px",n.border="var(--variant-borderWidth) solid")),a(n,t,e)}}),n},s=e=>t=>`--${e?`${e}-`:""}${t.replace(/^--/,"")}`,c=(e,t)=>{let r={};if(t){let{getCssVar:o,palette:a}=t;Object.entries(a).forEach(t=>{let[s,c]=t;i(c)&&"object"==typeof c&&(r=(0,n.Z)({},r,{[s]:l(e,c,e=>o(`palette-${s}-${e}`,a[s][e]))}))})}return r.context=l(e,{plainColor:"var(--variant-plainColor)",plainHoverColor:"var(--variant-plainHoverColor)",plainHoverBg:"var(--variant-plainHoverBg)",plainActiveBg:"var(--variant-plainActiveBg)",plainDisabledColor:"var(--variant-plainDisabledColor)",outlinedColor:"var(--variant-outlinedColor)",outlinedBorder:"var(--variant-outlinedBorder)",outlinedHoverColor:"var(--variant-outlinedHoverColor)",outlinedHoverBorder:"var(--variant-outlinedHoverBorder)",outlinedHoverBg:"var(--variant-outlinedHoverBg)",outlinedActiveBg:"var(--variant-outlinedActiveBg)",outlinedDisabledColor:"var(--variant-outlinedDisabledColor)",outlinedDisabledBorder:"var(--variant-outlinedDisabledBorder)",softColor:"var(--variant-softColor)",softBg:"var(--variant-softBg)",softHoverColor:"var(--variant-softHoverColor)",softHoverBg:"var(--variant-softHoverBg)",softActiveBg:"var(--variant-softActiveBg)",softDisabledColor:"var(--variant-softDisabledColor)",softDisabledBg:"var(--variant-softDisabledBg)",solidColor:"var(--variant-solidColor)",solidBg:"var(--variant-solidBg)",solidHoverColor:"var(--variant-solidHoverColor)",solidHoverBg:"var(--variant-solidHoverBg)",solidActiveBg:"var(--variant-solidActiveBg)",solidDisabledColor:"var(--variant-solidDisabledColor)",solidDisabledBg:"var(--variant-solidDisabledBg)"}),r},u=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{var n;let o=t.split("-"),i=o[1],a=o[2];return r(t,null==(n=e.palette)||null==(n=n[i])?void 0:n[a])}:r;return Object.entries(e.palette).forEach(t=>{let[r,o]=t;i(o)&&(a[r]={"--Badge-ringColor":l(`palette-${r}-softBg`),[n("--shadowChannel")]:l(`palette-${r}-darkChannel`),[e.getColorSchemeSelector("dark")]:{[n("--palette-focusVisible")]:l(`palette-${r}-300`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${r}-100`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.6)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-lightChannel`)} / 0.2)`,"--variant-plainColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-plainHoverColor":l(`palette-${r}-50`),"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-lightChannel`)} / 1)`,"--variant-outlinedHoverColor":l(`palette-${r}-50`),"--variant-outlinedBg":"initial","--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverBorder":l(`palette-${r}-600`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.16)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${r}-100`),"--variant-softBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-softHoverColor":"#fff","--variant-softHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-softActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${r}-500`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${r}-400`),"--variant-solidActiveBg":l(`palette-${r}-400`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`},[e.getColorSchemeSelector("light")]:{[n("--palette-focusVisible")]:l(`palette-${r}-500`),[n("--palette-background-body")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.1)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,[n("--palette-background-level1")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.48)`,[n("--palette-text-primary")]:l(`palette-${r}-700`),[n("--palette-text-secondary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,[n("--palette-text-tertiary")]:`rgba(${l(`palette-${r}-darkChannel`)} / 0.68)`,[n("--palette-divider")]:`rgba(${l(`palette-${r}-mainChannel`)} / 0.32)`,"--variant-plainColor":`rgba(${l(`palette-${r}-darkChannel`)} / 0.8)`,"--variant-plainHoverColor":`rgba(${l(`palette-${r}-darkChannel`)} / 1)`,"--variant-plainHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedColor":`rgba(${l(`palette-${r}-mainChannel`)} / 1)`,"--variant-outlinedBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.4)`,"--variant-outlinedHoverColor":l(`palette-${r}-600`),"--variant-outlinedHoverBorder":l(`palette-${r}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.24)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${r}-mainChannel`)} / 0.12)`,"--variant-softColor":l(`palette-${r}-600`),"--variant-softBg":`rgba(${l(`palette-${r}-lightChannel`)} / 0.72)`,"--variant-softHoverColor":l(`palette-${r}-700`),"--variant-softHoverBg":l(`palette-${r}-200`),"--variant-softActiveBg":l(`palette-${r}-300`),"--variant-softDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-softDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`,"--variant-solidColor":l("palette-common-white"),"--variant-solidBg":l(`palette-${r}-600`),"--variant-solidHoverColor":l("palette-common-white"),"--variant-solidHoverBg":l(`palette-${r}-500`),"--variant-solidActiveBg":l(`palette-${r}-500`),"--variant-solidDisabledColor":`rgba(${l(`palette-${r}-mainChannel`)} / 0.6)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${r}-mainChannel`)} / 0.08)`}})}),a},f=(e,t)=>{let r=(0,o.Z)(e.cssVarPrefix),n=s(e.cssVarPrefix),a={},l=t?t=>{let n=t.split("-"),o=n[1],i=n[2];return r(t,e.palette[o][i])}:r;return Object.entries(e.palette).forEach(e=>{let[t,r]=e;i(r)&&("warning"===t?a.warning={"--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-700`),[n("--palette-background-body")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.16)`,[n("--palette-background-surface")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.1)`,[n("--palette-background-popup")]:l(`palette-${t}-100`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l(`palette-${t}-900`),[n("--palette-text-secondary")]:l(`palette-${t}-700`),[n("--palette-text-tertiary")]:l(`palette-${t}-500`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,"--variant-plainColor":l(`palette-${t}-700`),"--variant-plainHoverColor":l(`palette-${t}-800`),"--variant-plainHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-700`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.5)`,"--variant-outlinedHoverColor":l(`palette-${t}-800`),"--variant-outlinedHoverBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.6)`,"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softColor":l(`palette-${t}-800`),"--variant-softHoverColor":l(`palette-${t}-900`),"--variant-softBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.2)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.28)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.12)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`,"--variant-solidColor":"#fff","--variant-solidBg":l(`palette-${t}-600`),"--variant-solidHoverColor":"#fff","--variant-solidHoverBg":l(`palette-${t}-700`),"--variant-solidActiveBg":l(`palette-${t}-800`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-mainChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-mainChannel`)} / 0.08)`}:a[t]={colorScheme:"dark","--Badge-ringColor":l(`palette-${t}-solidBg`),[n("--shadowChannel")]:l(`palette-${t}-darkChannel`),[n("--palette-focusVisible")]:l(`palette-${t}-200`),[n("--palette-background-body")]:"rgba(0 0 0 / 0.1)",[n("--palette-background-surface")]:"rgba(0 0 0 / 0.06)",[n("--palette-background-popup")]:l(`palette-${t}-700`),[n("--palette-background-level1")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.2)`,[n("--palette-background-level2")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.36)`,[n("--palette-background-level3")]:`rgba(${l(`palette-${t}-darkChannel`)} / 0.6)`,[n("--palette-text-primary")]:l("palette-common-white"),[n("--palette-text-secondary")]:l(`palette-${t}-100`),[n("--palette-text-tertiary")]:l(`palette-${t}-200`),[n("--palette-divider")]:`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainColor":l(`palette-${t}-50`),"--variant-plainHoverColor":"#fff","--variant-plainHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-plainActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-plainDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedColor":l(`palette-${t}-50`),"--variant-outlinedBorder":`rgba(${l(`palette-${t}-lightChannel`)} / 0.5)`,"--variant-outlinedHoverColor":"#fff","--variant-outlinedHoverBorder":l(`palette-${t}-300`),"--variant-outlinedHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.12)`,"--variant-outlinedActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.32)`,"--variant-outlinedDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-outlinedDisabledBorder":"rgba(255 255 255 / 0.2)","--variant-softColor":l("palette-common-white"),"--variant-softHoverColor":l("palette-common-white"),"--variant-softBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.24)`,"--variant-softHoverBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.36)`,"--variant-softActiveBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.16)`,"--variant-softDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-softDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`,"--variant-solidColor":l(`palette-${t}-${"neutral"===t?"600":"500"}`),"--variant-solidBg":l("palette-common-white"),"--variant-solidHoverColor":l(`palette-${t}-700`),"--variant-solidHoverBg":l("palette-common-white"),"--variant-solidActiveBg":l(`palette-${t}-200`),"--variant-solidDisabledColor":`rgba(${l(`palette-${t}-lightChannel`)} / 0.72)`,"--variant-solidDisabledBg":`rgba(${l(`palette-${t}-lightChannel`)} / 0.1)`})}),a}},326:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(40431),o=r(46750),i=r(99179),a=r(61914),l=r(28426),s=r(46240),c=r(47093);let u=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],f=["component","slots","slotProps"],d=["component"],p=["disableColorInversion"];function h(e,t){let{className:r,elementType:h,ownerState:g,externalForwardedProps:m,getSlotOwnerState:v,internalForwardedProps:y}=t,b=(0,o.Z)(t,u),{component:x,slots:C={[e]:void 0},slotProps:w={[e]:void 0}}=m,S=(0,o.Z)(m,f),E=C[e]||h,A=(0,a.Z)(w[e],g),k=(0,l.Z)((0,n.Z)({className:r},b,{externalForwardedProps:"root"===e?S:void 0,externalSlotProps:A})),{props:{component:O},internalRef:$}=k,Z=(0,o.Z)(k.props,d),j=(0,i.Z)($,null==A?void 0:A.ref,t.ref),B=v?v(Z):{},{disableColorInversion:T=!1}=B,P=(0,o.Z)(B,p),R=(0,n.Z)({},g,P),{getColor:M}=(0,c.VT)(R.variant);if("root"===e){var _;R.color=null!=(_=Z.color)?_:g.color}else T||(R.color=M(Z.color,R.color));let F="root"===e?O||x:O,N=(0,s.Z)(E,(0,n.Z)({},"root"===e&&!x&&!C[e]&&y,"root"!==e&&!C[e]&&y,Z,F&&{as:F},{ref:j}),R);return Object.keys(P).forEach(e=>{delete N[e]}),[E,N]}},44169:function(e,t,r){"use strict";var n=r(86006);let o=n.createContext(null);t.Z=o},63678:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(86006),o=r(44169);function i(){let e=n.useContext(o.Z);return e}},4323:function(e,t,r){"use strict";r.d(t,{ZP:function(){return v},Co:function(){return y}});var n=r(40431),o=r(86006),i=r(83596),a=/^((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|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)-.*))$/,l=(0,i.Z)(function(e){return a.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),s=r(17464),c=r(75941),u=r(50558),f=r(85124),d=function(e){return"theme"!==e},p=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?l:d},h=function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,c.hC)(t,r,n),(0,f.L)(function(){return(0,c.My)(t,r,n)}),null},m=(function e(t,r){var i,a,l=t.__emotion_real===t,f=l&&t.__emotion_base||t;void 0!==r&&(i=r.label,a=r.target);var d=h(t,r,l),m=d||p(f),v=!m("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var x=y.length,C=1;Ct.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]]);return e}function u(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,o=e.call(n),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(n){i={error:n}}finally{try{r&&!r.done&&(e=o.return)&&e.call(o)}finally{if(i)throw i.error}}return u}function a(n,t,e){if(e||2==arguments.length)for(var r,i=0,o=t.length;i-1&&(o=setTimeout(function(){p.delete(n)},t)),p.set(n,i(i({},e),{timer:o}))},y=new Map,g=function(n,t){y.set(n,t),t.then(function(t){return y.delete(n),t}).catch(function(){y.delete(n)})},m={},b=function(n,t){m[n]&&m[n].forEach(function(n){return n(t)})},w=function(n,t){return m[n]||(m[n]=[]),m[n].push(t),function(){var e=m[n].indexOf(t);m[n].splice(e,1)}},x=function(n,t){var e=t.cacheKey,r=t.cacheTime,i=void 0===r?3e5:r,o=t.staleTime,f=void 0===o?0:o,l=t.setCache,v=t.getCache,m=(0,c.useRef)(),x=(0,c.useRef)(),O=function(n,t){l?l(t):h(n,i,t),b(n,t.data)},S=function(n,t){return(void 0===t&&(t=[]),v)?v(t):p.get(n)};return(s(function(){if(e){var t=S(e);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===f||new Date().getTime()-t.time<=f)&&(n.state.loading=!1)),m.current=w(e,function(t){n.setState({data:t})})}},[]),d(function(){var n;null===(n=m.current)||void 0===n||n.call(m)}),e)?{onBefore:function(n){var t=S(e,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===f||new Date().getTime()-t.time<=f?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(n,t){var r=y.get(e);return r&&r!==x.current||(r=n.apply(void 0,a([],u(t),!1)),x.current=r,g(e,r)),{servicePromise:r}},onSuccess:function(t,r){var i;e&&(null===(i=m.current)||void 0===i||i.call(m),O(e,{data:t,params:r,time:new Date().getTime()}),m.current=w(e,function(t){n.setState({data:t})}))},onMutate:function(t){var r;e&&(null===(r=m.current)||void 0===r||r.call(m),O(e,{data:t,params:n.state.params,time:new Date().getTime()}),m.current=w(e,function(t){n.setState({data:t})}))}}:{}},O=e(56762),S=e.n(O),j=function(n,t){var e=t.debounceWait,r=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,f=(0,c.useRef)(),l=(0,c.useMemo)(function(){var n={};return void 0!==r&&(n.leading=r),void 0!==i&&(n.trailing=i),void 0!==o&&(n.maxWait=o),n},[r,i,o]);return((0,c.useEffect)(function(){if(e){var t=n.runAsync.bind(n);return f.current=S()(function(n){n()},e,l),n.runAsync=function(){for(var n=[],e=0;e-1&&C.splice(n,1)})}return function(){f()}},[e,i]),d(function(){f()}),{}},k=function(n,t){var e=t.retryInterval,r=t.retryCount,i=(0,c.useRef)(),o=(0,c.useRef)(0),u=(0,c.useRef)(!1);return r?{onBefore:function(){u.current||(o.current=0),u.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,-1===r||o.current<=r){var t=null!=e?e:Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){u.current=!0,n.refresh()},t)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},B=e(25832),N=e.n(B),W=function(n,t){var e=t.throttleWait,r=t.throttleLeading,i=t.throttleTrailing,o=(0,c.useRef)(),f={};return(void 0!==r&&(f.leading=r),void 0!==i&&(f.trailing=i),(0,c.useEffect)(function(){if(e){var t=n.runAsync.bind(n);return o.current=N()(function(n){n()},e,f),n.runAsync=function(){for(var n=[],e=0;e0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=t||e<0||y&&r>=l}function w(){var n,e,r,o=i();if(b(o))return x(o);v=setTimeout(w,(n=o-d,e=o-p,r=t-n,y?a(r,l-e):r))}function x(n){return(v=void 0,g&&c)?m(n):(c=f=void 0,s)}function O(){var n,e=i(),r=b(e);if(c=arguments,f=this,d=e,r){if(void 0===v)return p=n=d,v=setTimeout(w,t),h?m(n):s;if(y)return clearTimeout(v),v=setTimeout(w,t),m(d)}return void 0===v&&(v=setTimeout(w,t)),s}return t=o(t)||0,r(e)&&(h=!!e.leading,l=(y="maxWait"in e)?u(o(e.maxWait)||0,t):l,g="trailing"in e?!!e.trailing:g),O.cancel=function(){void 0!==v&&clearTimeout(v),p=0,c=d=f=v=void 0},O.flush=function(){return void 0===v?s:x(i())},O}},74331:function(n){n.exports=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}},60655:function(n){n.exports=function(n){return null!=n&&"object"==typeof n}},50246:function(n,t,e){var r=e(48276),i=e(60655);n.exports=function(n){return"symbol"==typeof n||i(n)&&"[object Symbol]"==r(n)}},49552:function(n,t,e){var r=e(41314);n.exports=function(){return r.Date.now()}},25832:function(n,t,e){var r=e(56762),i=e(74331);n.exports=function(n,t,e){var o=!0,u=!0;if("function"!=typeof n)throw TypeError("Expected a function");return i(e)&&(o="leading"in e?!!e.leading:o,u="trailing"in e?!!e.trailing:u),r(n,t,{leading:o,maxWait:t,trailing:u})}},64528:function(n,t,e){var r=e(84886),i=e(74331),o=e(50246),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(o(n))return u;if(i(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=i(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=r(n);var e=c.test(n);return e||f.test(n)?l(n.slice(2),e?2:8):a.test(n)?u:+n}}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/925f3d25-1af7259455ef26bd.js b/pilot/server/static/_next/static/chunks/925f3d25-1af7259455ef26bd.js deleted file mode 100644 index 1f3bb7dc5..000000000 --- a/pilot/server/static/_next/static/chunks/925f3d25-1af7259455ef26bd.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[550],{65326:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";function t(){return q.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function a(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,s=[],i=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,J=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)i(e,t)&&n.push(t);return n};var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},W={};function C(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(W[e]=i),t&&(W[t[0]]=function(){return T(i.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(R[t=H(t,e.localeData())]=R[t]||function(e){var t,n,s,i=e.match(N);for(n=0,s=i.length;n=0&&P.test(e);)e=e.replace(P,s),P.lastIndex=0,n-=1;return e}var F={};function L(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function V(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function E(e){var t,n,s={};for(n in e)i(e,n)&&(t=V(n))&&(s[t]=e[n]);return s}var G={};function A(e){return e%4==0&&e%100!=0||e%400==0}function I(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function j(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=I(t)),n}function Z(e,n){return function(s){return null!=s?($(this,e,s),t.updateOffset(this,n),this):z(this,e)}}function z(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function $(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&A(e.year())&&1===e.month()&&29===e.date()?(n=j(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ew(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var q,B,J,Q,X=/\d/,K=/\d\d/,ee=/\d{3}/,et=/\d{4}/,en=/[+-]?\d{6}/,es=/\d\d?/,ei=/\d\d\d\d?/,er=/\d\d\d\d\d\d?/,ea=/\d{1,3}/,eo=/\d{1,4}/,eu=/[+-]?\d{1,6}/,el=/\d+/,eh=/[+-]?\d+/,ed=/Z|[+-]\d\d:?\d\d/gi,ec=/Z|[+-]\d\d(?::?\d\d)?/gi,ef=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function em(e,t,n){Q[e]=O(t)?t:function(e,s){return e&&n?n:t}}function e_(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ey={};function eg(e,t){var n,s,i=t;for("string"==typeof e&&(e=[e]),o(t)&&(i=function(e,n){n[t]=j(e)}),s=e.length,n=0;n68?1900:2e3)};var eb=Z("FullYear",!0);function ex(e,t,n,s,i,r,a){var o;return e<100&&e>=0?isFinite((o=new Date(e+400,t,n,s,i,r,a)).getFullYear())&&o.setFullYear(e):o=new Date(e,t,n,s,i,r,a),o}function eT(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,n))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eN(e,t,n){var s=7+t-n;return-((7+eT(e,0,s).getUTCDay()-t)%7)+s-1}function eP(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+eN(e,s,i);return o<=0?a=eO(r=e-1)+o:o>eO(e)?(r=e+1,a=o-eO(e)):(r=e,a=o),{year:r,dayOfYear:a}}function eR(e,t,n){var s,i,r=eN(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+eW(i=e.year()-1,t,n):a>eW(e.year(),t,n)?(s=a-eW(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function eW(e,t,n){var s=eN(e,t,n),i=eN(e+1,t,n);return(eO(e)-s+i)/7}function eC(e,t){return e.slice(t,7).concat(e.slice(0,t))}C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),G.week=5,G.isoWeek=5,em("w",es),em("ww",es,K),em("W",es),em("WW",es,K),ep(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=j(e)}),C("d",0,"do","day"),C("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),G.day=11,G.weekday=11,G.isoWeekday=11,em("d",es),em("e",es),em("E",es),em("dd",function(e,t){return t.weekdaysMinRegex(e)}),em("ddd",function(e,t){return t.weekdaysShortRegex(e)}),em("dddd",function(e,t){return t.weekdaysRegex(e)}),ep(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:c(n).invalidWeekday=e}),ep(["d","e","E"],function(e,t,n,s){t[s]=j(e)});var eU="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eH(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(s=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];s<7;++s)r=d([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=eG.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=eG.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=eG.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=eG.call(this._weekdaysParse,a))||-1!==(i=eG.call(this._shortWeekdaysParse,a))?i:-1!==(i=eG.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=eG.call(this._shortWeekdaysParse,a))||-1!==(i=eG.call(this._weekdaysParse,a))?i:-1!==(i=eG.call(this._minWeekdaysParse,a))?i:null:-1!==(i=eG.call(this._minWeekdaysParse,a))||-1!==(i=eG.call(this._weekdaysParse,a))?i:-1!==(i=eG.call(this._shortWeekdaysParse,a))?i:null}function eF(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),s=e_(this.weekdaysMin(n,"")),i=e_(this.weekdaysShort(n,"")),r=e_(this.weekdays(n,"")),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function eL(){return this.hours()%12||12}function eV(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eE(e,t){return t._meridiemParse}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,eL),C("k",["kk",2],0,function(){return this.hours()||24}),C("hmm",0,0,function(){return""+eL.apply(this)+T(this.minutes(),2)}),C("hmmss",0,0,function(){return""+eL.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),C("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),C("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),eV("a",!0),eV("A",!1),L("hour","h"),G.hour=13,em("a",eE),em("A",eE),em("H",es),em("h",es),em("k",es),em("HH",es,K),em("hh",es,K),em("kk",es,K),em("hmm",ei),em("hmmss",er),em("Hmm",ei),em("Hmmss",er),eg(["H","HH"],3),eg(["k","kk"],function(e,t,n){var s=j(e);t[3]=24===s?0:s}),eg(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),eg(["h","hh"],function(e,t,n){t[3]=j(e),c(n).bigHour=!0}),eg("hmm",function(e,t,n){var s=e.length-2;t[3]=j(e.substr(0,s)),t[4]=j(e.substr(s)),c(n).bigHour=!0}),eg("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=j(e.substr(0,s)),t[4]=j(e.substr(s,2)),t[5]=j(e.substr(i)),c(n).bigHour=!0}),eg("Hmm",function(e,t,n){var s=e.length-2;t[3]=j(e.substr(0,s)),t[4]=j(e.substr(s))}),eg("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=j(e.substr(0,s)),t[4]=j(e.substr(s,2)),t[5]=j(e.substr(i))});var eG,eA,eI=Z("Hours",!0),ej={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:ev,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eU,meridiemParse:/[ap]\.?m?\.?/i},eZ={},ez={};function e$(e){return e?e.toLowerCase().replace("_","-"):e}function eq(t){var n=null;if(void 0===eZ[t]&&e&&e.exports&&null!=t.match("^[^/\\\\]*$"))try{n=eA._abbr,function(){var e=Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),eB(n)}catch(e){eZ[t]=null}return eZ[t]}function eB(e,t){var n;return e&&((n=a(t)?eQ(e):eJ(e,t))?eA=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eA._abbr}function eJ(e,t){if(null===t)return delete eZ[e],null;var n,s=ej;if(t.abbr=e,null!=eZ[e])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=eZ[e]._config;else if(null!=t.parentLocale){if(null!=eZ[t.parentLocale])s=eZ[t.parentLocale]._config;else{if(null==(n=eq(t.parentLocale)))return ez[t.parentLocale]||(ez[t.parentLocale]=[]),ez[t.parentLocale].push({name:e,config:t}),null;s=n._config}}return eZ[e]=new x(b(s,t)),ez[e]&&ez[e].forEach(function(e){eJ(e.name,e.config)}),eB(e),eZ[e]}function eQ(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eA;if(!n(e)){if(t=eq(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r0;){if(s=eq(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n=t-1)break;t--}r++}return eA}(e)}function eX(e){var t,n=e._a;return n&&-2===c(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>ew(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,c(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),c(e)._overflowWeeks&&-1===t&&(t=7),c(e)._overflowWeekday&&-1===t&&(t=8),c(e).overflow=t),e}var eK=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e0=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e1=/Z|[+-]\d\d(?::?\d\d)?/,e2=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e6=/^\/?Date\((-?\d+)/i,e3=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e5={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e7(e){var t,n,s,i,r,a,o=e._i,u=eK.exec(o)||e0.exec(o),l=e2.length,h=e4.length;if(u){for(t=0,c(e).iso=!0,n=l;t7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,h=eR(ti(),a,o),s=e8(n.gg,e._a[0],h.year),i=e8(n.w,h.week),null!=n.d?((r=n.d)<0||r>6)&&(l=!0):null!=n.e?(r=n.e+a,(n.e<0||n.e>6)&&(l=!0)):r=a),i<1||i>eW(s,a,o)?c(e)._overflowWeeks=!0:null!=l?c(e)._overflowWeekday=!0:(u=eP(s,i,r,a,o),e._a[0]=u.year,e._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(g=e8(e._a[0],_[0]),(e._dayOfYear>eO(g)||0===e._dayOfYear)&&(c(e)._overflowDayOfYear=!0),m=eT(g,0,e._dayOfYear),e._a[1]=m.getUTCMonth(),e._a[2]=m.getUTCDate()),f=0;f<3&&null==e._a[f];++f)e._a[f]=p[f]=_[f];for(;f<7;f++)e._a[f]=p[f]=null==e._a[f]?2===f?1:0:e._a[f];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eT:ex).apply(null,p),y=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==y&&(c(e).weekdayMismatch=!0)}}function tt(e){if(e._f===t.ISO_8601){e7(e);return}if(e._f===t.RFC_2822){e9(e);return}e._a=[],c(e).empty=!0;var n,s,r,a,o,u,l,h,d,f,m,_=""+e._i,y=_.length,g=0;for(o=0,m=(l=H(e._f,e._locale).match(N)||[]).length;o0&&c(e).unusedInput.push(d),_=_.slice(_.indexOf(u)+u.length),g+=u.length),W[h])?(u?c(e).empty=!1:c(e).unusedTokens.push(h),null!=u&&i(ey,h)&&ey[h](u,e._a,e,h)):e._strict&&!u&&c(e).unusedTokens.push(h);c(e).charsLeftOver=y-g,_.length>0&&c(e).unusedInput.push(_),e._a[3]<=12&&!0===c(e).bigHour&&e._a[3]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[3]=(n=e._locale,s=e._a[3],null==(r=e._meridiem)?s:null!=n.meridiemHour?n.meridiemHour(s,r):(null!=n.isPM&&((a=n.isPM(r))&&s<12&&(s+=12),a||12!==s||(s=0)),s)),null!==(f=c(e).era)&&(e._a[0]=e._locale.erasConvertYear(f,e._a[0])),te(e),eX(e)}function tn(e){var i,r=e._i,d=e._f;return(e._locale=e._locale||eQ(e._l),null===r||void 0===d&&""===r)?m({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),k(r))?new v(eX(r)):(u(r)?e._d=r:n(d)?function(e){var t,n,s,i,r,a,o=!1,u=e._f.length;if(0===u){c(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:m()});function to(e,t){var s,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return ti();for(i=1,s=t[0];i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function tW(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tC(e,t){return t.erasAbbrRegex(e)}function tU(){var e,t,n=[],s=[],i=[],r=[],a=this.eras();for(e=0,t=a.length;e(r=eW(e,s,i))&&(t=r),tL.call(this,e,t,n,s,i))}function tL(e,t,n,s,i){var r=eP(e,t,n,s,i),a=eT(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}C("N",0,0,"eraAbbr"),C("NN",0,0,"eraAbbr"),C("NNN",0,0,"eraAbbr"),C("NNNN",0,0,"eraName"),C("NNNNN",0,0,"eraNarrow"),C("y",["y",1],"yo","eraYear"),C("y",["yy",2],0,"eraYear"),C("y",["yyy",3],0,"eraYear"),C("y",["yyyy",4],0,"eraYear"),em("N",tC),em("NN",tC),em("NNN",tC),em("NNNN",function(e,t){return t.erasNameRegex(e)}),em("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eg(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?c(n).era=i:c(n).invalidEra=e}),em("y",el),em("yy",el),em("yyy",el),em("yyyy",el),em("yo",function(e,t){return t._eraYearOrdinalRegex||el}),eg(["y","yy","yyy","yyyy"],0),eg(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)}),C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tH("gggg","weekYear"),tH("ggggg","weekYear"),tH("GGGG","isoWeekYear"),tH("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),G.weekYear=1,G.isoWeekYear=1,em("G",eh),em("g",eh),em("GG",es,K),em("gg",es,K),em("GGGG",eo,et),em("gggg",eo,et),em("GGGGG",eu,en),em("ggggg",eu,en),ep(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=j(e)}),ep(["gg","GG"],function(e,n,s,i){n[i]=t.parseTwoDigitYear(e)}),C("Q",0,"Qo","quarter"),L("quarter","Q"),G.quarter=7,em("Q",X),eg("Q",function(e,t){t[1]=(j(e)-1)*3}),C("D",["DD",2],"Do","date"),L("date","D"),G.date=9,em("D",es),em("DD",es,K),em("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eg(["D","DD"],2),eg("Do",function(e,t){t[2]=j(e.match(es)[0])});var tV=Z("Date",!0);C("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),G.dayOfYear=4,em("DDD",ea),em("DDDD",ee),eg(["DDD","DDDD"],function(e,t,n){n._dayOfYear=j(e)}),C("m",["mm",2],0,"minute"),L("minute","m"),G.minute=14,em("m",es),em("mm",es,K),eg(["m","mm"],4);var tE=Z("Minutes",!1);C("s",["ss",2],0,"second"),L("second","s"),G.second=15,em("s",es),em("ss",es,K),eg(["s","ss"],5);var tG=Z("Seconds",!1);for(C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return 10*this.millisecond()}),C(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),C(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),C(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),C(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),C(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),G.millisecond=16,em("S",ea,X),em("SS",ea,K),em("SSS",ea,ee),_="SSSS";_.length<=9;_+="S")em(_,el);function tA(e,t){t[6]=j(("0."+e)*1e3)}for(_="S";_.length<=9;_+="S")eg(_,tA);y=Z("Milliseconds",!1),C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var tI=v.prototype;function tj(e){return e}tI.add=tY,tI.calendar=function(e,a){if(1==arguments.length){if(arguments[0]){var l,h,d;(l=arguments[0],k(l)||u(l)||tb(l)||o(l)||(h=n(l),d=!1,h&&(d=0===l.filter(function(e){return!o(e)&&tb(l)}).length),h&&d)||function(e){var t,n,a=s(e)&&!r(e),o=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=u.length;for(t=0;tn.valueOf():n.valueOf()n.year()||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):O(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tI.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+s+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tI[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tI.toJSON=function(){return this.isValid()?this.toISOString():null},tI.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tI.unix=function(){return Math.floor(this.valueOf()/1e3)},tI.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tI.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tI.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;eMath.abs(e)&&!s&&(e*=60);return!this._isUTC&&n&&(i=ty(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r===e||(!n||this._changeInProgress?tS(this,tv(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tI.utc=function(e){return this.utcOffset(0,e)},tI.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ty(this),"m")),this},tI.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tm(ed,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tI.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ti(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tI.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tI.isLocal=function(){return!!this.isValid()&&!this._isUTC},tI.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tI.isUtc=tg,tI.isUTC=tg,tI.zoneAbbr=function(){return this._isUTC?"UTC":""},tI.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tI.dates=D("dates accessor is deprecated. Use date instead.",tV),tI.months=D("months accessor is deprecated. Use month instead",eS),tI.years=D("years accessor is deprecated. Use year instead",eb),tI.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tI.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=tn(t))._a?(e=t._isUTC?d(t._a):ti(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s0):this._isDSTShifted=!1,this._isDSTShifted});var tZ=x.prototype;function tz(e,t,n,s){var i=eQ(),r=d().set(s,t);return i[n](r,e)}function t$(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return tz(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=tz(e,s,n,"month");return i}function tq(e,t,n,s){"boolean"==typeof e?(o(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,o(t)&&(n=t,t=void 0),t=t||"");var i,r=eQ(),a=e?r._week.dow:0,u=[];if(null!=n)return tz(t,(n+a)%7,s,"day");for(i=0;i<7;i++)u[i]=tz(t,(i+a)%7,s,"day");return u}tZ.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return O(s)?s.call(t,n):s},tZ.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tZ.invalidDate=function(){return this._invalidDate},tZ.ordinal=function(e){return this._ordinal.replace("%d",e)},tZ.preparse=tj,tZ.postformat=tj,tZ.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return O(i)?i(e,t,n,s):i.replace(/%d/i,e)},tZ.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},tZ.set=function(e){var t,n;for(n in e)i(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tZ.eras=function(e,n){var s,i,r,a=this._eras||eQ("en")._eras;for(s=0,i=a.length;s=0)return u[s]},tZ.erasConvertYear=function(e,n){var s=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*s},tZ.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tU.call(this),e?this._erasAbbrRegex:this._erasRegex},tZ.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tU.call(this),e?this._erasNameRegex:this._erasRegex},tZ.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tU.call(this),e?this._erasNarrowRegex:this._erasRegex},tZ.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ek).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tZ.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ek.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tZ.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return eM.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++)if(i=d([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e)||n&&"MMM"===t&&this._shortMonthsParse[s].test(e)||!n&&this._monthsParse[s].test(e))return s},tZ.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eY.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=ef),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tZ.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eY.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=ef),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tZ.week=function(e){return eR(e,this._week.dow,this._week.doy).week},tZ.firstDayOfYear=function(){return this._week.doy},tZ.firstDayOfWeek=function(){return this._week.dow},tZ.weekdays=function(e,t){var s=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eC(s,this._week.dow):e?s[e.day()]:s},tZ.weekdaysMin=function(e){return!0===e?eC(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tZ.weekdaysShort=function(e){return!0===e?eC(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tZ.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return eH.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=d([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e)||n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},tZ.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ef),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tZ.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ef),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tZ.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eF.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ef),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tZ.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tZ.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},eB("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===j(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=D("moment.lang is deprecated. Use moment.locale instead.",eB),t.langData=D("moment.langData is deprecated. Use moment.localeData instead.",eQ);var tB=Math.abs;function tJ(e,t,n,s){var i=tv(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function tQ(e){return e<0?Math.floor(e):Math.ceil(e)}function tX(e){return 4800*e/146097}function tK(e){return 146097*e/4800}function t0(e){return function(){return this.as(e)}}var t1=t0("ms"),t2=t0("s"),t4=t0("m"),t6=t0("h"),t3=t0("d"),t5=t0("w"),t7=t0("M"),t9=t0("Q"),t8=t0("y");function ne(e){return function(){return this.isValid()?this._data[e]:NaN}}var nt=ne("milliseconds"),nn=ne("seconds"),ns=ne("minutes"),ni=ne("hours"),nr=ne("days"),na=ne("months"),no=ne("years"),nu=Math.round,nl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nh(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}var nd=Math.abs;function nc(e){return(e>0)-(e<0)||+e}function nf(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=nd(this._milliseconds)/1e3,l=nd(this._days),h=nd(this._months),d=this.asSeconds();return d?(e=I(u/60),t=I(e/60),u%=60,e%=60,n=I(h/12),h%=12,s=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",r=nc(this._months)!==nc(d)?"-":"",a=nc(this._days)!==nc(d)?"-":"",o=nc(this._milliseconds)!==nc(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(h?r+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+s+"S":"")):"P0D"}var nm=tl.prototype;return nm.isValid=function(){return this._isValid},nm.abs=function(){var e=this._data;return this._milliseconds=tB(this._milliseconds),this._days=tB(this._days),this._months=tB(this._months),e.milliseconds=tB(e.milliseconds),e.seconds=tB(e.seconds),e.minutes=tB(e.minutes),e.hours=tB(e.hours),e.months=tB(e.months),e.years=tB(e.years),this},nm.add=function(e,t){return tJ(this,e,t,1)},nm.subtract=function(e,t){return tJ(this,e,t,-1)},nm.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+tX(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(tK(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw Error("Unknown unit "+e)}},nm.asMilliseconds=t1,nm.asSeconds=t2,nm.asMinutes=t4,nm.asHours=t6,nm.asDays=t3,nm.asWeeks=t5,nm.asMonths=t7,nm.asQuarters=t9,nm.asYears=t8,nm.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*j(this._months/12):NaN},nm._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*tQ(tK(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=I(r/1e3),u.seconds=e%60,t=I(e/60),u.minutes=t%60,n=I(t/60),u.hours=n%24,a+=I(n/24),o+=i=I(tX(a)),a-=tQ(tK(i)),s=I(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},nm.clone=function(){return tv(this)},nm.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},nm.milliseconds=nt,nm.seconds=nn,nm.minutes=ns,nm.hours=ni,nm.days=nr,nm.weeks=function(){return I(this.days()/7)},nm.months=na,nm.years=no,nm.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i,r,a,o,u,l,h,d,c,f,m,_=!1,y=nl;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(_=e),"object"==typeof t&&(y=Object.assign({},nl,t),null!=t.s&&null==t.ss&&(y.ss=t.s-1)),f=this.localeData(),n=!_,s=y,r=nu((i=tv(this).abs()).as("s")),a=nu(i.as("m")),o=nu(i.as("h")),u=nu(i.as("d")),l=nu(i.as("M")),h=nu(i.as("w")),d=nu(i.as("y")),c=r<=s.ss&&["s",r]||r0,c[4]=f,m=nh.apply(null,c),_&&(m=f.pastFuture(+this,m)),f.postformat(m)},nm.toISOString=nf,nm.toString=nf,nm.toJSON=nf,nm.locale=tT,nm.localeData=tP,nm.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nf),nm.lang=tN,C("X",0,0,"unix"),C("x",0,0,"valueOf"),em("x",eh),em("X",/[+-]?\d+(\.\d{1,3})?/),eg("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),eg("x",function(e,t,n){n._d=new Date(j(e))}),//! moment.js -t.version="2.29.4",q=ti,t.fn=tI,t.min=function(){var e=[].slice.call(arguments,0);return to("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return to("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(e){return ti(1e3*e)},t.months=function(e,t){return t$(e,t,"months")},t.isDate=u,t.locale=eB,t.invalid=m,t.duration=tv,t.isMoment=k,t.weekdays=function(e,t,n){return tq(e,t,n,"weekdays")},t.parseZone=function(){return ti.apply(null,arguments).parseZone()},t.localeData=eQ,t.isDuration=th,t.monthsShort=function(e,t){return t$(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return tq(e,t,n,"weekdaysMin")},t.defineLocale=eJ,t.updateLocale=function(e,t){if(null!=t){var n,s,i=ej;null!=eZ[e]&&null!=eZ[e].parentLocale?eZ[e].set(b(eZ[e]._config,t)):(null!=(s=eq(e))&&(i=s._config),t=b(i,t),null==s&&(t.abbr=e),(n=new x(t)).parentLocale=eZ[e],eZ[e]=n),eB(e)}else null!=eZ[e]&&(null!=eZ[e].parentLocale?(eZ[e]=eZ[e].parentLocale,e===eB()&&eB(e)):null!=eZ[e]&&delete eZ[e]);return eZ[e]},t.locales=function(){return J(eZ)},t.weekdaysShort=function(e,t,n){return tq(e,t,n,"weekdaysShort")},t.normalizeUnits=V,t.relativeTimeRounding=function(e){return void 0===e?nu:"function"==typeof e&&(nu=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==nl[e]&&(void 0===t?nl[e]:(nl[e]=t,"s"===e&&(nl.ss=t-1),!0))},t.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=tI,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/946-3a66ddfd20b8ad3d.js b/pilot/server/static/_next/static/chunks/946-3a66ddfd20b8ad3d.js deleted file mode 100644 index 072bdcb97..000000000 --- a/pilot/server/static/_next/static/chunks/946-3a66ddfd20b8ad3d.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[946],{14108:function(e,o,r){r.d(o,{n:function(){return ed},Z:function(){return eb}});var t=r(8683),n=r.n(t),l=r(73234),i=r(92510),a=r(86006),c=r(98498),s=r(79746),d=r(52593),u=r(40650);let b=e=>{let{componentCls:o,colorPrimary:r}=e;return{[o]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:`box-shadow 0.4s ${e.motionEaseOutCirc},opacity 2s ${e.motionEaseOutCirc}`,"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}};var g=(0,u.Z)("Wave",e=>[b(e)]),p=r(78641),m=r(88101),f=r(66643);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&function(e){let o=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!o||!o[1]||!o[2]||!o[3]||!(o[1]===o[2]&&o[2]===o[3])}(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function $(e){return Number.isNaN(e)?0:e}let y=e=>{let{className:o,target:r}=e,t=a.useRef(null),[l,i]=a.useState(null),[c,s]=a.useState([]),[d,u]=a.useState(0),[b,g]=a.useState(0),[y,h]=a.useState(0),[O,E]=a.useState(0),[C,x]=a.useState(!1),S={left:d,top:b,width:y,height:O,borderRadius:c.map(e=>`${e}px`).join(" ")};function j(){let e=getComputedStyle(r);i(function(e){let{borderTopColor:o,borderColor:r,backgroundColor:t}=getComputedStyle(e);return v(o)?o:v(r)?r:v(t)?t:null}(r));let o="static"===e.position,{borderLeftWidth:t,borderTopWidth:n}=e;u(o?r.offsetLeft:$(-parseFloat(t))),g(o?r.offsetTop:$(-parseFloat(n))),h(r.offsetWidth),E(r.offsetHeight);let{borderTopLeftRadius:l,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:d}=e;s([l,a,d,c].map(e=>$(parseFloat(e))))}return(l&&(S["--wave-color"]=l),a.useEffect(()=>{if(r){let e;let o=(0,f.Z)(()=>{j(),x(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(j)).observe(r),()=>{f.Z.cancel(o),null==e||e.disconnect()}}},[]),C)?a.createElement(p.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,o)=>{var r;if(o.deadline||"opacity"===o.propertyName){let e=null===(r=t.current)||void 0===r?void 0:r.parentElement;(0,m.v)(e).then(()=>{null==e||e.remove()})}return!1}},e=>{let{className:r}=e;return a.createElement("div",{ref:t,className:n()(o,r),style:S})}):null};var h=e=>{var o;let{children:r,disabled:t}=e,{getPrefixCls:l}=(0,a.useContext)(s.E_),u=(0,a.useRef)(null),b=l("wave"),[,p]=g(b),f=(o=n()(b,p),function(){let e=u.current;!function(e,o){let r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",null==e||e.insertBefore(r,null==e?void 0:e.firstChild),(0,m.s)(a.createElement(y,{target:e,className:o}),r)}(e,o)});if(a.useEffect(()=>{let e=u.current;if(!e||1!==e.nodeType||t)return;let o=o=>{"INPUT"===o.target.tagName||!(0,c.Z)(o.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||f()};return e.addEventListener("click",o,!0),()=>{e.removeEventListener("click",o,!0)}},[t]),!a.isValidElement(r))return null!=r?r:null;let v=(0,i.Yr)(r)?(0,i.sQ)(r.ref,u):u;return(0,d.Tm)(r,{ref:v})},O=r(20538),E=r(30069),C=r(12381);let x=(0,a.forwardRef)((e,o)=>{let{className:r,style:t,children:l,prefixCls:i}=e,c=n()(`${i}-icon`,r);return a.createElement("span",{ref:o,className:c,style:t},l)});var S=r(75710);let j=(0,a.forwardRef)((e,o)=>{let{prefixCls:r,className:t,style:l,iconClassName:i}=e,c=n()(`${r}-loading-icon`,t);return a.createElement(x,{prefixCls:r,className:c,style:l,ref:o},a.createElement(S.Z,{className:i}))}),k=()=>({width:0,opacity:0,transform:"scale(0)"}),w=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var N=e=>{let{prefixCls:o,loading:r,existIcon:t,className:n,style:l}=e;return t?a.createElement(j,{prefixCls:o,className:n,style:l}):a.createElement(p.ZP,{visible:!!r,motionName:`${o}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:k,onAppearActive:w,onEnterStart:k,onEnterActive:w,onLeaveStart:w,onLeaveActive:k},(e,r)=>{let{className:t,style:i}=e;return a.createElement(j,{prefixCls:o,className:n,style:Object.assign(Object.assign({},l),i),ref:r,iconClassName:t})})},H=r(31508),I=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&0>o.indexOf(t)&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,t=Object.getOwnPropertySymbols(e);no.indexOf(t[n])&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(r[t[n]]=e[t[n]]);return r};let T=a.createContext(void 0),P=/^[\u4e00-\u9fa5]{2}$/,A=P.test.bind(P);function R(e){return"text"===e||"link"===e}var z=r(98663),B=r(75872),L=r(70721);let W=(e,o)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:o}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:o}}}}});var Z=e=>{let{componentCls:o,fontSize:r,lineWidth:t,colorPrimaryHover:n,colorErrorHover:l}=e;return{[`${o}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${o}`]:{"&:not(:last-child)":{[`&, & > ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-t,[`&, & > ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[o]:{position:"relative",zIndex:1,[`&:hover, - &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${o}-icon-only`]:{fontSize:r}},W(`${o}-primary`,n),W(`${o}-danger`,l)]}};let D=e=>{let{componentCls:o,iconCls:r,buttonFontWeight:t}=e;return{[o]:{outline:"none",position:"relative",display:"inline-block",fontWeight:t,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${o}-icon`]:{lineHeight:0},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},[`&:not(${o}-icon-only) > ${o}-icon`]:{[`&${o}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,z.Qy)(e)),[`&-icon-only${o}-compact-item`]:{flex:"none"},[`&-compact-item${o}-primary`]:{[`&:not([disabled]) + ${o}-compact-item${o}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${2*e.lineWidth}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${o}-primary`]:{[`&:not([disabled]) + ${o}-compact-vertical-item${o}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${2*e.lineWidth}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},_=(e,o)=>({"&:not(:disabled)":{"&:hover":e,"&:active":o}}),F=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),G=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),M=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Q=(e,o,r,t,n,l,i)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:o||void 0,backgroundColor:"transparent",borderColor:r||void 0,boxShadow:"none"},_(Object.assign({backgroundColor:"transparent"},l),Object.assign({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:t||void 0,borderColor:n||void 0}})}),X=e=>({"&:disabled":Object.assign({},M(e))}),U=e=>Object.assign({},X(e)),V=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Y=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},U(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),_({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Q(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},_({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Q(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),X(e))}),q=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},U(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),_({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Q(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},_({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Q(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),X(e))}),J=e=>Object.assign(Object.assign({},Y(e)),{borderStyle:"dashed"}),K=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},_({color:e.colorLinkHover},{color:e.colorLinkActive})),V(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},_({color:e.colorErrorHover},{color:e.colorErrorActive})),V(e))}),ee=e=>Object.assign(Object.assign(Object.assign({},_({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),V(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},V(e)),_({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),eo=e=>Object.assign(Object.assign({},M(e)),{[`&${e.componentCls}:hover`]:Object.assign({},M(e))}),er=e=>{let{componentCls:o}=e;return{[`${o}-default`]:Y(e),[`${o}-primary`]:q(e),[`${o}-dashed`]:J(e),[`${o}-link`]:K(e),[`${o}-text`]:ee(e),[`${o}-disabled`]:eo(e)}},et=function(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:r,controlHeight:t,fontSize:n,lineHeight:l,lineWidth:i,borderRadius:a,buttonPaddingHorizontal:c,iconCls:s}=e,d=`${r}-icon-only`;return[{[`${r}${o}`]:{fontSize:n,height:t,padding:`${Math.max(0,(t-n*l)/2-i)}px ${c-i}px`,borderRadius:a,[`&${d}`]:{width:t,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${o}`]:F(e)},{[`${r}${r}-round${o}`]:G(e)}]},en=e=>et(e),el=e=>{let o=(0,L.TS)(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.fontSizeLG-2});return et(o,`${e.componentCls}-sm`)},ei=e=>{let o=(0,L.TS)(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.fontSizeLG+2});return et(o,`${e.componentCls}-lg`)},ea=e=>{let{componentCls:o}=e;return{[o]:{[`&${o}-block`]:{width:"100%"}}}};var ec=(0,u.Z)("Button",e=>{let{controlTmpOutline:o,paddingContentHorizontal:r}=e,t=(0,L.TS)(e,{colorOutlineDefault:o,buttonPaddingHorizontal:r,buttonIconOnlyFontSize:e.fontSizeLG,buttonFontWeight:400});return[D(t),el(t),en(t),ei(t),ea(t),er(t),Z(t),(0,B.c)(e),function(e){var o;let r=`${e.componentCls}-compact-vertical`;return{[r]:Object.assign(Object.assign({},{[`&-item:not(${r}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}),(o=e.componentCls,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${o}-sm, &${o}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${o}-sm, &${o}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(e)]}),es=function(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&0>o.indexOf(t)&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,t=Object.getOwnPropertySymbols(e);no.indexOf(t[n])&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(r[t[n]]=e[t[n]]);return r};function ed(e){return"danger"===e?{danger:!0}:{type:e}}let eu=(0,a.forwardRef)((e,o)=>{var r,t;let{loading:c=!1,prefixCls:u,type:b="default",danger:g,shape:p="default",size:m,styles:f,disabled:v,className:$,rootClassName:y,children:S,icon:j,ghost:k=!1,block:w=!1,htmlType:H="button",classNames:I,style:P={}}=e,z=es(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:B,autoInsertSpaceInButton:L,direction:W,button:Z}=(0,a.useContext)(s.E_),D=B("btn",u),[_,F]=ec(D),G=(0,a.useContext)(O.Z),M=null!=v?v:G,Q=(0,a.useContext)(T),X=(0,a.useMemo)(()=>(function(e){if("object"==typeof e&&e){let o=null==e?void 0:e.delay,r=!Number.isNaN(o)&&"number"==typeof o;return{loading:!1,delay:r?o:0}}return{loading:!!e,delay:0}})(c),[c]),[U,V]=(0,a.useState)(X.loading),[Y,q]=(0,a.useState)(!1),J=(0,a.createRef)(),K=(0,i.sQ)(o,J),ee=1===a.Children.count(S)&&!j&&!R(b);(0,a.useEffect)(()=>{let e=null;return X.delay>0?e=setTimeout(()=>{e=null,V(!0)},X.delay):V(X.loading),function(){e&&(clearTimeout(e),e=null)}},[X]),(0,a.useEffect)(()=>{if(!K||!K.current||!1===L)return;let e=K.current.textContent;ee&&A(e)?Y||q(!0):Y&&q(!1)},[K]);let eo=o=>{let{onClick:r}=e;if(U||M){o.preventDefault();return}null==r||r(o)},er=!1!==L,{compactSize:et,compactItemClassnames:en}=(0,C.ri)(D,W),el=(0,E.Z)(e=>{var o,r;return null!==(r=null!==(o=null!=et?et:Q)&&void 0!==o?o:m)&&void 0!==r?r:e}),ei=el&&({large:"lg",small:"sm",middle:void 0})[el]||"",ea=U?"loading":j,ed=(0,l.Z)(z,["navigate"]),eu=void 0!==ed.href&&M,eb=n()(D,F,{[`${D}-${p}`]:"default"!==p&&p,[`${D}-${b}`]:b,[`${D}-${ei}`]:ei,[`${D}-icon-only`]:!S&&0!==S&&!!ea,[`${D}-background-ghost`]:k&&!R(b),[`${D}-loading`]:U,[`${D}-two-chinese-chars`]:Y&&er&&!U,[`${D}-block`]:w,[`${D}-dangerous`]:!!g,[`${D}-rtl`]:"rtl"===W,[`${D}-disabled`]:eu},en,$,y,null==Z?void 0:Z.className),eg=Object.assign(Object.assign({},null==Z?void 0:Z.style),P),ep=n()(null==I?void 0:I.icon,null===(r=null==Z?void 0:Z.classNames)||void 0===r?void 0:r.icon),em=Object.assign(Object.assign({},(null==f?void 0:f.icon)||{}),(null===(t=null==Z?void 0:Z.styles)||void 0===t?void 0:t.icon)||{}),ef=j&&!U?a.createElement(x,{prefixCls:D,className:ep,style:em},j):a.createElement(N,{existIcon:!!j,prefixCls:D,loading:!!U}),ev=S||0===S?function(e,o){let r=!1,t=[];return a.Children.forEach(e,e=>{let o=typeof e,n="string"===o||"number"===o;if(r&&n){let o=t.length-1,r=t[o];t[o]=`${r}${e}`}else t.push(e);r=n}),a.Children.map(t,e=>(function(e,o){if(null==e)return;let r=o?" ":"";return"string"!=typeof e&&"number"!=typeof e&&"string"==typeof e.type&&A(e.props.children)?(0,d.Tm)(e,{children:e.props.children.split("").join(r)}):"string"==typeof e?A(e)?a.createElement("span",null,e.split("").join(r)):a.createElement("span",null,e):(0,d.M2)(e)?a.createElement("span",null,e):e})(e,o))}(S,ee&&er):null;if(void 0!==ed.href)return _(a.createElement("a",Object.assign({},ed,{className:eb,style:eg,onClick:eo,ref:K}),ef,ev));let e$=a.createElement("button",Object.assign({},z,{type:H,className:eb,style:eg,onClick:eo,disabled:M,ref:K}),ef,ev);return R(b)||(e$=a.createElement(h,{disabled:!!U},e$)),_(e$)});eu.Group=e=>{let{getPrefixCls:o,direction:r}=a.useContext(s.E_),{prefixCls:t,size:l,className:i}=e,c=I(e,["prefixCls","size","className"]),d=o("btn-group",t),[,,u]=(0,H.dQ)(),b="";switch(l){case"large":b="lg";break;case"small":b="sm"}let g=n()(d,{[`${d}-${b}`]:b,[`${d}-rtl`]:"rtl"===r},i,u);return a.createElement(T.Provider,{value:l},a.createElement("div",Object.assign({},c,{className:g})))},eu.__ANT_BUTTON=!0;var eb=eu},50946:function(e,o,r){var t=r(14108);o.ZP=t.Z}}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-0aecadd6ee892758.js b/pilot/server/static/_next/static/chunks/app/chat/page-0aecadd6ee892758.js deleted file mode 100644 index 463560d47..000000000 --- a/pilot/server/static/_next/static/chunks/app/chat/page-0aecadd6ee892758.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1929],{86066:function(e,l,t){Promise.resolve().then(t.bind(t,48110))},48110:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return ec}});var n=t(9268),i=t(86006),a=t(57931),d=t(44972),o=t(89081),r=t(83192),s=t(35891),u=t(22046),c=t(71451),v=t(24857),h=t(53113),x=t(90545),f=t(48755),m=t(1777),p=t(76447),j=t(61469),g=t(57746);function b(){}function y(e){let{width:l="100%",height:a="100%",value:d,defaultValue:o,language:r,theme:s,options:u,overrideServices:c,editorWillMount:v,editorDidMount:h,editorWillUnmount:x,className:f,description:m,uri:p,editorInstanceRef:j,handleChange:g}=e,b=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(12116);return e}},[]),y=(0,i.useRef)(null),_=(0,i.useRef)(null),w=(0,i.useRef)(null),Z=(0,i.useRef)(null),N=i.useMemo(()=>({width:l,height:a,overflow:"hidden"}),[l,a]),S=()=>{let e=null==v?void 0:v(b);return e||{}},k=()=>{if(!(null==_?void 0:_.current)){console.error("Can not get editor element!");return}if(null==h||h(null==_?void 0:_.current,b),null==j||j(null==_?void 0:_.current),w){var e,l;w.current=null==_?void 0:null===(e=_.current)||void 0===e?void 0:null===(l=e.onDidChangeModelContent)||void 0===l?void 0:l.call(e,e=>{if(!Z.current){var l,t,n,i;let e=null==_?void 0:null===(l=_.current)||void 0===l?void 0:l.getModel(),a=null==_?void 0:null===(t=_.current)||void 0===t?void 0:t.getVisibleRanges(),d=null==e?void 0:e.getDecorationsInRange(null==a?void 0:a[0]);if(d){let l;for(let e=0;e<(null==d?void 0:d.length);e++){let t=d[e],n=t.options;n&&"my-description"===n.className&&(l=t)}if(l){let t=null==e?void 0:e.getValueInRange(new b.Range(l.range.startLineNumber,1,l.range.endLineNumber+1,1)),n=null==e?void 0:e.getLinesContent(),i=null==n?void 0:n.slice(l.range.endLineNumber);g(null==i?void 0:i.join("\n"),t);return}}null==g||g(null==_?void 0:null===(n=_.current)||void 0===n?void 0:null===(i=n.getValue)||void 0===i?void 0:i.call(n),void 0)}})}},P=()=>{if(!(null==_?void 0:_.current)){console.error("Can not get editor element!");return}null==x||x(null==_?void 0:_.current,b)};return(0,i.useEffect)(()=>{let e=null!==d?d:o;if(y.current){let l={...u,...S()},t=null==p?void 0:p(b),n=t&&b.editor.getModel(t);n?(n.setValue(e),b.editor.setModelLanguage(n,r)):n=b.editor.createModel(e,r,t),_.current=b.editor.create(y.current,{model:n,...f?{extraEditorClassName:f}:{},...l,...s?{theme:s}:{},automaticLayout:!0},c),k()}},[]),(0,i.useEffect)(()=>{if(_.current){var e;let l=_.current.getModel();Z.current=!0,_.current.pushUndoStop(),null==l||l.pushEditOperations([],[{range:null==l?void 0:l.getFullModelRange(),text:"\n".concat(m?"-- "+m:"","\n\n")+d}],void 0);let t=null==_?void 0:null===(e=_.current)||void 0===e?void 0:e.getVisibleRanges(),n=null==l?void 0:l.getDecorationsInRange(null==t?void 0:t[0]),i=[];null==n||n.forEach(e=>{var l;(null==e?void 0:null===(l=e.options)||void 0===l?void 0:l.className)==="my-description"&&i.push(e.id)}),null==l||l.deltaDecorations(i,[{range:new b.Range(1,1,3,1),options:{before:{content:"-- 注释开始"},after:{content:"-- 注释结束"},className:"my-description"}}]),_.current.pushUndoStop(),Z.current=!1}},[d,m]),(0,i.useEffect)(()=>{if(_.current){let e=_.current.getModel();b.editor.setModelLanguage(e,r)}},[r]),(0,i.useEffect)(()=>{if(_.current){let{model:e,...l}=u;_.current.updateOptions({...f?{extraEditorClassName:f}:{},...l,wordWrap:"on"})}},[f,u]),(0,i.useEffect)(()=>{b.editor.setTheme(s)},[s]),(0,i.useEffect)(()=>()=>{if(_.current){P(),_.current.dispose();let e=_.current.getModel();e&&e.dispose()}w.current&&w.current.dispose()},[]),(0,n.jsx)("div",{ref:y,className:"react-monaco-editor-container",style:N})}y.defaultProps={value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:b,editorDidMount:b,editorWillUnmount:b,onChange:b,className:null},y.displayName="MonacoEditor";var _=t(78915),w=t(56008),Z=t(90022),N=t(8997),S=t(91440),k=t(84835),P=t.n(k),C=function(e){let{type:l,values:t,title:a,description:d}=e,o=i.useMemo(()=>{if(!((null==t?void 0:t.length)>0))return(0,n.jsx)("div",{className:"h-full",children:(0,n.jsx)(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,description:"图表数据为空"})});if("IndicatorValue"!==l){if("Table"===l){var e,i,a;let l=P().groupBy(t,"type");return(0,n.jsx)("div",{className:"flex-1 overflow-auto",children:(0,n.jsxs)(r.Z,{"aria-label":"basic table",hoverRow:!0,stickyHeader:!0,children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(l).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(e=Object.values(l))||void 0===e?void 0:null===(i=e[0])||void 0===i?void 0:null===(a=i.map)||void 0===a?void 0:a.call(i,(e,t)=>{var i;return(0,n.jsx)("tr",{children:null===(i=Object.keys(l))||void 0===i?void 0:i.map(e=>{var i;return(0,n.jsx)("td",{children:(null==l?void 0:null===(i=l[e])||void 0===i?void 0:i[t].value)||""},e)})},t)})})]})})}return"BarChart"===l?(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsxs)(S.Chart,{autoFit:!0,data:t||[],forceUpdate:!0,children:[(0,n.jsx)(S.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,S.getTheme)().colors10[0]}}),(0,n.jsx)(S.Tooltip,{shared:!0})]})}):"LineChart"===l?(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(S.Chart,{forceUpdate:!0,autoFit:!0,data:t||[],children:(0,n.jsx)(S.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})}):(0,n.jsx)("div",{className:"h-full",children:(0,n.jsx)(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,description:"暂不支持该图表类型"})})}},[t,l]);return"IndicatorValue"===l&&(null==t?void 0:t.length)>0?(0,n.jsx)("div",{className:"flex flex-row gap-3",children:t.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"justify-around",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(u.ZP,{children:"".concat(e.type,": ").concat(e.value)})]})})},e.name))}):(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(Z.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[a&&(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:a}),d&&(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:d}),o]})})})};let{Search:E}=m.default;function R(e){var l,t,a;let{editorValue:d,chartData:o,tableData:s,handleChange:u}=e,c=i.useMemo(()=>o?(0,n.jsx)("div",{className:"flex-1 overflow-auto p-3",style:{flexShrink:0,overflow:"hidden"},children:(0,n.jsx)(C,{...o})}):(0,n.jsx)("div",{}),[o]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,n.jsx)("div",{className:"flex-1",style:{flexShrink:0,overflow:"auto"},children:(0,n.jsx)(y,{value:null==d?void 0:d.sql,language:"mysql",handleChange:u,description:null==d?void 0:d.thoughts})}),c]}),(0,n.jsx)("div",{className:"h-60 border-[var(--joy-palette-divider)] border-t border-solid overflow-auto",children:(null==s?void 0:null===(l=s.values)||void 0===l?void 0:l.length)>0?(0,n.jsxs)(r.Z,{"aria-label":"basic table",stickyHeader:!0,children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:null==s?void 0:null===(t=s.columns)||void 0===t?void 0:t.map((e,l)=>(0,n.jsx)("th",{children:e},e+l))})}),(0,n.jsx)("tbody",{children:null==s?void 0:null===(a=s.values)||void 0===a?void 0:a.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(e))||void 0===t?void 0:t.map(l=>(0,n.jsx)("td",{children:e[l]},l))},l)})})]}):(0,n.jsx)("div",{className:"h-full flex justify-center items-center",children:(0,n.jsx)(p.Z,{})})})]})}var D=function(){var e,l,t,a,d;let[r,m]=i.useState([]),[p,b]=i.useState(""),[y,Z]=i.useState(),[N,S]=i.useState(!0),[k,P]=i.useState(),[C,D]=i.useState(),[O,M]=i.useState(),[q,L]=i.useState(),[T,B]=i.useState(),I=(0,w.useSearchParams)(),V=I.get("id"),A=I.get("scene"),{data:F,loading:z}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/editor/sql/rounds",{con_uid:V}),{onSuccess:e=>{var l,t;let n=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l[(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.length)-1];n&&Z(null==n?void 0:n.round)}}),{run:J,loading:W}=(0,o.Z)(async()=>{var e,l;let t=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.PR)("/api/v1/editor/sql/run",{db_name:t,sql:null==O?void 0:O.sql})},{manual:!0,onSuccess:e=>{var l,t;L({columns:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.colunms,values:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.values})}}),{run:U,loading:H}=(0,o.Z)(async()=>{var e,l;let t=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name,n={db_name:t,sql:null==O?void 0:O.sql};return"chat_dashboard"===A&&(n.chart_type=null==O?void 0:O.showcase),await (0,_.PR)("/api/v1/editor/chart/run",n)},{manual:!0,ready:!!(null==O?void 0:O.sql),onSuccess:e=>{if(null==e?void 0:e.success){var l,t,n,i,a,d,o;L({columns:(null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(t=l.sql_data)||void 0===t?void 0:t.colunms)||[],values:(null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(i=n.sql_data)||void 0===i?void 0:i.values)||[]}),(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.chart_values)?P({type:null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.chart_type,values:null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.chart_values,title:null==O?void 0:O.title,description:null==O?void 0:O.thoughts}):P(void 0)}}}),{run:G,loading:K}=(0,o.Z)(async()=>{var e,l,t,n,i;let a=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.PR)("/api/v1/sql/editor/submit",{conv_uid:V,db_name:a,conv_round:y,old_sql:null==C?void 0:C.sql,old_speak:null==C?void 0:C.thoughts,new_sql:null==O?void 0:O.sql,new_speak:(null===(t=null==O?void 0:null===(n=O.thoughts)||void 0===n?void 0:n.match(/^\n--(.*)\n\n$/))||void 0===t?void 0:null===(i=t[1])||void 0===i?void 0:i.trim())||(null==O?void 0:O.thoughts)})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&J()}}),{run:Y,loading:$}=(0,o.Z)(async()=>{var e,l,t,n,i,a;let d=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.PR)("/api/v1/chart/editor/submit",{conv_uid:V,chart_title:null==O?void 0:O.title,db_name:d,old_sql:null==C?void 0:null===(t=C[T])||void 0===t?void 0:t.sql,new_chart_type:null==O?void 0:O.showcase,new_sql:null==O?void 0:O.sql,new_comment:(null===(n=null==O?void 0:null===(i=O.thoughts)||void 0===i?void 0:i.match(/^\n--(.*)\n\n$/))||void 0===n?void 0:null===(a=n[1])||void 0===a?void 0:a.trim())||(null==O?void 0:O.thoughts),gmt_create:new Date().getTime()})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&U()}}),{data:Q}=(0,o.Z)(async()=>{var e,l;let t=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.Tk)("/v1/editor/db/tables",{db_name:t,page_index:1,page_size:200})},{ready:!!(null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name),refreshDeps:[null===(t=null==F?void 0:null===(a=F.data)||void 0===a?void 0:a.find(e=>e.round===y))||void 0===t?void 0:t.db_name]}),{run:X}=(0,o.Z)(async e=>await (0,_.Tk)("/v1/editor/sql",{con_uid:V,round:e}),{manual:!0,onSuccess:e=>{let l;try{if(Array.isArray(null==e?void 0:e.data))l=null==e?void 0:e.data,B("0");else if("string"==typeof(null==e?void 0:e.data)){let t=JSON.parse(null==e?void 0:e.data);l=t}else l=null==e?void 0:e.data}catch(e){console.log(e)}finally{D(l),Array.isArray(l)?M(null==l?void 0:l[Number(T||0)]):M(l)}}}),ee=i.useMemo(()=>{let e=(l,t)=>l.map(l=>{let i=l.title,a=i.indexOf(p),d=i.substring(0,a),o=i.slice(a+p.length),r=a>-1?(0,n.jsx)(s.Z,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("span",{children:[d,(0,n.jsx)("span",{className:"text-[#1677ff]",children:p}),o,(null==l?void 0:l.type)&&(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",className:"inline pl-0.5",children:"[".concat(null==l?void 0:l.type,"]")})]})}):(0,n.jsx)(s.Z,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("span",{children:[i,(null==l?void 0:l.type)&&(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",className:"inline pl-0.5",children:"[".concat(null==l?void 0:l.type,"]")})]})});if(l.children){let n=t?String(t)+"_"+l.key:l.key;return{title:i,showTitle:r,key:n,children:e(l.children,n)}}return{title:i,showTitle:r,key:l.key}});return(null==Q?void 0:Q.data)?e([null==Q?void 0:Q.data]):[]},[p,Q]),el=i.useMemo(()=>{let e=[],l=(t,n)=>{if(t&&!((null==t?void 0:t.length)<=0))for(let i=0;i{let t;for(let n=0;nl.key===e)?t=i.key:et(e,i.children)&&(t=et(e,i.children)))}return t};return i.useEffect(()=>{y&&X(y)},[X,y]),i.useEffect(()=>{C&&"chat_dashboard"===A&&T&&U()},[T,A,C,U]),i.useEffect(()=>{C&&"chat_dashboard"!==A&&J()},[A,C,J]),(0,n.jsxs)("div",{className:"flex flex-col w-full h-full",children:[(0,n.jsxs)("div",{className:"bg-[#f8f8f8] border-[var(--joy-palette-divider)] border-b border-solid flex items-center px-3 justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center py-3",children:[(0,n.jsx)(f.Z,{className:"mr-2"}),(0,n.jsx)(c.Z,{className:"h-4 min-w-[240px]",size:"sm",value:y,onChange:(e,l)=>{Z(l)},children:null==F?void 0:null===(d=F.data)||void 0===d?void 0:d.map(e=>(0,n.jsx)(v.Z,{value:null==e?void 0:e.round,children:null==e?void 0:e.round_name},null==e?void 0:e.round))})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(h.Z,{className:"bg-[#1677ff] text-[#fff] hover:bg-[#1c558e]",loading:W||H,onClick:async()=>{"chat_dashboard"===A?U():J()},children:"Run"}),(0,n.jsx)(h.Z,{variant:"outlined",className:"ml-3",loading:K||$,onClick:async()=>{"chat_dashboard"===A?await Y():await G()},children:"Save"})]})]}),(0,n.jsxs)("div",{className:"flex flex-1 overflow-auto",children:[(0,n.jsxs)("div",{className:"text h-full border-[var(--joy-palette-divider)] border-r border-solid p-3 max-h-full overflow-auto",style:{width:"300px"},children:[(0,n.jsx)(E,{style:{marginBottom:8},placeholder:"Search",onChange:e=>{let{value:l}=e.target;if(null==Q?void 0:Q.data){if(l){let e=el.map(e=>e.title.indexOf(l)>-1?et(e.key,ee):null).filter((e,l,t)=>e&&t.indexOf(e)===l);m(e)}else m([]);b(l),S(!0)}}}),(0,n.jsx)(j.Z,{onExpand:e=>{m(e),S(!1)},expandedKeys:r,autoExpandParent:N,treeData:ee,fieldNames:{title:"showTitle"}})]}),(0,n.jsx)("div",{className:"flex flex-col flex-1 max-w-full overflow-hidden",children:Array.isArray(C)?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(x.Z,{className:"h-full",sx:{".ant-tabs-content, .ant-tabs-tabpane-active":{height:"100%"},"& .ant-tabs-card.ant-tabs-top >.ant-tabs-nav .ant-tabs-tab, & .ant-tabs-card.ant-tabs-top >div>.ant-tabs-nav .ant-tabs-tab":{borderRadius:"0"}},children:(0,n.jsx)(g.Z,{className:"h-full",type:"card",activeKey:T,onChange:e=>{B(e),M(null==C?void 0:C[Number(e)])},items:null==C?void 0:C.map((e,l)=>({key:l+"",label:null==e?void 0:e.title,children:(0,n.jsx)("div",{className:"flex flex-col h-full",children:(0,n.jsx)(R,{editorValue:e,handleChange:(e,l)=>{if(O){let t=JSON.parse(JSON.stringify(O));t.sql=e,t.thoughts=l,M(t)}},tableData:q,chartData:k})})}))})})}):(0,n.jsx)(R,{editorValue:C,handleChange:(e,l)=>{M({thoughts:l,sql:e})},tableData:q,chartData:void 0})})]})]})},O=t(69962),M=t(97287),q=t(73141),L=t(45642),T=t(71990),B=e=>{let l=(0,i.useReducer)((e,l)=>({...e,...l}),{...e});return l},I=t(21628),V=e=>{let{queryAgentURL:l,channel:t,queryBody:n,initHistory:d,runHistoryList:o}=e,[r,s]=B({history:d||[]}),u=(0,w.useSearchParams)(),c=u.get("id"),{refreshDialogList:v}=(0,a.Cg)(),h=new AbortController;(0,i.useEffect)(()=>{d&&s({history:d})},[d]);let x=async(e,i)=>{if(!e)return;let a=[...r.history,{role:"human",context:e}],d=a.length;s({history:a});let o={conv_uid:c,...i,...n,user_input:e,channel:t};if(!(null==o?void 0:o.conv_uid)){I.ZP.error("conv_uid 不存在,请刷新后重试");return}try{await (0,T.L)("".concat("http://127.0.0.1:5000").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),signal:h.signal,async onopen(e){if(a.length<=1){var l;v();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==T.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,t,n;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))s({history:[...a,{role:"view",context:null===(n=e.data)||void 0===n?void 0:n.replace("[ERROR]","")}]});else{let l=[...a];e.data&&((null==l?void 0:l[d])?l[d].context="".concat(e.data):l.push({role:"view",context:e.data}),s({history:l}))}}})}catch(e){console.log(e),s({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:x,history:r.history}},A=t(67830),F=t(54842),z=t(80937),J=t(311),W=t(94244),U=t(35086),H=t(53047),G=t(34112),K=t(30530),Y=t(64747),$=t(77614),Q=t(19700),X=t(92391),ee=t(55749),el=t(70781),et=t(42599),en=t(99398),ei=t(49064),ea=t(15241),ed=t(28179);let eo=X.z.object({query:X.z.string().min(1)});var er=e=>{var l;let{messages:a,onSubmit:d,readOnly:o,paramsList:s,runParamsList:u,dbList:f,runDbList:m,supportTypes:p,clearIntialMessage:j,setChartsData:g}=e,b=(0,w.useSearchParams)(),y=b.get("initMessage"),N=b.get("scene"),S="chat_dashboard"===N,k=(0,i.useRef)(null),[C,E]=(0,i.useState)(!1),[R,D]=(0,i.useState)(),[O,M]=(0,i.useState)(!1),[q,L]=(0,i.useState)(),[T,B]=(0,i.useState)(a),[V,X]=(0,i.useState)(""),[er,es]=(0,i.useState)(!1),[eu,ec]=(0,i.useState)(f),ev=(e,l,t)=>{let n=P().cloneDeep(eu);n&&(void 0===(null==eu?void 0:eu[e])&&(n[e]={}),n[e][l]=t,ec(n))},eh=(0,Q.cI)({resolver:(0,A.F)(eo),defaultValues:{}}),ex=async e=>{let{query:l}=e;try{E(!0),eh.reset(),await d(l,{select_param:null==s?void 0:s[R]})}catch(e){}finally{E(!1)}},ef=async()=>{try{var e;let l=new URLSearchParams(window.location.search),t=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,null,"?".concat(l.toString())),await ex({query:t})}catch(e){console.log(e)}finally{null==j||j()}},em={overrides:{code:e=>{let{children:l}=e;return(0,n.jsx)(en.Z,{language:"javascript",style:ei.Z,children:l})}},wrapper:i.Fragment},ep=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l},ej=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(62631);return t(25204),t(82372),e.default}},[]);return i.useEffect(()=>{k.current&&k.current.scrollTo(0,k.current.scrollHeight)},[null==a?void 0:a.length]),i.useEffect(()=>{y&&a.length<=0&&ef()},[y,a.length]),i.useEffect(()=>{var e,l;s&&(null===(e=Object.keys(s||{}))||void 0===e?void 0:e.length)>0&&D(null===(l=Object.keys(s||{}))||void 0===l?void 0:l[0])},[s]),i.useEffect(()=>{if(S){let e=P().cloneDeep(a);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=ep(null==e?void 0:e.context))}),B(e.filter(e=>["view","human"].includes(e.role)))}else B(a.filter(e=>["view","human"].includes(e.role)))},[S,a]),(0,i.useEffect)(()=>{let e=P().cloneDeep(f);null==e||e.forEach(e=>{let l=null==p?void 0:p.find(l=>l.db_type===e.db_type);e.isfileDb=null==l?void 0:l.is_file_db}),ec(e)},[f,p]),(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsxs)(z.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,n.jsxs)(z.Z,{ref:k,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null==T?void 0:T.map((e,l)=>{var t,i;return(0,n.jsx)(z.Z,{children:(0,n.jsx)(Z.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:l=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,n.jsxs)(x.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,n.jsx)(el.Z,{}):(0,n.jsx)(ee.Z,{})}),(0,n.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:S&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,n.jsxs)(n.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,n.jsx)(J.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{M(!0),L(l),X(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,n.jsx)(n.Fragment,{children:"string"==typeof e.context&&(0,n.jsx)(et.Z,{options:em,children:null===(t=e.context)||void 0===t?void 0:null===(i=t.replaceAll)||void 0===i?void 0:i.call(t,"\\n","\n")})})})]})})},l)}),C&&(0,n.jsx)(W.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,n.jsx)(x.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,n.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),eh.handleSubmit(ex)(e)},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[Object.keys(s||{}).length>0&&(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(c.Z,{value:R,onChange:(e,l)=>{D(l)},sx:{maxWidth:"100%"},children:null===(l=Object.keys(s||{}))||void 0===l?void 0:l.map(e=>(0,n.jsx)(v.Z,{value:e,children:e},e))})}),["chat_with_db_execute","chat_with_db_qa"].includes(N)&&(0,n.jsx)(h.Z,{"aria-label":"Like",variant:"plain",color:"neutral",sx:{padding:0,"&: hover":{backgroundColor:"unset"}},onClick:()=>{es(!0)},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(ed.Z,{style:{marginBottom:"0.125rem",fontSize:"28px"}}),(0,n.jsx)("span",{style:{display:"block",lineHeight:"25px",fontSize:12,marginLeft:6},children:"DB Connect Setting"})]})})]}),(0,n.jsx)(U.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,n.jsx)(H.ZP,{type:"submit",disabled:C,children:(0,n.jsx)(F.Z,{})}),...eh.register("query")})]})})]}),(0,n.jsx)(G.Z,{open:O,onClose:()=>{M(!1)},children:(0,n.jsxs)(K.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,n.jsx)(Y.Z,{}),(0,n.jsxs)(x.Z,{sx:{marginTop:"32px"},children:[!!ej&&(0,n.jsx)(ej,{mode:"json",value:V,height:"600px",width:"820px",onChange:X,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,n.jsx)(h.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(q)try{let e=P().cloneDeep(T),l=JSON.parse(V);e[q].context=l,B(e),null==g||g(null==l?void 0:l.charts),M(!1),X("")}catch(e){I.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})}),(0,n.jsx)(G.Z,{open:er,onClose:()=>{es(!1),null==u||u()},children:(0,n.jsxs)(K.Z,{children:[(0,n.jsx)(Y.Z,{}),(0,n.jsxs)(r.Z,{children:[(0,n.jsx)("caption",{children:(0,n.jsx)("h3",{style:{fontWeight:"bold"},children:"数据库列表"})}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{style:{width:"140px"},children:"数据库类型"}),(0,n.jsx)("th",{style:{width:"130px"},children:"数据库名"}),(0,n.jsx)("th",{style:{width:"150px"},children:"链接地址/域名"}),(0,n.jsx)("th",{style:{width:"100px"},children:"端口"}),(0,n.jsx)("th",{style:{width:"140px"},children:"用户名"}),(0,n.jsx)("th",{style:{width:"140px"},children:"密码"}),(0,n.jsx)("th",{style:{width:"140px"},children:"备注"}),(0,n.jsx)("th",{style:{width:"140px"},children:"操作"})]})}),(0,n.jsxs)("tbody",{children:[null==eu?void 0:eu.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(c.Z,{defaultValue:null==e?void 0:e.db_type,onChange:(e,t)=>{let n=null==p?void 0:p.find(e=>e.db_type===t),i=P().cloneDeep(eu);i[l].db_type=t,i[l].isfileDb=null==n?void 0:n.is_file_db,n?(i[l].db_host="",i[l].db_port=""):i[l].db_path="",ec(i)},children:null==p?void 0:p.map(e=>(0,n.jsx)(v.Z,{value:e.db_type,children:null==e?void 0:e.db_type},e.db_type))}):(0,n.jsx)(ea.Z,{title:null==e?void 0:e.db_type,children:null==e?void 0:e.db_type})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isNew)?(0,n.jsx)(U.ZP,{value:null==e?void 0:e.db_name,onChange:e=>{ev(l,"db_name",e.target.value)}}):(0,n.jsx)(ea.Z,{title:null==e?void 0:e.db_name,children:null==e?void 0:e.db_name})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(U.ZP,{value:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,onChange:t=>{(null==e?void 0:e.isfileDb)?ev(l,"db_path",t.target.value):ev(l,"db_host",t.target.value)}}):(0,n.jsx)(ea.Z,{title:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,children:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(null==e?void 0:e.isfileDb)?"-":(0,n.jsx)(U.ZP,{value:null==e?void 0:e.db_port,onChange:e=>{ev(l,"db_port",e.target.value)}}):(0,n.jsx)(ea.Z,{title:null==e?void 0:e.db_port,children:null==e?void 0:e.db_port})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(U.ZP,{defaultValue:e.db_user,onChange:e=>{ev(l,"db_user",e.target.value)}}):(0,n.jsx)(ea.Z,{title:null==e?void 0:e.db_user,children:null==e?void 0:e.db_user})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(U.ZP,{defaultValue:e.db_pwd,type:"password",onChange:e=>{ev(l,"db_pwd",e.target.value)}}):(0,n.jsx)(n.Fragment,{children:"******"})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(U.ZP,{defaultValue:null==e?void 0:e.comment,onChange:e=>{ev(l,"comment",e.target.value)}}):(0,n.jsx)(ea.Z,{title:null==e?void 0:e.comment,children:null==e?void 0:e.comment})}),(0,n.jsx)("td",{children:(0,n.jsxs)(x.Z,{sx:{gap:1,["& .".concat($.Z.root)]:{padding:0,"&:hover":{background:"transparent"}}},children:[(null==e?void 0:e.isEdit)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:async()=>{let l=P().cloneDeep(e),t={db_type:null==l?void 0:l.db_type,db_name:null==l?void 0:l.db_name,file_path:(null==l?void 0:l.isfileDb)?null==l?void 0:l.db_path:void 0,db_host:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_host,db_port:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_port,db_user:null==l?void 0:l.db_user,db_pwd:null==l?void 0:l.db_pwd,comment:null==l?void 0:l.comment};if(l.isNew){let e=null==f?void 0:f.map(e=>null==e?void 0:e.db_name);if(null==e?void 0:e.includes(null==l?void 0:l.db_name)){I.ZP.error("该数据库名称已存在");return}await (0,_.PR)("/api/v1/chat/db/add",t)}else await (0,_.PR)("/api/v1/chat/db/edit",t);await (null==m?void 0:m())},children:"保存"}),(0,n.jsx)(h.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let t=P().cloneDeep(eu);(null==e?void 0:e.isNew)?t.splice(l,1):(t[l].isEdit=!1,t[l]=null==f?void 0:f[l]),ec(t)},children:"取消"})]}):(0,n.jsx)(h.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let e=P().cloneDeep(eu);e[l].isEdit=!0,ec(e)},children:"编辑"}),(0,n.jsx)(h.Z,{size:"sm",variant:"soft",color:"danger",onClick:async()=>{(null==e?void 0:e.db_name)&&(await (0,_.PR)("/api/v1/chat/db/delete?db_name=".concat(null==e?void 0:e.db_name)),await (null==m?void 0:m()))},children:"删除"})]})})]},l)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:8,children:(0,n.jsx)(h.Z,{variant:"outlined",sx:{width:"100%"},onClick:()=>{let e=P().cloneDeep(eu);null==e||e.push({isEdit:!0,isNew:!0,db_name:""}),ec(e)},children:"+ 新增一行"})})})]})]})]})})]})};let es=()=>(0,n.jsxs)(Z.Z,{className:"h-full w-full flex bg-transparent",children:[(0,n.jsx)(O.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(O.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(M.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(q.Z.content)]:{height:"100%"}},children:(0,n.jsx)(O.Z,{variant:"overlay",className:"h-full"})})]});var eu=()=>{let[e,l]=(0,i.useState)(),t=(0,w.useSearchParams)(),{refreshDialogList:d}=(0,a.Cg)(),s=t.get("id"),c=t.get("scene"),{data:v,run:h}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/chat/dialogue/messages/history",{con_uid:s}),{ready:!!s,refreshDeps:[s,c]}),{data:f,run:m}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/chat/db/list"),{ready:!!c&&!!["chat_with_db_execute","chat_with_db_qa"].includes(c)}),{data:p}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/chat/db/support/type"),{ready:!!c&&!!["chat_with_db_execute","chat_with_db_qa"].includes(c)}),{data:j,run:g}=(0,o.Z)(async()=>await (0,_.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(c)),{ready:!!c,refreshDeps:[s,c]}),{history:b,handleChatSubmit:y}=V({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:s,chat_mode:c||"chat_normal"},initHistory:null==v?void 0:v.data,runHistoryList:h});(0,i.useEffect)(()=>{try{var e;let t=null==b?void 0:null===(e=b[b.length-1])||void 0===e?void 0:e.context,n=JSON.parse(t);l((null==n?void 0:n.template_name)==="report"?null==n?void 0:n.charts:void 0)}catch(e){l(void 0)}},[b]);let k=(0,i.useMemo)(()=>{if(e){let l=[],t=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);t.length>0&&l.push({rowIndex:l.length,cols:t,type:"IndicatorValue"});let n=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),i=n.length,a=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][i].forEach(e=>{if(e>0){let t=n.slice(a,a+e);a+=e,l.push({rowIndex:l.length,cols:t})}}),l}},[e]);return(0,n.jsxs)(L.Z,{container:!0,spacing:2,className:"h-full overflow-auto px-3",sx:{flexGrow:1},children:[e&&(0,n.jsx)(L.Z,{xs:8,className:"max-h-full",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==k?void 0:k.map(e=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"justify-around",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(u.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(Z.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(S.Chart,{autoFit:!0,data:e.values,children:(0,n.jsx)(S.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(S.Chart,{autoFit:!0,data:e.values,children:[(0,n.jsx)(S.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,S.getTheme)().colors10[0]}}),(0,n.jsx)(S.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var l,t;let i=P().groupBy(e.values,"type");return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(r.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(i))||void 0===t?void 0:t.map(e=>{var t;return(0,n.jsx)("td",{children:(null==i?void 0:null===(t=i[e])||void 0===t?void 0:t[l].value)||""},e)})},l)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===c&&(0,n.jsx)(L.Z,{xs:8,className:"max-h-full p-6",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,n.jsxs)(L.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,n.jsx)(L.Z,{xs:8,children:(0,n.jsx)(x.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,n.jsx)(es,{})})}),(0,n.jsx)(L.Z,{xs:4,children:(0,n.jsx)(es,{})}),(0,n.jsx)(L.Z,{xs:4,children:(0,n.jsx)(es,{})}),(0,n.jsx)(L.Z,{xs:8,children:(0,n.jsx)(es,{})})]})})}),(0,n.jsx)(L.Z,{xs:"chat_dashboard"===c?4:12,className:"h-full max-h-full",children:(0,n.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===c?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,n.jsx)(er,{clearIntialMessage:async()=>{await d()},dbList:null==f?void 0:f.data,runDbList:m,supportTypes:null==p?void 0:p.data,messages:b||[],onSubmit:y,paramsList:null==j?void 0:j.data,runParamsList:g,setChartsData:l})})})]})},ec=()=>{let{isContract:e,setIsContract:l}=(0,a.Cg)(),t=(0,w.useSearchParams)(),i=t.get("scene"),o=i&&["chat_with_db_execute","chat_dashboard"].includes(i);return(0,n.jsxs)(n.Fragment,{children:[!e&&o&&(0,n.jsx)("div",{className:"leading-[3rem] text-right pr-3 mb-3 border-b flex justify-end",children:(0,n.jsxs)("div",{className:"flex items-center cursor-pointer",onClick:()=>{l(!e)},children:[(0,n.jsx)(d.Z,{style:{marginRight:"4px"}}),"Change Mode"]})}),e?(0,n.jsx)(D,{}):(0,n.jsx)(eu,{})]})}},57931:function(e,l,t){"use strict";t.d(l,{ZP:function(){return s},Cg:function(){return o}});var n=t(9268),i=t(89081),a=t(78915),d=t(86006);let[o,r]=function(){let e=d.createContext(void 0);return[function(){let l=d.useContext(e);if(void 0===l)throw Error("useCtx must be inside a Provider with a value");return l},e.Provider]}();var s=e=>{let{children:l}=e,[t,o]=d.useState(!1),{run:s,data:u,refresh:c}=(0,i.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(r,{value:{isContract:t,dialogueList:u,setIsContract:o,queryDialogueList:s,refreshDialogList:c},children:l})}},78915:function(e,l,t){"use strict";t.d(l,{Tk:function(){return s},Kw:function(){return u},PR:function(){return c},Ej:function(){return v}});var n=t(21628),i=t(24214);let a=i.Z.create({baseURL:"http://127.0.0.1:5000"});a.defaults.timeout=1e4,a.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var d=t(84835);let o={"content-type":"application/json"},r=e=>{if(!(0,d.isPlainObject)(e))return JSON.stringify(e);let l={...e};for(let e in l){let t=l[e];"string"==typeof t&&(l[e]=t.trim())}return JSON.stringify(l)},s=(e,l)=>{if(l){let t=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");t&&(e+="?".concat(t))}return a.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,l)=>{let t=r(l);return a.post("/api"+e,{body:t,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},c=(e,l)=>a.post(e,l,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)}),v=(e,l)=>a.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,7991,5757,7282,3933,272,8942,7192,7518,5935,5086,4289,6316,1259,2657,5579,9253,5769,1744],function(){return e(e.s=86066)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-1a90bca511924458.js b/pilot/server/static/_next/static/chunks/app/chat/page-1a90bca511924458.js new file mode 100644 index 000000000..a42d5dbec --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/chat/page-1a90bca511924458.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1929],{86066:function(e,l,t){Promise.resolve().then(t.bind(t,48110))},48110:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return ev}});var n=t(9268),i=t(86006),a=t(57931),d=t(44972),o=t(89081),r=t(83192),s=t(35891),u=t(22046),c=t(71451),v=t(24857),h=t(53113),x=t(90545),f=t(48755),m=t(1777),p=t(76447),j=t(61469),g=t(57746);function b(){}function y(e){let{width:l="100%",height:a="100%",value:d,defaultValue:o,language:r,theme:s,options:u,overrideServices:c,editorWillMount:v,editorDidMount:h,editorWillUnmount:x,className:f,description:m,uri:p,editorInstanceRef:j,handleChange:g}=e,b=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(12116);return e}},[]),y=(0,i.useRef)(null),_=(0,i.useRef)(null),w=(0,i.useRef)(null),Z=(0,i.useRef)(null),N=i.useMemo(()=>({width:l,height:a,overflow:"hidden"}),[l,a]),S=()=>{let e=null==v?void 0:v(b);return e||{}},P=()=>{if(!(null==_?void 0:_.current)){console.error("Can not get editor element!");return}if(null==h||h(null==_?void 0:_.current,b),null==j||j(null==_?void 0:_.current),w){var e,l;w.current=null==_?void 0:null===(e=_.current)||void 0===e?void 0:null===(l=e.onDidChangeModelContent)||void 0===l?void 0:l.call(e,e=>{if(!Z.current){var l,t,n,i;let e=null==_?void 0:null===(l=_.current)||void 0===l?void 0:l.getModel(),a=null==_?void 0:null===(t=_.current)||void 0===t?void 0:t.getVisibleRanges(),d=null==e?void 0:e.getDecorationsInRange(null==a?void 0:a[0]);if(d){let l;for(let e=0;e<(null==d?void 0:d.length);e++){let t=d[e],n=t.options;n&&"my-description"===n.className&&(l=t)}if(l){let t=null==e?void 0:e.getValueInRange(new b.Range(l.range.startLineNumber,1,l.range.endLineNumber+1,1)),n=null==e?void 0:e.getLinesContent(),i=null==n?void 0:n.slice(l.range.endLineNumber);g(null==i?void 0:i.join("\n"),t);return}}null==g||g(null==_?void 0:null===(n=_.current)||void 0===n?void 0:null===(i=n.getValue)||void 0===i?void 0:i.call(n),void 0)}})}},k=()=>{if(!(null==_?void 0:_.current)){console.error("Can not get editor element!");return}null==x||x(null==_?void 0:_.current,b)};return(0,i.useEffect)(()=>{let e=null!==d?d:o;if(y.current){let l={...u,...S()},t=null==p?void 0:p(b),n=t&&b.editor.getModel(t);n?(n.setValue(e),b.editor.setModelLanguage(n,r)):n=b.editor.createModel(e,r,t),_.current=b.editor.create(y.current,{model:n,...f?{extraEditorClassName:f}:{},...l,...s?{theme:s}:{},automaticLayout:!0},c),P()}},[]),(0,i.useEffect)(()=>{if(_.current){var e;let l=_.current.getModel();Z.current=!0,_.current.pushUndoStop(),null==l||l.pushEditOperations([],[{range:null==l?void 0:l.getFullModelRange(),text:"\n".concat(m?"-- "+m:"","\n\n")+d}],void 0);let t=null==_?void 0:null===(e=_.current)||void 0===e?void 0:e.getVisibleRanges(),n=null==l?void 0:l.getDecorationsInRange(null==t?void 0:t[0]),i=[];null==n||n.forEach(e=>{var l;(null==e?void 0:null===(l=e.options)||void 0===l?void 0:l.className)==="my-description"&&i.push(e.id)}),null==l||l.deltaDecorations(i,[{range:new b.Range(1,1,3,1),options:{before:{content:"-- 注释开始"},after:{content:"-- 注释结束"},className:"my-description"}}]),_.current.pushUndoStop(),Z.current=!1}},[d,m]),(0,i.useEffect)(()=>{if(_.current){let e=_.current.getModel();b.editor.setModelLanguage(e,r)}},[r]),(0,i.useEffect)(()=>{if(_.current){let{model:e,...l}=u;_.current.updateOptions({...f?{extraEditorClassName:f}:{},...l,wordWrap:"on"})}},[f,u]),(0,i.useEffect)(()=>{b.editor.setTheme(s)},[s]),(0,i.useEffect)(()=>()=>{if(_.current){k(),_.current.dispose();let e=_.current.getModel();e&&e.dispose()}w.current&&w.current.dispose()},[]),(0,n.jsx)("div",{ref:y,className:"react-monaco-editor-container",style:N})}y.defaultProps={value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:b,editorDidMount:b,editorWillUnmount:b,onChange:b,className:null},y.displayName="MonacoEditor";var _=t(78915),w=t(56008),Z=t(90022),N=t(8997),S=t(91440),P=t(84835),k=t.n(P),C=function(e){let{type:l,values:t,title:a,description:d}=e,o=i.useMemo(()=>{if(!((null==t?void 0:t.length)>0))return(0,n.jsx)("div",{className:"h-full",children:(0,n.jsx)(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,description:"图表数据为空"})});if("IndicatorValue"!==l){if("Table"===l){var e,i,a;let l=k().groupBy(t,"type");return(0,n.jsx)("div",{className:"flex-1 overflow-auto",children:(0,n.jsxs)(r.Z,{"aria-label":"basic table",hoverRow:!0,stickyHeader:!0,children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(l).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(e=Object.values(l))||void 0===e?void 0:null===(i=e[0])||void 0===i?void 0:null===(a=i.map)||void 0===a?void 0:a.call(i,(e,t)=>{var i;return(0,n.jsx)("tr",{children:null===(i=Object.keys(l))||void 0===i?void 0:i.map(e=>{var i;return(0,n.jsx)("td",{children:(null==l?void 0:null===(i=l[e])||void 0===i?void 0:i[t].value)||""},e)})},t)})})]})})}return"BarChart"===l?(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsxs)(S.Chart,{autoFit:!0,data:t||[],forceUpdate:!0,children:[(0,n.jsx)(S.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,S.getTheme)().colors10[0]}}),(0,n.jsx)(S.Tooltip,{shared:!0})]})}):"LineChart"===l?(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(S.Chart,{forceUpdate:!0,autoFit:!0,data:t||[],children:(0,n.jsx)(S.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})}):(0,n.jsx)("div",{className:"h-full",children:(0,n.jsx)(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,description:"暂不支持该图表类型"})})}},[t,l]);return"IndicatorValue"===l&&(null==t?void 0:t.length)>0?(0,n.jsx)("div",{className:"flex flex-row gap-3",children:t.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"justify-around",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(u.ZP,{children:"".concat(e.type,": ").concat(e.value)})]})})},e.name))}):(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(Z.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[a&&(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:a}),d&&(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:d}),o]})})})};let{Search:E}=m.default;function R(e){var l,t,a;let{editorValue:d,chartData:o,tableData:s,handleChange:u}=e,c=i.useMemo(()=>o?(0,n.jsx)("div",{className:"flex-1 overflow-auto p-3",style:{flexShrink:0,overflow:"hidden"},children:(0,n.jsx)(C,{...o})}):(0,n.jsx)("div",{}),[o]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,n.jsx)("div",{className:"flex-1",style:{flexShrink:0,overflow:"auto"},children:(0,n.jsx)(y,{value:null==d?void 0:d.sql,language:"mysql",handleChange:u,description:null==d?void 0:d.thoughts})}),c]}),(0,n.jsx)("div",{className:"h-60 border-[var(--joy-palette-divider)] border-t border-solid overflow-auto",children:(null==s?void 0:null===(l=s.values)||void 0===l?void 0:l.length)>0?(0,n.jsxs)(r.Z,{"aria-label":"basic table",stickyHeader:!0,children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:null==s?void 0:null===(t=s.columns)||void 0===t?void 0:t.map((e,l)=>(0,n.jsx)("th",{children:e},e+l))})}),(0,n.jsx)("tbody",{children:null==s?void 0:null===(a=s.values)||void 0===a?void 0:a.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(e))||void 0===t?void 0:t.map(l=>(0,n.jsx)("td",{children:e[l]},l))},l)})})]}):(0,n.jsx)("div",{className:"h-full flex justify-center items-center",children:(0,n.jsx)(p.Z,{})})})]})}var D=function(){var e,l,t,a,d;let[r,m]=i.useState([]),[p,b]=i.useState(""),[y,Z]=i.useState(),[N,S]=i.useState(!0),[P,k]=i.useState(),[C,D]=i.useState(),[O,M]=i.useState(),[q,L]=i.useState(),[T,B]=i.useState(),I=(0,w.useSearchParams)(),A=I.get("id"),V=I.get("scene"),{data:F,loading:z}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/editor/sql/rounds",{con_uid:A}),{onSuccess:e=>{var l,t;let n=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l[(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.length)-1];n&&Z(null==n?void 0:n.round)}}),{run:U,loading:W}=(0,o.Z)(async()=>{var e,l;let t=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.PR)("/api/v1/editor/sql/run",{db_name:t,sql:null==O?void 0:O.sql})},{manual:!0,onSuccess:e=>{var l,t;L({columns:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.colunms,values:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.values})}}),{run:J,loading:H}=(0,o.Z)(async()=>{var e,l;let t=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name,n={db_name:t,sql:null==O?void 0:O.sql};return"chat_dashboard"===V&&(n.chart_type=null==O?void 0:O.showcase),await (0,_.PR)("/api/v1/editor/chart/run",n)},{manual:!0,ready:!!(null==O?void 0:O.sql),onSuccess:e=>{if(null==e?void 0:e.success){var l,t,n,i,a,d,o;L({columns:(null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(t=l.sql_data)||void 0===t?void 0:t.colunms)||[],values:(null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(i=n.sql_data)||void 0===i?void 0:i.values)||[]}),(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.chart_values)?k({type:null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.chart_type,values:null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.chart_values,title:null==O?void 0:O.title,description:null==O?void 0:O.thoughts}):k(void 0)}}}),{run:G,loading:K}=(0,o.Z)(async()=>{var e,l,t,n,i;let a=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.PR)("/api/v1/sql/editor/submit",{conv_uid:A,db_name:a,conv_round:y,old_sql:null==C?void 0:C.sql,old_speak:null==C?void 0:C.thoughts,new_sql:null==O?void 0:O.sql,new_speak:(null===(t=null==O?void 0:null===(n=O.thoughts)||void 0===n?void 0:n.match(/^\n--(.*)\n\n$/))||void 0===t?void 0:null===(i=t[1])||void 0===i?void 0:i.trim())||(null==O?void 0:O.thoughts)})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&U()}}),{run:Y,loading:$}=(0,o.Z)(async()=>{var e,l,t,n,i,a;let d=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.PR)("/api/v1/chart/editor/submit",{conv_uid:A,chart_title:null==O?void 0:O.title,db_name:d,old_sql:null==C?void 0:null===(t=C[T])||void 0===t?void 0:t.sql,new_chart_type:null==O?void 0:O.showcase,new_sql:null==O?void 0:O.sql,new_comment:(null===(n=null==O?void 0:null===(i=O.thoughts)||void 0===i?void 0:i.match(/^\n--(.*)\n\n$/))||void 0===n?void 0:null===(a=n[1])||void 0===a?void 0:a.trim())||(null==O?void 0:O.thoughts),gmt_create:new Date().getTime()})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&J()}}),{data:Q}=(0,o.Z)(async()=>{var e,l;let t=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.Tk)("/v1/editor/db/tables",{db_name:t,page_index:1,page_size:200})},{ready:!!(null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name),refreshDeps:[null===(t=null==F?void 0:null===(a=F.data)||void 0===a?void 0:a.find(e=>e.round===y))||void 0===t?void 0:t.db_name]}),{run:X}=(0,o.Z)(async e=>await (0,_.Tk)("/v1/editor/sql",{con_uid:A,round:e}),{manual:!0,onSuccess:e=>{let l;try{if(Array.isArray(null==e?void 0:e.data))l=null==e?void 0:e.data,B("0");else if("string"==typeof(null==e?void 0:e.data)){let t=JSON.parse(null==e?void 0:e.data);l=t}else l=null==e?void 0:e.data}catch(e){console.log(e)}finally{D(l),Array.isArray(l)?M(null==l?void 0:l[Number(T||0)]):M(l)}}}),ee=i.useMemo(()=>{let e=(l,t)=>l.map(l=>{let i=l.title,a=i.indexOf(p),d=i.substring(0,a),o=i.slice(a+p.length),r=a>-1?(0,n.jsx)(s.Z,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("span",{children:[d,(0,n.jsx)("span",{className:"text-[#1677ff]",children:p}),o,(null==l?void 0:l.type)&&(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",className:"inline pl-0.5",children:"[".concat(null==l?void 0:l.type,"]")})]})}):(0,n.jsx)(s.Z,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("span",{children:[i,(null==l?void 0:l.type)&&(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",className:"inline pl-0.5",children:"[".concat(null==l?void 0:l.type,"]")})]})});if(l.children){let n=t?String(t)+"_"+l.key:l.key;return{title:i,showTitle:r,key:n,children:e(l.children,n)}}return{title:i,showTitle:r,key:l.key}});return(null==Q?void 0:Q.data)?e([null==Q?void 0:Q.data]):[]},[p,Q]),el=i.useMemo(()=>{let e=[],l=(t,n)=>{if(t&&!((null==t?void 0:t.length)<=0))for(let i=0;i{let t;for(let n=0;nl.key===e)?t=i.key:et(e,i.children)&&(t=et(e,i.children)))}return t};return i.useEffect(()=>{y&&X(y)},[X,y]),i.useEffect(()=>{C&&"chat_dashboard"===V&&T&&J()},[T,V,C,J]),i.useEffect(()=>{C&&"chat_dashboard"!==V&&U()},[V,C,U]),(0,n.jsxs)("div",{className:"flex flex-col w-full h-full",children:[(0,n.jsxs)("div",{className:"bg-[#f8f8f8] border-[var(--joy-palette-divider)] border-b border-solid flex items-center px-3 justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center py-3",children:[(0,n.jsx)(f.Z,{className:"mr-2"}),(0,n.jsx)(c.Z,{className:"h-4 min-w-[240px]",size:"sm",value:y,onChange:(e,l)=>{Z(l)},children:null==F?void 0:null===(d=F.data)||void 0===d?void 0:d.map(e=>(0,n.jsx)(v.Z,{value:null==e?void 0:e.round,children:null==e?void 0:e.round_name},null==e?void 0:e.round))})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(h.Z,{className:"bg-[#1677ff] text-[#fff] hover:bg-[#1c558e]",loading:W||H,onClick:async()=>{"chat_dashboard"===V?J():U()},children:"Run"}),(0,n.jsx)(h.Z,{variant:"outlined",className:"ml-3",loading:K||$,onClick:async()=>{"chat_dashboard"===V?await Y():await G()},children:"Save"})]})]}),(0,n.jsxs)("div",{className:"flex flex-1 overflow-auto",children:[(0,n.jsxs)("div",{className:"text h-full border-[var(--joy-palette-divider)] border-r border-solid p-3 max-h-full overflow-auto",style:{width:"300px"},children:[(0,n.jsx)(E,{style:{marginBottom:8},placeholder:"Search",onChange:e=>{let{value:l}=e.target;if(null==Q?void 0:Q.data){if(l){let e=el.map(e=>e.title.indexOf(l)>-1?et(e.key,ee):null).filter((e,l,t)=>e&&t.indexOf(e)===l);m(e)}else m([]);b(l),S(!0)}}}),(0,n.jsx)(j.Z,{onExpand:e=>{m(e),S(!1)},expandedKeys:r,autoExpandParent:N,treeData:ee,fieldNames:{title:"showTitle"}})]}),(0,n.jsx)("div",{className:"flex flex-col flex-1 max-w-full overflow-hidden",children:Array.isArray(C)?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(x.Z,{className:"h-full",sx:{".ant-tabs-content, .ant-tabs-tabpane-active":{height:"100%"},"& .ant-tabs-card.ant-tabs-top >.ant-tabs-nav .ant-tabs-tab, & .ant-tabs-card.ant-tabs-top >div>.ant-tabs-nav .ant-tabs-tab":{borderRadius:"0"}},children:(0,n.jsx)(g.Z,{className:"h-full",type:"card",activeKey:T,onChange:e=>{B(e),M(null==C?void 0:C[Number(e)])},items:null==C?void 0:C.map((e,l)=>({key:l+"",label:null==e?void 0:e.title,children:(0,n.jsx)("div",{className:"flex flex-col h-full",children:(0,n.jsx)(R,{editorValue:e,handleChange:(e,l)=>{if(O){let t=JSON.parse(JSON.stringify(O));t.sql=e,t.thoughts=l,M(t)}},tableData:q,chartData:P})})}))})})}):(0,n.jsx)(R,{editorValue:C,handleChange:(e,l)=>{M({thoughts:l,sql:e})},tableData:q,chartData:void 0})})]})]})},O=t(69962),M=t(97287),q=t(73141),L=t(45642),T=t(71990),B=e=>{let l=(0,i.useReducer)((e,l)=>({...e,...l}),{...e});return l},I=t(21628),A=t(52040),V=e=>{let{queryAgentURL:l,channel:t,queryBody:n,initHistory:d,runHistoryList:o}=e,[r,s]=B({history:d||[]}),u=(0,w.useSearchParams)(),c=u.get("id"),{refreshDialogList:v}=(0,a.Cg)(),h=new AbortController;(0,i.useEffect)(()=>{d&&s({history:d})},[d]);let x=async(e,i)=>{if(!e)return;let a=[...r.history,{role:"human",context:e}],d=a.length;s({history:a});let o={conv_uid:c,...i,...n,user_input:e,channel:t};if(!(null==o?void 0:o.conv_uid)){I.ZP.error("conv_uid 不存在,请刷新后重试");return}try{await (0,T.L)("".concat(A.env.API_BASE_URL?A.env.API_BASE_URL:"").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),signal:h.signal,openWhenHidden:!0,async onopen(e){if(a.length<=1){var l;v();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==T.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,t,n;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))s({history:[...a,{role:"view",context:null===(n=e.data)||void 0===n?void 0:n.replace("[ERROR]","")}]});else{let l=[...a];e.data&&((null==l?void 0:l[d])?l[d].context="".concat(e.data):l.push({role:"view",context:e.data}),s({history:l}))}}})}catch(e){console.log(e),s({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:x,history:r.history}},F=t(67830),z=t(54842),U=t(80937),W=t(311),J=t(94244),H=t(35086),G=t(53047),K=t(34112),Y=t(30530),$=t(64747),Q=t(77614),X=t(19700),ee=t(92391),el=t(55749),et=t(70781),en=t(42599),ei=t(99398),ea=t(49064),ed=t(15241),eo=t(28179);let er=ee.z.object({query:ee.z.string().min(1)});var es=e=>{var l;let{messages:a,onSubmit:d,readOnly:o,paramsList:s,runParamsList:u,dbList:f,runDbList:m,supportTypes:p,clearIntialMessage:j,setChartsData:g}=e,b=(0,w.useSearchParams)(),y=b.get("initMessage"),N=b.get("spaceNameOriginal"),S=b.get("scene"),P="chat_dashboard"===S,C=(0,i.useRef)(null),[E,R]=(0,i.useState)(!1),[D,O]=(0,i.useState)(),[M,q]=(0,i.useState)(!1),[L,T]=(0,i.useState)(),[B,A]=(0,i.useState)(a),[V,ee]=(0,i.useState)(""),[es,eu]=(0,i.useState)(!1),[ec,ev]=(0,i.useState)(f),eh=(e,l,t)=>{let n=k().cloneDeep(ec);n&&(void 0===(null==ec?void 0:ec[e])&&(n[e]={}),n[e][l]=t,ev(n))},ex=(0,X.cI)({resolver:(0,F.F)(er),defaultValues:{}}),ef=async e=>{let{query:l}=e;try{R(!0),ex.reset(),await d(l,{select_param:null==s?void 0:s[D]})}catch(e){}finally{R(!1)}},em=async()=>{try{var e;let l=new URLSearchParams(window.location.search),t=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,null,"?".concat(l.toString())),await ef({query:t})}catch(e){console.log(e)}finally{null==j||j()}},ep={overrides:{code:e=>{let{children:l}=e;return(0,n.jsx)(ei.Z,{language:"javascript",style:ea.Z,children:l})}},wrapper:i.Fragment},ej=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l},eg=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(62631);return t(25204),t(82372),e.default}},[]);return i.useEffect(()=>{C.current&&C.current.scrollTo(0,C.current.scrollHeight)},[null==a?void 0:a.length]),i.useEffect(()=>{y&&a.length<=0&&em()},[y,a.length]),i.useEffect(()=>{var e,l;s&&(null===(e=Object.keys(s||{}))||void 0===e?void 0:e.length)>0&&O(N||(null===(l=Object.keys(s||{}))||void 0===l?void 0:l[0]))},[s]),i.useEffect(()=>{if(P){let e=k().cloneDeep(a);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=ej(null==e?void 0:e.context))}),A(e.filter(e=>["view","human"].includes(e.role)))}else A(a.filter(e=>["view","human"].includes(e.role)))},[P,a]),(0,i.useEffect)(()=>{let e=k().cloneDeep(f);null==e||e.forEach(e=>{let l=null==p?void 0:p.find(l=>l.db_type===e.db_type);e.isfileDb=null==l?void 0:l.is_file_db}),ev(e)},[f,p]),(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsxs)(U.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,n.jsxs)(U.Z,{ref:C,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null==B?void 0:B.map((e,l)=>{var t,i;return(0,n.jsx)(U.Z,{children:(0,n.jsx)(Z.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:l=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,n.jsxs)(x.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,n.jsx)(et.Z,{}):(0,n.jsx)(el.Z,{})}),(0,n.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:P&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,n.jsxs)(n.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,n.jsx)(W.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{q(!0),T(l),ee(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,n.jsx)(n.Fragment,{children:"string"==typeof e.context&&(0,n.jsx)(en.Z,{options:ep,children:null===(t=e.context)||void 0===t?void 0:null===(i=t.replaceAll)||void 0===i?void 0:i.call(t,"\\n","\n")})})})]})})},l)}),E&&(0,n.jsx)(J.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,n.jsx)(x.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,n.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),ex.handleSubmit(ef)(e)},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[Object.keys(s||{}).length>0&&(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(c.Z,{value:D,onChange:(e,l)=>{O(l)},sx:{maxWidth:"100%"},children:null===(l=Object.keys(s||{}))||void 0===l?void 0:l.map(e=>(0,n.jsx)(v.Z,{value:e,children:e},e))})}),["chat_with_db_execute","chat_with_db_qa"].includes(S)&&(0,n.jsx)(h.Z,{"aria-label":"Like",variant:"plain",color:"neutral",sx:{padding:0,"&: hover":{backgroundColor:"unset"}},onClick:()=>{eu(!0)},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(eo.Z,{style:{marginBottom:"0.125rem",fontSize:"28px"}}),(0,n.jsx)("span",{style:{display:"block",lineHeight:"25px",fontSize:12,marginLeft:6},children:"DB Connect Setting"})]})})]}),(0,n.jsx)(H.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,n.jsx)(G.ZP,{type:"submit",disabled:E,children:(0,n.jsx)(z.Z,{})}),...ex.register("query")})]})})]}),(0,n.jsx)(K.Z,{open:M,onClose:()=>{q(!1)},children:(0,n.jsxs)(Y.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,n.jsx)($.Z,{}),(0,n.jsxs)(x.Z,{sx:{marginTop:"32px"},children:[!!eg&&(0,n.jsx)(eg,{mode:"json",value:V,height:"600px",width:"820px",onChange:ee,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,n.jsx)(h.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(L)try{let e=k().cloneDeep(B),l=JSON.parse(V);e[L].context=l,A(e),null==g||g(null==l?void 0:l.charts),q(!1),ee("")}catch(e){I.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})}),(0,n.jsx)(K.Z,{open:es,onClose:()=>{eu(!1),null==u||u()},children:(0,n.jsxs)(Y.Z,{children:[(0,n.jsx)($.Z,{}),(0,n.jsxs)(r.Z,{children:[(0,n.jsx)("caption",{children:(0,n.jsx)("h3",{style:{fontWeight:"bold"},children:"数据库列表"})}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{style:{width:"140px"},children:"数据库类型"}),(0,n.jsx)("th",{style:{width:"130px"},children:"数据库名"}),(0,n.jsx)("th",{style:{width:"150px"},children:"链接地址/域名"}),(0,n.jsx)("th",{style:{width:"100px"},children:"端口"}),(0,n.jsx)("th",{style:{width:"140px"},children:"用户名"}),(0,n.jsx)("th",{style:{width:"140px"},children:"密码"}),(0,n.jsx)("th",{style:{width:"140px"},children:"备注"}),(0,n.jsx)("th",{style:{width:"140px"},children:"操作"})]})}),(0,n.jsxs)("tbody",{children:[null==ec?void 0:ec.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(c.Z,{defaultValue:null==e?void 0:e.db_type,onChange:(e,t)=>{let n=null==p?void 0:p.find(e=>e.db_type===t),i=k().cloneDeep(ec);i[l].db_type=t,i[l].isfileDb=null==n?void 0:n.is_file_db,n?(i[l].db_host="",i[l].db_port=""):i[l].db_path="",ev(i)},children:null==p?void 0:p.map(e=>(0,n.jsx)(v.Z,{value:e.db_type,children:null==e?void 0:e.db_type},e.db_type))}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.db_type,children:null==e?void 0:e.db_type})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isNew)?(0,n.jsx)(H.ZP,{value:null==e?void 0:e.db_name,onChange:e=>{eh(l,"db_name",e.target.value)}}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.db_name,children:null==e?void 0:e.db_name})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(H.ZP,{value:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,onChange:t=>{(null==e?void 0:e.isfileDb)?eh(l,"db_path",t.target.value):eh(l,"db_host",t.target.value)}}):(0,n.jsx)(ed.Z,{title:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,children:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(null==e?void 0:e.isfileDb)?"-":(0,n.jsx)(H.ZP,{value:null==e?void 0:e.db_port,onChange:e=>{eh(l,"db_port",e.target.value)}}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.db_port,children:null==e?void 0:e.db_port})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(H.ZP,{defaultValue:e.db_user,onChange:e=>{eh(l,"db_user",e.target.value)}}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.db_user,children:null==e?void 0:e.db_user})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(H.ZP,{defaultValue:e.db_pwd,type:"password",onChange:e=>{eh(l,"db_pwd",e.target.value)}}):(0,n.jsx)(n.Fragment,{children:"******"})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(H.ZP,{defaultValue:null==e?void 0:e.comment,onChange:e=>{eh(l,"comment",e.target.value)}}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.comment,children:null==e?void 0:e.comment})}),(0,n.jsx)("td",{children:(0,n.jsxs)(x.Z,{sx:{gap:1,["& .".concat(Q.Z.root)]:{padding:0,"&:hover":{background:"transparent"}}},children:[(null==e?void 0:e.isEdit)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:async()=>{let l=k().cloneDeep(e),t={db_type:null==l?void 0:l.db_type,db_name:null==l?void 0:l.db_name,file_path:(null==l?void 0:l.isfileDb)?null==l?void 0:l.db_path:void 0,db_host:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_host,db_port:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_port,db_user:null==l?void 0:l.db_user,db_pwd:null==l?void 0:l.db_pwd,comment:null==l?void 0:l.comment};if(l.isNew){let e=null==f?void 0:f.map(e=>null==e?void 0:e.db_name);if(null==e?void 0:e.includes(null==l?void 0:l.db_name)){I.ZP.error("该数据库名称已存在");return}await (0,_.PR)("/api/v1/chat/db/add",t)}else await (0,_.PR)("/api/v1/chat/db/edit",t);await (null==m?void 0:m())},children:"保存"}),(0,n.jsx)(h.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let t=k().cloneDeep(ec);(null==e?void 0:e.isNew)?t.splice(l,1):(t[l].isEdit=!1,t[l]=null==f?void 0:f[l]),ev(t)},children:"取消"})]}):(0,n.jsx)(h.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let e=k().cloneDeep(ec);e[l].isEdit=!0,ev(e)},children:"编辑"}),(0,n.jsx)(h.Z,{size:"sm",variant:"soft",color:"danger",onClick:async()=>{(null==e?void 0:e.db_name)&&(await (0,_.PR)("/api/v1/chat/db/delete?db_name=".concat(null==e?void 0:e.db_name)),await (null==m?void 0:m()))},children:"删除"})]})})]},l)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:8,children:(0,n.jsx)(h.Z,{variant:"outlined",sx:{width:"100%"},onClick:()=>{let e=k().cloneDeep(ec);null==e||e.push({isEdit:!0,isNew:!0,db_name:""}),ev(e)},children:"+ 新增一行"})})})]})]})]})})]})};let eu=()=>(0,n.jsxs)(Z.Z,{className:"h-full w-full flex bg-transparent",children:[(0,n.jsx)(O.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(O.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(M.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(q.Z.content)]:{height:"100%"}},children:(0,n.jsx)(O.Z,{variant:"overlay",className:"h-full"})})]});var ec=()=>{let[e,l]=(0,i.useState)(),t=(0,w.useSearchParams)(),{refreshDialogList:d}=(0,a.Cg)(),s=t.get("id"),c=t.get("scene"),{data:v,run:h}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/chat/dialogue/messages/history",{con_uid:s}),{ready:!!s,refreshDeps:[s,c]}),{data:f,run:m}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/chat/db/list"),{ready:!!c&&!!["chat_with_db_execute","chat_with_db_qa"].includes(c)}),{data:p}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/chat/db/support/type"),{ready:!!c&&!!["chat_with_db_execute","chat_with_db_qa"].includes(c)}),{data:j,run:g}=(0,o.Z)(async()=>await (0,_.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(c)),{ready:!!c,refreshDeps:[s,c]}),{history:b,handleChatSubmit:y}=V({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:s,chat_mode:c||"chat_normal"},initHistory:null==v?void 0:v.data,runHistoryList:h});(0,i.useEffect)(()=>{try{var e;let t=null==b?void 0:null===(e=b[b.length-1])||void 0===e?void 0:e.context,n=JSON.parse(t);l((null==n?void 0:n.template_name)==="report"?null==n?void 0:n.charts:void 0)}catch(e){l(void 0)}},[b]);let P=(0,i.useMemo)(()=>{if(e){let l=[],t=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);t.length>0&&l.push({rowIndex:l.length,cols:t,type:"IndicatorValue"});let n=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),i=n.length,a=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][i].forEach(e=>{if(e>0){let t=n.slice(a,a+e);a+=e,l.push({rowIndex:l.length,cols:t})}}),l}},[e]);return(0,n.jsxs)(L.Z,{container:!0,spacing:2,className:"h-full overflow-auto px-3",sx:{flexGrow:1},children:[e&&(0,n.jsx)(L.Z,{xs:8,className:"max-h-full",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==P?void 0:P.map(e=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"justify-around",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(u.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(Z.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(S.Chart,{autoFit:!0,data:e.values,children:(0,n.jsx)(S.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(S.Chart,{autoFit:!0,data:e.values,children:[(0,n.jsx)(S.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,S.getTheme)().colors10[0]}}),(0,n.jsx)(S.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var l,t;let i=k().groupBy(e.values,"type");return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(r.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(i))||void 0===t?void 0:t.map(e=>{var t;return(0,n.jsx)("td",{children:(null==i?void 0:null===(t=i[e])||void 0===t?void 0:t[l].value)||""},e)})},l)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===c&&(0,n.jsx)(L.Z,{xs:8,className:"max-h-full p-6",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,n.jsxs)(L.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,n.jsx)(L.Z,{xs:8,children:(0,n.jsx)(x.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,n.jsx)(eu,{})})}),(0,n.jsx)(L.Z,{xs:4,children:(0,n.jsx)(eu,{})}),(0,n.jsx)(L.Z,{xs:4,children:(0,n.jsx)(eu,{})}),(0,n.jsx)(L.Z,{xs:8,children:(0,n.jsx)(eu,{})})]})})}),(0,n.jsx)(L.Z,{xs:"chat_dashboard"===c?4:12,className:"h-full max-h-full",children:(0,n.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===c?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,n.jsx)(es,{clearIntialMessage:async()=>{await d()},dbList:null==f?void 0:f.data,runDbList:m,supportTypes:null==p?void 0:p.data,messages:b||[],onSubmit:y,paramsList:null==j?void 0:j.data,runParamsList:g,setChartsData:l})})})]})},ev=()=>{let{isContract:e,setIsContract:l}=(0,a.Cg)(),t=(0,w.useSearchParams)(),i=t.get("scene"),o=i&&["chat_with_db_execute","chat_dashboard"].includes(i);return(0,n.jsxs)(n.Fragment,{children:[!e&&o&&(0,n.jsx)("div",{className:"leading-[3rem] text-right pr-3 mb-3 border-b flex justify-end",children:(0,n.jsxs)("div",{className:"flex items-center cursor-pointer",onClick:()=>{l(!e)},children:[(0,n.jsx)(d.Z,{style:{marginRight:"4px"}}),"Change Mode"]})}),e?(0,n.jsx)(D,{}):(0,n.jsx)(ec,{})]})}},57931:function(e,l,t){"use strict";t.d(l,{ZP:function(){return s},Cg:function(){return o}});var n=t(9268),i=t(89081),a=t(78915),d=t(86006);let[o,r]=function(){let e=d.createContext(void 0);return[function(){let l=d.useContext(e);if(void 0===l)throw Error("useCtx must be inside a Provider with a value");return l},e.Provider]}();var s=e=>{let{children:l}=e,[t,o]=d.useState(!1),{run:s,data:u,refresh:c}=(0,i.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(r,{value:{isContract:t,dialogueList:u,setIsContract:o,queryDialogueList:s,refreshDialogList:c},children:l})}},78915:function(e,l,t){"use strict";t.d(l,{Tk:function(){return u},Kw:function(){return c},PR:function(){return v},Ej:function(){return h}});var n=t(21628),i=t(24214),a=t(52040);let d=i.Z.create({baseURL:a.env.API_BASE_URL});d.defaults.timeout=1e4,d.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=t(84835);let r={"content-type":"application/json"},s=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let l={...e};for(let e in l){let t=l[e];"string"==typeof t&&(l[e]=t.trim())}return JSON.stringify(l)},u=(e,l)=>{if(l){let t=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");t&&(e+="?".concat(t))}return d.get("/api"+e,{headers:r}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},c=(e,l)=>{let t=s(l);return d.post("/api"+e,{body:t,headers:r}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},v=(e,l)=>d.post(e,l,{headers:r}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)}),h=(e,l)=>d.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,7991,5757,7282,877,5230,8942,7192,7518,5935,9081,5086,4289,4341,8453,2657,7040,9253,5769,1744],function(){return e(e.s=86066)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-5cbaa4028c70970e.js b/pilot/server/static/_next/static/chunks/app/chat/page-5cbaa4028c70970e.js deleted file mode 100644 index 6e9f17af0..000000000 --- a/pilot/server/static/_next/static/chunks/app/chat/page-5cbaa4028c70970e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{86066:function(e,l,t){Promise.resolve().then(t.bind(t,65641))},65641:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return X}});var n=t(9268),i=t(86006),a=t(91440),s=t(90022),r=t(69962),o=t(97287),d=t(73141),c=t(45642),u=t(8997),h=t(22046),x=t(83192),v=t(90545),p=t(89081),f=t(78915),m=t(71990),j=e=>{let l=(0,i.useReducer)((e,l)=>({...e,...l}),{...e});return l},b=t(57931),g=t(56008),y=t(21628),_=t(52040),w=e=>{let{queryAgentURL:l,channel:t,queryBody:n,initHistory:a,runHistoryList:s}=e,[r,o]=j({history:a||[]}),d=(0,g.useSearchParams)(),c=d.get("id"),{refreshDialogList:u}=(0,b.Cg)(),h=new AbortController;(0,i.useEffect)(()=>{a&&o({history:a})},[a]);let x=async(e,i)=>{if(!e)return;let a=[...r.history,{role:"human",context:e}],s=a.length;o({history:a});let d={conv_uid:c,...i,...n,user_input:e,channel:t};if(!(null==d?void 0:d.conv_uid)){y.ZP.error("conv_uid 不存在,请刷新后重试");return}try{await (0,m.L)("".concat(_.env.API_BASE_URL?_.env.API_BASE_URL:"").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d),signal:h.signal,async onopen(e){if(a.length<=1){var l;u();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==m.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,t,n;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))o({history:[...a,{role:"view",context:null===(n=e.data)||void 0===n?void 0:n.replace("[ERROR]","")}]});else{let l=[...a];e.data&&((null==l?void 0:l[s])?l[s].context="".concat(e.data):l.push({role:"view",context:e.data}),o({history:l}))}}})}catch(e){console.log(e),o({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:x,history:r.history}},Z=t(67830),N=t(54842),P=t(80937),S=t(311),C=t(94244),k=t(12025),E=t(46571),D=t(53113),R=t(35086),O=t(53047),L=t(81528),B=t(30530),I=t(64747),T=t(77614),A=t(19700),z=t(92391),F=t(55749),V=t(70781),q=t(75403),J=t(99398),M=t(49064),U=t(84835),W=t.n(U),H=t(15241),G=t(28179);let K=z.z.object({query:z.z.string().min(1)});var Y=e=>{var l;let{messages:a,onSubmit:r,readOnly:o,paramsList:d,runParamsList:c,dbList:u,runDbList:h,supportTypes:p,clearIntialMessage:m,setChartsData:j}=e,b=(0,g.useSearchParams)(),_=b.get("initMessage"),w=b.get("spaceNameOriginal"),z=b.get("scene"),U="chat_dashboard"===z,Y=(0,i.useRef)(null),[Q,X]=(0,i.useState)(!1),[$,ee]=(0,i.useState)(),[el,et]=(0,i.useState)(!1),[en,ei]=(0,i.useState)(),[ea,es]=(0,i.useState)(a),[er,eo]=(0,i.useState)(""),[ed,ec]=(0,i.useState)(!1),[eu,eh]=(0,i.useState)(u),ex=(e,l,t)=>{let n=W().cloneDeep(eu);n&&(void 0===(null==eu?void 0:eu[e])&&(n[e]={}),n[e][l]=t,eh(n))},ev=(0,A.cI)({resolver:(0,Z.F)(K),defaultValues:{}}),ep=async e=>{let{query:l}=e;try{X(!0),ev.reset(),await r(l,{select_param:null==d?void 0:d[$]})}catch(e){}finally{X(!1)}},ef=async()=>{try{var e;let l=new URLSearchParams(window.location.search),t=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,null,"?".concat(l.toString())),await ep({query:t})}catch(e){console.log(e)}finally{null==m||m()}},em={overrides:{code:e=>{let{children:l}=e;return(0,n.jsx)(J.Z,{language:"javascript",style:M.Z,children:l})}},wrapper:i.Fragment},ej=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l},eb=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(62631);return t(25204),t(82372),e.default}},[]);return i.useEffect(()=>{Y.current&&Y.current.scrollTo(0,Y.current.scrollHeight)},[null==a?void 0:a.length]),i.useEffect(()=>{_&&a.length<=0&&ef()},[_,a.length]),i.useEffect(()=>{var e,l;d&&(null===(e=Object.keys(d||{}))||void 0===e?void 0:e.length)>0&&ee(w||(null===(l=Object.keys(d||{}))||void 0===l?void 0:l[0]))},[d]),i.useEffect(()=>{if(U){let e=W().cloneDeep(a);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=ej(null==e?void 0:e.context))}),es(e.filter(e=>["view","human"].includes(e.role)))}else es(a.filter(e=>["view","human"].includes(e.role)))},[U,a]),(0,i.useEffect)(()=>{let e=W().cloneDeep(u);null==e||e.forEach(e=>{let l=null==p?void 0:p.find(l=>l.db_type===e.db_type);e.isfileDb=null==l?void 0:l.is_file_db}),eh(e)},[u,p]),(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsxs)(P.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,n.jsxs)(P.Z,{ref:Y,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null==ea?void 0:ea.map((e,l)=>{var t,i;return(0,n.jsx)(P.Z,{children:(0,n.jsx)(s.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:l=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,n.jsxs)(v.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,n.jsx)(V.Z,{}):(0,n.jsx)(F.Z,{})}),(0,n.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:U&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,n.jsxs)(n.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,n.jsx)(S.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{et(!0),ei(l),eo(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,n.jsx)(n.Fragment,{children:"string"==typeof e.context&&(0,n.jsx)(q.Z,{options:em,children:null===(t=e.context)||void 0===t?void 0:null===(i=t.replaceAll)||void 0===i?void 0:i.call(t,"\\n","\n")})})})]})})},l)}),Q&&(0,n.jsx)(C.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,n.jsx)(v.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,n.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),ev.handleSubmit(ep)(e)},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[Object.keys(d||{}).length>0&&(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(k.Z,{value:$,onChange:(e,l)=>{ee(l)},sx:{maxWidth:"100%"},children:null===(l=Object.keys(d||{}))||void 0===l?void 0:l.map(e=>(0,n.jsx)(E.Z,{value:e,children:e},e))})}),["chat_with_db_execute","chat_with_db_qa"].includes(z)&&(0,n.jsx)(D.Z,{"aria-label":"Like",variant:"plain",color:"neutral",sx:{padding:0,"&: hover":{backgroundColor:"unset"}},onClick:()=>{ec(!0)},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(G.Z,{style:{marginBottom:"0.125rem",fontSize:"28px"}}),(0,n.jsx)("span",{style:{display:"block",lineHeight:"25px",fontSize:12,marginLeft:6},children:"DB Connect Setting"})]})})]}),(0,n.jsx)(R.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,n.jsx)(O.ZP,{type:"submit",disabled:Q,children:(0,n.jsx)(N.Z,{})}),...ev.register("query")})]})})]}),(0,n.jsx)(L.Z,{open:el,onClose:()=>{et(!1)},children:(0,n.jsxs)(B.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,n.jsx)(I.Z,{}),(0,n.jsxs)(v.Z,{sx:{marginTop:"32px"},children:[!!eb&&(0,n.jsx)(eb,{mode:"json",value:er,height:"600px",width:"820px",onChange:eo,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,n.jsx)(D.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(en)try{let e=W().cloneDeep(ea),l=JSON.parse(er);e[en].context=l,es(e),null==j||j(null==l?void 0:l.charts),et(!1),eo("")}catch(e){y.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})}),(0,n.jsx)(L.Z,{open:ed,onClose:()=>{ec(!1),null==c||c()},children:(0,n.jsxs)(B.Z,{children:[(0,n.jsx)(I.Z,{}),(0,n.jsxs)(x.Z,{children:[(0,n.jsx)("caption",{children:(0,n.jsx)("h3",{style:{fontWeight:"bold"},children:"数据库列表"})}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{style:{width:"140px"},children:"数据库类型"}),(0,n.jsx)("th",{style:{width:"130px"},children:"数据库名"}),(0,n.jsx)("th",{style:{width:"150px"},children:"链接地址/域名"}),(0,n.jsx)("th",{style:{width:"100px"},children:"端口"}),(0,n.jsx)("th",{style:{width:"140px"},children:"用户名"}),(0,n.jsx)("th",{style:{width:"140px"},children:"密码"}),(0,n.jsx)("th",{style:{width:"140px"},children:"备注"}),(0,n.jsx)("th",{style:{width:"140px"},children:"操作"})]})}),(0,n.jsxs)("tbody",{children:[null==eu?void 0:eu.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(k.Z,{defaultValue:null==e?void 0:e.db_type,onChange:(e,t)=>{let n=null==p?void 0:p.find(e=>e.db_type===t),i=W().cloneDeep(eu);i[l].db_type=t,i[l].isfileDb=null==n?void 0:n.is_file_db,n?(i[l].db_host="",i[l].db_port=""):i[l].db_path="",eh(i)},children:null==p?void 0:p.map(e=>(0,n.jsx)(E.Z,{value:e.db_type,children:null==e?void 0:e.db_type},e.db_type))}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_type,children:null==e?void 0:e.db_type})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isNew)?(0,n.jsx)(R.ZP,{value:null==e?void 0:e.db_name,onChange:e=>{ex(l,"db_name",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_name,children:null==e?void 0:e.db_name})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{value:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,onChange:t=>{(null==e?void 0:e.isfileDb)?ex(l,"db_path",t.target.value):ex(l,"db_host",t.target.value)}}):(0,n.jsx)(H.Z,{title:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,children:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(null==e?void 0:e.isfileDb)?"-":(0,n.jsx)(R.ZP,{value:null==e?void 0:e.db_port,onChange:e=>{ex(l,"db_port",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_port,children:null==e?void 0:e.db_port})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:e.db_user,onChange:e=>{ex(l,"db_user",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_user,children:null==e?void 0:e.db_user})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:e.db_pwd,type:"password",onChange:e=>{ex(l,"db_pwd",e.target.value)}}):(0,n.jsx)(n.Fragment,{children:"******"})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:null==e?void 0:e.comment,onChange:e=>{ex(l,"comment",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.comment,children:null==e?void 0:e.comment})}),(0,n.jsx)("td",{children:(0,n.jsxs)(v.Z,{sx:{gap:1,["& .".concat(T.Z.root)]:{padding:0,"&:hover":{background:"transparent"}}},children:[(null==e?void 0:e.isEdit)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:async()=>{let l=W().cloneDeep(e),t={db_type:null==l?void 0:l.db_type,db_name:null==l?void 0:l.db_name,file_path:(null==l?void 0:l.isfileDb)?null==l?void 0:l.db_path:void 0,db_host:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_host,db_port:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_port,db_user:null==l?void 0:l.db_user,db_pwd:null==l?void 0:l.db_pwd,comment:null==l?void 0:l.comment};if(l.isNew){let e=null==u?void 0:u.map(e=>null==e?void 0:e.db_name);if(null==e?void 0:e.includes(null==l?void 0:l.db_name)){y.ZP.error("该数据库名称已存在");return}await (0,f.PR)("/api/v1/chat/db/add",t)}else await (0,f.PR)("/api/v1/chat/db/edit",t);await (null==h?void 0:h())},children:"保存"}),(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let t=W().cloneDeep(eu);(null==e?void 0:e.isNew)?t.splice(l,1):(t[l].isEdit=!1,t[l]=null==u?void 0:u[l]),eh(t)},children:"取消"})]}):(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let e=W().cloneDeep(eu);e[l].isEdit=!0,eh(e)},children:"编辑"}),(0,n.jsx)(D.Z,{size:"sm",variant:"soft",color:"danger",onClick:async()=>{(null==e?void 0:e.db_name)&&(await (0,f.PR)("/api/v1/chat/db/delete?db_name=".concat(null==e?void 0:e.db_name)),await (null==h?void 0:h()))},children:"删除"})]})})]},l)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:8,children:(0,n.jsx)(D.Z,{variant:"outlined",sx:{width:"100%"},onClick:()=>{let e=W().cloneDeep(eu);null==e||e.push({isEdit:!0,isNew:!0,db_name:""}),eh(e)},children:"+ 新增一行"})})})]})]})]})})]})};let Q=()=>(0,n.jsxs)(s.Z,{className:"h-full w-full flex bg-transparent",children:[(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(o.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(d.Z.content)]:{height:"100%"}},children:(0,n.jsx)(r.Z,{variant:"overlay",className:"h-full"})})]});var X=()=>{let[e,l]=(0,i.useState)();i.useRef(null);let[t,r]=i.useState(!1),o=(0,g.useSearchParams)(),{refreshDialogList:d}=(0,b.Cg)(),m=o.get("id"),j=o.get("scene"),{data:y,run:_}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/dialogue/messages/history",{con_uid:m}),{ready:!!m,refreshDeps:[m]}),{data:Z,run:N}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/list"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:P}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/support/type"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:S,run:C}=(0,p.Z)(async()=>await (0,f.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(j)),{ready:!!j,refreshDeps:[m,j]}),{history:k,handleChatSubmit:E}=w({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:m,chat_mode:j||"chat_normal"},initHistory:null==y?void 0:y.data,runHistoryList:_});(0,i.useEffect)(()=>{try{var e;let t=null==k?void 0:null===(e=k[k.length-1])||void 0===e?void 0:e.context,n=JSON.parse(t);l((null==n?void 0:n.template_name)==="report"?null==n?void 0:n.charts:void 0)}catch(e){l(void 0)}},[k]);let D=(0,i.useMemo)(()=>{if(e){let l=[],t=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);t.length>0&&l.push({rowIndex:l.length,cols:t,type:"IndicatorValue"});let n=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),i=n.length,a=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][i].forEach(e=>{if(e>0){let t=n.slice(a,a+e);a+=e,l.push({rowIndex:l.length,cols:t})}}),l}},[e]);return(0,n.jsxs)(c.Z,{container:!0,spacing:2,className:"h-full",sx:{flexGrow:1},children:[e&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==D?void 0:D.map(e=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"justify-around",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(h.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(a.Chart,{padding:[10,20,50,40],autoFit:!0,data:e.values,children:(0,n.jsx)(a.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(a.Chart,{autoFit:!0,data:e.values,children:[(0,n.jsx)(a.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,a.getTheme)().colors10[0]}}),(0,n.jsx)(a.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var l,t;let i=W().groupBy(e.values,"type");return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(x.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(i))||void 0===t?void 0:t.map(e=>{var t;return(0,n.jsx)("td",{children:(null==i?void 0:null===(t=i[e])||void 0===t?void 0:t[l].value)||""},e)})},l)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===j&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full p-6",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,n.jsxs)(c.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(v.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,n.jsx)(Q,{})})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(Q,{})})]})})}),(0,n.jsx)(c.Z,{xs:"chat_dashboard"===j?4:12,className:"h-full max-h-full",children:(0,n.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===j?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,n.jsx)(Y,{clearIntialMessage:async()=>{await d()},dbList:null==Z?void 0:Z.data,runDbList:N,supportTypes:null==P?void 0:P.data,isChartChat:"chat_dashboard"===j,messages:k||[],onSubmit:E,paramsList:null==S?void 0:S.data,runParamsList:C,setChartsData:l})})})]})}},57931:function(e,l,t){"use strict";t.d(l,{ZP:function(){return d},Cg:function(){return r}});var n=t(9268),i=t(89081),a=t(78915),s=t(86006);let[r,o]=function(){let e=s.createContext(void 0);return[function(){let l=s.useContext(e);if(void 0===l)throw Error("useCtx must be inside a Provider with a value");return l},e.Provider]}();var d=e=>{let{children:l}=e,{run:t,data:s,refresh:r}=(0,i.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:t,refreshDialogList:r},children:l})}},78915:function(e,l,t){"use strict";t.d(l,{Tk:function(){return c},Kw:function(){return u},PR:function(){return h},Ej:function(){return x}});var n=t(21628),i=t(24214),a=t(52040);let s=i.Z.create({baseURL:a.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var r=t(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,r.isPlainObject)(e))return JSON.stringify(e);let l={...e};for(let e in l){let t=l[e];"string"==typeof t&&(l[e]=t.trim())}return JSON.stringify(l)},c=(e,l)=>{if(l){let t=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");t&&(e+="?".concat(t))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,l)=>{let t=d(l);return s.post("/api"+e,{body:t,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},h=(e,l)=>(d(l),s.post(e,l,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),x=(e,l)=>s.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,757,282,838,60,759,192,86,316,790,767,259,751,320,253,769,744],function(){return e(e.s=86066)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-641be9e13d61cb24.js b/pilot/server/static/_next/static/chunks/app/chat/page-641be9e13d61cb24.js deleted file mode 100644 index df748dfb0..000000000 --- a/pilot/server/static/_next/static/chunks/app/chat/page-641be9e13d61cb24.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{83738:function(e,l,t){Promise.resolve().then(t.bind(t,65641))},65641:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return X}});var n=t(9268),i=t(86006),a=t(91440),s=t(90022),r=t(69962),o=t(97287),d=t(73141),c=t(45642),u=t(8997),h=t(22046),x=t(83192),v=t(90545),p=t(89081),f=t(78915),m=t(71990),j=e=>{let l=(0,i.useReducer)((e,l)=>({...e,...l}),{...e});return l},b=t(57931),g=t(56008),y=t(21628),_=t(52040),w=e=>{let{queryAgentURL:l,channel:t,queryBody:n,initHistory:a,runHistoryList:s}=e,[r,o]=j({history:a||[]}),d=(0,g.useSearchParams)(),c=d.get("id"),{refreshDialogList:u}=(0,b.Cg)(),h=new AbortController;(0,i.useEffect)(()=>{a&&o({history:a})},[a]);let x=async(e,i)=>{if(!e)return;let a=[...r.history,{role:"human",context:e}],s=a.length;o({history:a});let d={conv_uid:c,...i,...n,user_input:e,channel:t};if(!(null==d?void 0:d.conv_uid)){y.ZP.error("conv_uid 不存在,请刷新后重试");return}try{await (0,m.L)("".concat(_.env.API_BASE_URL?_.env.API_BASE_URL:"").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d),signal:h.signal,async onopen(e){if(a.length<=1){var l;u();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==m.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,t,n;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))o({history:[...a,{role:"view",context:null===(n=e.data)||void 0===n?void 0:n.replace("[ERROR]","")}]});else{let l=[...a];e.data&&((null==l?void 0:l[s])?l[s].context="".concat(e.data):l.push({role:"view",context:e.data}),o({history:l}))}}})}catch(e){console.log(e),o({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:x,history:r.history}},Z=t(67830),N=t(54842),P=t(80937),S=t(311),C=t(94244),k=t(12025),E=t(46571),D=t(53113),R=t(35086),O=t(53047),L=t(81528),B=t(30530),I=t(64747),T=t(77614),A=t(19700),z=t(92391),F=t(55749),V=t(70781),q=t(75403),J=t(99398),M=t(49064),U=t(84835),W=t.n(U),H=t(15241),G=t(28179);let K=z.z.object({query:z.z.string().min(1)});var Y=e=>{var l;let{messages:a,onSubmit:r,readOnly:o,paramsList:d,runParamsList:c,dbList:u,runDbList:h,supportTypes:p,clearIntialMessage:m,setChartsData:j}=e,b=(0,g.useSearchParams)(),_=b.get("initMessage"),w=b.get("spaceNameOriginal"),z=b.get("scene"),U="chat_dashboard"===z,Y=(0,i.useRef)(null),[Q,X]=(0,i.useState)(!1),[$,ee]=(0,i.useState)(),[el,et]=(0,i.useState)(!1),[en,ei]=(0,i.useState)(),[ea,es]=(0,i.useState)(a),[er,eo]=(0,i.useState)(""),[ed,ec]=(0,i.useState)(!1),[eu,eh]=(0,i.useState)(u),ex=(e,l,t)=>{let n=W().cloneDeep(eu);n&&(void 0===(null==eu?void 0:eu[e])&&(n[e]={}),n[e][l]=t,eh(n))},ev=(0,A.cI)({resolver:(0,Z.F)(K),defaultValues:{}}),ep=async e=>{let{query:l}=e;try{X(!0),ev.reset(),await r(l,{select_param:null==d?void 0:d[$]})}catch(e){}finally{X(!1)}},ef=async()=>{try{var e;let l=new URLSearchParams(window.location.search),t=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,null,"?".concat(l.toString())),await ep({query:t})}catch(e){console.log(e)}finally{null==m||m()}},em={overrides:{code:e=>{let{children:l}=e;return(0,n.jsx)(J.Z,{language:"javascript",style:M.Z,children:l})}},wrapper:i.Fragment},ej=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l},eb=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(62631);return t(25204),t(82372),e.default}},[]);return i.useEffect(()=>{Y.current&&Y.current.scrollTo(0,Y.current.scrollHeight)},[null==a?void 0:a.length]),i.useEffect(()=>{_&&a.length<=0&&ef()},[_,a.length]),i.useEffect(()=>{var e,l;d&&(null===(e=Object.keys(d||{}))||void 0===e?void 0:e.length)>0&&ee(w||(null===(l=Object.keys(d||{}))||void 0===l?void 0:l[0]))},[d]),i.useEffect(()=>{if(U){let e=W().cloneDeep(a);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=ej(null==e?void 0:e.context))}),es(e.filter(e=>["view","human"].includes(e.role)))}else es(a.filter(e=>["view","human"].includes(e.role)))},[U,a]),(0,i.useEffect)(()=>{let e=W().cloneDeep(u);null==e||e.forEach(e=>{let l=null==p?void 0:p.find(l=>l.db_type===e.db_type);e.isfileDb=null==l?void 0:l.is_file_db}),eh(e)},[u,p]),(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsxs)(P.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,n.jsxs)(P.Z,{ref:Y,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null==ea?void 0:ea.map((e,l)=>{var t,i;return(0,n.jsx)(P.Z,{children:(0,n.jsx)(s.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:l=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,n.jsxs)(v.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,n.jsx)(V.Z,{}):(0,n.jsx)(F.Z,{})}),(0,n.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:U&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,n.jsxs)(n.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,n.jsx)(S.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{et(!0),ei(l),eo(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,n.jsx)(n.Fragment,{children:"string"==typeof e.context&&(0,n.jsx)(q.Z,{options:em,children:null===(t=e.context)||void 0===t?void 0:null===(i=t.replaceAll)||void 0===i?void 0:i.call(t,"\\n","\n")})})})]})})},l)}),Q&&(0,n.jsx)(C.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,n.jsx)(v.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,n.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),ev.handleSubmit(ep)(e)},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[Object.keys(d||{}).length>0&&(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(k.Z,{value:$,onChange:(e,l)=>{ee(l)},sx:{maxWidth:"100%"},children:null===(l=Object.keys(d||{}))||void 0===l?void 0:l.map(e=>(0,n.jsx)(E.Z,{value:e,children:e},e))})}),["chat_with_db_execute","chat_with_db_qa"].includes(z)&&(0,n.jsx)(D.Z,{"aria-label":"Like",variant:"plain",color:"neutral",sx:{padding:0,"&: hover":{backgroundColor:"unset"}},onClick:()=>{ec(!0)},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(G.Z,{style:{marginBottom:"0.125rem",fontSize:"28px"}}),(0,n.jsx)("span",{style:{display:"block",lineHeight:"25px",fontSize:12,marginLeft:6},children:"DB Connect Setting"})]})})]}),(0,n.jsx)(R.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,n.jsx)(O.ZP,{type:"submit",disabled:Q,children:(0,n.jsx)(N.Z,{})}),...ev.register("query")})]})})]}),(0,n.jsx)(L.Z,{open:el,onClose:()=>{et(!1)},children:(0,n.jsxs)(B.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,n.jsx)(I.Z,{}),(0,n.jsxs)(v.Z,{sx:{marginTop:"32px"},children:[!!eb&&(0,n.jsx)(eb,{mode:"json",value:er,height:"600px",width:"820px",onChange:eo,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,n.jsx)(D.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(en)try{let e=W().cloneDeep(ea),l=JSON.parse(er);e[en].context=l,es(e),null==j||j(null==l?void 0:l.charts),et(!1),eo("")}catch(e){y.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})}),(0,n.jsx)(L.Z,{open:ed,onClose:()=>{ec(!1),null==c||c()},children:(0,n.jsxs)(B.Z,{children:[(0,n.jsx)(I.Z,{}),(0,n.jsxs)(x.Z,{children:[(0,n.jsx)("caption",{children:(0,n.jsx)("h3",{style:{fontWeight:"bold"},children:"数据库列表"})}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{style:{width:"140px"},children:"数据库类型"}),(0,n.jsx)("th",{style:{width:"130px"},children:"数据库名"}),(0,n.jsx)("th",{style:{width:"150px"},children:"链接地址/域名"}),(0,n.jsx)("th",{style:{width:"100px"},children:"端口"}),(0,n.jsx)("th",{style:{width:"140px"},children:"用户名"}),(0,n.jsx)("th",{style:{width:"140px"},children:"密码"}),(0,n.jsx)("th",{style:{width:"140px"},children:"备注"}),(0,n.jsx)("th",{style:{width:"140px"},children:"操作"})]})}),(0,n.jsxs)("tbody",{children:[null==eu?void 0:eu.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(k.Z,{defaultValue:null==e?void 0:e.db_type,onChange:(e,t)=>{let n=null==p?void 0:p.find(e=>e.db_type===t),i=W().cloneDeep(eu);i[l].db_type=t,i[l].isfileDb=null==n?void 0:n.is_file_db,n?(i[l].db_host="",i[l].db_port=""):i[l].db_path="",eh(i)},children:null==p?void 0:p.map(e=>(0,n.jsx)(E.Z,{value:e.db_type,children:null==e?void 0:e.db_type},e.db_type))}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_type,children:null==e?void 0:e.db_type})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isNew)?(0,n.jsx)(R.ZP,{value:null==e?void 0:e.db_name,onChange:e=>{ex(l,"db_name",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_name,children:null==e?void 0:e.db_name})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{value:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,onChange:t=>{(null==e?void 0:e.isfileDb)?ex(l,"db_path",t.target.value):ex(l,"db_host",t.target.value)}}):(0,n.jsx)(H.Z,{title:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,children:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(null==e?void 0:e.isfileDb)?"-":(0,n.jsx)(R.ZP,{value:null==e?void 0:e.db_port,onChange:e=>{ex(l,"db_port",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_port,children:null==e?void 0:e.db_port})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:e.db_user,onChange:e=>{ex(l,"db_user",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.db_user,children:null==e?void 0:e.db_user})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:e.db_pwd,type:"password",onChange:e=>{ex(l,"db_pwd",e.target.value)}}):(0,n.jsx)(n.Fragment,{children:"******"})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(R.ZP,{defaultValue:null==e?void 0:e.comment,onChange:e=>{ex(l,"comment",e.target.value)}}):(0,n.jsx)(H.Z,{title:null==e?void 0:e.comment,children:null==e?void 0:e.comment})}),(0,n.jsx)("td",{children:(0,n.jsxs)(v.Z,{sx:{gap:1,["& .".concat(T.Z.root)]:{padding:0,"&:hover":{background:"transparent"}}},children:[(null==e?void 0:e.isEdit)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:async()=>{let l=W().cloneDeep(e),t={db_type:null==l?void 0:l.db_type,db_name:null==l?void 0:l.db_name,file_path:(null==l?void 0:l.isfileDb)?null==l?void 0:l.db_path:void 0,db_host:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_host,db_port:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_port,db_user:null==l?void 0:l.db_user,db_pwd:null==l?void 0:l.db_pwd,comment:null==l?void 0:l.comment};if(l.isNew){let e=null==u?void 0:u.map(e=>null==e?void 0:e.db_name);if(null==e?void 0:e.includes(null==l?void 0:l.db_name)){y.ZP.error("该数据库名称已存在");return}await (0,f.PR)("/api/v1/chat/db/add",t)}else await (0,f.PR)("/api/v1/chat/db/edit",t);await (null==h?void 0:h())},children:"保存"}),(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let t=W().cloneDeep(eu);(null==e?void 0:e.isNew)?t.splice(l,1):(t[l].isEdit=!1,t[l]=null==u?void 0:u[l]),eh(t)},children:"取消"})]}):(0,n.jsx)(D.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let e=W().cloneDeep(eu);e[l].isEdit=!0,eh(e)},children:"编辑"}),(0,n.jsx)(D.Z,{size:"sm",variant:"soft",color:"danger",onClick:async()=>{(null==e?void 0:e.db_name)&&(await (0,f.PR)("/api/v1/chat/db/delete?db_name=".concat(null==e?void 0:e.db_name)),await (null==h?void 0:h()))},children:"删除"})]})})]},l)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:8,children:(0,n.jsx)(D.Z,{variant:"outlined",sx:{width:"100%"},onClick:()=>{let e=W().cloneDeep(eu);null==e||e.push({isEdit:!0,isNew:!0,db_name:""}),eh(e)},children:"+ 新增一行"})})})]})]})]})})]})};let Q=()=>(0,n.jsxs)(s.Z,{className:"h-full w-full flex bg-transparent",children:[(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(r.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(o.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(d.Z.content)]:{height:"100%"}},children:(0,n.jsx)(r.Z,{variant:"overlay",className:"h-full"})})]});var X=()=>{let[e,l]=(0,i.useState)();i.useRef(null);let[t,r]=i.useState(!1),o=(0,g.useSearchParams)(),{refreshDialogList:d}=(0,b.Cg)(),m=o.get("id"),j=o.get("scene"),{data:y,run:_}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/dialogue/messages/history",{con_uid:m}),{ready:!!m,refreshDeps:[m]}),{data:Z,run:N}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/list"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:P}=(0,p.Z)(async()=>await (0,f.Tk)("/v1/chat/db/support/type"),{ready:!!j&&!!["chat_with_db_execute","chat_with_db_qa"].includes(j)}),{data:S,run:C}=(0,p.Z)(async()=>await (0,f.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(j)),{ready:!!j,refreshDeps:[m,j]}),{history:k,handleChatSubmit:E}=w({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:m,chat_mode:j||"chat_normal"},initHistory:null==y?void 0:y.data,runHistoryList:_});(0,i.useEffect)(()=>{try{var e;let t=null==k?void 0:null===(e=k[k.length-1])||void 0===e?void 0:e.context,n=JSON.parse(t);l((null==n?void 0:n.template_name)==="report"?null==n?void 0:n.charts:void 0)}catch(e){l(void 0)}},[k]);let D=(0,i.useMemo)(()=>{if(e){let l=[],t=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);t.length>0&&l.push({rowIndex:l.length,cols:t,type:"IndicatorValue"});let n=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),i=n.length,a=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][i].forEach(e=>{if(e>0){let t=n.slice(a,a+e);a+=e,l.push({rowIndex:l.length,cols:t})}}),l}},[e]);return(0,n.jsxs)(c.Z,{container:!0,spacing:2,className:"h-full",sx:{flexGrow:1},children:[e&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==D?void 0:D.map(e=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"justify-around",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(h.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(a.Chart,{padding:[10,20,50,40],autoFit:!0,data:e.values,children:(0,n.jsx)(a.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(a.Chart,{autoFit:!0,data:e.values,children:[(0,n.jsx)(a.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,a.getTheme)().colors10[0]}}),(0,n.jsx)(a.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var l,t;let i=W().groupBy(e.values,"type");return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(s.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(u.Z,{className:"h-full",children:[(0,n.jsx)(h.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(h.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(x.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(i))||void 0===t?void 0:t.map(e=>{var t;return(0,n.jsx)("td",{children:(null==i?void 0:null===(t=i[e])||void 0===t?void 0:t[l].value)||""},e)})},l)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===j&&(0,n.jsx)(c.Z,{xs:8,className:"max-h-full p-6",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,n.jsxs)(c.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(v.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,n.jsx)(Q,{})})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:4,children:(0,n.jsx)(Q,{})}),(0,n.jsx)(c.Z,{xs:8,children:(0,n.jsx)(Q,{})})]})})}),(0,n.jsx)(c.Z,{xs:"chat_dashboard"===j?4:12,className:"h-full max-h-full",children:(0,n.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===j?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,n.jsx)(Y,{clearIntialMessage:async()=>{await d()},dbList:null==Z?void 0:Z.data,runDbList:N,supportTypes:null==P?void 0:P.data,isChartChat:"chat_dashboard"===j,messages:k||[],onSubmit:E,paramsList:null==S?void 0:S.data,runParamsList:C,setChartsData:l})})})]})}},57931:function(e,l,t){"use strict";t.d(l,{ZP:function(){return d},Cg:function(){return r}});var n=t(9268),i=t(89081),a=t(78915),s=t(86006);let[r,o]=function(){let e=s.createContext(void 0);return[function(){let l=s.useContext(e);if(void 0===l)throw Error("useCtx must be inside a Provider with a value");return l},e.Provider]}();var d=e=>{let{children:l}=e,{run:t,data:s,refresh:r}=(0,i.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:s,queryDialogueList:t,refreshDialogList:r},children:l})}},78915:function(e,l,t){"use strict";t.d(l,{Tk:function(){return c},Kw:function(){return u},PR:function(){return h},Ej:function(){return x}});var n=t(21628),i=t(24214),a=t(52040);let s=i.Z.create({baseURL:a.env.API_BASE_URL});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var r=t(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,r.isPlainObject)(e))return JSON.stringify(e);let l={...e};for(let e in l){let t=l[e];"string"==typeof t&&(l[e]=t.trim())}return JSON.stringify(l)},c=(e,l)=>{if(l){let t=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");t&&(e+="?".concat(t))}return s.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,l)=>{let t=d(l);return s.post("/api"+e,{body:t,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},h=(e,l)=>(d(l),s.post(e,l,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),x=(e,l)=>s.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,757,282,877,230,759,192,81,86,790,767,341,751,320,253,769,744],function(){return e(e.s=83738)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/chat/page-6cac23d75520f75e.js b/pilot/server/static/_next/static/chunks/app/chat/page-6cac23d75520f75e.js deleted file mode 100644 index 27db1a2f0..000000000 --- a/pilot/server/static/_next/static/chunks/app/chat/page-6cac23d75520f75e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1929],{86066:function(e,l,t){Promise.resolve().then(t.bind(t,48110))},48110:function(e,l,t){"use strict";t.r(l),t.d(l,{default:function(){return ev}});var n=t(9268),i=t(86006),a=t(57931),d=t(44972),o=t(89081),r=t(83192),s=t(35891),u=t(22046),c=t(71451),v=t(24857),h=t(53113),x=t(90545),f=t(48755),m=t(1777),p=t(76447),j=t(61469),g=t(57746);function b(){}function y(e){let{width:l="100%",height:a="100%",value:d,defaultValue:o,language:r,theme:s,options:u,overrideServices:c,editorWillMount:v,editorDidMount:h,editorWillUnmount:x,className:f,description:m,uri:p,editorInstanceRef:j,handleChange:g}=e,b=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(12116);return e}},[]),y=(0,i.useRef)(null),_=(0,i.useRef)(null),w=(0,i.useRef)(null),Z=(0,i.useRef)(null),N=i.useMemo(()=>({width:l,height:a,overflow:"hidden"}),[l,a]),S=()=>{let e=null==v?void 0:v(b);return e||{}},P=()=>{if(!(null==_?void 0:_.current)){console.error("Can not get editor element!");return}if(null==h||h(null==_?void 0:_.current,b),null==j||j(null==_?void 0:_.current),w){var e,l;w.current=null==_?void 0:null===(e=_.current)||void 0===e?void 0:null===(l=e.onDidChangeModelContent)||void 0===l?void 0:l.call(e,e=>{if(!Z.current){var l,t,n,i;let e=null==_?void 0:null===(l=_.current)||void 0===l?void 0:l.getModel(),a=null==_?void 0:null===(t=_.current)||void 0===t?void 0:t.getVisibleRanges(),d=null==e?void 0:e.getDecorationsInRange(null==a?void 0:a[0]);if(d){let l;for(let e=0;e<(null==d?void 0:d.length);e++){let t=d[e],n=t.options;n&&"my-description"===n.className&&(l=t)}if(l){let t=null==e?void 0:e.getValueInRange(new b.Range(l.range.startLineNumber,1,l.range.endLineNumber+1,1)),n=null==e?void 0:e.getLinesContent(),i=null==n?void 0:n.slice(l.range.endLineNumber);g(null==i?void 0:i.join("\n"),t);return}}null==g||g(null==_?void 0:null===(n=_.current)||void 0===n?void 0:null===(i=n.getValue)||void 0===i?void 0:i.call(n),void 0)}})}},k=()=>{if(!(null==_?void 0:_.current)){console.error("Can not get editor element!");return}null==x||x(null==_?void 0:_.current,b)};return(0,i.useEffect)(()=>{let e=null!==d?d:o;if(y.current){let l={...u,...S()},t=null==p?void 0:p(b),n=t&&b.editor.getModel(t);n?(n.setValue(e),b.editor.setModelLanguage(n,r)):n=b.editor.createModel(e,r,t),_.current=b.editor.create(y.current,{model:n,...f?{extraEditorClassName:f}:{},...l,...s?{theme:s}:{},automaticLayout:!0},c),P()}},[]),(0,i.useEffect)(()=>{if(_.current){var e;let l=_.current.getModel();Z.current=!0,_.current.pushUndoStop(),null==l||l.pushEditOperations([],[{range:null==l?void 0:l.getFullModelRange(),text:"\n".concat(m?"-- "+m:"","\n\n")+d}],void 0);let t=null==_?void 0:null===(e=_.current)||void 0===e?void 0:e.getVisibleRanges(),n=null==l?void 0:l.getDecorationsInRange(null==t?void 0:t[0]),i=[];null==n||n.forEach(e=>{var l;(null==e?void 0:null===(l=e.options)||void 0===l?void 0:l.className)==="my-description"&&i.push(e.id)}),null==l||l.deltaDecorations(i,[{range:new b.Range(1,1,3,1),options:{before:{content:"-- 注释开始"},after:{content:"-- 注释结束"},className:"my-description"}}]),_.current.pushUndoStop(),Z.current=!1}},[d,m]),(0,i.useEffect)(()=>{if(_.current){let e=_.current.getModel();b.editor.setModelLanguage(e,r)}},[r]),(0,i.useEffect)(()=>{if(_.current){let{model:e,...l}=u;_.current.updateOptions({...f?{extraEditorClassName:f}:{},...l,wordWrap:"on"})}},[f,u]),(0,i.useEffect)(()=>{b.editor.setTheme(s)},[s]),(0,i.useEffect)(()=>()=>{if(_.current){k(),_.current.dispose();let e=_.current.getModel();e&&e.dispose()}w.current&&w.current.dispose()},[]),(0,n.jsx)("div",{ref:y,className:"react-monaco-editor-container",style:N})}y.defaultProps={value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorWillMount:b,editorDidMount:b,editorWillUnmount:b,onChange:b,className:null},y.displayName="MonacoEditor";var _=t(78915),w=t(56008),Z=t(90022),N=t(8997),S=t(91440),P=t(84835),k=t.n(P),C=function(e){let{type:l,values:t,title:a,description:d}=e,o=i.useMemo(()=>{if(!((null==t?void 0:t.length)>0))return(0,n.jsx)("div",{className:"h-full",children:(0,n.jsx)(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,description:"图表数据为空"})});if("IndicatorValue"!==l){if("Table"===l){var e,i,a;let l=k().groupBy(t,"type");return(0,n.jsx)("div",{className:"flex-1 overflow-auto",children:(0,n.jsxs)(r.Z,{"aria-label":"basic table",hoverRow:!0,stickyHeader:!0,children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(l).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(e=Object.values(l))||void 0===e?void 0:null===(i=e[0])||void 0===i?void 0:null===(a=i.map)||void 0===a?void 0:a.call(i,(e,t)=>{var i;return(0,n.jsx)("tr",{children:null===(i=Object.keys(l))||void 0===i?void 0:i.map(e=>{var i;return(0,n.jsx)("td",{children:(null==l?void 0:null===(i=l[e])||void 0===i?void 0:i[t].value)||""},e)})},t)})})]})})}return"BarChart"===l?(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsxs)(S.Chart,{autoFit:!0,data:t||[],forceUpdate:!0,children:[(0,n.jsx)(S.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,S.getTheme)().colors10[0]}}),(0,n.jsx)(S.Tooltip,{shared:!0})]})}):"LineChart"===l?(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(S.Chart,{forceUpdate:!0,autoFit:!0,data:t||[],children:(0,n.jsx)(S.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})}):(0,n.jsx)("div",{className:"h-full",children:(0,n.jsx)(p.Z,{image:p.Z.PRESENTED_IMAGE_SIMPLE,description:"暂不支持该图表类型"})})}},[t,l]);return"IndicatorValue"===l&&(null==t?void 0:t.length)>0?(0,n.jsx)("div",{className:"flex flex-row gap-3",children:t.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"justify-around",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(u.ZP,{children:"".concat(e.type,": ").concat(e.value)})]})})},e.name))}):(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(Z.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[a&&(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:a}),d&&(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:d}),o]})})})};let{Search:E}=m.default;function R(e){var l,t,a;let{editorValue:d,chartData:o,tableData:s,handleChange:u}=e,c=i.useMemo(()=>o?(0,n.jsx)("div",{className:"flex-1 overflow-auto p-3",style:{flexShrink:0,overflow:"hidden"},children:(0,n.jsx)(C,{...o})}):(0,n.jsx)("div",{}),[o]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,n.jsx)("div",{className:"flex-1",style:{flexShrink:0,overflow:"auto"},children:(0,n.jsx)(y,{value:null==d?void 0:d.sql,language:"mysql",handleChange:u,description:null==d?void 0:d.thoughts})}),c]}),(0,n.jsx)("div",{className:"h-60 border-[var(--joy-palette-divider)] border-t border-solid overflow-auto",children:(null==s?void 0:null===(l=s.values)||void 0===l?void 0:l.length)>0?(0,n.jsxs)(r.Z,{"aria-label":"basic table",stickyHeader:!0,children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:null==s?void 0:null===(t=s.columns)||void 0===t?void 0:t.map((e,l)=>(0,n.jsx)("th",{children:e},e+l))})}),(0,n.jsx)("tbody",{children:null==s?void 0:null===(a=s.values)||void 0===a?void 0:a.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(e))||void 0===t?void 0:t.map(l=>(0,n.jsx)("td",{children:e[l]},l))},l)})})]}):(0,n.jsx)("div",{className:"h-full flex justify-center items-center",children:(0,n.jsx)(p.Z,{})})})]})}var D=function(){var e,l,t,a,d;let[r,m]=i.useState([]),[p,b]=i.useState(""),[y,Z]=i.useState(),[N,S]=i.useState(!0),[P,k]=i.useState(),[C,D]=i.useState(),[O,M]=i.useState(),[q,L]=i.useState(),[T,B]=i.useState(),I=(0,w.useSearchParams)(),A=I.get("id"),V=I.get("scene"),{data:F,loading:z}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/editor/sql/rounds",{con_uid:A}),{onSuccess:e=>{var l,t;let n=null==e?void 0:null===(l=e.data)||void 0===l?void 0:l[(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.length)-1];n&&Z(null==n?void 0:n.round)}}),{run:U,loading:J}=(0,o.Z)(async()=>{var e,l;let t=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.PR)("/api/v1/editor/sql/run",{db_name:t,sql:null==O?void 0:O.sql})},{manual:!0,onSuccess:e=>{var l,t;L({columns:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.colunms,values:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.values})}}),{run:W,loading:H}=(0,o.Z)(async()=>{var e,l;let t=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name,n={db_name:t,sql:null==O?void 0:O.sql};return"chat_dashboard"===V&&(n.chart_type=null==O?void 0:O.showcase),await (0,_.PR)("/api/v1/editor/chart/run",n)},{manual:!0,ready:!!(null==O?void 0:O.sql),onSuccess:e=>{if(null==e?void 0:e.success){var l,t,n,i,a,d,o;L({columns:(null==e?void 0:null===(l=e.data)||void 0===l?void 0:null===(t=l.sql_data)||void 0===t?void 0:t.colunms)||[],values:(null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(i=n.sql_data)||void 0===i?void 0:i.values)||[]}),(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.chart_values)?k({type:null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.chart_type,values:null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.chart_values,title:null==O?void 0:O.title,description:null==O?void 0:O.thoughts}):k(void 0)}}}),{run:G,loading:K}=(0,o.Z)(async()=>{var e,l,t,n,i;let a=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.PR)("/api/v1/sql/editor/submit",{conv_uid:A,db_name:a,conv_round:y,old_sql:null==C?void 0:C.sql,old_speak:null==C?void 0:C.thoughts,new_sql:null==O?void 0:O.sql,new_speak:(null===(t=null==O?void 0:null===(n=O.thoughts)||void 0===n?void 0:n.match(/^\n--(.*)\n\n$/))||void 0===t?void 0:null===(i=t[1])||void 0===i?void 0:i.trim())||(null==O?void 0:O.thoughts)})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&U()}}),{run:Y,loading:$}=(0,o.Z)(async()=>{var e,l,t,n,i,a;let d=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.PR)("/api/v1/chart/editor/submit",{conv_uid:A,chart_title:null==O?void 0:O.title,db_name:d,old_sql:null==C?void 0:null===(t=C[T])||void 0===t?void 0:t.sql,new_chart_type:null==O?void 0:O.showcase,new_sql:null==O?void 0:O.sql,new_comment:(null===(n=null==O?void 0:null===(i=O.thoughts)||void 0===i?void 0:i.match(/^\n--(.*)\n\n$/))||void 0===n?void 0:null===(a=n[1])||void 0===a?void 0:a.trim())||(null==O?void 0:O.thoughts),gmt_create:new Date().getTime()})},{manual:!0,onSuccess:e=>{(null==e?void 0:e.success)&&W()}}),{data:Q}=(0,o.Z)(async()=>{var e,l;let t=null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name;return await (0,_.Tk)("/v1/editor/db/tables",{db_name:t,page_index:1,page_size:200})},{ready:!!(null===(e=null==F?void 0:null===(l=F.data)||void 0===l?void 0:l.find(e=>e.round===y))||void 0===e?void 0:e.db_name),refreshDeps:[null===(t=null==F?void 0:null===(a=F.data)||void 0===a?void 0:a.find(e=>e.round===y))||void 0===t?void 0:t.db_name]}),{run:X}=(0,o.Z)(async e=>await (0,_.Tk)("/v1/editor/sql",{con_uid:A,round:e}),{manual:!0,onSuccess:e=>{let l;try{if(Array.isArray(null==e?void 0:e.data))l=null==e?void 0:e.data,B("0");else if("string"==typeof(null==e?void 0:e.data)){let t=JSON.parse(null==e?void 0:e.data);l=t}else l=null==e?void 0:e.data}catch(e){console.log(e)}finally{D(l),Array.isArray(l)?M(null==l?void 0:l[Number(T||0)]):M(l)}}}),ee=i.useMemo(()=>{let e=(l,t)=>l.map(l=>{let i=l.title,a=i.indexOf(p),d=i.substring(0,a),o=i.slice(a+p.length),r=a>-1?(0,n.jsx)(s.Z,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("span",{children:[d,(0,n.jsx)("span",{className:"text-[#1677ff]",children:p}),o,(null==l?void 0:l.type)&&(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",className:"inline pl-0.5",children:"[".concat(null==l?void 0:l.type,"]")})]})}):(0,n.jsx)(s.Z,{title:((null==l?void 0:l.comment)||(null==l?void 0:l.title))+((null==l?void 0:l.can_null)==="YES"?"(can null)":"(can't null)"),children:(0,n.jsxs)("span",{children:[i,(null==l?void 0:l.type)&&(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",className:"inline pl-0.5",children:"[".concat(null==l?void 0:l.type,"]")})]})});if(l.children){let n=t?String(t)+"_"+l.key:l.key;return{title:i,showTitle:r,key:n,children:e(l.children,n)}}return{title:i,showTitle:r,key:l.key}});return(null==Q?void 0:Q.data)?e([null==Q?void 0:Q.data]):[]},[p,Q]),el=i.useMemo(()=>{let e=[],l=(t,n)=>{if(t&&!((null==t?void 0:t.length)<=0))for(let i=0;i{let t;for(let n=0;nl.key===e)?t=i.key:et(e,i.children)&&(t=et(e,i.children)))}return t};return i.useEffect(()=>{y&&X(y)},[X,y]),i.useEffect(()=>{C&&"chat_dashboard"===V&&T&&W()},[T,V,C,W]),i.useEffect(()=>{C&&"chat_dashboard"!==V&&U()},[V,C,U]),(0,n.jsxs)("div",{className:"flex flex-col w-full h-full",children:[(0,n.jsxs)("div",{className:"bg-[#f8f8f8] border-[var(--joy-palette-divider)] border-b border-solid flex items-center px-3 justify-between",children:[(0,n.jsxs)("div",{className:"flex items-center py-3",children:[(0,n.jsx)(f.Z,{className:"mr-2"}),(0,n.jsx)(c.Z,{className:"h-4 min-w-[240px]",size:"sm",value:y,onChange:(e,l)=>{Z(l)},children:null==F?void 0:null===(d=F.data)||void 0===d?void 0:d.map(e=>(0,n.jsx)(v.Z,{value:null==e?void 0:e.round,children:null==e?void 0:e.round_name},null==e?void 0:e.round))})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(h.Z,{className:"bg-[#1677ff] text-[#fff] hover:bg-[#1c558e]",loading:J||H,onClick:async()=>{"chat_dashboard"===V?W():U()},children:"Run"}),(0,n.jsx)(h.Z,{variant:"outlined",className:"ml-3",loading:K||$,onClick:async()=>{"chat_dashboard"===V?await Y():await G()},children:"Save"})]})]}),(0,n.jsxs)("div",{className:"flex flex-1 overflow-auto",children:[(0,n.jsxs)("div",{className:"text h-full border-[var(--joy-palette-divider)] border-r border-solid p-3 max-h-full overflow-auto",style:{width:"300px"},children:[(0,n.jsx)(E,{style:{marginBottom:8},placeholder:"Search",onChange:e=>{let{value:l}=e.target;if(null==Q?void 0:Q.data){if(l){let e=el.map(e=>e.title.indexOf(l)>-1?et(e.key,ee):null).filter((e,l,t)=>e&&t.indexOf(e)===l);m(e)}else m([]);b(l),S(!0)}}}),(0,n.jsx)(j.Z,{onExpand:e=>{m(e),S(!1)},expandedKeys:r,autoExpandParent:N,treeData:ee,fieldNames:{title:"showTitle"}})]}),(0,n.jsx)("div",{className:"flex flex-col flex-1 max-w-full overflow-hidden",children:Array.isArray(C)?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(x.Z,{className:"h-full",sx:{".ant-tabs-content, .ant-tabs-tabpane-active":{height:"100%"},"& .ant-tabs-card.ant-tabs-top >.ant-tabs-nav .ant-tabs-tab, & .ant-tabs-card.ant-tabs-top >div>.ant-tabs-nav .ant-tabs-tab":{borderRadius:"0"}},children:(0,n.jsx)(g.Z,{className:"h-full",type:"card",activeKey:T,onChange:e=>{B(e),M(null==C?void 0:C[Number(e)])},items:null==C?void 0:C.map((e,l)=>({key:l+"",label:null==e?void 0:e.title,children:(0,n.jsx)("div",{className:"flex flex-col h-full",children:(0,n.jsx)(R,{editorValue:e,handleChange:(e,l)=>{if(O){let t=JSON.parse(JSON.stringify(O));t.sql=e,t.thoughts=l,M(t)}},tableData:q,chartData:P})})}))})})}):(0,n.jsx)(R,{editorValue:C,handleChange:(e,l)=>{M({thoughts:l,sql:e})},tableData:q,chartData:void 0})})]})]})},O=t(69962),M=t(97287),q=t(73141),L=t(45642),T=t(71990),B=e=>{let l=(0,i.useReducer)((e,l)=>({...e,...l}),{...e});return l},I=t(21628),A=t(52040),V=e=>{let{queryAgentURL:l,channel:t,queryBody:n,initHistory:d,runHistoryList:o}=e,[r,s]=B({history:d||[]}),u=(0,w.useSearchParams)(),c=u.get("id"),{refreshDialogList:v}=(0,a.Cg)(),h=new AbortController;(0,i.useEffect)(()=>{d&&s({history:d})},[d]);let x=async(e,i)=>{if(!e)return;let a=[...r.history,{role:"human",context:e}],d=a.length;s({history:a});let o={conv_uid:c,...i,...n,user_input:e,channel:t};if(!(null==o?void 0:o.conv_uid)){I.ZP.error("conv_uid 不存在,请刷新后重试");return}try{await (0,T.L)("".concat(A.env.API_BASE_URL?A.env.API_BASE_URL:"").concat("/api"+l),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),signal:h.signal,async onopen(e){if(a.length<=1){var l;v();let e=new URLSearchParams(window.location.search);e.delete("initMessage"),null===(l=window.history)||void 0===l||l.replaceState(null,null,"?".concat(e.toString()))}(!e.ok||e.headers.get("content-type")!==T.a)&&e.status>=400&&e.status<500&&429!==e.status&&e.status},onclose(){console.log("onclose")},onerror(e){throw console.log("onerror"),Error(e)},onmessage:e=>{var l,t,n;if(e.data=null===(l=e.data)||void 0===l?void 0:l.replaceAll("\\n","\n"),"[DONE]"===e.data);else if(null===(t=e.data)||void 0===t?void 0:t.startsWith("[ERROR]"))s({history:[...a,{role:"view",context:null===(n=e.data)||void 0===n?void 0:n.replace("[ERROR]","")}]});else{let l=[...a];e.data&&((null==l?void 0:l[d])?l[d].context="".concat(e.data):l.push({role:"view",context:e.data}),s({history:l}))}}})}catch(e){console.log(e),s({history:[...a,{role:"view",context:"请求出错"}]})}};return{handleChatSubmit:x,history:r.history}},F=t(67830),z=t(54842),U=t(80937),J=t(311),W=t(94244),H=t(35086),G=t(53047),K=t(34112),Y=t(30530),$=t(64747),Q=t(77614),X=t(19700),ee=t(92391),el=t(55749),et=t(70781),en=t(42599),ei=t(99398),ea=t(49064),ed=t(15241),eo=t(28179);let er=ee.z.object({query:ee.z.string().min(1)});var es=e=>{var l;let{messages:a,onSubmit:d,readOnly:o,paramsList:s,runParamsList:u,dbList:f,runDbList:m,supportTypes:p,clearIntialMessage:j,setChartsData:g}=e,b=(0,w.useSearchParams)(),y=b.get("initMessage"),N=b.get("scene"),S="chat_dashboard"===N,P=(0,i.useRef)(null),[C,E]=(0,i.useState)(!1),[R,D]=(0,i.useState)(),[O,M]=(0,i.useState)(!1),[q,L]=(0,i.useState)(),[T,B]=(0,i.useState)(a),[A,V]=(0,i.useState)(""),[ee,es]=(0,i.useState)(!1),[eu,ec]=(0,i.useState)(f),ev=(e,l,t)=>{let n=k().cloneDeep(eu);n&&(void 0===(null==eu?void 0:eu[e])&&(n[e]={}),n[e][l]=t,ec(n))},eh=(0,X.cI)({resolver:(0,F.F)(er),defaultValues:{}}),ex=async e=>{let{query:l}=e;try{E(!0),eh.reset(),await d(l,{select_param:null==s?void 0:s[R]})}catch(e){}finally{E(!1)}},ef=async()=>{try{var e;let l=new URLSearchParams(window.location.search),t=l.get("initMessage");l.delete("initMessage"),null===(e=window.history)||void 0===e||e.replaceState(null,null,"?".concat(l.toString())),await ex({query:t})}catch(e){console.log(e)}finally{null==j||j()}},em={overrides:{code:e=>{let{children:l}=e;return(0,n.jsx)(ei.Z,{language:"javascript",style:ea.Z,children:l})}},wrapper:i.Fragment},ep=e=>{let l=e;try{l=JSON.parse(e)}catch(e){console.log(e)}return l},ej=i.useMemo(()=>{if("function"==typeof(null==window?void 0:window.fetch)){let e=t(62631);return t(25204),t(82372),e.default}},[]);return i.useEffect(()=>{P.current&&P.current.scrollTo(0,P.current.scrollHeight)},[null==a?void 0:a.length]),i.useEffect(()=>{y&&a.length<=0&&ef()},[y,a.length]),i.useEffect(()=>{var e,l;s&&(null===(e=Object.keys(s||{}))||void 0===e?void 0:e.length)>0&&D(null===(l=Object.keys(s||{}))||void 0===l?void 0:l[0])},[s]),i.useEffect(()=>{if(S){let e=k().cloneDeep(a);e.forEach(e=>{(null==e?void 0:e.role)==="view"&&"string"==typeof(null==e?void 0:e.context)&&(e.context=ep(null==e?void 0:e.context))}),B(e.filter(e=>["view","human"].includes(e.role)))}else B(a.filter(e=>["view","human"].includes(e.role)))},[S,a]),(0,i.useEffect)(()=>{let e=k().cloneDeep(f);null==e||e.forEach(e=>{let l=null==p?void 0:p.find(l=>l.db_type===e.db_type);e.isfileDb=null==l?void 0:l.is_file_db}),ec(e)},[f,p]),(0,n.jsxs)("div",{className:"w-full h-full",children:[(0,n.jsxs)(U.Z,{className:"w-full h-full bg-[#fefefe] dark:bg-[#212121]",sx:{table:{borderCollapse:"collapse",border:"1px solid #ccc",width:"100%"},"th, td":{border:"1px solid #ccc",padding:"10px",textAlign:"center"}},children:[(0,n.jsxs)(U.Z,{ref:P,direction:"column",sx:{overflowY:"auto",maxHeight:"100%",flex:1},children:[null==T?void 0:T.map((e,l)=>{var t,i;return(0,n.jsx)(U.Z,{children:(0,n.jsx)(Z.Z,{size:"sm",variant:"outlined",color:"view"===e.role?"primary":"neutral",sx:l=>({background:"view"===e.role?"var(--joy-palette-primary-softBg, var(--joy-palette-primary-100, #DDF1FF))":"unset",border:"unset",borderRadius:"unset",padding:"24px 0 26px 0",lineHeight:"24px"}),children:(0,n.jsxs)(x.Z,{sx:{width:"76%",margin:"0 auto"},className:"flex flex-row",children:[(0,n.jsx)("div",{className:"mr-3 inline",children:"view"===e.role?(0,n.jsx)(et.Z,{}):(0,n.jsx)(el.Z,{})}),(0,n.jsx)("div",{className:"inline align-middle mt-0.5 max-w-full flex-1 overflow-auto",children:S&&"view"===e.role&&"object"==typeof(null==e?void 0:e.context)?(0,n.jsxs)(n.Fragment,{children:["[".concat(e.context.template_name,"]: "),(0,n.jsx)(J.Z,{sx:{color:"#1677ff"},component:"button",onClick:()=>{M(!0),L(l),V(JSON.stringify(null==e?void 0:e.context,null,2))},children:e.context.template_introduce||"暂无介绍"})]}):(0,n.jsx)(n.Fragment,{children:"string"==typeof e.context&&(0,n.jsx)(en.Z,{options:em,children:null===(t=e.context)||void 0===t?void 0:null===(i=t.replaceAll)||void 0===i?void 0:i.call(t,"\\n","\n")})})})]})})},l)}),C&&(0,n.jsx)(W.Z,{variant:"soft",color:"neutral",size:"sm",sx:{mx:"auto",my:2}})]}),!o&&(0,n.jsx)(x.Z,{className:"bg-[#fefefe] dark:bg-[#212121] before:bg-[#fefefe] before:dark:bg-[#212121]",sx:{position:"relative","&::before":{content:'" "',position:"absolute",top:"-18px",left:"0",right:"0",width:"100%",margin:"0 auto",height:"20px",filter:"blur(10px)",zIndex:2}},children:(0,n.jsxs)("form",{style:{maxWidth:"100%",width:"76%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",flexDirection:"column",gap:"12px",paddingBottom:"58px",paddingTop:"20px"},onSubmit:e=>{e.stopPropagation(),eh.handleSubmit(ex)(e)},children:[(0,n.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[Object.keys(s||{}).length>0&&(0,n.jsx)("div",{className:"flex items-center gap-3",children:(0,n.jsx)(c.Z,{value:R,onChange:(e,l)=>{D(l)},sx:{maxWidth:"100%"},children:null===(l=Object.keys(s||{}))||void 0===l?void 0:l.map(e=>(0,n.jsx)(v.Z,{value:e,children:e},e))})}),["chat_with_db_execute","chat_with_db_qa"].includes(N)&&(0,n.jsx)(h.Z,{"aria-label":"Like",variant:"plain",color:"neutral",sx:{padding:0,"&: hover":{backgroundColor:"unset"}},onClick:()=>{es(!0)},children:(0,n.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(eo.Z,{style:{marginBottom:"0.125rem",fontSize:"28px"}}),(0,n.jsx)("span",{style:{display:"block",lineHeight:"25px",fontSize:12,marginLeft:6},children:"DB Connect Setting"})]})})]}),(0,n.jsx)(H.ZP,{className:"w-full h-12",variant:"outlined",endDecorator:(0,n.jsx)(G.ZP,{type:"submit",disabled:C,children:(0,n.jsx)(z.Z,{})}),...eh.register("query")})]})})]}),(0,n.jsx)(K.Z,{open:O,onClose:()=>{M(!1)},children:(0,n.jsxs)(Y.Z,{"aria-labelledby":"variant-modal-title","aria-describedby":"variant-modal-description",children:[(0,n.jsx)($.Z,{}),(0,n.jsxs)(x.Z,{sx:{marginTop:"32px"},children:[!!ej&&(0,n.jsx)(ej,{mode:"json",value:A,height:"600px",width:"820px",onChange:V,placeholder:"默认json数据",debounceChangePeriod:100,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,setOptions:{useWorker:!0,showLineNumbers:!0,highlightSelectedWord:!0,tabSize:2}}),(0,n.jsx)(h.Z,{variant:"outlined",className:"w-full",sx:{marginTop:"12px"},onClick:()=>{if(q)try{let e=k().cloneDeep(T),l=JSON.parse(A);e[q].context=l,B(e),null==g||g(null==l?void 0:l.charts),M(!1),V("")}catch(e){I.ZP.error("JSON 格式化出错")}},children:"Submit"})]})]})}),(0,n.jsx)(K.Z,{open:ee,onClose:()=>{es(!1),null==u||u()},children:(0,n.jsxs)(Y.Z,{children:[(0,n.jsx)($.Z,{}),(0,n.jsxs)(r.Z,{children:[(0,n.jsx)("caption",{children:(0,n.jsx)("h3",{style:{fontWeight:"bold"},children:"数据库列表"})}),(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{style:{width:"140px"},children:"数据库类型"}),(0,n.jsx)("th",{style:{width:"130px"},children:"数据库名"}),(0,n.jsx)("th",{style:{width:"150px"},children:"链接地址/域名"}),(0,n.jsx)("th",{style:{width:"100px"},children:"端口"}),(0,n.jsx)("th",{style:{width:"140px"},children:"用户名"}),(0,n.jsx)("th",{style:{width:"140px"},children:"密码"}),(0,n.jsx)("th",{style:{width:"140px"},children:"备注"}),(0,n.jsx)("th",{style:{width:"140px"},children:"操作"})]})}),(0,n.jsxs)("tbody",{children:[null==eu?void 0:eu.map((e,l)=>(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(c.Z,{defaultValue:null==e?void 0:e.db_type,onChange:(e,t)=>{let n=null==p?void 0:p.find(e=>e.db_type===t),i=k().cloneDeep(eu);i[l].db_type=t,i[l].isfileDb=null==n?void 0:n.is_file_db,n?(i[l].db_host="",i[l].db_port=""):i[l].db_path="",ec(i)},children:null==p?void 0:p.map(e=>(0,n.jsx)(v.Z,{value:e.db_type,children:null==e?void 0:e.db_type},e.db_type))}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.db_type,children:null==e?void 0:e.db_type})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isNew)?(0,n.jsx)(H.ZP,{value:null==e?void 0:e.db_name,onChange:e=>{ev(l,"db_name",e.target.value)}}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.db_name,children:null==e?void 0:e.db_name})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(H.ZP,{value:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,onChange:t=>{(null==e?void 0:e.isfileDb)?ev(l,"db_path",t.target.value):ev(l,"db_host",t.target.value)}}):(0,n.jsx)(ed.Z,{title:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host,children:(null==e?void 0:e.isfileDb)?null==e?void 0:e.db_path:null==e?void 0:e.db_host})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(null==e?void 0:e.isfileDb)?"-":(0,n.jsx)(H.ZP,{value:null==e?void 0:e.db_port,onChange:e=>{ev(l,"db_port",e.target.value)}}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.db_port,children:null==e?void 0:e.db_port})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(H.ZP,{defaultValue:e.db_user,onChange:e=>{ev(l,"db_user",e.target.value)}}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.db_user,children:null==e?void 0:e.db_user})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(H.ZP,{defaultValue:e.db_pwd,type:"password",onChange:e=>{ev(l,"db_pwd",e.target.value)}}):(0,n.jsx)(n.Fragment,{children:"******"})}),(0,n.jsx)("td",{children:(null==e?void 0:e.isEdit)?(0,n.jsx)(H.ZP,{defaultValue:null==e?void 0:e.comment,onChange:e=>{ev(l,"comment",e.target.value)}}):(0,n.jsx)(ed.Z,{title:null==e?void 0:e.comment,children:null==e?void 0:e.comment})}),(0,n.jsx)("td",{children:(0,n.jsxs)(x.Z,{sx:{gap:1,["& .".concat(Q.Z.root)]:{padding:0,"&:hover":{background:"transparent"}}},children:[(null==e?void 0:e.isEdit)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:async()=>{let l=k().cloneDeep(e),t={db_type:null==l?void 0:l.db_type,db_name:null==l?void 0:l.db_name,file_path:(null==l?void 0:l.isfileDb)?null==l?void 0:l.db_path:void 0,db_host:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_host,db_port:(null==l?void 0:l.isfileDb)?void 0:null==l?void 0:l.db_port,db_user:null==l?void 0:l.db_user,db_pwd:null==l?void 0:l.db_pwd,comment:null==l?void 0:l.comment};if(l.isNew){let e=null==f?void 0:f.map(e=>null==e?void 0:e.db_name);if(null==e?void 0:e.includes(null==l?void 0:l.db_name)){I.ZP.error("该数据库名称已存在");return}await (0,_.PR)("/api/v1/chat/db/add",t)}else await (0,_.PR)("/api/v1/chat/db/edit",t);await (null==m?void 0:m())},children:"保存"}),(0,n.jsx)(h.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let t=k().cloneDeep(eu);(null==e?void 0:e.isNew)?t.splice(l,1):(t[l].isEdit=!1,t[l]=null==f?void 0:f[l]),ec(t)},children:"取消"})]}):(0,n.jsx)(h.Z,{size:"sm",variant:"plain",color:"neutral",sx:{marginRight:"8px"},onClick:()=>{let e=k().cloneDeep(eu);e[l].isEdit=!0,ec(e)},children:"编辑"}),(0,n.jsx)(h.Z,{size:"sm",variant:"soft",color:"danger",onClick:async()=>{(null==e?void 0:e.db_name)&&(await (0,_.PR)("/api/v1/chat/db/delete?db_name=".concat(null==e?void 0:e.db_name)),await (null==m?void 0:m()))},children:"删除"})]})})]},l)),(0,n.jsx)("tr",{children:(0,n.jsx)("td",{colSpan:8,children:(0,n.jsx)(h.Z,{variant:"outlined",sx:{width:"100%"},onClick:()=>{let e=k().cloneDeep(eu);null==e||e.push({isEdit:!0,isNew:!0,db_name:""}),ec(e)},children:"+ 新增一行"})})})]})]})]})})]})};let eu=()=>(0,n.jsxs)(Z.Z,{className:"h-full w-full flex bg-transparent",children:[(0,n.jsx)(O.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(O.Z,{animation:"wave",variant:"text",level:"body2"}),(0,n.jsx)(M.Z,{ratio:"21/9",className:"flex-1",sx:{["& .".concat(q.Z.content)]:{height:"100%"}},children:(0,n.jsx)(O.Z,{variant:"overlay",className:"h-full"})})]});var ec=()=>{let[e,l]=(0,i.useState)(),t=(0,w.useSearchParams)(),{refreshDialogList:d}=(0,a.Cg)(),s=t.get("id"),c=t.get("scene"),{data:v,run:h}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/chat/dialogue/messages/history",{con_uid:s}),{ready:!!s,refreshDeps:[s,c]}),{data:f,run:m}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/chat/db/list"),{ready:!!c&&!!["chat_with_db_execute","chat_with_db_qa"].includes(c)}),{data:p}=(0,o.Z)(async()=>await (0,_.Tk)("/v1/chat/db/support/type"),{ready:!!c&&!!["chat_with_db_execute","chat_with_db_qa"].includes(c)}),{data:j,run:g}=(0,o.Z)(async()=>await (0,_.Kw)("/v1/chat/mode/params/list?chat_mode=".concat(c)),{ready:!!c,refreshDeps:[s,c]}),{history:b,handleChatSubmit:y}=V({queryAgentURL:"/v1/chat/completions",queryBody:{conv_uid:s,chat_mode:c||"chat_normal"},initHistory:null==v?void 0:v.data,runHistoryList:h});(0,i.useEffect)(()=>{try{var e;let t=null==b?void 0:null===(e=b[b.length-1])||void 0===e?void 0:e.context,n=JSON.parse(t);l((null==n?void 0:n.template_name)==="report"?null==n?void 0:n.charts:void 0)}catch(e){l(void 0)}},[b]);let P=(0,i.useMemo)(()=>{if(e){let l=[],t=null==e?void 0:e.filter(e=>"IndicatorValue"===e.chart_type);t.length>0&&l.push({rowIndex:l.length,cols:t,type:"IndicatorValue"});let n=null==e?void 0:e.filter(e=>"IndicatorValue"!==e.chart_type),i=n.length,a=0;return[[0],[1],[2],[1,2],[1,3],[2,1,2],[2,1,3],[3,1,3],[3,2,3]][i].forEach(e=>{if(e>0){let t=n.slice(a,a+e);a+=e,l.push({rowIndex:l.length,cols:t})}}),l}},[e]);return(0,n.jsxs)(L.Z,{container:!0,spacing:2,className:"h-full overflow-auto px-3",sx:{flexGrow:1},children:[e&&(0,n.jsx)(L.Z,{xs:8,className:"max-h-full",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:null==P?void 0:P.map(e=>(0,n.jsx)("div",{className:"".concat((null==e?void 0:e.type)!=="IndicatorValue"?"flex flex-1 gap-3 overflow-hidden":""),children:e.cols.map(e=>{if("IndicatorValue"===e.chart_type)return(0,n.jsx)("div",{className:"flex flex-row gap-3",children:e.values.map(e=>(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"justify-around",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.name}),(0,n.jsx)(u.ZP,{children:e.value})]})})},e.name))},e.chart_uid);if("LineChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,n.jsx)(Z.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1 h-full",children:(0,n.jsx)(S.Chart,{autoFit:!0,data:e.values,children:(0,n.jsx)(S.LineAdvance,{shape:"smooth",point:!0,area:!0,position:"name*value",color:"type"})})})]})})},e.chart_uid);if("BarChart"===e.chart_type)return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{className:"h-full",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(S.Chart,{autoFit:!0,data:e.values,children:[(0,n.jsx)(S.Interval,{position:"name*value",style:{lineWidth:3,stroke:(0,S.getTheme)().colors10[0]}}),(0,n.jsx)(S.Tooltip,{shared:!0})]})})]})})},e.chart_uid);if("Table"===e.chart_type){var l,t;let i=k().groupBy(e.values,"type");return(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(Z.Z,{className:"h-full overflow-auto",sx:{background:"transparent"},children:(0,n.jsxs)(N.Z,{className:"h-full",children:[(0,n.jsx)(u.ZP,{gutterBottom:!0,component:"div",children:e.chart_name}),(0,n.jsx)(u.ZP,{gutterBottom:!0,level:"body3",children:e.chart_desc}),(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsxs)(r.Z,{"aria-label":"basic table",stripe:"odd",hoverRow:!0,borderAxis:"bothBetween",children:[(0,n.jsx)("thead",{children:(0,n.jsx)("tr",{children:Object.keys(i).map(e=>(0,n.jsx)("th",{children:e},e))})}),(0,n.jsx)("tbody",{children:null===(l=Object.values(i))||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.map((e,l)=>{var t;return(0,n.jsx)("tr",{children:null===(t=Object.keys(i))||void 0===t?void 0:t.map(e=>{var t;return(0,n.jsx)("td",{children:(null==i?void 0:null===(t=i[e])||void 0===t?void 0:t[l].value)||""},e)})},l)})})]})})]})})},e.chart_uid)}})},e.rowIndex))})}),!e&&"chat_dashboard"===c&&(0,n.jsx)(L.Z,{xs:8,className:"max-h-full p-6",children:(0,n.jsx)("div",{className:"flex flex-col gap-3 h-full",children:(0,n.jsxs)(L.Z,{container:!0,spacing:2,sx:{flexGrow:1},children:[(0,n.jsx)(L.Z,{xs:8,children:(0,n.jsx)(x.Z,{className:"h-full w-full",sx:{display:"flex",gap:2},children:(0,n.jsx)(eu,{})})}),(0,n.jsx)(L.Z,{xs:4,children:(0,n.jsx)(eu,{})}),(0,n.jsx)(L.Z,{xs:4,children:(0,n.jsx)(eu,{})}),(0,n.jsx)(L.Z,{xs:8,children:(0,n.jsx)(eu,{})})]})})}),(0,n.jsx)(L.Z,{xs:"chat_dashboard"===c?4:12,className:"h-full max-h-full",children:(0,n.jsx)("div",{className:"h-full",style:{boxShadow:"chat_dashboard"===c?"0px 0px 9px 0px #c1c0c080":"unset"},children:(0,n.jsx)(es,{clearIntialMessage:async()=>{await d()},dbList:null==f?void 0:f.data,runDbList:m,supportTypes:null==p?void 0:p.data,messages:b||[],onSubmit:y,paramsList:null==j?void 0:j.data,runParamsList:g,setChartsData:l})})})]})},ev=()=>{let{isContract:e,setIsContract:l}=(0,a.Cg)(),t=(0,w.useSearchParams)(),i=t.get("scene"),o=i&&["chat_with_db_execute","chat_dashboard"].includes(i);return(0,n.jsxs)(n.Fragment,{children:[!e&&o&&(0,n.jsx)("div",{className:"leading-[3rem] text-right pr-3 mb-3 border-b flex justify-end",children:(0,n.jsxs)("div",{className:"flex items-center cursor-pointer",onClick:()=>{l(!e)},children:[(0,n.jsx)(d.Z,{style:{marginRight:"4px"}}),"Change Mode"]})}),e?(0,n.jsx)(D,{}):(0,n.jsx)(ec,{})]})}},57931:function(e,l,t){"use strict";t.d(l,{ZP:function(){return s},Cg:function(){return o}});var n=t(9268),i=t(89081),a=t(78915),d=t(86006);let[o,r]=function(){let e=d.createContext(void 0);return[function(){let l=d.useContext(e);if(void 0===l)throw Error("useCtx must be inside a Provider with a value");return l},e.Provider]}();var s=e=>{let{children:l}=e,[t,o]=d.useState(!1),{run:s,data:u,refresh:c}=(0,i.Z)(async()=>await (0,a.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(r,{value:{isContract:t,dialogueList:u,setIsContract:o,queryDialogueList:s,refreshDialogList:c},children:l})}},78915:function(e,l,t){"use strict";t.d(l,{Tk:function(){return u},Kw:function(){return c},PR:function(){return v},Ej:function(){return h}});var n=t(21628),i=t(24214),a=t(52040);let d=i.Z.create({baseURL:a.env.API_BASE_URL});d.defaults.timeout=1e4,d.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=t(84835);let r={"content-type":"application/json"},s=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let l={...e};for(let e in l){let t=l[e];"string"==typeof t&&(l[e]=t.trim())}return JSON.stringify(l)},u=(e,l)=>{if(l){let t=Object.keys(l).filter(e=>void 0!==l[e]&&""!==l[e]).map(e=>"".concat(e,"=").concat(l[e])).join("&");t&&(e+="?".concat(t))}return d.get("/api"+e,{headers:r}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},c=(e,l)=>{let t=s(l);return d.post("/api"+e,{body:t,headers:r}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},v=(e,l)=>d.post(e,l,{headers:r}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)}),h=(e,l)=>d.post(e,l).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,7991,5757,7282,780,272,8942,7192,7518,5935,5086,4289,6316,1259,2657,5579,9253,5769,1744],function(){return e(e.s=86066)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-0f2d3429fd2ed723.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-0f2d3429fd2ed723.js deleted file mode 100644 index 3247c01ac..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-0f2d3429fd2ed723.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[538],{40687:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var r=n(9268),a=n(56008),i=n(86006),c=n(78635),s=n(90545),o=n(80937),l=n(44334),d=n(311),h=n(22046),u=n(83192),g=n(23910),f=n(29766),j=n(78915);t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,c.tv)(),n=(0,a.useSearchParams)().get("spacename"),m=(0,a.useSearchParams)().get("documentid"),[p,x]=(0,i.useState)(0),[P,b]=(0,i.useState)(0),[S,Z]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:1,page_size:20});e.success&&(Z(e.data.data),x(e.data.total),b(e.data.page))})()},[]),(0,r.jsxs)(s.Z,{className:"p-4",sx:{"&":{height:"90%"}},children:[(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,r.jsxs)(l.Z,{"aria-label":"breadcrumbs",children:[(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,r.jsx)(h.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,r.jsx)(s.Z,{className:"p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:S.length?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(u.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Content"}),(0,r.jsx)("th",{children:"Meta Data"})]})}),(0,r.jsx)("tbody",{children:S.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e.doc_name}),(0,r.jsx)("td",{children:(0,r.jsx)(g.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,r.jsx)("td",{children:(0,r.jsx)(g.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]})}):(0,r.jsx)(r.Fragment,{})}),(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,r.jsx)(f.Z,{defaultPageSize:20,showSizeChanger:!1,current:P,total:p,onChange:async e=>{let t=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:e,page_size:20});t.success&&(Z(t.data.data),x(t.data.total),b(t.data.page))},hideOnSinglePage:!0})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return g}});var r=n(21628),a=n(24214),i=n(52040);let c=a.Z.create({baseURL:i.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=n(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return c.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let n=l(t);return c.post("/api"+e,{body:n,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(l(t),c.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})),g=(e,t)=>c.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,759,192,409,767,207,253,769,744],function(){return e(e.s=40687)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-12cc5c0c6d472b7c.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-12cc5c0c6d472b7c.js deleted file mode 100644 index 48aaa8410..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-12cc5c0c6d472b7c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4538],{30976:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var r=n(9268),a=n(56008),i=n(86006),c=n(78635),s=n(80937),o=n(44334),l=n(311),d=n(22046),h=n(83192),u=n(23910),g=n(71357),f=n(78915);t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,c.tv)(),n=(0,a.useSearchParams)().get("spacename"),j=(0,a.useSearchParams)().get("documentid"),[m,p]=(0,i.useState)(0),[x,P]=(0,i.useState)(0),[S,b]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await (0,f.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:j,page:1,page_size:20});e.success&&(b(e.data.data),p(e.data.total),P(e.data.page))})()},[]),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)(s.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,r.jsxs)(o.Z,{"aria-label":"breadcrumbs",children:[(0,r.jsx)(l.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,r.jsx)(l.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,r.jsx)(d.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,r.jsx)("div",{className:"p-4",children:S.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Content"}),(0,r.jsx)("th",{children:"Meta Data"})]})}),(0,r.jsx)("tbody",{children:S.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e.doc_name}),(0,r.jsx)("td",{children:(0,r.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,r.jsx)("td",{children:(0,r.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,r.jsx)(s.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,r.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:x,total:m,onChange:async e=>{let t=await (0,f.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:j,page:e,page_size:20});t.success&&(b(t.data.data),p(t.data.total),P(t.data.page))},hideOnSinglePage:!0})})]}):(0,r.jsx)(r.Fragment,{})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return l},Kw:function(){return d},PR:function(){return h},Ej:function(){return u}});var r=n(21628),a=n(24214);let i=a.Z.create({baseURL:"http://127.0.0.1:5000"});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var c=n(84835);let s={"content-type":"application/json"},o=e=>{if(!(0,c.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},l=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return i.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let n=o(t);return i.post("/api"+e,{body:n,headers:s}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>i.post(e,t,{headers:s}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)}),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,3933,8942,7192,7518,4289,8635,6412,9253,5769,1744],function(){return e(e.s=30976)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-1e8576aa7ffe5a4c.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-1e8576aa7ffe5a4c.js new file mode 100644 index 000000000..d55a798f7 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-1e8576aa7ffe5a4c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4538],{30976:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var r=n(9268),a=n(56008),i=n(86006),c=n(78635),s=n(90545),o=n(80937),l=n(44334),d=n(311),h=n(22046),u=n(83192),g=n(23910),f=n(71357),j=n(78915);t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,c.tv)(),n=(0,a.useSearchParams)().get("spacename"),m=(0,a.useSearchParams)().get("documentid"),[p,x]=(0,i.useState)(0),[P,b]=(0,i.useState)(0),[S,Z]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:1,page_size:20});e.success&&(Z(e.data.data),x(e.data.total),b(e.data.page))})()},[]),(0,r.jsxs)(s.Z,{className:"p-4",sx:{"&":{height:"90%"}},children:[(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,r.jsxs)(l.Z,{"aria-label":"breadcrumbs",children:[(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,r.jsx)(d.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,r.jsx)(h.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,r.jsx)(s.Z,{className:"p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:S.length?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(u.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Content"}),(0,r.jsx)("th",{children:"Meta Data"})]})}),(0,r.jsx)("tbody",{children:S.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e.doc_name}),(0,r.jsx)("td",{children:(0,r.jsx)(g.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,r.jsx)("td",{children:(0,r.jsx)(g.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]})}):(0,r.jsx)(r.Fragment,{})}),(0,r.jsx)(o.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,r.jsx)(f.Z,{defaultPageSize:20,showSizeChanger:!1,current:P,total:p,onChange:async e=>{let t=await (0,j.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:m,page:e,page_size:20});t.success&&(Z(t.data.data),x(t.data.total),b(t.data.page))},hideOnSinglePage:!0})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return g}});var r=n(21628),a=n(24214),i=n(52040);let c=a.Z.create({baseURL:i.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=n(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return c.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let n=l(t);return c.post("/api"+e,{body:n,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>c.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)}),g=(e,t)=>c.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,877,8942,7192,7518,4289,8635,6412,9253,5769,1744],function(){return e(e.s=30976)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-91cb935e71da45bc.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-91cb935e71da45bc.js deleted file mode 100644 index 915310bd4..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/chunklist/page-91cb935e71da45bc.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4538],{30976:function(e,t,n){Promise.resolve().then(n.bind(n,26257))},26257:function(e,t,n){"use strict";n.r(t);var r=n(9268),a=n(56008),i=n(86006),c=n(78635),s=n(80937),o=n(44334),l=n(311),d=n(22046),h=n(83192),u=n(23910),g=n(71357),f=n(78915);t.default=()=>{let e=(0,a.useRouter)(),{mode:t}=(0,c.tv)(),n=(0,a.useSearchParams)().get("spacename"),j=(0,a.useSearchParams)().get("documentid"),[m,p]=(0,i.useState)(0),[x,P]=(0,i.useState)(0),[S,_]=(0,i.useState)([]);return(0,i.useEffect)(()=>{(async function(){let e=await (0,f.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:j,page:1,page_size:20});e.success&&(_(e.data.data),p(e.data.total),P(e.data.page))})()},[]),(0,r.jsxs)("div",{className:"p-4",children:[(0,r.jsx)(s.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:(0,r.jsxs)(o.Z,{"aria-label":"breadcrumbs",children:[(0,r.jsx)(l.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,r.jsx)(l.Z,{onClick:()=>{e.push("/datastores/documents?name=".concat(n))},underline:"hover",color:"neutral",fontSize:"inherit",children:"Documents"},"Knowledge Space"),(0,r.jsx)(d.ZP,{fontSize:"inherit",children:"Chunks"})]})}),(0,r.jsx)("div",{className:"p-4",children:S.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(h.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===t?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,r.jsx)("thead",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:"Name"}),(0,r.jsx)("th",{children:"Content"}),(0,r.jsx)("th",{children:"Meta Data"})]})}),(0,r.jsx)("tbody",{children:S.map(e=>(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{children:e.doc_name}),(0,r.jsx)("td",{children:(0,r.jsx)(u.Z,{content:e.content,trigger:"hover",children:e.content.length>10?"".concat(e.content.slice(0,10),"..."):e.content})}),(0,r.jsx)("td",{children:(0,r.jsx)(u.Z,{content:JSON.stringify(e.meta_info||"{}",null,2),trigger:"hover",children:e.meta_info.length>10?"".concat(e.meta_info.slice(0,10),"..."):e.meta_info})})]},e.id))})]}),(0,r.jsx)(s.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,r.jsx)(g.Z,{defaultPageSize:20,showSizeChanger:!1,current:x,total:m,onChange:async e=>{let t=await (0,f.PR)("/knowledge/".concat(n,"/chunk/list"),{document_id:j,page:e,page_size:20});t.success&&(_(t.data.data),p(t.data.total),P(t.data.page))},hideOnSinglePage:!0})})]}):(0,r.jsx)(r.Fragment,{})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return g}});var r=n(21628),a=n(24214),i=n(52040);let c=a.Z.create({baseURL:i.env.API_BASE_URL});c.defaults.timeout=1e4,c.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=n(84835);let o={"content-type":"application/json"},l=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return c.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let n=l(t);return c.post("/api"+e,{body:n,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>c.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)}),g=(e,t)=>c.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,780,8942,7192,7518,4289,8635,6412,9253,5769,1744],function(){return e(e.s=30976)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-0b66d50138295cd3.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-0b66d50138295cd3.js new file mode 100644 index 000000000..33d495492 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-0b66d50138295cd3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1470],{4797:function(e,t,n){Promise.resolve().then(n.bind(n,87278))},87278:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K}});var s=n(9268),a=n(56008),r=n(86006),i=n(50645),o=n(5737),l=n(78635),c=n(80937),d=n(44334),x=n(311),u=n(22046),h=n(53113),g=n(83192),m=n(58927),p=n(34112),j=n(90545),Z=n(35086),f=n(96323),v=n(47611),y=n(65326),b=n.n(y),w=n(72474),P=n(59534),k=n(78141),_=n(68949),S=n(73220),C=n(53195),R=n(23910),z=n(21628),B=n(71357),L=n(78915),T=n(89081),D=n(59970),N=n(30929),F=n(79214),E=n(99011),O=n(57746),A=n(76394),I=n.n(A),U=e=>{var t,n,a,i,l,d,x,u,g,m,v,y,b,w,P,k,_,S;let{spaceName:C}=e,[B,A]=(0,r.useState)(!1),[U,V]=(0,r.useState)({}),{data:M}=(0,T.Z)(()=>(0,L.PR)("/knowledge/".concat(C,"/arguments")),{onSuccess(e){V(e.data)}}),W=[{key:"Embedding",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(F.Z,{sx:{marginRight:"5px"}}),"Embedding"]}),children:(0,s.jsxs)(j.Z,{children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["topk",(0,s.jsx)(R.Z,{content:"the top k vectors based on similarity score",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(t=M.data)||void 0===t?void 0:null===(n=t.embedding)||void 0===n?void 0:n.topk)||"",onChange:e=>{U.embedding.topk=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_score",(0,s.jsx)(R.Z,{content:"Set a threshold score for the retrieval of similar vectors",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:""+(null==M?void 0:null===(a=M.data)||void 0===a?void 0:null===(i=a.embedding)||void 0===i?void 0:i.recall_score)||"",onChange:e=>{U.embedding.recall_score=e.target.value,V({...U})},disabled:!0})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_type",(0,s.jsx)(R.Z,{content:"recall type",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(l=M.data)||void 0===l?void 0:null===(d=l.embedding)||void 0===d?void 0:d.recall_type)||"",onChange:e=>{U.embedding.recall_type=e.target.value,V({...U})},disabled:!0})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["model",(0,s.jsx)(R.Z,{content:"A model used to create vector representations of text or other data",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(x=M.data)||void 0===x?void 0:null===(u=x.embedding)||void 0===u?void 0:u.model)||"",onChange:e=>{U.embedding.model=e.target.value,V({...U})},disabled:!0,startDecorator:(0,s.jsx)(I(),{src:"/huggingface_logo.svg",alt:"huggingface logo",width:20,height:20})})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_size",(0,s.jsx)(R.Z,{content:"The size of the data chunks used in processing",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(g=M.data)||void 0===g?void 0:null===(m=g.embedding)||void 0===m?void 0:m.chunk_size)||"",onChange:e=>{U.embedding.chunk_size=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_overlap",(0,s.jsx)(R.Z,{content:"The amount of overlap between adjacent data chunks",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(v=M.data)||void 0===v?void 0:null===(y=v.embedding)||void 0===y?void 0:y.chunk_overlap)||"",onChange:e=>{U.embedding.chunk_overlap=e.target.value,V({...U})}})})]})]})]})},{key:"Prompt",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(E.Z,{sx:{marginRight:"5px"}}),"Prompt"]}),children:(0,s.jsxs)(j.Z,{sx:{maxHeight:"600px",overflow:"auto","&::-webkit-scrollbar":{display:"none"}},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",marginTop:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["scene",(0,s.jsx)(R.Z,{content:"A contextual parameter used to define the setting or environment in which the prompt is being used",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(b=M.data)||void 0===b?void 0:null===(w=b.prompt)||void 0===w?void 0:w.scene)||"",onChange:e=>{U.prompt.scene=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["template",(0,s.jsx)(R.Z,{content:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(P=M.data)||void 0===P?void 0:null===(k=P.prompt)||void 0===k?void 0:k.template)||"",onChange:e=>{U.prompt.template=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["max_token",(0,s.jsx)(R.Z,{content:"The maximum number of tokens or words allowed in a prompt",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(_=M.data)||void 0===_?void 0:null===(S=_.prompt)||void 0===S?void 0:S.max_token)||"",onChange:e=>{U.prompt.max_token=e.target.value,V({...U})}})})]})]})}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h.Z,{variant:"outlined",onClick:()=>A(!0),children:[(0,s.jsx)(N.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Arguments"]}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:B,onClose:()=>A(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(O.Z,{defaultActiveKey:"Embedding",items:W}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",sx:{marginTop:"20px",marginBottom:"20px"},children:(0,s.jsx)(h.Z,{variant:"outlined",onClick:()=>{(0,L.PR)("/knowledge/".concat(C,"/argument/save"),{argument:JSON.stringify(U)}).then(e=>{e.success?(window.location.reload(),z.ZP.success("success")):z.ZP.error(e.err_msg||"failed")})},children:"Submit"})})]})})]})};let{Dragger:V}=C.default,M=(0,i.Z)(o.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),W=["Choose a Datasource type","Setup the Datasource"],H=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var K=()=>{let e=(0,a.useRouter)(),t=(0,a.useSearchParams)().get("name"),{mode:n}=(0,l.tv)(),[i,y]=(0,r.useState)(!1),[C,T]=(0,r.useState)(0),[D,N]=(0,r.useState)(""),[F,E]=(0,r.useState)([]),[O,A]=(0,r.useState)(""),[I,K]=(0,r.useState)(""),[Y,J]=(0,r.useState)(""),[G,X]=(0,r.useState)(""),[q,Q]=(0,r.useState)(null),[$,ee]=(0,r.useState)(0),[et,en]=(0,r.useState)(0),[es,ea]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{(async function(){let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))})()},[]),(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,s.jsx)(x.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,s.jsx)(u.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,s.jsxs)(c.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(h.Z,{variant:"outlined",onClick:async()=>{var n,s;let a=await (0,L.PR)("/api/v1/chat/dialogue/new",{chat_mode:"chat_knowledge"});(null==a?void 0:a.success)&&(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.conv_uid)&&e.push("/chat?id=".concat(null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.conv_uid,"&scene=chat_knowledge&spaceNameOriginal=").concat(t))},sx:{marginRight:"20px",backgroundColor:"rgb(39, 155, 255) !important",color:"white",border:"none"},children:[(0,s.jsx)(S.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Chat"]}),(0,s.jsx)(h.Z,{variant:"outlined",onClick:()=>y(!0),sx:{marginRight:"20px"},children:"+ Add Datasource"}),(0,s.jsx)(U,{spaceName:t})]})]}),F.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.Z,{color:"primary",variant:"plain",size:"sm",sx:{"& tbody tr: hover":{backgroundColor:"light"===n?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"},"& tr > *:last-child":{textAlign:"right"}},children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Name"}),(0,s.jsx)("th",{children:"Type"}),(0,s.jsx)("th",{children:"Size"}),(0,s.jsx)("th",{children:"Last Synch"}),(0,s.jsx)("th",{children:"Status"}),(0,s.jsx)("th",{children:"Result"}),(0,s.jsx)("th",{style:{width:"30%"},children:"Operation"})]})}),(0,s.jsx)("tbody",{children:F.map(n=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:n.doc_name}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"neutral",sx:{opacity:.5},children:n.doc_type})}),(0,s.jsxs)("td",{children:[n.chunk_size," chunks"]}),(0,s.jsx)("td",{children:b()(n.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",sx:{opacity:.5},variant:"solid",color:function(){switch(n.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:n.status})}),(0,s.jsx)("td",{children:"TODO"===n.status||"RUNNING"===n.status?"":"FINISHED"===n.status?(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,s.jsx)("td",{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.id]});e.success?z.ZP.success("success"):z.ZP.error(e.err_msg||"failed")},children:["Synch",(0,s.jsx)(k.Z,{})]}),(0,s.jsx)(h.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(n.id))},children:"Details"}),(0,s.jsxs)(h.Z,{variant:"outlined",size:"sm",color:"danger",onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/delete"),{doc_name:n.doc_name});if(e.success){z.ZP.success("success");let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")},children:["Delete",(0,s.jsx)(_.Z,{})]})]})})]},n.id))})]}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,s.jsx)(B.Z,{defaultPageSize:20,showSizeChanger:!1,current:et,total:$,onChange:async e=>{let n=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});n.success&&(E(n.data.data),ee(n.data.total),en(n.data.page))},hideOnSinglePage:!0})})]}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:i,onClose:()=>y(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(j.Z,{sx:{width:"100%"},children:(0,s.jsx)(c.Z,{spacing:2,direction:"row",children:W.map((e,t)=>(0,s.jsxs)(M,{sx:{fontWeight:C===t?"bold":"",color:C===t?"#2AA3FF":""},children:[t(0,s.jsxs)(o.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{N(e.type),T(1)},children:[(0,s.jsx)(o.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,s.jsx)(o.Z,{children:e.subTitle})]},e.type))})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.Z,{sx:{margin:"30px auto"},children:["Name:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the name",onChange:e=>K(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===D?(0,s.jsxs)(s.Fragment,{children:["Web Page URL:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>A(e.target.value)})]}):"file"===D?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(V,{name:"file",multiple:!1,beforeUpload:()=>!1,onChange(e){if(0===e.fileList.length){Q(null),K("");return}Q(e.file),K(e.file.name)},children:[(0,s.jsx)("p",{className:"ant-upload-drag-icon",children:(0,s.jsx)(w.Z,{})}),(0,s.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,s.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,s.jsxs)(s.Fragment,{children:["Text Source(Optional):",(0,s.jsx)(Z.ZP,{placeholder:"Please input the text source",onChange:e=>J(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,s.jsx)(f.Z,{onChange:e=>X(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,s.jsx)(u.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,s.jsx)(v.Z,{checked:es,onChange:e=>ea(e.target.checked)}),children:"Synch:"})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsx)(h.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>T(0),children:"< Back"}),(0,s.jsx)(h.Z,{variant:"outlined",onClick:async()=>{if(""===I){z.ZP.error("Please input the name");return}if("webPage"===D){if(""===O){z.ZP.error("Please input the Web Page URL");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,content:O,doc_type:"URL"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}else if("file"===D){if(!q){z.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",I),e.append("doc_file",q),e.append("doc_type","DOCUMENT");let n=await (0,L.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(n.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.data]}),n.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(n.err_msg||"failed")}else{if(""===G){z.ZP.error("Please input the text");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,source:Y,content:G,doc_type:"TEXT"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return x},PR:function(){return u},Ej:function(){return h}});var s=n(21628),a=n(24214),r=n(52040);let i=a.Z.create({baseURL:r.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=n(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},x=(e,t)=>{let n=c(t);return i.post("/api"+e,{body:n,headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>i.post(e,t,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)}),h=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,4550,877,5230,8942,7192,7518,5935,9081,5086,4289,6394,8635,6412,8453,2149,8582,9253,5769,1744],function(){return e(e.s=4797)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-33643da78853c3ea.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-33643da78853c3ea.js deleted file mode 100644 index 4277fd6c6..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-33643da78853c3ea.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{42414:function(e,t,n){Promise.resolve().then(n.bind(n,87278))},87278:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K}});var s=n(9268),a=n(56008),r=n(86006),i=n(50645),o=n(5737),l=n(78635),c=n(80937),d=n(44334),x=n(311),u=n(22046),h=n(53113),g=n(83192),m=n(58927),p=n(81528),j=n(90545),Z=n(35086),f=n(866),v=n(28086),y=n(65326),b=n.n(y),w=n(72474),P=n(59534),k=n(78141),_=n(68949),S=n(73220),C=n(50157),R=n(23910),z=n(21628),B=n(29766),L=n(78915),T=n(89081),D=n(59970),N=n(30929),F=n(79214),E=n(99011),O=n(62483),A=n(76394),I=n.n(A),U=e=>{var t,n,a,i,l,d,x,u,g,m,v,y,b,w,P,k,_,S;let{spaceName:C}=e,[B,A]=(0,r.useState)(!1),[U,V]=(0,r.useState)({}),{data:M}=(0,T.Z)(()=>(0,L.PR)("/knowledge/".concat(C,"/arguments")),{onSuccess(e){V(e.data)}}),W=[{key:"Embedding",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(F.Z,{sx:{marginRight:"5px"}}),"Embedding"]}),children:(0,s.jsxs)(j.Z,{children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["topk",(0,s.jsx)(R.Z,{content:"the top k vectors based on similarity score",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(t=M.data)||void 0===t?void 0:null===(n=t.embedding)||void 0===n?void 0:n.topk)||"",onChange:e=>{U.embedding.topk=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_score",(0,s.jsx)(R.Z,{content:"Set a threshold score for the retrieval of similar vectors",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:""+(null==M?void 0:null===(a=M.data)||void 0===a?void 0:null===(i=a.embedding)||void 0===i?void 0:i.recall_score)||"",onChange:e=>{U.embedding.recall_score=e.target.value,V({...U})},disabled:!0})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_type",(0,s.jsx)(R.Z,{content:"recall type",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(l=M.data)||void 0===l?void 0:null===(d=l.embedding)||void 0===d?void 0:d.recall_type)||"",onChange:e=>{U.embedding.recall_type=e.target.value,V({...U})},disabled:!0})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["model",(0,s.jsx)(R.Z,{content:"A model used to create vector representations of text or other data",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(x=M.data)||void 0===x?void 0:null===(u=x.embedding)||void 0===u?void 0:u.model)||"",onChange:e=>{U.embedding.model=e.target.value,V({...U})},disabled:!0,startDecorator:(0,s.jsx)(I(),{src:"/huggingface_logo.svg",alt:"huggingface logo",width:20,height:20})})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_size",(0,s.jsx)(R.Z,{content:"The size of the data chunks used in processing",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(g=M.data)||void 0===g?void 0:null===(m=g.embedding)||void 0===m?void 0:m.chunk_size)||"",onChange:e=>{U.embedding.chunk_size=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_overlap",(0,s.jsx)(R.Z,{content:"The amount of overlap between adjacent data chunks",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(v=M.data)||void 0===v?void 0:null===(y=v.embedding)||void 0===y?void 0:y.chunk_overlap)||"",onChange:e=>{U.embedding.chunk_overlap=e.target.value,V({...U})}})})]})]})]})},{key:"Prompt",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(E.Z,{sx:{marginRight:"5px"}}),"Prompt"]}),children:(0,s.jsxs)(j.Z,{sx:{maxHeight:"600px",overflow:"auto","&::-webkit-scrollbar":{display:"none"}},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",marginTop:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["scene",(0,s.jsx)(R.Z,{content:"A contextual parameter used to define the setting or environment in which the prompt is being used",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(b=M.data)||void 0===b?void 0:null===(w=b.prompt)||void 0===w?void 0:w.scene)||"",onChange:e=>{U.prompt.scene=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["template",(0,s.jsx)(R.Z,{content:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(P=M.data)||void 0===P?void 0:null===(k=P.prompt)||void 0===k?void 0:k.template)||"",onChange:e=>{U.prompt.template=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["max_token",(0,s.jsx)(R.Z,{content:"The maximum number of tokens or words allowed in a prompt",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(_=M.data)||void 0===_?void 0:null===(S=_.prompt)||void 0===S?void 0:S.max_token)||"",onChange:e=>{U.prompt.max_token=e.target.value,V({...U})}})})]})]})}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h.Z,{variant:"outlined",onClick:()=>A(!0),children:[(0,s.jsx)(N.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Arguments"]}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:B,onClose:()=>A(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(O.Z,{defaultActiveKey:"Embedding",items:W}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",sx:{marginTop:"20px",marginBottom:"20px"},children:(0,s.jsx)(h.Z,{variant:"outlined",onClick:()=>{(0,L.PR)("/knowledge/".concat(C,"/argument/save"),{argument:JSON.stringify(U)}).then(e=>{e.success?(window.location.reload(),z.ZP.success("success")):z.ZP.error(e.err_msg||"failed")})},children:"Submit"})})]})})]})};let{Dragger:V}=C.default,M=(0,i.Z)(o.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),W=["Choose a Datasource type","Setup the Datasource"],H=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var K=()=>{let e=(0,a.useRouter)(),t=(0,a.useSearchParams)().get("name"),{mode:n}=(0,l.tv)(),[i,y]=(0,r.useState)(!1),[C,T]=(0,r.useState)(0),[D,N]=(0,r.useState)(""),[F,E]=(0,r.useState)([]),[O,A]=(0,r.useState)(""),[I,K]=(0,r.useState)(""),[Y,J]=(0,r.useState)(""),[G,X]=(0,r.useState)(""),[q,Q]=(0,r.useState)(null),[$,ee]=(0,r.useState)(0),[et,en]=(0,r.useState)(0),[es,ea]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{(async function(){let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))})()},[]),(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,s.jsx)(x.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,s.jsx)(u.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,s.jsxs)(c.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(h.Z,{variant:"outlined",onClick:async()=>{var n,s;let a=await (0,L.PR)("/api/v1/chat/dialogue/new",{chat_mode:"chat_knowledge"});(null==a?void 0:a.success)&&(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.conv_uid)&&e.push("/chat?id=".concat(null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.conv_uid,"&scene=chat_knowledge&spaceNameOriginal=").concat(t))},sx:{marginRight:"20px",backgroundColor:"rgb(39, 155, 255) !important",color:"white",border:"none"},children:[(0,s.jsx)(S.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Chat"]}),(0,s.jsx)(h.Z,{variant:"outlined",onClick:()=>y(!0),sx:{marginRight:"20px"},children:"+ Add Datasource"}),(0,s.jsx)(U,{spaceName:t})]})]}),F.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.Z,{color:"primary",variant:"plain",size:"sm",sx:{"& tbody tr: hover":{backgroundColor:"light"===n?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"},"& tr > *:last-child":{textAlign:"right"}},children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Name"}),(0,s.jsx)("th",{children:"Type"}),(0,s.jsx)("th",{children:"Size"}),(0,s.jsx)("th",{children:"Last Synch"}),(0,s.jsx)("th",{children:"Status"}),(0,s.jsx)("th",{children:"Result"}),(0,s.jsx)("th",{style:{width:"30%"},children:"Operation"})]})}),(0,s.jsx)("tbody",{children:F.map(n=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:n.doc_name}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"neutral",sx:{opacity:.5},children:n.doc_type})}),(0,s.jsxs)("td",{children:[n.chunk_size," chunks"]}),(0,s.jsx)("td",{children:b()(n.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",sx:{opacity:.5},variant:"solid",color:function(){switch(n.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:n.status})}),(0,s.jsx)("td",{children:"TODO"===n.status||"RUNNING"===n.status?"":"FINISHED"===n.status?(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,s.jsx)("td",{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.id]});e.success?z.ZP.success("success"):z.ZP.error(e.err_msg||"failed")},children:["Synch",(0,s.jsx)(k.Z,{})]}),(0,s.jsx)(h.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(n.id))},children:"Details"}),(0,s.jsxs)(h.Z,{variant:"outlined",size:"sm",color:"danger",onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/delete"),{doc_name:n.doc_name});if(e.success){z.ZP.success("success");let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")},children:["Delete",(0,s.jsx)(_.Z,{})]})]})})]},n.id))})]}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,s.jsx)(B.Z,{defaultPageSize:20,showSizeChanger:!1,current:et,total:$,onChange:async e=>{let n=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});n.success&&(E(n.data.data),ee(n.data.total),en(n.data.page))},hideOnSinglePage:!0})})]}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:i,onClose:()=>y(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(j.Z,{sx:{width:"100%"},children:(0,s.jsx)(c.Z,{spacing:2,direction:"row",children:W.map((e,t)=>(0,s.jsxs)(M,{sx:{fontWeight:C===t?"bold":"",color:C===t?"#2AA3FF":""},children:[t(0,s.jsxs)(o.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{N(e.type),T(1)},children:[(0,s.jsx)(o.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,s.jsx)(o.Z,{children:e.subTitle})]},e.type))})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.Z,{sx:{margin:"30px auto"},children:["Name:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the name",onChange:e=>K(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===D?(0,s.jsxs)(s.Fragment,{children:["Web Page URL:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>A(e.target.value)})]}):"file"===D?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(V,{name:"file",multiple:!1,beforeUpload:()=>!1,onChange(e){if(0===e.fileList.length){Q(null),K("");return}Q(e.file),K(e.file.name)},children:[(0,s.jsx)("p",{className:"ant-upload-drag-icon",children:(0,s.jsx)(w.Z,{})}),(0,s.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,s.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,s.jsxs)(s.Fragment,{children:["Text Source(Optional):",(0,s.jsx)(Z.ZP,{placeholder:"Please input the text source",onChange:e=>J(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,s.jsx)(f.Z,{onChange:e=>X(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,s.jsx)(u.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,s.jsx)(v.Z,{checked:es,onChange:e=>ea(e.target.checked)}),children:"Synch:"})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsx)(h.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>T(0),children:"< Back"}),(0,s.jsx)(h.Z,{variant:"outlined",onClick:async()=>{if(""===I){z.ZP.error("Please input the name");return}if("webPage"===D){if(""===O){z.ZP.error("Please input the Web Page URL");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,content:O,doc_type:"URL"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}else if("file"===D){if(!q){z.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",I),e.append("doc_file",q),e.append("doc_type","DOCUMENT");let n=await (0,L.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(n.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.data]}),n.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(n.err_msg||"failed")}else{if(""===G){z.ZP.error("Please input the text");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,source:Y,content:G,doc_type:"TEXT"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return x},PR:function(){return u},Ej:function(){return h}});var s=n(21628),a=n(24214),r=n(52040);let i=a.Z.create({baseURL:r.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=n(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},x=(e,t)=>{let n=c(t);return i.post("/api"+e,{body:n,headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})),h=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,550,877,230,759,192,81,86,409,394,790,946,767,207,872,388,253,769,744],function(){return e(e.s=42414)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-4515e65516eefa4f.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-4515e65516eefa4f.js deleted file mode 100644 index e899c453d..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-4515e65516eefa4f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1470],{78141:function(e,t,i){"use strict";var a=i(78997);t.Z=void 0;var r=a(i(76906)),n=i(9268),o=(0,r.default)((0,n.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=o},4797:function(e,t,i){Promise.resolve().then(i.bind(i,16692))},16692:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return ei}});var a=i(9268),r=i(56008),n=i(86006),o=i(50645),s=i(5737),l=i(78635),c=i(80937),d=i(44334),h=i(311),p=i(22046),u=i(53113),g=i(83192),m=i(46750),x=i(40431),v=i(89791),f=i(47562),C=i(73811),b=i(53832),j=i(49657),Z=i(88930),y=i(47093),P=i(18587);function S(e){return(0,P.d6)("MuiChip",e)}let w=(0,P.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=n.createContext({disabled:void 0,variant:void 0,color:void 0});var k=i(326);let z=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],R=e=>{let{disabled:t,size:i,color:a,clickable:r,variant:n,focusVisible:o}=e,s={root:["root",t&&"disabled",a&&`color${(0,b.Z)(a)}`,i&&`size${(0,b.Z)(i)}`,n&&`variant${(0,b.Z)(n)}`,r&&"clickable"],action:["action",t&&"disabled",o&&"focusVisible"],label:["label",i&&`label${(0,b.Z)(i)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,S,{})},D=(0,o.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,a,r,n;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${w.disabled}`]:{color:null==(i=e.variants[`${t.variant}Disabled`])||null==(i=i[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color}]:[null==(a=e.variants[t.variant])?void 0:a[t.color],{[`&.${w.disabled}`]:null==(r=e.variants[`${t.variant}Disabled`])?void 0:r[t.color]}]]}),I=(0,o.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),H=(0,o.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var i,a,r,n;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(i=e.variants[t.variant])?void 0:i[t.color],{"&:hover":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color]},{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color]},{[`&.${w.disabled}`]:null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color]}]}),N=(0,o.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),F=(0,o.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),T=n.forwardRef(function(e,t){let i=(0,Z.Z)({props:e,name:"JoyChip"}),{children:r,className:o,color:s="primary",onClick:l,disabled:c=!1,size:d="md",variant:h="solid",startDecorator:p,endDecorator:u,component:g,slots:f={},slotProps:b={}}=i,P=(0,m.Z)(i,z),{getColor:S}=(0,y.VT)(h),w=S(e.color,s),T=!!l||!!b.action,O=(0,x.Z)({},i,{disabled:c,size:d,color:w,variant:h,clickable:T,focusVisible:!1}),E="function"==typeof b.action?b.action(O):b.action,W=n.useRef(null),{focusVisible:M,getRootProps:L}=(0,C.Z)((0,x.Z)({},E,{disabled:c,rootRef:W}));O.focusVisible=M;let A=R(O),U=(0,x.Z)({},P,{component:g,slots:f,slotProps:b}),[$,B]=(0,k.Z)("root",{ref:t,className:(0,v.Z)(A.root,o),elementType:D,externalForwardedProps:U,ownerState:O}),[J,V]=(0,k.Z)("label",{className:A.label,elementType:I,externalForwardedProps:U,ownerState:O}),Y=(0,j.Z)(V.id),[G,K]=(0,k.Z)("action",{className:A.action,elementType:H,externalForwardedProps:U,ownerState:O,getSlotProps:L,additionalProps:{"aria-labelledby":Y,as:null==E?void 0:E.component,onClick:l}}),[X,q]=(0,k.Z)("startDecorator",{className:A.startDecorator,elementType:N,externalForwardedProps:U,ownerState:O}),[Q,ee]=(0,k.Z)("endDecorator",{className:A.endDecorator,elementType:F,externalForwardedProps:U,ownerState:O}),et=n.useMemo(()=>({disabled:c,variant:h,color:"context"===w?void 0:w}),[w,c,h]);return(0,a.jsx)(_.Provider,{value:et,children:(0,a.jsxs)($,(0,x.Z)({},B,{children:[T&&(0,a.jsx)(G,(0,x.Z)({},K)),(0,a.jsx)(J,(0,x.Z)({},V,{id:Y,children:r})),p&&(0,a.jsx)(X,(0,x.Z)({},q,{children:p})),u&&(0,a.jsx)(Q,(0,x.Z)({},ee,{children:u}))]}))})});var O=i(34112),E=i(90545),W=i(35086),M=i(96323),L=i(47611),A=i(65326),U=i.n(A),$=i(72474),B=i(59534),J=i(78141),V=i(53195),Y=i(23910),G=i(21628),K=i(71357),X=i(78915);let{Dragger:q}=V.default,Q=(0,o.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),ee=["Choose a Datasource type","Setup the Datasource"],et=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var ei=()=>{let e=(0,r.useRouter)(),t=(0,r.useSearchParams)().get("name"),{mode:i}=(0,l.tv)(),[o,m]=(0,n.useState)(!1),[x,v]=(0,n.useState)(0),[f,C]=(0,n.useState)(""),[b,j]=(0,n.useState)([]),[Z,y]=(0,n.useState)(""),[P,S]=(0,n.useState)(""),[w,_]=(0,n.useState)(""),[k,z]=(0,n.useState)(""),[R,D]=(0,n.useState)(null),[I,H]=(0,n.useState)(0),[N,F]=(0,n.useState)(0),[A,V]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{(async function(){let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,a.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,a.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]}),b.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(g.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===i?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Type"}),(0,a.jsx)("th",{children:"Size"}),(0,a.jsx)("th",{children:"Last Synch"}),(0,a.jsx)("th",{children:"Status"}),(0,a.jsx)("th",{children:"Result"}),(0,a.jsx)("th",{children:"Operation"})]})}),(0,a.jsx)("tbody",{children:b.map(i=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:i.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(T,{variant:"solid",color:"neutral",sx:{opacity:.5},children:i.doc_type})}),(0,a.jsxs)("td",{children:[i.chunk_size," chunks"]}),(0,a.jsx)("td",{children:U()(i.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,a.jsx)("td",{children:(0,a.jsx)(T,{sx:{opacity:.5},variant:"solid",color:function(){switch(i.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:i.status})}),(0,a.jsx)("td",{children:"TODO"===i.status||"RUNNING"===i.status?"":"FINISHED"===i.status?(0,a.jsx)(Y.Z,{content:i.result,trigger:"hover",children:(0,a.jsx)(T,{variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,a.jsx)(Y.Z,{content:i.result,trigger:"hover",children:(0,a.jsx)(T,{variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,a.jsx)("td",{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"20px"},onClick:async()=>{let e=await (0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.id]});e.success?G.ZP.success("success"):G.ZP.error(e.err_msg||"failed")},children:["Synch",(0,a.jsx)(J.Z,{})]}),(0,a.jsx)(u.Z,{variant:"outlined",size:"sm",onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(i.id))},children:"Details"})]})})]},i.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(K.Z,{defaultPageSize:20,showSizeChanger:!1,current:N,total:I,onChange:async e=>{let i=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});i.success&&(j(i.data.data),H(i.data.total),F(i.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(O.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:o,onClose:()=>m(!1),children:(0,a.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,a.jsx)(E.Z,{sx:{width:"100%"},children:(0,a.jsx)(c.Z,{spacing:2,direction:"row",children:ee.map((e,t)=>(0,a.jsxs)(Q,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#2AA3FF":""},children:[t(0,a.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,a.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,a.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(E.Z,{sx:{margin:"30px auto"},children:["Name:",(0,a.jsx)(W.ZP,{placeholder:"Please input the name",onChange:e=>S(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,a.jsxs)(a.Fragment,{children:["Web Page URL:",(0,a.jsx)(W.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>y(e.target.value)})]}):"file"===f?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(q,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){D(null),S("");return}D(e.file.originFileObj),S(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,a.jsx)("p",{className:"ant-upload-drag-icon",children:(0,a.jsx)($.Z,{})}),(0,a.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,a.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,a.jsxs)(a.Fragment,{children:["Text Source(Optional):",(0,a.jsx)(W.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,a.jsx)(M.Z,{onChange:e=>z(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,a.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,a.jsx)(L.Z,{checked:A,onChange:e=>V(e.target.checked)}),children:"Synch:"})]}),(0,a.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,a.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,a.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===P){G.ZP.error("Please input the name");return}if("webPage"===f){if(""===Z){G.ZP.error("Please input the Web Page URL");return}let e=await (0,X.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,content:Z,doc_type:"URL"});if(e.success&&A&&(0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){G.ZP.success("success"),m(!1);let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else G.ZP.error(e.err_msg||"failed")}else if("file"===f){if(!R){G.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",P),e.append("doc_file",R),e.append("doc_type","DOCUMENT");let i=await (0,X.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(i.success&&A&&(0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.data]}),i.success){G.ZP.success("success"),m(!1);let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else G.ZP.error(i.err_msg||"failed")}else{if(""===k){G.ZP.error("Please input the text");return}let e=await (0,X.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,source:w,content:k,doc_type:"TEXT"});if(e.success&&A&&(0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){G.ZP.success("success"),m(!1);let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else G.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,i){"use strict";i.d(t,{Tk:function(){return c},Kw:function(){return d},PR:function(){return h},Ej:function(){return p}});var a=i(21628),r=i(24214);let n=r.Z.create({baseURL:"http://127.0.0.1:5000"});n.defaults.timeout=1e4,n.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=i(84835);let s={"content-type":"application/json"},l=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let i=t[e];"string"==typeof i&&(t[e]=i.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let i=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");i&&(e+="?".concat(i))}return n.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let i=l(t);return n.post("/api"+e,{body:i,headers:s}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},h=(e,t)=>n.post(e,t,{headers:s}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)}),p=(e,t)=>n.post(e,t).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,4550,3933,272,8942,7192,7518,5935,5086,4289,8635,6412,2274,9253,5769,1744],function(){return e(e.s=4797)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-4d12f8ca032b52c1.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-4d12f8ca032b52c1.js deleted file mode 100644 index 26e641961..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-4d12f8ca032b52c1.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1470],{78141:function(e,t,i){"use strict";var a=i(78997);t.Z=void 0;var r=a(i(76906)),n=i(9268),o=(0,r.default)((0,n.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=o},4797:function(e,t,i){Promise.resolve().then(i.bind(i,16692))},16692:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return ei}});var a=i(9268),r=i(56008),n=i(86006),o=i(50645),s=i(5737),l=i(78635),c=i(80937),d=i(44334),h=i(311),p=i(22046),u=i(53113),g=i(83192),m=i(46750),x=i(40431),v=i(89791),f=i(47562),C=i(73811),b=i(53832),j=i(49657),Z=i(88930),y=i(47093),P=i(18587);function S(e){return(0,P.d6)("MuiChip",e)}let w=(0,P.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=n.createContext({disabled:void 0,variant:void 0,color:void 0});var k=i(326);let R=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],z=e=>{let{disabled:t,size:i,color:a,clickable:r,variant:n,focusVisible:o}=e,s={root:["root",t&&"disabled",a&&`color${(0,b.Z)(a)}`,i&&`size${(0,b.Z)(i)}`,n&&`variant${(0,b.Z)(n)}`,r&&"clickable"],action:["action",t&&"disabled",o&&"focusVisible"],label:["label",i&&`label${(0,b.Z)(i)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,S,{})},D=(0,o.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var i,a,r,n;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${w.disabled}`]:{color:null==(i=e.variants[`${t.variant}Disabled`])||null==(i=i[t.color])?void 0:i.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color}]:[null==(a=e.variants[t.variant])?void 0:a[t.color],{[`&.${w.disabled}`]:null==(r=e.variants[`${t.variant}Disabled`])?void 0:r[t.color]}]]}),I=(0,o.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),H=(0,o.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var i,a,r,n;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(i=e.variants[t.variant])?void 0:i[t.color],{"&:hover":null==(a=e.variants[`${t.variant}Hover`])?void 0:a[t.color]},{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color]},{[`&.${w.disabled}`]:null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color]}]}),N=(0,o.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),F=(0,o.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),T=n.forwardRef(function(e,t){let i=(0,Z.Z)({props:e,name:"JoyChip"}),{children:r,className:o,color:s="primary",onClick:l,disabled:c=!1,size:d="md",variant:h="solid",startDecorator:p,endDecorator:u,component:g,slots:f={},slotProps:b={}}=i,P=(0,m.Z)(i,R),{getColor:S}=(0,y.VT)(h),w=S(e.color,s),T=!!l||!!b.action,O=(0,x.Z)({},i,{disabled:c,size:d,color:w,variant:h,clickable:T,focusVisible:!1}),E="function"==typeof b.action?b.action(O):b.action,W=n.useRef(null),{focusVisible:L,getRootProps:M}=(0,C.Z)((0,x.Z)({},E,{disabled:c,rootRef:W}));O.focusVisible=L;let A=z(O),U=(0,x.Z)({},P,{component:g,slots:f,slotProps:b}),[$,B]=(0,k.Z)("root",{ref:t,className:(0,v.Z)(A.root,o),elementType:D,externalForwardedProps:U,ownerState:O}),[J,V]=(0,k.Z)("label",{className:A.label,elementType:I,externalForwardedProps:U,ownerState:O}),Y=(0,j.Z)(V.id),[G,K]=(0,k.Z)("action",{className:A.action,elementType:H,externalForwardedProps:U,ownerState:O,getSlotProps:M,additionalProps:{"aria-labelledby":Y,as:null==E?void 0:E.component,onClick:l}}),[X,q]=(0,k.Z)("startDecorator",{className:A.startDecorator,elementType:N,externalForwardedProps:U,ownerState:O}),[Q,ee]=(0,k.Z)("endDecorator",{className:A.endDecorator,elementType:F,externalForwardedProps:U,ownerState:O}),et=n.useMemo(()=>({disabled:c,variant:h,color:"context"===w?void 0:w}),[w,c,h]);return(0,a.jsx)(_.Provider,{value:et,children:(0,a.jsxs)($,(0,x.Z)({},B,{children:[T&&(0,a.jsx)(G,(0,x.Z)({},K)),(0,a.jsx)(J,(0,x.Z)({},V,{id:Y,children:r})),p&&(0,a.jsx)(X,(0,x.Z)({},q,{children:p})),u&&(0,a.jsx)(Q,(0,x.Z)({},ee,{children:u}))]}))})});var O=i(34112),E=i(90545),W=i(35086),L=i(96323),M=i(47611),A=i(65326),U=i.n(A),$=i(72474),B=i(59534),J=i(78141),V=i(53195),Y=i(23910),G=i(21628),K=i(71357),X=i(78915);let{Dragger:q}=V.default,Q=(0,o.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),ee=["Choose a Datasource type","Setup the Datasource"],et=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var ei=()=>{let e=(0,r.useRouter)(),t=(0,r.useSearchParams)().get("name"),{mode:i}=(0,l.tv)(),[o,m]=(0,n.useState)(!1),[x,v]=(0,n.useState)(0),[f,C]=(0,n.useState)(""),[b,j]=(0,n.useState)([]),[Z,y]=(0,n.useState)(""),[P,S]=(0,n.useState)(""),[w,_]=(0,n.useState)(""),[k,R]=(0,n.useState)(""),[z,D]=(0,n.useState)(null),[I,H]=(0,n.useState)(0),[N,F]=(0,n.useState)(0),[A,V]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{(async function(){let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))})()},[]),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,a.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,a.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,a.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,a.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]}),b.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(g.Z,{color:"primary",variant:"plain",size:"lg",sx:{"& tbody tr: hover":{backgroundColor:"light"===i?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"}},children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{children:"Type"}),(0,a.jsx)("th",{children:"Size"}),(0,a.jsx)("th",{children:"Last Synch"}),(0,a.jsx)("th",{children:"Status"}),(0,a.jsx)("th",{children:"Result"}),(0,a.jsx)("th",{children:"Operation"})]})}),(0,a.jsx)("tbody",{children:b.map(i=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:i.doc_name}),(0,a.jsx)("td",{children:(0,a.jsx)(T,{variant:"solid",color:"neutral",sx:{opacity:.5},children:i.doc_type})}),(0,a.jsxs)("td",{children:[i.chunk_size," chunks"]}),(0,a.jsx)("td",{children:U()(i.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,a.jsx)("td",{children:(0,a.jsx)(T,{sx:{opacity:.5},variant:"solid",color:function(){switch(i.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:i.status})}),(0,a.jsx)("td",{children:"TODO"===i.status||"RUNNING"===i.status?"":"FINISHED"===i.status?(0,a.jsx)(Y.Z,{content:i.result,trigger:"hover",children:(0,a.jsx)(T,{variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,a.jsx)(Y.Z,{content:i.result,trigger:"hover",children:(0,a.jsx)(T,{variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,a.jsx)("td",{children:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"20px"},onClick:async()=>{let e=await (0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.id]});e.success?G.ZP.success("success"):G.ZP.error(e.err_msg||"failed")},children:["Synch",(0,a.jsx)(J.Z,{})]}),(0,a.jsx)(u.Z,{variant:"outlined",size:"sm",onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(i.id))},children:"Details"})]})})]},i.id))})]}),(0,a.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,a.jsx)(K.Z,{defaultPageSize:20,showSizeChanger:!1,current:N,total:I,onChange:async e=>{let i=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});i.success&&(j(i.data.data),H(i.data.total),F(i.data.page))},hideOnSinglePage:!0})})]}):(0,a.jsx)(a.Fragment,{}),(0,a.jsx)(O.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:o,onClose:()=>m(!1),children:(0,a.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,a.jsx)(E.Z,{sx:{width:"100%"},children:(0,a.jsx)(c.Z,{spacing:2,direction:"row",children:ee.map((e,t)=>(0,a.jsxs)(Q,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#2AA3FF":""},children:[t(0,a.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,a.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,a.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(E.Z,{sx:{margin:"30px auto"},children:["Name:",(0,a.jsx)(W.ZP,{placeholder:"Please input the name",onChange:e=>S(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,a.jsxs)(a.Fragment,{children:["Web Page URL:",(0,a.jsx)(W.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>y(e.target.value)})]}):"file"===f?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(q,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){D(null),S("");return}D(e.file.originFileObj),S(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,a.jsx)("p",{className:"ant-upload-drag-icon",children:(0,a.jsx)($.Z,{})}),(0,a.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,a.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,a.jsxs)(a.Fragment,{children:["Text Source(Optional):",(0,a.jsx)(W.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,a.jsx)(L.Z,{onChange:e=>R(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,a.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,a.jsx)(M.Z,{checked:A,onChange:e=>V(e.target.checked)}),children:"Synch:"})]}),(0,a.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,a.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,a.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===P){G.ZP.error("Please input the name");return}if("webPage"===f){if(""===Z){G.ZP.error("Please input the Web Page URL");return}let e=await (0,X.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,content:Z,doc_type:"URL"});if(e.success&&A&&(0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){G.ZP.success("success"),m(!1);let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else G.ZP.error(e.err_msg||"failed")}else if("file"===f){if(!z){G.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",P),e.append("doc_file",z),e.append("doc_type","DOCUMENT");let i=await (0,X.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(i.success&&A&&(0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[i.data]}),i.success){G.ZP.success("success"),m(!1);let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else G.ZP.error(i.err_msg||"failed")}else{if(""===k){G.ZP.error("Please input the text");return}let e=await (0,X.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,source:w,content:k,doc_type:"TEXT"});if(e.success&&A&&(0,X.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){G.ZP.success("success"),m(!1);let e=await (0,X.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else G.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,i){"use strict";i.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return p},Ej:function(){return u}});var a=i(21628),r=i(24214),n=i(52040);let o=r.Z.create({baseURL:n.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=i(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let i=t[e];"string"==typeof i&&(t[e]=i.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let i=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");i&&(e+="?".concat(i))}return o.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let i=c(t);return o.post("/api"+e,{body:i,headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})},p=(e,t)=>o.post(e,t,{headers:l}).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)}),u=(e,t)=>o.post(e,t).then(e=>e).catch(e=>{a.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,4550,780,272,8942,7192,7518,5935,5086,4289,8635,6412,2274,9253,5769,1744],function(){return e(e.s=4797)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-7560757029bdf106.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-7560757029bdf106.js deleted file mode 100644 index 1be6ed74f..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-7560757029bdf106.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{78141:function(e,t,a){"use strict";var i=a(78997);t.Z=void 0;var r=i(a(76906)),n=a(9268),o=(0,r.default)((0,n.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4H6z"}),"Cached");t.Z=o},73220:function(e,t,a){"use strict";var i=a(78997);t.Z=void 0;var r=i(a(76906)),n=a(9268),o=(0,r.default)((0,n.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"}),"Chat");t.Z=o},4797:function(e,t,a){Promise.resolve().then(a.bind(a,16692))},16692:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return er}});var i=a(9268),r=a(56008),n=a(86006),o=a(50645),s=a(5737),l=a(78635),c=a(80937),d=a(44334),h=a(311),p=a(22046),u=a(53113),g=a(83192),m=a(46750),x=a(40431),v=a(89791),f=a(47562),C=a(46319),b=a(53832),j=a(49657),Z=a(88930),y=a(47093),P=a(18587);function w(e){return(0,P.d6)("MuiChip",e)}let S=(0,P.sI)("MuiChip",["root","clickable","colorPrimary","colorNeutral","colorDanger","colorInfo","colorSuccess","colorWarning","colorContext","disabled","endDecorator","focusVisible","label","labelSm","labelMd","labelLg","sizeSm","sizeMd","sizeLg","startDecorator","variantPlain","variantSolid","variantSoft","variantOutlined"]),_=n.createContext({disabled:void 0,variant:void 0,color:void 0});var z=a(326);let k=["children","className","color","onClick","disabled","size","variant","startDecorator","endDecorator","component","slots","slotProps"],R=e=>{let{disabled:t,size:a,color:i,clickable:r,variant:n,focusVisible:o}=e,s={root:["root",t&&"disabled",i&&`color${(0,b.Z)(i)}`,a&&`size${(0,b.Z)(a)}`,n&&`variant${(0,b.Z)(n)}`,r&&"clickable"],action:["action",t&&"disabled",o&&"focusVisible"],label:["label",a&&`label${(0,b.Z)(a)}`],startDecorator:["startDecorator"],endDecorator:["endDecorator"]};return(0,f.Z)(s,w,{})},D=(0,o.Z)("div",{name:"JoyChip",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{var a,i,r,n;return[(0,x.Z)({"--Chip-decoratorChildOffset":"min(calc(var(--Chip-paddingInline) - (var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2), var(--Chip-paddingInline))","--Chip-decoratorChildRadius":"max(var(--_Chip-radius) - var(--variant-borderWidth, 0px) - var(--_Chip-paddingBlock), min(var(--_Chip-paddingBlock) + var(--variant-borderWidth, 0px), var(--_Chip-radius) / 2))","--Chip-deleteRadius":"var(--Chip-decoratorChildRadius)","--Chip-deleteSize":"var(--Chip-decoratorChildHeight)","--Avatar-radius":"var(--Chip-decoratorChildRadius)","--Avatar-size":"var(--Chip-decoratorChildHeight)","--Icon-margin":"initial","--unstable_actionRadius":"var(--_Chip-radius)"},"sm"===t.size&&{"--Chip-gap":"0.25rem","--Chip-paddingInline":"0.5rem","--Chip-decoratorChildHeight":"calc(min(1.125rem, var(--_Chip-minHeight)) - 2 * var(--variant-borderWidth, 0px))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.714)","--_Chip-minHeight":"var(--Chip-minHeight, 1.5rem)",fontSize:e.vars.fontSize.xs},"md"===t.size&&{"--Chip-gap":"0.375rem","--Chip-paddingInline":"0.75rem","--Chip-decoratorChildHeight":"min(1.375rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 1.778)","--_Chip-minHeight":"var(--Chip-minHeight, 2rem)",fontSize:e.vars.fontSize.sm},"lg"===t.size&&{"--Chip-gap":"0.5rem","--Chip-paddingInline":"1rem","--Chip-decoratorChildHeight":"min(1.75rem, var(--_Chip-minHeight))","--Icon-fontSize":"calc(var(--_Chip-minHeight) / 2)","--_Chip-minHeight":"var(--Chip-minHeight, 2.5rem)",fontSize:e.vars.fontSize.md},{"--_Chip-radius":"var(--Chip-radius, 1.5rem)","--_Chip-paddingBlock":"max((var(--_Chip-minHeight) - 2 * var(--variant-borderWidth, 0px) - var(--Chip-decoratorChildHeight)) / 2, 0px)",minHeight:"var(--_Chip-minHeight)",maxWidth:"max-content",paddingInline:"var(--Chip-paddingInline)",borderRadius:"var(--_Chip-radius)",position:"relative",fontWeight:e.vars.fontWeight.md,fontFamily:e.vars.fontFamily.body,display:"inline-flex",alignItems:"center",justifyContent:"center",whiteSpace:"nowrap",textDecoration:"none",verticalAlign:"middle",boxSizing:"border-box",[`&.${S.disabled}`]:{color:null==(a=e.variants[`${t.variant}Disabled`])||null==(a=a[t.color])?void 0:a.color}}),...t.clickable?[{"--variant-borderWidth":"0px",color:null==(n=e.variants[t.variant])||null==(n=n[t.color])?void 0:n.color}]:[null==(i=e.variants[t.variant])?void 0:i[t.color],{[`&.${S.disabled}`]:null==(r=e.variants[`${t.variant}Disabled`])?void 0:r[t.color]}]]}),I=(0,o.Z)("span",{name:"JoyChip",slot:"Label",overridesResolver:(e,t)=>t.label})(({ownerState:e})=>(0,x.Z)({display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",order:1,minInlineSize:0,flexGrow:1},e.clickable&&{zIndex:1,pointerEvents:"none"})),H=(0,o.Z)("button",{name:"JoyChip",slot:"Action",overridesResolver:(e,t)=>t.action})(({theme:e,ownerState:t})=>{var a,i,r,n;return[{position:"absolute",zIndex:0,top:0,left:0,bottom:0,right:0,width:"100%",border:"none",cursor:"pointer",padding:"initial",margin:"initial",backgroundColor:"initial",textDecoration:"none",borderRadius:"inherit",[e.focus.selector]:e.focus.default},null==(a=e.variants[t.variant])?void 0:a[t.color],{"&:hover":null==(i=e.variants[`${t.variant}Hover`])?void 0:i[t.color]},{"&:active":null==(r=e.variants[`${t.variant}Active`])?void 0:r[t.color]},{[`&.${S.disabled}`]:null==(n=e.variants[`${t.variant}Disabled`])?void 0:n[t.color]}]}),N=(0,o.Z)("span",{name:"JoyChip",slot:"StartDecorator",overridesResolver:(e,t)=>t.startDecorator})({"--Avatar-marginInlineStart":"calc(var(--Chip-decoratorChildOffset) * -1)","--Chip-deleteMargin":"0 0 0 calc(var(--Chip-decoratorChildOffset) * -1)","--Icon-margin":"0 0 0 calc(var(--Chip-paddingInline) / -4)",display:"inherit",marginInlineEnd:"var(--Chip-gap)",order:0,zIndex:1,pointerEvents:"none"}),F=(0,o.Z)("span",{name:"JoyChip",slot:"EndDecorator",overridesResolver:(e,t)=>t.endDecorator})({"--Chip-deleteMargin":"0 calc(var(--Chip-decoratorChildOffset) * -1) 0 0","--Icon-margin":"0 calc(var(--Chip-paddingInline) / -4) 0 0",display:"inherit",marginInlineStart:"var(--Chip-gap)",order:2,zIndex:1,pointerEvents:"none"}),T=n.forwardRef(function(e,t){let a=(0,Z.Z)({props:e,name:"JoyChip"}),{children:r,className:o,color:s="primary",onClick:l,disabled:c=!1,size:d="md",variant:h="solid",startDecorator:p,endDecorator:u,component:g,slots:f={},slotProps:b={}}=a,P=(0,m.Z)(a,k),{getColor:w}=(0,y.VT)(h),S=w(e.color,s),T=!!l||!!b.action,O=(0,x.Z)({},a,{disabled:c,size:d,color:S,variant:h,clickable:T,focusVisible:!1}),E="function"==typeof b.action?b.action(O):b.action,M=n.useRef(null),{focusVisible:W,getRootProps:L}=(0,C.Z)((0,x.Z)({},E,{disabled:c,rootRef:M}));O.focusVisible=W;let A=R(O),U=(0,x.Z)({},P,{component:g,slots:f,slotProps:b}),[$,B]=(0,z.Z)("root",{ref:t,className:(0,v.Z)(A.root,o),elementType:D,externalForwardedProps:U,ownerState:O}),[V,J]=(0,z.Z)("label",{className:A.label,elementType:I,externalForwardedProps:U,ownerState:O}),Y=(0,j.Z)(J.id),[G,K]=(0,z.Z)("action",{className:A.action,elementType:H,externalForwardedProps:U,ownerState:O,getSlotProps:L,additionalProps:{"aria-labelledby":Y,as:null==E?void 0:E.component,onClick:l}}),[X,q]=(0,z.Z)("startDecorator",{className:A.startDecorator,elementType:N,externalForwardedProps:U,ownerState:O}),[Q,ee]=(0,z.Z)("endDecorator",{className:A.endDecorator,elementType:F,externalForwardedProps:U,ownerState:O}),et=n.useMemo(()=>({disabled:c,variant:h,color:"context"===S?void 0:S}),[S,c,h]);return(0,i.jsx)(_.Provider,{value:et,children:(0,i.jsxs)($,(0,x.Z)({},B,{children:[T&&(0,i.jsx)(G,(0,x.Z)({},K)),(0,i.jsx)(V,(0,x.Z)({},J,{id:Y,children:r})),p&&(0,i.jsx)(X,(0,x.Z)({},q,{children:p})),u&&(0,i.jsx)(Q,(0,x.Z)({},ee,{children:u}))]}))})});var O=a(81528),E=a(90545),M=a(35086),W=a(866),L=a(28086),A=a(65326),U=a.n(A),$=a(72474),B=a(59534),V=a(78141),J=a(68949),Y=a(73220),G=a(50157),K=a(23910),X=a(21628),q=a(1031),Q=a(78915);let{Dragger:ee}=G.default,et=(0,o.Z)(s.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),ea=["Choose a Datasource type","Setup the Datasource"],ei=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var er=()=>{let e=(0,r.useRouter)(),t=(0,r.useSearchParams)().get("name"),{mode:a}=(0,l.tv)(),[o,m]=(0,n.useState)(!1),[x,v]=(0,n.useState)(0),[f,C]=(0,n.useState)(""),[b,j]=(0,n.useState)([]),[Z,y]=(0,n.useState)(""),[P,w]=(0,n.useState)(""),[S,_]=(0,n.useState)(""),[z,k]=(0,n.useState)(""),[R,D]=(0,n.useState)(null),[I,H]=(0,n.useState)(0),[N,F]=(0,n.useState)(0),[A,G]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{(async function(){let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))})()},[]),(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,i.jsx)(h.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,i.jsx)(p.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,i.jsxs)(c.Z,{direction:"row",alignItems:"center",children:[(0,i.jsxs)(u.Z,{variant:"outlined",onClick:async()=>{var a,i;let r=await (0,Q.PR)("/api/v1/chat/dialogue/new",{chat_mode:"chat_knowledge"});(null==r?void 0:r.success)&&(null==r?void 0:null===(a=r.data)||void 0===a?void 0:a.conv_uid)&&e.push("/chat?id=".concat(null==r?void 0:null===(i=r.data)||void 0===i?void 0:i.conv_uid,"&scene=chat_knowledge&spaceNameOriginal=").concat(t))},sx:{marginRight:"20px",backgroundColor:"rgb(39, 155, 255) !important",color:"white",border:"none"},children:[(0,i.jsx)(Y.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Chat"]}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:()=>m(!0),children:"+ Add Datasource"})]})]}),b.length?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(g.Z,{color:"primary",variant:"plain",size:"sm",sx:{"& tbody tr: hover":{backgroundColor:"light"===a?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"},"& tr > *:last-child":{textAlign:"right"}},children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:"Name"}),(0,i.jsx)("th",{children:"Type"}),(0,i.jsx)("th",{children:"Size"}),(0,i.jsx)("th",{children:"Last Synch"}),(0,i.jsx)("th",{children:"Status"}),(0,i.jsx)("th",{children:"Result"}),(0,i.jsx)("th",{style:{width:"30%"},children:"Operation"})]})}),(0,i.jsx)("tbody",{children:b.map(a=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:a.doc_name}),(0,i.jsx)("td",{children:(0,i.jsx)(T,{size:"sm",variant:"solid",color:"neutral",sx:{opacity:.5},children:a.doc_type})}),(0,i.jsxs)("td",{children:[a.chunk_size," chunks"]}),(0,i.jsx)("td",{children:U()(a.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,i.jsx)("td",{children:(0,i.jsx)(T,{size:"sm",sx:{opacity:.5},variant:"solid",color:function(){switch(a.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:a.status})}),(0,i.jsx)("td",{children:"TODO"===a.status||"RUNNING"===a.status?"":"FINISHED"===a.status?(0,i.jsx)(K.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(T,{size:"sm",variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,i.jsx)(K.Z,{content:a.result,trigger:"hover",children:(0,i.jsx)(T,{size:"sm",variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,i.jsx)("td",{children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:async()=>{let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[a.id]});e.success?X.ZP.success("success"):X.ZP.error(e.err_msg||"failed")},children:["Synch",(0,i.jsx)(V.Z,{})]}),(0,i.jsx)(u.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(a.id))},children:"Details"}),(0,i.jsxs)(u.Z,{variant:"outlined",size:"sm",color:"danger",onClick:async()=>{let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/delete"),{doc_name:a.doc_name});if(e.success){X.ZP.success("success");let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else X.ZP.error(e.err_msg||"failed")},children:["Delete",(0,i.jsx)(J.Z,{})]})]})})]},a.id))})]}),(0,i.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,i.jsx)(q.Z,{defaultPageSize:20,showSizeChanger:!1,current:N,total:I,onChange:async e=>{let a=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});a.success&&(j(a.data.data),H(a.data.total),F(a.data.page))},hideOnSinglePage:!0})})]}):(0,i.jsx)(i.Fragment,{}),(0,i.jsx)(O.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:o,onClose:()=>m(!1),children:(0,i.jsxs)(s.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,i.jsx)(E.Z,{sx:{width:"100%"},children:(0,i.jsx)(c.Z,{spacing:2,direction:"row",children:ea.map((e,t)=>(0,i.jsxs)(et,{sx:{fontWeight:x===t?"bold":"",color:x===t?"#2AA3FF":""},children:[t(0,i.jsxs)(s.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{C(e.type),v(1)},children:[(0,i.jsx)(s.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,i.jsx)(s.Z,{children:e.subTitle})]},e.type))})}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(E.Z,{sx:{margin:"30px auto"},children:["Name:",(0,i.jsx)(M.ZP,{placeholder:"Please input the name",onChange:e=>w(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===f?(0,i.jsxs)(i.Fragment,{children:["Web Page URL:",(0,i.jsx)(M.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>y(e.target.value)})]}):"file"===f?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(ee,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){D(null),w("");return}D(e.file.originFileObj),w(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,i.jsx)("p",{className:"ant-upload-drag-icon",children:(0,i.jsx)($.Z,{})}),(0,i.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,i.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,i.jsxs)(i.Fragment,{children:["Text Source(Optional):",(0,i.jsx)(M.ZP,{placeholder:"Please input the text source",onChange:e=>_(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,i.jsx)(W.Z,{onChange:e=>k(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,i.jsx)(p.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,i.jsx)(L.Z,{checked:A,onChange:e=>G(e.target.checked)}),children:"Synch:"})]}),(0,i.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,i.jsx)(u.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>v(0),children:"< Back"}),(0,i.jsx)(u.Z,{variant:"outlined",onClick:async()=>{if(""===P){X.ZP.error("Please input the name");return}if("webPage"===f){if(""===Z){X.ZP.error("Please input the Web Page URL");return}let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,content:Z,doc_type:"URL"});if(e.success&&A&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else X.ZP.error(e.err_msg||"failed")}else if("file"===f){if(!R){X.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",P),e.append("doc_file",R),e.append("doc_type","DOCUMENT");let a=await (0,Q.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(a.success&&A&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[a.data]}),a.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else X.ZP.error(a.err_msg||"failed")}else{if(""===z){X.ZP.error("Please input the text");return}let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:P,source:S,content:z,doc_type:"TEXT"});if(e.success&&A&&(0,Q.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){X.ZP.success("success"),m(!1);let e=await (0,Q.PR)("/knowledge/".concat(t,"/document/list"),{page:N,page_size:20});e.success&&(j(e.data.data),H(e.data.total),F(e.data.page))}else X.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,a){"use strict";a.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return p},Ej:function(){return u}});var i=a(21628),r=a(24214),n=a(52040);let o=r.Z.create({baseURL:n.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var s=a(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,s.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let a=t[e];"string"==typeof a&&(t[e]=a.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let a=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");a&&(e+="?".concat(a))}return o.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let a=c(t);return o.post("/api"+e,{body:a,headers:l}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),o.post(e,t,{headers:l}).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})),u=(e,t)=>o.post(e,t).then(e=>e).catch(e=>{i.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,550,838,60,759,192,86,409,790,946,767,957,872,253,769,744],function(){return e(e.s=4797)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-5568ad89824d5eb6.js b/pilot/server/static/_next/static/chunks/app/datastores/page-5568ad89824d5eb6.js deleted file mode 100644 index 5671953d3..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-5568ad89824d5eb6.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6043],{95131:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(40431),s=n(86006),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(1240),i=s.forwardRef(function(e,t){return s.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))})},29382:function(e,t,n){"use strict";var r=n(78997);t.Z=void 0;var s=r(n(76906)),o=n(9268),a=(0,s.default)([(0,o.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,o.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=a},3146:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(86006);function s(){let[,e]=r.useReducer(e=>e+1,0);return e}},66162:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var r=n(9268),s=n(56008),o=n(86006),a=n(72474),i=n(59534),c=n(29382),l=n(53195),d=n(21628),x=n(50645),p=n(5737),u=n(90545),h=n(80937),g=n(34112),f=n(35086),m=n(53113),j=n(96323),Z=n(22046),b=n(47611),P=n(78915);let{Dragger:w}=l.default,k=(0,x.Z)(p.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),y=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],S=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,n]=(0,o.useState)(0),[l,x]=(0,o.useState)(""),[v,F]=(0,o.useState)([]),[C,R]=(0,o.useState)(!1),[_,z]=(0,o.useState)(""),[A,N]=(0,o.useState)(""),[T,B]=(0,o.useState)(""),[E,O]=(0,o.useState)(""),[D,W]=(0,o.useState)(""),[L,U]=(0,o.useState)(""),[M,G]=(0,o.useState)(""),[V,H]=(0,o.useState)(null),[I,K]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await (0,P.PR)("/knowledge/space/list",{});e.success&&F(e.data)})()},[]),(0,r.jsxs)(u.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,r.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,r.jsxs)(h.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,r.jsxs)(u.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>R(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,r.jsx)(u.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,r.jsx)(u.Z,{sx:{fontSize:"16px"},children:"space"})]}),v.map((t,n)=>(0,r.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,r.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,r.jsx)(c.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,r.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,r.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(u.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,r.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,r.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(u.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,r.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,r.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(u.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,r.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},n)),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{})]})}),(0,r.jsx)(g.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:C,onClose:()=>R(!1),children:(0,r.jsxs)(p.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,r.jsx)(u.Z,{sx:{width:"100%"},children:(0,r.jsx)(h.Z,{spacing:2,direction:"row",children:y.map((e,n)=>(0,r.jsxs)(k,{sx:{fontWeight:t===n?"bold":"",color:t===n?"#2AA3FF":""},children:[nz(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,r.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>N(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,r.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>B(e.target.value),sx:{marginBottom:"20px"}})]}),(0,r.jsx)(m.Z,{variant:"outlined",onClick:async()=>{if(""===_){d.ZP.error("please input the name");return}if(""===A){d.ZP.error("please input the owner");return}if(""===T){d.ZP.error("please input the description");return}let e=await (0,P.PR)("/knowledge/space/add",{name:_,vector_type:"Chroma",owner:A,desc:T});if(e.success){d.ZP.success("success"),n(1);let e=await (0,P.PR)("/knowledge/space/list",{});e.success&&F(e.data)}else d.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.Z,{sx:{margin:"30px auto"},children:S.map(e=>(0,r.jsxs)(p.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{x(e.type),n(2)},children:[(0,r.jsx)(p.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,r.jsx)(p.Z,{children:e.subTitle})]},e.type))})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,r.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===l?(0,r.jsxs)(r.Fragment,{children:["Web Page URL:",(0,r.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>O(e.target.value)})]}):"file"===l?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(w,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){H(null),W("");return}H(e.file.originFileObj),W(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,r.jsx)("p",{className:"ant-upload-drag-icon",children:(0,r.jsx)(a.Z,{})}),(0,r.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,r.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,r.jsxs)(r.Fragment,{children:["Text Source(Optional):",(0,r.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>U(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,r.jsx)(j.Z,{onChange:e=>G(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,r.jsx)(Z.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,r.jsx)(b.Z,{checked:I,onChange:e=>K(e.target.checked)}),children:"Synch:"})]}),(0,r.jsxs)(h.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,r.jsx)(m.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>n(1),children:"< Back"}),(0,r.jsx)(m.Z,{variant:"outlined",onClick:async()=>{if(""===D){d.ZP.error("Please input the name");return}if("webPage"===l){if(""===E){d.ZP.error("Please input the Web Page URL");return}let e=await (0,P.PR)("/knowledge/".concat(_,"/document/add"),{doc_name:D,content:E,doc_type:"URL"});e.success?(d.ZP.success("success"),R(!1),I&&(0,P.PR)("/knowledge/".concat(_,"/document/sync"),{doc_ids:[e.data]})):d.ZP.error(e.err_msg||"failed")}else if("file"===l){if(!V){d.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",D),e.append("doc_file",V),e.append("doc_type","DOCUMENT");let t=await (0,P.Ej)("/knowledge/".concat(_,"/document/upload"),e);t.success?(d.ZP.success("success"),R(!1),I&&(0,P.PR)("/knowledge/".concat(_,"/document/sync"),{doc_ids:[t.data]})):d.ZP.error(t.err_msg||"failed")}else{if(""===M){d.ZP.error("Please input the text");return}let e=await (0,P.PR)("/knowledge/".concat(_,"/document/add"),{doc_name:D,source:L,content:M,doc_type:"TEXT"});e.success?(d.ZP.success("success"),R(!1),I&&(0,P.PR)("/knowledge/".concat(_,"/document/sync"),{doc_ids:[e.data]})):d.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return l},Kw:function(){return d},PR:function(){return x},Ej:function(){return p}});var r=n(21628),s=n(24214);let o=s.Z.create({baseURL:"http://127.0.0.1:5000"});o.defaults.timeout=1e4,o.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=n(84835);let i={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},l=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return o.get("/api"+e,{headers:i}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let n=c(t);return o.post("/api"+e,{body:n,headers:i}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},x=(e,t)=>o.post(e,t,{headers:i}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)}),p=(e,t)=>o.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,3933,272,8942,7192,5935,5086,2274,9253,5769,1744],function(){return e(e.s=66162)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-905b453a410beedf.js b/pilot/server/static/_next/static/chunks/app/datastores/page-905b453a410beedf.js new file mode 100644 index 000000000..585aa664a --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/datastores/page-905b453a410beedf.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6043],{66162:function(e,t,r){Promise.resolve().then(r.bind(r,44323))},44323:function(e,t,r){"use strict";r.r(t);var n=r(9268),s=r(56008),o=r(86006),i=r(72474),a=r(59534),l=r(29382),c=r(68949),x=r(74852),d=r(53195),p=r(21628),u=r(50645),h=r(5737),g=r(90545),m=r(80937),j=r(34112),f=r(35086),Z=r(53113),b=r(96323),P=r(22046),w=r(47611),y=r(30530),k=r(50318),S=r(78915);let{Dragger:C}=d.default,F=(0,u.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),R=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],v=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,r]=(0,o.useState)(0),[d,u]=(0,o.useState)(""),[_,A]=(0,o.useState)([]),[N,T]=(0,o.useState)(!1),[B,E]=(0,o.useState)(""),[z,D]=(0,o.useState)(""),[W,U]=(0,o.useState)(""),[O,L]=(0,o.useState)(""),[G,I]=(0,o.useState)(""),[K,M]=(0,o.useState)(""),[J,V]=(0,o.useState)(""),[H,X]=(0,o.useState)(null),[Y,q]=(0,o.useState)(!0),[Q,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)({});return(0,o.useEffect)(()=>{(async function(){let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)})()},[]),(0,n.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,n.jsx)(g.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,n.jsxs)(g.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>T(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,n.jsx)(g.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,n.jsx)(g.Z,{sx:{fontSize:"16px"},children:"space"})]}),_.map((t,r)=>(0,n.jsxs)(g.Z,{sx:{position:"relative",padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,n.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]}),(0,n.jsx)(g.Z,{sx:{position:"absolute",right:"10px",top:"10px",color:"rgb(205, 32, 41)"},onClick:e=>{e.stopPropagation(),et(t),$(!0)},children:(0,n.jsx)(c.Z,{sx:{fontSize:"30px"}})})]},r)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(j.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:N,onClose:()=>T(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(g.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:R.map((e,r)=>(0,n.jsxs)(F,{sx:{fontWeight:t===r?"bold":"",color:t===r?"#2AA3FF":""},children:[rE(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,n.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,n.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>U(e.target.value),sx:{marginBottom:"20px"}})]}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===B){p.ZP.error("please input the name");return}if(/[^\u4e00-\u9fa50-9a-zA-Z_-]/.test(B)){p.ZP.error('the name can only contain numbers, letters, Chinese characters, "-" and "_"');return}if(""===z){p.ZP.error("please input the owner");return}if(""===W){p.ZP.error("please input the description");return}let e=await (0,S.PR)("/knowledge/space/add",{name:B,vector_type:"Chroma",owner:z,desc:W});if(e.success){p.ZP.success("success"),r(1);let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Z,{sx:{margin:"30px auto"},children:v.map(e=>(0,n.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{u(e.type),r(2)},children:[(0,n.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>I(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===d?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>L(e.target.value)})]}):"file"===d?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(C,{name:"file",multiple:!1,beforeUpload:()=>!1,onChange(e){if(0===e.fileList.length){X(null),I("");return}X(e.file),I(e.file.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(i.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>M(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(P.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(w.Z,{checked:Y,onChange:e=>q(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(Z.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>r(1),children:"< Back"}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===G){p.ZP.error("Please input the name");return}if("webPage"===d){if(""===O){p.ZP.error("Please input the Web Page URL");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,content:O,doc_type:"URL"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}else if("file"===d){if(!H){p.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",G),e.append("doc_file",H),e.append("doc_type","DOCUMENT");let t=await (0,S.Ej)("/knowledge/".concat(B,"/document/upload"),e);t.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[t.data]})):p.ZP.error(t.err_msg||"failed")}else{if(""===J){p.ZP.error("Please input the text");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,source:K,content:J,doc_type:"TEXT"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})}),(0,n.jsx)(j.Z,{open:Q,onClose:()=>$(!1),children:(0,n.jsxs)(y.Z,{variant:"outlined",role:"alertdialog","aria-labelledby":"alert-dialog-modal-title","aria-describedby":"alert-dialog-modal-description",children:[(0,n.jsx)(P.ZP,{id:"alert-dialog-modal-title",component:"h2",startDecorator:(0,n.jsx)(x.Z,{style:{color:"rgb(205, 32, 41)"}}),sx:{color:"black"},children:"Confirmation"}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(P.ZP,{id:"alert-dialog-modal-description",textColor:"text.tertiary",sx:{fontWeight:"500",color:"black"},children:["Sure to delete ",null==ee?void 0:ee.name,"?"]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end",pt:2},children:[(0,n.jsx)(Z.Z,{variant:"outlined",color:"neutral",onClick:()=>$(!1),children:"Cancel"}),(0,n.jsx)(Z.Z,{variant:"outlined",color:"danger",onClick:async()=>{$(!1);let e=await (0,S.PR)("/knowledge/space/delete",{name:null==ee?void 0:ee.name});if(e.success){p.ZP.success("success");let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Yes"})]})]})})]})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return x},Kw:function(){return d},PR:function(){return p},Ej:function(){return u}});var n=r(21628),s=r(24214),o=r(52040);let i=s.Z.create({baseURL:o.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},x=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},p=(e,t)=>i.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)}),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,877,5230,8942,7192,5935,5086,2149,1450,9253,5769,1744],function(){return e(e.s=66162)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-a9e9fe5f4878e7e1.js b/pilot/server/static/_next/static/chunks/app/datastores/page-a9e9fe5f4878e7e1.js deleted file mode 100644 index 8c3b68d6c..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-a9e9fe5f4878e7e1.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6043],{95131:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(40431),s=n(86006),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(1240),i=s.forwardRef(function(e,t){return s.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:o}))})},29382:function(e,t,n){"use strict";var r=n(78997);t.Z=void 0;var s=r(n(76906)),o=n(9268),a=(0,s.default)([(0,o.jsx)("path",{d:"M5 5h2v3h10V5h2v5h2V5c0-1.1-.9-2-2-2h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v-2H5V5zm7-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z"},"0"),(0,o.jsx)("path",{d:"M20.3 18.9c.4-.7.7-1.5.7-2.4 0-2.5-2-4.5-4.5-4.5S12 14 12 16.5s2 4.5 4.5 4.5c.9 0 1.7-.3 2.4-.7l2.7 2.7 1.4-1.4-2.7-2.7zm-3.8.1c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5z"},"1")],"ContentPasteSearchOutlined");t.Z=a},3146:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(86006);function s(){let[,e]=r.useReducer(e=>e+1,0);return e}},66162:function(e,t,n){Promise.resolve().then(n.bind(n,44323))},44323:function(e,t,n){"use strict";n.r(t);var r=n(9268),s=n(56008),o=n(86006),a=n(72474),i=n(59534),c=n(29382),l=n(53195),d=n(21628),x=n(50645),p=n(5737),u=n(90545),h=n(80937),g=n(34112),f=n(35086),m=n(53113),j=n(96323),Z=n(22046),b=n(47611),P=n(78915);let{Dragger:w}=l.default,k=(0,x.Z)(p.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),y=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],S=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,n]=(0,o.useState)(0),[l,x]=(0,o.useState)(""),[v,F]=(0,o.useState)([]),[R,C]=(0,o.useState)(!1),[_,A]=(0,o.useState)(""),[z,B]=(0,o.useState)(""),[E,N]=(0,o.useState)(""),[T,O]=(0,o.useState)(""),[D,W]=(0,o.useState)(""),[L,U]=(0,o.useState)(""),[M,G]=(0,o.useState)(""),[V,H]=(0,o.useState)(null),[I,K]=(0,o.useState)(!0);return(0,o.useEffect)(()=>{(async function(){let e=await (0,P.PR)("/knowledge/space/list",{});e.success&&F(e.data)})()},[]),(0,r.jsxs)(u.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,r.jsx)(u.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,r.jsxs)(h.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,r.jsxs)(u.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>C(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,r.jsx)(u.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,r.jsx)(u.Z,{sx:{fontSize:"16px"},children:"space"})]}),v.map((t,n)=>(0,r.jsxs)(u.Z,{sx:{padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,r.jsxs)(u.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,r.jsx)(c.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,r.jsxs)(u.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,r.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(u.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,r.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,r.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(u.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,r.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,r.jsxs)(u.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,r.jsx)(u.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,r.jsx)(u.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]})]},n)),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{}),(0,r.jsx)("i",{})]})}),(0,r.jsx)(g.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:R,onClose:()=>C(!1),children:(0,r.jsxs)(p.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,r.jsx)(u.Z,{sx:{width:"100%"},children:(0,r.jsx)(h.Z,{spacing:2,direction:"row",children:y.map((e,n)=>(0,r.jsxs)(k,{sx:{fontWeight:t===n?"bold":"",color:t===n?"#2AA3FF":""},children:[nA(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,r.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>B(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,r.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>N(e.target.value),sx:{marginBottom:"20px"}})]}),(0,r.jsx)(m.Z,{variant:"outlined",onClick:async()=>{if(""===_){d.ZP.error("please input the name");return}if(""===z){d.ZP.error("please input the owner");return}if(""===E){d.ZP.error("please input the description");return}let e=await (0,P.PR)("/knowledge/space/add",{name:_,vector_type:"Chroma",owner:z,desc:E});if(e.success){d.ZP.success("success"),n(1);let e=await (0,P.PR)("/knowledge/space/list",{});e.success&&F(e.data)}else d.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(u.Z,{sx:{margin:"30px auto"},children:S.map(e=>(0,r.jsxs)(p.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{x(e.type),n(2)},children:[(0,r.jsx)(p.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,r.jsx)(p.Z,{children:e.subTitle})]},e.type))})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(u.Z,{sx:{margin:"30px auto"},children:["Name:",(0,r.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===l?(0,r.jsxs)(r.Fragment,{children:["Web Page URL:",(0,r.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>O(e.target.value)})]}):"file"===l?(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(w,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){H(null),W("");return}H(e.file.originFileObj),W(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,r.jsx)("p",{className:"ant-upload-drag-icon",children:(0,r.jsx)(a.Z,{})}),(0,r.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,r.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,r.jsxs)(r.Fragment,{children:["Text Source(Optional):",(0,r.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>U(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,r.jsx)(j.Z,{onChange:e=>G(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,r.jsx)(Z.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,r.jsx)(b.Z,{checked:I,onChange:e=>K(e.target.checked)}),children:"Synch:"})]}),(0,r.jsxs)(h.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,r.jsx)(m.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>n(1),children:"< Back"}),(0,r.jsx)(m.Z,{variant:"outlined",onClick:async()=>{if(""===D){d.ZP.error("Please input the name");return}if("webPage"===l){if(""===T){d.ZP.error("Please input the Web Page URL");return}let e=await (0,P.PR)("/knowledge/".concat(_,"/document/add"),{doc_name:D,content:T,doc_type:"URL"});e.success?(d.ZP.success("success"),C(!1),I&&(0,P.PR)("/knowledge/".concat(_,"/document/sync"),{doc_ids:[e.data]})):d.ZP.error(e.err_msg||"failed")}else if("file"===l){if(!V){d.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",D),e.append("doc_file",V),e.append("doc_type","DOCUMENT");let t=await (0,P.Ej)("/knowledge/".concat(_,"/document/upload"),e);t.success?(d.ZP.success("success"),C(!1),I&&(0,P.PR)("/knowledge/".concat(_,"/document/sync"),{doc_ids:[t.data]})):d.ZP.error(t.err_msg||"failed")}else{if(""===M){d.ZP.error("Please input the text");return}let e=await (0,P.PR)("/knowledge/".concat(_,"/document/add"),{doc_name:D,source:L,content:M,doc_type:"TEXT"});e.success?(d.ZP.success("success"),C(!1),I&&(0,P.PR)("/knowledge/".concat(_,"/document/sync"),{doc_ids:[e.data]})):d.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return x},PR:function(){return p},Ej:function(){return u}});var r=n(21628),s=n(24214),o=n(52040);let a=s.Z.create({baseURL:o.env.API_BASE_URL});a.defaults.timeout=1e4,a.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=n(84835);let c={"content-type":"application/json"},l=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return a.get("/api"+e,{headers:c}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},x=(e,t)=>{let n=l(t);return a.post("/api"+e,{body:n,headers:c}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},p=(e,t)=>a.post(e,t,{headers:c}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)}),u=(e,t)=>a.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,780,272,8942,7192,5935,5086,2274,9253,5769,1744],function(){return e(e.s=66162)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-b52ecaeb94a6af31.js b/pilot/server/static/_next/static/chunks/app/datastores/page-b52ecaeb94a6af31.js deleted file mode 100644 index 75c1023ce..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-b52ecaeb94a6af31.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{85182:function(e,t,r){Promise.resolve().then(r.bind(r,44323))},44323:function(e,t,r){"use strict";r.r(t);var n=r(9268),s=r(56008),o=r(86006),i=r(72474),a=r(59534),l=r(29382),c=r(68949),x=r(74852),d=r(50157),p=r(21628),u=r(50645),h=r(5737),g=r(90545),m=r(80937),j=r(81528),f=r(35086),Z=r(53113),b=r(866),P=r(22046),w=r(28086),y=r(30530),k=r(50318),S=r(78915);let{Dragger:C}=d.default,F=(0,u.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),R=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],v=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,r]=(0,o.useState)(0),[d,u]=(0,o.useState)(""),[_,A]=(0,o.useState)([]),[N,T]=(0,o.useState)(!1),[B,E]=(0,o.useState)(""),[z,D]=(0,o.useState)(""),[W,U]=(0,o.useState)(""),[O,L]=(0,o.useState)(""),[G,I]=(0,o.useState)(""),[K,M]=(0,o.useState)(""),[J,V]=(0,o.useState)(""),[H,X]=(0,o.useState)(null),[Y,q]=(0,o.useState)(!0),[Q,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)({});return(0,o.useEffect)(()=>{(async function(){let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)})()},[]),(0,n.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,n.jsx)(g.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,n.jsxs)(g.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>T(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,n.jsx)(g.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,n.jsx)(g.Z,{sx:{fontSize:"16px"},children:"space"})]}),_.map((t,r)=>(0,n.jsxs)(g.Z,{sx:{position:"relative",padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,n.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]}),(0,n.jsx)(g.Z,{sx:{position:"absolute",right:"10px",top:"10px",color:"rgb(205, 32, 41)"},onClick:e=>{e.stopPropagation(),et(t),$(!0)},children:(0,n.jsx)(c.Z,{sx:{fontSize:"30px"}})})]},r)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(j.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:N,onClose:()=>T(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(g.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:R.map((e,r)=>(0,n.jsxs)(F,{sx:{fontWeight:t===r?"bold":"",color:t===r?"#2AA3FF":""},children:[rE(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,n.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,n.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>U(e.target.value),sx:{marginBottom:"20px"}})]}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===B){p.ZP.error("please input the name");return}if(/[^\u4e00-\u9fa50-9a-zA-Z_-]/.test(B)){p.ZP.error('the name can only contain numbers, letters, Chinese characters, "-" and "_"');return}if(""===z){p.ZP.error("please input the owner");return}if(""===W){p.ZP.error("please input the description");return}let e=await (0,S.PR)("/knowledge/space/add",{name:B,vector_type:"Chroma",owner:z,desc:W});if(e.success){p.ZP.success("success"),r(1);let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Z,{sx:{margin:"30px auto"},children:v.map(e=>(0,n.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{u(e.type),r(2)},children:[(0,n.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>I(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===d?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>L(e.target.value)})]}):"file"===d?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(C,{name:"file",multiple:!1,beforeUpload:()=>!1,onChange(e){if(0===e.fileList.length){X(null),I("");return}X(e.file),I(e.file.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(i.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>M(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(P.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(w.Z,{checked:Y,onChange:e=>q(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(Z.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>r(1),children:"< Back"}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===G){p.ZP.error("Please input the name");return}if("webPage"===d){if(""===O){p.ZP.error("Please input the Web Page URL");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,content:O,doc_type:"URL"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}else if("file"===d){if(!H){p.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",G),e.append("doc_file",H),e.append("doc_type","DOCUMENT");let t=await (0,S.Ej)("/knowledge/".concat(B,"/document/upload"),e);t.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[t.data]})):p.ZP.error(t.err_msg||"failed")}else{if(""===J){p.ZP.error("Please input the text");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,source:K,content:J,doc_type:"TEXT"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})}),(0,n.jsx)(j.Z,{open:Q,onClose:()=>$(!1),children:(0,n.jsxs)(y.Z,{variant:"outlined",role:"alertdialog","aria-labelledby":"alert-dialog-modal-title","aria-describedby":"alert-dialog-modal-description",children:[(0,n.jsx)(P.ZP,{id:"alert-dialog-modal-title",component:"h2",startDecorator:(0,n.jsx)(x.Z,{style:{color:"rgb(205, 32, 41)"}}),sx:{color:"black"},children:"Confirmation"}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(P.ZP,{id:"alert-dialog-modal-description",textColor:"text.tertiary",sx:{fontWeight:"500",color:"black"},children:["Sure to delete ",null==ee?void 0:ee.name,"?"]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end",pt:2},children:[(0,n.jsx)(Z.Z,{variant:"outlined",color:"neutral",onClick:()=>$(!1),children:"Cancel"}),(0,n.jsx)(Z.Z,{variant:"outlined",color:"danger",onClick:async()=>{$(!1);let e=await (0,S.PR)("/knowledge/space/delete",{name:null==ee?void 0:ee.name});if(e.success){p.ZP.success("success");let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Yes"})]})]})})]})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return x},Kw:function(){return d},PR:function(){return p},Ej:function(){return u}});var n=r(21628),s=r(24214),o=r(52040);let i=s.Z.create({baseURL:o.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},x=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,230,759,192,86,790,946,872,2,253,769,744],function(){return e(e.s=85182)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-e0ea3b47f190d00a.js b/pilot/server/static/_next/static/chunks/app/datastores/page-e0ea3b47f190d00a.js deleted file mode 100644 index 1b53001d3..000000000 --- a/pilot/server/static/_next/static/chunks/app/datastores/page-e0ea3b47f190d00a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{66162:function(e,t,r){Promise.resolve().then(r.bind(r,44323))},44323:function(e,t,r){"use strict";r.r(t);var n=r(9268),s=r(56008),o=r(86006),i=r(72474),a=r(59534),l=r(29382),c=r(68949),x=r(74852),d=r(50157),p=r(21628),u=r(50645),h=r(5737),g=r(90545),m=r(80937),j=r(81528),f=r(35086),Z=r(53113),b=r(866),P=r(22046),w=r(28086),y=r(30530),k=r(50318),S=r(78915);let{Dragger:C}=d.default,F=(0,u.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),v=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],R=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,r]=(0,o.useState)(0),[d,u]=(0,o.useState)(""),[_,A]=(0,o.useState)([]),[N,T]=(0,o.useState)(!1),[B,E]=(0,o.useState)(""),[z,D]=(0,o.useState)(""),[O,W]=(0,o.useState)(""),[U,L]=(0,o.useState)(""),[G,I]=(0,o.useState)(""),[K,M]=(0,o.useState)(""),[J,V]=(0,o.useState)(""),[H,X]=(0,o.useState)(null),[Y,q]=(0,o.useState)(!0),[Q,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)({});return(0,o.useEffect)(()=>{(async function(){let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)})()},[]),(0,n.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,n.jsx)(g.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,n.jsxs)(g.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>T(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,n.jsx)(g.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,n.jsx)(g.Z,{sx:{fontSize:"16px"},children:"space"})]}),_.map((t,r)=>(0,n.jsxs)(g.Z,{sx:{position:"relative",padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,n.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]}),(0,n.jsx)(g.Z,{sx:{position:"absolute",right:"10px",top:"10px",color:"rgb(205, 32, 41)"},onClick:e=>{e.stopPropagation(),et(t),$(!0)},children:(0,n.jsx)(c.Z,{sx:{fontSize:"30px"}})})]},r)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(j.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:N,onClose:()=>T(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(g.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:v.map((e,r)=>(0,n.jsxs)(F,{sx:{fontWeight:t===r?"bold":"",color:t===r?"#2AA3FF":""},children:[rE(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,n.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,n.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}})]}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===B){p.ZP.error("please input the name");return}if(/[^0-9a-zA-Z_-]/.test(B)){p.ZP.error('the name can only contain numbers, letters, "-" and "_"');return}if(""===z){p.ZP.error("please input the owner");return}if(""===O){p.ZP.error("please input the description");return}let e=await (0,S.PR)("/knowledge/space/add",{name:B,vector_type:"Chroma",owner:z,desc:O});if(e.success){p.ZP.success("success"),r(1);let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Z,{sx:{margin:"30px auto"},children:R.map(e=>(0,n.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{u(e.type),r(2)},children:[(0,n.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>I(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===d?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>L(e.target.value)})]}):"file"===d?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(C,{name:"file",multiple:!1,onChange(e){var t;if(0===e.fileList.length){X(null),I("");return}X(e.file.originFileObj),I(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(i.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>M(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(P.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(w.Z,{checked:Y,onChange:e=>q(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(Z.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>r(1),children:"< Back"}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===G){p.ZP.error("Please input the name");return}if("webPage"===d){if(""===U){p.ZP.error("Please input the Web Page URL");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,content:U,doc_type:"URL"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}else if("file"===d){if(!H){p.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",G),e.append("doc_file",H),e.append("doc_type","DOCUMENT");let t=await (0,S.Ej)("/knowledge/".concat(B,"/document/upload"),e);t.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[t.data]})):p.ZP.error(t.err_msg||"failed")}else{if(""===J){p.ZP.error("Please input the text");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,source:K,content:J,doc_type:"TEXT"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})}),(0,n.jsx)(j.Z,{open:Q,onClose:()=>$(!1),children:(0,n.jsxs)(y.Z,{variant:"outlined",role:"alertdialog","aria-labelledby":"alert-dialog-modal-title","aria-describedby":"alert-dialog-modal-description",children:[(0,n.jsx)(P.ZP,{id:"alert-dialog-modal-title",component:"h2",startDecorator:(0,n.jsx)(x.Z,{style:{color:"rgb(205, 32, 41)"}}),sx:{color:"black"},children:"Confirmation"}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(P.ZP,{id:"alert-dialog-modal-description",textColor:"text.tertiary",sx:{fontWeight:"500",color:"black"},children:["Sure to delete ",null==ee?void 0:ee.name,"?"]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end",pt:2},children:[(0,n.jsx)(Z.Z,{variant:"outlined",color:"neutral",onClick:()=>$(!1),children:"Cancel"}),(0,n.jsx)(Z.Z,{variant:"outlined",color:"danger",onClick:async()=>{$(!1);let e=await (0,S.PR)("/knowledge/space/delete",{name:null==ee?void 0:ee.name});if(e.success){p.ZP.success("success");let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Yes"})]})]})})]})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return x},Kw:function(){return d},PR:function(){return p},Ej:function(){return u}});var n=r(21628),s=r(24214),o=r(52040);let i=s.Z.create({baseURL:o.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},x=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,838,60,759,192,86,790,946,872,2,253,769,744],function(){return e(e.s=66162)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-0a94eba37232c629.js b/pilot/server/static/_next/static/chunks/app/layout-0a94eba37232c629.js deleted file mode 100644 index 96e423036..000000000 --- a/pilot/server/static/_next/static/chunks/app/layout-0a94eba37232c629.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},86185:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return a}});var n=r(9268),i=r(89081),s=r(78915),l=r(86006);let[a,o]=function(){let e=l.createContext(void 0);return[function(){let t=l.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:l,refresh:a}=(0,i.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:l,queryDialogueList:r,refreshDialogList:a},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return M}});var s=r(9268);r(97402),r(23517);var l=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(53113),x=r(18818),m=r(4882),p=r(70092),v=r(64579),g=r(22046),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),P=r(57931),N=r(66664),_=r(78915),E=r(76394),D=r.n(E),S=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),{dialogueList:o,queryDialogueList:E,refreshDialogList:S}=(0,P.Cg)(),{mode:z,setMode:L}=(0,u.tv)(),F=(0,l.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,s.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,l.useEffect)(()=>{(async()=>{await E()})()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,s.jsx)("div",{children:(0,s.jsx)(k.Z,{})}),(0,s.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,s.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(C.Z,{})})]}),(0,s.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,s.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,s.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(D(),{src:"/LOGO_1.png",alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full",unoptimized:!0})})}),(0,s.jsx)(f.Z,{sx:{px:2},children:(0,s.jsx)(d(),{href:"/",children:(0,s.jsx)(h.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,s.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,s.jsx)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.map(e=>{let l=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,s.jsx)(m.Z,{children:(0,s.jsx)(p.Z,{selected:l,variant:l?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(v.Z,{children:(0,s.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(g.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await S(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(N.Z,{})})]})})})},e.conv_uid)})})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,s.jsx)("div",{}),(0,s.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,s.jsxs)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,s.jsx)(d(),{href:e.route,children:(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,s.jsx)(v.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===z?L("dark"):L("light")},children:[(0,s.jsx)(b.Z,{children:"dark"===z?(0,s.jsx)(Z.Z,{fontSize:"small"}):(0,s.jsx)(w.Z,{fontSize:"small"})}),(0,s.jsx)(v.Z,{children:"Theme"})]})})]})})]})]})})]})},z=r(29720),L=r(41287),F=r(38230);let H=(0,L.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...F.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...F.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var O=r(53794),I=r.n(O),T=r(54486),R=r.n(T);let A=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){R().start()},250))}function K(){A>0||(i="stop",clearTimeout(n),R().done())}if(I().events.on("routeChangeStart",J),I().events.on("routeChangeComplete",K),I().events.on("routeChangeError",K),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,s,l,a;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(s=i.classList)||void 0===s||s.remove("dark"):null==n||null===(l=n.current)||void 0===l||null===(a=l.classList)||void 0===a||a.remove("light")}},[n,r]),(0,s.jsxs)("div",{ref:n,className:"h-full",children:[(0,s.jsx)(W,{}),(0,s.jsx)(P.ZP,{children:(0,s.jsx)("div",{className:"contents h-full",children:(0,s.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,s.jsx)(S,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var M=function(e){let{children:t}=e;return(0,s.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,s.jsx)("body",{className:"h-full font-sans",children:(0,s.jsx)(z.Z,{theme:H,children:(0,s.jsx)(u.lL,{theme:H,defaultMode:"light",children:(0,s.jsx)(G,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return c},Kw:function(){return u},PR:function(){return f},Ej:function(){return h}});var n=r(21628),i=r(24214),s=r(52040);let l=i.Z.create({baseURL:s.env.API_BASE_URL});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=d(t);return l.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},f=(e,t)=>(d(t),l.post(e,t,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),h=(e,t)=>l.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[180,877,230,759,81,409,394,946,751,796,253,769,744],function(){return e(e.s=86185)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-1390d7f876a253a5.js b/pilot/server/static/_next/static/chunks/app/layout-1a9dfc35f4f78db4.js similarity index 99% rename from pilot/server/static/_next/static/chunks/app/layout-1390d7f876a253a5.js rename to pilot/server/static/_next/static/chunks/app/layout-1a9dfc35f4f78db4.js index 71075afff..3a2097a4f 100644 --- a/pilot/server/static/_next/static/chunks/app/layout-1390d7f876a253a5.js +++ b/pilot/server/static/_next/static/chunks/app/layout-1a9dfc35f4f78db4.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{72431:function(){},91909:function(e,t,i){Promise.resolve().then(i.bind(i,51689))},57931:function(e,t,i){"use strict";i.d(t,{ZP:function(){return c},Cg:function(){return a}});var r=i(9268),n=i(89081),s=i(78915),l=i(86006);let[a,o]=function(){let e=l.createContext(void 0);return[function(){let t=l.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,[i,a]=l.useState(!1),{run:c,data:d,refresh:h}=(0,n.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,r.jsx)(o,{value:{isContract:i,dialogueList:d,setIsContract:a,queryDialogueList:c,refreshDialogList:h},children:t})}},51689:function(e,t,i){"use strict";let r,n;i.r(t),i.d(t,{default:function(){return et}});var s=i(9268);i(97402),i(23517);var l=i(86006),a=i(56008),o=i(35846),c=i.n(o),d=i(79914),h=i(78635),u=i(18818),x=i(64521),f=i(68113),m=i(70092),p=i(64579),v=i(22046),j=i(53047),g=i(62921),b=i(90545),Z=i(53113),y=i(40020),w=i(11515),k=i(84892),C=i(601),N=i(1301),P=i(98703),_=i(57931),B=i(66664),S=i(78915),z=i(76394),D=i.n(z),E=()=>{var e,t;let i=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),o=(0,a.useRouter)(),[z,E]=(0,l.useState)("/LOGO_1.png"),{dialogueList:O,queryDialogueList:I,refreshDialogList:L,isContract:H}=(0,_.Cg)(),{mode:T,setMode:F}=(0,h.tv)(),R=(0,l.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,s.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===i}],[i]),A=()=>{"light"===T?F("dark"):F("light")};return(0,l.useEffect)(()=>{"light"===T?E("/LOGO_1.png"):E("/WHITE_LOGO.png")},[T]),(0,l.useEffect)(()=>{(async()=>{await I()})()},[]),H?(0,s.jsxs)(u.Z,{className:"flex flex-col h-full",children:[(0,s.jsxs)(x.Z,{nested:!0,className:"h-full flex-1 overflow-auto",children:[(0,s.jsx)(f.Z,{children:"Dialogue"}),(0,s.jsx)(u.Z,{children:null==O?void 0:null===(e=O.data)||void 0===e?void 0:e.map(e=>{let t=("/chat"===i||"/chat/"===i)&&n===e.conv_uid;return(0,s.jsx)(x.Z,{children:(0,s.jsx)(m.Z,{selected:t,variant:t?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(p.Z,{children:(0,s.jsxs)(c(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(v.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(P.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:t=>{t.preventDefault(),t.stopPropagation(),d.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",zIndex:1002,centered:!0,async onOk(){await (0,S.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await L(),"/chat"===i&&r.get("id")===e.conv_uid&&o.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(B.Z,{})})]})})})},e.conv_uid)})})]}),(0,s.jsxs)(x.Z,{nested:!0,className:"h-32",sx:{borderTop:"1px solid",borderColor:"divider"},children:[(0,s.jsx)(f.Z,{children:"Others"}),(0,s.jsxs)(u.Z,{children:[R.map(e=>(0,s.jsx)(c(),{href:e.route,children:(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{color:"neutral",sx:{height:"2.5rem",fontSize:"14px"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(g.Z,{sx:{color:e.active?"inherit":"neutral.500",minInlineSize:"unset",marginRight:"0.5rem"},children:e.icon}),(0,s.jsx)(p.Z,{children:e.label})]})})},e.route)),(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{onClick:A,sx:{fontSize:"14px"},children:[(0,s.jsx)(g.Z,{sx:{minInlineSize:"unset",marginRight:"0.5rem"},children:"dark"===T?(0,s.jsx)(w.Z,{fontSize:"small"}):(0,s.jsx)(k.Z,{fontSize:"small"})}),(0,s.jsx)(p.Z,{children:"Theme"})]})})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,s.jsx)("div",{children:(0,s.jsx)(C.Z,{})}),(0,s.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,s.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(N.Z,{})})]}),(0,s.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,s.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,s.jsx)(b.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(D(),{src:z,alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full",unoptimized:!0})})}),(0,s.jsx)(b.Z,{sx:{px:2},children:(0,s.jsx)(c(),{href:"/",children:(0,s.jsx)(Z.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,s.jsx)(b.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,s.jsx)(u.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(x.Z,{nested:!0,children:(0,s.jsx)(u.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==O?void 0:null===(t=O.data)||void 0===t?void 0:t.map(e=>{let t=("/chat"===i||"/chat/"===i)&&n===e.conv_uid;return(0,s.jsx)(x.Z,{children:(0,s.jsx)(m.Z,{selected:t,variant:t?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(p.Z,{children:(0,s.jsxs)(c(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(v.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(P.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:t=>{t.preventDefault(),t.stopPropagation(),d.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,S.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await L(),"/chat"===i&&r.get("id")===e.conv_uid&&o.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(B.Z,{})})]})})})},e.conv_uid)})})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,s.jsx)("div",{}),(0,s.jsx)(b.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,s.jsxs)(u.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(x.Z,{nested:!0,children:(0,s.jsx)(u.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:R.map(e=>(0,s.jsx)(c(),{href:e.route,children:(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(g.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,s.jsx)(p.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{sx:{height:"2.5rem"},onClick:A,children:[(0,s.jsx)(g.Z,{children:"dark"===T?(0,s.jsx)(w.Z,{fontSize:"small"}):(0,s.jsx)(k.Z,{fontSize:"small"})}),(0,s.jsx)(p.Z,{children:"Theme"})]})})]})})]})]})})]})},O=i(29720),I=i(41287),L=i(38230);let H=(0,I.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...L.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...L.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var T=i(53794),F=i.n(T),R=i(54486),A=i.n(R);let J=0;function W(){"loading"!==n&&(n="loading",r=setTimeout(function(){A().start()},250))}function G(){J>0||(n="stop",clearTimeout(r),A().done())}if(F().events.on("routeChangeStart",W),F().events.on("routeChangeComplete",G),F().events.on("routeChangeError",G),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,i=Array(t),r=0;r{if((null==r?void 0:r.current)&&i){var e,t,n,s,l,a;null==r||null===(e=r.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(i),"light"===i?null==r||null===(n=r.current)||void 0===n||null===(s=n.classList)||void 0===s||s.remove("dark"):null==r||null===(l=r.current)||void 0===l||null===(a=l.classList)||void 0===a||a.remove("light")}},[r,i]),(0,s.jsxs)("div",{ref:r,className:"h-full",children:[(0,s.jsx)(K,{}),(0,s.jsx)(_.ZP,{children:t})]})}function ee(e){let{children:t}=e,{isContract:i,setIsContract:r}=(0,_.Cg)(),[n,a]=l.useState(!1);return(0,s.jsxs)(s.Fragment,{children:[i?(0,s.jsxs)("div",{className:"grid h-full w-screen grid-rows-1 grid-cols-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-rows-[60px,1fr] md:grid-cols-[1fr]",children:[(0,s.jsxs)("div",{className:"border-[var(--joy-palette-divider)] bg-[#282828] text-[#f4f4f4] border-b border-solid flex items-center px-3 justify-between",children:[(0,s.jsx)(C.Z,{className:"cursor-pointer",onClick:()=>{a(!0)}}),(0,s.jsxs)("div",{className:"flex items-center cursor-pointer",onClick:()=>{r(!i)},children:[(0,s.jsx)(V.Z,{style:{marginRight:"4px"}}),"Change Mode"]})]}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]}):(0,s.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,s.jsx)(E,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]}),(0,s.jsx)(Q,{title:"DB-GPT",position:"left",open:n,onClose:()=>a(!1),children:(0,s.jsx)(E,{})})]})}var et=function(e){let{children:t}=e;return(0,s.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,s.jsx)("body",{className:"h-full font-sans",children:(0,s.jsx)(O.Z,{theme:H,children:(0,s.jsx)(h.lL,{theme:H,defaultMode:"light",children:(0,s.jsx)($,{children:(0,s.jsx)("div",{className:"contents h-full",children:(0,s.jsx)(ee,{children:t})})})})})})})}},78915:function(e,t,i){"use strict";i.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return x}});var r=i(21628),n=i(24214),s=i(52040);let l=n.Z.create({baseURL:s.env.API_BASE_URL});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=i(84835);let o={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let i=t[e];"string"==typeof i&&(t[e]=i.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let i=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");i&&(e+="?".concat(i))}return l.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let i=c(t);return l.post("/api"+e,{body:i,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>l.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)}),x=(e,t)=>l.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[2180,780,272,8942,7518,5935,6316,8635,3191,2657,157,9253,5769,1744],function(){return e(e.s=91909)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{72431:function(){},91909:function(e,t,i){Promise.resolve().then(i.bind(i,51689))},57931:function(e,t,i){"use strict";i.d(t,{ZP:function(){return c},Cg:function(){return a}});var r=i(9268),n=i(89081),s=i(78915),l=i(86006);let[a,o]=function(){let e=l.createContext(void 0);return[function(){let t=l.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,[i,a]=l.useState(!1),{run:c,data:d,refresh:h}=(0,n.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,r.jsx)(o,{value:{isContract:i,dialogueList:d,setIsContract:a,queryDialogueList:c,refreshDialogList:h},children:t})}},51689:function(e,t,i){"use strict";let r,n;i.r(t),i.d(t,{default:function(){return et}});var s=i(9268);i(97402),i(23517);var l=i(86006),a=i(56008),o=i(35846),c=i.n(o),d=i(79914),h=i(78635),u=i(18818),x=i(64521),f=i(68113),m=i(70092),p=i(64579),v=i(22046),j=i(53047),g=i(62921),b=i(90545),Z=i(53113),y=i(40020),w=i(11515),k=i(84892),C=i(601),N=i(1301),P=i(98703),_=i(57931),B=i(66664),S=i(78915),z=i(76394),D=i.n(z),E=()=>{var e,t;let i=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),o=(0,a.useRouter)(),[z,E]=(0,l.useState)("/LOGO_1.png"),{dialogueList:O,queryDialogueList:I,refreshDialogList:L,isContract:H}=(0,_.Cg)(),{mode:T,setMode:F}=(0,h.tv)(),R=(0,l.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,s.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===i}],[i]),A=()=>{"light"===T?F("dark"):F("light")};return(0,l.useEffect)(()=>{"light"===T?E("/LOGO_1.png"):E("/WHITE_LOGO.png")},[T]),(0,l.useEffect)(()=>{(async()=>{await I()})()},[]),H?(0,s.jsxs)(u.Z,{className:"flex flex-col h-full",children:[(0,s.jsxs)(x.Z,{nested:!0,className:"h-full flex-1 overflow-auto",children:[(0,s.jsx)(f.Z,{children:"Dialogue"}),(0,s.jsx)(u.Z,{children:null==O?void 0:null===(e=O.data)||void 0===e?void 0:e.map(e=>{let t=("/chat"===i||"/chat/"===i)&&n===e.conv_uid;return(0,s.jsx)(x.Z,{children:(0,s.jsx)(m.Z,{selected:t,variant:t?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(p.Z,{children:(0,s.jsxs)(c(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(v.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(P.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:t=>{t.preventDefault(),t.stopPropagation(),d.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",zIndex:1002,centered:!0,async onOk(){await (0,S.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await L(),"/chat"===i&&r.get("id")===e.conv_uid&&o.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(B.Z,{})})]})})})},e.conv_uid)})})]}),(0,s.jsxs)(x.Z,{nested:!0,className:"h-32",sx:{borderTop:"1px solid",borderColor:"divider"},children:[(0,s.jsx)(f.Z,{children:"Others"}),(0,s.jsxs)(u.Z,{children:[R.map(e=>(0,s.jsx)(c(),{href:e.route,children:(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{color:"neutral",sx:{height:"2.5rem",fontSize:"14px"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(g.Z,{sx:{color:e.active?"inherit":"neutral.500",minInlineSize:"unset",marginRight:"0.5rem"},children:e.icon}),(0,s.jsx)(p.Z,{children:e.label})]})})},e.route)),(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{onClick:A,sx:{fontSize:"14px"},children:[(0,s.jsx)(g.Z,{sx:{minInlineSize:"unset",marginRight:"0.5rem"},children:"dark"===T?(0,s.jsx)(w.Z,{fontSize:"small"}):(0,s.jsx)(k.Z,{fontSize:"small"})}),(0,s.jsx)(p.Z,{children:"Theme"})]})})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,s.jsx)("div",{children:(0,s.jsx)(C.Z,{})}),(0,s.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,s.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(N.Z,{})})]}),(0,s.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,s.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,s.jsx)(b.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(D(),{src:z,alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full",unoptimized:!0})})}),(0,s.jsx)(b.Z,{sx:{px:2},children:(0,s.jsx)(c(),{href:"/",children:(0,s.jsx)(Z.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,s.jsx)(b.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,s.jsx)(u.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(x.Z,{nested:!0,children:(0,s.jsx)(u.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==O?void 0:null===(t=O.data)||void 0===t?void 0:t.map(e=>{let t=("/chat"===i||"/chat/"===i)&&n===e.conv_uid;return(0,s.jsx)(x.Z,{children:(0,s.jsx)(m.Z,{selected:t,variant:t?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(p.Z,{children:(0,s.jsxs)(c(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(v.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(P.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:t=>{t.preventDefault(),t.stopPropagation(),d.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,S.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await L(),"/chat"===i&&r.get("id")===e.conv_uid&&o.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(B.Z,{})})]})})})},e.conv_uid)})})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,s.jsx)("div",{}),(0,s.jsx)(b.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,s.jsxs)(u.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(x.Z,{nested:!0,children:(0,s.jsx)(u.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:R.map(e=>(0,s.jsx)(c(),{href:e.route,children:(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(g.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,s.jsx)(p.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{sx:{height:"2.5rem"},onClick:A,children:[(0,s.jsx)(g.Z,{children:"dark"===T?(0,s.jsx)(w.Z,{fontSize:"small"}):(0,s.jsx)(k.Z,{fontSize:"small"})}),(0,s.jsx)(p.Z,{children:"Theme"})]})})]})})]})]})})]})},O=i(29720),I=i(41287),L=i(38230);let H=(0,I.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...L.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...L.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var T=i(53794),F=i.n(T),R=i(54486),A=i.n(R);let J=0;function W(){"loading"!==n&&(n="loading",r=setTimeout(function(){A().start()},250))}function G(){J>0||(n="stop",clearTimeout(r),A().done())}if(F().events.on("routeChangeStart",W),F().events.on("routeChangeComplete",G),F().events.on("routeChangeError",G),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,i=Array(t),r=0;r{if((null==r?void 0:r.current)&&i){var e,t,n,s,l,a;null==r||null===(e=r.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(i),"light"===i?null==r||null===(n=r.current)||void 0===n||null===(s=n.classList)||void 0===s||s.remove("dark"):null==r||null===(l=r.current)||void 0===l||null===(a=l.classList)||void 0===a||a.remove("light")}},[r,i]),(0,s.jsxs)("div",{ref:r,className:"h-full",children:[(0,s.jsx)(K,{}),(0,s.jsx)(_.ZP,{children:t})]})}function ee(e){let{children:t}=e,{isContract:i,setIsContract:r}=(0,_.Cg)(),[n,a]=l.useState(!1);return(0,s.jsxs)(s.Fragment,{children:[i?(0,s.jsxs)("div",{className:"grid h-full w-screen grid-rows-1 grid-cols-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-rows-[60px,1fr] md:grid-cols-[1fr]",children:[(0,s.jsxs)("div",{className:"border-[var(--joy-palette-divider)] bg-[#282828] text-[#f4f4f4] border-b border-solid flex items-center px-3 justify-between",children:[(0,s.jsx)(C.Z,{className:"cursor-pointer",onClick:()=>{a(!0)}}),(0,s.jsxs)("div",{className:"flex items-center cursor-pointer",onClick:()=>{r(!i)},children:[(0,s.jsx)(V.Z,{style:{marginRight:"4px"}}),"Change Mode"]})]}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]}):(0,s.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,s.jsx)(E,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]}),(0,s.jsx)(Q,{title:"DB-GPT",position:"left",open:n,onClose:()=>a(!1),children:(0,s.jsx)(E,{})})]})}var et=function(e){let{children:t}=e;return(0,s.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,s.jsx)("body",{className:"h-full font-sans",children:(0,s.jsx)(O.Z,{theme:H,children:(0,s.jsx)(h.lL,{theme:H,defaultMode:"light",children:(0,s.jsx)($,{children:(0,s.jsx)("div",{className:"contents h-full",children:(0,s.jsx)(ee,{children:t})})})})})})})}},78915:function(e,t,i){"use strict";i.d(t,{Tk:function(){return d},Kw:function(){return h},PR:function(){return u},Ej:function(){return x}});var r=i(21628),n=i(24214),s=i(52040);let l=n.Z.create({baseURL:s.env.API_BASE_URL});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=i(84835);let o={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let i=t[e];"string"==typeof i&&(t[e]=i.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let i=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");i&&(e+="?".concat(i))}return l.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>{let i=c(t);return l.post("/api"+e,{body:i,headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},u=(e,t)=>l.post(e,t,{headers:o}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)}),x=(e,t)=>l.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[2180,877,5230,8942,7518,5935,9081,6394,8635,2657,7016,9253,5769,1744],function(){return e(e.s=91909)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-2bc8e3ff55247c96.js b/pilot/server/static/_next/static/chunks/app/layout-2bc8e3ff55247c96.js deleted file mode 100644 index 900f39d92..000000000 --- a/pilot/server/static/_next/static/chunks/app/layout-2bc8e3ff55247c96.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{72431:function(){},91909:function(e,t,i){Promise.resolve().then(i.bind(i,51689))},57931:function(e,t,i){"use strict";i.d(t,{ZP:function(){return c},Cg:function(){return a}});var r=i(9268),n=i(89081),s=i(78915),l=i(86006);let[a,o]=function(){let e=l.createContext(void 0);return[function(){let t=l.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var c=e=>{let{children:t}=e,[i,a]=l.useState(!1),{run:c,data:d,refresh:h}=(0,n.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,r.jsx)(o,{value:{isContract:i,dialogueList:d,setIsContract:a,queryDialogueList:c,refreshDialogList:h},children:t})}},51689:function(e,t,i){"use strict";let r,n;i.r(t),i.d(t,{default:function(){return et}});var s=i(9268);i(97402),i(23517);var l=i(86006),a=i(56008),o=i(35846),c=i.n(o),d=i(79914),h=i(78635),u=i(18818),x=i(64521),f=i(68113),m=i(70092),p=i(64579),v=i(22046),j=i(53047),g=i(62921),b=i(90545),Z=i(53113),y=i(40020),w=i(11515),k=i(84892),C=i(601),N=i(1301),P=i(98703),_=i(57931),B=i(66664),S=i(78915),z=i(76394),D=i.n(z),E=()=>{var e,t;let i=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),o=(0,a.useRouter)(),[z,E]=(0,l.useState)("/LOGO_1.png"),{dialogueList:O,queryDialogueList:H,refreshDialogList:I,isContract:L}=(0,_.Cg)(),{mode:T,setMode:F}=(0,h.tv)(),R=(0,l.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,s.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===i}],[i]),A=()=>{"light"===T?F("dark"):F("light")};return(0,l.useEffect)(()=>{"light"===T?E("/LOGO_1.png"):E("/WHITE_LOGO.png")},[T]),(0,l.useEffect)(()=>{(async()=>{await H()})()},[]),L?(0,s.jsxs)(u.Z,{className:"flex flex-col h-full",children:[(0,s.jsxs)(x.Z,{nested:!0,className:"h-full flex-1 overflow-auto",children:[(0,s.jsx)(f.Z,{children:"Dialogue"}),(0,s.jsx)(u.Z,{children:null==O?void 0:null===(e=O.data)||void 0===e?void 0:e.map(e=>{let t=("/chat"===i||"/chat/"===i)&&n===e.conv_uid;return(0,s.jsx)(x.Z,{children:(0,s.jsx)(m.Z,{selected:t,variant:t?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(p.Z,{children:(0,s.jsxs)(c(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(v.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(P.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:t=>{t.preventDefault(),t.stopPropagation(),d.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",zIndex:1002,centered:!0,async onOk(){await (0,S.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await I(),"/chat"===i&&r.get("id")===e.conv_uid&&o.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(B.Z,{})})]})})})},e.conv_uid)})})]}),(0,s.jsxs)(x.Z,{nested:!0,className:"h-32",sx:{borderTop:"1px solid",borderColor:"divider"},children:[(0,s.jsx)(f.Z,{children:"Others"}),(0,s.jsxs)(u.Z,{children:[R.map(e=>(0,s.jsx)(c(),{href:e.route,children:(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{color:"neutral",sx:{height:"2.5rem",fontSize:"14px"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(g.Z,{sx:{color:e.active?"inherit":"neutral.500",minInlineSize:"unset",marginRight:"0.5rem"},children:e.icon}),(0,s.jsx)(p.Z,{children:e.label})]})})},e.route)),(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{onClick:A,sx:{fontSize:"14px"},children:[(0,s.jsx)(g.Z,{sx:{minInlineSize:"unset",marginRight:"0.5rem"},children:"dark"===T?(0,s.jsx)(w.Z,{fontSize:"small"}):(0,s.jsx)(k.Z,{fontSize:"small"})}),(0,s.jsx)(p.Z,{children:"Theme"})]})})]})]})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,s.jsx)("div",{children:(0,s.jsx)(C.Z,{})}),(0,s.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,s.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(N.Z,{})})]}),(0,s.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,s.jsxs)(b.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,s.jsx)(b.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(D(),{src:z,alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full",unoptimized:!0})})}),(0,s.jsx)(b.Z,{sx:{px:2},children:(0,s.jsx)(c(),{href:"/",children:(0,s.jsx)(Z.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,s.jsx)(b.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,s.jsx)(u.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(x.Z,{nested:!0,children:(0,s.jsx)(u.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==O?void 0:null===(t=O.data)||void 0===t?void 0:t.map(e=>{let t=("/chat"===i||"/chat/"===i)&&n===e.conv_uid;return(0,s.jsx)(x.Z,{children:(0,s.jsx)(m.Z,{selected:t,variant:t?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(p.Z,{children:(0,s.jsxs)(c(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(v.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(P.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:t=>{t.preventDefault(),t.stopPropagation(),d.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,S.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await I(),"/chat"===i&&r.get("id")===e.conv_uid&&o.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(B.Z,{})})]})})})},e.conv_uid)})})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,s.jsx)("div",{}),(0,s.jsx)(b.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,s.jsxs)(u.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(x.Z,{nested:!0,children:(0,s.jsx)(u.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:R.map(e=>(0,s.jsx)(c(),{href:e.route,children:(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(g.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,s.jsx)(p.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(x.Z,{children:(0,s.jsxs)(m.Z,{sx:{height:"2.5rem"},onClick:A,children:[(0,s.jsx)(g.Z,{children:"dark"===T?(0,s.jsx)(w.Z,{fontSize:"small"}):(0,s.jsx)(k.Z,{fontSize:"small"})}),(0,s.jsx)(p.Z,{children:"Theme"})]})})]})})]})]})})]})},O=i(29720),H=i(41287),I=i(38230);let L=(0,H.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...I.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...I.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var T=i(53794),F=i.n(T),R=i(54486),A=i.n(R);let J=0;function W(){"loading"!==n&&(n="loading",r=setTimeout(function(){A().start()},250))}function G(){J>0||(n="stop",clearTimeout(r),A().done())}if(F().events.on("routeChangeStart",W),F().events.on("routeChangeComplete",G),F().events.on("routeChangeError",G),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,i=Array(t),r=0;r{if((null==r?void 0:r.current)&&i){var e,t,n,s,l,a;null==r||null===(e=r.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(i),"light"===i?null==r||null===(n=r.current)||void 0===n||null===(s=n.classList)||void 0===s||s.remove("dark"):null==r||null===(l=r.current)||void 0===l||null===(a=l.classList)||void 0===a||a.remove("light")}},[r,i]),(0,s.jsxs)("div",{ref:r,className:"h-full",children:[(0,s.jsx)(K,{}),(0,s.jsx)(_.ZP,{children:t})]})}function ee(e){let{children:t}=e,{isContract:i,setIsContract:r}=(0,_.Cg)(),[n,a]=l.useState(!1);return(0,s.jsxs)(s.Fragment,{children:[i?(0,s.jsxs)("div",{className:"grid h-full w-screen grid-rows-1 grid-cols-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-rows-[60px,1fr] md:grid-cols-[1fr]",children:[(0,s.jsxs)("div",{className:"border-[var(--joy-palette-divider)] bg-[#282828] text-[#f4f4f4] border-b border-solid flex items-center px-3 justify-between",children:[(0,s.jsx)(C.Z,{className:"cursor-pointer",onClick:()=>{a(!0)}}),(0,s.jsxs)("div",{className:"flex items-center cursor-pointer",onClick:()=>{r(!i)},children:[(0,s.jsx)(V.Z,{style:{marginRight:"4px"}}),"Change Mode"]})]}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]}):(0,s.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,s.jsx)(E,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]}),(0,s.jsx)(Q,{title:"DB-GPT",position:"left",open:n,onClose:()=>a(!1),children:(0,s.jsx)(E,{})})]})}var et=function(e){let{children:t}=e;return(0,s.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,s.jsx)("body",{className:"h-full font-sans",children:(0,s.jsx)(O.Z,{theme:L,children:(0,s.jsx)(h.lL,{theme:L,defaultMode:"light",children:(0,s.jsx)($,{children:(0,s.jsx)("div",{className:"contents h-full",children:(0,s.jsx)(ee,{children:t})})})})})})})}},78915:function(e,t,i){"use strict";i.d(t,{Tk:function(){return c},Kw:function(){return d},PR:function(){return h},Ej:function(){return u}});var r=i(21628),n=i(24214);let s=n.Z.create({baseURL:"http://127.0.0.1:5000"});s.defaults.timeout=1e4,s.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var l=i(84835);let a={"content-type":"application/json"},o=e=>{if(!(0,l.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let i=t[e];"string"==typeof i&&(t[e]=i.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let i=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");i&&(e+="?".concat(i))}return s.get("/api"+e,{headers:a}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let i=o(t);return s.post("/api"+e,{body:i,headers:a}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},h=(e,t)=>s.post(e,t,{headers:a}).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)}),u=(e,t)=>s.post(e,t).then(e=>e).catch(e=>{r.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[2180,3933,272,8942,7518,5935,6316,8635,3191,2657,157,9253,5769,1744],function(){return e(e.s=91909)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/layout-7ae5a2339fb758d0.js b/pilot/server/static/_next/static/chunks/app/layout-7ae5a2339fb758d0.js deleted file mode 100644 index d0a75621a..000000000 --- a/pilot/server/static/_next/static/chunks/app/layout-7ae5a2339fb758d0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{72431:function(){},91909:function(e,t,r){Promise.resolve().then(r.bind(r,50902))},57931:function(e,t,r){"use strict";r.d(t,{ZP:function(){return d},Cg:function(){return a}});var n=r(9268),i=r(89081),s=r(78915),l=r(86006);let[a,o]=function(){let e=l.createContext(void 0);return[function(){let t=l.useContext(e);if(void 0===t)throw Error("useCtx must be inside a Provider with a value");return t},e.Provider]}();var d=e=>{let{children:t}=e,{run:r,data:l,refresh:a}=(0,i.Z)(async()=>await (0,s.Tk)("/v1/chat/dialogue/list"),{manual:!0});return(0,n.jsx)(o,{value:{dialogueList:l,queryDialogueList:r,refreshDialogList:a},children:t})}},50902:function(e,t,r){"use strict";let n,i;r.r(t),r.d(t,{default:function(){return M}});var s=r(9268);r(97402),r(23517);var l=r(86006),a=r(56008),o=r(35846),d=r.n(o),c=r(20837),u=r(78635),f=r(90545),h=r(53113),x=r(18818),m=r(4882),p=r(70092),v=r(64579),g=r(22046),j=r(53047),b=r(62921),y=r(40020),Z=r(11515),w=r(84892),k=r(601),C=r(1301),B=r(98703),P=r(57931),N=r(66664),_=r(78915),E=r(76394),D=r.n(E),S=()=>{var e;let t=(0,a.usePathname)(),r=(0,a.useSearchParams)(),n=r.get("id"),i=(0,a.useRouter)(),[o,E]=(0,l.useState)("/LOGO_1.png"),{dialogueList:S,queryDialogueList:L,refreshDialogList:O}=(0,P.Cg)(),{mode:z,setMode:H}=(0,u.tv)(),F=(0,l.useMemo)(()=>[{label:"Knowledge Space",route:"/datastores",icon:(0,s.jsx)(y.Z,{fontSize:"small"}),active:"/datastores"===t}],[t]);return(0,l.useEffect)(()=>{"light"===z?E("/LOGO_1.png"):E("/WHITE_LOGO.png")},[z]),(0,l.useEffect)(()=>{(async()=>{await L()})()},[]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("nav",{className:"flex h-12 items-center justify-between border-b px-4 dark:border-gray-800 dark:bg-gray-800/70 md:hidden",children:[(0,s.jsx)("div",{children:(0,s.jsx)(k.Z,{})}),(0,s.jsx)("span",{className:"truncate px-4",children:"New Chat"}),(0,s.jsx)("a",{href:"",className:"-mr-3 flex h-9 w-9 shrink-0 items-center justify-center",children:(0,s.jsx)(C.Z,{})})]}),(0,s.jsx)("nav",{className:"grid max-h-screen h-full max-md:hidden",children:(0,s.jsxs)(f.Z,{sx:{display:"flex",flexDirection:"column",borderRight:"1px solid",borderColor:"divider",maxHeight:"100vh",position:"sticky",left:"0px",top:"0px",overflow:"hidden"},children:[(0,s.jsx)(f.Z,{sx:{p:2,gap:2,display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)(D(),{src:o,alt:"DB-GPT",width:633,height:157,className:"w-full max-w-full",unoptimized:!0})})}),(0,s.jsx)(f.Z,{sx:{px:2},children:(0,s.jsx)(d(),{href:"/",children:(0,s.jsx)(h.Z,{color:"primary",className:"w-full bg-gradient-to-r from-[#31afff] to-[#1677ff] dark:bg-gradient-to-r dark:from-[#6a6a6a] dark:to-[#80868f]",style:{color:"#fff"},children:"+ New Chat"})})}),(0,s.jsx)(f.Z,{sx:{p:2,display:{xs:"none",sm:"initial"},maxHeight:"100%",overflow:"auto"},children:(0,s.jsx)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"},gap:"4px"},children:null==S?void 0:null===(e=S.data)||void 0===e?void 0:e.map(e=>{let l=("/chat"===t||"/chat/"===t)&&n===e.conv_uid;return(0,s.jsx)(m.Z,{children:(0,s.jsx)(p.Z,{selected:l,variant:l?"soft":"plain",sx:{"&:hover .del-btn":{visibility:"visible"}},children:(0,s.jsx)(v.Z,{children:(0,s.jsxs)(d(),{href:"/chat?id=".concat(e.conv_uid,"&scene=").concat(null==e?void 0:e.chat_mode),className:"flex items-center justify-between",children:[(0,s.jsxs)(g.ZP,{fontSize:14,noWrap:!0,children:[(0,s.jsx)(B.Z,{style:{marginRight:"0.5rem"}}),(null==e?void 0:e.user_name)||(null==e?void 0:e.user_input)||"undefined"]}),(0,s.jsx)(j.ZP,{color:"neutral",variant:"plain",size:"sm",onClick:n=>{n.preventDefault(),n.stopPropagation(),c.Z.confirm({title:"Delete Chat",content:"Are you sure delete this chat?",width:"276px",centered:!0,async onOk(){await (0,_.Kw)("/v1/chat/dialogue/delete?con_uid=".concat(e.conv_uid)),await O(),"/chat"===t&&r.get("id")===e.conv_uid&&i.push("/")}})},className:"del-btn invisible",children:(0,s.jsx)(N.Z,{})})]})})})},e.conv_uid)})})})})}),(0,s.jsxs)("div",{className:"flex flex-col justify-between flex-1",children:[(0,s.jsx)("div",{}),(0,s.jsx)(f.Z,{sx:{p:2,pt:3,pb:6,borderTop:"1px solid",borderColor:"divider",display:{xs:"none",sm:"initial"},position:"sticky",bottom:0,zIndex:100,background:"var(--joy-palette-background-body)"},children:(0,s.jsxs)(x.Z,{size:"sm",sx:{"--ListItem-radius":"8px"},children:[(0,s.jsx)(m.Z,{nested:!0,children:(0,s.jsx)(x.Z,{size:"sm","aria-labelledby":"nav-list-browse",sx:{"& .JoyListItemButton-root":{p:"8px"}},children:F.map(e=>(0,s.jsx)(d(),{href:e.route,children:(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{color:"neutral",sx:{marginBottom:1,height:"2.5rem"},selected:e.active,variant:e.active?"soft":"plain",children:[(0,s.jsx)(b.Z,{sx:{color:e.active?"inherit":"neutral.500"},children:e.icon}),(0,s.jsx)(v.Z,{children:e.label})]})})},e.route))})}),(0,s.jsx)(m.Z,{children:(0,s.jsxs)(p.Z,{sx:{height:"2.5rem"},onClick:()=>{"light"===z?H("dark"):H("light")},children:[(0,s.jsx)(b.Z,{children:"dark"===z?(0,s.jsx)(Z.Z,{fontSize:"small"}):(0,s.jsx)(w.Z,{fontSize:"small"})}),(0,s.jsx)(v.Z,{children:"Theme"})]})})]})})]})]})})]})},L=r(29720),O=r(41287),z=r(38230);let H=(0,O.Z)({colorSchemes:{light:{palette:{mode:"dark",primary:{...z.Z.grey,solidBg:"#e6f4ff",solidColor:"#1677ff",solidHoverBg:"#e6f4ff"},neutral:{plainColor:"#4d4d4d",plainHoverColor:"#131318",plainHoverBg:"#EBEBEF",plainActiveBg:"#D8D8DF",plainDisabledColor:"#B9B9C6"},background:{body:"#fff",surface:"#fff"},text:{primary:"#505050"}}},dark:{palette:{mode:"light",primary:{...z.Z.grey,softBg:"#353539",softHoverBg:"#35353978",softDisabledBg:"#353539",solidBg:"#51525beb",solidHoverBg:"#51525beb"},neutral:{plainColor:"#D8D8DF",plainHoverColor:"#F7F7F8",plainHoverBg:"#353539",plainActiveBg:"#434356",plainDisabledColor:"#434356",outlinedBorder:"#353539",outlinedHoverBorder:"#454651"},text:{primary:"#EBEBEF"},background:{body:"#212121",surface:"#51525beb"}}}},fontFamily:{body:"Josefin Sans, sans-serif",display:"Josefin Sans, sans-serif"},typography:{display1:{background:"linear-gradient(-30deg, var(--joy-palette-primary-900), var(--joy-palette-primary-400))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent"}},zIndex:{modal:1001}});var F=r(53794),I=r.n(F),T=r(54486),R=r.n(T);let A=0;function J(){"loading"!==i&&(i="loading",n=setTimeout(function(){R().start()},250))}function G(){A>0||(i="stop",clearTimeout(n),R().done())}if(I().events.on("routeChangeStart",J),I().events.on("routeChangeComplete",G),I().events.on("routeChangeError",G),"function"==typeof(null==window?void 0:window.fetch)){let e=window.fetch;window.fetch=async function(){for(var t=arguments.length,r=Array(t),n=0;n{if((null==n?void 0:n.current)&&r){var e,t,i,s,l,a;null==n||null===(e=n.current)||void 0===e||null===(t=e.classList)||void 0===t||t.add(r),"light"===r?null==n||null===(i=n.current)||void 0===i||null===(s=i.classList)||void 0===s||s.remove("dark"):null==n||null===(l=n.current)||void 0===l||null===(a=l.classList)||void 0===a||a.remove("light")}},[n,r]),(0,s.jsxs)("div",{ref:n,className:"h-full",children:[(0,s.jsx)(W,{}),(0,s.jsx)(P.ZP,{children:(0,s.jsx)("div",{className:"contents h-full",children:(0,s.jsxs)("div",{className:"grid h-full w-screen grid-cols-1 grid-rows-[auto,1fr] overflow-hidden text-smd dark:text-gray-300 md:grid-cols-[280px,1fr] md:grid-rows-[1fr]",children:[(0,s.jsx)(S,{}),(0,s.jsx)("div",{className:"relative min-h-0 min-w-0",children:t})]})})})]})}var M=function(e){let{children:t}=e;return(0,s.jsx)("html",{lang:"en",className:"h-full font-sans",children:(0,s.jsx)("body",{className:"h-full font-sans",children:(0,s.jsx)(L.Z,{theme:H,children:(0,s.jsx)(u.lL,{theme:H,defaultMode:"light",children:(0,s.jsx)(K,{children:t})})})})})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return c},Kw:function(){return u},PR:function(){return f},Ej:function(){return h}});var n=r(21628),i=r(24214),s=r(52040);let l=i.Z.create({baseURL:s.env.API_BASE_URL});l.defaults.timeout=1e4,l.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let o={"content-type":"application/json"},d=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return l.get("/api"+e,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let r=d(t);return l.post("/api"+e,{body:r,headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},f=(e,t)=>(d(t),l.post(e,t,{headers:o}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),h=(e,t)=>l.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},97402:function(){},23517:function(){}},function(e){e.O(0,[180,838,60,759,409,316,946,394,751,256,253,769,744],function(){return e(e.s=91909)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-051666e662d06200.js b/pilot/server/static/_next/static/chunks/app/page-051666e662d06200.js new file mode 100644 index 000000000..459fa9805 --- /dev/null +++ b/pilot/server/static/_next/static/chunks/app/page-051666e662d06200.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{50318:function(i,e,t){"use strict";t.d(e,{Z:function(){return y}});var r=t(46750),n=t(40431),a=t(86006),o=t(89791),l=t(53832),s=t(47562),c=t(50645),d=t(88930),v=t(18587);function u(i){return(0,v.d6)("MuiDivider",i)}(0,v.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var h=t(326),m=t(9268);let p=["className","children","component","inset","orientation","role","slots","slotProps"],g=i=>{let{orientation:e,inset:t}=i,r={root:["root",e,t&&`inset${(0,l.Z)(t)}`]};return(0,s.Z)(r,u,{})},f=(0,c.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,e)=>e.root})(({theme:i,ownerState:e})=>(0,n.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===e.inset&&{"--_Divider-inset":"0px"},"context"===e.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===e.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===e.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===e.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===e.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===e.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===e.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===e.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)"})),x=a.forwardRef(function(i,e){let t=(0,d.Z)({props:i,name:"JoyDivider"}),{className:a,children:l,component:s=null!=l?"div":"hr",inset:c,orientation:v="horizontal",role:u="hr"!==s?"separator":void 0,slots:x={},slotProps:y={}}=t,b=(0,r.Z)(t,p),j=(0,n.Z)({},t,{inset:c,role:u,orientation:v,component:s}),D=g(j),k=(0,n.Z)({},b,{component:s,slots:x,slotProps:y}),[w,Z]=(0,h.Z)("root",{ref:e,className:(0,o.Z)(D.root,a),elementType:f,externalForwardedProps:k,ownerState:j,additionalProps:(0,n.Z)({as:s,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"})});return(0,m.jsx)(w,(0,n.Z)({},Z,{children:l}))});x.muiName="Divider";var y=x},20736:function(i,e,t){Promise.resolve().then(t.bind(t,93768))},93768:function(i,e,t){"use strict";t.r(e);var r=t(9268),n=t(89081),a=t(86006),o=t(50318),l=t(90545),s=t(77614),c=t(53113),d=t(35086),v=t(53047),u=t(54842),h=t(67830),m=t(19700),p=t(92391),g=t(78915),f=t(56008),x=t(76394),y=t.n(x);e.default=function(){var i;let e=p.z.object({query:p.z.string().min(1)}),t=(0,f.useRouter)(),[x,b]=(0,a.useState)(!1),j=(0,m.cI)({resolver:(0,h.F)(e),defaultValues:{}}),{data:D}=(0,n.Z)(async()=>await (0,g.Kw)("/v1/chat/dialogue/scenes")),k=async i=>{let{query:e}=i;try{var r,n;b(!0),j.reset();let i=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(e))}catch(i){}finally{b(!1)}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6",children:[(0,r.jsx)("div",{className:"my-0 mx-auto",children:(0,r.jsx)(y(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full",unoptimized:!0})}),(0,r.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,r.jsxs)("div",{className:"lg:col-span-3",children:[(0,r.jsx)(o.Z,{className:"text-[#878c93]",children:"Quick Start"}),(0,r.jsx)(l.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(s.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(s.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==D?void 0:null===(i=D.data)||void 0===i?void 0:i.map(i=>(0,r.jsx)(c.Z,{disabled:null==i?void 0:i.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var e,r;let n=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:i.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.conv_uid)&&t.push("/chat?id=".concat(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.conv_uid,"&scene=").concat(i.chat_scene))},children:i.scene_name},i.chat_scene))})]})}),(0,r.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,r.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:i=>{j.handleSubmit(k)(i)},children:(0,r.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,r.jsx)(v.ZP,{type:"submit",disabled:x,children:(0,r.jsx)(u.Z,{})}),...j.register("query")})})})]})})}},78915:function(i,e,t){"use strict";t.d(e,{Tk:function(){return d},Kw:function(){return v},PR:function(){return u},Ej:function(){return h}});var r=t(21628),n=t(24214),a=t(52040);let o=n.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(i=>i.data,i=>Promise.reject(i));var l=t(84835);let s={"content-type":"application/json"},c=i=>{if(!(0,l.isPlainObject)(i))return JSON.stringify(i);let e={...i};for(let i in e){let t=e[i];"string"==typeof t&&(e[i]=t.trim())}return JSON.stringify(e)},d=(i,e)=>{if(e){let t=Object.keys(e).filter(i=>void 0!==e[i]&&""!==e[i]).map(i=>"".concat(i,"=").concat(e[i])).join("&");t&&(i+="?".concat(t))}return o.get("/api"+i,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},v=(i,e)=>{let t=c(e);return o.post("/api"+i,{body:t,headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},u=(i,e)=>o.post(i,e,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)}),h=(i,e)=>o.post(i,e).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})}},function(i){i.O(0,[2180,877,5230,9081,5086,6394,4341,9253,5769,1744],function(){return i(i.s=20736)}),_N_E=i.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-116b5a30ac88ed73.js b/pilot/server/static/_next/static/chunks/app/page-116b5a30ac88ed73.js deleted file mode 100644 index d19c69ae9..000000000 --- a/pilot/server/static/_next/static/chunks/app/page-116b5a30ac88ed73.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{50318:function(i,e,t){"use strict";t.d(e,{Z:function(){return y}});var r=t(46750),n=t(40431),a=t(86006),o=t(89791),l=t(53832),s=t(47562),c=t(50645),d=t(88930),v=t(18587);function u(i){return(0,v.d6)("MuiDivider",i)}(0,v.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var h=t(326),m=t(9268);let p=["className","children","component","inset","orientation","role","slots","slotProps"],g=i=>{let{orientation:e,inset:t}=i,r={root:["root",e,t&&`inset${(0,l.Z)(t)}`]};return(0,s.Z)(r,u,{})},f=(0,c.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,e)=>e.root})(({theme:i,ownerState:e})=>(0,n.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===e.inset&&{"--_Divider-inset":"0px"},"context"===e.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===e.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===e.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===e.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===e.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===e.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===e.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===e.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)"})),x=a.forwardRef(function(i,e){let t=(0,d.Z)({props:i,name:"JoyDivider"}),{className:a,children:l,component:s=null!=l?"div":"hr",inset:c,orientation:v="horizontal",role:u="hr"!==s?"separator":void 0,slots:x={},slotProps:y={}}=t,b=(0,r.Z)(t,p),j=(0,n.Z)({},t,{inset:c,role:u,orientation:v,component:s}),D=g(j),k=(0,n.Z)({},b,{component:s,slots:x,slotProps:y}),[w,Z]=(0,h.Z)("root",{ref:e,className:(0,o.Z)(D.root,a),elementType:f,externalForwardedProps:k,ownerState:j,additionalProps:(0,n.Z)({as:s,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"})});return(0,m.jsx)(w,(0,n.Z)({},Z,{children:l}))});x.muiName="Divider";var y=x},20736:function(i,e,t){Promise.resolve().then(t.bind(t,93768))},93768:function(i,e,t){"use strict";t.r(e);var r=t(9268),n=t(89081),a=t(86006),o=t(50318),l=t(90545),s=t(77614),c=t(53113),d=t(35086),v=t(53047),u=t(54842),h=t(67830),m=t(19700),p=t(92391),g=t(78915),f=t(56008),x=t(76394),y=t.n(x);e.default=function(){var i;let e=p.z.object({query:p.z.string().min(1)}),t=(0,f.useRouter)(),[x,b]=(0,a.useState)(!1),j=(0,m.cI)({resolver:(0,h.F)(e),defaultValues:{}}),{data:D}=(0,n.Z)(async()=>await (0,g.Kw)("/v1/chat/dialogue/scenes")),k=async i=>{let{query:e}=i;try{var r,n;b(!0),j.reset();let i=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(e))}catch(i){}finally{b(!1)}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6",children:[(0,r.jsx)("div",{className:"my-0 mx-auto",children:(0,r.jsx)(y(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full",unoptimized:!0})}),(0,r.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,r.jsxs)("div",{className:"lg:col-span-3",children:[(0,r.jsx)(o.Z,{className:"text-[#878c93]",children:"Quick Start"}),(0,r.jsx)(l.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(s.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(s.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==D?void 0:null===(i=D.data)||void 0===i?void 0:i.map(i=>(0,r.jsx)(c.Z,{disabled:null==i?void 0:i.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var e,r;let n=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:i.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.conv_uid)&&t.push("/chat?id=".concat(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.conv_uid,"&scene=").concat(i.chat_scene))},children:i.scene_name},i.chat_scene))})]})}),(0,r.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,r.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:i=>{j.handleSubmit(k)(i)},children:(0,r.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,r.jsx)(v.ZP,{type:"submit",disabled:x,children:(0,r.jsx)(u.Z,{})}),...j.register("query")})})})]})})}},78915:function(i,e,t){"use strict";t.d(e,{Tk:function(){return d},Kw:function(){return v},PR:function(){return u},Ej:function(){return h}});var r=t(21628),n=t(24214),a=t(52040);let o=n.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(i=>i.data,i=>Promise.reject(i));var l=t(84835);let s={"content-type":"application/json"},c=i=>{if(!(0,l.isPlainObject)(i))return JSON.stringify(i);let e={...i};for(let i in e){let t=e[i];"string"==typeof t&&(e[i]=t.trim())}return JSON.stringify(e)},d=(i,e)=>{if(e){let t=Object.keys(e).filter(i=>void 0!==e[i]&&""!==e[i]).map(i=>"".concat(i,"=").concat(e[i])).join("&");t&&(i+="?".concat(t))}return o.get("/api"+i,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},v=(i,e)=>{let t=c(e);return o.post("/api"+i,{body:t,headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},u=(i,e)=>(c(e),o.post(i,e,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})),h=(i,e)=>o.post(i,e).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})}},function(i){i.O(0,[180,838,60,86,316,259,394,253,769,744],function(){return i(i.s=20736)}),_N_E=i.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-8288be2652895822.js b/pilot/server/static/_next/static/chunks/app/page-8288be2652895822.js deleted file mode 100644 index adbb7745e..000000000 --- a/pilot/server/static/_next/static/chunks/app/page-8288be2652895822.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{20736:function(e,t,a){Promise.resolve().then(a.bind(a,93768))},93768:function(e,t,a){"use strict";a.r(t);var o=a(9268),n=a(89081),r=a(86006),i=a(50318),l=a(90545),s=a(77614),c=a(53113),d=a(35086),u=a(53047),h=a(54842),v=a(67830),m=a(19700),p=a(92391),g=a(78915),x=a(56008),f=a(76394),j=a.n(f);t.default=function(){var e;let t=p.z.object({query:p.z.string().min(1)}),a=(0,x.useRouter)(),[f,y]=(0,r.useState)(!1),b=(0,m.cI)({resolver:(0,v.F)(t),defaultValues:{}}),{data:w}=(0,n.Z)(async()=>await (0,g.Kw)("/v1/chat/dialogue/scenes")),_=async e=>{let{query:t}=e;try{var o,n;y(!0),b.reset();let e=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&a.push("/chat?id=".concat(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(t))}catch(e){}finally{y(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6",children:[(0,o.jsx)("div",{className:"my-0 mx-auto",children:(0,o.jsx)(j(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full",unoptimized:!0})}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(i.Z,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(l.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(s.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(s.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==w?void 0:null===(e=w.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(c.Z,{disabled:null==e?void 0:e.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var t,o;let n=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.conv_uid)&&a.push("/chat?id=".concat(null==n?void 0:null===(o=n.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{b.handleSubmit(_)(e)},children:(0,o.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(u.ZP,{type:"submit",disabled:f,children:(0,o.jsx)(h.Z,{})}),...b.register("query")})})})]})})}},78915:function(e,t,a){"use strict";a.d(t,{Tk:function(){return d},Kw:function(){return u},PR:function(){return h},Ej:function(){return v}});var o=a(21628),n=a(24214),r=a(52040);let i=n.Z.create({baseURL:r.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var l=a(84835);let s={"content-type":"application/json"},c=e=>{if(!(0,l.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let a=t[e];"string"==typeof a&&(t[e]=a.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let a=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");a&&(e+="?".concat(a))}return i.get("/api"+e,{headers:s}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},u=(e,t)=>{let a=c(t);return i.post("/api"+e,{body:a,headers:s}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},h=(e,t)=>i.post(e,t,{headers:s}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)}),v=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,780,272,5086,6316,1259,3191,9253,5769,1744],function(){return e(e.s=20736)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-8dfe2953f453b3ae.js b/pilot/server/static/_next/static/chunks/app/page-8dfe2953f453b3ae.js deleted file mode 100644 index 29ef37415..000000000 --- a/pilot/server/static/_next/static/chunks/app/page-8dfe2953f453b3ae.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{20736:function(e,t,a){Promise.resolve().then(a.bind(a,93768))},93768:function(e,t,a){"use strict";a.r(t);var o=a(9268),n=a(89081),r=a(86006),i=a(50318),l=a(90545),s=a(77614),c=a(53113),d=a(35086),u=a(53047),h=a(54842),v=a(67830),m=a(19700),p=a(92391),g=a(78915),x=a(56008),f=a(76394),j=a.n(f);t.default=function(){var e;let t=p.z.object({query:p.z.string().min(1)}),a=(0,x.useRouter)(),[f,y]=(0,r.useState)(!1),b=(0,m.cI)({resolver:(0,v.F)(t),defaultValues:{}}),{data:w}=(0,n.Z)(async()=>await (0,g.Kw)("/v1/chat/dialogue/scenes")),_=async e=>{let{query:t}=e;try{var o,n;y(!0),b.reset();let e=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==e?void 0:e.success)&&(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.conv_uid)&&a.push("/chat?id=".concat(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(t))}catch(e){}finally{y(!1)}};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6",children:[(0,o.jsx)("div",{className:"my-0 mx-auto",children:(0,o.jsx)(j(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full",unoptimized:!0})}),(0,o.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,o.jsxs)("div",{className:"lg:col-span-3",children:[(0,o.jsx)(i.Z,{className:"text-[#878c93]",children:"Quick Start"}),(0,o.jsx)(l.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(s.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(s.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==w?void 0:null===(e=w.data)||void 0===e?void 0:e.map(e=>(0,o.jsx)(c.Z,{disabled:null==e?void 0:e.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var t,o;let n=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:e.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(t=n.data)||void 0===t?void 0:t.conv_uid)&&a.push("/chat?id=".concat(null==n?void 0:null===(o=n.data)||void 0===o?void 0:o.conv_uid,"&scene=").concat(e.chat_scene))},children:e.scene_name},e.chat_scene))})]})}),(0,o.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,o.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:e=>{b.handleSubmit(_)(e)},children:(0,o.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,o.jsx)(u.ZP,{type:"submit",disabled:f,children:(0,o.jsx)(h.Z,{})}),...b.register("query")})})})]})})}},78915:function(e,t,a){"use strict";a.d(t,{Tk:function(){return c},Kw:function(){return d},PR:function(){return u},Ej:function(){return h}});var o=a(21628),n=a(24214);let r=n.Z.create({baseURL:"http://127.0.0.1:5000"});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var i=a(84835);let l={"content-type":"application/json"},s=e=>{if(!(0,i.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let a=t[e];"string"==typeof a&&(t[e]=a.trim())}return JSON.stringify(t)},c=(e,t)=>{if(t){let a=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");a&&(e+="?".concat(a))}return r.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let a=s(t);return r.post("/api"+e,{body:a,headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})},u=(e,t)=>r.post(e,t,{headers:l}).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)}),h=(e,t)=>r.post(e,t).then(e=>e).catch(e=>{o.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[2180,3933,272,5086,6316,1259,3191,9253,5769,1744],function(){return e(e.s=20736)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/app/page-9c38e63e2d7fd44b.js b/pilot/server/static/_next/static/chunks/app/page-9c38e63e2d7fd44b.js deleted file mode 100644 index 9d1521207..000000000 --- a/pilot/server/static/_next/static/chunks/app/page-9c38e63e2d7fd44b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[931],{50318:function(i,e,t){"use strict";t.d(e,{Z:function(){return y}});var r=t(46750),n=t(40431),a=t(86006),o=t(89791),l=t(53832),s=t(47562),c=t(50645),d=t(88930),v=t(18587);function u(i){return(0,v.d6)("MuiDivider",i)}(0,v.sI)("MuiDivider",["root","horizontal","vertical","insetContext","insetNone"]);var h=t(326),m=t(9268);let p=["className","children","component","inset","orientation","role","slots","slotProps"],g=i=>{let{orientation:e,inset:t}=i,r={root:["root",e,t&&`inset${(0,l.Z)(t)}`]};return(0,s.Z)(r,u,{})},f=(0,c.Z)("hr",{name:"JoyDivider",slot:"Root",overridesResolver:(i,e)=>e.root})(({theme:i,ownerState:e})=>(0,n.Z)({"--Divider-thickness":"1px","--Divider-lineColor":i.vars.palette.divider},"none"===e.inset&&{"--_Divider-inset":"0px"},"context"===e.inset&&{"--_Divider-inset":"var(--Divider-inset, 0px)"},{margin:"initial",marginInline:"vertical"===e.orientation?"initial":"var(--_Divider-inset)",marginBlock:"vertical"===e.orientation?"var(--_Divider-inset)":"initial",position:"relative",alignSelf:"stretch",flexShrink:0},e.children?{"--Divider-gap":i.spacing(1),"--Divider-childPosition":"50%",display:"flex",flexDirection:"vertical"===e.orientation?"column":"row",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",border:0,fontFamily:i.vars.fontFamily.body,fontSize:i.vars.fontSize.sm,"&::before, &::after":{position:"relative",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)",backgroundColor:"var(--Divider-lineColor)",content:'""'},"&::before":{marginInlineEnd:"vertical"===e.orientation?"initial":"min(var(--Divider-childPosition) * 999, var(--Divider-gap))",marginBlockEnd:"vertical"===e.orientation?"min(var(--Divider-childPosition) * 999, var(--Divider-gap))":"initial",flexBasis:"var(--Divider-childPosition)"},"&::after":{marginInlineStart:"vertical"===e.orientation?"initial":"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))",marginBlockStart:"vertical"===e.orientation?"min((100% - var(--Divider-childPosition)) * 999, var(--Divider-gap))":"initial",flexBasis:"calc(100% - var(--Divider-childPosition))"}}:{border:"none",listStyle:"none",backgroundColor:"var(--Divider-lineColor)",inlineSize:"vertical"===e.orientation?"var(--Divider-thickness)":"initial",blockSize:"vertical"===e.orientation?"initial":"var(--Divider-thickness)"})),x=a.forwardRef(function(i,e){let t=(0,d.Z)({props:i,name:"JoyDivider"}),{className:a,children:l,component:s=null!=l?"div":"hr",inset:c,orientation:v="horizontal",role:u="hr"!==s?"separator":void 0,slots:x={},slotProps:y={}}=t,b=(0,r.Z)(t,p),j=(0,n.Z)({},t,{inset:c,role:u,orientation:v,component:s}),D=g(j),k=(0,n.Z)({},b,{component:s,slots:x,slotProps:y}),[w,Z]=(0,h.Z)("root",{ref:e,className:(0,o.Z)(D.root,a),elementType:f,externalForwardedProps:k,ownerState:j,additionalProps:(0,n.Z)({as:s,role:u},"separator"===u&&"vertical"===v&&{"aria-orientation":"vertical"})});return(0,m.jsx)(w,(0,n.Z)({},Z,{children:l}))});x.muiName="Divider";var y=x},69255:function(i,e,t){Promise.resolve().then(t.bind(t,93768))},93768:function(i,e,t){"use strict";t.r(e);var r=t(9268),n=t(89081),a=t(86006),o=t(50318),l=t(90545),s=t(77614),c=t(53113),d=t(35086),v=t(53047),u=t(54842),h=t(67830),m=t(19700),p=t(92391),g=t(78915),f=t(56008),x=t(76394),y=t.n(x);e.default=function(){var i;let e=p.z.object({query:p.z.string().min(1)}),t=(0,f.useRouter)(),[x,b]=(0,a.useState)(!1),j=(0,m.cI)({resolver:(0,h.F)(e),defaultValues:{}}),{data:D}=(0,n.Z)(async()=>await (0,g.Kw)("/v1/chat/dialogue/scenes")),k=async i=>{let{query:e}=i;try{var r,n;b(!0),j.reset();let i=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:"chat_normal"});(null==i?void 0:i.success)&&(null==i?void 0:null===(r=i.data)||void 0===r?void 0:r.conv_uid)&&t.push("/chat?id=".concat(null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.conv_uid,"&initMessage=").concat(e))}catch(i){}finally{b(!1)}};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"mx-auto h-full justify-center flex max-w-3xl flex-col gap-8 px-5 pt-6",children:[(0,r.jsx)("div",{className:"my-0 mx-auto",children:(0,r.jsx)(y(),{src:"/LOGO.png",alt:"Revolutionizing Database Interactions with Private LLM Technology",width:856,height:160,className:"w-full",unoptimized:!0})}),(0,r.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:(0,r.jsxs)("div",{className:"lg:col-span-3",children:[(0,r.jsx)(o.Z,{className:"text-[#878c93]",children:"Quick Start"}),(0,r.jsx)(l.Z,{className:"grid pt-7 rounded-xl gap-2 lg:grid-cols-3 lg:gap-6",sx:{["& .".concat(s.Z.root)]:{color:"var(--joy-palette-primary-solidColor)",backgroundColor:"var(--joy-palette-primary-solidBg)",height:"52px","&: hover":{backgroundColor:"var(--joy-palette-primary-solidHoverBg)"}},["& .".concat(s.Z.disabled)]:{cursor:"not-allowed",pointerEvents:"unset",color:"var(--joy-palette-primary-plainColor)",backgroundColor:"var(--joy-palette-primary-softDisabledBg)","&: hover":{backgroundColor:"var(--joy-palette-primary-softDisabledBg)"}}},children:null==D?void 0:null===(i=D.data)||void 0===i?void 0:i.map(i=>(0,r.jsx)(c.Z,{disabled:null==i?void 0:i.show_disable,size:"md",variant:"solid",className:"text-base rounded-none",onClick:async()=>{var e,r;let n=await (0,g.Kw)("/v1/chat/dialogue/new",{chat_mode:i.chat_scene});(null==n?void 0:n.success)&&(null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.conv_uid)&&t.push("/chat?id=".concat(null==n?void 0:null===(r=n.data)||void 0===r?void 0:r.conv_uid,"&scene=").concat(i.chat_scene))},children:i.scene_name},i.chat_scene))})]})}),(0,r.jsx)("div",{className:"mt-6 mb-[10%] pointer-events-none inset-x-0 bottom-0 z-0 mx-auto flex w-full max-w-3xl flex-col items-center justify-center max-md:border-t xl:max-w-4xl [&>*]:pointer-events-auto",children:(0,r.jsx)("form",{style:{maxWidth:"100%",width:"100%",position:"relative",display:"flex",marginTop:"auto",overflow:"visible",background:"none",justifyContent:"center",marginLeft:"auto",marginRight:"auto",height:"52px"},onSubmit:i=>{j.handleSubmit(k)(i)},children:(0,r.jsx)(d.ZP,{sx:{width:"100%"},variant:"outlined",placeholder:"Ask anything",endDecorator:(0,r.jsx)(v.ZP,{type:"submit",disabled:x,children:(0,r.jsx)(u.Z,{})}),...j.register("query")})})})]})})}},78915:function(i,e,t){"use strict";t.d(e,{Tk:function(){return d},Kw:function(){return v},PR:function(){return u},Ej:function(){return h}});var r=t(21628),n=t(24214),a=t(52040);let o=n.Z.create({baseURL:a.env.API_BASE_URL});o.defaults.timeout=1e4,o.interceptors.response.use(i=>i.data,i=>Promise.reject(i));var l=t(84835);let s={"content-type":"application/json"},c=i=>{if(!(0,l.isPlainObject)(i))return JSON.stringify(i);let e={...i};for(let i in e){let t=e[i];"string"==typeof t&&(e[i]=t.trim())}return JSON.stringify(e)},d=(i,e)=>{if(e){let t=Object.keys(e).filter(i=>void 0!==e[i]&&""!==e[i]).map(i=>"".concat(i,"=").concat(e[i])).join("&");t&&(i+="?".concat(t))}return o.get("/api"+i,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},v=(i,e)=>{let t=c(e);return o.post("/api"+i,{body:t,headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})},u=(i,e)=>(c(e),o.post(i,e,{headers:s}).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})),h=(i,e)=>o.post(i,e).then(i=>i).catch(i=>{r.ZP.error(i),Promise.reject(i)})}},function(i){i.O(0,[180,877,230,81,86,394,341,253,769,744],function(){return i(i.s=69255)}),_N_E=i.O()}]); \ No newline at end of file diff --git a/pilot/server/static/_next/static/chunks/bce60fc1-18c9f145b45d8f36.js b/pilot/server/static/_next/static/chunks/bce60fc1-18c9f145b45d8f36.js deleted file mode 100644 index 7024145e5..000000000 --- a/pilot/server/static/_next/static/chunks/bce60fc1-18c9f145b45d8f36.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[253],{42614:function(e,t,n){/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r,l=n(86006),a=n(26183),o={usingClientEntryPoint:!1,Events:null,Dispatcher:{current:null}};function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nf||(e.current=c[f],c[f]=null,f--)}function h(e,t){c[++f]=e.current,e.current=t}var m=Symbol.for("react.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),w=Symbol.for("react.context"),S=Symbol.for("react.server_context"),E=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),N=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var _=Symbol.for("react.offscreen"),L=Symbol.for("react.legacy_hidden"),T=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var M=Symbol.for("react.default_value"),F=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=F&&e[F]||e["@@iterator"])?e:null}var R=d(null),O=d(null),A=d(null);function I(e,t){switch(h(A,t),h(O,e),h(R,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?sb(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=sk(e=sb(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}p(R),h(R,t)}function U(){p(R),p(O),p(A)}function B(e){var t=R.current,n=sk(t,e.type);t!==n&&(h(O,e),h(R,n))}function V(e){O.current===e&&(p(R),p(O))}var Q=a.unstable_scheduleCallback,$=a.unstable_cancelCallback,W=a.unstable_shouldYield,j=a.unstable_requestPaint,H=a.unstable_now,q=a.unstable_getCurrentPriorityLevel,K=a.unstable_ImmediatePriority,Y=a.unstable_UserBlockingPriority,X=a.unstable_NormalPriority,G=a.unstable_LowPriority,Z=a.unstable_IdlePriority,J=null,ee=null,et=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(en(e)/er|0)|0},en=Math.log,er=Math.LN2,el=128,ea=8388608;function eo(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:return 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:case 4194304:return 8388480&e;case 8388608:case 16777216:case 33554432:case 67108864:return 125829120&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ei(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var i=o&~l;0!==i?r=eo(i):0!=(a&=o)&&(r=eo(a))}else 0!=(o=n&~l)?r=eo(o):0!==a&&(r=eo(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(a=t&-t)||32===l&&0!=(8388480&a)))return t;if(0!=(8&r)&&(r|=32&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ed(e,t){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0)}function ep(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-et(n),l=1<--i||l[o]!==a[i]){var u="\n"+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=i);break}}}finally{ej=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?eW(e):""}function eq(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function eK(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function eY(e){e._valueTracker||(e._valueTracker=function(e){var t=eK(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function eX(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eK(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function eG(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var eZ=/[\n"\\]/g;function eJ(e){return e.replace(eZ,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e0(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+eq(t)):e.value!==""+eq(t)&&(e.value=""+eq(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?e2(e,o,eq(t)):null!=n?e2(e,o,eq(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&!!l!==e.checked&&(e.checked=l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+eq(i):e.removeAttribute("name")}function e1(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||null!=t))return;n=null!=n?""+eq(n):"",t=null!=t?""+eq(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,i||(e.checked=!!r),e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function e2(e,t,n){"number"===t&&eG(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}var e3=Array.isArray;function e4(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ig.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var e7=e5;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(e7=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return e5(e,t)})});var e9=e7;function te(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var tt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tn(e,t){if(null!=t&&"object"!=typeof t)throw Error(i(62));for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=t[n],l=0===n.indexOf("--");null==r||"boolean"==typeof r||""===r?l?e.setProperty(n,""):"float"===n?e.cssFloat="":e[n]="":l?e.setProperty(n,r):"number"!=typeof r||0===r||tt.has(n)?"float"===n?e.cssFloat=r:e[n]=(""+r).trim():e[n]=r+"px"}}function tr(e){if(-1===e.indexOf("-"))return!1;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 tl=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ta=null;function to(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ti=null,tu=null;function ts(e){var t=eN(e);if(t&&(e=t.stateNode)){var n=eL(e);switch(e=t.stateNode,t.type){case"input":if(e0(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+eJ(""+t)+'"][type="radio"]'),t=0;t>=o,l-=o,tR=1<<32-et(t)+l|n<m?(g=f,f=null):g=f.sibling;var y=p(l,f,i[m],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,m),null===c?s=y:c.sibling=y,c=y,f=g}if(m===i.length)return n(l,f),t$&&tA(l,m),s;if(null===f){for(;mg?(y=m,m=null):y=m.sibling;var b=p(l,m,v.value,s);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(l,m),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,m=y}if(v.done)return n(l,m),t$&&tA(l,g),c;if(null===m){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return t$&&tA(l,g),c}for(m=r(l,m);!v.done;g++,v=u.next())null!==(v=h(m,l,g,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&m.forEach(function(e){return t(l,e)}),t$&&tA(l,g),c}(c,f,v,b);if("function"==typeof v.then)return s(c,f,nx(v),b);if(v.$$typeof===w||v.$$typeof===S)return s(c,f,l$(c,v,b),b);nz(c,v)}return"string"==typeof v&&""!==v||"number"==typeof v?(v=""+v,null!==f&&6===f.tag?(n(c,f.sibling),(f=l(f,v)).return=c,c=f):(n(c,f),(f=o3(v,c.mode,b)).return=c,c=f),o(c)):n(c,f)}(s,c,f,v),nS=null,s}}var n_=nN(!0),nL=nN(!1),nT=d(null),nM=d(0);function nF(e,t){h(nM,e=a5),h(nT,t),a5=e|t.baseLanes}function nD(){h(nM,a5),h(nT,nT.current)}function nR(){a5=nM.current,p(nT),p(nM)}var nO=d(null),nA=null;function nI(e){var t=e.alternate;h(nQ,1&nQ.current),h(nO,e),null===nA&&(null===t||null!==nT.current?nA=e:null!==t.memoizedState&&(nA=e))}function nU(e){if(22===e.tag){if(h(nQ,nQ.current),h(nO,e),null===nA){var t=e.alternate;null!==t&&null!==t.memoizedState&&(nA=e)}}else nB(e)}function nB(){h(nQ,nQ.current),h(nO,nO.current)}function nV(e){p(nO),nA===e&&(nA=null),p(nQ)}var nQ=d(0);function n$(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nW=[];function nj(){for(var e=0;ea?a:8;var o=n8.transition;n8.transition=null,rY(e,t,n),n8.transition={};try{rY(e,t,r),l()}catch(e){throw e}finally{eh=a,n8.transition=o}}function rj(){return rg().memoizedState}function rH(){return rg().memoizedState}function rq(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=ov(t);e=no(n);var r=ni(t,e,n);null!==r&&(ob(r,t,n),nu(r,t,n)),t={cache:lY()},e.payload=t;return}t=t.return}}function rK(e,t,n){var r=ov(e);n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},rX(e)?rG(t,n):(t9(e,t,n,r),null!==(n=nn(e))&&(ob(n,e,r),rZ(n,t,r)))}function rY(e,t,n){var r=ov(e),l={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(rX(e))rG(t,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=a(o,n);if(l.hasEagerState=!0,l.eagerState=i,tP(i,o)){t9(e,t,l,0),null===a1&&t7();return}}catch(e){}finally{}t9(e,t,l,r),null!==(n=nn(e))&&(ob(n,e,r),rZ(n,t,r))}}function rX(e){var t=e.alternate;return e===n5||null!==t&&t===n5}function rG(e,t){rt=re=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rZ(e,t,n){if(0!=(8388480&n)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ep(e,n)}}iy=function(){return{lastEffect:null,events:null,stores:null}};var rJ={readContext:lQ,use:rv,useCallback:ri,useContext:ri,useEffect:ri,useImperativeHandle:ri,useInsertionEffect:ri,useLayoutEffect:ri,useMemo:ri,useReducer:ri,useRef:ri,useState:ri,useDebugValue:ri,useDeferredValue:ri,useTransition:ri,useMutableSource:ri,useSyncExternalStore:ri,useId:ri};rJ.useCacheRefresh=ri;var r0={readContext:lQ,use:rv,useCallback:function(e,t){return rm().memoizedState=[e,void 0===t?null:t],e},useContext:lQ,useEffect:rD,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,rM(4194308,4,rI.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rM(4194308,4,e,t)},useInsertionEffect:function(e,t){rM(4,2,e,t)},useMemo:function(e,t){var n=rm();return t=void 0===t?null:t,rn&&e(),e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rm();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=rK.bind(null,n5,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},rm().memoizedState=e},useState:function(e){var t=(e=r_(e)).queue,n=rY.bind(null,n5,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:rB,useDeferredValue:function(e){return rm().memoizedState=e},useTransition:function(){var e=r_(!1);return e=rW.bind(null,n5,e.queue,!0,!1),rm().memoizedState=e,[!1,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=n5,l=rm();if(t$){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===a1)throw Error(i(349));0!=(60&n6)||rx(r,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,rD(rz.bind(null,r,a,e),[e]),r.flags|=2048,rL(9,rC.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=rm(),t=a1.identifierPrefix;if(t$){var n=tO,r=tR;t=":"+t+"R"+(n=(r&~(1<<32-et(r)-1)).toString(32)+n),0<(n=rr++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ro++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return rm().memoizedState=rq.bind(null,n5)}},r1={readContext:lQ,use:rv,useCallback:rV,useContext:lQ,useEffect:rR,useImperativeHandle:rU,useInsertionEffect:rO,useLayoutEffect:rA,useMemo:rQ,useReducer:rk,useRef:rT,useState:function(){return rk(rb)},useDebugValue:rB,useDeferredValue:function(e){return r$(rg(),n7.memoizedState,e)},useTransition:function(){var e=rk(rb)[0],t=rg().memoizedState;return["boolean"==typeof e?e:ry(e),t]},useMutableSource:rS,useSyncExternalStore:rE,useId:rj};r1.useCacheRefresh=rH;var r2={readContext:lQ,use:rv,useCallback:rV,useContext:lQ,useEffect:rR,useImperativeHandle:rU,useInsertionEffect:rO,useLayoutEffect:rA,useMemo:rQ,useReducer:rw,useRef:rT,useState:function(){return rw(rb)},useDebugValue:rB,useDeferredValue:function(e){var t=rg();return null===n7?t.memoizedState=e:r$(t,n7.memoizedState,e)},useTransition:function(){var e=rw(rb)[0],t=rg().memoizedState;return["boolean"==typeof e?e:ry(e),t]},useMutableSource:rS,useSyncExternalStore:rE,useId:rj};function r3(e,t){if(e&&e.defaultProps)for(var n in t=u({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}function r4(e,t,n,r){t=e.memoizedState,n=null==(n=n(r,t))?t:u({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}r2.useCacheRefresh=rH;var r8={isMounted:function(e){return!!(e=e._reactInternals)&&td(e)===e},enqueueSetState:function(e,t,n){var r=ov(e=e._reactInternals),l=no(r);l.payload=t,null!=n&&(l.callback=n),null!==(t=ni(e,l,r))&&(ob(t,e,r),nu(t,e,r))},enqueueReplaceState:function(e,t,n){var r=ov(e=e._reactInternals),l=no(r);l.tag=1,l.payload=t,null!=n&&(l.callback=n),null!==(t=ni(e,l,r))&&(ob(t,e,r),nu(t,e,r))},enqueueForceUpdate:function(e,t){var n=ov(e=e._reactInternals),r=no(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=ni(e,r,n))&&(ob(t,e,n),nu(t,e,n))}};function r6(e,t,n,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||!np(n,r)||!np(l,a)}function r5(e,t,n){var r=!1,l=tg,a=t.contextType;return"object"==typeof a&&null!==a?a=lQ(a):(l=tw(t)?tb:ty.current,a=(r=null!=(r=t.contextTypes))?tk(e,l):tg),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=r8,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function r7(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&r8.enqueueReplaceState(t,t.state,null)}function r9(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},nl(e);var a=t.contextType;"object"==typeof a&&null!==a?l.context=lQ(a):(a=tw(t)?tb:ty.current,l.context=tk(e,a)),l.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(r4(e,t,a,n),l.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(t=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&r8.enqueueReplaceState(l,l.state,null),nc(e,n,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function le(e,t){try{var n="",r=t;do n+=function(e){switch(e.tag){case 26:case 27:case 5:return eW(e.type);case 16:return eW("Lazy");case 13:return eW("Suspense");case 19:return eW("SuspenseList");case 0:case 2:case 15:return e=eH(e.type,!1);case 11:return e=eH(e.type.render,!1);case 1:return e=eH(e.type,!0);default:return""}}(r),r=r.return;while(r);var l=n}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:l,digest:null}}function lt(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ln(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}function lr(e,t,n){(n=no(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ou||(ou=!0,os=r),ln(e,t)},n}function ll(e,t,n){(n=no(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){ln(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){ln(e,t),"function"!=typeof r&&(null===oc?oc=new Set([this]):oc.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function la(e,t,n,r,l){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=no(2)).tag=2,ni(n,t,2))),n.lanes|=2),e):(e.flags|=65536,e.lanes=l,e)}var lo=s.ReactCurrentOwner,li=Error(i(461)),lu=!1;function ls(e,t,n,r){t.child=null===e?nL(t,null,n,r):n_(t,e.child,n,r)}function lc(e,t,n,r,l){n=n.render;var a=t.ref;return(lV(t,l),r=rs(e,t,n,r,a,l),n=rd(),null===e||lu)?(t$&&n&&tU(t),t.flags|=1,ls(e,t,r,l),t.child):(rp(e,t,l),lT(e,t,l))}function lf(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||oG(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=o0(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ld(e,t,a,r,l))}if(a=e.child,0==(e.lanes&l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:np)(o,r)&&e.ref===t.ref)return lT(e,t,l)}return t.flags|=1,(e=oZ(a,r)).ref=t.ref,e.return=t,t.child=e}function ld(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(np(a,r)&&e.ref===t.ref){if(lu=!1,t.pendingProps=r=a,0==(e.lanes&l))return t.lanes=e.lanes,lT(e,t,l);0!=(131072&e.flags)&&(lu=!0)}}return lg(e,t,n,r,l)}function lp(e,t,n){var r=t.pendingProps,l=r.children,a=0!=(2&t.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(lm(e,t),"hidden"===r.mode||a){if(0!=(128&t.flags)){if(n=null!==o?o.baseLanes|n:n,null!==e){for(l=0,r=t.child=e.child;null!==r;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~n}else t.childLanes=0,t.child=null;return lh(e,t,n)}if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},null!==e&&l0(t,null),nD(),nU(t);else{if(0==(1073741824&n))return t.lanes=t.childLanes=1073741824,lh(e,t,null!==o?o.baseLanes|n:n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&l0(t,null!==o?o.cachePool:null),null!==o?nF(t,o):nD(),nU(t)}}else null!==o?(l0(t,o.cachePool),nF(t,o),nB(t),t.memoizedState=null):(null!==e&&l0(t,null),nD(),nB(t));return ls(e,t,l,n),t.child}function lh(e,t,n){var r=lJ();return r=null===r?null:{parent:lK._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},null!==e&&l0(t,null),nD(),nU(t),null}function lm(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function lg(e,t,n,r,l){var a=tw(n)?tb:ty.current;return(a=tk(t,a),lV(t,l),n=rs(e,t,n,r,a,l),r=rd(),null===e||lu)?(t$&&r&&tU(t),t.flags|=1,ls(e,t,n,l),t.child):(rp(e,t,l),lT(e,t,l))}function ly(e,t,n,r,l,a){return(lV(t,a),n=rf(t,r,n,l),rc(),r=rd(),null===e||lu)?(t$&&r&&tU(t),t.flags|=1,ls(e,t,n,a),t.child):(rp(e,t,a),lT(e,t,a))}function lv(e,t,n,r,l){if(tw(n)){var a=!0;tC(t)}else a=!1;if(lV(t,l),null===t.stateNode)lL(e,t),r5(t,n,r),r9(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s="object"==typeof s&&null!==s?lQ(s):tk(t,s=tw(n)?tb:ty.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&r7(t,o,r,s),nr=!1;var d=t.memoizedState;o.state=d,nc(t,r,o,l),u=t.memoizedState,i!==r||d!==u||tv.current||nr?("function"==typeof c&&(r4(t,n,c,r),u=t.memoizedState),(i=nr||r6(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,na(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:r3(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?lQ(u):tk(t,u=tw(n)?tb:ty.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&r7(t,o,r,u),nr=!1,d=t.memoizedState,o.state=d,nc(t,r,o,l);var h=t.memoizedState;i!==f||d!==h||tv.current||nr?("function"==typeof p&&(r4(t,n,p,r),h=t.memoizedState),(s=nr||r6(t,n,s,r,d,h,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return lb(e,t,n,r,a,l)}function lb(e,t,n,r,l,a){lm(e,t);var o=0!=(128&t.flags);if(!r&&!o)return l&&tz(t,n,!1),lT(e,t,a);r=t.stateNode,lo.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=n_(t,e.child,null,a),t.child=n_(t,null,i,a)):ls(e,t,i,a),t.memoizedState=r.state,l&&tz(t,n,!0),t.child}function lk(e){var t=e.stateNode;t.pendingContext?tE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tE(e,t.context,!1),I(e,t.containerInfo)}function lw(e,t,n,r,l){return t3(),t4(l),t.flags|=256,ls(e,t,n,r),t.child}var lS={dehydrated:null,treeContext:null,retryLane:0};function lE(e){return{baseLanes:e,cachePool:l1()}}function lx(e,t,n){var r,l=t.pendingProps,a=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&nQ.current)),r&&(a=!0,t.flags&=-129),null===e){if(t$){if(a?nI(t):nB(t),t$&&((o=e=tQ)?tX(t,o)||(tG(t)&&tZ(),tQ=sL(o.nextSibling),r=tV,tQ&&tX(t,tQ)?tH(r,o):(tq(tV,t),t$=!1,tV=t,tQ=e)):(tG(t)&&tZ(),tq(tV,t),t$=!1,tV=t,tQ=e)),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))return 0==(1&t.mode)?t.lanes=2:"$!"===e.data?t.lanes=16:t.lanes=1073741824,null;nV(t)}return(o=l.children,e=l.fallback,a)?(nB(t),l=t.mode,a=t.child,o={mode:"hidden",children:o},0==(1&l)&&null!==a?(a.childLanes=0,a.pendingProps=o):a=o2(o,l,0,null),e=o1(e,l,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=lE(n),t.memoizedState=lS,e):(nI(t),lC(t,o))}if(null!==(r=e.memoizedState)){var u=r.dehydrated;if(null!==u)return function(e,t,n,r,l,a,o){if(n)return 256&t.flags?(nI(t),t.flags&=-257,lz(e,t,o,r=lt(Error(i(422))))):null!==t.memoizedState?(nB(t),t.child=e.child,t.flags|=128,null):(nB(t),a=r.fallback,l=t.mode,r=o2({mode:"visible",children:r.children},l,0,null),a=o1(a,l,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&n_(t,e.child,null,o),t.child.memoizedState=lE(o),t.memoizedState=lS,a);if(nI(t),0==(1&t.mode))return lz(e,t,o,null);if("$!"===l.data){if(r=l.nextSibling&&l.nextSibling.dataset)var u=r.dgst;return r=u,(a=Error(i(419))).digest=r,r=lt(a,r,void 0),lz(e,t,o,r)}if(u=0!=(o&e.childLanes),lu||u){if(null!==(r=a1)){switch(o&-o){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=64;break;case 536870912:l=268435456;break;default:l=0}if(0!==(l=0!=(l&(r.suspendedLanes|o))?0:l)&&l!==a.retryLane)throw a.retryLane=l,ne(e,l),ob(r,e,l),li}return oF(),lz(e,t,o,null)}return"$?"===l.data?(t.flags|=128,t.child=e.child,t=oq.bind(null,e),l._reactRetry=t,null):(e=a.treeContext,tQ=sL(l.nextSibling),tV=t,t$=!0,tW=null,tj=!1,null!==e&&(tM[tF++]=tR,tM[tF++]=tO,tM[tF++]=tD,tR=e.id,tO=e.overflow,tD=t),t=lC(t,r.children),t.flags|=4096,t)}(e,t,o,l,u,r,n)}if(a){nB(t),a=l.fallback,o=t.mode,u=(r=e.child).sibling;var s={mode:"hidden",children:l.children};return 0==(1&o)&&t.child!==r?((l=t.child).childLanes=0,l.pendingProps=s,t.deletions=null):(l=oZ(r,s)).subtreeFlags=31457280&r.subtreeFlags,null!==u?a=oZ(u,a):(a=o1(a,o,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,l=a,a=t.child,null===(o=e.child.memoizedState)?o=lE(n):(null!==(r=o.cachePool)?(u=lK._currentValue,r=r.parent!==u?{parent:u,pool:u}:r):r=l1(),o={baseLanes:o.baseLanes|n,cachePool:r}),a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=lS,l}return nI(t),e=(a=e.child).sibling,l=oZ(a,{mode:"visible",children:l.children}),0==(1&t.mode)&&(l.lanes=n),l.return=t,l.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=l,t.memoizedState=null,l}function lC(e,t){return(t=o2({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function lz(e,t,n,r){return null!==r&&t4(r),n_(t,e.child,null,n),e=lC(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lP(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),lU(e.return,t,n)}function lN(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function l_(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(ls(e,t,r.children,n),0!=(2&(r=nQ.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lP(e,n,t);else if(19===e.tag)lP(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(h(nQ,r),0==(1&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(l=null,n=t.child;null!==n;)null!==(e=n.alternate)&&null===n$(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),lN(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===n$(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}lN(t,!0,n,null,a);break;case"together":lN(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lL(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lT(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),oe|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=oZ(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=oZ(e,e.pendingProps)).return=t;n.sibling=null}return t.child}var lM=d(null),lF=null,lD=null,lR=null;function lO(){lR=lD=lF=null}function lA(e,t,n){h(lM,t._currentValue),t._currentValue=n}function lI(e){var t=lM.current;e._currentValue=t===M?e._defaultValue:t,p(lM)}function lU(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function lB(e,t,n){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var l=r.dependencies;if(null!==l)for(var a=r.child,o=l.firstContext;null!==o;){if(o.context===t){if(1===r.tag){(o=no(n&-n)).tag=2;var u=r.updateQueue;if(null!==u){var s=(u=u.shared).pending;null===s?o.next=o:(o.next=s.next,s.next=o),u.pending=o}}r.lanes|=n,null!==(o=r.alternate)&&(o.lanes|=n),lU(r.return,n,e),l.lanes|=n;break}o=o.next}else if(10===r.tag)a=r.type===e.type?null:r.child;else if(18===r.tag){if(null===(a=r.return))throw Error(i(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),lU(a,n,e),a=r.sibling}else a=r.child;if(null!==a)a.return=r;else for(a=r;null!==a;){if(a===e){a=null;break}if(null!==(r=a.sibling)){r.return=a.return,a=r;break}a=a.return}r=a}}function lV(e,t){lF=e,lR=lD=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(lu=!0),e.firstContext=null)}function lQ(e){return lW(lF,e)}function l$(e,t,n){return null===lF&&lV(e,n),lW(e,t)}function lW(e,t){var n=t._currentValue;if(lR!==t){if(t={context:t,memoizedValue:n,next:null},null===lD){if(null===e)throw Error(i(308));lD=t,e.dependencies={lanes:0,firstContext:t}}else lD=lD.next=t}return n}var lj="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},lH=a.unstable_scheduleCallback,lq=a.unstable_NormalPriority,lK={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_defaultValue:null,_globalName:null};function lY(){return{controller:new lj,data:new Map,refCount:0}}function lX(e){e.refCount--,0===e.refCount&&lH(lq,function(){e.controller.abort()})}var lG=s.ReactCurrentBatchConfig,lZ=d(null);function lJ(){var e=lZ.current;return null!==e?e:a1.pooledCache}function l0(e,t){null===t?h(lZ,lZ.current):h(lZ,t.pool)}function l1(){var e=lJ();return null===e?null:{parent:lK._currentValue,pool:e}}function l2(e){e.flags|=4}function l3(e){e.flags|=2097664}function l4(e,t,n,r){if((e=e.memoizedProps)!==r){n=null;var l,a,o=null;for(l in e)if(!r.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l]){if("style"===l){var i=e[l];for(a in i)i.hasOwnProperty(a)&&(o||(o={}),o[a]="")}else(n=n||[]).push(l,null)}for(l in r){i=r[l];var u=null!=e?e[l]:void 0;if(r.hasOwnProperty(l)&&i!==u&&(null!=i||null!=u)){if("style"===l){if(u){for(a in u)!u.hasOwnProperty(a)||i&&i.hasOwnProperty(a)||(o||(o={}),o[a]="");for(a in i)i.hasOwnProperty(a)&&u[a]!==i[a]&&(o||(o={}),o[a]=i[a])}else o||(n||(n=[]),n.push(l,o)),o=i}else(n=n||[]).push(l,i)}}o&&(n=n||[]).push("style",o),r=n,(t.updateQueue=r)&&l2(t)}}function l8(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,0==(42&a3)&&!(t="stylesheet"!==t.type||0!=(3&t.state.loading))){if(oL())e.flags|=8192;else throw nk=ng,nm}}function l6(e,t){null!==t?e.flags|=4:16384&e.flags&&(t=22!==e.tag?ec():1073741824,e.lanes|=t)}function l5(e,t){if(!t$)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function l7(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=31457280&l.subtreeFlags,r|=31457280&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function l9(e,t){switch(tB(t),t.tag){case 1:null!=(e=t.type.childContextTypes)&&tS();break;case 3:lI(lK),U(),p(tv),p(ty),nj();break;case 26:case 27:case 5:V(t);break;case 4:U();break;case 13:nV(t);break;case 19:p(nQ);break;case 10:lI(t.type._context);break;case 22:case 23:nV(t),nR(),null!==e&&p(lZ);break;case 24:lI(lK)}}function ae(e,t,n){var r=Array.prototype.slice.call(arguments,3);try{t.apply(n,r)}catch(e){this.onError(e)}}var at=!1,an=null,ar=!1,al=null,aa={onError:function(e){at=!0,an=e}};function ao(e,t,n,r,l,a,o,i,u){at=!1,an=null,ae.apply(aa,arguments)}var ai=!1,au=!1,as="function"==typeof WeakSet?WeakSet:Set,ac=null;function af(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=r;break;default:l=r}"function"==typeof n?e.refCleanup=n(l):n.current=l}}catch(n){o$(e,t,n)}}function ad(e,t){var n=e.ref,r=e.refCleanup;if(null!==n){if("function"==typeof r)try{r()}catch(n){o$(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){o$(e,t,n)}else n.current=null}}function ap(e,t,n){try{n()}catch(n){o$(e,t,n)}}var ah=!1;function am(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.inst,o=a.destroy;void 0!==o&&(a.destroy=void 0,ap(t,n,o))}l=l.next}while(l!==r)}}function ag(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create,l=n.inst;r=r(),l.destroy=r}n=n.next}while(n!==t)}}function ay(e,t){try{ag(t,e)}catch(t){o$(e,e.return,t)}}function av(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{nd(t,n)}catch(t){o$(e,e.return,t)}}}function ab(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src&&(r.src=n.src)}}catch(t){o$(e,e.return,t)}}function ak(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:aD(e,n),4&r&&ay(n,5);break;case 1:if(aD(e,n),4&r){if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){o$(n,n.return,e)}else{var l=n.elementType===n.type?t.memoizedProps:r3(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){o$(n,n.return,e)}}}64&r&&av(n),512&r&&af(n,n.return);break;case 3:if(aD(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{nd(r,e)}catch(e){o$(n,n.return,e)}}break;case 26:aD(e,n),512&r&&af(n,n.return);break;case 27:case 5:aD(e,n),null===t&&4&r&&ab(n),512&r&&af(n,n.return);break;case 12:default:aD(e,n);break;case 13:aD(e,n),4&r&&aN(e,n);break;case 22:if(0!=(1&n.mode)){if(!(l=null!==n.memoizedState||ai)){t=null!==t&&null!==t.memoizedState||au;var a=ai,o=au;ai=l,(au=t)&&!o?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var l=n.alternate,a=t,o=n,i=o.flags;switch(o.tag){case 0:case 11:case 15:e(a,o,r),ay(o,4);break;case 1:if(e(a,o,r),"function"==typeof(a=o.stateNode).componentDidMount)try{a.componentDidMount()}catch(e){o$(o,o.return,e)}if(null!==(l=o.updateQueue)){var u=l.shared.hiddenCallbacks;if(null!==u)for(l.shared.hiddenCallbacks=null,l=0;l title"))),sh(l,n,r),l[ev]=e,eM(l),n=l;break e;case"link":var a=sq("link","href",t).get(n+(r.href||""));if(a){for(var o=0;o",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[ev]=t,e[eb]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sh(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&l2(t)}null!==t.ref&&l3(t)}return l7(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&l2(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=A.current,t1(t)){e:{if(e=t.stateNode,r=t.memoizedProps,e[ev]=t,(n=e.nodeValue!==r)&&null!==(l=tV))switch(l.tag){case 3:if(l=0!=(1&l.mode),sc(e.nodeValue,r,l),l){e=!1;break e}break;case 27:case 5:if(a=0!=(1&l.mode),!0!==l.memoizedProps.suppressHydrationWarning&&sc(e.nodeValue,r,a),a){e=!1;break e}}e=n}e&&l2(t)}else(e=sv(e).createTextNode(r))[ev]=t,t.stateNode=e}return l7(t),null;case 13:if(nV(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(t$&&null!==tQ&&0!=(1&t.mode)&&0==(128&t.flags))t2(),t3(),t.flags|=384,l=!1;else if(l=t1(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[ev]=t}else t3(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;l7(t),l=!1}else null!==tW&&(oS(tW),tW=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return r=null!==r,e=null!==e&&null!==e.memoizedState,r&&(n=t.child,l=null,null!==n.alternate&&null!==n.alternate.memoizedState&&null!==n.alternate.memoizedState.cachePool&&(l=n.alternate.memoizedState.cachePool.pool),a=null,null!==n.memoizedState&&null!==n.memoizedState.cachePool&&(a=n.memoizedState.cachePool.pool),a!==l&&(n.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),l6(t,t.updateQueue),l7(t),null;case 4:return U(),null===e&&se(t.stateNode.containerInfo),l7(t),null;case 10:return lI(t.type._context),l7(t),null;case 19:if(p(nQ),null===(l=t.memoizedState))return l7(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)l5(l,!1);else{if(0!==a7||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=n$(e))){for(t.flags|=128,l5(l,!1),e=a.updateQueue,t.updateQueue=e,l6(t,e),t.subtreeFlags=0,e=n,r=t.child;null!==r;)oJ(r,e),r=r.sibling;return h(nQ,1&nQ.current|2),t.child}e=e.sibling}null!==l.tail&&H()>oo&&(t.flags|=128,r=!0,l5(l,!1),t.lanes=8388608)}}else{if(!r){if(null!==(e=n$(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,l6(t,e),l5(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!t$)return l7(t),null}else 2*H()-l.renderingStartTime>oo&&1073741824!==n&&(t.flags|=128,r=!0,l5(l,!1),t.lanes=8388608)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=H(),t.sibling=null,e=nQ.current,h(nQ,r?1&e|2:1&e),t;return l7(t),null;case 22:case 23:return nV(t),nR(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&n)&&0==(128&t.flags)&&(l7(t),6&t.subtreeFlags&&(t.flags|=8192)):l7(t),null!==(r=t.updateQueue)&&l6(t,r.retryQueue),r=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(r=e.memoizedState.cachePool.pool),n=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(n=t.memoizedState.cachePool.pool),n!==r&&(t.flags|=2048),null!==e&&p(lZ),null;case 24:return r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),lI(lK),l7(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,a5);if(null!==n){a2=n;return}if(null!==(t=t.sibling)){a2=t;return}a2=t=e}while(null!==t);0===a7&&(a7=5)}function oU(e,t,n){var r=eh,l=aJ.transition;try{aJ.transition=null,eh=2,function(e,t,n,r){do oV();while(null!==od);if(0!=(6&a0))throw Error(i(327));var l=e.finishedWork,a=e.finishedLanes;if(null!==l){if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var o=l.lanes|l.childLanes;if(function(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,e.errorRecoveryDisabledLanes&=t,t=e.entanglements;var r=e.expirationTimes;for(e=e.hiddenUpdates;0r&&(l=r,r=a,a=l),l=uD(n,a);var o=uD(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nn?32:n;n=aJ.transition;var l=eh;try{if(aJ.transition=null,eh=r,null===od)var a=!1;else{r=om,om=null;var o=od,u=op;if(od=null,op=0,0!=(6&a0))throw Error(i(331));var s=a0;if(a0|=4,aH(o.current),aU(o,o.current,u,r),a0=s,nJ(!1),ee&&"function"==typeof ee.onPostCommitFiberRoot)try{ee.onPostCommitFiberRoot(J,o)}catch(e){}a=!0}return a}finally{eh=l,aJ.transition=n,oB(e,t)}}return!1}function oQ(e,t,n){t=le(n,t),t=lr(e,t,2),null!==(e=ni(e,t,2))&&(ed(e,2),nZ(e))}function o$(e,t,n){if(3===e.tag)oQ(e,e,n);else for(;null!==t;){if(3===t.tag){oQ(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===oc||!oc.has(r))){e=le(n,e),e=ll(t,e,2),null!==(t=ni(t,e,2))&&(ed(t,2),nZ(t));break}}t=t.return}}function oW(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new aY;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(a6=!0,l.add(n),e=oj.bind(null,e,t,n),t.then(e,e))}function oj(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,a1===e&&(a3&n)===n&&(4===a7||3===a7&&(125829120&a3)===a3&&300>H()-oa?0==(2&a0)&&oN(e,0):on|=n),nZ(e)}function oH(e,t){0===t&&(t=0==(1&e.mode)?2:ec()),null!==(e=ne(e,t))&&(ed(e,t),nZ(e))}function oq(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),oH(e,n)}function oK(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),oH(e,n)}function oY(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.refCleanup=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 oX(e,t,n,r){return new oY(e,t,n,r)}function oG(e){return!(!(e=e.prototype)||!e.isReactComponent)}function oZ(e,t){var n=e.alternate;return null===n?((n=oX(e.tag,t,e.key,e.mode)).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=31457280&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function oJ(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function o0(e,t,n,r,l,a){var o=2;if(r=e,"function"==typeof e)oG(e)&&(o=1);else if("string"==typeof e)o=!function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;if("stylesheet"===t.rel)return e=t.disabled,"string"==typeof t.precedence&&null==e;return!0;case"script":if(!0===t.async&&!t.onLoad&&!t.onError&&"string"==typeof t.src&&t.src)return!0}return!1}(e,n,R.current)?"html"===e||"head"===e||"body"===e?27:5:26;else e:switch(e){case y:return o1(n.children,l,a,t);case v:o=8,0!=(1&(l|=8))&&(l|=16);break;case b:return(e=oX(12,n,t,2|l)).elementType=b,e.lanes=a,e;case x:return(e=oX(13,n,t,l)).elementType=x,e.lanes=a,e;case C:return(e=oX(19,n,t,l)).elementType=C,e.lanes=a,e;case _:return o2(n,l,a,t);case L:case N:case T:return(e=oX(24,n,t,l)).elementType=T,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:o=10;break e;case w:o=9;break e;case E:o=11;break e;case z:o=14;break e;case P:o=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=oX(o,n,t,l)).elementType=e,t.type=r,t.lanes=a,t}function o1(e,t,n,r){return(e=oX(7,e,r,t)).lanes=n,e}function o2(e,t,n,r){(e=oX(22,e,r,t)).elementType=_,e.lanes=n;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0==(2&l._pendingVisibility)){var t=ne(e,2);null!==t&&(l._pendingVisibility|=2,ob(t,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error(i(456));if(0!=(2&l._pendingVisibility)){var t=ne(e,2);null!==t&&(l._pendingVisibility&=-3,ob(t,e,2))}}};return e.stateNode=l,e}function o3(e,t,n){return(e=oX(6,e,null,t)).lanes=n,e}function o4(e,t,n){return(t=oX(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function o8(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ef(-1),this.entangledLanes=this.errorRecoveryDisabledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ef(0),this.hiddenUpdates=ef(null),this.identifierPrefix=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.mutableSourceEagerHydrationData=null,this.incompleteTransitions=new Map}function o6(e,t,n,r,l,a,o,i,u){return e=new o8(e,t,n,i,u),1===t?(t=1,!0===a&&(t|=24)):t=0,a=oX(3,null,null,t),e.current=a,a.stateNode=e,t=lY(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},nl(a),e}function o5(e){if(!e)return tg;e=e._reactInternals;e:{if(td(e)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tw(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(tw(n))return tx(e,n,t)}return t}function o7(e,t,n,r,l,a,o,i,u){return(e=o6(n,r,!0,e,l,a,o,i,u)).context=o5(null),(l=no(r=ov(n=e.current))).callback=null!=t?t:null,ni(n,l,r),e.current.lanes=r,ed(e,r),nZ(e),e}function o9(e,t,n,r){var l=t.current,a=ov(l);return n=o5(n),null===t.context?t.context=n:t.pendingContext=n,(t=no(a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ni(l,t,a))&&(ob(e,l,a),nu(e,l,a)),a}function ie(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function it(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n=us),ud=!1;function up(e,t){switch(e){case"keyup":return -1!==ui.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uh(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var um=!1,ug={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ug[e.type]:"textarea"===t}function uv(e,t,n,r){tc(r),0<(t=sl(t,"onChange")).length&&(n=new iE("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ub=null,uk=null;function uw(e){u6(e,0)}function uS(e){if(eX(e_(e)))return e}function uE(e,t){if("change"===e)return t}var ux=!1;if(eA){if(eA){var uC="oninput"in document;if(!uC){var uz=document.createElement("div");uz.setAttribute("oninput","return;"),uC="function"==typeof uz.oninput}r=uC}else r=!1;ux=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=uF(r)}}function uR(){for(var e=window,t=eG();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=eG(e.document)}return t}function uO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var uA=eA&&"documentMode"in document&&11>=document.documentMode,uI=null,uU=null,uB=null,uV=!1;function uQ(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;uV||null==uI||uI!==eG(r)||(r="selectionStart"in(r=uI)&&uO(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},uB&&np(uB,r)||(uB=r,0<(r=sl(uU,"onSelect")).length&&(t=new iE("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=uI)))}function u$(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var uW={animationend:u$("Animation","AnimationEnd"),animationiteration:u$("Animation","AnimationIteration"),animationstart:u$("Animation","AnimationStart"),transitionend:u$("Transition","TransitionEnd")},uj={},uH={};function uq(e){if(uj[e])return uj[e];if(!uW[e])return e;var t,n=uW[e];for(t in n)if(n.hasOwnProperty(t)&&t in uH)return uj[e]=n[t];return e}eA&&(uH=document.createElement("div").style,"AnimationEvent"in window||(delete uW.animationend.animation,delete uW.animationiteration.animation,delete uW.animationstart.animation),"TransitionEvent"in window||delete uW.transitionend.transition);var uK=uq("animationend"),uY=uq("animationiteration"),uX=uq("animationstart"),uG=uq("transitionend"),uZ=new Map,uJ="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function u0(e,t){uZ.set(e,t),eR(t,[e])}for(var u1=0;u1 title"):null)}var sY=null;function sX(){}function sG(){if(this.count--,0===this.count){if(this.stylesheets)sJ(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var sZ=null;function sJ(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,sZ=new Map,t.forEach(s0,e),sZ=null,sG.call(e))}function s0(e,t){if(!(4&t.state.loading)){var n=sZ.get(e);if(n)var r=n.get("last");else{n=new Map,sZ.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a1||s(t,e)})})}function s(t,e){try{var n;(n=i[t](e)).value instanceof c?Promise.resolve(n.value.v).then(l,u):f(a[0][2],n)}catch(t){f(a[0][3],t)}}function l(t){s("next",t)}function u(t){s("throw",t)}function f(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=l(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){(function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)})(r,i,(e=t[n](e)).done,e.value)})}}},e.__await=c,e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,s)}l((r=r.apply(t,e||[])).next())})},e.__classPrivateFieldGet=function(t,e,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},e.__classPrivateFieldIn=function(t,e){if(null===e||"object"!==(0,i.default)(e)&&"function"!=typeof e)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)},e.__classPrivateFieldSet=function(t,e,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},e.__createBinding=void 0,e.__decorate=function(t,e,n,r){var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if(("undefined"==typeof Reflect?"undefined":(0,i.default)(Reflect))==="object"&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__exportStar=function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||s(e,t,n)},e.__extends=function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},e.__spread=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function c(t){return this instanceof c?(this.v=t,this):new c(t)}e.__createBinding=s;var f=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}},function(t,e,n){"use strict";t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=r},function(t,e,n){"use strict";var r=n(364),i=n(368),a=n(369),o=n(370),s=n(654),l=i.apply(o()),u=function(t,e){return l(Object,arguments)};r(u,{getPolyfill:o,implementation:a,shim:s}),t.exports=u},function(t,e,n){"use strict";function r(e){return t.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={flow:!0,pick:!0,template:!0,log:!0,invariant:!0,LEVEL:!0,getContainerSize:!0,findViewById:!0,getViews:!0,getSiblingViews:!0,transformLabel:!0,getSplinePath:!0,deepAssign:!0,kebabCase:!0,renderStatistic:!0,renderGaugeStatistic:!0,measureTextWidth:!0,isBetween:!0,isRealNumber:!0};Object.defineProperty(e,"LEVEL",{enumerable:!0,get:function(){return s.LEVEL}}),Object.defineProperty(e,"deepAssign",{enumerable:!0,get:function(){return p.deepAssign}}),Object.defineProperty(e,"findViewById",{enumerable:!0,get:function(){return c.findViewById}}),Object.defineProperty(e,"flow",{enumerable:!0,get:function(){return i.flow}}),Object.defineProperty(e,"getContainerSize",{enumerable:!0,get:function(){return l.getContainerSize}}),Object.defineProperty(e,"getSiblingViews",{enumerable:!0,get:function(){return c.getSiblingViews}}),Object.defineProperty(e,"getSplinePath",{enumerable:!0,get:function(){return d.getSplinePath}}),Object.defineProperty(e,"getViews",{enumerable:!0,get:function(){return c.getViews}}),Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return s.invariant}}),Object.defineProperty(e,"isBetween",{enumerable:!0,get:function(){return y.isBetween}}),Object.defineProperty(e,"isRealNumber",{enumerable:!0,get:function(){return y.isRealNumber}}),Object.defineProperty(e,"kebabCase",{enumerable:!0,get:function(){return h.kebabCase}}),Object.defineProperty(e,"log",{enumerable:!0,get:function(){return s.log}}),Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return v.measureTextWidth}}),Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return a.pick}}),Object.defineProperty(e,"renderGaugeStatistic",{enumerable:!0,get:function(){return g.renderGaugeStatistic}}),Object.defineProperty(e,"renderStatistic",{enumerable:!0,get:function(){return g.renderStatistic}}),Object.defineProperty(e,"template",{enumerable:!0,get:function(){return o.template}}),Object.defineProperty(e,"transformLabel",{enumerable:!0,get:function(){return f.transformLabel}});var i=n(1160),a=n(538),o=n(1161),s=n(539),l=n(1162),u=n(1163);Object.keys(u).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(r,t))&&(t in e&&e[t]===u[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))});var c=n(540),f=n(1164),d=n(1165),p=n(541),h=n(1166),g=n(542),v=n(1167),y=n(302),m=n(197);Object.keys(m).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(r,t))&&(t in e&&e[t]===m[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return m[t]}}))});var b=n(121);Object.keys(b).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(r,t))&&(t in e&&e[t]===b[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return b[t]}}))})},function(t,e,n){"use strict";n.r(e),n.d(e,"VERSION",function(){return f});var r=n(235),i=n(619),a=n(25),o=n(66);n.d(e,"registerScale",function(){return o.registerScale}),n.d(e,"getScale",function(){return o.getScale}),n.d(e,"registerTickMethod",function(){return o.registerTickMethod});var s=n(187);n.d(e,"setGlobal",function(){return s.setGlobal}),n.d(e,"GLOBAL",function(){return s.GLOBAL}),n(1318),n(950);var l=n(459);for(var u in n.d(e,"createThemeByStyleSheet",function(){return l.c}),n.d(e,"antvLight",function(){return l.b}),n.d(e,"antvDark",function(){return l.a}),a)0>["default","registerScale","getScale","registerTickMethod","setGlobal","GLOBAL","VERSION","setDefaultErrorFallback","createThemeByStyleSheet","antvLight","antvDark"].indexOf(u)&&function(t){n.d(e,t,function(){return a[t]})}(u);var c=n(67);n.d(e,"setDefaultErrorFallback",function(){return c.c}),Object(a.registerEngine)("canvas",r),Object(a.registerEngine)("svg",i);var f="4.1.22",d=r.Canvas.prototype.getPointByClient;r.Canvas.prototype.getPointByClient=function(t,e){var n=d.call(this,t,e),r=this.get("el").getBoundingClientRect(),i=this.get("width"),a=this.get("height"),o=r.width,s=r.height;return{x:n.x/(o/i),y:n.y/(s/a)}}},function(t,e,n){"use strict";t.exports=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return{width:Object(D.isNumber)(e.width)?e.width:t.clientWidth,height:Object(D.isNumber)(e.height)?e.height:t.clientHeight}}var R=n(16),N=function t(e,n){if(Object(D.isObject)(e)&&Object(D.isObject)(n)){var r=Object.keys(e),i=Object.keys(n);if(r.length!==i.length)return!1;for(var a=!0,o=0;oe.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};Object(V.registerLocale)("en-US",z.EN_US_LOCALE),Object(V.registerLocale)("zh-CN",W.ZH_CN_LOCALE);var H=x.a.createElement("div",{style:{position:"absolute",top:"48%",left:"50%",color:"#aaa",textAlign:"center"}},"暂无数据"),X={padding:"8px 24px 10px 10px",fontFamily:"PingFang SC",fontSize:12,color:"grey",textAlign:"left",lineHeight:"16px"},U={padding:"10px 0 0 10px",fontFamily:"PingFang SC",fontSize:18,color:"black",textAlign:"left",lineHeight:"20px"},q=function(t){h()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=m()(r);if(e){var i=m()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return v()(this,t)});function r(){var t;return c()(this,r),t=n.apply(this,arguments),t._context={chart:null},t}return d()(r,[{key:"componentDidMount",value:function(){this.props.children&&this.g2Instance.chart&&this.g2Instance.chart.render(),Object(R.b)(this.g2Instance,{},this.props),this.g2Instance.data=this.props.data,this.preConfig=Object(j.a)(Object(I.a)(this.props,[].concat(l()(F.a),["container","PlotClass","onGetG2Instance","data"])))}},{key:"componentDidUpdate",value:function(t){this.props.children&&this.g2Instance.chart&&this.g2Instance.chart.render(),Object(R.b)(this.g2Instance,t,this.props)}},{key:"componentWillUnmount",value:function(){var t=this;this.g2Instance&&setTimeout(function(){t.g2Instance.destroy(),t.g2Instance=null,t._context.chart=null},0)}},{key:"getG2Instance",value:function(){return this.g2Instance}},{key:"getChartView",value:function(){return this.g2Instance.chart}},{key:"checkInstanceReady",value:function(){var t=Object(I.a)(this.props,[].concat(l()(F.a),["container","PlotClass","onGetG2Instance","data"]));this.g2Instance?this.shouldReCreate()?(this.g2Instance.destroy(),this.initInstance(),this.g2Instance.render()):this.diffConfig()?this.g2Instance.update(o()(o()({},t),{data:this.props.data})):this.diffData()&&this.g2Instance.changeData(this.props.data):(this.initInstance(),this.g2Instance.render()),this.preConfig=Object(j.a)(t),this.g2Instance.data=this.props.data}},{key:"initInstance",value:function(){var t=this.props,e=t.container,n=t.PlotClass,r=t.onGetG2Instance,i=(t.children,Y(t,["container","PlotClass","onGetG2Instance","children"]));this.g2Instance=new n(e,i),this._context.chart=this.g2Instance,M()(r)&&r(this.g2Instance)}},{key:"diffConfig",value:function(){return!N(this.preConfig||{},Object(I.a)(this.props,[].concat(l()(F.a),["container","PlotClass","onGetG2Instance","data"])))}},{key:"diffData",value:function(){var t=this.g2Instance.data,e=this.props.data;if(!Object(D.isArray)(t)||!Object(D.isArray)(e))return!t===e;if(t.length!==e.length)return!0;var n=!0;return t.forEach(function(t,r){Object(T.a)(t,e[r])||(n=!1)}),!n}},{key:"shouldReCreate",value:function(){return!!this.props.forceUpdate}},{key:"render",value:function(){this.checkInstanceReady();var t=this.getChartView();return x.a.createElement(w.a.Provider,{value:this._context},x.a.createElement(E.a.Provider,{value:t},x.a.createElement("div",{key:O()("plot-chart")},this.props.children)))}}]),r}(x.a.Component),Z=Object(A.a)(q);e.a=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return t},r=x.a.forwardRef(function(e,r){var a=e.title,s=e.description,l=e.autoFit,u=e.forceFit,c=e.errorContent,f=void 0===c?S.a:c,d=e.containerStyle,p=e.containerProps,h=e.placeholder,g=e.ErrorBoundaryProps,v=e.isMaterial,y=n(Y(e,["title","description","autoFit","forceFit","errorContent","containerStyle","containerProps","placeholder","ErrorBoundaryProps","isMaterial"])),m=Object(b.useRef)(),_=Object(b.useRef)(),O=Object(b.useRef)(),P=Object(b.useState)(0),M=i()(P,2),A=M[0],w=M[1],E=Object(b.useRef)(),T=Object(b.useCallback)(function(){if(m.current){var t=k(m.current,e),n=_.current?k(_.current):{width:0,height:0},r=O.current?k(O.current):{width:0,height:0},i=t.height-n.height-r.height;0===i&&(i=350),i<20&&(i=20),Math.abs(A-i)>1&&w(i)}},[m.current,_.current,A,O.current]),I=Object(b.useCallback)(Object(D.debounce)(T,500),[T]),j=x.a.isValidElement(f)?function(){return f}:f;if(h&&!y.data){var F=!0===h?H:h;return x.a.createElement(S.b,o()({FallbackComponent:j},g),x.a.createElement("div",{style:{width:e.width||"100%",height:e.height||400,textAlign:"center",position:"relative"}},F))}var N=Object(C.a)(a,!1),B=Object(C.a)(s,!1),V=o()(o()({},U),N.style),z=o()(o()(o()({},X),B.style),{top:V.height}),W=void 0!==u?u:void 0===l||l;return Object(D.isNil)(u)||G()(!1,"请使用autoFit替代forceFit"),Object(b.useEffect)(function(){return W?m.current?(T(),E.current=new L.ResizeObserver(I),E.current.observe(m.current)):w(0):m.current&&(T(),E.current&&E.current.unobserve(m.current)),function(){E.current&&m.current&&E.current.unobserve(m.current)}},[m.current,W]),x.a.createElement(S.b,o()({FallbackComponent:j},g),x.a.createElement("div",o()({ref:function(t){m.current=t,v&&(Object(D.isFunction)(r)?r(t):r&&(r.current=t))},className:"bizcharts-plot"},p,{style:{position:"relative",height:e.height||"100%",width:e.width||"100%"}}),N.visible&&x.a.createElement("div",o()({ref:_},Object(R.d)(y),{className:"bizcharts-plot-title",style:V}),N.text),B.visible&&x.a.createElement("div",o()({ref:O},Object(R.a)(y),{className:"bizcharts-plot-description",style:z}),B.text),!!A&&x.a.createElement(Z,o()({appendPadding:[10,5,10,10],autoFit:W,ref:v?void 0:r},y,{PlotClass:t,containerStyle:o()(o()({},d),{height:A})}))))});return r.displayName=e||t.name,r}},function(t,e,n){"use strict";var r=n(734);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(6).default,i=n(735);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=e.BRUSH_FILTER_EVENTS=e.VIEW_LIFE_CIRCLE=void 0;var r=n(1),i=n(25),a=n(206),o=n(106);(0,i.registerTheme)("dark",(0,o.createThemeByStyleSheet)(a.antvDark));var s=(0,r.__importStar)(n(205)),l=(0,r.__importStar)(n(324)),u=n(25);(0,u.registerEngine)("canvas",s),(0,u.registerEngine)("svg",l);var c=n(25),f=(0,r.__importDefault)(n(325)),d=(0,r.__importDefault)(n(326)),p=(0,r.__importDefault)(n(327)),h=(0,r.__importDefault)(n(328)),g=(0,r.__importDefault)(n(329)),v=(0,r.__importDefault)(n(158)),y=(0,r.__importDefault)(n(330)),m=(0,r.__importDefault)(n(331)),b=(0,r.__importDefault)(n(332)),x=(0,r.__importDefault)(n(989));(0,c.registerGeometry)("Polygon",m.default),(0,c.registerGeometry)("Interval",h.default),(0,c.registerGeometry)("Schema",b.default),(0,c.registerGeometry)("Path",v.default),(0,c.registerGeometry)("Point",y.default),(0,c.registerGeometry)("Line",g.default),(0,c.registerGeometry)("Area",f.default),(0,c.registerGeometry)("Edge",d.default),(0,c.registerGeometry)("Heatmap",p.default),(0,c.registerGeometry)("Violin",x.default),n(991),n(992),n(993),n(994),n(995),n(996),n(465),n(466),n(467),n(468),n(469),n(281),n(470),n(471),n(472),n(473),n(474),n(475),n(997),n(998);var _=n(25),O=(0,r.__importDefault)(n(100)),P=(0,r.__importDefault)(n(163)),M=(0,r.__importDefault)(n(164)),A=(0,r.__importDefault)(n(214));(0,_.registerGeometryLabel)("base",O.default),(0,_.registerGeometryLabel)("interval",P.default),(0,_.registerGeometryLabel)("pie",M.default),(0,_.registerGeometryLabel)("polar",A.default);var S=n(25),w=n(333),E=n(999),C=n(1e3),T=n(334),I=n(335),j=n(225),F=n(1001),L=n(1003),D=n(1005),k=n(1006),R=n(1007),N=n(1008),B=n(1009);(0,S.registerGeometryLabelLayout)("overlap",j.overlap),(0,S.registerGeometryLabelLayout)("distribute",w.distribute),(0,S.registerGeometryLabelLayout)("fixed-overlap",j.fixedOverlap),(0,S.registerGeometryLabelLayout)("hide-overlap",F.hideOverlap),(0,S.registerGeometryLabelLayout)("limit-in-shape",I.limitInShape),(0,S.registerGeometryLabelLayout)("limit-in-canvas",T.limitInCanvas),(0,S.registerGeometryLabelLayout)("limit-in-plot",B.limitInPlot),(0,S.registerGeometryLabelLayout)("pie-outer",E.pieOuterLabelLayout),(0,S.registerGeometryLabelLayout)("adjust-color",L.adjustColor),(0,S.registerGeometryLabelLayout)("interval-adjust-position",D.intervalAdjustPosition),(0,S.registerGeometryLabelLayout)("interval-hide-overlap",k.intervalHideOverlap),(0,S.registerGeometryLabelLayout)("point-adjust-position",R.pointAdjustPosition),(0,S.registerGeometryLabelLayout)("pie-spider",C.pieSpiderLabelLayout),(0,S.registerGeometryLabelLayout)("path-adjust-position",N.pathAdjustPosition);var G=n(222),V=n(167),z=n(162),W=n(320),Y=n(223),H=n(321),X=n(322),U=n(224),q=n(25);(0,q.registerAnimation)("fade-in",G.fadeIn),(0,q.registerAnimation)("fade-out",G.fadeOut),(0,q.registerAnimation)("grow-in-x",V.growInX),(0,q.registerAnimation)("grow-in-xy",V.growInXY),(0,q.registerAnimation)("grow-in-y",V.growInY),(0,q.registerAnimation)("scale-in-x",Y.scaleInX),(0,q.registerAnimation)("scale-in-y",Y.scaleInY),(0,q.registerAnimation)("wave-in",X.waveIn),(0,q.registerAnimation)("zoom-in",U.zoomIn),(0,q.registerAnimation)("zoom-out",U.zoomOut),(0,q.registerAnimation)("position-update",W.positionUpdate),(0,q.registerAnimation)("sector-path-update",H.sectorPathUpdate),(0,q.registerAnimation)("path-in",z.pathIn);var Z=n(25),K=(0,r.__importDefault)(n(336)),$=(0,r.__importDefault)(n(337)),Q=(0,r.__importDefault)(n(338)),J=(0,r.__importDefault)(n(339)),tt=(0,r.__importDefault)(n(340)),te=(0,r.__importDefault)(n(341));(0,Z.registerFacet)("rect",tt.default),(0,Z.registerFacet)("mirror",J.default),(0,Z.registerFacet)("list",$.default),(0,Z.registerFacet)("matrix",Q.default),(0,Z.registerFacet)("circle",K.default),(0,Z.registerFacet)("tree",te.default);var tn=n(25),tr=(0,r.__importDefault)(n(319)),ti=(0,r.__importDefault)(n(342)),ta=(0,r.__importDefault)(n(343)),to=(0,r.__importDefault)(n(344)),ts=(0,r.__importDefault)(n(204)),tl=(0,r.__importDefault)(n(1013));(0,tn.registerComponentController)("axis",ti.default),(0,tn.registerComponentController)("legend",ta.default),(0,tn.registerComponentController)("tooltip",ts.default),(0,tn.registerComponentController)("annotation",tr.default),(0,tn.registerComponentController)("slider",to.default),(0,tn.registerComponentController)("scrollbar",tl.default);var tu=n(25),tc=(0,r.__importDefault)(n(345)),tf=(0,r.__importDefault)(n(346)),td=(0,r.__importDefault)(n(127)),tp=(0,r.__importDefault)(n(347)),th=(0,r.__importDefault)(n(348)),tg=(0,r.__importDefault)(n(349)),tv=(0,r.__importDefault)(n(350)),ty=(0,r.__importDefault)(n(351)),tm=(0,r.__importDefault)(n(159)),tb=(0,r.__importDefault)(n(352)),tx=(0,r.__importDefault)(n(353)),t_=(0,r.__importStar)(n(226));Object.defineProperty(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return t_.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var tO=(0,r.__importDefault)(n(354)),tP=(0,r.__importDefault)(n(355)),tM=(0,r.__importDefault)(n(356)),tA=(0,r.__importDefault)(n(357)),tS=(0,r.__importDefault)(n(358)),tw=(0,r.__importDefault)(n(227)),tE=(0,r.__importDefault)(n(359)),tC=(0,r.__importDefault)(n(360)),tT=(0,r.__importDefault)(n(1015)),tI=(0,r.__importDefault)(n(1016)),tj=(0,r.__importDefault)(n(1017)),tF=(0,r.__importDefault)(n(478)),tL=(0,r.__importDefault)(n(477)),tD=(0,r.__importDefault)(n(1018)),tk=(0,r.__importDefault)(n(361)),tR=(0,r.__importDefault)(n(362)),tN=(0,r.__importStar)(n(479));Object.defineProperty(e,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return tN.BRUSH_FILTER_EVENTS}});var tB=(0,r.__importDefault)(n(1019)),tG=(0,r.__importDefault)(n(1020)),tV=(0,r.__importDefault)(n(1021)),tz=(0,r.__importDefault)(n(1022)),tW=(0,r.__importDefault)(n(1023)),tY=(0,r.__importDefault)(n(1024)),tH=(0,r.__importDefault)(n(1025)),tX=(0,r.__importDefault)(n(1026)),tU=(0,r.__importDefault)(n(1027));(0,tu.registerAction)("tooltip",td.default),(0,tu.registerAction)("sibling-tooltip",tf.default),(0,tu.registerAction)("ellipsis-text",tp.default),(0,tu.registerAction)("element-active",th.default),(0,tu.registerAction)("element-single-active",ty.default),(0,tu.registerAction)("element-range-active",tv.default),(0,tu.registerAction)("element-highlight",tm.default),(0,tu.registerAction)("element-highlight-by-x",tx.default),(0,tu.registerAction)("element-highlight-by-color",tb.default),(0,tu.registerAction)("element-single-highlight",tO.default),(0,tu.registerAction)("element-range-highlight",t_.default),(0,tu.registerAction)("element-sibling-highlight",t_.default,{effectSiblings:!0,effectByRecord:!0}),(0,tu.registerAction)("element-selected",tM.default),(0,tu.registerAction)("element-single-selected",tA.default),(0,tu.registerAction)("element-range-selected",tP.default),(0,tu.registerAction)("element-link-by-color",tg.default),(0,tu.registerAction)("active-region",tc.default),(0,tu.registerAction)("list-active",tS.default),(0,tu.registerAction)("list-selected",tE.default),(0,tu.registerAction)("list-highlight",tw.default),(0,tu.registerAction)("list-unchecked",tC.default),(0,tu.registerAction)("list-checked",tT.default),(0,tu.registerAction)("legend-item-highlight",tw.default,{componentNames:["legend"]}),(0,tu.registerAction)("axis-label-highlight",tw.default,{componentNames:["axis"]}),(0,tu.registerAction)("rect-mask",tL.default),(0,tu.registerAction)("x-rect-mask",tj.default,{dim:"x"}),(0,tu.registerAction)("y-rect-mask",tj.default,{dim:"y"}),(0,tu.registerAction)("circle-mask",tI.default),(0,tu.registerAction)("path-mask",tF.default),(0,tu.registerAction)("smooth-path-mask",tD.default),(0,tu.registerAction)("cursor",tk.default),(0,tu.registerAction)("data-filter",tR.default),(0,tu.registerAction)("brush",tN.default),(0,tu.registerAction)("brush-x",tN.default,{dims:["x"]}),(0,tu.registerAction)("brush-y",tN.default,{dims:["y"]}),(0,tu.registerAction)("sibling-filter",tB.default),(0,tu.registerAction)("sibling-x-filter",tB.default),(0,tu.registerAction)("sibling-y-filter",tB.default),(0,tu.registerAction)("element-filter",tG.default),(0,tu.registerAction)("element-sibling-filter",tV.default),(0,tu.registerAction)("element-sibling-filter-record",tV.default,{byRecord:!0}),(0,tu.registerAction)("view-drag",tW.default),(0,tu.registerAction)("view-move",tY.default),(0,tu.registerAction)("scale-translate",tH.default),(0,tu.registerAction)("scale-zoom",tX.default),(0,tu.registerAction)("reset-button",tz.default,{name:"reset-button",text:"reset"}),(0,tu.registerAction)("mousewheel-scroll",tU.default);var tq=n(25);function tZ(t){return t.isInPlot()}function tK(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}(0,tq.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,tq.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,tq.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,tq.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,tq.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,tq.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),(0,tq.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),(0,tq.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),(0,tq.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),(0,tq.registerInteraction)("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),(0,tq.registerInteraction)("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),(0,tq.registerInteraction)("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),(0,tq.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:tZ,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:tZ,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:tZ,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),(0,tq.registerInteraction)("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),(0,tq.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:tZ,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:tZ,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:tZ,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),(0,tq.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:tZ,action:"path-mask:start"},{trigger:"mousedown",isEnable:tZ,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),(0,tq.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),(0,tq.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),(0,tq.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),(0,tq.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),(0,tq.registerInteraction)("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),(0,tq.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),(0,tq.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return tK(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!tK(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),(0,tq.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),(0,tq.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var t$=n(21);Object.defineProperty(e,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return t$.VIEW_LIFE_CIRCLE}}),(0,r.__exportStar)(n(25),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(1056);Object.defineProperty(e,"flow",{enumerable:!0,get:function(){return i.flow}});var a=n(499);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return a.pick}});var o=n(1057);Object.defineProperty(e,"template",{enumerable:!0,get:function(){return o.template}});var s=n(500);Object.defineProperty(e,"log",{enumerable:!0,get:function(){return s.log}}),Object.defineProperty(e,"invariant",{enumerable:!0,get:function(){return s.invariant}}),Object.defineProperty(e,"LEVEL",{enumerable:!0,get:function(){return s.LEVEL}});var l=n(1058);Object.defineProperty(e,"getContainerSize",{enumerable:!0,get:function(){return l.getContainerSize}}),r.__exportStar(n(1059),e);var u=n(501);Object.defineProperty(e,"findViewById",{enumerable:!0,get:function(){return u.findViewById}}),Object.defineProperty(e,"getViews",{enumerable:!0,get:function(){return u.getViews}}),Object.defineProperty(e,"getSiblingViews",{enumerable:!0,get:function(){return u.getSiblingViews}});var c=n(1060);Object.defineProperty(e,"transformLabel",{enumerable:!0,get:function(){return c.transformLabel}});var f=n(1061);Object.defineProperty(e,"getSplinePath",{enumerable:!0,get:function(){return f.getSplinePath}});var d=n(502);Object.defineProperty(e,"deepAssign",{enumerable:!0,get:function(){return d.deepAssign}});var p=n(1062);Object.defineProperty(e,"kebabCase",{enumerable:!0,get:function(){return p.kebabCase}});var h=n(503);Object.defineProperty(e,"renderStatistic",{enumerable:!0,get:function(){return h.renderStatistic}}),Object.defineProperty(e,"renderGaugeStatistic",{enumerable:!0,get:function(){return h.renderGaugeStatistic}});var g=n(1063);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return g.measureTextWidth}});var v=n(291);Object.defineProperty(e,"isBetween",{enumerable:!0,get:function(){return v.isBetween}}),Object.defineProperty(e,"isRealNumber",{enumerable:!0,get:function(){return v.isRealNumber}}),r.__exportStar(n(292),e),r.__exportStar(n(293),e)},function(t,e,n){"use strict";n.d(e,"f",function(){return c}),n.d(e,"e",function(){return d}),n.d(e,"c",function(){return p}),n.d(e,"b",function(){return h}),n.d(e,"d",function(){return g}),n.d(e,"a",function(){return v});var r=n(4),i=n.n(r),a=n(17),o=n.n(a),s=n(0),l=n(230),u=n(137),c=function(t,e){t.forEach(function(t){var n=t.sourceKey,r=t.targetKey,i=t.notice,a=Object(s.get)(e,n);a&&(o()(!1,i),Object(s.set)(e,r,a))})},f=function(t,e){var n=Object(s.get)(t,e);if(!1===n||null===n){t[e]=null;return}if(void 0!==n){if(!0===n){t[e]={};return}if(!Object(s.isObject)(n)){o()(!0,"".concat(e," 配置参数不正确"));return}d(n,"line",null),d(n,"grid",null),d(n,"label",null),d(n,"tickLine",null),d(n,"title",null);var r=Object(s.get)(n,"label");if(r&&Object(s.isObject)(r)){var a=r.suffix;a&&Object(s.set)(r,"formatter",function(t){return"".concat(t).concat(a)});var l=r.offsetX,u=r.offsetY,c=r.offset;!Object(s.isNil)(c)||Object(s.isNil)(l)&&Object(s.isNil)(u)||("xAxis"===e&&Object(s.set)(r,"offset",Object(s.isNil)(l)?u:l),"yAxis"===e&&Object(s.set)(r,"offset",Object(s.isNil)(u)?l:u))}t[e]=i()(i()({},n),{label:r})}},d=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(s.get)(t,"".concat(e,".visible"));return(!1===r||null===r)&&Object(s.set)(t,e,n),r},p=function(t){var e=i()({},t);if(d(e,"tooltip"),d(e,"legend")){d(e,"legend.title");var n=Object(s.get)(e,"legend.position");n&&Object(s.set)(e,"legend.position",{"top-center":"top","right-center":"right","left-center":"left","bottom-center":"bottom"}[n]||n)}var r=Object(s.get)(e,"legend.formatter");if(r){var a=Object(s.get)(e,"legend.itemName",{});Object(s.set)(e,"legend.itemName",i()(i()({},a),{formatter:r}))}var o=Object(s.get)(e,"legend.text");o&&Object(s.set)(e,"legend.itemName",o),d(e,"label"),f(e,"xAxis"),f(e,"yAxis");var u=Object(s.get)(e,"guideLine",[]),c=Object(s.get)(e,"data",[]),p=Object(s.get)(e,"yField","y");u.forEach(function(t){if(c.length>0){var n="median";switch(t.type){case"max":n=Object(s.maxBy)(c,function(t){return t[p]})[p];break;case"mean":n=Object(l.a)(c.map(function(t){return t[p]}))/c.length;break;default:n=Object(s.minBy)(c,function(t){return t[p]})[p]}var r=i()(i()({start:["min",n],end:["max",n],style:t.lineStyle,text:{content:n}},t),{type:"line"});Object(s.get)(e,"annotations")||Object(s.set)(e,"annotations",[]),e.annotations.push(r),Object(s.set)(e,"point",!1)}});var h=Object(s.get)(e,"interactions",[]).find(function(t){return"slider"===t.type});return h&&Object(s.isNil)(e.slider)&&(e.slider=h.cfg),e},h=function(t,e,n){var r=Object(u.a)(Object(s.get)(e,"events",[])),i=Object(u.a)(Object(s.get)(n,"events",[]));r.forEach(function(n){t.off(n[1],e.events[n[0]])}),i.forEach(function(e){t.on(e[1],n.events[e[0]])})},g=function(t){var e=Object(s.get)(t,"events",{}),n={};return["onTitleClick","onTitleDblClick","onTitleMouseleave","onTitleMousemove","onTitleMousedown","onTitleMouseup","onTitleMouseenter"].forEach(function(t){e[t]&&(n[t.replace("Title","")]=e[t])}),n},v=function(t){var e=Object(s.get)(t,"events",{}),n={};return["onDescriptionClick","onDescriptionDblClick","onDescriptionMouseleave","onDescriptionMousemove","onDescriptionMousedown","onDescriptionMouseup","onDescriptionMouseenter"].forEach(function(t){e[t]&&(n[t.replace("Description","")]=e[t])}),n}},function(t,e,n){"use strict";t.exports=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(50);e.default=function(t,e,n){for(var i=0,a=r.default(e)?e.split("."):e;t&&i=e||n.height>=e?n:null}function l(t){var e=t.geometries,n=[];return(0,r.each)(e,function(t){var e=t.elements;n=n.concat(e)}),t.views&&t.views.length&&(0,r.each)(t.views,function(t){n=n.concat(l(t))}),n}function u(t,e){var n=t.getModel().data;return(0,r.isArray)(n)?n[0][e]:n[e]}function c(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e||r.height>=e?n.attr("path"):null;if(!i)return;return p(t.view,i)}var a=s(t,e);return a?f(t.view,a):null},e.getSiblingMaskElements=function(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,a=h(i,e,{x:r.x,y:r.y}),o=h(i,e,{x:r.maxX,y:r.maxY}),l={minX:a.x,minY:a.y,maxX:o.x,maxY:o.y};return f(e,l)},e.getElements=l,e.getElementsByField=function(t,e,n){return l(t).filter(function(t){return u(t,e)===n})},e.getElementsByState=function(t,e){var n=t.geometries,i=[];return(0,r.each)(n,function(t){var n=t.getElementsBy(function(t){return t.hasState(e)});i=i.concat(n)}),i},e.getElementValue=u,e.intersectRect=c,e.getIntersectElements=f,e.getElementsByPath=p,e.getComponents=function(t){return t.getComponents().map(function(t){return t.component})},e.distance=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.getSpline=function(t,e){if(t.length<=2)return(0,i.getLinePath)(t,!1);var n=t[0],a=[];(0,r.each)(t,function(t){a.push(t.x),a.push(t.y)});var o=(0,i.catmullRom2bezier)(a,e,null);return o.unshift(["M",n.x,n.y]),o},e.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},e.getSilbings=function(t){var e=t.parent,n=null;return e&&(n=e.views.filter(function(e){return e!==t})),n},e.getSiblingPoint=h,e.isInRecords=function(t,e,n,i){var a=!1;return(0,r.each)(t,function(t){if(t[n]===e[n]&&t[i]===e[i])return a=!0,!1}),a},e.getScaleByField=function t(e,n){var i=e.getScaleByField(n);return!i&&e.views&&(0,r.each)(e.views,function(e){if(i=t(e,n))return!1}),i}},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.ext=void 0,Object.defineProperty(e,"mat3",{enumerable:!0,get:function(){return i.mat3}}),Object.defineProperty(e,"vec2",{enumerable:!0,get:function(){return i.vec2}}),Object.defineProperty(e,"vec3",{enumerable:!0,get:function(){return i.vec3}});var i=n(170),a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=a?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(751));function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}e.ext=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBackgroundRectStyle=e.getStyle=void 0;var r=n(1),i=n(0);e.getStyle=function(t,e,n,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,l=t.defaultStyle,u=t.color,c=t.size,f=(0,r.__assign)((0,r.__assign)({},l),s);return u&&(e&&!s.stroke&&(f.stroke=u),n&&!s.fill&&(f.fill=u)),a&&(0,i.isNil)(s[a])&&!(0,i.isNil)(c)&&(f[a]=c),f},e.getBackgroundRectStyle=function(t){return(0,i.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},(0,i.get)(t,["background","style"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=e.annotation=e.scale=e.scrollbar=e.slider=e.state=e.theme=e.animation=e.interaction=e.tooltip=e.legend=void 0;var r=n(1),i=n(0),a=n(509),o=n(15);e.legend=function(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,a=n.seriesField;return!1===r?e.legend(!1):(i||a)&&e.legend(i||a,r),t},e.tooltip=function(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t},e.interaction=function(t){var e=t.chart,n=t.options.interactions;return i.each(n,function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})}),t},e.animation=function(t){var e=t.chart,n=t.options.animation;return"boolean"==typeof n?e.animate(n):e.animate(!0),i.each(e.geometries,function(t){t.animate(n)}),t},e.theme=function(t){var e=t.chart,n=t.options.theme;return n&&e.theme(n),t},e.state=function(t){var e=t.chart,n=t.options.state;return n&&i.each(e.geometries,function(t){t.state(n)}),t},e.slider=function(t){var e=t.chart,n=t.options.slider;return e.option("slider",n),t},e.scrollbar=function(t){var e=t.chart,n=t.options.scrollbar;return e.option("scrollbar",n),t},e.scale=function(t,e){return function(n){var r=n.chart,s=n.options,l={};return i.each(t,function(t,e){l[e]=o.pick(t,a.AXIS_META_CONFIG_KEYS)}),l=o.deepAssign({},e,s.meta,l),r.scale(l),n}},e.annotation=function(t){return function(e){var n=e.chart,a=e.options,o=n.getController("annotation");return i.each(r.__spreadArrays(a.annotations||[],t||[]),function(t){o.annotation(t)}),e}},e.limitInPlot=function(t){var e=t.chart,n=t.options,r=n.yAxis,a=n.limitInPlot,s=a;return i.isObject(r)&&i.isNil(a)&&(s=!!Object.values(o.pick(r,["min","max","minLimit","maxLimit"])).some(function(t){return!i.isNil(t)})),e.limitInPlot=s,t};var s=n(153);Object.defineProperty(e,"pattern",{enumerable:!0,get:function(){return s.pattern}})},function(t,e,n){"use strict";var r=n(4),i=n.n(r),a=n(9),o=n.n(a),s=n(10),l=n.n(s),u=n(12),c=n.n(u),f=n(13),d=n.n(f),p=n(5),h=n.n(p),g=n(3),v=n.n(g),y=n(618),m=n.n(y),b=n(202),x=n(221),_=n.n(x),O=n(0),P=n(160);m.a.prototype.render=function(){if(this.get("isReactElement")){var t=this.getContainer(),e=this.get("content"),n=this.get("refreshDeps"),r=v.a.isValidElement(e)?e:e(t);void 0!==this.preRefreshDeps&&Object(O.isEqual)(this.preRefreshDeps,n)||(_.a.render(r,t),this.preRefreshDeps=n)}else{var i=this.getContainer(),a=this.get("html");Object(b.clearDom)(i);var o=Object(O.isFunction)(a)?a(i):a;Object(O.isElement)(o)?i.appendChild(o):Object(O.isString)(o)&&i.appendChild(Object(P.createDom)(o))}this.resetPosition()};var M=n(319),A=n.n(M),S=n(47);Object(n(8).registerComponentController)("annotation",A.a);var w=function(t){c()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h()(r);if(e){var i=h()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return d()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.annotationType="line",t}return l()(r,[{key:"componentDidMount",value:function(){var t=this.getChartIns();this.id=O.uniqueId("annotation"),this.annotation=t.annotation(),"ReactElement"===this.annotationType?this.annotation.annotation(i()({type:"html",isReactElement:!0},this.props)):this.annotation.annotation(i()({type:this.annotationType},this.props)),this.annotation.option[this.annotation.option.length-1].__id=this.id}},{key:"componentDidUpdate",value:function(){var t=this,e=null;this.annotation.option.forEach(function(n,r){n.__id===t.id&&(e=r)}),"ReactElement"===this.annotationType?this.annotation.option[e]=i()(i()({type:"html",isReactElement:!0},this.props),{__id:this.id}):this.annotation.option[e]=i()(i()({type:this.annotationType},this.props),{__id:this.id})}},{key:"componentWillUnmount",value:function(){var t=this,e=null;this.annotation&&(this.annotation.option.forEach(function(n,r){n.__id===t.id&&(e=r)}),null!==e&&this.annotation.option.splice(e,1),this.annotation=null)}},{key:"getChartIns",value:function(){return this.context}},{key:"render",value:function(){return v.a.createElement(v.a.Fragment,null)}}]),r}(v.a.Component);w.contextType=S.a,e.a=w},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(68));e.default=function(t){return Array.isArray?Array.isArray(t):(0,i.default)(t,"Array")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null==t}},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Arc",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Cubic",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Quad",{enumerable:!0,get:function(){return a.default}}),e.Util=void 0;var a=r(n(792)),o=r(n(793)),s=r(n(794)),l=r(n(174)),u=r(n(796)),c=r(n(411)),f=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=d(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(87));function d(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(d=function(t){return t?n:e})(t)}e.Util=f},function(t,e,n){"use strict";var r=n(12),i=n.n(r),a=n(13),o=n.n(a),s=n(5),l=n.n(s),u=n(45),c=n.n(u),f=n(9),d=n.n(f),p=n(10),h=n.n(p),g=n(3),v=n.n(g),y=n(50),m=n.n(y),b=n(28),x=n.n(b),_=n(100),O=n.n(_);n(491);var P=n(47),M=n(8),A=n(55),S=n.n(A),w=n(23),E=n.n(w),C=n(82),T=function(t,e,n,r){var i,a;if(null===t){S()(n,function(t){var n=e[t];void 0!==n&&(E()(n)||(n=[n]),r(n,t))});return}S()(n,function(n){i=t[n],a=e[n],Object(C.a)(a,i)||(E()(a)||(a=[a]),r(a,n))})},I=n(17),j=n.n(I);n(290);var F=n(348),L=n.n(F),D=n(349),k=n.n(D),R=n(350),N=n.n(R),B=n(351),G=n.n(B),V=n(159),z=n.n(V),W=n(353),Y=n.n(W),H=n(352),X=n.n(H),U=n(354),q=n.n(U),Z=n(226),K=n.n(Z),$=n(356),Q=n.n($),J=n(357),tt=n.n(J),te=n(355),tn=n.n(te),tr=n(361),ti=n.n(tr);Object(M.registerAction)("cursor",ti.a),Object(M.registerAction)("element-active",L.a),Object(M.registerAction)("element-single-active",G.a),Object(M.registerAction)("element-range-active",N.a),Object(M.registerAction)("element-highlight",z.a),Object(M.registerAction)("element-highlight-by-x",Y.a),Object(M.registerAction)("element-highlight-by-color",X.a),Object(M.registerAction)("element-single-highlight",q.a),Object(M.registerAction)("element-range-highlight",K.a),Object(M.registerAction)("element-sibling-highlight",K.a,{effectSiblings:!0,effectByRecord:!0}),Object(M.registerAction)("element-selected",Q.a),Object(M.registerAction)("element-single-selected",tt.a),Object(M.registerAction)("element-range-selected",tn.a),Object(M.registerAction)("element-link-by-color",k.a),Object(M.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Object(M.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Object(M.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Object(M.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Object(M.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]});var ta=n(75);Object(M.registerGeometryLabel)("base",O.a);var to=["line","area"],ts=function(){function t(){d()(this,t),this.config={}}return h()(t,[{key:"setView",value:function(t){this.view=t,this.rootChart=t.rootChart||t}},{key:"createGeomInstance",value:function(t,e){this.geom=this.view[t](e);var n=e.sortable;this.geom.__beforeMapping=this.geom.beforeMapping,this.geom.beforeMapping=function(e){var r=this.getXScale();return!1!==n&&e&&e[0]&&to.includes(t)&&["time","timeCat"].includes(r.type)&&this.sort(e),this.__beforeMapping(e)},this.GemoBaseClassName=t}},{key:"update",value:function(t,e){var n=this;this.geom||(this.setView(e.context),this.createGeomInstance(e.GemoBaseClassName,t),this.interactionTypes=e.interactionTypes),T(this.config,t,["position","shape","color","label","style","tooltip","size","animate","state","customInfo"],function(t,e){var r;j()(!("label"===e&&!0===t[0]),"label 值类型错误,应为false | LabelOption | FieldString"),(r=n.geom)[e].apply(r,c()(t))}),T(this.config,t,["adjust"],function(t,e){m()(t[0])?n.geom[e](t[0]):n.geom[e](t)}),this.geom.state(t.state||{}),this.rootChart.on("processElemens",function(){x()(t.setElements)&&t.setElements(n.geom.elements)}),T(this.config,t,this.interactionTypes,function(t,e){t[0]?n.rootChart.interaction(e):n.rootChart.removeInteraction(e)}),this.config=Object(ta.a)(t)}},{key:"destroy",value:function(){this.geom&&(this.geom.destroy(),this.geom=null),this.config={}}}]),t}(),tl=function(t){i()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=l()(r);if(e){var i=l()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return o()(this,t)});function r(t){var e;return d()(this,r),(e=n.call(this,t)).interactionTypes=[],e.geomHelper=new ts,e}return h()(r,[{key:"componentWillUnmount",value:function(){this.geomHelper.destroy()}},{key:"render",value:function(){var t=this;return this.geomHelper.update(this.props,this),v.a.createElement(v.a.Fragment,null,v.a.Children.map(this.props.children,function(e){return v.a.isValidElement(e)?v.a.cloneElement(e,{parentInstance:t.geomHelper.geom}):v.a.createElement(v.a.Fragment,null)}))}}]),r}(v.a.Component);tl.contextType=P.a,e.a=tl},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(3),i=n.n(r),a=n(47);function o(){return i.a.useContext(a.a)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(432),s=n(90),l=n(42),u=r(n(254)),c="update_status",f=["visible","tip","delegateObject"],d=["container","group","shapesMap","isRegister","isUpdating","destroyed"],p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return(0,a.each)(this.get("shapesMap"),function(n){n.get("name")===t&&e.push(n)}),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=(0,s.applyMatrix2BBox)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),(0,o.propagationDelegate)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",(0,l.getBBoxWithClip)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,a=(0,i.__rest)(e,["id","component"]),o=new r((0,i.__assign)((0,i.__assign)({},a),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=(0,s.getMatrixByTranslate)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");(0,a.isNil)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,i=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0);(0,a.each)(s,function(t){var s=t.get("id"),u=r.getElementById(s),p=t.get("name");if(u){if(t.get("isComponent")){var h=t.get("component"),g=u.get("component"),v=(0,a.pick)(h.cfg,(0,a.difference)((0,a.keys)(h.cfg),d));g.update(v),u.set(c,"update")}else{var y=r.getReplaceAttrs(u,t);i&&o.update?r.updateAnimation(p,u,y,o.update):u.attr(y),t.isGroup()&&r.updateElements(t,u),(0,a.each)(f,function(e){u.set(e,t.get(e))}),(0,l.updateClip)(u,t),n=u,u.set(c,"update")}}else{e.add(t);var m=e.getChildren();if(m.splice(m.length-1,1),n){var b=m.indexOf(n);m.splice(b+1,0,t)}else m.unshift(t);if(r.registerElement(t),t.set(c,"add"),t.get("isComponent")){var h=t.get("component");h.set("container",e)}else t.isGroup()&&r.registerNewGroup(t);if(n=t,i){var x=r.get("isInit")?o.appear:o.enter;x&&r.addAnimation(p,t,x)}}})},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();(0,a.each)(e,function(t){t.set(c,null)})},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,e=this.get("name");return(t={})[e]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),(0,a.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return(0,a.each)(n,function(t,e){void 0===r[e]&&(r[e]=void 0)}),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();(0,a.each)(n,function(t){e.registerElement(t),t.set(c,"add"),t.isGroup()&&e.registerNewGroup(t)})},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];(0,a.each)(e,function(t,e){!t.get(c)||t.destroyed?n.push([e,t]):t.set(c,null)});var r=this.get("animate"),i=this.get("animateOption");(0,a.each)(n,function(n){var o=n[0],s=n[1];if(!s.destroyed){var l=s.get("name");if(r&&i.leave){var u=(0,a.mix)({callback:function(){t.removeElement(s)}},i.leave);t.removeAnimation(l,s,u)}else t.removeElement(s)}delete e[o]})},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(u.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearDom=function(t){for(var e=t.childNodes,n=e.length,r=n-1;r>=0;r--)t.removeChild(e[r])},e.createBBox=i,e.distance=o,e.formatPadding=function(t){var e=0,n=0,i=0,a=0;return(0,r.isNumber)(t)?e=n=i=a=t:(0,r.isArray)(t)&&(e=t[0],i=(0,r.isNil)(t[1])?t[0]:t[1],a=(0,r.isNil)(t[2])?t[0]:t[2],n=(0,r.isNil)(t[3])?i:t[3]),[e,i,a,n]},e.getBBoxWithClip=function t(e){var n,a=e.getClip(),o=a&&a.getBBox();if(e.isGroup()){var l=1/0,u=-1/0,c=1/0,f=-1/0,d=e.getChildren();d.length>0?(0,r.each)(d,function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var n=t(e),r=e.applyToMatrix([n.minX,n.minY,1]),i=e.applyToMatrix([n.minX,n.maxY,1]),a=e.applyToMatrix([n.maxX,n.minY,1]),o=e.applyToMatrix([n.maxX,n.maxY,1]),s=Math.min(r[0],i[0],a[0],o[0]),d=Math.max(r[0],i[0],a[0],o[0]),p=Math.min(r[1],i[1],a[1],o[1]),h=Math.max(r[1],i[1],a[1],o[1]);su&&(u=d),pf&&(f=h)}}):(l=0,u=0,c=0,f=0),n=i(l,c,u-l,f-c)}else n=e.getBBox();return o?s(n,o):n},e.getCirclePoint=function(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}},e.getTextPoint=function(t,e,n,r){var i=r/o(t,e),s=0;return"start"===n?s=0-i:"end"===n&&(s=1+i),{x:a(t.x,e.x,s),y:a(t.y,e.y,s)}},e.getValueByPercent=a,e.hasClass=function(t,e){return!!t.className.match(RegExp("(\\s|^)"+e+"(\\s|$)"))},e.intersectBBox=s,e.mergeBBox=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY);return i(n,r,Math.max(t.maxX,e.maxX)-n,Math.max(t.maxY,e.maxY)-r)},e.near=void 0,e.pointsToBBox=function(t){var e=t.map(function(t){return t.x}),n=t.map(function(t){return t.y}),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.regionToBBox=function(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.toPx=function(t){return t+"px"},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(!n){t.setClip(null);return}var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}},e.wait=void 0;var r=n(0);function i(t,e,n,r){var i=t+n,a=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function a(t,e,n){return(1-n)*t+e*n}function o(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function s(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return i(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}e.wait=function(t){return new Promise(function(e){setTimeout(e,t)})},e.near=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)t.x?t.x:e,n=nt.y?t.y:i,a=a=t&&i<=t+n&&a>=e&&a<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=t&&i<=t+n&&a>=e&&a<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),u&&f.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,u),c&&f.setAttribute(l.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(!n){r.setAttribute(l.SVG_ATTR_MAP[e],"none");return}if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var i=t.find("gradient",n);i||(i=t.addGradient(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var i=t.find("pattern",n);i||(i=t.addPattern(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(l.SVG_ATTR_MAP[e],n)},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,s=r.shadowBlur,l=r.shadowColor;(i||o||s||l)&&a.setShadow(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&a.setTransform(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!!(o&&o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(i.AbstractShape);e.default=d},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(26),s=n(149),l=n(74),u=n(274),c=n(54),f=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(190)),d=r(n(275));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return(0,a.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,a.__assign)((0,a.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return d.default},e.prototype.onCanvasChange=function(t){(0,u.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,o.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,s=e.height,l=this.getHitLineWidth(),u=l/2,c=r-u,f=i-u;return{x:c,y:f,minX:c,minY:f,maxX:r+a+u,maxY:i+s+u,width:a+l,height:s+l}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||(0,l.createDom)(this),(0,s.setClip)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,a=n.stroke,o=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,u=n.lineWidth,f=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&f.setAttribute(c.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),l&&f.setAttribute(c.SVG_ATTR_MAP.strokeOpacity,l),u&&f.setAttribute(c.SVG_ATTR_MAP.lineWidth,u))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(!n){r.setAttribute(c.SVG_ATTR_MAP[e],"none");return}if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var i=t.find("gradient",n);i||(i=t.addGradient(n)),r.setAttribute(c.SVG_ATTR_MAP[e],"url(#"+i+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var i=t.find("pattern",n);i||(i=t.addPattern(n)),r.setAttribute(c.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(c.SVG_ATTR_MAP[e],n)},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,o=r.shadowBlur,l=r.shadowColor;(i||a||o||l)&&(0,s.setShadow)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&(0,s.setTransform)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!!(o&&o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o.AbstractShape);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTooltipMapping=void 0;var r=n(0);e.getTooltipMapping=function(t,e){if(!1===t)return{fields:!1};var n=r.get(t,"fields"),i=r.get(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTooltipMapping=function(t,e){if(!1===t)return{fields:!1};var n=(0,r.get)(t,"fields"),i=(0,r.get)(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}};var r=n(0)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Identity",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Linear",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Log",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Pow",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Quantile",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"Quantize",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Time",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"TimeCat",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return g.getTickMethod}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return p.registerScale}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return g.registerTickMethod}});var i=r(n(141)),a=r(n(426)),o=r(n(827)),s=r(n(427)),l=r(n(830)),u=r(n(831)),c=r(n(832)),f=r(n(428)),d=r(n(833)),p=n(834),h=r(n(835)),g=n(836);(0,p.registerScale)("cat",a.default),(0,p.registerScale)("category",a.default),(0,p.registerScale)("identity",h.default),(0,p.registerScale)("linear",s.default),(0,p.registerScale)("log",l.default),(0,p.registerScale)("pow",u.default),(0,p.registerScale)("time",c.default),(0,p.registerScale)("timeCat",o.default),(0,p.registerScale)("quantize",f.default),(0,p.registerScale)("quantile",d.default)},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"c",function(){return l});var r=n(3),i=n.n(r),a=n(620),o=function(t){var e=t.error;return i.a.createElement("div",{className:"bizcharts-error",role:"alert"},i.a.createElement("p",null,"BizCharts something went wrong:"),i.a.createElement("pre",null,e.message))};function s(t){return o(t)}var l=function(t){o=t};e.b=a.ErrorBoundary},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.Slider=e.HtmlTooltip=e.ContinuousLegend=e.CategoryLegend=e.CircleGrid=e.LineGrid=e.CircleAxis=e.LineAxis=e.Annotation=e.Crosshair=e.Component=e.GroupComponent=e.HtmlComponent=e.Scale=e.registerScale=e.getScale=e.Coordinate=e.registerCoordinate=e.getCoordinate=e.Color=e.Attribute=e.getAttribute=e.Adjust=e.getAdjust=e.registerAdjust=e.AbstractShape=e.AbstractGroup=e.Event=void 0;var r=n(26);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.AbstractGroup}}),Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.AbstractShape}});var i=n(422);Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return i.Adjust}});var a=n(251);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return a.getAttribute}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return a.Attribute}});var o=n(251);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return o.Color}});var s=n(848);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return s.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return s.registerCoordinate}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return s.Coordinate}});var l=n(66);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return l.Scale}});var u=n(179);Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return u.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return u.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return u.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return u.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return u.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return u.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return u.Scrollbar}});var c=u.Axis.Line,f=u.Axis.Circle;e.LineAxis=c,e.CircleAxis=f;var d=u.Grid.Line,p=u.Grid.Circle;e.LineGrid=d,e.CircleGrid=p;var h=u.Legend.Category,g=u.Legend.Continuous;e.CategoryLegend=h,e.ContinuousLegend=g;var v=u.Tooltip.Html;e.HtmlTooltip=v},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0}),e.uniq=e.omit=e.padEnd=e.isBetween=void 0;var i=n(0);e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i},e.padEnd=function(t,e,n){if((0,i.isString)(t))return t.padEnd(e,n);if((0,i.isArray)(t)){var r=t.length;if(r0&&(a.isNil(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(i.AbstractShape);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var r=n(0),i=n(52);function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e.createSVGElement=a,e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r},e.sortDom=function(t,e){var n=t.get("el"),i=r.toArray(n.children).sort(e),a=document.createDocumentFragment();i.forEach(function(t){a.appendChild(t)}),n.appendChild(a)},e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter(function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()}),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(a0&&((0,s.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(o.AbstractShape);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r},e.createSVGElement=a,e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter(function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()}),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(a=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;et.minX&&this.minYt.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();e.BBox=a,e.getRegionBBox=function(t,e){var n=e.start,r=e.end;return new a(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))},e.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(3),i=n.n(r),a=n(76);function o(){return i.a.useContext(a.a).chart}},function(t,e,n){"use strict";var r=n(6),i=n.n(r),a=n(55),o=n.n(a),s=n(23),l=n.n(s),u=n(61),c=n.n(u);function f(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function d(t){return l()(t)?t.length:c()(t)?Object.keys(t).length:0}e.a=function(t,e){if(f(t,e))return!0;if("object"!==i()(t)||null===t||"object"!==i()(e)||null===e||l()(t)!==l()(e)||d(t)!==d(e))return!1;var n=!0;return o()(t,function(t,r){return!!f(t,e[r])||(n=!1)}),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Bar=void 0;var r=n(1),i=n(24),a=n(119),o=n(1120),s=n(1124),l=n(524),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return r.__extends(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options,i=n.xField,s=n.yField,u=n.isPercent,c=r.__assign(r.__assign({},n),{xField:s,yField:i});o.meta({chart:e,options:c}),e.changeData(a.getDataWhetherPecentage(l.transformBarData(t),i,s,i,u))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Bar=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Column=void 0;var r=n(1),i=n(24),a=n(119),o=n(195),s=n(1127),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return r.__extends(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent,s=this.chart,l=this.options;o.meta({chart:s,options:l}),this.chart.changeData(a.getDataWhetherPecentage(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Column=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(68));e.default=function(t){return(0,i.default)(t,"String")}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(68));e.default=function(t){return(0,i.default)(t,"Number")}},function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.getBBoxByArray=function(t,e){var n=r(t),a=r(e);return{x:n,y:a,width:i(t)-n,height:i(e)-a}},e.getBBoxRange=function(t,e,n,a){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,a]),maxY:i([e,a])}},e.isNumberEqual=function(t,e){return .001>Math.abs(t-e)},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"catmullRom2Bezier",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"fillPath",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"fillPathByDiff",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"formatPath",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"getLineIntersect",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"parsePathArray",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"parsePathString",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"path2Segments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"pathIntersection",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"reactPath",{enumerable:!0,get:function(){return h.default}});var i=r(n(414)),a=r(n(800)),o=r(n(803)),s=r(n(804)),l=r(n(805)),u=r(n(806)),c=r(n(811)),f=r(n(418)),d=r(n(416)),p=r(n(417)),h=r(n(415)),g=r(n(419)),v=r(n(812)),y=r(n(420)),m=r(n(813)),b=r(n(421))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.__assign=void 0,e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:u(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise(function(n,r){a.push([t,e,n,r])>1||s(t,e)})})}function s(t,e){try{var n;(n=i[t](e)).value instanceof u?Promise.resolve(n.value.v).then(l,c):f(a[0][2],n)}catch(t){f(a[0][3],t)}}function l(t){s("next",t)}function c(t){s("throw",t)}function f(t,e){t(e),a.shift(),a.length&&s(a[0][0],a[0][1])}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=s(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){(function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)})(r,i,(e=t[n](e)).done,e.value)})}}},e.__await=u,e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))(function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof n?e:new n(function(t){t(e)})).then(o,s)}l((r=r.apply(t,e||[])).next())})},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw TypeError("attempted to set private field on non-instance");return e.set(t,n),n},e.__createBinding=function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__decorate=function(t,e,n,r){var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if(("undefined"==typeof Reflect?"undefined":(0,i.default)(Reflect))==="object"&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__exportStar=function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])},e.__extends=function(t,e){function n(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},e.__spread=function(){for(var t=[],e=0;e=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function u(t){return this instanceof u?(this.v=t,this):new u(t)}e.__assign=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyMatrix2BBox=function(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),a=s(t,[e.maxX,e.maxY]),o=Math.min(n[0],r[0],i[0],a[0]),l=Math.max(n[0],r[0],i[0],a[0]),u=Math.min(n[1],r[1],i[1],a[1]),c=Math.max(n[1],r[1],i[1],a[1]);return{x:o,y:u,minX:o,minY:u,maxX:l,maxY:c,width:l-o,height:c-u}},e.applyRotate=function(t,e,n,r){if(e){var i=a({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}},e.applyTranslate=function(t,e,n){var r=o({x:e,y:n});t.attr("matrix",r)},e.getAngleByMatrix=function(t){var e=[0,0,0];return r.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])},e.getMatrixByAngle=a,e.getMatrixByTranslate=o;var r=n(32),i=[1,0,0,0,1,0,0,0,1];function a(t,e,n){return(void 0===n&&(n=i),e)?r.ext.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function o(t,e){return t.x||t.y?r.ext.transform(e||i,[["t",t.x,t.y]]):null}function s(t,e){var n=[0,0];return r.vec2.transformMat3(n,e,t),n}},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=n(422),o=n(251),s=n(0),l=n(97),u=(0,i.__importDefault)(n(263)),c=n(21),f=n(70),d=(0,i.__importDefault)(n(269)),p=n(271),h=n(27),g=n(945),v=n(449),y=n(946),m=n(450),b=n(48),x=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,l=e.visible,u=e.theme,c=e.scales,f=e.scaleDefs,d=e.intervalPadding,p=e.dodgePadding,h=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio,y=e.roseWidthRatio,m=e.multiplePieWidthRatio,b=e.zIndexReversed;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=void 0!==s&&s,n.visible=void 0===l||l,n.userTheme=u,n.scales=void 0===c?{}:c,n.scaleDefs=void 0===f?{}:f,n.intervalPadding=d,n.dodgePadding=p,n.maxColumnWidth=h,n.minColumnWidth=g,n.columnWidthRatio=v,n.roseWidthRatio=y,n.multiplePieWidthRatio=m,n.zIndexReversed=b,n}return(0,i.__extends)(e,t),e.prototype.position=function(t){var e=t;(0,s.isPlainObject)(t)||(e={fields:(0,y.parseFields)(t)});var n=(0,s.get)(e,"fields");return 1===n.length&&(n.unshift("1"),(0,s.set)(e,"fields",n)),(0,s.set)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return((0,s.isString)(t)||(0,s.isPlainObject)(t))&&(e=[t]),(0,s.each)(e,function(t,n){(0,s.isObject)(t)||(e[n]={type:t})}),this.adjustOption=e,this},e.prototype.style=function(t,e){if((0,s.isString)(t)){var n=(0,y.parseFields)(t);this.styleOption={fields:n,callback:e}}else{var n=t.fields,r=t.callback,i=t.cfg;n||r||i?this.styleOption=t:this.styleOption={cfg:t}}return this},e.prototype.tooltip=function(t,e){if((0,s.isString)(t)){var n=(0,y.parseFields)(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if((0,s.isString)(t)){var r={},i=(0,y.parseFields)(t);r.fields=i,(0,s.isFunction)(e)?r.callback=e:(0,s.isPlainObject)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,a=this.lastAttributeOption;(0,s.isEqual)(i,a)?e&&(n||!(0,s.isEqual)(e,this.data))?(this.setCfg(t),this.initAttributes(),this.processData(e)):this.setCfg(t):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,s.deepMix)({},(0,l.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var e=this.beforeMappingData,n=this.beforeMapping(e);this.dataArray=Array(n.length);for(var r=0;r=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if((0,s.isNil)(e)||(0,s.isObject)(e))(0,s.isObject)(e)&&(0,s.isEqual)(Object.keys(e),["values"])?(0,s.set)(this.attributeOption,t,{fields:e.values}):(0,s.set)(this.attributeOption,t,e);else{var r={};(0,s.isNumber)(e)?r.values=[e]:r.fields=(0,y.parseFields)(e),n&&((0,s.isFunction)(n)?r.callback=n:r.values=n),(0,s.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,a=this.theme,s=this.shapeType;this.groupScales=[];var l={},u=function(r){if(n.hasOwnProperty(r)){var u=n[r];if(!u)return{value:void 0};var f=(0,i.__assign)({},u),d=f.callback,p=f.values,h=f.fields,g=(void 0===h?[]:h).map(function(e){var n=t.scales[e];return n.isCategory&&!l[e]&&c.GROUP_ATTRS.includes(r)&&(t.groupScales.push(n),l[e]=!0),n});f.scales=g,"position"!==r&&1===g.length&&"identity"===g[0].type?f.values=g[0].values:d||p||("size"===r?f.values=a.sizes:"shape"===r?f.values=a.shapes[s]||[]:"color"===r&&(g.length?f.values=g[0].values.length<=10?a.colors10:a.colors20:f.values=a.colors10));var v=(0,o.getAttribute)(r);e[r]=new v(f)}};for(var f in n){var d=u(f);if("object"===(0,r.default)(d))return d.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales.filter(function(t){return t.isCategory}),n=this.groupData(t),r=[],i=0,a=n.length;ia&&(a=c)}var f=this.scaleDefs,d={};it.max&&!(0,s.get)(f,[r,"max"])&&(d.max=a),t.change(d)},e.prototype.beforeMapping=function(t){if(this.sortable&&this.sort(t),this.generatePoints)for(var e=0,n=t.length;e1)for(var d=0;d0||1===n?s[a]=r*o:s[a]=-(r*o*1),s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),a=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var a=e;return(0,i.isArray)(a)&&(a=1===t.content.length?r?u(a):a.length<=2?a[e.length-1]:u(a):a[n]),a}var l={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=(0,i.isArray)(e.shape)?e.shape[0]:e.shape,f="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var d=(0,s.getPolygonCentroid)(e.x,e.y);l.x=d[0],l.y=d[1]}else"interval"!==this.geometry.type||f?(l.x=o(e.x,n),l.y=o(e.y,n)):(l.x=o(e.x,n,!0),l.y=o(e.y,n));if(f){var p=(0,i.get)(e,"nextPoints"),h=(0,i.get)(e,"points");if(p){var g=r.convert(h[1]),v=r.convert(p[1]);l.x=(g.x+v.x)/2,l.y=(g.y+v.y)/2}else if("pyramid"===c){var g=r.convert(h[1]),v=r.convert(h[2]);l.x=(g.x+v.x)/2,l.y=(g.y+v.y)/2}}t.position&&this.setLabelPosition(l,e,n,t.position);var y=this.getLabelOffsetPoint(t,n,a);return l.start={x:l.x,y:l.y},l.x+=y.x,l.y+=y.y,l.color=e.color,l},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" "+o[r.field]:"path"===n&&(s+=" "+o[r.field]+"-"+o[i.field]),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,u=this.labelsRenderer;return u||(u=new l.default({container:e,layout:(0,i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=u),u.region=r,u.animate=!!a&&(0,o.getDefaultAnimateCfg)("label",s),u},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,o=n.labelOption,s=n.scales,l=n.coordinate,u=o.fields,c=o.callback,f=o.cfg,d=u.map(function(t){return s[t]}),p=[];return(0,i.each)(t,function(t,n){var o,s=t[a.FIELD_ORIGIN],h=e.getLabelText(s,d);if(c){var g=u.map(function(t){return s[t]});if(o=c.apply(void 0,g),(0,i.isNil)(o)){p.push(null);return}}var v=(0,r.__assign)((0,r.__assign)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:l},f),o);(0,i.isFunction)(v.position)&&(v.position=v.position(s,t,n));var y=e.getLabelOffset(v.offset||0),m=e.getDefaultLabelCfg(y,v.position);(v=(0,i.deepMix)({},m,v)).offset=e.getLabelOffset(v.offset||0);var b=v.content;(0,i.isFunction)(b)?v.content=b(s,t,n):(0,i.isUndefined)(b)&&(v.content=h[0]),p.push(v)}),p},t.prototype.getLabelText=function(t,e){var n=[];return(0,i.each)(e,function(e){var r=t[e.field];r=(0,i.isArray)(r)?r.map(function(t){return e.getText(t)}):e.getText(r),(0,i.isNil)(r)||""===r?n.push(null):n.push(r)}),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return(0,i.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return(0,i.each)(t.elementsMap,function(t,n){e[n]=t.shape}),(0,i.each)(t.getOffscreenGroup().getChildren(),function(n){e[t.getElementId(n.get("origin").mappingData)]=n}),e},t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConstraint=e.getShapeAttrs=void 0;var r=n(0),i=n(115),a=n(33),o=n(112);e.getShapeAttrs=function(t,e,n,s,l){for(var u=(0,a.getStyle)(t,e,!e,"lineWidth"),c=t.connectNulls,f=t.isInCircle,d=t.points,p=t.showSinglePoint,h=(0,i.getPathPoints)(d,c,p),g=[],v=0,y=h.length;v0&&(c[0][0]="L")),s=s.concat(c)}),s.push(["Z"])}return s}(m,f,n,s,l))}return u.path=g,u},e.getConstraint=function(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),e.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture},Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),e.isBrowser=void 0,Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r.isObject}}),e.isParent=function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r},Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r.mix}}),e.removeFromArray=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r.upperFirst}});var r=n(0),i="undefined"!=typeof window&&void 0!==window.document;e.isBrowser=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=function(t,e){return(0,r.isString)(e)?e:t.invert(t.scale(e))},a=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n180||n<-180?n-360*Math.round(n/360):n):(0,i.default)(isNaN(t)?e:t)};var i=r(n(402));function a(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?a(t,n):(0,i.default)(isNaN(t)?e:t)}},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=a?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(0)),a=n(250);function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}var s=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=t.dimValuesMap;this.adjustNames=void 0===r?["x","y"]:r,this.xField=e,this.yField=n,this.dimValuesMap=i}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===o?0:o-1],i=n[o===s-1?s-1:o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);i.each(t,function(t,e){i.each(r,function(r,i){n.adjustDim(i,r,t,e)})})},t.prototype.groupData=function(t,e){return i.each(t,function(t){void 0===t[e]&&(t[e]=a.DEFAULT_Y)}),i.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,r=i.assign({},this.dimValuesMap),o=[];return e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach(function(e){r&&r[e]||(r[e]=i.valuesOfKey(t,e).sort(function(t,e){return t-e}))}),!n&&this.isAdjust("y")&&(r.y=[a.DEFAULT_Y,1]),r},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaxScale=e.getDefaultCategoryScaleRange=e.getName=e.syncScale=e.createScaleByField=void 0;var r=n(1),i=n(0),a=n(69),o=n(48),s=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;e.createScaleByField=function(t,e,n){var o,l,u=e||[];if((0,i.isNumber)(t)||(0,i.isNil)((0,i.firstValue)(u,t))&&(0,i.isEmpty)(n))return new((0,a.getScale)("identity"))({field:t.toString(),values:[t]});var c=(0,i.valuesOfKey)(u,t),f=(0,i.get)(n,"type",(o=c[0],l="linear",s.test(o)?l="timeCat":(0,i.isString)(o)&&(l="cat"),l));return new((0,a.getScale)(f))((0,r.__assign)({field:t,values:c},n))},e.syncScale=function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}},e.getName=function(t){return t.alias||t.field},e.getDefaultCategoryScaleRange=function(t,e,n){var r,a=t.values.length;if(1===a)r=[.5,1];else{var s=0;r=(0,o.isFullCircle)(e)?e.isTransposed?[(s=1/a*(0,i.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-s/2]:[0,1-1/a]:[s=1/a/2,1-s]}return r},e.getMaxScale=function(t){var e=t.values.filter(function(t){return!(0,i.isNil)(t)&&!isNaN(t)});return Math.max.apply(Math,(0,r.__spreadArray)((0,r.__spreadArray)([],e,!1),[(0,i.isNil)(t.max)?-1/0:t.max],!1))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var r=n(32),i=n(0),a=n(48);function o(t,e){for(var n=[t[0]],r=1,i=t.length;r=s[c]?1:0,p=f>Math.PI?1:0,h=n.convert(l),g=(0,a.getDistanceToCenter)(n,h);if(g>=.5){if(f===2*Math.PI){var v={x:(l.x+s.x)/2,y:(l.y+s.y)/2},y=n.convert(v);u.push(["A",g,g,0,p,d,y.x,y.y]),u.push(["A",g,g,0,p,d,h.x,h.y])}else u.push(["A",g,g,0,p,d,h.x,h.y])}return u}(r,l,t)):u.push(o(n,t));break;case"a":u.push(s(n,t));break;default:u.push(n)}}),n=u,(0,i.each)(n,function(t,e){if("a"===t[0].toLowerCase()){var r=n[e-1],i=n[e+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getlLabelBackgroundInfo=e.findLabelTextShape=void 0;var r=n(0),i=n(114);function a(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}e.findLabelTextShape=function(t){return t.find(function(t){return"text"===t.get("type")})},e.getlLabelBackgroundInfo=function(t,e,n){void 0===n&&(n=[0,0,0,0]);var a=t.getChildren()[0];if(a){var o=a.clone();(null==e?void 0:e.rotate)&&(0,i.rotate)(o,-e.rotate);var s=o.getCanvasBBox(),l=s.x,u=s.y,c=s.width,f=s.height;o.destroy();var d=n;return(0,r.isNil)(d)?d=[2,2,2,2]:(0,r.isNumber)(d)&&(d=[,,,,].fill(d)),{x:l-d[3],y:u-d[0],width:c+d[1]+d[3],height:f+d[0]+d[2],rotation:(null==e?void 0:e.rotate)||0}}},e.getOverlapArea=a,e.checkShapeOverlap=function(t,e){var n=t.getBBox();return(0,r.some)(e,function(t){return a(n,t.getBBox(),2)>0})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoom=e.getIdentityMatrix=e.rotate=e.getRotateMatrix=e.translate=e.transform=void 0;var r=n(32).ext.transform;function i(t,e){var n=t.attr(),i=n.x,a=n.y;return r(t.getMatrix(),[["t",-i,-a],["r",e],["t",i,a]])}e.transform=r,e.translate=function(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)},e.getRotateMatrix=i,e.rotate=function(t,e){var n=i(t,e);t.setMatrix(n)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2;t.applyToMatrix([i,a,1]);var o=r(t.getMatrix(),[["t",-i,-a],["s",e,e],["t",i,a]]);t.setMatrix(o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSmoothViolinPath=e.getViolinPath=e.getPathPoints=void 0;var r=n(0),i=n(112);function a(t){return!t&&(null==t||isNaN(t))}function o(t){if((0,r.isArray)(t))return a(t[1].y);var e=t.y;return(0,r.isArray)(e)?a(e[0]):a(e)}e.getPathPoints=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,a=t.length;i0&&(n=n.map(function(t,n){return e.forEach(function(r,i){t+=e[i][n]}),t})),n};var r=n(0);function i(t){if((0,r.isNumber)(t))return[t,t,t,t];if((0,r.isArray)(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pattern=function(t){var e=this;return function(n){var l,u=n.options,c=n.chart,f=u.pattern;return f?(0,s.deepAssign)({},n,{options:((l={})[t]=function(n){for(var l,d,p,h=[],g=1;g(0,i.get)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:e.x,y:e.y};o&&(0,i.isEqual)(o,s)||this.showTooltip(n,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}((0,r.__importDefault)(n(44)).default);e.default=a},function(t,e,n){"use strict";n.d(e,"a",function(){return y});var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(325),h=n.n(p),g=n(39),v=n(8);n(278),Object(v.registerGeometry)("Area",h.a);var y=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.GemoBaseClassName="area",t}return i()(r)}(g.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return v});var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(329),h=n.n(p);n(281);var g=n(39);Object(n(8).registerGeometry)("Line",h.a);var v=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.GemoBaseClassName="line",t}return i()(r)}(g.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return y});var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(330),h=n.n(p),g=n(39),v=n(8);n(470),n(471),n(472),Object(v.registerGeometry)("Point",h.a);var y=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.GemoBaseClassName="point",t}return i()(r)}(g.a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLocale=e.registerLocale=void 0;var r=n(0),i=n(15),a=n(187),o={};e.registerLocale=function(t,e){o[t]=e},e.getLocale=function(t){return{get:function(e,n){return i.template(r.get(o[t],e)||r.get(o[a.GLOBAL.locale],e)||r.get(o["en-US"],e)||e,n)}}}},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(4),i=n.n(r),a=n(133),o=n.n(a),s=n(3),l=n.n(s),u=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ChartContainer",n=l.a.forwardRef(function(e,n){var r=Object(s.useRef)(),a=Object(s.useState)(!1),c=o()(a,2),f=c[0],d=c[1],p=e.className,h=e.containerStyle,g=u(e,["className","containerStyle"]);return Object(s.useEffect)(function(){d(!0)},[]),l.a.createElement("div",{ref:r,className:void 0===p?"bizcharts":p,style:i()({position:"relative",height:e.height||"100%",width:e.width||"100%"},h)},f?l.a.createElement(t,i()({ref:n,container:r.current},g)):l.a.createElement(l.a.Fragment,null))});return n.displayName=e||t.name,n}},function(t,e,n){"use strict";var r=n(1033),i=n(1034),a=n(481),o=n(1035);t.exports=function(t,e){return r(t)||i(t,e)||a(t,e)||o()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Area=void 0;var r=n(1),i=n(24),a=n(119),o=n(1125),s=n(1126),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return r.__extends(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField,s=this.chart,l=this.options;o.meta({chart:s,options:l}),this.chart.changeData(a.getDataWhetherPecentage(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Area=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Heatmap=void 0;var r=n(1),i=n(24),a=n(1132),o=n(1133);n(1134),n(1135);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return r.__extends(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.Plot);e.Heatmap=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rose=void 0;var r=n(1),i=n(24),a=n(1139),o=n(1140),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return r.__extends(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Rose=s},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(77),i=n.n(r),a=new RegExp("^on(.*)(?=(".concat(["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave","contextmenu","click","show","hide","change"].map(function(t){return t.replace(/^\S/,function(t){return t.toUpperCase()})}).join("|"),"))")),o=function(t){var e=[];return i()(t,function(t,n){var r=n.match(/^on(.*)/);if(r){var i=n.match(a);if(i){var o=i[1].replace(/([A-Z])/g,"-$1").toLowerCase();(o=o.replace("column","interval"))?e.push([n,"".concat(o.replace("-",""),":").concat(i[2].toLowerCase())]):e.push([n,i[2].toLowerCase()])}else e.push([n,r[1].toLowerCase()])}}),e}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(239)),a=r(n(68));e.default=function(t){if(!(0,i.default)(t)||!(0,a.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=n(0),a=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,s=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,l=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,u=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t},c=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function f(t){return"#"+p(t[0])+p(t[1])+p(t[2])}var d=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},p=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},h=function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,o=t[i],s=i===r?o:t[i+1];return f([c(o,s,a,0),c(o,s,a,1),c(o,s,a,2)])},g=function(t){if("#"===t[0]&&7===t.length)return t;r||(r=u()),r.style.color=t;var e=document.defaultView.getComputedStyle(r,"").getPropertyValue("color");return f(a.exec(e)[1].split(/\s*,\s*/).map(function(t){return Number(t)}))},v={rgb2arr:d,gradient:function(t){var e=(0,i.isString)(t)?t.split("-"):t,n=(0,i.map)(e,function(t){return d(-1===t.indexOf("#")?g(t):t)});return function(t){return h(n,t)}},toRGB:(0,i.memoize)(g),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var r=o.exec(t),a=+r[1]+90;n=r[2],e="linear-gradient("+a+"deg, "}else if("r"===t[0]){e="radial-gradient(";var r=s.exec(t);n=r[4]}var u=n.match(l);return(0,i.each)(u,function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.length-1&&(e+=", ")}),e+=")"}return t}};e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=n(425),a=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){(0,r.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,r.map)(this.ticks,function(e,n){return(0,r.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}})},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return(0,r.isNil)(i)||!(0,r.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,r.assign)(this,this.__cfg__),this.setDomain(),(0,r.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if((0,r.isString)(t)){var n=(0,i.getTickMethod)(t);if(!n)throw Error("There is no method to to calculate ticks!");e=n(this)}else(0,r.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return(0,r.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisLabel=function(t,e,n,o){void 0===o&&(o="tail");var s,l=null!==(s=e.attr("text"))&&void 0!==s?s:"";if("tail"===o){var u=(0,r.pick)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),c=(0,r.getEllipsisText)(l,n,u,"…");return l!==c?(e.attr("text",c),e.set("tip",l),!0):(e.set("tip",null),!1)}var f=a(t,e),d=(0,i.strLen)(l),p=!1;if(n=0?(0,i.ellipsisString)(l,h,o):"…")&&(e.attr("text",g),p=!0)}return p?e.set("tip",l):e.set("tip",null),p},e.getLabelLength=a,e.getMaxLabelWidth=function(t){if(t.length>400)return function(t){for(var e=t.map(function(t){var e=t.attr("text");return(0,r.isNil)(e)?"":""+e}),n=0,i=0,a=0;a=19968&&l<=40869?o+=2:o+=1}o>n&&(n=o,i=a)}return t[i].getBBox().width}(t);var e=0;return(0,r.each)(t,function(t){var n=t.getBBox().width;eO?_:O,E=_>O?1:_/O,C=_>O?O/_:1;e.translate(b,x),e.rotate(A),e.scale(E,C),e.arc(0,0,w,P,M,1-S),e.scale(1/E,1/C),e.rotate(-A),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===h)u=c;else{var T=p.length;u=[p[T-2],p[T-1]]}}}},e.refreshElement=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),!(t.cfg.parent&&t.cfg.parent.get("hasChanged"))&&(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))},e.getRefreshRegion=f,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],i=[],a=[];return r.each(t,function(t){var r=f(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),a.push(r.maxY))}),{minX:r.min(e),minY:r.min(n),maxX:r.max(i),maxY:r.max(a)}},e.mergeView=function(t,e){return t&&e&&o.intersectRect(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var r=n(72);e.setShadow=function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=e.find("filter",i);a||(a=e.addShadow(i)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){r.createDom(n),n.createPath(e);var a=e.addClip(n);i.setAttribute("clip-path","url(#"+a+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return h.default}});var i=r(n(73)),a=r(n(952)),o=r(n(953)),s=r(n(954)),l=r(n(955)),u=r(n(956)),c=r(n(957)),f=r(n(959)),d=r(n(960)),p=r(n(961)),h=r(n(964))},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.applyAttrsToContext=function(t,e){var n=e.attr();for(var r in n){var i=n[r],s=f[r]?f[r]:r;"matrix"===s&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===s&&t.setLineDash?(0,a.isArray)(i)&&t.setLineDash(i):("strokeStyle"===s||"fillStyle"===s?i=(0,o.parseStyle)(t,e,i):"globalAlpha"===s&&(i*=t.globalAlpha),t[s]=i)}},e.checkChildrenRefresh=d,e.checkRefresh=function(t,e,n){var r=t.get("refreshElements");(0,a.each)(r,function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent}),r[0]===t?p(e,n):d(e,n)},e.clearChanged=function t(e){for(var n=0;nO?_:O,E=_>O?1:_/O,C=_>O?O/_:1;e.translate(b,x),e.rotate(A),e.scale(E,C),e.arc(0,0,w,P,M,1-S),e.scale(1/E,1/C),e.rotate(-A),e.translate(-b,-x)}break;case"Z":e.closePath()}if("Z"===h)l=c;else{var T=p.length;l=[p[T-2],p[T-1]]}}}},e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return(0,a.each)(t,function(t){var a=h(t);a&&(e.push(a.minX),n.push(a.minY),r.push(a.maxX),i.push(a.maxY))}),{minX:(0,a.min)(e),minY:(0,a.min)(n),maxX:(0,a.max)(r),maxY:(0,a.max)(i)}},e.getRefreshRegion=h,e.mergeView=function(t,e){return t&&e&&(0,l.intersectRect)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null},e.refreshElement=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),!(t.cfg.parent&&t.cfg.parent.get("hasChanged"))&&(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))};var a=n(0),o=n(453),s=r(n(454)),l=n(53),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(188));function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}var f={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function d(t,e){for(var n=0;ne&&(n=n?e/(1+i/n):0,i=e-n),a+o>e&&(a=a?e/(1+o/a):0,o=e-a),[n||0,i||0,a||0,o||0]}e.getRectPoints=function(t){var e,n,i,a,o=t.x,s=t.y,l=t.y0,u=t.size;(0,r.isArray)(s)?(e=s[0],n=s[1]):(e=l,n=s),(0,r.isArray)(o)?(i=o[0],a=o[1]):(i=o-u/2,a=o+u/2);var c=[{x:i,y:e},{x:i,y:n}];return c.push({x:a,y:n},{x:a,y:e}),c},e.getRectPath=a,e.parseRadius=o,e.getBackgroundRectPath=function(t,e,n){var a=[];if(n.isRect){var s=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},l=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},u=(0,r.get)(t,["background","style","radius"]);if(u){var c=o(u,Math.min(n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,n.isTransposed?n.getWidth():n.getHeight())),f=c[0],d=c[1],p=c[2],h=c[3];a.push(["M",s.x,l.y+f]),0!==f&&a.push(["A",f,f,0,0,1,s.x+f,l.y]),a.push(["L",l.x-d,l.y]),0!==d&&a.push(["A",d,d,0,0,1,l.x,l.y+d]),a.push(["L",l.x,s.y-p]),0!==p&&a.push(["A",p,p,0,0,1,l.x-p,s.y]),a.push(["L",s.x+h,s.y]),0!==h&&a.push(["A",h,h,0,0,1,s.x,s.y-h])}else a.push(["M",s.x,s.y]),a.push(["L",l.x,s.y]),a.push(["L",l.x,l.y]),a.push(["L",s.x,l.y]),a.push(["L",s.x,s.y]);a.push(["z"])}if(n.isPolar){var g=n.getCenter(),v=(0,i.getAngle)(t,n),y=v.startAngle,m=v.endAngle;if("theta"===n.type||n.isTransposed){var b=function(t){return Math.pow(t,2)},f=Math.sqrt(b(g.x-e[0].x)+b(g.y-e[0].y)),d=Math.sqrt(b(g.x-e[2].x)+b(g.y-e[2].y));a=(0,i.getSectorPath)(g.x,g.y,f,n.startAngle,n.endAngle,d)}else a=(0,i.getSectorPath)(g.x,g.y,n.getRadius(),y,m)}return a},e.getIntervalRectPath=function(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,s=[],l=(t[2].x-t[1].x)/2,u=n.isTransposed?l*i/r:l*r/i;return"round"===e?(o?(s.push(["M",t[0].x,t[0].y+u]),s.push(["L",t[1].x,t[1].y-u]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y-u]),s.push(["L",t[3].x,t[3].y+u]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y+u])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=a(t),s},e.getFunnelPath=function(t,e,n){var i=[];return(0,r.isNil)(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i},e.getRectWithCornerRadius=function(t,e,n){var r,i,a,s,l=t[0],u=t[1],c=t[2],f=t[3],d=0,p=0,h=0,g=0;l.yt[1].x?(f=t[0],l=t[1],u=t[2],c=t[3],d=(a=o(n,Math.min(f.x-l.x,l.y-u.y)))[0],g=a[1],h=a[2],p=a[3]):(p=(s=o(n,Math.min(f.x-l.x,l.y-u.y)))[0],h=s[1],g=s[2],d=s[3]));var v=[];return v.push(["M",u.x,u.y+d]),0!==d&&v.push(["A",d,d,0,0,1,u.x+d,u.y]),v.push(["L",c.x-p,c.y]),0!==p&&v.push(["A",p,p,0,0,1,c.x,c.y+p]),v.push(["L",f.x,f.y-h]),0!==h&&v.push(["A",h,h,0,0,1,f.x-h,f.y]),v.push(["L",l.x+g,l.y]),0!==g&&v.push(["A",g,g,0,0,1,l.x,l.y-g]),v.push(["L",u.x,u.y+d]),v.push(["z"]),v}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(44)),o=n(31),s=n(31),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return(0,r.__extends)(e,t),e.prototype.getTriggerListInfo=function(){var t=(0,s.getDelegationObject)(this.context),e=null;return(0,s.isList)(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=(0,o.getComponents)(e),r=[];return(0,i.each)(n,function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)}),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();(0,i.each)(e,function(e){e.clearItemsState(t.stateName)})},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=this.context.view,i=(0,s.getScaleByField)(r,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter(function(n){return e.hasState(t,n)}).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=this.context.view,a=(0,s.getScaleByField)(i,r),o=(0,s.getElementValue)(e,r),l=a.getText(o);this.setItemsState(t,l,n)},e.prototype.setStateEnable=function(t){var e=this,n=(0,s.getCurrentElement)(this.context);if(n){var r=this.getAllowComponents();(0,i.each)(r,function(r){e.setStateByElement(r,n,t)})}else{var a=(0,s.getDelegationObject)(this.context);if((0,s.isList)(a)){var o=a.item,l=a.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(o,l)&&this.setItemState(l,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,a=t.getItems();(0,i.each)(a,function(i){i.name===e&&r.setItemState(t,i,n)})},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resizeObservers=void 0,e.resizeObservers=[]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pattern=void 0;var r=n(1),i=n(14),a=n(0),o=n(1070),s=n(15);e.pattern=function(t){var e=this;return function(n){var l,u=n.options,c=n.chart,f=u.pattern;return f?s.deepAssign({},n,{options:((l={})[t]=function(n){for(var l,d,p,h=[],g=1;g
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},e.DEFAULT_OPTIONS={appendPadding:2,tooltip:r.__assign({},e.DEFAULT_TOOLTIP_OPTIONS),animation:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){for(var a,o=t.children,s=-1,l=o.length,u=t.value&&(r-e)/t.value;++s
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}};e.DEFAULT_TOOLTIP_OPTIONS=a;var o={appendPadding:2,tooltip:(0,r.__assign)({},a),animation:{}};e.DEFAULT_OPTIONS=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NODE_INDEX_FIELD=e.NODE_ANCESTORS_FIELD=e.CHILD_NODE_COUNT=void 0,e.getAllNodes=function(t){var e,n,s=[];return t&&t.each?t.each(function(t){t.parent!==e?(e=t.parent,n=0):n+=1;var l,u,c=(0,r.filter)(((null===(l=t.ancestors)||void 0===l?void 0:l.call(t))||[]).map(function(t){return s.find(function(e){return e.name===t.name})||t}),function(e){var n=e.depth;return n>0&&n0?"left":"right");break;case"left":t.x=l,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",h>0?"left":"right");break;case"bottom":c&&(t.x=(o+l)/2),t.y=s,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",h>0?"bottom":"top");break;case"middle":c&&(t.x=(o+l)/2),t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline","middle");break;case"top":c&&(t.x=(o+l)/2),t.y=a,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",h>0?"bottom":"top")}},e}((0,r.__importDefault)(n(100)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(48),o=n(46),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return(0,r.__extends)(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return(0,i.deepMix)({},r,(0,i.get)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:(0,i.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},o={x:(0,i.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},s=(0,a.getAngleByPoint)(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var l=(0,a.getAngleByPoint)(n,o);s>=l&&(l+=2*Math.PI),e=s+(l-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),a=n.getRadius()+e;return(0,r.__assign)((0,r.__assign)({},(0,o.polarToCartesian)(i.x,i.y,a,t)),{angle:t,r:a})},e}((0,r.__importDefault)(n(214)).default);e.default=s},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(4),i=n.n(r),a=n(3),o=n.n(a),s=n(50),l=n.n(s),u=n(623),c=n.n(u),f=n(61),d=n.n(f),p=function(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return l()(t)||o.a.isValidElement(t)?{visible:!0,text:t}:c()(t)?{visible:t}:d()(t)?i()({visible:!0},t):{visible:e}}},function(t,e,n){"use strict";n.d(e,"b",function(){return _});var r=n(12),i=n.n(r),a=n(13),o=n.n(a),s=n(5),l=n.n(s),u=n(9),c=n.n(u),f=n(10),d=n.n(f),p=n(203),h=n(127),g=n.n(h),v=n(0),y=n(8),m={},b=function(){function t(e){c()(this,t),this.cfg={shared:!0},this.chartMap={},this.state={},this.id=Object(v.uniqueId)("bx-action"),this.type=e||"tooltip"}return d()(t,[{key:"connect",value:function(t,e,n){return this.chartMap[t]={chart:e,pointFinder:n},e.interaction("connect-".concat(this.type,"-").concat(this.id)),"tooltip"===this.type&&this.cfg.shared&&void 0===Object(v.get)(e,["options","tooltip","shared"])&&Object(v.set)(e,["options","tooltip","shared"],!0),this}},{key:"unConnect",value:function(t){this.chartMap[t].chart.removeInteraction("connect-".concat(this.type,"-").concat(this.id)),delete this.chartMap[t]}},{key:"destroy",value:function(){Object(p.unregisterAction)("connect-".concat(this.type,"-").concat(this.id))}}]),t}(),x=function(){var t=new b("tooltip");return Object(y.registerAction)("connect-tooltip-".concat(t.id),function(e){i()(a,e);var n,r=(n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=l()(a);if(n){var r=l()(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return o()(this,t)});function a(){var e;return c()(this,a),e=r.apply(this,arguments),e.CM=t,e}return d()(a,[{key:"showTooltip",value:function(t,e){var n=t.getTooltipItems(e)||e;Object(v.forIn)(this.CM.chartMap,function(t){var r=t.chart,i=t.pointFinder;if(!r.destroyed&&r.visible){if(i){var a=i(n,r);a&&r.showTooltip(a)}else r.showTooltip(e)}})}},{key:"hideTooltip",value:function(){Object(v.forIn)(this.CM.chartMap,function(t){return t.chart.hideTooltip()})}}]),a}(g.a)),Object(y.registerInteraction)("connect-tooltip-".concat(t.id),{start:[{trigger:"plot:mousemove",action:"connect-tooltip-".concat(t.id,":show")}],end:[{trigger:"plot:mouseleave",action:"connect-tooltip-".concat(t.id,":hide")}]}),t},_=function(t,e,n,r,i){var a=m[t];if(null===n&&a){a.unConnect(e);return}a?a.connect(e,n,i):(m[t]=x(),m[t].cfg.shared=!!r,m[t].connect(e,n,i))};e.a=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var r=n(951);e.growInX=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"x")},e.growInY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"y")},e.growInXY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"xy")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(23),i=n(1054);e.default=function(t){for(var e=[],n=1;n0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},e.random=function(t,e){e=e||1;var n=2*a.RANDOM()*Math.PI,r=2*a.RANDOM()-1,i=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=r*e,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.sqrLen=e.sqrDist=void 0,e.squaredDistance=p,e.squaredLength=h,e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.sub=void 0,e.subtract=u,e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],l=e[1],u=e[2],c=i*u-a*l,f=a*s-r*u,d=r*l-i*s,p=i*d-a*f,h=a*c-r*d,g=r*f-i*c,v=2*o;return c*=v,f*=v,d*=v,p*=2,h*=2,g*=2,t[0]=s+c+p,t[1]=l+f+h,t[2]=u+d+g,t},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t};var a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=a?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}(n(79));function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}function s(){var t=new a.ARRAY_TYPE(3);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function l(t){return Math.hypot(t[0],t[1],t[2])}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2])}function p(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function h(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function g(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.sub=u,e.mul=c,e.div=f,e.dist=d,e.sqrDist=p,e.len=l,e.sqrLen=h;var v=(r=s(),function(t,e,n,i,a,o){var s,l;for(e||(e=3),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s(n-t)*(n-t)+(r-e)*(r-e)?(0,i.distance)(n,r,a,o):this.pointToLine(t,e,n,r,a,o)},pointToLine:function(t,e,n,r,i,o){var s=[n-t,r-e];if(a.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var l=[-s[1],s[0]];return a.normalize(l,l),Math.abs(a.dot([i-t,o-e],l))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.YEAR=e.SECOND=e.MONTH=e.MINUTE=e.HOUR=e.DAY=void 0,e.getTickInterval=function(t,e,n){var r=(0,s.default)(function(t){return t[1]})(p,(e-t)/n)-1,i=p[r];return r<0?i=p[0]:r>=p.length&&(i=(0,a.last)(p)),i},e.timeFormat=function(t,e){return(o[u]||o.default[u])(t,e)},e.toTimeStamp=function(t){return(0,a.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,a.isDate)(t)&&(t=t.getTime()),t};var a=n(0),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(828)),s=r(n(829));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u="format";e.SECOND=1e3,e.MINUTE=6e4;e.HOUR=36e5;var c=864e5;e.DAY=c;var f=31*c;e.MONTH=f;var d=365*c;e.YEAR=d;var p=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",36e5],["HH",216e5],["HH",432e5],["YYYY-MM-DD",c],["YYYY-MM-DD",4*c],["YYYY-WW",7*c],["YYYY-MM",f],["YYYY-MM",4*f],["YYYY-MM",6*f],["YYYY",380*c]]},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,i.__extends)(e,t),e.prototype.scale=function(t){if((0,a.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,a.head)(e),r=(0,a.last)(e);nthis.max&&(this.max=r),(0,a.isNil)(this.minLimit)||(this.min=n),(0,a.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,a.getRange)(this.values),e=t.min,n=t.max;(0,a.isNil)(this.min)&&(this.min=e),(0,a.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,a.filter)(n,function(t){return t>=e.min&&t<=e.max})),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(r(n(141)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calBase=function(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)},e.getLogPositiveMin=function(t,e,n){(0,r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return(0,r.each)(t,function(t){t>0&&t1&&(i=1),i},e.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},e.precisionAdd=function(t,e){var n=Math.pow(10,Math.max(i(t),i(e)));return(t*n+e*n)/n};var r=n(0);function i(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(1),i=n(32),a=n(0),o=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,a=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed;this.start=e,this.end=n,this.matrix=a,this.originalMatrix=(0,r.__spreadArray)([],a),this.isTransposed=void 0!==o&&o}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){(0,a.assign)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),i+t*(a-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),(t-i)/(a-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=[t,e,n];return i.vec3.transformMat3(a,a,r),a},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=i.mat3.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return a&&i.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return i.ext.leftTranslate(e,e,[-n.x,-n.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return i.ext.leftTranslate(n,n,[-r.x,-r.y]),i.ext.leftScale(n,n,[t,e]),i.ext.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return i.ext.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||(0,r.__spreadArray)([],this.originalMatrix)},t}();e.default=o},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0});var a={Annotation:!0,Axis:!0,Crosshair:!0,Grid:!0,Legend:!0,Tooltip:!0,Component:!0,GroupComponent:!0,HtmlComponent:!0,Slider:!0,Scrollbar:!0,propagationDelegate:!0,TOOLTIP_CSS_CONST:!0};e.Axis=e.Annotation=void 0,Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return d.default}}),e.Grid=e.Crosshair=void 0,Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return h.default}}),e.Legend=void 0,Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return v.Scrollbar}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return g.Slider}}),e.Tooltip=e.TOOLTIP_CSS_CONST=void 0,Object.defineProperty(e,"propagationDelegate",{enumerable:!0,get:function(){return b.propagationDelegate}});var o=O(n(854));e.Annotation=o;var s=O(n(866));e.Axis=s;var l=O(n(872));e.Crosshair=l;var u=O(n(877));e.Grid=u;var c=O(n(880));e.Legend=c;var f=O(n(883));e.Tooltip=f;var d=r(n(254)),p=r(n(41)),h=r(n(181)),g=n(887),v=n(894),y=n(896);Object.keys(y).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(a,t))&&(t in e&&e[t]===y[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return y[t]}}))});var m=n(897);Object.keys(m).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(a,t))&&(t in e&&e[t]===m[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return m[t]}}))});var b=n(432),x=O(n(259));function _(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(_=function(t){return t?n:e})(t)}function O(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=_(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}e.TOOLTIP_CSS_CONST=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTag=function(t,e){var n=e.x,l=e.y,u=e.content,c=e.style,f=e.id,d=e.name,p=e.rotate,h=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:f+"-group",name:d+"-group",attrs:{x:n,y:l}}),x=b.addShape({type:"text",id:f,name:d,attrs:(0,r.__assign)({x:0,y:0,text:u},c)}),_=(0,s.formatPadding)((0,i.get)(m,"padding",0));if(h&&g){var O=h-(_[1]+_[3]);(0,a.ellipsisLabel)(!v,x,O,y)}if(m){var P=(0,i.get)(m,"style",{}),M=x.getCanvasBBox(),A=M.minX,S=M.minY,w=M.width,E=M.height;b.addShape("rect",{id:f+"-bg",name:f+"-bg",attrs:(0,r.__assign)({x:A-_[3],y:S-_[0],width:w+_[1]+_[3],height:E+_[0]+_[2]},P)}).toBack()}(0,o.applyTranslate)(b,n,l),(0,o.applyRotate)(b,p,n,l)};var r=n(1),i=n(0),a=n(142),o=n(90),s=n(42)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(96),o=n(0),s=n(42),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,containerTpl:"
    ",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return(0,s.createBBox)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");(0,s.clearDom)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if((0,o.isNil)(t)){t=this.createDom();var e=this.get("parent");(0,o.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,o.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?(0,o.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&(0,s.hasClass)(e,n)){var r=t[n];(0,a.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){(0,o.each)(e,function(e,n){var r=t.getElementsByClassName(n);(0,o.each)(r,function(t){(0,a.modifyCSS)(t,e)})})},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");(0,a.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return(0,a.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){(0,o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(r(n(254)).default);e.default=l},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var i=n(1),a=n(143),o=Math.sin,s=Math.cos,l=Math.atan2,u=Math.PI;function c(t,e,n,r,i,c,f){var d=e.stroke,p=e.lineWidth,h=l(r-c,n-i),g=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(u/6)+","+10*o(u/6)+" L0,0 L"+10*s(u/6)+",-"+10*o(u/6),stroke:d,lineWidth:p}});g.translate(i,c),g.rotateAtPoint(i,c,h),t.set(f?"startArrowShape":"endArrowShape",g)}function f(t,e,n,r,u,c,f){var d=e.startArrow,p=e.endArrow,h=e.stroke,g=e.lineWidth,v=f?d:p,y=v.d,m=v.fill,b=v.stroke,x=v.lineWidth,_=i.__rest(v,["d","fill","stroke","lineWidth"]),O=l(r-c,n-u);y&&(u-=s(O)*y,c-=o(O)*y);var P=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:i.__assign(i.__assign({},_),{stroke:b||h,lineWidth:x||g,fill:m})});P.translate(u,c),P.rotateAtPoint(u,c,O),t.set(f?"startArrowShape":"endArrowShape",P)}e.getShortenOffset=function(t,e,n,r,i){var a=l(r-e,n-t);return{dx:s(a)*i,dy:o(a)*i}},e.addStartArrow=function(t,e,n,i,a,o){"object"===(0,r.default)(e.startArrow)?f(t,e,n,i,a,o,!0):e.startArrow?c(t,e,n,i,a,o,!0):t.set("startArrowShape",null)},e.addEndArrow=function(t,e,n,i,a,o){"object"===(0,r.default)(e.endArrow)?f(t,e,n,i,a,o,!1):e.endArrow?c(t,e,n,i,a,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(38);e.default=function(t,e,n,i,a,o,s){var l=Math.min(t,n),u=Math.max(t,n),c=Math.min(e,i),f=Math.max(e,i),d=a/2;return o>=l-d&&o<=u+d&&s>=c-d&&s<=f+d&&r.Line.pointToLine(t,e,n,i,o,s)<=a/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(62);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var i=n(915);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return i.default}});var a=n(916);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return a.default}});var o=n(917);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return o.default}});var s=n(918);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return s.default}});var l=n(919);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return l.default}});var u=n(920);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return u.default}});var c=n(922);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.default}});var f=n(923);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return f.default}});var d=n(924);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return d.default}});var p=n(925);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return p.default}});var h=n(927);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return h.default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var r=n(44);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return(r&&r.__esModule?r:{default:r}).default}});var i=n(203);Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return i.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return i.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return i.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findItemsFromViewRecurisive=e.findItemsFromView=e.getTooltipItems=e.findDataByPoint=void 0;var r=n(1),i=n(0),a=n(21),o=n(111);function s(t,e,n){var r=n.translate(t),a=n.translate(e);return(0,i.isNumberEqual)(r,a)}function l(t,e,n){var r=n.coordinate,o=n.getYScale(),s=o.field,l=r.invert(e),u=o.invert(l.y);return(0,i.find)(t,function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=u&&e[s][1]>=u})||t[t.length-1]}var u=(0,i.memoize)(function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,a=0;ai&&(i=s)}return(i-r)/(n-1)});function c(t){for(var e,n,r=(e=(0,i.values)(t.attributes),(0,i.filter)(e,function(t){return(0,i.contains)(a.GROUP_ATTRS,t.type)})),o=0;o(1+f)/2&&(p=d),o.translate(o.invert(p))),I=E[a.FIELD_ORIGIN][y],j=E[a.FIELD_ORIGIN][m],F=C[a.FIELD_ORIGIN][y],L=v.isLinear&&(0,i.isArray)(j);if((0,i.isArray)(I)){for(var M=0;M=T){if(L)(0,i.isArray)(b)||(b=[]),b.push(D);else{b=D;break}}}(0,i.isArray)(b)&&(b=l(b,t,n))}else{var k=void 0;if(g.isLinear||"timeCat"===g.type){if((T>g.translate(F)||Tg.max||TMath.abs(g.translate(k[a.FIELD_ORIGIN][y])-T)&&(C=k)}var V=u(n.getXScale());return!b&&Math.abs(g.translate(C[a.FIELD_ORIGIN][y])-T)<=V/2&&(b=C),b}function d(t,e,n,s){void 0===n&&(n=""),void 0===s&&(s=!1);var l,u,f,d,p,h,g,v,y,m=t[a.FIELD_ORIGIN],b=(l=n,u=e.getAttribute("position").getFields(),p=(d=e.scales[f=(0,i.isFunction)(l)||!l?u[0]:l])?d.getText(m[f]):m[f]||f,(0,i.isFunction)(l)?l(p,m):p),x=e.tooltipOption,_=e.theme.defaultColor,O=[];function P(e,n){if(s||!(0,i.isNil)(n)&&""!==n){var r={title:b,data:m,mappingData:t,name:e,value:n,color:t.color||_,marker:!0};O.push(r)}}if((0,i.isObject)(x)){var M=x.fields,A=x.callback;if(A){var S=M.map(function(e){return t[a.FIELD_ORIGIN][e]}),w=A.apply(void 0,S),E=(0,r.__assign)({data:t[a.FIELD_ORIGIN],mappingData:t,title:b,color:t.color||_,marker:!0},w);O.push(E)}else for(var C=e.scales,T=0;T=l-d&&o<=u+d&&s>=c-d&&s<=f+d&&r.Line.pointToLine(t,e,n,i,o,s)<=a/2};var r=n(38)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return g.default}});var i=r(n(63)),a=r(n(967)),o=r(n(968)),s=r(n(969)),l=r(n(970)),u=r(n(971)),c=r(n(972)),f=r(n(974)),d=r(n(975)),p=r(n(976)),h=r(n(977)),g=r(n(979))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.freeze=void 0,e.freeze=function(t){return Object.freeze(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSVG=e.isReplacedElement=e.isHidden=e.isElement=void 0;var r=function(t){return t instanceof SVGElement&&"getBBox"in t};e.isSVG=r,e.isHidden=function(t){if(r(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var a=t.offsetWidth,o=t.offsetHeight;return!(a||o||t.getClientRects().length)},e.isElement=function(t){if(t instanceof Element)return!0;var e,n=null===(e=null==t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},e.isReplacedElement=function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cluster",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"hierarchy",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"pack",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"packEnclose",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"packSiblings",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"stratify",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"tree",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"treemap",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"treemapBinary",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"treemapDice",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"treemapResquarify",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"treemapSlice",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"treemapSliceDice",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"treemapSquarify",{enumerable:!0,get:function(){return y.default}});var i=r(n(1092)),a=r(n(297)),o=r(n(1108)),s=r(n(515)),l=r(n(517)),u=r(n(1109)),c=r(n(1110)),f=r(n(1111)),d=r(n(1112)),p=r(n(1113)),h=r(n(155)),g=r(n(194)),v=r(n(1114)),y=r(n(299)),m=r(n(1115))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){for(var a,o=t.children,s=-1,l=o.length,u=t.value&&(i-n)/t.value;++s=0}),a=n.every(function(t){return 0>=(0,i.get)(t,[e])});return r?{min:0}:a?{max:0}:{}},e.processIllegalData=function(t,e){var n=(0,i.filter)(t,function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)});return(0,a.log)(a.LEVEL.WARN,n.length===t.length,"illegal data existed in chart data."),n},e.transformDataToNodeLinkData=function(t,e,n,i,a){if(void 0===a&&(a=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],l={},u=-1;return t.forEach(function(t){var c=t[e],f=t[n],d=t[i],p=(0,o.pick)(t,a);l[c]||(l[c]=(0,r.__assign)({id:++u,name:c},p)),l[f]||(l[f]=(0,r.__assign)({id:++u,name:f},p)),s.push((0,r.__assign)({source:l[c].id,target:l[f].id,value:d},p))}),{nodes:Object.values(l).sort(function(t,e){return t.id-e.id}),links:s}};var r=n(1),i=n(0),a=n(539),o=n(538)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t,e){void 0===e&&(e=!1);var n=t.options,r=n.seriesField;return(0,f.flow)(p,a.theme,(0,u.pattern)("columnStyle"),a.state,h,g,v,y,b,a.slider,a.scrollbar,m,c.brushInteraction,a.interaction,a.animation,(0,a.annotation)(),(0,o.conversionTag)(n.yField,!e,!!r),(0,s.connectedArea)(!n.isStack),a.limitInPlot)(t)},e.legend=y,e.meta=g;var r=n(1),i=n(0),a=n(22),o=n(1196),s=n(1197),l=n(30),u=n(122),c=n(552),f=n(7),d=n(123);function p(t){var e=t.options,n=e.legend,i=e.seriesField,a=e.isStack;return i?!1!==n&&(n=(0,r.__assign)({position:a?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function h(t){var e=t.chart,n=t.options,i=n.data,a=n.columnStyle,o=n.color,s=n.columnWidthRatio,u=n.isPercent,c=n.isGroup,p=n.isStack,h=n.xField,g=n.yField,v=n.seriesField,y=n.groupField,m=n.tooltip,b=n.shape,x=u&&c&&p?(0,d.getDeepPercent)(i,g,[h,y],g):(0,d.getDataWhetherPecentage)(i,g,h,g,u),_=[];p&&v&&!c?x.forEach(function(t){var e=_.find(function(e){return e[h]===t[h]&&e[v]===t[v]});e?e[g]+=t[g]||0:_.push((0,r.__assign)({},t))}):_=x,e.data(_);var O=u?(0,r.__assign)({formatter:function(t){return{name:c&&p?t[v]+" - "+t[y]:t[v]||t[h],value:(100*Number(t[g])).toFixed(2)+"%"}}},m):m,P=(0,f.deepAssign)({},t,{options:{data:_,widthRatio:s,tooltip:O,interval:{shape:b,style:a,color:o}}});return(0,l.interval)(P),P}function g(t){var e,n,i=t.options,o=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,c=i.data,d=i.isPercent;return(0,f.flow)((0,a.scale)(((e={})[l]=o,e[u]=s,e),((n={})[l]={type:"cat"},n[u]=(0,r.__assign)((0,r.__assign)({},(0,f.adjustYMetaByZero)(c,u)),d?{max:1,min:0,minLimit:0,maxLimit:1}:{}),n)))(t)}function v(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function y(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function m(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,o=n.isRange,s=(0,f.findGeometry)(e,"interval");if(i){var l=i.callback,u=(0,r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:(0,r.__assign)({layout:(null==u?void 0:u.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},(0,f.transformLabel)(o?(0,r.__assign)({content:function(t){var e;return null===(e=t[a])||void 0===e?void 0:e.join("-")}},u):u))})}else s.label(!1);return t}function b(t){var e=t.chart,n=t.options,a=n.tooltip,o=n.isGroup,s=n.isStack,l=n.groupField,u=n.data,c=n.xField,d=n.yField,p=n.seriesField;if(!1===a)e.tooltip(!1);else{var h=a;if(o&&s){var g=(null==h?void 0:h.formatter)||function(t){return{name:t[p]+" - "+t[l],value:t[d]}};h=(0,r.__assign)((0,r.__assign)({},h),{customItems:function(t){var e=[];return(0,i.each)(t,function(t){(0,i.filter)(u,function(e){return(0,i.isMatch)(e,(0,f.pick)(t.data,[c,p]))}).forEach(function(n){e.push((0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),{value:n[d],data:n,mappingData:{_origin:n}}),g(n)))})}),e}})}e.tooltip(h)}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,i.flow)((0,r.pattern)("areaStyle"),u,c,r.tooltip,r.theme,r.animation,(0,r.annotation)())(t)},e.meta=c;var r=n(22),i=n(7),a=n(30),o=n(156),s=n(124),l=n(197);function u(t){var e=t.chart,n=t.options,r=n.data,l=n.color,u=n.areaStyle,c=n.point,f=n.line,d=null==c?void 0:c.state,p=(0,s.getTinyData)(r);e.data(p);var h=(0,i.deepAssign)({},t,{options:{xField:o.X_FIELD,yField:o.Y_FIELD,area:{color:l,style:u},line:f,point:c}}),g=(0,i.deepAssign)({},h,{options:{tooltip:!1}}),v=(0,i.deepAssign)({},h,{options:{tooltip:!1,state:d}});return(0,a.area)(h),(0,a.line)(g),(0,a.point)(v),e.axis(!1),e.legend(!1),t}function c(t){var e,n,a=t.options,u=a.xAxis,c=a.yAxis,f=a.data,d=(0,s.getTinyData)(f);return(0,i.flow)((0,r.scale)(((e={})[o.X_FIELD]=u,e[o.Y_FIELD]=c,e),((n={})[o.X_FIELD]={type:"cat"},n[o.Y_FIELD]=(0,l.adjustYMetaByZero)(d,o.Y_FIELD),n)))(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PATH_FIELD=e.ID_FIELD=e.DEFAULT_OPTIONS=void 0,e.ID_FIELD="id",e.PATH_FIELD="path",e.DEFAULT_OPTIONS={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PADDING_TOP=e.HIERARCHY_DATA_TRANSFORM_PARAMS=e.DrillDownAction=e.DEFAULT_BREAD_CRUMB_CONFIG=e.BREAD_CRUMB_NAME=void 0;var r=n(1),i=n(14),a=n(0),o=n(541);e.PADDING_TOP=5;var s="drilldown-bread-crumb";e.BREAD_CRUMB_NAME=s;var l={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}};e.DEFAULT_BREAD_CRUMB_CONFIG=l;var u="hierarchy-data-transform-params";e.HIERARCHY_DATA_TRANSFORM_PARAMS=u;var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=l,e}return(0,r.__extends)(e,t),e.prototype.click=function(){var t=(0,a.get)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,a={x:t.start.x,y:t.end.y-(n.height+10)};t.isPolar&&(a={x:0,y:0}),"bottom-left"===r&&(a={x:t.start.x,y:t.start.y});var o=i.Util.transform(null,[["t",a.x+0,a.y+n.height+5]]);e.setMatrix(o)}},e.prototype.back=function(){(0,a.size)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=(0,a.get)(e,["interactions","drill-down","cfg","transformData"],function(t){return t}),i=n((0,r.__assign)({data:t.data},t[u]));e.changeData(i);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:l.name+"_"+s.height+"_"+s.depth,name:l.name,children:n((0,r.__assign)({data:l},t[u]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=(0,a.last)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=(0,a.get)(t,["interactions","drill-down","cfg","drillDownConfig"]);return(0,o.deepAssign)(this.breadCrumbCfg,null==e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:s});var i=0;n.forEach(function(o,l){var u=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:s+"_"+o.name+"_text",attrs:(0,r.__assign)((0,r.__assign)({text:0!==l||(0,a.isNil)(e.rootText)?o.name:e.rootText},e.textStyle),{x:i,y:0})}),c=u.getBBox();if(i+=c.width+4,u.on("click",function(e){var r,i=e.target.get("id");if(i!==(null===(r=(0,a.last)(n))||void 0===r?void 0:r.id)){var o=n.slice(0,n.findIndex(function(t){return t.id===i})+1);t.backTo(o)}}),u.on("mouseenter",function(t){var r;t.target.get("id")!==(null===(r=(0,a.last)(n))||void 0===r?void 0:r.id)?u.attr(e.activeTextStyle):u.attr({cursor:"default"})}),u.on("mouseleave",function(){u.attr(e.textStyle)}),l=0;r--)t.removeChild(e[r])},e.hasClass=function(t,e){return!!t.className.match(RegExp("(\\s|^)"+e+"(\\s|$)"))},e.regionToBBox=function(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.pointsToBBox=function(t){var e=t.map(function(t){return t.x}),n=t.map(function(t){return t.y}),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.createBBox=i,e.getValueByPercent=a,e.getCirclePoint=function(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}},e.distance=o,e.wait=function(t){return new Promise(function(e){setTimeout(e,t)})},e.near=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)0?r.each(d,function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var n=t(e),r=e.applyToMatrix([n.minX,n.minY,1]),i=e.applyToMatrix([n.minX,n.maxY,1]),a=e.applyToMatrix([n.maxX,n.minY,1]),o=e.applyToMatrix([n.maxX,n.maxY,1]),s=Math.min(r[0],i[0],a[0],o[0]),d=Math.max(r[0],i[0],a[0],o[0]),p=Math.min(r[1],i[1],a[1],o[1]),h=Math.max(r[1],i[1],a[1],o[1]);su&&(u=d),pf&&(f=h)}}):(l=0,u=0,c=0,f=0),n=i(l,c,u-l,f-c)}else n=e.getBBox();return o?s(n,o):n},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(!n){t.setClip(null);return}var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}},e.toPx=function(t){return t+"px"},e.getTextPoint=function(t,e,n,r){var i=r/o(t,e),s=0;return"start"===n?s=0-i:"end"===n&&(s=1+i),{x:a(t.x,e.x,s),y:a(t.y,e.y,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCallbackAction=e.unregisterAction=e.registerAction=e.getActionClass=e.createAction=void 0;var r=(0,n(1).__importDefault)(n(937)),i=n(0),a={};e.createAction=function(t,e){var n=a[t],r=null;if(n){var i=n.ActionClass,o=n.cfg;(r=new i(e,o)).name=t,r.init()}return r},e.getActionClass=function(t){var e=a[t];return(0,i.get)(e,"ActionClass")},e.registerAction=function(t,e,n){a[t]={ActionClass:e,cfg:n}},e.unregisterAction=function(t){delete a[t]},e.createCallbackAction=function(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(69),o=n(48),s=n(46),l=n(186),u=n(80),c=n(104),f=(0,r.__importDefault)(n(268)),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(!n.length){this.hideTooltip();return}var a=this.getTitle(n),o={x:n[0].x,y:n[0].y};e.emit("tooltip:show",f.default.fromData(e,"tooltip:show",(0,r.__assign)({items:n,title:a},t)));var s=this.getTooltipCfg(),l=s.follow,u=s.showMarkers,c=s.showCrosshairs,d=s.showContent,p=s.marker,h=this.items,g=this.title;if((0,i.isEqual)(g,a)&&(0,i.isEqual)(h,n)?(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",f.default.fromData(e,"tooltip:change",(0,r.__assign)({items:n,title:a},t))),((0,i.isFunction)(d)?d(n):d)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,i.mix)({},s,{items:this.getItemsAfterProcess(n),title:a},l?t:{})),this.tooltip.show()),u&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=a,c){var v=(0,i.get)(s,["crosshairs","follow"],!1);this.renderCrosshairs(v?t:o,s)}}},e.prototype.hideTooltip=function(){if(!this.getTooltipCfg().follow){this.point=null;return}var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",f.default.fromData(this.view,"tooltip:hide",{})),this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null==t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){e=(0,i.flatten)(e);for(var n=0,r=e;n1){for(var f=e[0],d=Math.abs(t.y-f[0].y),p=0,h=e;p'+r+"":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new a.HtmlTooltip((0,r.__assign)((0,r.__assign)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0;i0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),a=this.geometry.getYScale();return(0,i.map)(n,function(t){if(t&&a){var e=a.scale((0,i.get)(t.data,a.field));return(0,r.__assign)((0,r.__assign)({},t),{percent:e})}return t})},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=1>Math.abs(t.x-r.x)?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,a=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var o=t.offset*i,s=this.getPointAngle(r),l=t.labelEmit,u=this.getCirclePoint(s,o,r,l);return 0===u.r?u.content="":(u.content=a,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,o,l):t.rotate,u.start={x:r.x,y:r.y},u},e.prototype.getArcPoint=function(t,e){return(void 0===e&&(e=0),(0,i.isArray)(t.x)||(0,i.isArray)(t.y))?{x:(0,i.isArray)(t.x)?t.x[e]:t.x,y:(0,i.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return(0,o.getAngleByPoint)(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var o=this.getCoordinate(),s=o.getCenter(),l=(0,a.getDistanceToCenter)(o,n);if(0===l)return(0,r.__assign)((0,r.__assign)({},s),{r:l});var u=t;return o.isTransposed&&l>e&&!i?u=t+2*Math.asin(e/(2*l)):l+=e,{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,e,n){var r=t+l;return n&&(r-=l),r&&(r>l?r-=Math.PI:r<-l&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return(0,i.each)(t,function(t){r.x+=t.x,r.y+=t.y}),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=u},function(t,e,n){"use strict";n.d(e,"a",function(){return p});var r=n(45),i=n.n(r),a=n(4),o=n.n(a),s=n(37),l=n.n(s),u=n(28),c=n.n(u),f=n(40),d=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function p(t){var e=t.type,n=t.transpose,r=t.rotate,a=t.scale,s=t.reflect,u=t.actions,p=d(t,["type","transpose","rotate","scale","reflect","actions"]),h=Object(f.a)(),g=h.coordinate();return g.update({}),e?h.coordinate(e,o()({},p)):h.coordinate("rect",o()({},p)),r&&g.rotate(r),a&&g.scale.apply(g,i()(a)),l()(s)||g.reflect(s),n&&g.transpose(),c()(u)&&u(g),null}},function(t,e,n){"use strict";n.d(e,"a",function(){return y});var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(326),h=n.n(p),g=n(39),v=n(8);n(461),Object(v.registerGeometry)("Edge",h.a);var y=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.GemoBaseClassName="edge",t}return i()(r)}(g.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return v});var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(327),h=n.n(p),g=n(39);Object(n(8).registerGeometry)("Heatmap",h.a);var v=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.GemoBaseClassName="heatmap",t}return i()(r)}(g.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return _});var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(328),h=n.n(p),g=n(163),v=n.n(g),y=n(164),m=n.n(y),b=n(39),x=n(8);n(465),n(466),n(467),n(468),n(469),Object(x.registerGeometry)("Interval",h.a),Object(x.registerGeometryLabel)("interval",v.a),Object(x.registerGeometryLabel)("pie",m.a),Object(x.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]});var _=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.interactionTypes=["active-region","element-highlight"],t.GemoBaseClassName="interval",t}return i()(r)}(b.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return y});var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(331),h=n.n(p),g=n(39),v=n(8);n(462),n(475),Object(v.registerGeometry)("Polygon",h.a);var y=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.GemoBaseClassName="polygon",t}return i()(r)}(g.a)},function(t,e,n){"use strict";var r=n(4),i=n.n(r),a=n(3),o=n.n(a),s=n(101);n(276),n(278);var l=n(61),u=n.n(l),c=n(168),f=n.n(c),d=n(18),p=n.n(d),h=n(20),g=n.n(h),v=n(8),y=n(60),m=n(40),b=n(81),x=n(129),_=n(130),O=n(128),P=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},M={default:{style:{fill:"#5B8FF9",fillOpacity:.25,stroke:null}},active:{style:{fillOpacity:.5}},inactive:{style:{fillOpacity:.4}},selected:{style:{fillOpacity:.5}}};Object(v.registerShape)("area","gradient",{draw:function(t,e){var n=Object(s.getShapeAttrs)(t,!1,!1,this),r=n.fill,i=y.color(r);return i&&(n.fill="l (90) 0:".concat(y.rgb(i.r,i.g,i.b,1).formatRgb()," 1:").concat(y.rgb(i.r,i.g,i.b,.1).formatRgb())),e.addShape({type:"path",attrs:n,name:"area"})}}),Object(v.registerShape)("area","gradient-smooth",{draw:function(t,e){var n=this.coordinate,r=Object(s.getShapeAttrs)(t,!1,!0,this,Object(s.getConstraint)(n)),i=r.fill,a=y.color(i);return a&&(r.fill="l (90) 0:".concat(y.rgb(a.r,a.g,a.b,1).formatRgb()," 1:").concat(y.rgb(a.r,a.g,a.b,.1).formatRgb())),e.addShape({type:"path",attrs:r,name:"area"})}}),e.a=function(t){var e=t.point,n=t.area,r=t.shape,a=P(t,["point","area","shape"]),s={shape:"circle"},l=Object(b.a)(),c=Object(m.a)(),d={shape:"smooth"===r?"gradient-smooth":"gradient"},h=c.getTheme();return h.geometries.area.gradient=M,h.geometries.area["gradient-smooth"]=M,!1!==p()(l,["options","tooltip"])&&(void 0===p()(c,["options","tooltip","shared"])&&g()(c,["options","tooltip","shared"],!0),void 0===p()(c,["options","tooltip","showCrosshairs"])&&g()(c,["options","tooltip","showCrosshairs"],!0),void 0===p()(c,["options","tooltip","showMarkers"])&&g()(c,["options","tooltip","showMarkers"],!0)),u()(s)&&f()(s,e),u()(d)&&f()(d,n),o.a.createElement(o.a.Fragment,null,o.a.createElement(x.a,i()({shape:r,state:{default:{style:{shadowColor:"#ddd",shadowBlur:3,shadowOffsetY:2}},active:{style:{shadowColor:"#ddd",shadowBlur:3,shadowOffsetY:5}}}},a)),!!n&&o.a.createElement(O.a,i()({},a,{tooltip:!1},d)),!!e&&o.a.createElement(_.a,i()({size:3},a,{state:{active:{style:{stroke:"#fff",lineWidth:1.5,strokeOpacity:.9}}},tooltip:!1},s)))}},function(t,e){t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fadeOut=e.fadeIn=void 0;var r=n(0);e.fadeIn=function(t,e,n){var i={fillOpacity:(0,r.isNil)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:(0,r.isNil)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:(0,r.isNil)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)},e.fadeOut=function(t,e,n){var r=e.easing,i=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,function(){t.remove(!0)},a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleInY=e.scaleInX=void 0;var r=n(32);e.scaleInX=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var l=r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},e.scaleInY=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,s=a.points,l=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,l,1]);var u=r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,.01],["t",o,l]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,100],["t",o,l]])},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoomOut=e.zoomIn=void 0;var r=n(1),i=n(32),a=n(0);function o(t,e,n){if(t.isGroup())(0,a.each)(t.getChildren(),function(t){o(t,e,n)});else{var s=t.getBBox(),l=(s.minX+s.maxX)/2,u=(s.minY+s.maxY)/2;if(t.applyToMatrix([l,u,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",100,100],["t",l,u]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]])},(0,r.__assign)((0,r.__assign)({},e),{callback:function(){t.remove(!0)}}))}}e.zoomIn=function(t,e,n){o(t,e,"zoomIn")},e.zoomOut=function(t,e,n){o(t,e,"zoomOut")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overlap=e.fixedOverlap=void 0;var r=n(0),i=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=t.yGap;this.xGap=void 0===e?1:e,this.yGap=void 0===n?8:n}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=r;s<=i;s+=1){if(!n[s]){n[s]={};continue}if(s===r||s===i){for(var l=a;l<=o;l++)if(n[s][l]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=r;o+=1)e[o]||(e[o]={});for(var o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(var o=i;o<=a;o+=1)e[n][o]=!0,e[r][o]=!0;if(1!==this.xGap)for(var o=n;o<=r;o+=1)e[o][i]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();e.fixedOverlap=function(t,e,n,a){var o=new i;(0,r.each)(e,function(t){!function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),a=i.x,o=i.y,s=t.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u=1,c=0,f=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var d=!1,p=0,h={};Math.min(Math.abs(c),Math.abs(f))=0},e)},e}(l.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(1014),o=(0,r.__importDefault)(n(151)),s="inactive",l="active",u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=l,e.ignoreItemStates=["unchecked"],e}return(0,r.__extends)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,function(t){return t.name===e},n)},e.prototype.setItemState=function(t,e,n){t.getItems(),this.setHighlightBy(t,function(t){return t===e},n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)(0,i.each)(r,function(n){e(n)?(t.hasState(n,s)&&t.setItemState(n,s,!1),t.setItemState(n,l,!0)):t.hasState(n,l)||t.setItemState(n,s,!0)});else{var a=t.getItemsByState(l),o=!0;(0,i.each)(a,function(t){if(!e(t))return o=!1,!1}),o?this.clear():(0,i.each)(r,function(n){e(n)&&(t.hasState(n,l)&&t.setItemState(n,l,!1),t.setItemState(n,s,!0))})}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)(0,a.clearList)(t.list);else{var e=this.getAllowComponents();(0,i.each)(e,function(t){t.clearItemsState(l),t.clearItemsState(s)})}},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var i=this,a=arguments,o=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(i,a)},e),o&&t.apply(i,a)}}},function(t,e,n){"use strict";t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";e.a=function(t){if(0===t.length)return 0;for(var e,n=t[0],r=0,i=1;i=Math.abs(t[i])?r+=n-e+t[i]:r+=t[i]-e+n,n=e;return n+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ResizeObserver",{enumerable:!0,get:function(){return r.ResizeObserver}}),Object.defineProperty(e,"ResizeObserverEntry",{enumerable:!0,get:function(){return i.ResizeObserverEntry}}),Object.defineProperty(e,"ResizeObserverSize",{enumerable:!0,get:function(){return a.ResizeObserverSize}});var r=n(1039),i=n(483),a=n(485)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Line=void 0;var r=n(1),i=n(24),a=n(512),o=n(1087);n(1088);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return r.__extends(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;a.meta({chart:e,options:n}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Line=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pie=void 0;var r=n(1),i=n(14),a=n(24),o=n(15),s=n(1128),l=n(525),u=n(526);n(527);var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return r.__extends(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=o.processIllegalData(e.data,n),a=o.processIllegalData(t,n);u.isAllZero(r,n)||u.isAllZero(a,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(a),s.pieAnnotation({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e}(a.Plot);e.Pie=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scatter=void 0;var r=n(1),i=n(14),a=n(24),o=n(15),s=n(1154),l=n(1156);n(1157);var u=function(t){function e(e,n){var a=t.call(this,e,n)||this;return a.type="scatter",a.on(i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,function(t){var e,n,o=a.options,l=a.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===i.BRUSH_FILTER_EVENTS.FILTER){var u=a.chart.filterData(a.chart.getData());s.meta({chart:l,options:r.__assign(r.__assign({},o),{data:u})})}(null===(n=t.data)||void 0===n?void 0:n.source)===i.BRUSH_FILTER_EVENTS.RESET&&s.meta({chart:l,options:o})}),a}return r.__extends(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption(s.transformOptions(o.deepAssign({},this.options,{data:t})));var e=this.options,n=this.chart;s.meta({chart:n,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(a.Plot);e.Scatter=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.getArcParams=e.Shape=e.Group=e.Canvas=void 0;var r=n(1),i=n(143);e.Shape=i,r.__exportStar(n(26),e);var a=n(913);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return a.default}});var o=n(260);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return o.default}});var s=n(438);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return s.default}}),e.version="0.5.12"},function(t,e,n){"use strict";var r,i=n(2)(n(6)),a=SyntaxError,o=Function,s=TypeError,l=function(t){try{return o('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}var c=function(){throw new s},f=u?function(){try{return arguments.callee,c}catch(t){try{return u(arguments,"callee").get}catch(t){return c}}}():c,d=n(650)(),p=Object.getPrototypeOf||function(t){return t.__proto__},h={},g="undefined"==typeof Uint8Array?r:p(Uint8Array),v={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":d?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d?p(p([][Symbol.iterator]())):r,"%JSON%":("undefined"==typeof JSON?"undefined":(0,i.default)(JSON))==="object"?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d?p(new Map()[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d?p(new Set()[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d?p(""[Symbol.iterator]()):r,"%Symbol%":d?Symbol:r,"%SyntaxError%":a,"%ThrowTypeError%":f,"%TypedArray%":g,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},y=function t(e){var n;if("%AsyncFunction%"===e)n=l("async function () {}");else if("%GeneratorFunction%"===e)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=l("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(n=p(i.prototype))}return v[e]=n,n},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(237),x=n(652),_=b.call(Function.call,Array.prototype.concat),O=b.call(Function.apply,Array.prototype.splice),P=b.call(Function.call,String.prototype.replace),M=b.call(Function.call,String.prototype.slice),A=b.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,w=/\\(\\)?/g,E=function(t){var e=M(t,0,1),n=M(t,-1);if("%"===e&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return P(t,S,function(t,e,n,i){r[r.length]=n?P(i,w,"$1"):e||t}),r},C=function(t,e){var n,r=t;if(x(m,r)&&(r="%"+(n=m[r])[0]+"%"),x(v,r)){var i=v[r];if(i===h&&(i=y(r)),void 0===i&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new a("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,t))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=E(t),r=n.length>0?n[0]:"",i=C("%"+r+"%",e),o=i.name,l=i.value,c=!1,f=i.alias;f&&(r=f[0],O(n,_([0,1],f)));for(var d=1,p=!0;d=n.length){var m=u(l,h);l=(p=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:l[h]}else p=x(l,h),l=l[h];p&&!c&&(v[o]=l)}}return l}},function(t,e,n){"use strict";var r=n(651);t.exports=Function.prototype.bind||r},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(56));e.default=function(t,e){return!!(0,i.default)(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6));e.default=function(t){return"object"===(0,i.default)(t)&&null!==t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(107)),a=r(n(57)),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return(0,i.default)(t,function(n,r){(0,a.default)(t)&&"prototype"===r||e.push(n)}),e};e.default=o},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.SearchBotDeviceInfo=e.ReactNativeInfo=e.NodeInfo=e.BrowserInfo=e.BotInfo=void 0,e.browserName=function(t){var e=f(t);return e?e[0]:null},e.detect=function(t){return t?d(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?d(navigator.userAgent):h()},e.detectOS=p,e.getNodeVersion=h,e.parseUserAgent=d;var n=function(t,e,n){if(n||2==arguments.length)for(var r,i=0,a=e.length;i=0&&e._call.call(null,t),e=e._next;--s}function x(){f=(c=p.now())+d,s=l=0;try{b()}finally{s=0,function(){for(var t,e,n=i,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);a=t,O(r)}(),f=0}}function _(){var t=p.now(),e=t-c;e>1e3&&(d-=e,c=t)}function O(t){!s&&(l&&(l=clearTimeout(l)),t-f>24?(t<1/0&&(l=setTimeout(x,t-p.now()-d)),u&&(u=clearInterval(u))):(u||(c=p.now(),u=setInterval(_,1e3)),s=1,h(x)))}y.prototype=m.prototype={constructor:y,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?g():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:i=this,a=this),this._call=t,this._time=n,O()},stop:function(){this._call&&(this._call=null,this._time=1/0,O())}}},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.Color=o,e.Rgb=A,e.darker=e.brighter=void 0,e.default=x,e.hsl=F,e.hslConvert=j,e.rgb=M,e.rgbConvert=P;var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=o?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(246));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){}e.darker=.7,e.brighter=1.4285714285714286;var s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\(".concat(s,",").concat(s,",").concat(s,"\\)$")),d=new RegExp("^rgb\\(".concat(u,",").concat(u,",").concat(u,"\\)$")),p=new RegExp("^rgba\\(".concat(s,",").concat(s,",").concat(s,",").concat(l,"\\)$")),h=new RegExp("^rgba\\(".concat(u,",").concat(u,",").concat(u,",").concat(l,"\\)$")),g=new RegExp("^hsl\\(".concat(l,",").concat(u,",").concat(u,"\\)$")),v=new RegExp("^hsla\\(".concat(l,",").concat(u,",").concat(u,",").concat(l,"\\)$")),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function m(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?O(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?O(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=f.exec(t))?new A(e[1],e[2],e[3],1):(e=d.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=p.exec(t))?O(e[1],e[2],e[3],e[4]):(e=h.exec(t))?O(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?I(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?I(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?_(y[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function _(t){return new A(t>>16&255,t>>8&255,255&t,1)}function O(t,e,n,r){return r<=0&&(t=e=n=NaN),new A(t,e,n,r)}function P(t){return(t instanceof o||(t=x(t)),t)?(t=t.rgb(),new A(t.r,t.g,t.b,t.opacity)):new A}function M(t,e,n,r){return 1==arguments.length?P(t):new A(t,e,n,null==r?1:r)}function A(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(){return"#".concat(T(this.r)).concat(T(this.g)).concat(T(this.b))}function w(){var t=E(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(C(this.r),", ").concat(C(this.g),", ").concat(C(this.b)).concat(1===t?")":", ".concat(t,")"))}function E(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function C(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function T(t){return((t=C(t))<16?"0":"")+t.toString(16)}function I(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new L(t,e,n,r)}function j(t){if(t instanceof L)return new L(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=x(t)),!t)return new L;if(t instanceof L)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,l=a-i,u=(a+i)/2;return l?(s=e===a?(n-r)/l+(n0&&u<1?0:s,new L(s,l,u,t.opacity)}function F(t,e,n,r){return 1==arguments.length?j(t):new L(t,e,n,null==r?1:r)}function L(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function D(t){return(t=(t||0)%360)<0?t+360:t}function k(t){return Math.max(0,Math.min(1,t||0))}function R(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}(0,i.default)(o,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:m,formatHex:m,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return j(this).formatHsl()},formatRgb:b,toString:b}),(0,i.default)(A,M,(0,i.extend)(o,{brighter:function(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new A(C(this.r),C(this.g),C(this.b),E(this.opacity))},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return"#".concat(T(this.r)).concat(T(this.g)).concat(T(this.b)).concat(T((isNaN(this.opacity)?1:this.opacity)*255))},formatRgb:w,toString:w})),(0,i.default)(L,F,(0,i.extend)(o,{brighter:function(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new L(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new L(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new A(R(t>=240?t-240:t+120,i,r),R(t,i,r),R(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new L(D(this.h),k(this.s),k(this.l),E(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=E(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(D(this.h),", ").concat(100*k(this.s),"%, ").concat(100*k(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},e.extend=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Object.defineProperty(e,"__esModule",{value:!0}),e.basis=r,e.default=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=id&&(d=(i=[f,d])[0],f=i[1]),c<=2)return[f,d];for(var p=(d-f)/(c-1),h=[],g=0;g0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return(0,o.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,o.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),(0,o.each)(t,function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})}),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var a=0;a0){var n=(0,o.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter(function(t,e){return e%r==0});this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.offsetX,s=r.offsetY,u=r.rotate,c=r.formatter,f=this.getSidePoint(t.point,i),d=this.getSideVector(i,f),p=c?c(t.name,t,e):t.name,h=r.style;h=(0,o.isFunction)(h)?(0,o.get)(this.get("theme"),["label","style"],{}):h;var g=(0,o.mix)({x:f.x+a,y:f.y+s,text:p,textAlign:this.getTextAnchor(d),textBaseline:this.getTextBaseline(d)},h);return u&&(g.matrix=(0,l.getMatrixByAngle)(f,u)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,o.each)(n,function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})}),this.processOverlap(r);var i=r.getChildren(),a=(0,o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),l=s.style,u=s.formatter;if((0,o.isFunction)(l)){var c=i.map(function(t){return(0,o.get)(t.get("delegateObject"),"tick")});(0,o.each)(i,function(t,e){var n=t.get("delegateObject").tick,r=u?u(n.name,n,e):n.name,i=(0,o.mix)({},a,l(r,e,c));t.attr(i)})}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,s=void 0===i?0:i,u=t.autoRotate,c=e.fontSize,f=.5;"start"===n?f=0:"end"===n&&(f=1);var d=this.getTickPoint(f),p=this.getSidePoint(d,r||s+c/2),h=(0,o.mix)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,v=g;if((0,o.isNil)(g)&&u){var y=this.getAxisVector(d);v=a.ext.angleTo(y,[1,0],!0)}if(v){var m=(0,l.getMatrixByAngle)(p,v);h.matrix=m}return h},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),a=e.getBBox(),o=a.maxX,s=a.maxY,l=a.height,u=this.get("title").iconStyle,c=l/2,f=c/6,d=o+4,p=s-l/2,h=[d+c,p-c],g=h[0],v=h[1],y=[g+c,v+c],m=y[0],b=y[1],x=[g,b+c],_=x[0],O=x[1],P=[d,v+c],M=P[0],A=P[1],S=[d+c,p-l/4],w=S[0],E=S[1],C=[w,E+f],T=C[0],I=C[1],j=[T,I+f],F=j[0],L=j[1],D=[F,L+3*c/4],k=D[0],R=D[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,i.__assign)({path:[["M",g,v],["A",c,c,0,0,1,m,b],["A",c,c,0,0,1,_,O],["A",c,c,0,0,1,M,A],["A",c,c,0,0,1,g,v],["M",w,E],["L",T,I],["M",F,L],["L",k,R]],lineWidth:f,matrix:n},u)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:p-l/2,width:l,height:l,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var a=(0,u.getStatesStyle)(t,"label",n);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=(0,u.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(o){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&o.attr(l)}}else i&&i.attr(r.style),o&&o.attr(a.style)},e}(s.default);e.default=f},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=n(90),l=r(n(58)),u=n(42),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:l.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:l.default.fontFamily}},textBackground:{padding:5,style:{stroke:l.default.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,o=e.content;if(!(0,a.isNil)(o)){var l=this.getTextPoint(),u=null;if(r){var c=this.getRotateAngle();u=(0,s.getMatrixByAngle)(l,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},l),{text:o,matrix:u}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,i.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var a=n.getBBox(),o=(0,u.formatPadding)(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,i.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=c},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=r(n(58)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:s.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),i=this.get("alternateColor"),o=null;(0,a.each)(r,function(s,l){var u=s.id||l;if(n){var c=e.getPathStyle();c=(0,a.isFunction)(c)?c(s,l,r):c;var f=e.getElementId("line-"+u),d=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:(0,a.mix)({path:d},c)})}if(i&&l>0){var p=e.getElementId("region-"+u),h=l%2==0;if((0,a.isString)(i))h&&e.drawAlternateRegion(p,t,o.points,s.points,i);else{var g=h?i[1]:i[0];e.drawAlternateRegion(p,t,o.points,s.points,g)}}o=s})},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:i}})},e}(o.default);e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(41)),o=n(42),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),(0,o.createBBox)(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=(0,o.formatPadding)(e.padding),a=(0,i.__assign)({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,i.__assign)({text:o,x:e.x,y:e.y},a)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=(0,o.formatPadding)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VALUE_CLASS=e.TITLE_CLASS=e.NAME_CLASS=e.MARKER_CLASS=e.LIST_ITEM_CLASS=e.LIST_CLASS=e.CROSSHAIR_Y=e.CROSSHAIR_X=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-tooltip",e.TITLE_CLASS="g2-tooltip-title",e.LIST_CLASS="g2-tooltip-list",e.LIST_ITEM_CLASS="g2-tooltip-list-item",e.MARKER_CLASS="g2-tooltip-marker",e.VALUE_CLASS="g2-tooltip-value",e.NAME_CLASS="g2-tooltip-name",e.CROSSHAIR_X="g2-tooltip-crosshair-x",e.CROSSHAIR_Y="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(143),o=n(144),s=n(0),l=n(51),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.onCanvasChange=function(t){o.refreshElement(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),o.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];s.each(t,function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))});var r=null;if(e.length){var i=s.min(e),a=s.max(e),o=s.min(n),u=s.max(n);r={minX:i,minY:o,x:i,y:o,maxX:a,maxY:u,width:a-i,height:u-o};var c=this.cfg.canvas;if(c){var f=c.getViewRange();this.set("isInView",l.intersectRect(r,f))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),o.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),o.drawChildren(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(i.AbstractGroup);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refreshElement=e.drawChildren=void 0;var r=n(145),i=n(72);e.drawChildren=function(t,e){e.forEach(function(e){e.draw(t)})},e.refreshElement=function(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var a=n.get("context"),o=t.getParent(),s=o?o.getChildren():[n],l=t.get("el");if("remove"===e){if(t.get("isClipShape")){var u=l&&l.parentNode,c=u&&u.parentNode;u&&c&&c.removeChild(u)}else l&&l.parentNode&&l.parentNode.removeChild(l)}else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)i.moveTo(l,s.indexOf(t));else if("sort"===e){var f=t.get("children");f&&f.length&&i.sortDom(t,function(t,e){return f.indexOf(t)-f.indexOf(e)?1:0})}else"clear"===e?l&&(l.innerHTML=""):"matrix"===e?r.setTransform(t):"clip"===e?r.setClip(t,a):"attr"===e||"add"===e&&t.draw(a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(0),o=n(184),s=n(261),l=n(145),u=n(52),c=n(72),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=c.createSVGElement("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){s.refreshElement(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),l.setClip(this,t),this.createPath(t),e.length&&s.drawChildren(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");a.each(e||n,function(t,e){u.SVG_ATTR_MAP[e]&&r.setAttribute(u.SVG_ATTR_MAP[e],t)}),l.setTransform(this)},e}(i.AbstractGroup);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible;return n.visible=void 0===r||r,n}return(0,r.__extends)(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}((0,r.__importDefault)(n(126)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=e.Facet=void 0;var r=n(0),i=n(105);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return i.Facet}});var a={};e.getFacet=function(t){return a[(0,r.lowerCase)(t)]},e.registerFacet=function(t,e){a[(0,r.lowerCase)(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAxisTitleText=e.getAxisDirection=e.getAxisOption=e.getCircleAxisCenterRadius=e.getAxisTitleOptions=e.getAxisThemeCfg=e.getAxisFactorByRegion=e.isVertical=e.getAxisFactor=e.getAxisRegion=e.getCircleAxisRelativeRegion=e.getLineAxisRelativeRegion=void 0;var r=n(0),i=n(21),a=n(111),o=n(32);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function l(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function u(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=l,e.getAxisRegion=function(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=l(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}},e.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},e.isVertical=u,e.getAxisFactorByRegion=function(t,e){var n=t.start,r=t.end;return u(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){var n=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(n,["common"],{}),(0,r.deepMix)({},(0,r.get)(n,[e],{})))},e.getAxisTitleOptions=function(t,e,n){var i=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(i,["common","title"],{}),(0,r.deepMix)({},(0,r.get)(i,[e,"title"],{})),n)},e.getCircleAxisCenterRadius=function(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,a=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[a.x-r.x,a.y-r.y],l=[1,0],u=a.y>r.y?o.vec2.angle(s,l):-1*o.vec2.angle(s,l),c=u+(e.end-e.start),f=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2));return{center:r,radius:f,startAngle:u,endAngle:c}},e.getAxisOption=function(t,e){return(0,r.isBoolean)(t)?!1!==t&&{}:(0,r.get)(t,[e])},e.getAxisDirection=function(t,e){return(0,r.get)(t,"position",e)},e.getAxisTitleText=function(t,e){return(0,r.get)(e,["title","text"],(0,a.getName)(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.Action=e.Interaction=e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var r=n(1),i=n(0),a=(0,r.__importDefault)(n(936)),o={};function s(t){return o[(0,i.lowerCase)(t)]}e.getInteraction=s,e.registerInteraction=function(t,e){o[(0,i.lowerCase)(t)]=e},e.createInteraction=function(t,e,n){var r=s(t);if(!r)return null;if(!(0,i.isPlainObject)(r))return new r(e,n);var o=(0,i.mix)((0,i.clone)(r),n);return new a.default(e,o)};var l=n(445);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var u=n(185);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return u.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return u.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePadding=e.isAutoPadding=void 0;var r=n(1),i=n(0);e.isAutoPadding=function(t){return!(0,i.isNumber)(t)&&!(0,i.isArray)(t)},e.parsePadding=function(t){void 0===t&&(t=0);var e=(0,i.isArray)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=[,,,,].fill(e[0]);break;case 2:e=(0,r.__spreadArray)((0,r.__spreadArray)([],e,!0),e,!0);break;case 3:e=(0,r.__spreadArray)((0,r.__spreadArray)([],e,!0),[e[1]],!1);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(69),i=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new r.Event(n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(179),o=n(97),s=(0,r.__importDefault)(n(263)),l=n(46),u=n(21),c=n(270),f=function(t){function e(e){var n=t.call(this,e)||this;n.states=[];var r=e.shapeFactory,i=e.container,a=e.offscreenGroup,o=e.elementIndex,s=e.visible;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=void 0===s||s,n.elementIndex=o,n}return(0,r.__extends)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?(0,o.doAnimate)(n,i,{coordinate:e.coordinate,toAttrs:(0,r.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(t){t.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(t){t.hide()}))},e.prototype.setState=function(t,e){var n=this.states,r=this.shapeFactory,i=this.model,o=this.shape,s=this.shapeType,l=n.indexOf(t);if(e){if(l>-1)return;n.push(t),("active"===t||"selected"===t)&&(null==o||o.toFront())}else{if(-1===l)return;n.splice(l,1),("active"===t||"selected"===t)&&(this.geometry.zIndexReversed?o.setZIndex(this.geometry.elements.length-this.elementIndex):o.setZIndex(this.elementIndex))}var u=r.drawShape(s,i,this.getOffscreenGroup());n.length?this.syncShapeStyle(o,u,n,null):this.syncShapeStyle(o,u,["reset"],null),u.remove(!0);var c={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",c),(0,a.propagationDelegate)(this.shape,"statechange",c)},e.prototype.clearStates=function(){var t=this,e=this.states;(0,i.each)(e,function(e){t.setState(e,!1)}),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach(function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)}),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,a=n.defaultShapeType,o=n.theme[t]||n.theme[a];this.statesStyle=(0,i.deepMix)({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=(0,i.get)(n,[t,"style"],{}),a=r[e]||r;return(0,i.isFunction)(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var a=n[t];return a?(0,r.__assign)((0,r.__assign)({},a),{callback:function(){var t;(0,i.isFunction)(a.callback)&&a.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):a}return null},e.prototype.drawShape=function(t,e){void 0===e&&(e=!1);var n,a=this.shapeFactory,s=this.container,l=this.shapeType;if(this.shape=a.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?(0,i.isString)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var f=e?"enter":"appear",d=this.getAnimateCfg(f);d&&(null===(n=this.geometry)||void 0===n||n.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(this.shape,d,{coordinate:a.coordinate,toAttrs:(0,r.__assign)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;t.cfg.origin=e,t.cfg.element=this,t.isGroup()&&t.get("children").forEach(function(t){n.setShapeInfo(t,e)})},e.prototype.syncShapeStyle=function(t,e,n,r,a){var s,f=this;if(void 0===n&&(n=[]),void 0===a&&(a=0),t&&e){var d=t.get("clipShape"),p=e.get("clipShape");if(this.syncShapeStyle(d,p,n,r),t.isGroup())for(var h=t.get("children"),g=e.get("children"),v=0;v1){o.sort();var y=function(t,e){var n=t.length,i=t;(0,r.isString)(i[0])&&(i=t.map(function(t){return e.translate(t)}));for(var a=i[1]-i[0],o=2;os&&(a=s)}return a}(o,a);l=(a.max-a.min)/y,o.length>l&&(l=o.length)}var m=a.range,b=1/l,x=1;if(n.isPolar?x=n.isTransposed&&l>1?g:v:(a.isLinear&&(b*=m[1]-m[0]),x=h),!(0,r.isNil)(c)&&c>=0?b=(1-(l-1)*(c/u))/l:b*=x,t.getAdjust("dodge")){var _=function(t,e){if(e){var n=(0,r.flatten)(t);return(0,r.valuesOfKey)(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);!(0,r.isNil)(f)&&f>=0?b=(b-f/u*(_-1))/_:(!(0,r.isNil)(c)&&c>=0&&(b*=x),b/=_),b=b>=0?b:0}if(!(0,r.isNil)(d)&&d>=0){var O=d/u;b>O&&(b=O)}if(!(0,r.isNil)(p)&&p>=0){var P=p/u;b1){for(var f=n.addGroup(),d=0;de.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function _(t){var e=t.parentInstance,n=t.content,r=x(t,["parentInstance","content"]);return b()(!1,"Label组件即将被取消,请使用图形组件的label属性进行配置"),e.label(!1),e.label(n,r),i.a.createElement(i.a.Fragment,null)}Object(y.registerGeometryLabel)("base",o.a),Object(y.registerGeometryLabel)("interval",l.a),Object(y.registerGeometryLabel)("pie",c.a),Object(y.registerGeometryLabel)("polar",d.a),Object(y.registerGeometryLabelLayout)("overlap",v.overlap),Object(y.registerGeometryLabelLayout)("distribute",p.distribute),Object(y.registerGeometryLabelLayout)("fixed-overlap",v.fixedOverlap),Object(y.registerGeometryLabelLayout)("limit-in-shape",g.limitInShape),Object(y.registerGeometryLabelLayout)("limit-in-canvas",h.limitInCanvas)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isBetween=e.isRealNumber=void 0,e.isRealNumber=function(t){return"number"==typeof t&&!isNaN(t)},e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processIllegalData=e.transformDataToNodeLinkData=e.adjustYMetaByZero=void 0;var r=n(1),i=n(0),a=n(500),o=n(499);e.adjustYMetaByZero=function(t,e){var n=t.filter(function(t){var n=i.get(t,[e]);return i.isNumber(n)&&!isNaN(n)}),r=n.every(function(t){return i.get(t,[e])>=0}),a=n.every(function(t){return 0>=i.get(t,[e])});return r?{min:0}:a?{max:0}:{}},e.transformDataToNodeLinkData=function(t,e,n,i,a){if(void 0===a&&(a=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],l={},u=-1;return t.forEach(function(t){var c=t[e],f=t[n],d=t[i],p=o.pick(t,a);l[c]||(l[c]=r.__assign({id:++u,name:c},p)),l[f]||(l[f]=r.__assign({id:++u,name:f},p)),s.push(r.__assign({source:l[c].id,target:l[f].id,value:d},p))}),{nodes:Object.values(l).sort(function(t,e){return t.id-e.id}),links:s}},e.processIllegalData=function(t,e){var n=i.filter(t,function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)});return a.log(a.LEVEL.WARN,n.length===t.length,"illegal data existed in chart data."),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveAllPadding=e.getAdjustAppendPadding=e.normalPadding=void 0;var r=n(0);function i(t){if(r.isNumber(t))return[t,t,t,t];if(r.isArray(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}e.normalPadding=i,e.getAdjustAppendPadding=function(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=i(t),a=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+a[0],r[1]+a[1],r[2]+a[2],r[3]+a[3]]},e.resolveAllPadding=function(t){var e=t.map(function(t){return i(t)}),n=[0,0,0,0];return e.length>0&&(n=n.map(function(t,n){return e.forEach(function(r,i){t+=e[i][n]}),t})),n}},function(t,e,n){"use strict";var r=n(2)(n(6));function i(){return("undefined"==typeof window?"undefined":(0,r.default)(window))==="object"?null==window?void 0:window.devicePixelRatio:2}Object.defineProperty(e,"__esModule",{value:!0}),e.transformMatrix=e.getSymbolsPosition=e.getUnitPatternSize=e.drawBackground=e.initCanvas=e.getPixelRatio=void 0,e.getPixelRatio=i,e.initCanvas=function(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=i();return n.width=t*r,n.height=e*r,n.style.width=t+"px",n.style.height=e+"px",n.getContext("2d").scale(r,r),n},e.drawBackground=function(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,a=e.opacity;t.globalAlpha=a,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()},e.getUnitPatternSize=function(t,e,n){var r=t+e;return n?2*r:r},e.getSymbolsPosition=function(t,e){return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]},e.transformMatrix=function(t,e){var n=e*Math.PI/180;return{a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProgressData=void 0;var r=n(0),i=n(291);e.getProgressData=function(t){var e=r.clamp(i.isRealNumber(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(34),i=n(15),a=n(43),o=n(154),s=n(118),l=n(292);function u(t){var e=t.chart,n=t.options,r=n.data,l=n.color,u=n.areaStyle,c=n.point,f=n.line,d=null==c?void 0:c.state,p=s.getTinyData(r);e.data(p);var h=i.deepAssign({},t,{options:{xField:o.X_FIELD,yField:o.Y_FIELD,area:{color:l,style:u},line:f,point:c}}),g=i.deepAssign({},h,{options:{tooltip:!1}}),v=i.deepAssign({},h,{options:{tooltip:!1,state:d}});return a.area(h),a.line(g),a.point(v),e.axis(!1),e.legend(!1),t}function c(t){var e,n,a=t.options,u=a.xAxis,c=a.yAxis,f=a.data,d=s.getTinyData(f);return i.flow(r.scale(((e={})[o.X_FIELD]=u,e[o.Y_FIELD]=c,e),((n={})[o.X_FIELD]={type:"cat"},n[o.Y_FIELD]=l.adjustYMetaByZero(d,o.Y_FIELD),n)))(t)}e.meta=c,e.adaptor=function(t){return i.flow(r.pattern("areaStyle"),u,c,r.tooltip,r.theme,r.animation,r.annotation())(t)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.Node=P,e.computeHeight=O,e.default=m;var i=r(n(229)),a=r(n(1093)),o=r(n(1094)),s=r(n(1095)),l=r(n(1096)),u=r(n(1097)),c=r(n(1098)),f=r(n(1099)),d=r(n(1100)),p=r(n(1101)),h=r(n(1102)),g=r(n(1103)),v=r(n(1104)),y=r(n(1105));function m(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=x)):void 0===e&&(e=b);for(var n,r,i,a,o,s=new P(t),l=[s];n=l.pop();)if((i=e(n.data))&&(o=(i=Array.from(i)).length))for(n.children=i,a=o-1;a>=0;--a)l.push(r=i[a]=new P(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(O)}function b(t){return t.children}function x(t){return Array.isArray(t)?t[1]:null}function _(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function O(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function P(t){this.data=t,this.depth=this.height=0,this.parent=null}P.prototype=m.prototype=(0,i.default)({constructor:P,count:a.default,each:o.default,eachAfter:l.default,eachBefore:s.default,find:u.default,sum:c.default,sort:f.default,path:d.default,ancestors:p.default,descendants:h.default,leaves:g.default,links:v.default,copy:function(){return m(this).eachBefore(_)}},Symbol.iterator,y.default)},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw Error();return t}Object.defineProperty(e,"__esModule",{value:!0}),e.optional=function(t){return null==t?null:r(t)},e.required=r},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.phi=e.default=void 0,e.squarifyRatio=s;var i=r(n(155)),a=r(n(194)),o=(1+Math.sqrt(5))/2;function s(t,e,n,r,o,s){for(var l,u,c,f,d,p,h,g,v,y,m,b=[],x=e.children,_=0,O=0,P=x.length,M=e.value;_h&&(h=u),(g=Math.max(h/(m=d*d*y),m/p))>v){d-=u;break}v=g}b.push(l={value:d,dice:c1?e:1)},n}(o);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conversionTagComponent=e.transformData=void 0;var r=n(1),i=n(0),a=n(120);e.transformData=function(t,e,n){var r=n.yField,o=n.maxSize,s=n.minSize,l=i.get(i.maxBy(e,r),[r]),u=i.isNumber(o)?o:1,c=i.isNumber(s)?s:0;return i.map(t,function(e,n){var o=(e[r]||0)/l;return e[a.FUNNEL_PERCENT]=o,e[a.FUNNEL_MAPPING_VALUE]=(u-c)*o+c,e[a.FUNNEL_CONVERSATION]=[i.get(t,[n-1,r]),e[r]],e})},e.conversionTagComponent=function(t){return function(e){var n=e.chart,o=e.options.conversionTag,s=n.getOptions().data;if(o){var l=o.formatter;s.forEach(function(e,u){if(!(u<=0||Number.isNaN(e[a.FUNNEL_MAPPING_VALUE]))){var c=t(e,u,s,{top:!0,text:{content:i.isFunction(l)?l(e,s):l,offsetX:o.offsetX,offsetY:o.offsetY,position:"end",autoRotate:!1,style:r.__assign({textAlign:"start",textBaseline:"middle"},o.style)}});n.annotation().line(c)}})}return e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.IS_TOTAL=e.ABSOLUTE_FIELD=e.DIFF_FIELD=e.Y_FIELD=void 0,e.Y_FIELD="$$yField$$",e.DIFF_FIELD="$$diffField$$",e.ABSOLUTE_FIELD="$$absoluteField$$",e.IS_TOTAL="$$isTotal$$",e.DEFAULT_OPTIONS={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i},e.isRealNumber=function(t){return"number"==typeof t&&!isNaN(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(u,c,g,a.theme,f,d,p,a.tooltip,h,a.slider,a.interaction,a.animation,(0,a.annotation)(),a.limitInPlot)(t)},e.adjust=g,e.axis=d,e.legend=p,e.meta=c;var r=n(1),i=n(0),a=n(22),o=n(7),s=n(30),l=n(197);function u(t){var e=t.chart,n=t.options,i=n.data,a=n.color,l=n.lineStyle,u=n.lineShape,c=n.point,f=n.area,d=n.seriesField,p=null==c?void 0:c.state;e.data(i);var h=(0,o.deepAssign)({},t,{options:{shapeField:d,line:{color:a,style:l,shape:u},point:c&&(0,r.__assign)({color:a,shape:"circle"},c),area:f&&(0,r.__assign)({color:a},f),label:void 0}}),g=(0,o.deepAssign)({},h,{options:{tooltip:!1,state:p}}),v=(0,o.deepAssign)({},h,{options:{tooltip:!1,state:p}});return(0,s.line)(h),(0,s.point)(g),(0,s.area)(v),t}function c(t){var e,n,r=t.options,i=r.xAxis,s=r.yAxis,u=r.xField,c=r.yField,f=r.data;return(0,o.flow)((0,a.scale)(((e={})[u]=i,e[c]=s,e),((n={})[u]={type:"cat"},n[c]=(0,l.adjustYMetaByZero)(f,c),n)))(t)}function f(t){var e=t.chart,n=t.options.reflect;if(n){var r=n;(0,i.isArray)(r)||(r=[r]);var a=r.map(function(t){return["reflect",t]});e.coordinate({type:"rect",actions:a})}return t}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function p(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function h(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=(0,o.findGeometry)(e,"line");if(i){var l=i.callback,u=(0,r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:(0,r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},(0,o.transformLabel)(u))})}else s.label(!1);return t}function g(t){var e=t.chart;return t.options.isStack&&(0,i.each)(e.geometries,function(t){t.adjust("stack")}),t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.drawBackground=function(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,a=e.opacity;t.globalAlpha=a,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()},e.getPixelRatio=a,e.getSymbolsPosition=function(t,e){return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]},e.getUnitPatternSize=function(t,e,n){var r=t+e;return n?2*r:r},e.initCanvas=function(t,e){void 0===e&&(e=t);var n=document.createElement("canvas"),r=a();return n.width=t*r,n.height=e*r,n.style.width=t+"px",n.style.height=e+"px",n.getContext("2d").scale(r,r),n},e.transformMatrix=function(t,e){var n=e*Math.PI/180;return{a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0}};var i=r(n(6));function a(){return("undefined"==typeof window?"undefined":(0,i.default)(window))==="object"?null==window?void 0:window.devicePixelRatio:2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getGeometryOption=function(t,e,n){return l(n)?(0,a.deepAssign)({},{geometry:o.DualAxesGeometry.Column,label:n.label&&n.isRange?{content:function(t){var n;return null===(n=t[e])||void 0===n?void 0:n.join("-")}}:void 0},n):(0,r.__assign)({geometry:o.DualAxesGeometry.Line},n)},e.getYAxisWithDefault=function(t,e){return e===o.AxisType.Left?!1!==t&&(0,a.deepAssign)({},s.DEFAULT_LEFT_YAXIS_CONFIG,t):e===o.AxisType.Right?!1!==t&&(0,a.deepAssign)({},s.DEFAULT_RIGHT_YAXIS_CONFIG,t):t},e.isColumn=l,e.isLine=function(t){return(0,i.get)(t,"geometry")===o.DualAxesGeometry.Line},e.transformObjectToArray=function(t,e){var n=t[0],r=t[1];return(0,i.isArray)(e)?[e[0],e[1]]:[(0,i.get)(e,n),(0,i.get)(e,r)]};var r=n(1),i=n(0),a=n(7),o=n(567),s=n(568);function l(t){return(0,i.get)(t,"geometry")===o.DualAxesGeometry.Column}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,i.flow)(u,(0,a.scale)({}),c,a.animation,a.theme,(0,a.annotation)())(t)},e.geometry=u;var r=n(0),i=n(7),a=n(22),o=n(30),s=n(579),l=n(307);function u(t){var e=t.chart,n=t.options,a=n.percent,u=n.progressStyle,c=n.color,f=n.barWidthRatio;e.data((0,l.getProgressData)(a));var d=(0,i.deepAssign)({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:f,interval:{style:u,color:(0,r.isString)(c)?[c,s.DEFAULT_COLOR[1]]:c},args:{zIndexReversed:!0}}});return(0,o.interval)(d),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function c(t){return t.chart.coordinate("rect").transpose(),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProgressData=function(t){var e=(0,r.clamp)((0,i.isRealNumber)(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]};var r=n(0),i=n(302)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OUTLIERS_VIEW_ID=e.DEFAULT_OPTIONS=e.BOX_SYNC_NAME=e.BOX_RANGE_ALIAS=e.BOX_RANGE=void 0;var r,i=n(19),a=n(7),o="$$range$$";e.BOX_RANGE=o;var s="low-q1-median-q3-high";e.BOX_RANGE_ALIAS=s,e.BOX_SYNC_NAME="$$y_outliers$$",e.OUTLIERS_VIEW_ID="outliers_view";var l=(0,a.deepAssign)({},i.Plot.getDefaultOptions(),{meta:((r={})[o]={min:0,alias:s},r),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}});e.DEFAULT_OPTIONS=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.placeElementsOrdered=function(t){t&&t.geometries[0].elements.forEach(function(t){t.shape.toFront()})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Y_FIELD=e.TREND_UP=e.TREND_FIELD=e.TREND_DOWN=e.DEFAULT_TOOLTIP_OPTIONS=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7);e.Y_FIELD="$$stock-range$$",e.TREND_FIELD="trend",e.TREND_UP="up",e.TREND_DOWN="down";var a={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}};e.DEFAULT_TOOLTIP_OPTIONS=a;var o=(0,i.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:a,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"});e.DEFAULT_OPTIONS=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conversionTagComponent=function(t){return function(e){var n=e.chart,o=e.options.conversionTag,s=n.getOptions().data;if(o){var l=o.formatter;s.forEach(function(e,u){if(!(u<=0||Number.isNaN(e[a.FUNNEL_MAPPING_VALUE]))){var c=t(e,u,s,{top:!0,text:{content:(0,i.isFunction)(l)?l(e,s):l,offsetX:o.offsetX,offsetY:o.offsetY,position:"end",autoRotate:!1,style:(0,r.__assign)({textAlign:"start",textBaseline:"middle"},o.style)}});n.annotation().line(c)}})}return e}},e.transformData=function(t,e,n){var r=n.yField,o=n.maxSize,s=n.minSize,l=(0,i.get)((0,i.maxBy)(e,r),[r]),u=(0,i.isNumber)(o)?o:1,c=(0,i.isNumber)(s)?s:0;return(0,i.map)(t,function(e,n){var o=(e[r]||0)/l;return e[a.FUNNEL_PERCENT]=o,e[a.FUNNEL_MAPPING_VALUE]=(u-c)*o+c,e[a.FUNNEL_CONVERSATION]=[(0,i.get)(t,[n-1,r]),e[r]],e})};var r=n(1),i=n(0),a=n(125)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SUNBURST_Y_FIELD=e.SUNBURST_PATH_FIELD=e.SUNBURST_ANCESTOR_FIELD=e.RAW_FIELDS=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7),a=n(157);e.SUNBURST_ANCESTOR_FIELD="ancestor-node",e.SUNBURST_Y_FIELD="value";var o="path";e.SUNBURST_PATH_FIELD=o;var s=[o,a.NODE_INDEX_FIELD,a.NODE_ANCESTORS_FIELD,a.CHILD_NODE_COUNT,"name","depth","height"];e.RAW_FIELDS=s;var l=(0,i.deepAssign)({},r.Plot.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});e.DEFAULT_OPTIONS=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isParentNode=o;var r=n(14),i=n(0),a=n(201);function o(t){var e=(0,i.get)(t,["event","data","data"],{});return(0,i.isArray)(e.children)&&e.children.length>0}function s(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,a=r.y,o=e.center;return Math.sqrt(Math.pow(o.x-i,2)+Math.pow(o.y-a,2))=n){var i=r.parsePosition([t[s],t[o.field]]);i&&f.push(i)}if(t[s]===c)return!1}),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,a=r.end,o={x:Math.min(i.x,a.x),y:Math.min(i.y,a.y)};return{x:r.getWidth()*e+o.x,y:r.getHeight()*n+o.y}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+r,maxY:a.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var a=this,s=this.view.getCoordinate(),u=this.view.getCanvas(),c={};if((0,i.isNil)(e))return null;if("arc"===t){var f=e.start,d=e.end,p=(0,r.__rest)(e,["start","end"]),h=this.parsePosition(f),g=this.parsePosition(d),v=(0,l.getAngleByPoint)(s,h),y=(0,l.getAngleByPoint)(s,g);v>y&&(y=2*Math.PI+y),c=(0,r.__assign)((0,r.__assign)({},p),{center:s.getCenter(),radius:(0,l.getDistanceToCenter)(s,h),startAngle:v,endAngle:y})}else if("image"===t){var f=e.start,d=e.end,p=(0,r.__rest)(e,["start","end"]);c=(0,r.__assign)((0,r.__assign)({},p),{start:this.parsePosition(f),end:this.parsePosition(d),src:e.src})}else if("line"===t){var f=e.start,d=e.end,p=(0,r.__rest)(e,["start","end"]);c=(0,r.__assign)((0,r.__assign)({},p),{start:this.parsePosition(f),end:this.parsePosition(d),text:(0,i.get)(e,"text",null)})}else if("region"===t){var f=e.start,d=e.end,p=(0,r.__rest)(e,["start","end"]);c=(0,r.__assign)((0,r.__assign)({},p),{start:this.parsePosition(f),end:this.parsePosition(d)})}else if("text"===t){var m=this.view.getData(),b=e.position,x=e.content,p=(0,r.__rest)(e,["position","content"]),_=x;(0,i.isFunction)(x)&&(_=x(m)),c=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},this.parsePosition(b)),p),{content:_})}else if("dataMarker"===t){var b=e.position,O=e.point,P=e.line,M=e.text,A=e.autoAdjust,S=e.direction,p=(0,r.__rest)(e,["position","point","line","text","autoAdjust","direction"]);c=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},p),this.parsePosition(b)),{coordinateBBox:this.getCoordinateBBox(),point:O,line:P,text:M,autoAdjust:A,direction:S})}else if("dataRegion"===t){var f=e.start,d=e.end,w=e.region,M=e.text,E=e.lineLength,p=(0,r.__rest)(e,["start","end","region","text","lineLength"]);c=(0,r.__assign)((0,r.__assign)({},p),{points:this.getRegionPoints(f,d),region:w,text:M,lineLength:E})}else if("regionFilter"===t){var f=e.start,d=e.end,C=e.apply,T=e.color,p=(0,r.__rest)(e,["start","end","apply","color"]),I=this.view.geometries,j=[],F=function t(e){e&&(e.isGroup()?e.getChildren().forEach(function(e){return t(e)}):j.push(e))};(0,i.each)(I,function(t){C?(0,i.contains)(C,t.type)&&(0,i.each)(t.elements,function(t){F(t.shape)}):(0,i.each)(t.elements,function(t){F(t.shape)})}),c=(0,r.__assign)((0,r.__assign)({},p),{color:T,shapes:j,start:this.parsePosition(f),end:this.parsePosition(d)})}else if("shape"===t){var L=e.render,D=(0,r.__rest)(e,["render"]);c=(0,r.__assign)((0,r.__assign)({},D),{render:function(t){if((0,i.isFunction)(e.render))return L(t,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var k=e.html,b=e.position,D=(0,r.__rest)(e,["html","position"]);c=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},D),this.parsePosition(b)),{parent:u.get("el").parentNode,html:function(t){return(0,i.isFunction)(k)?k(t,a.view):k}})}var R=(0,i.deepMix)({},n,(0,r.__assign)((0,r.__assign)({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(R.container=this.getComponentContainer(R)),R.animate=this.view.getOptions().animate&&R.animate&&(0,i.get)(e,"animate",R.animate),R.animateOption=(0,i.deepMix)({},o.DEFAULT_ANIMATE_CFG,R.animateOption,e.animateOption),R},e.prototype.isTop=function(t){return(0,i.get)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return(0,i.get)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,r=this.getAnnotationTheme(n),a=this.getAnnotationCfg(n,t,r);(0,u.omit)(a,["container"]),e.component.update(a),(0,i.includes)(d,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),(0,i.includes)(d,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach(function(t,e){n.set(e,t)}),n.forEach(function(t,r){(0,i.find)(e.option,function(t){return r===e.getCacheKey(t)})||(t.component.destroy(),n.delete(r))}),n},e.prototype.getCacheKey=function(t){return t},e}(f.Controller);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=void 0,e.positionUpdate=function(t,e,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:a},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=void 0;var r=n(1),i=n(205),a=n(0),o=n(46);function s(t,e){var n,r=(0,i.getArcParams)(t,e),o=r.startAngle,s=r.endAngle;return!(0,a.isNumberEqual)(o,-(.5*Math.PI))&&o<-(.5*Math.PI)&&(o+=2*Math.PI),!(0,a.isNumberEqual)(s,-(.5*Math.PI))&&s<-(.5*Math.PI)&&(s+=2*Math.PI),0===e[5]&&(o=(n=[s,o])[0],s=n[1]),(0,a.isNumberEqual)(o,1.5*Math.PI)&&(o=-.5*Math.PI),(0,a.isNumberEqual)(s,-.5*Math.PI)&&(s=1.5*Math.PI),{startAngle:o,endAngle:s}}function l(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:("a"===t[0]||"A"===t[0]||"C"===t[0])&&(e=[t[t.length-2],t[t.length-1]]),e}function u(t){var e,n,r,i=t.filter(function(t){return"A"===t[0]||"a"===t[0]});if(0===i.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=i[0],u=i.length>1?i[1]:i[0],c=t.indexOf(o),f=t.indexOf(u),d=l(t[c-1]),p=l(t[f-1]),h=s(d,o),g=h.startAngle,v=h.endAngle,y=s(p,u),m=y.startAngle,b=y.endAngle;(0,a.isNumberEqual)(g,m)&&(0,a.isNumberEqual)(v,b)?(n=g,r=v):(n=Math.min(g,m),r=Math.max(v,b));var x=o[1],_=i[i.length-1][1];return x<_?(x=(e=[_,x])[0],_=e[1]):x===_&&(_=0),{startAngle:n,endAngle:r,radius:x,innerRadius:_}}e.sectorPathUpdate=function(t,e,n){var i=n.toAttrs,s=n.coordinate,l=i.path||[],c=l.map(function(t){return t[0]});if(!(l.length<1)){var f=u(l),d=f.startAngle,p=f.endAngle,h=f.radius,g=f.innerRadius,v=u(t.attr("path")),y=v.startAngle,m=v.endAngle,b=s.getCenter(),x=d-y,_=p-m;if(0===x&&0===_){t.attr("path",l);return}t.animate(function(t){var e=y+t*x,n=m+t*_;return(0,r.__assign)((0,r.__assign)({},i),{path:(0,a.isEqual)(c,["M","A","A","Z"])?(0,o.getArcPath)(b.x,b.y,h,e,n):(0,o.getSectorPath)(b.x,b.y,h,e,n,g)})},(0,r.__assign)((0,r.__assign)({},e),{callback:function(){t.attr("path",l)}}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.waveIn=void 0;var r=n(1),i=n(48);e.waveIn=function(t,e,n){var a=(0,i.getCoordinateClipCfg)(n.coordinate,20),o=a.type,s=a.startState,l=a.endState,u=t.setClip({type:o,attrs:s});u.animate(l,(0,r.__assign)((0,r.__assign)({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),u.remove(!0)}}))}},function(t,e,n){"use strict";n.r(e);var r=n(14);for(var i in r)0>["default"].indexOf(i)&&function(t){n.d(e,t,function(){return r[t]})}(i)},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0});var a={version:!0,Shape:!0,Canvas:!0,Group:!0};Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return u.default}}),e.version=e.Shape=void 0;var o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(190));e.Shape=o;var s=n(26);Object.keys(s).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(a,t))&&(t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))});var l=r(n(980)),u=r(n(275));function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(21),a=(0,r.__importDefault)(n(158));n(278);var o=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=e.sortable,a=e.showSinglePoint;return n.startOnZero=void 0===r||r,n.sortable=void 0!==i&&i,n.showSinglePoint=void 0!==a&&a,n}return(0,r.__extends)(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;rr&&(r=i),i=e[0]}));for(var d=this.scales[c],p=0,h=t;p0&&!(0,i.get)(n,[r,"min"])&&e.change({min:0}),o<=0&&!(0,i.get)(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=(0,r.__importDefault)(n(158));n(276);var a=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable;return n.sortable=void 0!==r&&r,n}return(0,r.__extends)(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=(0,r.__importDefault)(n(91));n(988);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return(0,r.__extends)(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return(0,r.__assign)((0,r.__assign)({},n),{isStack:!!this.getAdjust("stack")})},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(91));n(462);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return(0,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=r.x,o=r.y;if(!((0,i.isArray)(a)&&(0,i.isArray)(o))){var s=this.getXScale(),l=this.getYScale(),u=s.values.length,c=l.values.length,f=.5/u,d=.5/c;s.isCategory&&l.isCategory?(a=[a-f,a-f,a+f,a+f],o=[o-d,o+d,o+d,o-d]):(0,i.isArray)(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-d/2,o+d/2,o+d/2,o-d/2]):(0,i.isArray)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-f/2,a-f/2,a+f/2,a+f/2]),r.x=a,r.y=o}return r},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(48),a=(0,r.__importDefault)(n(91));n(463);var o=n(279),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return(0,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,e)[0];var s=this.coordinate;n/=(0,i.getXDimensionLength)(s)}else this.defaultSize||(this.defaultSize=(0,o.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var r=n(0),i=n(46);e.distribute=function(t,e,n,a){if(t.length&&e.length){var o=t[0]?t[0].offset:0,s=e[0].get("coordinate"),l=s.getRadius(),u=s.getCenter();if(o>0){var c=2*(l+o)+28,f={start:s.start,end:s.end},d=[[],[]];t.forEach(function(t){t&&("right"===t.textAlign?d[0].push(t):d[1].push(t))}),d.forEach(function(t,n){var i=c/14;t.length>i&&(t.sort(function(t,e){return e["..percent"]-t["..percent"]}),t.splice(i,t.length-i)),t.sort(function(t,e){return t.y-e.y}),function(t,e,n,i,a,o){var s,l=!0,u=i.start,c=i.end,f=Math.min(u.y,c.y),d=Math.abs(u.y-c.y),p=0,h=Number.MIN_VALUE,g=e.map(function(t){return t.y>p&&(p=t.y),t.yd&&(d=p-f);l;)for(g.forEach(function(t){var e=(Math.min.apply(h,t.targets)+Math.max.apply(h,t.targets))/2;t.pos=Math.min(Math.max(h,e-t.size/2),d-t.size)}),l=!1,s=g.length;s--;)if(s>0){var v=g[s-1],y=g[s];v.pos+v.size>y.pos&&(v.size+=y.size,v.targets=v.targets.concat(y.targets),v.pos+v.size>d&&(v.pos=d-v.size),g.splice(s,1),l=!0)}s=0,g.forEach(function(t){var r=f+n/2;t.targets.forEach(function(){e[s].y=t.pos+r,r+=n,s++})});for(var m={},b=0;br?v=r-h:c>r&&(v-=c-r),u>o?y=o-g:f>o&&(y-=f-o),(v!==d||y!==p)&&(0,i.translate)(t,v-d,y-p)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInShape=void 0;var r=n(0);e.limitInShape=function(t,e,n,i){(0,r.each)(e,function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minXi.maxX||r.maxY>i.maxY)&&t.remove(!0)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(116),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),a=(0,o.getAnglePoint)({x:.5,y:.5},.5-i,r),s=5*Math.PI/4,l=1*Math.PI/4;return{start:(0,o.getAnglePoint)(a,i,s),end:(0,o.getAnglePoint)(a,i,l)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,r=n.fields,a=n.type,o=r[0];if(!o)throw Error("No `fields` specified!");var s=this.getFieldValues(t,o),l=s.length,u=[];return s.forEach(function(n,r){var c=[{field:o,value:n,values:s}],f={type:a,data:(0,i.filter)(t,e.getFacetDataFilter(c)),region:e.getRegion(l,r),columnValue:n,columnField:o,columnIndex:r,columnValuesLength:l,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};u.push(f)}),u},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)})},e}(n(105).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(116),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,r=this.cfg.cols,a=n[0];if(!a)throw Error("No `fields` specified!");var o=this.getFieldValues(t,a),s=o.length;r=r||s;var l=this.getPageCount(s,r),u=[];return o.forEach(function(n,c){var f=e.getRowCol(c,r),d=f.row,p=f.col,h=[{field:a,value:n,values:o}],g=(0,i.filter)(t,e.getFacetDataFilter(h)),v={type:e.cfg.type,data:g,region:e.getRegion(l,r,p,d),columnValue:n,rowValue:n,columnField:a,rowField:null,columnIndex:p,rowIndex:d,columnValuesLength:r,rowValuesLength:l,total:s};u.push(v)}),u},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?(0,r.__assign)((0,r.__assign)({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?(0,r.__assign)((0,r.__assign)({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)})},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(n(105).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(116),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,r.__assign)({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,r.__assign)({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,a=[],o=0;o=0;a--)for(var o=this.getFacetsByLevel(t,a),s=0;s-1)||(0,u.isBetween)(n,l,c)}),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(n(104).Controller);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getItemsOfView=void 0;var r=n(1),i=n(0),a=n(186),o=n(46),s=(0,r.__importDefault)(n(44)),l={fill:"#CCD6EC",opacity:.3};function u(t,e,n){var r=(0,a.findItemsFromViewRecurisive)(t,e,n);if(r.length){r=(0,i.flatten)(r);for(var o=0,s=r;o1){for(var h=r[0],g=Math.abs(e.y-h[0].y),v=0,y=r;vv.maxY&&(v=e)):(e.minXv.maxX&&(v=e)),y.x=Math.min(e.minX,y.minX),y.y=Math.min(e.minY,y.minY),y.width=Math.max(e.maxX,y.maxX)-y.x,y.height=Math.max(e.maxY,y.maxY)-y.y});var m=e.backgroundGroup,b=e.coordinateBBox,x=void 0;if(h.isRect){var _=e.getXScale(),O=t||{},P=O.appendRatio,M=O.appendWidth;(0,i.isNil)(M)&&(P=(0,i.isNil)(P)?_.isLinear?0:.25:P,M=h.isTransposed?P*v.height:P*g.width);var A=void 0,S=void 0,w=void 0,E=void 0;h.isTransposed?(A=b.minX,S=Math.min(v.minY,g.minY)-M,w=b.width,E=y.height+2*M):(A=Math.min(g.minX,v.minX)-M,S=b.minY,w=y.width+2*M,E=b.height),x=[["M",A,S],["L",A+w,S],["L",A+w,S+E],["L",A,S+E],["Z"]]}else{var C=(0,i.head)(d),T=(0,i.last)(d),I=(0,o.getAngle)(C.getModel(),h).startAngle,j=(0,o.getAngle)(T.getModel(),h).endAngle,F=h.getCenter(),L=h.getRadius(),D=h.innerRadius*L;x=(0,o.getSectorPath)(F.x,F.y,L,I,j,D)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var k=(0,i.get)(t,"style",l);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,r.__assign)((0,r.__assign)({},k),{path:x})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(31),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.showTooltip=function(t,e){var n=(0,a.getSilbings)(t);(0,i.each)(n,function(n){var r=(0,a.getSiblingPoint)(t,n,e);n.showTooltip(r)})},e.prototype.hideTooltip=function(t){var e=(0,a.getSilbings)(t);(0,i.each)(e,function(t){t.hideTooltip()})},e}((0,r.__importDefault)(n(127)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(179),o=(0,r.__importDefault)(n(44)),s=n(69),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return(0,r.__extends)(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,a={x:t.x,y:t.y};r&&(0,i.isEqual)(r,a)||this.showTooltip(a),this.timeStamp=n,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update((0,r.__assign)({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,o={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},l=e.getTheme(),u=(0,i.get)(l,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:n.get("el").parentNode,region:o,visible:!1,crosshairs:null,domStyles:(0,r.__assign)({},(0,i.deepMix)({},u,((t={})[a.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[a.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return(0,r.__extends)(e,t),e.prototype.active=function(){this.setState()},e}((0,r.__importDefault)(n(283)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=(0,r.__importDefault)(n(44)),a=n(31),o=n(0),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return(0,r.__extends)(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,i){var a={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:(0,r.__assign)((0,r.__assign)({},(0,o.deepMix)({},a,(0,o.isFunction)(i)?i(a,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var s=(0,a.getElementValue)(t,i.field);if(!this.cache[s]){var l=(0,a.getElementsByField)(r,i.field,s),u=this.linkGroup.addGroup();this.cache[s]=u;var c=l.length;(0,o.each)(l,function(t,r){if(r=u&&t<=c}),e.render(!0)}}},e}(a.default);e.default=s},function(t,e,n){"use strict";var r=n(949);function i(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=i=function(t,e,n){var i=r(t,e);if(i){var a=Object.getOwnPropertyDescriptor(i,e);return a.get?a.get.call(arguments.length<3?t:n):a.value}},t.exports.__esModule=!0,t.exports.default=t.exports),i.apply(this,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(2)(n(6)),i=n(365),a="function"==typeof Symbol&&"symbol"===(0,r.default)(Symbol("foo")),o=Object.prototype.toString,s=Array.prototype.concat,l=Object.defineProperty,u=n(649)(),c=l&&u,f=function(t,e,n,r){(!(e in t)||"function"==typeof r&&"[object Function]"===o.call(r)&&r())&&(c?l(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},d=function(t,e){var n=arguments.length>2?arguments[2]:{},r=i(e);a&&(r=s.call(r,Object.getOwnPropertySymbols(e)));for(var o=0;o=0&&"[object Function]"===i.call(t.callee)),n}},function(t,e,n){"use strict";var r=n(2)(n(6));t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"===(0,r.default)(Symbol.iterator))return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e||"[object Symbol]"!==Object.prototype.toString.call(e)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e||!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(t,e);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},function(t,e,n){"use strict";var r=n(237),i=n(236),a=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(o,a),l=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),c=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}t.exports=function(t){var e=s(r,o,arguments);return l&&u&&l(e,"length").configurable&&u(e,"length",{value:1+c(0,t.length-(arguments.length-1))}),e};var f=function(){return s(r,a,arguments)};u?u(t.exports,"apply",{value:f}):t.exports.apply=f},function(t,e,n){"use strict";var r=n(365),i=n(367)(),a=n(653),o=Object,s=a("Array.prototype.push"),l=a("Object.prototype.propertyIsEnumerable"),u=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw TypeError("target must be an object");var n=o(t);if(1==arguments.length)return n;for(var a=1;a2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t}),n};e.parsePathString=s;var l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=l;var u=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),l=t+n*Math.cos(-i*o),u=e+n*Math.sin(-r*o),c=e+n*Math.sin(-i*o);a=[["M",s,u],["A",n,n,0,+(i-r>180),0,l,c]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,f=0;"M"===t[0][0]&&(i=+t[0][1],a=+t[0][2],o=i,c=a,f++,r[0]=["M",i,a]);for(var d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,h=void 0,g=f,v=t.length;g1&&(r*=O=Math.sqrt(O),i*=O);var P=r*r,M=i*i,A=(o===s?-1:1)*Math.sqrt(Math.abs((P*M-P*_*_-M*x*x)/(P*_*_+M*x*x)));h=A*r*_/i+(e+l)/2,g=-(A*i)*x/r+(n+u)/2,d=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((u-g)/i).toFixed(9)),d=ep&&(d-=2*Math.PI),!s&&p>d&&(p-=2*Math.PI)}var S=p-d;if(Math.abs(S)>v){var w=p,E=l,C=u;m=t(l=h+r*Math.cos(p=d+v*(s&&p>d?1:-1)),u=g+i*Math.sin(p),r,i,a,0,s,E,C,[p,w,h,g])}S=p-d;var T=Math.cos(d),I=Math.cos(p),j=Math.tan(S/4),F=4/3*r*j,L=4/3*i*j,D=[e,n],k=[e+F*Math.sin(d),n-L*T],R=[l+F*Math.sin(p),u-L*I],N=[l,u];if(k[0]=2*D[0]-k[0],k[1]=2*D[1]-k[1],c)return[k,R,N].concat(m);m=[k,R,N].concat(m).join().split(",");for(var B=[],G=0,V=m.length;G7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},y=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p<12;p++){var h=u*c[p]+u,g=y(h,t,n,i,o),v=y(h,e,r,a,s),m=g*g+v*v;d+=f[p]*Math.sqrt(m)}return u*d},b=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,d,p=[],h=[[],[]],g=0;g<2;++g){if(0===g?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),1e-12>Math.abs(l)){if(1e-12>Math.abs(u))continue;(f=-c/u)>0&&f<1&&p.push(f);continue}var v=u*u-4*c*l,y=Math.sqrt(v);if(!(v<0)){var m=(-u+y)/(2*l);m>0&&m<1&&p.push(m);var b=(-u-y)/(2*l);b>0&&b<1&&p.push(b)}}for(var x=p.length,_=x;x--;)d=1-(f=p[x]),h[0][x]=d*d*d*t+3*d*d*f*n+3*d*f*f*i+f*f*f*o,h[1][x]=d*d*d*e+3*d*d*f*r+3*d*f*f*a+f*f*f*s;return h[0][_]=t,h[1][_]=e,h[0][_+1]=o,h[1][_+1]=s,h[0].length=h[1].length=_+2,{min:{x:Math.min.apply(0,h[0]),y:Math.min.apply(0,h[1])},max:{x:Math.max.apply(0,h[0]),y:Math.max.apply(0,h[1])}}},x=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),d=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},_=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},O=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=v,a};e.rectPath=O;var P=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:O(t,e,n,r),vb:[t,e,n,r].join(" ")}},M=function(t,e,n,i,a,o,s,l){(0,r.isArray)(t)||(t=[t,e,n,i,a,o,s,l]);var u=b.apply(null,t);return P(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},A=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),d=l*l,p=d*l,h=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(a-2*r+e),v=n+2*l*(i-n)+d*(o-2*i+n),y=r+2*l*(a-r)+d*(s-2*a+r),m=90-180*Math.atan2(h-v,g-y)/Math.PI;return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:h,y:g},n:{x:v,y:y},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:m}},S=function(t,e,n){var r,i,a=M(t),o=M(e);if(r=a,i=o,r=P(r),!(_(i=P(i),r.x,r.y)||_(i,r.x2,r.y)||_(i,r.x,r.y2)||_(i,r.x2,r.y2)||_(r,i.x,i.y)||_(r,i.x2,i.y)||_(r,i.x,i.y2)||_(r,i.x2,i.y2))&&((!(r.xi.x))&&(!(i.xr.x))||(!(r.yi.y))&&(!(i.yr.y))))return n?0:[];for(var s=m.apply(0,t),l=m.apply(0,e),u=~~(s/8),c=~~(l/8),f=[],d=[],p={},h=n?0:[],g=0;gMath.abs(O.x-b.x)?"y":"x",C=.001>Math.abs(w.x-S.x)?"y":"x",T=x(b.x,b.y,O.x,O.y,S.x,S.y,w.x,w.y);if(T){if(p[T.x.toFixed(4)]===T.y.toFixed(4))continue;p[T.x.toFixed(4)]=T.y.toFixed(4);var I=b.t+Math.abs((T[E]-b[E])/(O[E]-b[E]))*(O.t-b.t),j=S.t+Math.abs((T[C]-S[C])/(w[C]-S[C]))*(w.t-S.t);I>=0&&I<=1&&j>=0&&j<=1&&(n?h+=1:h.push({x:T.x,y:T.y,t1:I,t2:j}))}}return h},w=function(t,e,n){t=h(t),e=h(e);for(var r,i,a,o,s,l,u,c,f,d,p=n?0:[],g=0,v=t.length;g=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;l--)o=a[l].index,"add"===a[l].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var f=i-(r=t.length);if(r0)n=I(n,t[r-1],1);else{t[r]=e[r];break}}t[r]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(r>0)n=I(n,t[r-1],2);else{t[r]=e[r];break}}t[r]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(r>0)n=I(n,t[r-1],1);else{t[r]=e[r];break}}t[r]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(126)),o=n(102),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,o.mix)(r,e),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(a.default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(393)),s=n(102),l={},u="_INDEX",c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],l=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)});return l.length>0?((0,s.each)(l,function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)}),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],l=this.getChildren().filter(function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)});return l.length>0?((0,s.each)(l,function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)}),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,s.each)(e,function(e){e.applyMatrix(t)})},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var o=t[a];if((0,s.isAllowCapture)(o)&&(o.isGroup()?i=o.getShape(e,n,r):o.isHit(e,n)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&(t.set("parent",null),t.set("canvas",null),(0,s.removeFromArray)(i.getChildren(),t)),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(e){t(e,n)})}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(e){t(e,n)})}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();(0,s.each)(t,function(t,e){return t[u]=e,t}),t.sort(function(t,e){var n=t.get("zIndex")-e.get("zIndex");return 0===n?t[u]-e[u]:n}),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,s.each)(n,function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))}),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,s.each)(n,function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1}),e},e.prototype.findById=function(t){return this.find(function(e){return e.get("id")===t})},e.prototype.findByClassName=function(t){return this.find(function(e){return e.get("className")===t})},e.prototype.findAllByName=function(t){return this.findAll(function(e){return e.get("name")===t})},e}(o.default);e.default=c},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(32),s=n(102),l=n(243),u=r(n(391)),c=o.ext.transform,f="matrix",d=["zIndex","capture","visible","type"],p=["repeat"],h=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,a.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?d=function(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,a.each)(t,function(t){n+rt.delay&&(0,a.each)(e.toAttrs,function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])})}),t}(d,P):f.addAnimator(this),d.push(P),this.set("animations",d),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,a.each)(n,function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,a.each)(e,function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,a.each)(e,function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents(),"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=this,l=0;l0?(n[0]=(u*s+d*r+c*o-f*a)*2/p,n[1]=(c*s+d*a+f*r-u*o)*2/p,n[2]=(f*s+d*o+u*a-c*r)*2/p):(n[0]=(u*s+d*r+c*o-f*a)*2,n[1]=(c*s+d*a+f*r-u*o)*2,n[2]=(f*s+d*o+u*a-c*r)*2),l(t,e,n),t},e.fromRotation=function(t,e,n){var r,a,o,s=n[0],l=n[1],u=n[2],c=Math.hypot(s,l,u);return c0?(m=2*Math.sqrt(y+1),t[3]=.25*m,t[0]=(p-g)/m,t[1]=(h-c)/m,t[2]=(l-f)/m):s>d&&s>v?(m=2*Math.sqrt(1+s-d-v),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(l+f)/m,t[2]=(h+c)/m):d>v?(m=2*Math.sqrt(1+d-s-v),t[3]=(h-c)/m,t[0]=(l+f)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+v-s-d),t[3]=(l-f)/m,t[0]=(h+c)/m,t[1]=(p+g)/m,t[2]=.25*m),t},e.getScaling=u,e.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},e.identity=o,e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],p=e[11],h=e[12],g=e[13],v=e[14],y=e[15],m=n*s-r*o,b=n*l-i*o,x=n*u-a*o,_=r*l-i*s,O=r*u-a*s,P=i*u-a*l,M=c*g-f*h,A=c*v-d*h,S=c*y-p*h,w=f*v-d*g,E=f*y-p*g,C=d*y-p*v,T=m*C-b*E+x*w+_*S-O*A+P*M;return T?(T=1/T,t[0]=(s*C-l*E+u*w)*T,t[1]=(i*E-r*C-a*w)*T,t[2]=(g*P-v*O+y*_)*T,t[3]=(d*O-f*P-p*_)*T,t[4]=(l*S-o*C-u*A)*T,t[5]=(n*C-i*S+a*A)*T,t[6]=(v*x-h*P-y*b)*T,t[7]=(c*P-d*x+p*b)*T,t[8]=(o*E-s*S+u*M)*T,t[9]=(r*S-n*E-a*M)*T,t[10]=(h*O-g*x+y*m)*T,t[11]=(f*x-c*O-p*m)*T,t[12]=(s*A-o*w-l*M)*T,t[13]=(n*w-r*A+i*M)*T,t[14]=(g*b-h*_-v*m)*T,t[15]=(c*_-f*b+d*m)*T,t):null},e.lookAt=function(t,e,n,r){var a,s,l,u,c,f,d,p,h,g,v=e[0],y=e[1],m=e[2],b=r[0],x=r[1],_=r[2],O=n[0],P=n[1],M=n[2];return Math.abs(v-O)0&&(c*=p=1/Math.sqrt(p),f*=p,d*=p);var h=l*d-u*f,g=u*c-s*d,v=s*f-l*c;return(p=h*h+g*g+v*v)>0&&(h*=p=1/Math.sqrt(p),g*=p,v*=p),t[0]=h,t[1]=g,t[2]=v,t[3]=0,t[4]=f*v-d*g,t[5]=d*h-c*v,t[6]=c*g-f*h,t[7]=0,t[8]=c,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},e.translate=function(t,e,n){var r,i,a,o,s,l,u,c,f,d,p,h,g=n[0],v=n[1],y=n[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*y+e[12],t[13]=e[1]*g+e[5]*v+e[9]*y+e[13],t[14]=e[2]*g+e[6]*v+e[10]*y+e[14],t[15]=e[3]*g+e[7]*v+e[11]*y+e[15]):(r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=e[9],p=e[10],h=e[11],t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=f,t[9]=d,t[10]=p,t[11]=h,t[12]=r*g+s*v+f*y+e[12],t[13]=i*g+l*v+d*y+e[13],t[14]=a*g+u*v+p*y+e[14],t[15]=o*g+c*v+h*y+e[15]),t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=o?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=t[s]}return i.default=t,n&&n.set(t,i),i}(n(79));function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function s(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=e[9],p=e[10],h=e[11],g=e[12],v=e[13],y=e[14],m=e[15],b=n[0],x=n[1],_=n[2],O=n[3];return t[0]=b*r+x*s+_*f+O*g,t[1]=b*i+x*l+_*d+O*v,t[2]=b*a+x*u+_*p+O*y,t[3]=b*o+x*c+_*h+O*m,b=n[4],x=n[5],_=n[6],O=n[7],t[4]=b*r+x*s+_*f+O*g,t[5]=b*i+x*l+_*d+O*v,t[6]=b*a+x*u+_*p+O*y,t[7]=b*o+x*c+_*h+O*m,b=n[8],x=n[9],_=n[10],O=n[11],t[8]=b*r+x*s+_*f+O*g,t[9]=b*i+x*l+_*d+O*v,t[10]=b*a+x*u+_*p+O*y,t[11]=b*o+x*c+_*h+O*m,b=n[12],x=n[13],_=n[14],O=n[15],t[12]=b*r+x*s+_*f+O*g,t[13]=b*i+x*l+_*d+O*v,t[14]=b*a+x*u+_*p+O*y,t[15]=b*o+x*c+_*h+O*m,t}function l(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,l=i+i,u=a+a,c=r*s,f=r*l,d=r*u,p=i*l,h=i*u,g=a*u,v=o*s,y=o*l,m=o*u;return t[0]=1-(p+g),t[1]=f+m,t[2]=d-y,t[3]=0,t[4]=f-m,t[5]=1-(c+g),t[6]=h+v,t[7]=0,t[8]=d+y,t[9]=h-v,t[10]=1-(c+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function u(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(l,u,c),t}function c(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t}function f(t,e,n,r,i,a,o){var s=1/(e-n),l=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(o+a)*u,t[15]=1,t}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}e.perspective=c,e.ortho=f,e.mul=s,e.sub=d},function(t,e,n){"use strict";var r,i,a,o,s,l,u=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.add=void 0,e.calculateW=function(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t},e.clone=void 0,e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},e.copy=void 0,e.create=v,e.exactEquals=e.equals=e.dot=void 0,e.exp=b,e.fromEuler=function(t,e,n,r){var i=.5*Math.PI/180,a=Math.sin(e*=i),o=Math.cos(e),s=Math.sin(n*=i),l=Math.cos(n),u=Math.sin(r*=i),c=Math.cos(r);return t[0]=a*l*c-o*s*u,t[1]=o*s*c+a*l*u,t[2]=o*l*u-a*s*c,t[3]=o*l*c+a*s*u,t},e.fromMat3=O,e.fromValues=void 0,e.getAngle=function(t,e){var n=C(t,e);return Math.acos(2*n*n-1)},e.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>c.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n},e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t},e.lerp=e.length=e.len=void 0,e.ln=x,e.mul=void 0,e.multiply=m,e.normalize=void 0,e.pow=function(t,e,n){return x(t,e),E(t,t,n),b(t,t),t},e.random=function(t){var e=c.RANDOM(),n=c.RANDOM(),r=c.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t},e.rotateX=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*s,t[1]=i*l+a*s,t[2]=a*l-i*s,t[3]=o*l-r*s,t},e.rotateY=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l-a*s,t[1]=i*l+o*s,t[2]=a*l+r*s,t[3]=o*l-i*s,t},e.rotateZ=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},e.setAxes=e.set=e.scale=e.rotationTo=void 0,e.setAxisAngle=y,e.slerp=_,e.squaredLength=e.sqrLen=e.sqlerp=void 0,e.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"};var c=g(n(79)),f=g(n(394)),d=g(n(171)),p=g(n(397));function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}function g(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==u(t)&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var o=i?Object.getOwnPropertyDescriptor(t,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function v(){var t=new c.ARRAY_TYPE(4);return c.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function y(t,e,n){var r=Math.sin(n*=.5);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function m(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-r*u,t[2]=a*c+o*u+r*l-i*s,t[3]=o*c-r*s-i*l-a*u,t}function b(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),l=o>0?s*Math.sin(o)/o:0;return t[0]=n*l,t[1]=r*l,t[2]=i*l,t[3]=s*Math.cos(o),t}function x(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function _(t,e,n,r){var i,a,o,s,l,u=e[0],f=e[1],d=e[2],p=e[3],h=n[0],g=n[1],v=n[2],y=n[3];return(a=u*h+f*g+d*v+p*y)<0&&(a=-a,h=-h,g=-g,v=-v,y=-y),1-a>c.EPSILON?(o=Math.sin(i=Math.acos(a)),s=Math.sin((1-r)*i)/o,l=Math.sin(r*i)/o):(s=1-r,l=r),t[0]=s*u+l*h,t[1]=s*f+l*g,t[2]=s*d+l*v,t[3]=s*p+l*y,t}function O(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+i]+e[3*i+a])*n,t[o]=(e[3*o+i]+e[3*i+o])*n}return t}var P=p.clone;e.clone=P;var M=p.fromValues;e.fromValues=M;var A=p.copy;e.copy=A;var S=p.set;e.set=S;var w=p.add;e.add=w,e.mul=m;var E=p.scale;e.scale=E;var C=p.dot;e.dot=C;var T=p.lerp;e.lerp=T;var I=p.length;e.length=I,e.len=I;var j=p.squaredLength;e.squaredLength=j,e.sqrLen=j;var F=p.normalize;e.normalize=F;var L=p.exactEquals;e.exactEquals=L;var D=p.equals;e.equals=D;var k=(r=d.create(),i=d.fromValues(1,0,0),a=d.fromValues(0,1,0),function(t,e,n){var o=d.dot(e,n);return o<-.999999?(d.cross(r,i,e),1e-6>d.len(r)&&d.cross(r,a,e),d.normalize(r,r),y(t,r,Math.PI),t):o>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(d.cross(r,e,n),t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=1+o,F(t,t))});e.rotationTo=k;var R=(o=v(),s=v(),function(t,e,n,r,i,a){return _(o,e,i,a),_(s,n,r,a),_(t,o,s,2*a*(1-a)),t});e.sqlerp=R;var N=(l=f.create(),function(t,e,n,r){return l[0]=n[0],l[3]=n[1],l[6]=n[2],l[1]=r[0],l[4]=r[1],l[7]=r[2],l[2]=-e[0],l[5]=-e[1],l[8]=-e[2],F(t,O(t,l))});e.setAxes=N},function(t,e,n){"use strict";var r,i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},e.clone=function(t){var e=new a.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.create=s,e.cross=function(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],a=n[0]*r[2]-n[2]*r[0],o=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],l=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],c=e[0],f=e[1],d=e[2],p=e[3];return t[0]=f*u-d*l+p*s,t[1]=-(c*u)+d*o-p*a,t[2]=c*l-f*o+p*i,t[3]=-(c*s)+f*a-d*i,t},e.dist=void 0,e.distance=f,e.div=void 0,e.divide=c,e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},e.equals=function(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=a.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-l)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(i-u)<=a.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(o-c)<=a.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},e.forEach=void 0,e.fromValues=function(t,e,n,r){var i=new a.ARRAY_TYPE(4);return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},e.len=void 0,e.length=p,e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},e.mul=void 0,e.multiply=u,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t},e.random=function(t,e){e=e||1;do s=(n=2*a.RANDOM()-1)*n+(r=2*a.RANDOM()-1)*r;while(s>=1);do l=(i=2*a.RANDOM()-1)*i+(o=2*a.RANDOM()-1)*o;while(l>=1);var n,r,i,o,s,l,u=Math.sqrt((1-s)/l);return t[0]=e*n,t[1]=e*r,t[2]=e*i*u,t[3]=e*o*u,t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.sqrLen=e.sqrDist=void 0,e.squaredDistance=d,e.squaredLength=h,e.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.sub=void 0,e.subtract=l,e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t},e.transformQuat=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*i,f=u*i+l*r-o*a,d=u*a+o*i-s*r,p=-o*r-s*i-l*a;return t[0]=c*u+-(p*o)+-(f*l)- -(d*s),t[1]=f*u+-(p*s)+-(d*o)- -(c*l),t[2]=d*u+-(p*l)+-(c*s)- -(f*o),t[3]=e[3],t},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t};var a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=a?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}(n(79));function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}function s(){var t=new a.ARRAY_TYPE(4);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function f(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1],e[2]-t[2],e[3]-t[3])}function d(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function p(t){return Math.hypot(t[0],t[1],t[2],t[3])}function h(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}e.sub=l,e.mul=u,e.div=c,e.dist=f,e.sqrDist=d,e.len=p,e.sqrLen=h;var g=(r=s(),function(t,e,n,i,a,o){var s,l;for(e||(e=4),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t},e.random=function(t,e){e=e||1;var n=2*a.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.sqrLen=e.sqrDist=void 0,e.squaredDistance=d,e.squaredLength=h,e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.sub=void 0,e.subtract=l,e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.zero=function(t){return t[0]=0,t[1]=0,t};var a=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=o(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var l=a?Object.getOwnPropertyDescriptor(t,s):null;l&&(l.get||l.set)?Object.defineProperty(r,s,l):r[s]=t[s]}return r.default=t,n&&n.set(t,r),r}(n(79));function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}function s(){var t=new a.ARRAY_TYPE(2);return a.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function f(t,e){return Math.hypot(e[0]-t[0],e[1]-t[1])}function d(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function p(t){return Math.hypot(t[0],t[1])}function h(t){var e=t[0],n=t[1];return e*e+n*n}e.len=p,e.sub=l,e.mul=u,e.div=c,e.dist=f,e.sqrDist=d,e.sqrLen=h;var g=(r=s(),function(t,e,n,i,a,o){var s,l;for(e||(e=2),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;sc&&(u=e.slice(c,u),d[f]?d[f]+=u:d[++f]=u),(s=s[0])===(l=l[0])?d[f]?d[f]+=l:d[++f]=l:(d[++f]=null,p.push({i:f,x:(0,i.default)(s,l)})),c=o.lastIndex;return c200&&(c=o/10);for(var f=1/c,d=f/10,p=0;p<=c;p++){var h=p*f,g=[a.apply(null,t.concat([h])),a.apply(null,e.concat([h]))],v=(0,r.distance)(u[0],u[1],g[0],g[1]);v=0&&v1||e<0||t.length<2)return 0;for(var n=o(t),r=n.segments,i=n.totalLength,a=0,s=0,l=0;l=a&&e<=a+d){s=Math.atan2(f[1]-c[1],f[0]-c[0]);break}a+=d}return s},e.distanceAtSegment=function(t,e,n){for(var r=1/0,a=0;a1||e<0||t.length<2)return null;var n=o(t),r=n.segments,a=n.totalLength;if(0===a)return{x:t[0][0],y:t[0][1]};for(var s=0,l=null,u=0;u=s&&e<=s+p){var h=(e-s)/p;l=i.default.pointAt(f[0],f[1],d[0],d[1],h);break}s+=p}return l};var i=r(n(174)),a=n(87);function o(t){for(var e=0,n=[],r=0;r1){var o=a(e,n);return e*i+o*(i-1)}return e},e.getTextWidth=function(t,e){var n=(0,i.getOffScreenContext)(),a=0;if((0,r.isNil)(t)||""===t)return a;if(n.save(),n.font=e,(0,r.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,r.each)(o,function(t){var e=n.measureText(t).width;a1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.each)(t,function(e,n){isNaN(e)||(t[n]=+e)}),e[n]=t}),e):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){void 0===e&&(e=!1);for(var n,r,o=(0,i.default)(t),s={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},l=[],u="",c=o.length,f=[],d=0;d7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}(o,l,d),c=o.length,"Z"===u&&f.push(d),r=(n=o[d]).length,s.x1=+n[r-2],s.y1=+n[r-1],s.x2=+n[r-4]||s.x1,s.y2=+n[r-3]||s.y1;return e?[o,f]:o};var i=r(n(417)),a=n(807)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=(0,i.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r=0){n=!0;break}}if(!n)return e;var l=[],u=0,c=0,f=0,d=0,p=0,h=e[0];("M"===h[0]||"m"===h[0])&&(u=+h[1],c=+h[2],f=u,d=c,p++,l[0]=["M",u,c]);for(var r=p,g=e.length;r2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=e[s]&&(n.push([r].concat(a.splice(0,e[s]))),e[s]););return""}),n};var r=n(0),i=" \n\v\f\r \xa0 ᠎              \u2028\u2029",a=RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e[1],i=e[2],l=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),u=e[4],c=e[5],f=t[0],d=t[1],p=e[6],h=e[7],g=Math.cos(l)*(f-p)/2+Math.sin(l)*(d-h)/2,v=-1*Math.sin(l)*(f-p)/2+Math.cos(l)*(d-h)/2,y=g*g/(n*n)+v*v/(i*i);y>1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var m=n*n*(v*v)+i*i*(g*g),b=m?Math.sqrt((n*n*(i*i)-m)/m):1;u===c&&(b*=-1),isNaN(b)&&(b=0);var x=i?b*n*v/i:0,_=n?-(b*i)*g/n:0,O=(f+p)/2+Math.cos(l)*x-Math.sin(l)*_,P=(d+h)/2+Math.sin(l)*x+Math.cos(l)*_,M=[(g-x)/n,(v-_)/i],A=[(-1*g-x)/n,(-1*v-_)/i],S=o([1,0],M),w=o(M,A);return -1>=a(M,A)&&(w=Math.PI),a(M,A)>=1&&(w=0),0===c&&w>0&&(w-=2*Math.PI),1===c&&w<0&&(w+=2*Math.PI),{cx:O,cy:P,rx:s(t,[p,h])?0:n,ry:s(t,[p,h])?0:i,startAngle:S,endAngle:S+w,xRotation:l,arcFlag:u,sweepFlag:c}},e.isSamePoint=s;var r=n(0);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1].001*u*c){var d=(a.x*s.y-a.y*s.x)/l,p=(a.x*o.y-a.y*o.x)/l;r(d,0,1)&&r(p,0,1)&&(f={x:t.x+d*o.x,y:t.y+d*o.y})}return f};var r=function(t,e,n){return t>=e&&t<=n}},function(t,e,n){"use strict";function r(t){return 1e-6>Math.abs(t)?0:t<0?-1:1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var i=!1,a=t.length;if(a<=2)return!1;for(var o=0;o0!=r(u[1]-n)>0&&0>r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])&&(i=!i)}return i}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0});var i={getAdjust:!0,registerAdjust:!0,Adjust:!0};Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return a.getAdjust}}),Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return a.registerAdjust}});var a=n(816),o=r(n(110)),s=r(n(817)),l=r(n(818)),u=r(n(819)),c=r(n(820)),f=n(423);Object.keys(f).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(i,t))&&(t in e&&e[t]===f[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return f[t]}}))}),(0,a.registerAdjust)("Dodge",s.default),(0,a.registerAdjust)("Jitter",l.default),(0,a.registerAdjust)("Stack",u.default),(0,a.registerAdjust)("Symmetric",c.default)},function(t,e,n){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return r.Scale}});var r=n(66)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTickMethod=function(t){return r[t]},e.registerTickMethod=function(t,e){r[t]=e};var r={}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return(0,i.__extends)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;tthis.max?NaN:this.values[e]},e.prototype.getText=function(e){for(var n=[],r=1;r1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(r(n(141)).default);e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(r(n(176)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,a.last)(e);if(i<0)return(0,a.head)(e);var o=e[i],s=e[i+1],l=i/(n-1);return o+(r-l)/((i+1)/(n-1)-l)*(s-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,a.last)(e)!==this.max&&e.push(this.max),(0,a.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,a.head)(e))return 0;if(t>(0,a.last)(e))return 1;var n=0;return(0,a.each)(e,function(e,r){if(!(t>=e))return!1;n=r}),n/(e.length-1)},e}(r(n(176)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=t.showLast;if((0,r.isNumber)(n)){var o=(0,r.filter)(e,function(t,e){return e%n==0}),s=(0,r.last)(e);return a&&(0,r.last)(o)!==s&&o.push(s),o}var l=e.length,u=t.min,c=t.max;if((0,r.isNil)(u)&&(u=0),(0,r.isNil)(c)&&(c=e.length-1),!(0,r.isNumber)(i)||i>=l)return e.slice(u,c+1);if(i<=0||c<=0)return[];for(var f=1===i?l:Math.floor(l/(i-1)),d=[],p=u,h=0;h=c);h++)p=Math.min(u+h*f,c),h===i-1&&a?d.push(e[c]):d.push(e[p]);return d};var r=n(0)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prettyNumber=function(t){return 1e-15>Math.abs(t)?t:parseFloat(t.toFixed(15))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var a=(e-t)/i,o=Math.pow(10,Math.floor(Math.log10(a))),s=o;2*o-a<1.5*(a-s)&&(s=2*o,5*o-a<2.75*(a-s)&&(s=5*o,10*o-a<1.5*(a-s)&&(s=10*o)));for(var l=Math.ceil(e/s),u=Math.floor(t/s),c=Math.max(l*s,e),f=Math.min(u*s,t),d=Math.floor((c-f)/s)+1,p=Array(d),h=0;h=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var y=n*n*(g*g)+i*i*(h*h),m=y?Math.sqrt((n*n*(i*i)-y)/y):1;l===u&&(m*=-1),isNaN(m)&&(m=0);var b=i?m*n*g/i:0,x=n?-(m*i)*h/n:0,_=(c+d)/2+Math.cos(s)*b-Math.sin(s)*x,O=(f+p)/2+Math.sin(s)*b+Math.cos(s)*x,P=[(h-b)/n,(g-x)/i],M=[(-1*h-b)/n,(-1*g-x)/i],A=o([1,0],P),S=o(P,M);return -1>=a(P,M)&&(S=Math.PI),a(P,M)>=1&&(S=0),0===u&&S>0&&(S-=2*Math.PI),1===u&&S<0&&(S+=2*Math.PI),{cx:_,cy:O,rx:r.isSamePoint(t,[d,p])?0:n,ry:r.isSamePoint(t,[d,p])?0:i,startAngle:A,endAngle:A+S,xRotation:s,arcFlag:l,sweepFlag:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26);e.default=function(t,e,n){var i=r.getOffScreenContext();return t.createPath(i),i.isPointInPath(e,n)}},function(t,e,n){"use strict";function r(t){return 1e-6>Math.abs(t)?0:t<0?-1:1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var i=!1,a=t.length;if(a<=2)return!1;for(var o=0;o0!=r(u[1]-n)>0&&0>r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])&&(i=!i)}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51);e.default=function(t,e,n,i,a,o,s,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(ua)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return r.distance(c.x,c.y,s,l)<=o/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(183);e.default=function(t,e,n,i,a){var o=t.length;if(o<2)return!1;for(var s=0;s1){var i,a=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,(0,r.__spreadArray)([e],a,!1)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLegendThemeCfg=e.getCustomLegendItems=e.getLegendItems=e.getLegendLayout=void 0;var r=n(1),i=n(0),a=n(21),o=n(451),s=n(70),l=n(146),u=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;(0,i.isString)(e)&&l.MarkerSymbols[e]&&(t.symbol=l.MarkerSymbols[e])}e.getLegendLayout=function(t){return t.startsWith(a.DIRECTION.LEFT)||t.startsWith(a.DIRECTION.RIGHT)?"vertical":"horizontal"},e.getLegendItems=function(t,e,n,a,l){var f=n.getScale(n.type);if(f.isCategory){var d=f.field,p=e.getAttribute("color"),h=e.getAttribute("shape"),g=t.getTheme().defaultColor,v=e.coordinate.isPolar;return f.getTicks().map(function(n,y){var m,b,x,_=n.text,O=n.value,P=f.invert(O),M=0===t.filterFieldData(d,[((x={})[d]=P,x)]).length;(0,i.each)(t.views,function(t){var e;t.filterFieldData(d,[((e={})[d]=P,e)]).length||(M=!0)});var A=(0,o.getMappingValue)(p,P,g),S=(0,o.getMappingValue)(h,P,"point"),w=e.getShapeMarker(S,{color:A,isInPolar:v}),E=l;return(0,i.isFunction)(E)&&(E=E(_,y,(0,r.__assign)({name:_,value:P},(0,i.deepMix)({},a,w)))),function(t,e){var n=t.symbol;if((0,i.isString)(n)&&-1!==u.indexOf(n)){var r=(0,i.get)(t,"style",{}),a=(0,i.get)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=(0,i.deepMix)({},t.style,{lineWidth:a,stroke:o,fill:null})}}(w=(0,i.deepMix)({},a,w,(0,s.omit)((0,r.__assign)({},E),["style"])),A),E&&E.style&&(w.style=(m=w.style,b=E.style,(0,i.isFunction)(b)?b(m):(0,i.deepMix)({},m,b))),c(w),{id:P,name:_,value:P,marker:w,unchecked:M}})}return[]},e.getCustomLegendItems=function(t,e,n){return n.map(function(n,r){var a=e;(0,i.isFunction)(a)&&(a=a(n.name,r,(0,i.deepMix)({},t,n)));var o=(0,i.isFunction)(n.marker)?n.marker(n.name,r,(0,i.deepMix)({},t,n)):n.marker,s=(0,i.deepMix)({},t,a,o);return c(s),n.marker=s,n})},e.getLegendThemeCfg=function(t,e){var n=(0,i.get)(t,["components","legend"],{});return(0,i.deepMix)({},(0,i.get)(n,["common"],{}),(0,i.deepMix)({},(0,i.get)(n,[e],{})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseLineGradient=u,e.parsePattern=f,e.parseRadialGradient=c,e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,[e,n,i,a]},e.parseStyle=function(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if((0,r.isString)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return u(t,e,n);if("r"===n[0])return c(t,e,n);if("p"===n[0])return f(t,e,n)}return n}if(n instanceof CanvasPattern)return n};var r=n(53),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var n=t.match(s);(0,r.each)(n,function(t){var n=t.split(":");e.addColorStop(n[0],n[1])})}function u(t,e,n){var r,a,o=i.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),u=o[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var y=n*n*(g*g)+i*i*(h*h),m=y?Math.sqrt((n*n*(i*i)-y)/y):1;l===u&&(m*=-1),isNaN(m)&&(m=0);var b=i?m*n*g/i:0,x=n?-(m*i)*h/n:0,_=(c+d)/2+Math.cos(s)*b-Math.sin(s)*x,O=(f+p)/2+Math.sin(s)*b+Math.cos(s)*x,P=[(h-b)/n,(g-x)/i],M=[(-1*h-b)/n,(-1*g-x)/i],A=o([1,0],P),S=o(P,M);return -1>=a(P,M)&&(S=Math.PI),a(P,M)>=1&&(S=0),0===u&&S>0&&(S-=2*Math.PI),1===u&&S<0&&(S+=2*Math.PI),{cx:_,cy:O,rx:(0,r.isSamePoint)(t,[d,p])?0:n,ry:(0,r.isSamePoint)(t,[d,p])?0:i,startAngle:A,endAngle:A+S,xRotation:s,arcFlag:l,sweepFlag:u}};var r=n(53);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]Math.abs(t)?0:t<0?-1:1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var i=!1,a=t.length;if(a<=2)return!1;for(var o=0;o0!=r(u[1]-n)>0&&0>r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])&&(i=!i)}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i,a,o,s,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(ua)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return(0,r.distance)(c.x,c.y,s,l)<=o/2};var r=n(53)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,a){var o=t.length;if(o<2)return!1;for(var s=0;s1){for(var o=e.addGroup(),s=0;s1?e[1]:n,o=e.length>3?e[3]:r,s=e.length>2?e[2]:a;return{min:n,max:r,min1:a,max1:o,median:s}}function l(t,e,n){var r,a=n/2;if((0,i.isArray)(e)){var o=s(e),l=o.min,u=o.max,c=o.median,f=o.min1,d=o.max1,p=t-a,h=t+a;r=[[p,u],[h,u],[t,u],[t,d],[p,f],[p,d],[h,d],[h,f],[t,f],[t,l],[p,l],[h,l],[p,c],[h,c]]}else{e=(0,i.isNil)(e)?.5:e;var g=s(t),l=g.min,u=g.max,c=g.median,f=g.min1,d=g.max1,v=e-a,y=e+a;r=[[l,v],[l,y],[l,e],[f,e],[f,v],[f,y],[d,y],[d,v],[d,e],[u,e],[u,v],[u,y],[c,v],[c,y]]}return r.map(function(t){return{x:t[0],y:t[1]}})}(0,a.registerShape)("schema","box",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=l(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(70),o=n(27),s=n(33);function l(t,e,n){var r,o=(r=((0,i.isArray)(e)?e:[e]).sort(function(t,e){return e-t}),(0,a.padEnd)(r,4,r[r.length-1]));return[{x:t,y:o[0]},{x:t,y:o[1]},{x:t-n/2,y:o[2]},{x:t-n/2,y:o[1]},{x:t+n/2,y:o[1]},{x:t+n/2,y:o[2]},{x:t,y:o[2]},{x:t,y:o[3]}]}(0,o.registerShape)("schema","candle",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,s.getStyle)(t,!0,!0),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=l(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(27),o=n(33);(0,a.registerShape)("polygon","square",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n,a,s,l,u=(0,o.getStyle)(t,!0,!0),c=this.parsePoints(t.points);return e.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)({},u),(n=t.size,l=Math.min(a=Math.abs(c[0].x-c[2].x),s=Math.abs(c[0].y-c[2].y)),n&&(l=(0,i.clamp)(n,0,Math.min(a,s))),l/=2,{x:(c[0].x+c[2].x)/2-l,y:(c[0].y+c[2].y)/2-l,width:2*l,height:2*l})),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antiCollision=void 0,e.antiCollision=function(t,e,n){var r,i=t.filter(function(t){return!t.invisible});i.sort(function(t,e){return t.y-e.y});var a=!0,o=n.minY,s=Math.abs(o-n.maxY),l=0,u=Number.MIN_VALUE,c=i.map(function(t){return t.y>l&&(l=t.y),t.ys&&(s=l-o);a;)for(c.forEach(function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),s-t.size),t.pos=Math.max(0,t.pos)}),a=!1,r=c.length;r--;)if(r>0){var f=c[r-1],d=c[r];f.pos+f.size>d.pos&&(f.size+=d.size,f.targets=f.targets.concat(d.targets),f.pos+f.size>s&&(f.pos=s-f.size),c.splice(r,1),a=!0)}r=0,c.forEach(function(t){var n=o+e/2;t.targets.forEach(function(){i[r].y=t.pos+n,n+=e,r++})})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return(0,r.__extends)(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:(0,i.head)(t),end:(0,i.last)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}((0,r.__importDefault)(n(288)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&((0,i.each)(t,function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}((0,r.__importDefault)(n(288)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BRUSH_FILTER_EVENTS=void 0;var r,i,a=n(1),o=n(98),s=(0,a.__importDefault)(n(44)),l=n(31);function u(t,e,n,r){var i=Math.min(n[e],r[e]),a=Math.max(n[e],r[e]),o=t.range,s=o[0],l=o[1];if(il&&(a=l),i===l&&a===l)return null;var u=t.invert(i),c=t.invert(a);if(!t.isCategory)return function(t){return t>=u&&t<=c};var f=t.values.indexOf(u),d=t.values.indexOf(c),p=t.values.slice(f,d+1);return function(t){return p.includes(t)}}(r=i||(i={})).FILTER="brush-filter-processing",r.RESET="brush-filter-reset",r.BEFORE_FILTER="brush-filter:beforefilter",r.AFTER_FILTER="brush-filter:afterfilter",r.BEFORE_RESET="brush-filter:beforereset",r.AFTER_RESET="brush-filter:afterreset",e.BRUSH_FILTER_EVENTS=i;var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return(0,a.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){if((0,l.isMask)(this.context)){var t,e,n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(5>Math.abs(t.x-e.x)||5>Math.abs(t.x-e.y))){var r=this.context,a=r.view,s={view:a,event:r.event,dims:this.dims};a.emit(i.BEFORE_FILTER,o.Event.fromData(a,i.BEFORE_FILTER,s));var c=a.getCoordinate(),f=c.invert(e),d=c.invert(t);if(this.hasDim("x")){var p=a.getXScale(),h=u(p,"x",f,d);this.filterView(a,p.field,h)}if(this.hasDim("y")){var g=a.getYScales()[0],h=u(g,"y",f,d);this.filterView(a,g.field,h)}this.reRender(a,{source:i.FILTER}),a.emit(i.AFTER_FILTER,o.Event.fromData(a,i.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(i.BEFORE_RESET,o.Event.fromData(t,i.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:i.RESET}),t.emit(i.AFTER_RESET,o.Event.fromData(t,i.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return(0,r.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(n(185).Action);e.default=i},function(t,e,n){"use strict";var r=n(482);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};Object(_.registerFacet)("rect",v.a),Object(_.registerFacet)("mirror",h.a),Object(_.registerFacet)("list",c.a),Object(_.registerFacet)("matrix",d.a),Object(_.registerFacet)("circle",l.a),Object(_.registerFacet)("tree",m.a),e.a=function(t){var e=Object(b.a)(),n=Object(x.a)(),r=t.type,a=t.children,s=O(t,["type","children"]);return e.facetInstance&&(e.facetInstance.destroy(),e.facetInstance=null,n.forceReRender=!0),o()(a)?e.facet(r,i()(i()({},s),{eachView:a})):e.facet(r,i()({},s)),null}},function(t,e,n){"use strict";n(3);var r=n(344),i=n.n(r),a=n(25),o=n(40);Object(a.registerComponentController)("slider",i.a),e.a=function(t){return Object(o.a)().option("slider",t),null}},function(t,e,n){"use strict";n(98),n(272)},function(t,e,n){"use strict";n.d(e,"a",function(){return y});var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(332),h=n.n(p),g=n(39),v=n(8);n(463),n(474),n(473),Object(v.registerGeometry)("Schema",h.a);var y=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.GemoBaseClassName="schema",t}return i()(r)}(g.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return m});var r=n(10),i=n.n(r),a=n(9),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(158),h=n.n(p),g=n(162),v=n(39),y=n(8);Object(y.registerAnimation)("path-in",g.pathIn),Object(y.registerGeometry)("Path",h.a);var m=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.GemoBaseClassName="path",t}return i()(r)}(v.a)},function(t,e,n){"use strict";var r=n(4),i=n.n(r),a=n(3),o=n.n(a),s=n(128),l=n(216),u=n(217),c=n(218),f=n(129),d=n(130),p=n(219),h=n(220),g=n(17),v=n.n(g),y=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},m={area:s.a,edge:l.a,heatmap:u.a,interval:c.a,line:f.a,point:d.a,polygon:p.a,"line-advance":h.a};e.a=function(t){var e=t.type,n=y(t,["type"]),r=m[e];return r?o.a.createElement(r,i()({},n)):(v()(!1,"Only support the below type: area|edge|heatmap|interval|line|point|polygon|line-advance"),null)}},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(4),i=n.n(r),a=n(3),o=n.n(a),s=n(17),l=n.n(s),u=n(215);function c(t){return l()(!1,"Coord (协调) 组件将重命名为更加语义化的组件名 Coordinate(坐标),请使用Coordinate替代,我们将在5.0后删除Coord组件"),o.a.createElement(u.a,i()({},t))}},function(t,e,n){"use strict";var r=n(17),i=n.n(r),a=n(207),o=n(208),s=n(209),l=n(210),u=n(211),c=n(212),f=n(213),d=function(t){return i()(!1,"Guide组件将在5.0后不再支持,请使用Annotation替代,请查看Annotation的使用文档"),t.children};d.Arc=a.a,d.DataMarker=o.a,d.DataRegion=s.a,d.Image=l.a,d.Line=u.a,d.Region=c.a,d.Text=f.a,e.a=d},function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n(3),i=n.n(r),a=n(28),o=n.n(a),s=n(81),l=n(17),u=n.n(l);function c(t){var e=Object(s.a)();if(o()(t.children)){var n=t.children(e);return i.a.isValidElement(n)?n:null}return u()(!1,"Effects 的子组件应当是一个函数 (chart) => {}"),null}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(3),i=n(40);function a(t){var e=Object(i.a)(),n=t.type,a=t.config;return Object(r.useLayoutEffect)(function(){return e.interaction(n,a),function(){e.removeInteraction(n)}}),null}},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0}),e.pick=void 0,e.pick=function(t,e){var n={};return null!==t&&"object"===(0,r.default)(t)&&e.forEach(function(e){var r=t[e];void 0!==r&&(n[e]=r)}),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.invariant=e.LEVEL=void 0;var r,i=n(1);(r=e.LEVEL||(e.LEVEL={})).ERROR="error",r.WARN="warn",r.INFO="log";var a="AntV/G2Plot";function o(t){for(var e=[],n=1;n"},key:(0===l?"top":"bottom")+"-statistic"},a.pick(e,["offsetX","offsetY","rotate","style","formatter"])))}})},e.renderGaugeStatistic=function(t,e,n){var l=e.statistic;[l.title,l.content].forEach(function(e){if(e){var l=i.isFunction(e.style)?e.style(n):e.style;t.annotation().html(r.__assign({position:["50%","100%"],html:function(t,a){var u=a.getCoordinate(),c=a.views[0].getCoordinate(),f=c.getCenter(),d=c.getRadius(),p=Math.max(Math.sin(c.startAngle),Math.sin(c.endAngle))*d,h=f.y+p-u.y.start-parseFloat(i.get(l,"fontSize",0)),g=u.getRadius()*u.innerRadius*2;s(t,r.__assign({width:g+"px",transform:"translate(-50%, "+h+"px)"},o(l)));var v=a.getData();if(e.customHtml)return e.customHtml(t,a,n,v);var y=e.content;return e.formatter&&(y=e.formatter(n,v)),y?i.isString(y)?y:""+y:"
    "}},a.pick(e,["offsetX","offsetY","rotate","style","formatter"])))}})}},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n(133),i=n.n(r),a=n(3),o=n(92);function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=Object(o.getTheme)(t);e.name=t;var n=Object(a.useState)(e),r=i()(n,2),s=r[0],l=r[1];return[s,function(t){var e=Object(o.getTheme)(t);e.name=t,l(e)}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var r=n(1065);e.bind=function(t,e){var n=(0,r.getSensor)(t);return n.bind(e),function(){n.unbind(e)}},e.clear=function(t){var e=(0,r.getSensor)(t);(0,r.removeSensor)(e)},e.ver="1.0.1"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,a=Array(i),o=0;o1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},n.prototype.getButtonCfg=function(){var t=this.context.view,e=a.get(t,["interactions","drill-down","cfg","drillDownConfig"]);return o.deepAssign(this.breadCrumbCfg,null==e?void 0:e.breadCrumb,this.cfg)},n.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},n.prototype.drawBreadCrumbGroup=function(){var t=this,n=this.getButtonCfg(),i=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:e.BREAD_CRUMB_NAME});var o=0;i.forEach(function(s,l){var u=t.breadCrumbGroup.addShape({type:"text",id:s.id,name:e.BREAD_CRUMB_NAME+"_"+s.name+"_text",attrs:r.__assign(r.__assign({text:0!==l||a.isNil(n.rootText)?s.name:n.rootText},n.textStyle),{x:o,y:0})}),c=u.getBBox();if(o+=c.width+4,u.on("click",function(e){var n,r=e.target.get("id");if(r!==(null===(n=a.last(i))||void 0===n?void 0:n.id)){var o=i.slice(0,i.findIndex(function(t){return t.id===r})+1);t.backTo(o)}}),u.on("mouseenter",function(t){var e;t.target.get("id")!==(null===(e=a.last(i))||void 0===e?void 0:e.id)?u.attr(n.activeTextStyle):u.attr({cursor:"default"})}),u.on("mouseleave",function(){u.attr(n.textStyle)}),l(o*=o)?(r=(u+o-i)/(2*u),a=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x-r*s-a*l,n.y=t.y-r*l+a*s):(r=(u+i-o)/(2*u),a=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-a*l,n.y=e.y+r*l+a*s)):(n.x=e.x+n.r,n.y=e.y)}function s(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function l(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function u(t){this._=t,this.next=null,this.previous=null}function c(t){var e,n,r,c,f,d,p,h,g,v,y;if(!(c=(t=(0,i.default)(t)).length))return 0;if((e=t[0]).x=0,e.y=0,!(c>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(c>2))return e.r+n.r;o(n,e,r=t[2]),e=new u(e),n=new u(n),r=new u(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(p=3;p0&&n*n>r*r+i*i}function o(t,e){for(var n=0;n0?n:e;return e<0?e:n;case"outer":if(n=12,r.isString(e)&&e.endsWith("%"))return .01*parseFloat(e)<0?n:e;return e>0?e:n;default:return e}},e.isAllZero=function(t,e){return r.every(i.processIllegalData(t,e),function(t){return 0===t[e]})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PIE_STATISTIC=void 0;var r=n(14),i=n(1129),a=n(1130);e.PIE_STATISTIC="pie-statistic",r.registerAction(e.PIE_STATISTIC,a.StatisticAction),r.registerInteraction("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),r.registerAction("pie-legend",i.PieLegendAction),r.registerInteraction("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transform=void 0;var r=n(1),i=n(14),a=[1,0,0,0,1,0,0,0,1];e.transform=function(t,e){var n=e?r.__spreadArrays(e):r.__spreadArrays(a);return i.Util.transform(n,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSingleKeyValues=e.getFontSizeMapping=e.processImageMask=e.getSize=e.transform=void 0;var r=n(1),i=n(0),a=n(293),o=n(15),s=n(1137);function l(t){var e,n,r,i=t.width,s=t.height,l=t.container,u=t.autoFit,c=t.padding,f=t.appendPadding;if(u){var d=o.getContainerSize(l);i=d.width,s=d.height}i=i||400,s=s||400;var p=(e={padding:c,appendPadding:f},n=a.normalPadding(e.padding),r=a.normalPadding(e.appendPadding),[n[0]+r[0],n[1]+r[1],n[2]+r[2],n[3]+r[3]]),h=p[0],g=p[1],v=p[2];return[i-(p[3]+g),s-(h+v)]}function u(t,e){if(i.isFunction(t))return t;if(i.isArray(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var a=e[0],o=e[1];return o===a?function(){return(r+n)/2}:function(t){return(r-n)/(o-a)*(t.value-a)+n}}return function(){return t}}function c(t,e){return t.map(function(t){return t[e]}).filter(function(t){return!("number"!=typeof t||isNaN(t))})}e.transform=function(t){var e=t.options,n=t.chart,a=n.width,f=n.height,d=n.padding,p=n.appendPadding,h=n.ele,g=e.data,v=e.imageMask,y=e.wordField,m=e.weightField,b=e.colorField,x=e.wordStyle,_=e.timeInterval,O=e.random,P=e.spiral,M=e.autoFit,A=e.placementStrategy;if(!g||!g.length)return[];var S=x.fontFamily,w=x.fontWeight,E=x.padding,C=x.fontSize,T=c(g,m),I=[Math.min.apply(Math,T),Math.max.apply(Math,T)],j=g.map(function(t){return{text:t[y],value:t[m],color:t[b],datum:t}}),F={imageMask:v,font:S,fontSize:u(C,I),fontWeight:w,size:l({width:a,height:f,padding:d,appendPadding:p,autoFit:void 0===M||M,container:h}),padding:E,timeInterval:_,random:O,spiral:P,rotate:function(t){var e,n=((e=t.wordStyle.rotationSteps)<1&&(o.log(o.LEVEL.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}),r=n.rotation,a=n.rotationSteps;if(!i.isArray(r))return r;var s=r[0],l=r[1],u=1===a?0:(l-s)/(a-1);return function(){return l===s?l:Math.floor(Math.random()*a)*u}}(e)};if(i.isFunction(A)){var L=j.map(function(t,e,i){return r.__assign(r.__assign(r.__assign({},t),{hasText:!!t.text,font:s.functor(F.font)(t,e,i),weight:s.functor(F.fontWeight)(t,e,i),rotate:s.functor(F.rotate)(t,e,i),size:s.functor(F.fontSize)(t,e,i),style:"normal"}),A.call(n,t,e,i))});return L.push({text:"",value:0,x:0,y:0,opacity:0}),L.push({text:"",value:0,x:F.size[0],y:F.size[1],opacity:0}),L}return s.wordCloud(j,F)},e.getSize=l,e.processImageMask=function(t){return new Promise(function(e,n){if(t instanceof HTMLImageElement){e(t);return}if(i.isString(t)){var r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},r.onerror=function(){o.log(o.LEVEL.ERROR,!1,"image %s load failed !!!",t),n()};return}o.log(o.LEVEL.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()})},e.getFontSizeMapping=u,e.getSingleKeyValues=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.WORD_CLOUD_COLOR_FIELD=void 0;var r=n(24),i=n(15);e.WORD_CLOUD_COLOR_FIELD="color",e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",e.WORD_CLOUD_COLOR_FIELD],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.basicFunnel=void 0;var r=n(1),i=n(0),a=n(15),o=n(64),s=n(59),l=n(120),u=n(300);function c(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,a=n.yField,o=n.maxSize,s=n.minSize,l=u.transformData(i,i,{yField:a,maxSize:o,minSize:s});return e.data(l),t}function f(t){var e=t.chart,n=t.options,r=n.xField,u=n.yField,c=n.color,f=n.tooltip,d=n.label,p=n.shape,h=n.funnelStyle,g=n.state,v=o.getTooltipMapping(f,[r,u]),y=v.fields,m=v.formatter;return s.geometry({chart:e,options:{type:"interval",xField:r,yField:l.FUNNEL_MAPPING_VALUE,colorField:r,tooltipFields:i.isArray(y)&&y.concat([l.FUNNEL_PERCENT,l.FUNNEL_CONVERSATION]),mapping:{shape:void 0===p?"funnel":p,tooltip:m,color:c,style:h},label:d,state:g}}),a.findGeometry(t.chart,"interval").adjust("symmetric"),t}function d(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function p(t){var e=t.options.maxSize;return u.conversionTagComponent(function(t,n,i,a){var o=e-(e-t[l.FUNNEL_MAPPING_VALUE])/2;return r.__assign(r.__assign({},a),{start:[n-.5,o],end:[n-.5,o+.05]})})(t),t}e.basicFunnel=function(t){return a.flow(c,f,d,p)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLiquidData=void 0,e.getLiquidData=function(t){return[{percent:t,type:"liquid"}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.binHistogram=void 0;var r=n(0);function i(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}e.binHistogram=function(t,e,n,a,o){var s=r.clone(t);r.sortBy(s,e);var l=r.valuesOfKey(s,e),u=r.getRange(l),c=u.max-u.min,f=n;!n&&a&&(f=a>1?c/(a-1):u.max),n||a||(f=c/(Math.ceil(Math.log(l.length)/Math.LN2)+1));var d={},p=r.groupBy(s,o);r.isEmpty(p)?r.each(s,function(t){var n=i(t[e],f,a),o=n[0]+"-"+n[1];r.hasKey(d,o)||(d[o]={range:n,count:0}),d[o].count+=1}):Object.keys(p).forEach(function(t){r.each(p[t],function(n){var s=i(n[e],f,a),l=s[0]+"-"+s[1]+"-"+t;r.hasKey(d,l)||(d[l]={range:s,count:0},d[l][o]=t),d[l].count+=1})});var h=[];return r.each(d,function(t){h.push(t)}),h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.HISTOGRAM_Y_FIELD=e.HISTOGRAM_X_FIELD=void 0;var r=n(24),i=n(15);e.HISTOGRAM_X_FIELD="range",e.HISTOGRAM_Y_FIELD="count",e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformData=e.processData=void 0;var r=n(1),i=n(0),a=n(15),o=n(301);function s(t,e,n,o,s){var l,u=[];if(i.reduce(t,function(t,e){a.log(a.LEVEL.WARN,i.isNumber(e[n]),e[n]+" is not a valid number");var s,l=i.isUndefined(e[n])?null:e[n];return u.push(r.__assign(r.__assign({},e),((s={})[o]=[t,t+l],s))),t+l},0),u.length&&s){var c=i.get(u,[[t.length-1],o,[1]]);u.push(((l={})[e]=s.label,l[n]=c,l[o]=[0,c],l))}return u}e.processData=s,e.transformData=function(t,e,n,a){return s(t,e,n,o.Y_FIELD,a).map(function(e,n){var a;return i.isObject(e)?r.__assign(r.__assign({},e),((a={})[o.ABSOLUTE_FIELD]=e[o.Y_FIELD][1],a[o.DIFF_FIELD]=e[o.Y_FIELD][1]-e[o.Y_FIELD][0],a[o.IS_TOTAL]=n===t.length,a)):e})}},function(t,e,n){"use strict";var r,i,a,o=n(2)(n(6));a=function(t){function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!e||n.length!==e);r=!0);}catch(t){i=!0,a=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(t,e,n,r){t=t.filter(function(t,r){var i=e(t,r),a=n(t,r);return null!=i&&isFinite(i)&&null!=a&&isFinite(a)}),r&&t.sort(function(t,n){return e(t)-e(n)});for(var i,a,o,s=t.length,l=new Float64Array(s),u=new Float64Array(s),c=0,f=0,d=0;dr&&(t.splice(s+1,0,d),i=!0)}return i}(i)&&o<1e4;);return i}function s(t,e,n,r){var i=r-t*t,a=1e-24>Math.abs(i)?0:(n-t*e)/i;return[e-a*t,a]}function l(){var t,n=function(t){return t[0]},a=function(t){return t[1]};function o(o){var l=0,u=0,c=0,f=0,d=0,p=t?+t[0]:1/0,h=t?+t[1]:-1/0;r(o,n,a,function(e,n){++l,u+=(e-u)/l,c+=(n-c)/l,f+=(e*n-f)/l,d+=(e*e-d)/l,!t&&(eh&&(h=e))});var g=e(s(u,c,f,d),2),v=g[0],y=g[1],m=function(t){return y*t+v},b=[[p,m(p)],[h,m(h)]];return b.a=y,b.b=v,b.predict=m,b.rSquared=i(o,n,a,c,m),b}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(a=t,o):a},o}function u(){var t,a=function(t){return t[0]},s=function(t){return t[1]};function l(l){var u,c,f,d,p=e(n(l,a,s),4),h=p[0],g=p[1],v=p[2],y=p[3],m=h.length,b=0,x=0,_=0,O=0,P=0;for(u=0;uw&&(w=e))});var E=_-b*b,C=b*E-x*x,T=(P*b-O*x)/C,I=(O*E-P*x)/C,j=-T*b,F=function(t){return T*(t-=v)*t+I*t+j+y},L=o(S,w,F);return L.a=T,L.b=I-2*T*v,L.c=j-I*v+T*v*v+y,L.predict=F,L.rSquared=i(l,a,s,M,F),L}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(a=t,l):a},l.y=function(t){return arguments.length?(s=t,l):s},l}t.regressionExp=function(){var t,n=function(t){return t[0]},a=function(t){return t[1]};function l(l){var u=0,c=0,f=0,d=0,p=0,h=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(l,n,a,function(e,n){var r=Math.log(n),i=e*n;++u,c+=(n-c)/u,d+=(i-d)/u,h+=(e*i-h)/u,f+=(n*r-f)/u,p+=(i*r-p)/u,!t&&(ev&&(v=e))});var y=e(s(d/c,f/c,p/c,h/c),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.exp(b*t)},_=o(g,v,x);return _.a=m,_.b=b,_.predict=x,_.rSquared=i(l,n,a,c,x),_}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(a=t,l):a},l},t.regressionLinear=l,t.regressionLoess=function(){var t=function(t){return t[0]},r=function(t){return t[1]},i=.3;function a(a){for(var o=e(n(a,t,r,!0),4),l=o[0],u=o[1],c=o[2],f=o[3],d=l.length,p=Math.max(2,~~(i*d)),h=new Float64Array(d),g=new Float64Array(d),v=new Float64Array(d).fill(1),y=-1;++y<=2;){for(var m=[0,p-1],b=0;bl[O]-x?_:O,M=0,A=0,S=0,w=0,E=0,C=1/Math.abs(l[P]-x||1),T=_;T<=O;++T){var I,j=l[T],F=u[T],L=(I=1-(I=Math.abs(x-j)*C)*I*I)*I*I*v[T],D=j*L;M+=L,A+=D,S+=F*L,w+=F*D,E+=j*D}var k=e(s(A/M,S/M,w/M,E/M),2),R=k[0],N=k[1];h[b]=R+N*x,g[b]=Math.abs(u[b]-h[b]),function(t,e,n){var r=t[e],i=n[0],a=n[1]+1;if(!(a>=t.length))for(;e>i&&t[a]-r<=r-t[i];)n[0]=++i,n[1]=a,++a}(l,b+1,m)}if(2===y)break;var B=function(t){t.sort(function(t,e){return t-e});var e=t.length/2;return e%1==0?(t[e-1]+t[e])/2:t[Math.floor(e)]}(g);if(1e-12>Math.abs(B))break;for(var G,V,z=0;z=1?1e-12:(V=1-G*G)*V}return function(t,e,n,r){for(var i,a=t.length,o=[],s=0,l=0,u=[];sv&&(v=e))});var m=e(s(f,d,p,h),2),b=m[0],x=m[1],_=function(t){return x*Math.log(t)/y+b},O=o(g,v,_);return O.a=x,O.b=b,O.predict=_,O.rSquared=i(u,n,a,d,_),O}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(n=t,u):n},u.y=function(t){return arguments.length?(a=t,u):a},u.base=function(t){return arguments.length?(l=t,u):l},u},t.regressionPoly=function(){var t,a=function(t){return t[0]},s=function(t){return t[1]},c=3;function f(f){if(1===c){var d,p,h,g,v,y=l().x(a).y(s).domain(t)(f);return y.coefficients=[y.b,y.a],delete y.a,delete y.b,y}if(2===c){var m=u().x(a).y(s).domain(t)(f);return m.coefficients=[m.c,m.b,m.a],delete m.a,delete m.b,delete m.c,m}var b=e(n(f,a,s),4),x=b[0],_=b[1],O=b[2],P=b[3],M=x.length,A=[],S=[],w=c+1,E=0,C=0,T=t?+t[0]:1/0,I=t?+t[1]:-1/0;for(r(f,a,s,function(e,n){++C,E+=(n-E)/C,!t&&(eI&&(I=e))}),d=0;dMath.abs(t[e][i])&&(i=n);for(r=e;r=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=o-1;n>=0;--n){for(a=0,r=n+1;r=0;--i)for(o=e[i],s=1,l[i]+=o,a=1;a<=i;++a)s*=(i+1-a)/a,l[i-a]+=o*Math.pow(n,a)*s;return l[0]+=r,l}(w,j,-O,P),L.predict=F,L.rSquared=i(f,a,s,E,F),L}return f.domain=function(e){return arguments.length?(t=e,f):t},f.x=function(t){return arguments.length?(a=t,f):a},f.y=function(t){return arguments.length?(s=t,f):s},f.order=function(t){return arguments.length?(c=t,f):c},f},t.regressionPow=function(){var t,n=function(t){return t[0]},a=function(t){return t[1]};function l(l){var u=0,c=0,f=0,d=0,p=0,h=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(l,n,a,function(e,n){var r=Math.log(e),i=Math.log(n);++u,c+=(r-c)/u,f+=(i-f)/u,d+=(r*i-d)/u,p+=(r*r-p)/u,h+=(n-h)/u,!t&&(ev&&(v=e))});var y=e(s(c,f,d,p),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.pow(t,b)},_=o(g,v,x);return _.a=m,_.b=b,_.predict=x,_.rSquared=i(l,n,a,h,x),_}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(a=t,l):a},l},t.regressionQuad=u,Object.defineProperty(t,"__esModule",{value:!0})},"object"===(0,o.default)(e)&&void 0!==t?a(e):(r=[e],void 0!==(i=a.apply(e,r))&&(t.exports=i))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformData=void 0,e.transformData=function(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,a=t.targetField,o=t.layout,s=[],l=[];e.forEach(function(t,e){var o;t[i].sort(function(t,e){return t-e}),t[i].forEach(function(r,a){var o,l=0===a?r:t[i][a]-t[i][a-1];s.push(((o={rKey:i+"_"+a})[n]=n?t[n]:String(e),o[i]=l,o))}),t[r].forEach(function(i,a){var o;s.push(((o={mKey:t[r].length>1?r+"_"+a:""+r})[n]=n?t[n]:String(e),o[r]=i,o))}),s.push(((o={tKey:""+a})[n]=n?t[n]:String(e),o[a]=t[a],o)),l.push(t[i],t[r],t[a])});var u=Math.min.apply(Math,l.flat(1/0)),c=Math.max.apply(Math,l.flat(1/0));return u=u>0?0:u,"vertical"===o&&s.reverse(),{min:u,max:c,ds:s}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.pick=function(t,e){var n={};return null!==t&&"object"===(0,i.default)(t)&&e.forEach(function(e){var r=t[e];void 0!==r&&(n[e]=r)}),n};var i=r(n(6))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LEVEL=void 0,e.invariant=function(t,e){for(var n=[],r=2;r"},key:(0===l?"top":"bottom")+"-statistic"},(0,a.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}})},e.renderGaugeStatistic=function(t,e,n){var l=e.statistic;[l.title,l.content].forEach(function(e){if(e){var l=(0,i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html((0,r.__assign)({position:["50%","100%"],html:function(t,a){var u=a.getCoordinate(),c=a.views[0].getCoordinate(),f=c.getCenter(),d=c.getRadius(),p=Math.max(Math.sin(c.startAngle),Math.sin(c.endAngle))*d,h=f.y+p-u.y.start-parseFloat((0,i.get)(l,"fontSize",0)),g=u.getRadius()*u.innerRadius*2;s(t,(0,r.__assign)({width:g+"px",transform:"translate(-50%, "+h+"px)"},o(l)));var v=a.getData();if(e.customHtml)return e.customHtml(t,a,n,v);var y=e.content;return e.formatter&&(y=e.formatter(n,v)),y?(0,i.isString)(y)?y:""+y:"
    "}},(0,a.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GLOBAL=void 0,e.setGlobal=function(t){(0,r.each)(t,function(t,e){return i[e]=t})};var r=n(0),i={locale:"en-US"};e.GLOBAL=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Line=void 0;var r=n(1),i=n(19),a=n(303),o=n(1192);n(1193);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;(0,a.meta)({chart:e,options:n}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Line=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasPattern=function(t){var e,n=t.type,o=t.cfg;switch(n){case"dot":e=(0,r.createDotPattern)(o);break;case"line":e=(0,i.createLinePattern)(o);break;case"square":e=(0,a.createSquarePattern)(o)}return e};var r=n(1183),i=n(1184),a=n(1185)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.point=function(t){var e=t.options,n=e.point,s=e.xField,l=e.yField,u=e.seriesField,c=e.sizeField,f=e.shapeField,d=e.tooltip,p=(0,i.getTooltipMapping)(d,[s,l,u,c,f]),h=p.fields,g=p.formatter;return n?(0,o.geometry)((0,a.deepAssign)({},t,{options:{type:"point",colorField:u,shapeField:f,tooltipFields:h,mapping:(0,r.__assign)({tooltip:g},n)}})):t};var r=n(1),i=n(65),a=n(7),o=n(49)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polygon=function(t){var e=t.options,n=e.polygon,s=e.xField,l=e.yField,u=e.seriesField,c=e.tooltip,f=(0,i.getTooltipMapping)(c,[s,l,u]),d=f.fields,p=f.formatter;return n?(0,o.geometry)((0,a.deepAssign)({},t,{options:{type:"polygon",colorField:u,tooltipFields:d,mapping:(0,r.__assign)({tooltip:p},n)}})):t};var r=n(1),i=n(65),a=n(7),o=n(49)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Area=void 0;var r=n(1),i=n(19),a=n(123),o=n(549),s=n(1195),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,r=e.xField,i=e.yField,s=this.chart,l=this.options;(0,o.meta)({chart:s,options:l}),this.chart.changeData((0,a.getDataWhetherPecentage)(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Area=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(a.theme,(0,a.pattern)("areaStyle"),c,u.meta,d,u.axis,u.legend,a.tooltip,f,a.slider,(0,a.annotation)(),a.interaction,a.animation,a.limitInPlot)(t)},Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return u.meta}});var r=n(1),i=n(0),a=n(22),o=n(7),s=n(30),l=n(123),u=n(303);function c(t){var e=t.chart,n=t.options,i=n.data,a=n.areaStyle,u=n.color,c=n.point,f=n.line,d=n.isPercent,p=n.xField,h=n.yField,g=n.tooltip,v=n.seriesField,y=n.startOnZero,m=null==c?void 0:c.state,b=(0,l.getDataWhetherPecentage)(i,h,p,h,d);e.data(b);var x=d?(0,r.__assign)({formatter:function(t){return{name:t[v]||t[p],value:(100*Number(t[h])).toFixed(2)+"%"}}},g):g,_=(0,o.deepAssign)({},t,{options:{area:{color:u,style:a},line:f&&(0,r.__assign)({color:u},f),point:c&&(0,r.__assign)({color:u},c),tooltip:x,label:void 0,args:{startOnZero:y}}}),O=(0,o.deepAssign)({options:{line:{size:2}}},_,{options:{sizeField:v,tooltip:!1}}),P=(0,o.deepAssign)({},_,{options:{tooltip:!1,state:m}});return(0,s.area)(_),(0,s.line)(O),(0,s.point)(P),t}function f(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=(0,o.findGeometry)(e,"area");if(i){var l=i.callback,u=(0,r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:(0,r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},(0,o.transformLabel)(u))})}else s.label(!1);return t}function d(t){var e=t.chart,n=t.options,r=n.isStack,a=n.isPercent,o=n.seriesField;return(a||r)&&o&&(0,i.each)(e.geometries,function(t){t.adjust("stack")}),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Column=void 0;var r=n(1),i=n(19),a=n(123),o=n(198),s=n(1200),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent,s=this.chart,l=this.options;(0,o.meta)({chart:s,options:l}),this.chart.changeData((0,a.getDataWhetherPecentage)(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Column=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.conversionTagFormatter=function(t,e){return(0,r.isNumber)(t)&&(0,r.isNumber)(e)?t===e?"100%":0===t?"∞":0===e?"-∞":(100*e/t).toFixed(2)+"%":"-"};var r=n(0)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.brushInteraction=function(t){var e=t.options,n=e.brush,s=(0,r.filter)(e.interactions||[],function(t){return -1===o.indexOf(t.type)});return(null==n?void 0:n.enabled)&&(o.forEach(function(t){var e,r=!1;switch(n.type){case"x-rect":r=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":r=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:r=t===("highlight"===n.action?"brush-highlight":"brush")}var a={type:t,enable:r};((null===(e=n.mask)||void 0===e?void 0:e.style)||n.type)&&(a.cfg=(0,i.getInteractionCfg)(t,n.type,n.mask)),s.push(a)}),(null==n?void 0:n.action)!=="highlight"&&s.push({type:"filter-action",cfg:{buttonConfig:n.button}})),(0,a.deepAssign)({},t,{options:{interactions:s}})};var r=n(0),i=n(1198),a=n(7),o=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Bar=void 0;var r=n(1),i=n(19),a=n(123),o=n(554),s=n(1201),l=n(555),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options,i=n.xField,s=n.yField,u=n.isPercent,c=(0,r.__assign)((0,r.__assign)({},n),{xField:s,yField:i});(0,o.meta)({chart:e,options:c}),e.changeData((0,a.getDataWhetherPecentage)((0,l.transformBarData)(t),i,s,i,u))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Bar=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){var e=t.chart,n=t.options,o=n.xField,s=n.yField,l=n.xAxis,u=n.yAxis,c=n.barStyle,f=n.barWidthRatio,d=n.label,p=n.data,h=n.seriesField,g=n.isStack,v=n.minBarWidth,y=n.maxBarWidth;!d||d.position||(d.position="left",d.layout||(d.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]));var m=n.legend;h?!1!==m&&(m=(0,r.__assign)({position:g?"top-left":"right-top",reversed:!g},m||{})):m=!1,t.options.legend=m;var b=n.tooltip;return h&&!1!==b&&(b=(0,r.__assign)({reversed:!g},b||{})),t.options.tooltip=b,e.coordinate().transpose(),(0,i.adaptor)({chart:e,options:(0,r.__assign)((0,r.__assign)({},n),{label:d,xField:s,yField:o,xAxis:u,yAxis:l,columnStyle:c,columnWidthRatio:f,minColumnWidth:v,maxColumnWidth:y,columnBackground:n.barBackground,data:(0,a.transformBarData)(p)})},!0)},Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return i.meta}});var r=n(1),i=n(198),a=n(555)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformBarData=function(t){return t?t.slice().reverse():t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pie=void 0;var r=n(1),i=n(14),a=n(19),o=n(7),s=n(557),l=n(558),u=n(559);n(560);var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=(0,o.processIllegalData)(e.data,n),a=(0,o.processIllegalData)(t,n);(0,u.isAllZero)(r,n)||(0,u.isAllZero)(a,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(a),(0,s.pieAnnotation)({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e}(a.Plot);e.Pie=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,c.flow)((0,l.pattern)("pieStyle"),h,g,a.theme,v,a.legend,x,y,a.state,b,_,a.animation)(t)},e.interaction=_,e.pieAnnotation=b,e.transformStatisticOptions=m;var r=n(1),i=n(0),a=n(22),o=n(49),s=n(30),l=n(122),u=n(196),c=n(7),f=n(558),d=n(559),p=n(560);function h(t){var e=t.chart,n=t.options,i=n.data,a=n.angleField,o=n.colorField,l=n.color,u=n.pieStyle,f=(0,c.processIllegalData)(i,a);if((0,d.isAllZero)(f,a)){var p="$$percentage$$";f=f.map(function(t){var e;return(0,r.__assign)((0,r.__assign)({},t),((e={})[p]=1/f.length,e))}),e.data(f);var h=(0,c.deepAssign)({},t,{options:{xField:"1",yField:p,seriesField:o,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0}}});(0,s.interval)(h)}else{e.data(f);var h=(0,c.deepAssign)({},t,{options:{xField:"1",yField:a,seriesField:o,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0}}});(0,s.interval)(h)}return t}function g(t){var e,n=t.chart,r=t.options,i=r.meta,a=r.colorField,o=(0,c.deepAssign)({},i);return n.scale(o,((e={})[a]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}),t}function y(t){var e=t.chart,n=t.options,a=n.label,o=n.colorField,s=n.angleField,l=e.geometries[0];if(a){var u=a.callback,f=(0,r.__rest)(a,["callback"]),p=(0,c.transformLabel)(f);if(p.content){var h=p.content;p.content=function(t,n,a){var l=t[o],u=t[s],f=e.getScaleByField(s),d=null==f?void 0:f.scale(u);return(0,i.isFunction)(h)?h((0,r.__assign)((0,r.__assign)({},t),{percent:d}),n,a):(0,i.isString)(h)?(0,c.template)(h,{value:u,name:l,percentage:(0,i.isNumber)(d)&&!(0,i.isNil)(u)?(100*d).toFixed(2)+"%":null}):h}}var g=p.type?({inner:"",outer:"pie-outer",spider:"pie-spider"})[p.type]:"pie-outer",v=p.layout?(0,i.isArray)(p.layout)?p.layout:[p.layout]:[];p.layout=(g?[{type:g}]:[]).concat(v),l.label({fields:o?[s,o]:[s],callback:u,cfg:(0,r.__assign)((0,r.__assign)({},p),{offset:(0,d.adaptOffset)(p.type,p.offset),type:"pie"})})}else l.label(!1);return t}function m(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,a=t.colorField,o=t.meta,s=t.locale,l=(0,u.getLocale)(s);if(e&&n){var p=(0,c.deepAssign)({},f.DEFAULT_OPTIONS.statistic,n),h=p.title,g=p.content;return!1!==h&&(h=(0,c.deepAssign)({},{formatter:function(t){return t?t[a]:(0,i.isNil)(h.content)?l.get(["statistic","total"]):h.content}},h)),!1!==g&&(g=(0,c.deepAssign)({},{formatter:function(t,e){var n=t?t[r]:(0,d.getTotalValue)(e,r),a=(0,i.get)(o,[r,"formatter"])||function(t){return t};return t?a(n):(0,i.isNil)(g.content)?a(n):g.content}},g)),(0,c.deepAssign)({},{statistic:{title:h,content:g}},t)}return t}function b(t){var e=t.chart,n=m(t.options),r=n.innerRadius,i=n.statistic;return e.getController("annotation").clear(!0),(0,c.flow)((0,a.annotation)())(t),r&&i&&(0,c.renderStatistic)(e,{statistic:i,plotType:"pie"}),t}function x(t){var e=t.chart,n=t.options,r=n.tooltip,a=n.colorField,s=n.angleField,l=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip((0,c.deepAssign)({},r,{shared:!1})),(0,d.isAllZero)(l,s)){var u=(0,i.get)(r,"fields"),f=(0,i.get)(r,"formatter");(0,i.isEmpty)((0,i.get)(r,"fields"))&&(u=[a,s],f=f||function(t){return{name:t[a],value:(0,i.toString)(t[s])}}),e.geometries[0].tooltip(u.join("*"),(0,o.getMappingFunction)(u,f))}return t}function _(t){var e=t.chart,n=m(t.options),a=n.interactions,o=n.statistic,s=n.annotations;return(0,i.each)(a,function(t){var n,a;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var l=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(l=[{trigger:"element:mouseenter",action:p.PIE_STATISTIC+":change",arg:{statistic:o,annotations:s}}]),(0,i.each)(null===(a=t.cfg)||void 0===a?void 0:a.start,function(t){l.push((0,r.__assign)((0,r.__assign)({},t),{arg:{statistic:o,annotations:s}}))}),e.interaction(t.type,(0,c.deepAssign)({},t.cfg,{start:l}))}else e.interaction(t.type,t.cfg||{})}),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{legend:{position:"right"},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptOffset=function(t,e){var n;switch(t){case"inner":if(n="-30%",(0,r.isString)(e)&&e.endsWith("%"))return .01*parseFloat(e)>0?n:e;return e<0?e:n;case"outer":if(n=12,(0,r.isString)(e)&&e.endsWith("%"))return .01*parseFloat(e)<0?n:e;return e>0?e:n;default:return e}},e.getTotalValue=function(t,e){var n=null;return(0,r.each)(t,function(t){"number"==typeof t[e]&&(n+=t[e])}),n},e.isAllZero=function(t,e){return(0,r.every)((0,i.processIllegalData)(t,e),function(t){return 0===t[e]})};var r=n(0),i=n(7)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PIE_STATISTIC=void 0;var r=n(14),i=n(1202),a=n(1203),o="pie-statistic";e.PIE_STATISTIC=o,(0,r.registerAction)(o,a.StatisticAction),(0,r.registerInteraction)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),(0,r.registerAction)("pie-legend",i.PieLegendAction),(0,r.registerInteraction)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transform=function(t,e){var n=e?(0,r.__spreadArrays)(e):(0,r.__spreadArrays)(a);return i.Util.transform(n,t)};var r=n(1),i=n(14),a=[1,0,0,0,1,0,0,0,1]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFontSizeMapping=u,e.getSingleKeyValues=c,e.getSize=l,e.processImageMask=function(t){return new Promise(function(e,n){if(t instanceof HTMLImageElement){e(t);return}if((0,i.isString)(t)){var r=new Image;r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},r.onerror=function(){(0,o.log)(o.LEVEL.ERROR,!1,"image %s load failed !!!",t),n()};return}(0,o.log)(o.LEVEL.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()})},e.transform=function(t){var e=t.options,n=t.chart,a=n.width,f=n.height,d=n.padding,p=n.appendPadding,h=n.ele,g=e.data,v=e.imageMask,y=e.wordField,m=e.weightField,b=e.colorField,x=e.wordStyle,_=e.timeInterval,O=e.random,P=e.spiral,M=e.autoFit,A=e.placementStrategy;if(!g||!g.length)return[];var S=x.fontFamily,w=x.fontWeight,E=x.padding,C=x.fontSize,T=c(g,m),I=[Math.min.apply(Math,T),Math.max.apply(Math,T)],j=g.map(function(t){return{text:t[y],value:t[m],color:t[b],datum:t}}),F={imageMask:v,font:S,fontSize:u(C,I),fontWeight:w,size:l({width:a,height:f,padding:d,appendPadding:p,autoFit:void 0===M||M,container:h}),padding:E,timeInterval:_,random:O,spiral:P,rotate:function(t){var e,n=((e=t.wordStyle.rotationSteps)<1&&((0,o.log)(o.LEVEL.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}),r=n.rotation,a=n.rotationSteps;if(!(0,i.isArray)(r))return r;var s=r[0],l=r[1],u=1===a?0:(l-s)/(a-1);return function(){return l===s?l:Math.floor(Math.random()*a)*u}}(e)};if((0,i.isFunction)(A)){var L=j.map(function(t,e,i){return(0,r.__assign)((0,r.__assign)((0,r.__assign)({},t),{hasText:!!t.text,font:(0,s.functor)(F.font)(t,e,i),weight:(0,s.functor)(F.fontWeight)(t,e,i),rotate:(0,s.functor)(F.rotate)(t,e,i),size:(0,s.functor)(F.fontSize)(t,e,i),style:"normal"}),A.call(n,t,e,i))});return L.push({text:"",value:0,x:0,y:0,opacity:0}),L.push({text:"",value:0,x:F.size[0],y:F.size[1],opacity:0}),L}return(0,s.wordCloud)(j,F)};var r=n(1),i=n(0),a=n(121),o=n(7),s=n(1210);function l(t){var e,n,r,i=t.width,s=t.height,l=t.container,u=t.autoFit,c=t.padding,f=t.appendPadding;if(u){var d=(0,o.getContainerSize)(l);i=d.width,s=d.height}i=i||400,s=s||400;var p=(e={padding:c,appendPadding:f},n=(0,a.normalPadding)(e.padding),r=(0,a.normalPadding)(e.appendPadding),[n[0]+r[0],n[1]+r[1],n[2]+r[2],n[3]+r[3]]),h=p[0],g=p[1],v=p[2];return[i-(p[3]+g),s-(h+v)]}function u(t,e){if((0,i.isFunction)(t))return t;if((0,i.isArray)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var a=e[0],o=e[1];return o===a?function(){return(r+n)/2}:function(t){return(r-n)/(o-a)*(t.value-a)+n}}return function(){return t}}function c(t,e){return t.map(function(t){return t[e]}).filter(function(t){return!("number"!=typeof t||isNaN(t))})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WORD_CLOUD_COLOR_FIELD=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7),a="color";e.WORD_CLOUD_COLOR_FIELD=a;var o=(0,i.deepAssign)({},r.Plot.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",a],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}});e.DEFAULT_OPTIONS=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scatter=void 0;var r=n(1),i=n(14),a=n(19),o=n(7),s=n(565),l=n(1213);n(1214);var u=function(t){function e(e,n){var a=t.call(this,e,n)||this;return a.type="scatter",a.on(i.VIEW_LIFE_CIRCLE.BEFORE_RENDER,function(t){var e,n,o=a.options,l=a.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===i.BRUSH_FILTER_EVENTS.FILTER){var u=a.chart.filterData(a.chart.getData());(0,s.meta)({chart:l,options:(0,r.__assign)((0,r.__assign)({},o),{data:u})})}(null===(n=t.data)||void 0===n?void 0:n.source)===i.BRUSH_FILTER_EVENTS.RESET&&(0,s.meta)({chart:l,options:o})}),a}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption((0,s.transformOptions)((0,o.deepAssign)({},this.options,{data:t})));var e=this.options,n=this.chart;(0,s.meta)({chart:n,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(a.Plot);e.Scatter=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,a.flow)(f,d,p,h,m,g,s.brushInteraction,l.interaction,v,l.animation,l.theme,y)(t)},e.meta=d,e.tooltip=m,e.transformOptions=c;var r=n(1),i=n(0),a=n(7),o=n(30),s=n(552),l=n(22),u=n(1212);function c(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var o=!0,s=!0,l=n[0],c=void 0,f=1;f1?c/(a-1):u.max),n||a||(f=c/(Math.ceil(Math.log(l.length)/Math.LN2)+1));var d={},p=(0,r.groupBy)(s,o);(0,r.isEmpty)(p)?(0,r.each)(s,function(t){var n=i(t[e],f,a),o=n[0]+"-"+n[1];(0,r.hasKey)(d,o)||(d[o]={range:n,count:0}),d[o].count+=1}):Object.keys(p).forEach(function(t){(0,r.each)(p[t],function(n){var s=i(n[e],f,a),l=s[0]+"-"+s[1]+"-"+t;(0,r.hasKey)(d,l)||(d[l]={range:s,count:0},d[l][o]=t),d[l].count+=1})});var h=[];return(0,r.each)(d,function(t){h.push(t)}),h};var r=n(0);function i(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(i.theme,(0,a.pattern)("columnStyle"),c,f,d,i.state,p,i.tooltip,i.interaction,i.animation)(t)};var r=n(1),i=n(22),a=n(122),o=n(7),s=n(30),l=n(575),u=n(577);function c(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,a=n.binNumber,c=n.binWidth,f=n.color,d=n.stackField,p=n.legend,h=n.columnStyle,g=(0,l.binHistogram)(r,i,c,a,d);e.data(g);var v=(0,o.deepAssign)({},t,{options:{xField:u.HISTOGRAM_X_FIELD,yField:u.HISTOGRAM_Y_FIELD,seriesField:d,isStack:!0,interval:{color:f,style:h}}});return(0,s.interval)(v),p&&d&&e.legend(d,p),t}function f(t){var e,n=t.options,r=n.xAxis,a=n.yAxis;return(0,o.flow)((0,i.scale)(((e={})[u.HISTOGRAM_X_FIELD]=r,e[u.HISTOGRAM_Y_FIELD]=a,e)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis(u.HISTOGRAM_X_FIELD,!1):e.axis(u.HISTOGRAM_X_FIELD,r),!1===i?e.axis(u.HISTOGRAM_Y_FIELD,!1):e.axis(u.HISTOGRAM_Y_FIELD,i),t}function p(t){var e=t.chart,n=t.options.label,i=(0,o.findGeometry)(e,"interval");if(n){var a=n.callback,s=(0,r.__rest)(n,["callback"]);i.label({fields:[u.HISTOGRAM_Y_FIELD],callback:a,cfg:(0,o.transformLabel)(s)})}else i.label(!1);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HISTOGRAM_Y_FIELD=e.HISTOGRAM_X_FIELD=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7);e.HISTOGRAM_X_FIELD="range",e.HISTOGRAM_Y_FIELD="count";var a=(0,i.deepAssign)({},r.Plot.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});e.DEFAULT_OPTIONS=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Progress=void 0;var r=n(1),i=n(19),a=n(306),o=n(579),s=n(307),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData((0,s.getProgressData)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Progress=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=e.DEFAULT_COLOR=void 0;var r=["#FAAD14","#E8EDF3"];e.DEFAULT_COLOR=r,e.DEFAULT_OPTIONS={percent:.2,color:r,animation:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RingProgress=void 0;var r=n(1),i=n(14),a=n(19),o=n(307),s=n(581),l=n(1226),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data((0,o.getProgressData)(t)),(0,s.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e}(a.Plot);e.RingProgress=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,a.flow)(s.geometry,(0,o.scale)({}),l,u,o.animation,o.theme,(0,o.annotation)())(t)},e.statistic=u;var r=n(1),i=n(0),a=n(7),o=n(22),s=n(306);function l(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function u(t,e){var n=t.chart,o=t.options,s=o.innerRadius,l=o.statistic,u=o.percent,c=o.meta;if(n.getController("annotation").clear(!0),s&&l){var f=(0,i.get)(c,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},d=l.content;d&&(d=(0,a.deepAssign)({},d,{content:(0,i.isNil)(d.content)?f(u):d.content})),(0,a.renderStatistic)(n,{statistic:(0,r.__assign)((0,r.__assign)({},l),{content:d}),plotType:"ring-progress"},{percent:u})}return e&&n.render(!0),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformData=void 0;var r=n(0),i=n(308);e.transformData=function(t,e){var n=t;if(Array.isArray(e)){var a=e[0],o=e[1],s=e[2],l=e[3],u=e[4];n=(0,r.map)(t,function(t){return t[i.BOX_RANGE]=[t[a],t[o],t[s],t[l],t[u]],t})}return n}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.transformViolinData=e.toViolinValue=e.toBoxValue=void 0;var i=n(1),a=n(0),o=r(n(1236)),s=n(1238),l=function(t){return{low:(0,a.min)(t),high:(0,a.max)(t),q1:(0,s.quantile)(t,.25),q3:(0,s.quantile)(t,.75),median:(0,s.quantile)(t,[.5]),minMax:[(0,a.min)(t),(0,a.max)(t)],quantile:[(0,s.quantile)(t,.25),(0,s.quantile)(t,.75)]}};e.toBoxValue=l;var u=function(t,e){var n=o.default.create(t,e);return{violinSize:n.map(function(t){return t.y}),violinY:n.map(function(t){return t.x})}};e.toViolinValue=u,e.transformViolinData=function(t){var e=t.xField,n=t.yField,r=t.seriesField,o=t.data,s=t.kde,c={min:s.min,max:s.max,size:s.sampleSize,width:s.width};if(!r){var f=(0,a.groupBy)(o,e);return Object.keys(f).map(function(t){var e=f[t].map(function(t){return t[n]});return(0,i.__assign)((0,i.__assign)({x:t},u(e,c)),l(e))})}var d=[],p=(0,a.groupBy)(o,r);return Object.keys(p).forEach(function(t){var o=(0,a.groupBy)(p[t],e);return Object.keys(o).forEach(function(e){var a,s=o[e].map(function(t){return t[n]});d.push((0,i.__assign)((0,i.__assign)(((a={x:e})[r]=t,a),u(s,c)),l(s)))})}),d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.X_FIELD=e.VIOLIN_Y_FIELD=e.VIOLIN_VIEW_ID=e.VIOLIN_SIZE_FIELD=e.QUANTILE_VIEW_ID=e.QUANTILE_FIELD=e.MIN_MAX_VIEW_ID=e.MIN_MAX_FIELD=e.MEDIAN_VIEW_ID=e.MEDIAN_FIELD=e.DEFAULT_OPTIONS=void 0;var r=n(19),i=n(7);e.X_FIELD="x",e.VIOLIN_Y_FIELD="violinY",e.VIOLIN_SIZE_FIELD="violinSize",e.MIN_MAX_FIELD="minMax",e.QUANTILE_FIELD="quantile",e.MEDIAN_FIELD="median",e.VIOLIN_VIEW_ID="violin_view",e.MIN_MAX_VIEW_ID="min_max_view",e.QUANTILE_VIEW_ID="quantile_view",e.MEDIAN_VIEW_ID="median_view";var a=(0,i.deepAssign)({},r.Plot.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}});e.DEFAULT_OPTIONS=a},function(t,e,n){"use strict";var r,i,a,o=n(2)(n(6));a=function(t){function e(t){for(var e=Array(t),n=0;nu+s*o*c||f>=g)h=o;else{if(Math.abs(p)<=-l*c)return o;p*(h-d)>=0&&(h=d),d=o,g=f}return 0}o=o||1,s=s||1e-6,l=l||.1;for(var v=0;v<10;++v){if(a(i.x,1,r.x,o,e),f=i.fx=t(i.x,i.fxprime),p=n(i.fxprime,e),f>u+s*o*c||v&&f>=d)return g(h,o,d);if(Math.abs(p)<=-l*c)break;if(p>=0)return g(o,h,f);d=f,h=o,o*=2}return o}t.bisect=function(t,e,n,r){var i=(r=r||{}).maxIterations||100,a=r.tolerance||1e-10,o=t(e),s=t(n),l=n-e;if(o*s>0)throw"Initial bisect points must have opposite signs";if(0===o)return e;if(0===s)return n;for(var u=0;u=0&&(e=c),Math.abs(l)=g[h-1].fx){var E=!1;if(_.fx>w.fx?(a(O,1+d,x,-d,w),O.fx=t(O),O.fx=1)break;for(v=1;v=r(f.fxprime))break}return s.history&&s.history.push({x:f.x.slice(),fx:f.fx,fxprime:f.fxprime.slice(),alpha:h}),f},t.gradientDescent=function(t,e,n){for(var i=(n=n||{}).maxIterations||100*e.length,o=n.learnRate||.001,s={x:e.slice(),fx:0,fxprime:e.slice()},l=0;l=r(s.fxprime)));++l);return s},t.gradientDescentLineSearch=function(t,e,n){n=n||{};var a,s={x:e.slice(),fx:0,fxprime:e.slice()},l={x:e.slice(),fx:0,fxprime:e.slice()},u=n.maxIterations||100*e.length,c=n.learnRate||1,f=e.slice(),d=n.c1||.001,p=n.c2||.1,h=[];if(n.history){var g=t;t=function(t,e){return h.push(t.slice()),g(t,e)}}s.fx=t(s.x,s.fxprime);for(var v=0;vr(s.fxprime)));++v);return s},t.zeros=e,t.zerosM=function(t,n){return e(t).map(function(){return e(n)})},t.norm2=r,t.weightedSum=a,t.scale=i},"object"===(0,o.default)(e)&&void 0!==t?a(e):(r=[e],void 0!==(i=a.apply(e,r))&&(t.exports=i))},function(t,e,n){"use strict";function r(t,e){for(var n=0;ne[n].radius+1e-10)return!1;return!0}function i(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function a(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function o(t,e){var n=a(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),s=Math.sqrt(r*r-o*o),l=t.x+o*(e.x-t.x)/n,u=t.y+o*(e.y-t.y)/n,c=-(e.y-t.y)*(s/n),f=-(e.x-t.x)*(s/n);return[{x:l+c,y:u-f},{x:l-c,y:u+f}]}function s(t){for(var e={x:0,y:0},n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=t-(n*n-e*e+t*t)/(2*n),a=e-(n*n-t*t+e*e)/(2*n);return i(t,r)+i(e,a)},e.containedInCircles=r,e.distance=a,e.getCenter=s,e.intersectionArea=function(t,e){var n,l=function(t){for(var e=[],n=0;n1){var p=s(u);for(n=0;n-1){var x=t[v.parentIndex[b]],_=Math.atan2(v.x-x.x,v.y-x.y),O=Math.atan2(g.x-x.x,g.y-x.y),P=O-_;P<0&&(P+=2*Math.PI);var M=O-P/2,A=a(y,{x:x.x+x.radius*Math.sin(M),y:x.y+x.radius*Math.cos(M)});A>2*x.radius&&(A=2*x.radius),(null===m||m.width>A)&&(m={circle:x,width:A,p1:v,p2:g})}null!==m&&(d.push(m),c+=i(m.circle.radius,m.width),g=v)}}else{var S=t[0];for(n=1;nMath.abs(S.radius-t[n].radius)){w=!0;break}w?c=f=0:(c=S.radius*S.radius*Math.PI,d.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-1e-10,y:S.y+S.radius},width:2*S.radius}))}return f/=2,e&&(e.area=c+f,e.arcArea=c,e.polygonArea=f,e.arcs=d,e.innerPoints=u,e.intersectionPoints=l),c+f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStockData=function(t,e){return(0,r.map)(t,function(t){if((0,r.isArray)(e)){var n=e[0],a=e[1],o=e[2],s=e[3];t[i.TREND_FIELD]=t[n]<=t[a]?i.TREND_UP:i.TREND_DOWN,t[i.Y_FIELD]=[t[n],t[a],t[o],t[s]]}return t})};var r=n(0),i=n(310)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"FUNNEL_CONVERSATION_FIELD",{enumerable:!0,get:function(){return l.FUNNEL_CONVERSATION}}),e.Funnel=void 0;var r=n(1),i=n(0),a=n(19),o=n(7),s=n(589),l=n(125),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=(0,o.getAllElementsRecursively)(this.chart);(0,i.each)(r,function(r){e(r.getData())&&r.setState(t,n)})},e.prototype.getStates=function(){var t=(0,o.getAllElementsRecursively)(this.chart),e=[];return(0,i.each)(t,function(t){var n=t.getData(),r=t.getStates();(0,i.each)(r,function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})})}),e},e.CONVERSATION_FIELD=l.FUNNEL_CONVERSATION,e.PERCENT_FIELD=l.FUNNEL_PERCENT,e.TOTAL_PERCENT_FIELD=l.FUNNEL_TOTAL_PERCENT,e}(a.Plot);e.Funnel=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(p,h,g,v,i.tooltip,i.interaction,y,i.animation,i.theme,(0,i.annotation)())(t)},e.meta=g;var r=n(0),i=n(22),a=n(196),o=n(7),s=n(551),l=n(590),u=n(1253),c=n(1254),f=n(1255),d=n(125);function p(t){var e,n=t.options,i=n.compareField,l=n.xField,u=n.yField,c=n.locale,f=n.funnelStyle,p=n.data,h=(0,a.getLocale)(c),g={label:i?{fields:[l,u,i,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],formatter:function(t){return""+t[u]}}:{fields:[l,u,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],offset:0,position:"middle",formatter:function(t){return t[l]+" "+t[u]}},tooltip:{title:l,formatter:function(t){return{name:t[l],value:t[u]}}},conversionTag:{formatter:function(t){return h.get(["conversionTag","label"])+": "+s.conversionTagFormatter.apply(void 0,t[d.FUNNEL_CONVERSATION])}}};return(i||f)&&(e=function(t){return(0,o.deepAssign)({},i&&{lineWidth:1,stroke:"#fff"},(0,r.isFunction)(f)?f(t):f)}),(0,o.deepAssign)({options:g},t,{options:{funnelStyle:e,data:(0,r.clone)(p)}})}function h(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?(0,c.facetFunnel)(t):n?(0,u.compareFunnel)(t):r?(0,f.dynamicHeightFunnel)(t):(0,l.basicFunnel)(t)}function g(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,s=n.xField,l=n.yField;return(0,o.flow)((0,i.scale)(((e={})[s]=r,e[l]=a,e)))(t)}function v(t){return t.chart.axis(!1),t}function y(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.basicFunnel=function(t){return(0,a.flow)(c,f,d,p)(t)};var r=n(1),i=n(0),a=n(7),o=n(65),s=n(49),l=n(125),u=n(311);function c(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,a=n.yField,o=n.maxSize,s=n.minSize,l=(0,u.transformData)(i,i,{yField:a,maxSize:o,minSize:s});return e.data(l),t}function f(t){var e=t.chart,n=t.options,r=n.xField,u=n.yField,c=n.color,f=n.tooltip,d=n.label,p=n.shape,h=n.funnelStyle,g=n.state,v=(0,o.getTooltipMapping)(f,[r,u]),y=v.fields,m=v.formatter;return(0,s.geometry)({chart:e,options:{type:"interval",xField:r,yField:l.FUNNEL_MAPPING_VALUE,colorField:r,tooltipFields:(0,i.isArray)(y)&&y.concat([l.FUNNEL_PERCENT,l.FUNNEL_CONVERSATION]),mapping:{shape:void 0===p?"funnel":p,tooltip:m,color:c,style:h},label:d,state:g}}),(0,a.findGeometry)(t.chart,"interval").adjust("symmetric"),t}function d(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function p(t){var e=t.options.maxSize;return(0,u.conversionTagComponent)(function(t,n,i,a){var o=e-(e-t[l.FUNNEL_MAPPING_VALUE])/2;return(0,r.__assign)((0,r.__assign)({},a),{start:[n-.5,o],end:[n-.5,o+.05]})})(t),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLiquidData=function(t){return[{percent:t,type:"liquid"}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformData=function(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,a=t.targetField,o=t.layout,s=[],l=[];e.forEach(function(t,e){var o;t[i].sort(function(t,e){return t-e}),t[i].forEach(function(r,a){var o,l=0===a?r:t[i][a]-t[i][a-1];s.push(((o={rKey:i+"_"+a})[n]=n?t[n]:String(e),o[i]=l,o))}),t[r].forEach(function(i,a){var o;s.push(((o={mKey:t[r].length>1?r+"_"+a:""+r})[n]=n?t[n]:String(e),o[r]=i,o))}),s.push(((o={tKey:""+a})[n]=n?t[n]:String(e),o[a]=t[a],o)),l.push(t[i],t[r],t[a])});var u=Math.min.apply(Math,l.flat(1/0)),c=Math.max.apply(Math,l.flat(1/0));return u=u>0?0:u,"vertical"===o&&s.reverse(),{min:u,max:c,ds:s}}},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.getTileMethod=u,e.treemap=function(t,e){var n,r=(e=(0,a.assign)({},l,e)).as;if(!(0,a.isArray)(r)||2!==r.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=(0,o.getField)(e)}catch(t){console.warn(t)}var s=u(e.tile,e.ratio),c=i.treemap().tile(s).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(i.hierarchy(t).sum(function(t){return e.ignoreParentValue&&t.children?0:t[n]}).sort(e.sort)),f=r[0],d=r[1];return c.each(function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach(function(e){-1===r.indexOf(e)&&delete t[e]})}),(0,o.getAllNodes)(c)};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}(n(193)),a=n(0),o=n(157);function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}var l={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function u(t,e){return"treemapSquarify"===t?i[t].ratio(e):i[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Gauge=void 0;var r=n(1),i=n(14),a=n(19),o=n(595),s=n(314),l=n(596);n(1268),n(1269);var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find(function(t){return t.id===s.INDICATEOR_VIEW_ID});e&&e.data((0,l.getIndicatorData)(t));var n=this.chart.views.find(function(t){return t.id===s.RANGE_VIEW_ID});n&&n.data((0,l.getRangeData)(t,this.options.range)),(0,o.statistic)({chart:this.chart,options:this.options},!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(a.Plot);e.Gauge=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,l.flow)(a.theme,a.animation,f,d,p,a.interaction,(0,a.annotation)(),h)(t)},e.statistic=p;var r=n(1),i=n(0),a=n(22),o=n(30),s=n(99),l=n(7),u=n(314),c=n(596);function f(t){var e=t.chart,n=t.options,r=n.percent,a=n.range,f=n.radius,d=n.innerRadius,p=n.startAngle,h=n.endAngle,g=n.axis,v=n.indicator,y=n.gaugeStyle,m=n.type,b=n.meter,x=a.color,_=a.width;if(v){var O=(0,c.getIndicatorData)(r),P=e.createView({id:u.INDICATEOR_VIEW_ID});P.data(O),P.point().position(u.PERCENT+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),P.coordinate("polar",{startAngle:p,endAngle:h,radius:d*f}),P.axis(u.PERCENT,g),P.scale(u.PERCENT,(0,l.pick)(g,s.AXIS_META_CONFIG_KEYS))}var M=(0,c.getRangeData)(r,n.range),A=e.createView({id:u.RANGE_VIEW_ID});A.data(M);var S=(0,i.isString)(x)?[x,u.DEFAULT_COLOR]:x;return(0,o.interval)({chart:A,options:{xField:"1",yField:u.RANGE_VALUE,seriesField:u.RANGE_TYPE,rawFields:[u.PERCENT],isStack:!0,interval:{color:S,style:y,shape:"meter"===m?"meter-gauge":null},args:{zIndexReversed:!0},minColumnWidth:_,maxColumnWidth:_}}).ext.geometry.customInfo({meter:b}),A.coordinate("polar",{innerRadius:d,radius:f,startAngle:p,endAngle:h}).transpose(),t}function d(t){var e;return(0,l.flow)((0,a.scale)(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[u.PERCENT]={},e)))(t)}function p(t,e){var n=t.chart,i=t.options,a=i.statistic,o=i.percent;if(n.getController("annotation").clear(!0),a){var s=a.content,u=void 0;s&&(u=(0,l.deepAssign)({},{content:(100*o).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),(0,l.renderGaugeStatistic)(n,{statistic:(0,r.__assign)((0,r.__assign)({},a),{content:u})},{percent:o})}return e&&n.render(!0),t}function h(t){var e=t.chart;return e.legend(!1),e.tooltip(!1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getIndicatorData=function(t){var e;return[((e={})[i.PERCENT]=(0,r.clamp)(t,0,1),e)]},e.getRangeData=function(t,e){var n=(0,r.get)(e,["ticks"],[]);return a((0,r.size)(n)?n:[0,(0,r.clamp)(t,0,1),1],t)},e.processRangeData=a;var r=n(0),i=n(314);function a(t,e){return t.map(function(n,r){var a;return(a={})[i.RANGE_VALUE]=n-(t[r-1]||0),a[i.RANGE_TYPE]=""+r,a[i.PERCENT]=e,a}).filter(function(t){return!!t[i.RANGE_VALUE]})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processData=s,e.transformData=function(t,e,n,a){return s(t,e,n,o.Y_FIELD,a).map(function(e,n){var a;return(0,i.isObject)(e)?(0,r.__assign)((0,r.__assign)({},e),((a={})[o.ABSOLUTE_FIELD]=e[o.Y_FIELD][1],a[o.DIFF_FIELD]=e[o.Y_FIELD][1]-e[o.Y_FIELD][0],a[o.IS_TOTAL]=n===t.length,a)):e})};var r=n(1),i=n(0),a=n(7),o=n(315);function s(t,e,n,o,s){var l,u=[];if((0,i.reduce)(t,function(t,e){(0,a.log)(a.LEVEL.WARN,(0,i.isNumber)(e[n]),e[n]+" is not a valid number");var s,l=(0,i.isUndefined)(e[n])?null:e[n];return u.push((0,r.__assign)((0,r.__assign)({},e),((s={})[o]=[t,t+l],s))),t+l},0),u.length&&s){var c=(0,i.get)(u,[[t.length-1],o,[1]]);u.push(((l={})[e]=s.label,l[n]=c,l[o]=[0,c],l))}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SERIES_FIELD_KEY=e.SECOND_AXES_VIEW=e.FIRST_AXES_VIEW=void 0,e.FIRST_AXES_VIEW="first-axes-view",e.SECOND_AXES_VIEW="second-axes-view",e.SERIES_FIELD_KEY="series-field-key"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isHorizontal=i,e.syncViewPadding=function(t,e,n){var r=e[0],a=e[1],o=r.autoPadding,s=a.autoPadding,l=t.__axisPosition,u=l.layout,c=l.position;if(i(u)&&"top"===c&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),a.autoPadding=n.instance(s.top,o.left,s.bottom,0)),i(u)&&"bottom"===c&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),a.autoPadding=n.instance(s.top,s.right,s.bottom,o.right/2+5)),!i(u)&&"bottom"===c){var f=o.left>=s.left?o.left:s.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,f),a.autoPadding=n.instance(o.bottom/2+5,s.right,s.bottom,f)}if(!i(u)&&"top"===c){var f=o.left>=s.left?o.left:s.left;r.autoPadding=n.instance(o.top,o.right,0,f),a.autoPadding=n.instance(0,s.right,o.top,f)}},e.transformData=function(t,e,n,i,a){var o=[];e.forEach(function(e){i.forEach(function(r){var i,a=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);o.push(a)})});var s=Object.values((0,r.groupBy)(o,n)),l=s[0],u=void 0===l?[]:l,c=s[1],f=void 0===c?[]:c;return a?[u.reverse(),f.reverse()]:[u,f]};var r=n(0);function i(t){return"vertical"!==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enableDrillInteraction=function(t){var e=t.interactions,n=t.drilldown;return(0,i.get)(n,"enabled")||l(e,"treemap-drill-down")},e.enableInteraction=l,e.findInteraction=s,e.resetDrillDown=function(t){var e=t.interactions["drill-down"];e&&e.context.actions.find(function(t){return"drill-down-action"===t.name}).reset()},e.transformData=function(t){var e=t.data,n=t.colorField,s=t.enableDrillDown,l=t.hierarchyConfig,u=(0,o.treemap)(e,(0,r.__assign)((0,r.__assign)({},l),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),c=[];return u.forEach(function(t){if(0===t.depth||s&&1!==t.depth||!s&&t.children)return null;var o=t.ancestors().map(function(t){return{data:t.data,height:t.height,value:t.value}}),u=s&&(0,i.isArray)(e.path)?o.concat(e.path.slice(1)):o,f=Object.assign({},t.data,(0,r.__assign)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:u},t));if(!t.data[n]&&t.parent){var d=t.ancestors().find(function(t){return t.data[n]});f[n]=null==d?void 0:d.data[n]}else f[n]=t.data[n];f[a.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:l,colorField:n,enableDrillDown:s},c.push(f)}),c};var r=n(1),i=n(0),a=n(201),o=n(593);function s(t,e){if((0,i.isArray)(t))return t.find(function(t){return t.type===e})}function l(t,e){var n=s(t,e);return n&&!1!==n.enable}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNodePaddingRatio=u,e.getNodeWidthRatio=l,e.transformToViewsData=function(t,e,n){var c=t.data,f=t.sourceField,d=t.targetField,p=t.weightField,h=t.nodeAlign,g=t.nodeSort,v=t.nodePadding,y=t.nodePaddingRatio,m=t.nodeWidth,b=t.nodeWidthRatio,x=t.nodeDepth,_=t.rawFields,O=void 0===_?[]:_,P=(0,a.transformDataToNodeLinkData)((0,s.cutoffCircle)(c,f,d),f,d,p,O),M=(0,o.sankeyLayout)({nodeAlign:h,nodePadding:u(v,y,n),nodeWidth:l(m,b,e),nodeSort:g,nodeDepth:x},P),A=M.nodes,S=M.links;return{nodes:A.map(function(t){return(0,r.__assign)((0,r.__assign)({},(0,i.pick)(t,(0,r.__spreadArrays)(["x","y","name"],O))),{isNode:!0})}),edges:S.map(function(t){return(0,r.__assign)((0,r.__assign)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},(0,i.pick)(t,(0,r.__spreadArrays)(["x","y","value"],O))),{isNode:!1})})}};var r=n(1),i=n(7),a=n(197),o=n(1285),s=n(1289);function l(t,e,n){return(0,i.isRealNumber)(t)?t/n:e}function u(t,e,n){return(0,i.isRealNumber)(t)?t/n:e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.center=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?(0,r.minBy)(t.sourceLinks,i)-1:0},e.justify=function(t,e){return t.sourceLinks.length?t.depth:e-1},e.left=function(t){return t.depth},e.right=function(t,e){return e-1-t.height};var r=n(0);function i(t){return t.target.depth}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Y_FIELD=e.X_FIELD=e.NODE_COLOR_FIELD=e.EDGE_COLOR_FIELD=e.DEFAULT_OPTIONS=void 0;var r=n(0);e.X_FIELD="x",e.Y_FIELD="y",e.NODE_COLOR_FIELD="name",e.EDGE_COLOR_FIELD="source",e.DEFAULT_OPTIONS={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!(0,r.get)(t,[0,"data","isNode"])},formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RAW_FIELDS=e.DEFAULT_OPTIONS=void 0,e.RAW_FIELDS=["x","y","r","name","value","path","depth"],e.DEFAULT_OPTIONS={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Mix=void 0;var r=n(1),i=n(19),a=n(1302);n(1303);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return(0,r.__extends)(e,t),e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Mix=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.execPlotAdaptor=function(t,e,n){var a=L[t];if(!a){console.error("could not find "+t+" plot");return}(0,F[t])({chart:e,options:(0,i.deepAssign)({},a.getDefaultOptions(),(0,r.get)(D,t,{}),n)})};var r=n(0),i=n(7),a=n(303),o=n(557),s=n(198),l=n(554),u=n(549),c=n(595),f=n(570),d=n(572),p=n(199),h=n(581),g=n(306),v=n(565),y=n(576),m=n(589),b=n(544),x=n(556),_=n(553),O=n(550),P=n(548),M=n(594),A=n(569),S=n(573),w=n(571),E=n(580),C=n(578),T=n(564),I=n(574),j=n(588),F={line:a.adaptor,pie:o.adaptor,column:s.adaptor,bar:l.adaptor,area:u.adaptor,gauge:c.adaptor,"tiny-line":f.adaptor,"tiny-column":d.adaptor,"tiny-area":p.adaptor,"ring-progress":h.adaptor,progress:g.adaptor,scatter:v.adaptor,histogram:y.adaptor,funnel:m.adaptor},L={line:b.Line,pie:x.Pie,column:O.Column,bar:_.Bar,area:P.Area,gauge:M.Gauge,"tiny-line":A.TinyLine,"tiny-column":w.TinyColumn,"tiny-area":S.TinyArea,"ring-progress":E.RingProgress,progress:C.Progress,scatter:T.Scatter,histogram:I.Histogram,funnel:j.Funnel},D={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRangeData=e.getIndicatorData=e.processRangeData=void 0;var r=n(0),i=n(317);function a(t,e){return t.map(function(n,r){var a;return(a={})[i.RANGE_VALUE]=n-(t[r-1]||0),a[i.RANGE_TYPE]=""+r,a[i.PERCENT]=e,a}).filter(function(t){return!!t[i.RANGE_VALUE]})}e.processRangeData=a,e.getIndicatorData=function(t){var e;return[((e={})[i.PERCENT]=r.clamp(t,0,1),e)]},e.getRangeData=function(t,e){var n=r.get(e,["ticks"],[]);return a(r.size(n)?n:[0,r.clamp(t,0,1),1],t)}},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.DualAxesGeometry=e.AxisType=void 0,(r=e.AxisType||(e.AxisType={})).Left="Left",r.Right="Right",(i=e.DualAxesGeometry||(e.DualAxesGeometry={})).Line="line",i.Column="column"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_RIGHT_YAXIS_CONFIG=e.DEFAULT_LEFT_YAXIS_CONFIG=e.DEFAULT_YAXIS_CONFIG=e.RIGHT_AXES_VIEW=e.LEFT_AXES_VIEW=void 0;var r=n(1);e.LEFT_AXES_VIEW="left-axes-view",e.RIGHT_AXES_VIEW="right-axes-view",e.DEFAULT_YAXIS_CONFIG={nice:!0,label:{autoHide:!0,autoRotate:!1}},e.DEFAULT_LEFT_YAXIS_CONFIG=r.__assign(r.__assign({},e.DEFAULT_YAXIS_CONFIG),{position:"left"}),e.DEFAULT_RIGHT_YAXIS_CONFIG=r.__assign(r.__assign({},e.DEFAULT_YAXIS_CONFIG),{position:"right",grid:null})},function(t,e,n){"use strict";n.d(e,"x",function(){return f}),n.d(e,"B",function(){return p}),n.d(e,"K",function(){return b}),n.d(e,"J",function(){return O}),n.d(e,"L",function(){return S}),n.d(e,"q",function(){return C}),n.d(e,"M",function(){return L}),n.d(e,"I",function(){return D}),n.d(e,"b",function(){return B}),n.d(e,"F",function(){return G}),n.d(e,"l",function(){return W}),n.d(e,"t",function(){return Y}),n.d(e,"z",function(){return H}),n.d(e,"a",function(){return q}),n.d(e,"E",function(){return Z}),n.d(e,"s",function(){return K}),n.d(e,"f",function(){return te}),n.d(e,"m",function(){return tr}),n.d(e,"G",function(){return ti}),n.d(e,"A",function(){return ta}),n.d(e,"u",function(){return to}),n.d(e,"v",function(){return tl}),n.d(e,"g",function(){return tc}),n.d(e,"o",function(){return td}),n.d(e,"O",function(){return tv}),n.d(e,"C",function(){return tb}),n.d(e,"j",function(){return t_}),n.d(e,"H",function(){return tP}),n.d(e,"n",function(){return tA}),n.d(e,"y",function(){return tF}),n.d(e,"r",function(){return tk}),n.d(e,"p",function(){return tN}),n.d(e,"h",function(){return tB}),n.d(e,"N",function(){return tV}),n.d(e,"D",function(){return tW}),n.d(e,"c",function(){return tY}),n.d(e,"d",function(){return tq}),n.d(e,"e",function(){return tK}),n.d(e,"k",function(){return tJ}),n.d(e,"i",function(){return t1}),n.d(e,"w",function(){return t4});var r={};n.r(r),n.d(r,"ProgressChart",function(){return f}),n.d(r,"RingProgressChart",function(){return p}),n.d(r,"TinyColumnChart",function(){return b}),n.d(r,"TinyAreaChart",function(){return O}),n.d(r,"TinyLineChart",function(){return S});var i={};n.r(i),n.d(i,"LineChart",function(){return C}),n.d(i,"TreemapChart",function(){return L}),n.d(i,"StepLineChart",function(){return D}),n.d(i,"BarChart",function(){return B}),n.d(i,"StackedBarChart",function(){return G}),n.d(i,"GroupedBarChart",function(){return W}),n.d(i,"PercentStackedBarChart",function(){return Y}),n.d(i,"RangeBarChart",function(){return H}),n.d(i,"AreaChart",function(){return q}),n.d(i,"StackedAreaChart",function(){return Z}),n.d(i,"PercentStackedAreaChart",function(){return K}),n.d(i,"ColumnChart",function(){return te}),n.d(i,"GroupedColumnChart",function(){return tr}),n.d(i,"StackedColumnChart",function(){return ti}),n.d(i,"RangeColumnChart",function(){return ta}),n.d(i,"PercentStackedColumnChart",function(){return to}),n.d(i,"PieChart",function(){return tl}),n.d(i,"DensityHeatmapChart",function(){return tc}),n.d(i,"HeatmapChart",function(){return td}),n.d(i,"WordCloudChart",function(){return tv}),n.d(i,"RoseChart",function(){return tb}),n.d(i,"FunnelChart",function(){return t_}),n.d(i,"StackedRoseChart",function(){return tP}),n.d(i,"GroupedRoseChart",function(){return tA}),n.d(i,"RadarChart",function(){return tF}),n.d(i,"LiquidChart",function(){return tk}),n.d(i,"HistogramChart",function(){return tN}),n.d(i,"DonutChart",function(){return tB}),n.d(i,"WaterfallChart",function(){return tV}),n.d(i,"ScatterChart",function(){return tW}),n.d(i,"BubbleChart",function(){return tY}),n.d(i,"BulletChart",function(){return tq}),n.d(i,"CalendarChart",function(){return tK}),n.d(i,"GaugeChart",function(){return tJ}),n.d(i,"DualAxesChart",function(){return t1});var a=n(4),o=n.n(a),s=n(3),l=n.n(s),u=n(629),c=n(11),f=Object(c.a)(u.Progress,"ProgressChart",function(t){return o()({data:t.percent,color:"#5B8FF9"},t)}),d=n(630),p=Object(c.a)(d.RingProgress,"RingProgressChart",function(t){return o()({data:t.percent,color:"#5B8FF9"},t)}),h=n(631),g=n(20),v=n.n(g),y=n(16),m=n(0),b=Object(c.a)(h.TinyColumn,"TinyColumnChart",function(t){var e=Object(y.c)(t);if(!Object(m.isNil)(e.yField)){var n=e.data.map(function(t){return t[e.yField]}).filter(function(t){return!Object(m.isNil)(t)});n&&n.length&&v()(e,"data",n)}return v()(e,"tooltip",!1),e}),x=n(632),_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},O=Object(c.a)(x.TinyArea,"TinyAreaChart",function(t){var e=Object(y.c)(t),n=e.xField,r=e.yField,i=e.data,a=_(e,["xField","yField","data"]);return n&&r&&i&&(a.data=i.map(function(t){return t[r]})),o()({},a)}),P=n(633),M=n(18),A=n.n(M),S=Object(c.a)(P.TinyLine,"TinyLineChart",function(t){var e=Object(y.c)(t);if(!Object(m.isNil)(e.yField)){var n=e.data.map(function(t){return t[e.yField]}).filter(function(t){return!Object(m.isNil)(t)});n&&n.length&&v()(e,"data",n)}var r=A()(e,"size");if(!Object(m.isNil)(r)){var i=A()(e,"lineStyle",{});v()(e,"lineStyle",o()(o()({},i),{lineWidth:r}))}return v()(e,"tooltip",!1),e}),w=n(232),E=function(t){var e=Object(y.c)(t);return Object(y.e)(e,"point"),!0===e.point&&(e.point={}),e},C=Object(c.a)(w.Line,"LineChart",E),T=n(634),I=n(17),j=n.n(I),F=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(r>n)delete e.children;else{var i=e.children;i&&i.length&&i.forEach(function(e){t(e,n,r+1)})}},L=Object(c.a)(T.Treemap,"TreemapChart",function(t){var e=Object(y.c)(t),n=Object(m.get)(e,"maxLevel",2);if(!Object(m.isNil)(n)){if(n<1)j()(!1,"maxLevel 必须大于等于1");else{var r=Object(m.get)(e,"data",{});F(r,n),Object(m.set)(e,"data",r),Object(m.set)(e,"maxLevel",n)}}return e}),D=Object(c.a)(w.Line,"StepLineChart",function(t){return j()(!1,"即将在5.0后废弃,请使用替代。"),t.stepType=t.stepType||t.step||"hv",E(t)}),k=n(83),R=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},N=function(t){var e=Object(y.c)(t),n=e.barSize,r=R(e,["barSize"]);return Object(y.f)([{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField是旧版API,即将废弃 请使用seriesField替代"},{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField是旧版API,即将废弃 请使用seriesField替代"}],r),Object(m.isNil)(n)||(r.minBarWidth=n,r.maxBarWidth=n),r},B=Object(c.a)(k.Bar,"BarChart",N),G=Object(c.a)(k.Bar,"StackedBarChart",function(t){return j()(!1," 即将在5.0后废弃,请使用替代,"),Object(m.deepMix)(t,{isStack:!0}),N(t)}),V=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},z=[{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField 是 g2@1.0的属性,即将废弃,请使用seriesField替代"}],W=Object(c.a)(k.Bar,"GroupedBarChart",function(t){j()(!1," 在5.0后即将被废弃,请使用 替代");var e=Object(y.c)(t),n=e.barSize,r=V(e,["barSize"]);return Object(y.f)(z,r),Object(m.isNil)(n)||(r.minBarWidth=n,r.maxBarWidth=n),Object(m.deepMix)(t,{isGroup:!0}),r}),Y=Object(c.a)(k.Bar,"PercentStackedBarChart",function(t){return j()(!1," 即将在5.0后废弃,请使用替代。"),Object(m.deepMix)(t,{isPercent:!0,isStack:!0}),N(t)}),H=Object(c.a)(k.Bar,"RangeBarChart",function(t){return j()(!1," 即将在5.0后废弃,请使用替代。"),Object(m.deepMix)(t,{isRange:!0}),N(t)}),X=n(134),U=function(t){var e=Object(y.c)(t);return Object(y.e)(e,"line"),Object(y.e)(e,"point"),e.isStack=!Object(m.isNil)(e.isStack)&&e.isStack,Object(y.f)([{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField是旧版api,即将废弃 请使用seriesField替代"}],e),e},q=Object(c.a)(X.Area,"AreaChart",U),Z=Object(c.a)(X.Area,"StackedAreaChart",function(t){return j()(!1," 即将在5.0后废弃,请使用 替代。"),Object(m.deepMix)(t,{isStack:!0}),U(t)}),K=Object(c.a)(X.Area,"PercentStackedAreaChart",function(t){return j()(!1," 即将在5.0后废弃,请使用 替代。"),Object(m.deepMix)(t,{isPercent:!0}),U(t)}),$=n(84),Q=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},J=[{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField 是 g2@1.0的属性,即将废弃,请使用seriesField替代"},{sourceKey:"stackField",targetKey:"seriesField",notice:"colorField是旧版API,即将废弃 请使用seriesField替代"}],tt=function(t){var e=Object(y.c)(t),n=e.columnSize,r=Q(e,["columnSize"]);return Object(y.f)(J,r),Object(m.isNil)(n)||(r.minColumnWidth=n,r.maxColumnWidth=n),r},te=Object(c.a)($.Column,"ColumnChart",tt),tn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},tr=Object(c.a)($.Column,"GroupedColumnChart",function(t){j()(!1," 在5.0后即将被废弃,请使用 替代");var e=Object(y.c)(t),n=e.columnSize,r=tn(e,["columnSize"]);return Object(m.isNil)(n)||(r.minColumnWidth=n,r.maxColumnWidth=n),Object(m.deepMix)(t,{isGroup:!0}),r}),ti=Object(c.a)($.Column,"StackedColumnChart",function(t){return j()(!1,"即将在5.0中废弃,请使用替代。"),Object(m.deepMix)(t,{isStack:!0}),tt(t)}),ta=Object(c.a)($.Column,"RangeColumnChart",function(t){return j()(!1," 即将在5.0后废弃,请使用替代。"),Object(m.deepMix)(t,{isRange:!0}),tt(t)}),to=Object(c.a)($.Column,"PercentStackedColumnChart",function(t){return j()(!1," 即将在5.0后废弃,请使用替代。"),Object(m.deepMix)(t,{isPercent:!0,isStack:!0}),tt(t)}),ts=n(233),tl=Object(c.a)(ts.Pie,"PieChart",y.c),tu=n(135),tc=Object(c.a)(tu.Heatmap,"DensityHeatmapChartChart",function(t){var e=Object(y.c)(t);return Object(y.f)([{sourceKey:"radius",targetKey:"sizeRatio",notice:"radius 请使用sizeRatio替代"}],e),Object(m.set)(e,"type","density"),e}),tf=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},td=Object(c.a)(tu.Heatmap,"HeatmapChart",function(t){var e=Object(y.c)(t),n=e.shapeType,r=tf(e,["shapeType"]);return n&&(r.heatmapStyle=n,Object(I.warn)(!1,"shapeType是g2plot@1.0的属性,即将废弃,请使用 `heatmapStyle` 替代")),!r.shape&&r.sizeField&&(r.shape="square"),r}),tp=n(635),th=n(14),tg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},tv=Object(c.a)(tp.WordCloud,"WordCloudChart",function(t){var e=t.maskImage,n=t.wordField,r=t.weightField,i=t.colorField,a=t.selected,s=t.shuffle,l=t.interactions,u=t.onGetG2Instance,c=t.tooltip,f=t.wordStyle,d=t.onWordCloudHover,p=t.onWordCloudClick,h=tg(t,["maskImage","wordField","weightField","colorField","selected","shuffle","interactions","onGetG2Instance","tooltip","wordStyle","onWordCloudHover","onWordCloudClick"]),g=f.active,v=tg(f,["active"]);return o()({colorField:void 0===i?"word":i,wordField:void 0===n?"word":n,weightField:void 0===r?"weight":r,imageMask:e,random:s,interactions:void 0===l?[{type:"element-active"}]:l,wordStyle:v,tooltip:(!c||!!c.visible)&&c,onGetG2Instance:function(t){if(u&&u(t),a>=0){var e=t.chart,n=Object(th.getTheme)();g&&o()(n.geometries.point["hollow-circle"].active.style,g),e.on("afterrender",function(){e.geometries.length&&e.geometries[0].elements.forEach(function(t,e){e===a&&t.setState("active",!0)})}),e.on("plot:mousemove",function(t){if(!t.data){d&&d(void 0,void 0,t.event);return}var e=t.data.data,n=e.datum,r=e.x,i=e.y,a=e.width,o=e.height;d&&d(n,{x:r,y:i,w:a,h:o},t.event)}),e.on("plot:click",function(t){if(!t.data){p&&p(void 0,void 0,t.event);return}var e=t.data.data,n=e.datum,r=e.x,i=e.y,a=e.width,o=e.height;p&&p(n,{x:r,y:i,w:a,h:o},t.event)})}}},h)}),ty=n(136),tm=[{sourceKey:"colorField",targetKey:"seriesField",notice:"colorField 是 g2@1.0的属性,即将废弃,请使用seriesField替代"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField 是 g2@1.0的属性,即将废弃,请使用xField替代"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField 是 g2@1.0的属性,即将废弃,请使用yFeild替代"}],tb=Object(c.a)(ty.Rose,"RoseChart",function(t){var e=Object(y.c)(t);return Object(y.f)(tm,e),!1===A()(e,"tooltip.visible")&&v()(e,"tooltip",!1),!1===A()(e,"label.visible")&&v()(e,"label",!1),"inner"===A()(e,"label.type")&&(e.label.offset=-15,delete e.label.type),"outer"===A()(e,"label.type")&&delete e.label.type,e}),tx=n(636),t_=Object(c.a)(tx.Funnel,"FunnelChart",function(t){var e=Object(y.c)(t);return Object(y.f)([{sourceKey:"transpose",targetKey:"isTransposed",notice:"transpose 即将废弃 请使用isTransposed替代"}],e),e}),tO=[{sourceKey:"stackField",targetKey:"seriesField",notice:"stackField 是 g2@1.0的属性,即将废弃,请使用seriesField替代"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField 是 g2@1.0的属性,即将废弃,请使用xField替代"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField 是 g2@1.0的属性,即将废弃,请使用yFeild替代"}],tP=Object(c.a)(ty.Rose,"StackedRoseChart",function(t){j()(!1," 即将在5.0后废弃,请使用替代,");var e=Object(y.c)(t);return Object(y.f)(tO,e),!1===A()(e,"tooltip.visible")&&v()(e,"tooltip",!1),!1===A()(e,"label.visible")&&v()(e,"label",!1),"inner"===A()(e,"label.type")&&(e.label.offset=-15,delete e.label.type),"outer"===A()(e,"label.type")&&delete e.label.type,o()(o()({},e),{isStack:!0})}),tM=[{sourceKey:"groupField",targetKey:"seriesField",notice:"groupField 是 g2@1.0的属性,即将废弃,请使用seriesField替代"},{sourceKey:"categoryField",targetKey:"xField",notice:"categoryField 是 g2@1.0的属性,即将废弃,请使用xField替代"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField 是 g2@1.0的属性,即将废弃,请使用yFeild替代"}],tA=Object(c.a)(ty.Rose,"GroupedRoseChart",function(t){j()(!1," 即将在5.0后废弃,请使用。");var e=Object(y.c)(t);return Object(y.f)(tM,e),"inner"===Object(m.get)(e,"label.type")&&(e.label.offset=-15,delete e.label.type),"outer"===Object(m.get)(e,"label.type")&&delete e.label.type,o()(o()({},e),{isGroup:!0})}),tS=n(37),tw=n.n(tS),tE=n(61),tC=n.n(tE),tT=n(637),tI=[{sourceKey:"angleField",targetKey:"xField",notice:"angleField 是 g2@1.0的属性,即将废弃,请使用xField替代"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField 是 g2@1.0的属性,即将废弃,请使用yFeild替代"},{sourceKey:"angleAxis",targetKey:"xAxis",notice:"angleAxis 是 g2@1.0的属性,即将废弃,请使用xAxis替代"},{sourceKey:"radiusAxis",targetKey:"yAxis",notice:"radiusAxis 是 g2@1.0的属性,即将废弃,请使用yAxis替代"}],tj=function(t){var e=A()(t,"line",{}),n=e.visible,r=e.size,i=e.style;v()(t,"lineStyle",o()(o()(o()({},i),{opacity:1,lineWidth:"number"==typeof r?r:2}),tw()(n)||n?{fillOpacity:1,strokeOpacity:1}:{fillOpacity:0,strokeOpacity:0}))},tF=Object(c.a)(tT.Radar,"RadarChart",function(t){Object(y.f)(tI,t);var e=Object(y.c)(t);return!1===A()(e,"area.visible")&&v()(e,"area",!1),!1===A()(e,"point.visible")&&v()(e,"point",!1),tj(e),(tC()(e.angleAxis)||tC()(e.radiusAxis))&&(e.angleAxis||(e.angleAxis={}),e.angleAxis.line=A()(e,"angleAxis.line",null),e.angleAxis.tickLine=A()(e,"angleAxis.tickLine",null)),!1===A()(e,"tooltip.visible")&&v()(e,"tooltip",!1),!1===A()(e,"label.visible")&&v()(e,"label",!1),"line"===A()(e,"yAxis.grid.line.type")&&Object(m.deepMix)(e,{xAxis:{line:null,tickLine:null}},e),e}),tL=n(638),tD=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},tk=Object(c.a)(tL.Liquid,"LiquidChart",function(t){var e=Object(y.c)(t),n=(e.range,e.min),r=e.max,i=e.value,a=tD(e,["range","min","max","value"]);if(!Object(m.isNil)(i)){a.percent=i/((void 0===r?1:r)-(void 0===n?0:n));var s=Object(m.get)(a,"statistic.content.formatter");null!==a.statistic&&!1!==a.statistic&&Object(m.deepMix)(a,{statistic:{content:{formatter:function(){return Object(m.isFunction)(s)&&s(i),i}}}})}Object(y.e)(a,"statistic"),Object(y.e)(a,"statistic.title"),Object(y.e)(a,"statistic.content");var l=a.percent;return o()({data:l},a)}),tR=n(639),tN=Object(c.a)(tR.Histogram,"HistogramChart"),tB=Object(c.a)(ts.Pie,"DonutChart",function(t){var e=Object(y.c)(t);return Object(y.e)(e,"statistic"),Object(y.e)(e,"statistic.title"),Object(y.e)(e,"statistic.content"),o()({innerRadius:.8},e)}),tG=n(640),tV=Object(c.a)(tG.Waterfall,"WaterfallChart"),tz=n(234),tW=Object(c.a)(tz.Scatter,"ScatterChart",function(t){var e=Object(y.c)(t);A()(e,"pointSize")&&v()(e,"size",A()(e,"pointSize")),Object(y.e)(e,"quadrant");var n=A()(e,"quadrant.label");if(!A()(e,"quadrant.labels")&&n){var r=n.text,i=n.style;if(r&&r.length&&i){var a=r.map(function(t){return{style:i,content:t}});v()(e,"quadrant.labels",a)}}if(!A()(e,"regressionLine")){var o=A()(e,"trendline");Object(m.isObject)(o)&&!1===A()(o,"visible")?v()(e,"regressionLine",null):v()(e,"regressionLine",o)}return e}),tY=Object(c.a)(tz.Scatter,"BubbleChart",function(t){var e=Object(y.c)(t);return tw()(A()(e,"pointSize"))||v()(e,"size",A()(e,"pointSize")),j()(!1,"BubbleChart 图表类型命名已变更为Scatter,请修改为"),e}),tH=n(641),tX=n(23),tU=n.n(tX),tq=Object(c.a)(tH.Bullet,"BulletChart",function(t){var e=Object(y.c)(t);return tw()(A()(t,"measureSize"))||(j()(!1,"measureSize已废弃,请使用size.measure替代"),v()(e,"size.measure",A()(t,"measureSize"))),tw()(A()(t,"rangeSize"))||(j()(!1,"rangeSize已废弃,请使用size.range替代"),v()(e,"size.range",A()(t,"rangeSize"))),tw()(A()(t,"markerSize"))||(j()(!1,"markerSizee已废弃,请使用size.target替代"),v()(e,"size.target",A()(t,"markerSize"))),tw()(A()(t,"measureColors"))||(j()(!1,"measureColors已废弃,请使用color.measure替代"),v()(e,"color.measure",A()(t,"measureColors"))),tw()(A()(t,"rangeColors"))||(j()(!1,"rangeColors已废弃,请使用color.range替代"),v()(e,"color.range",A()(t,"rangeColors"))),tw()(A()(t,"markerColors"))||(j()(!1,"markerColors已废弃,请使用color.target替代"),v()(e,"color.target",A()(t,"markerColors"))),tw()(A()(t,"markerStyle"))||(j()(!1,"markerStyle已废弃,请使用bulletStyle.target替代"),v()(e,"bulletStyle.target",A()(t,"markerStyle"))),tw()(A()(t,"xAxis.line"))&&v()(e,"xAxis.line",!1),tw()(A()(t,"yAxis"))&&v()(e,"yAxis",!1),tw()(A()(t,"measureField"))&&v()(e,"measureField","measures"),tw()(A()(t,"rangeField"))&&v()(e,"rangeField","ranges"),tw()(A()(t,"targetField"))&&v()(e,"targetField","target"),j()(!tw()(A()(t,"rangeMax")),"该属性已废弃,请在数据中配置range,并配置rangeField"),tU()(A()(t,"data"))&&v()(e,"data",t.data.map(function(e){var n={};return(tw()(A()(t,"rangeMax"))||(n={ranges:[A()(t,"rangeMax")]}),tU()(e.targets))?o()(o()(o()({},n),{target:e.targets[0]}),e):o()(o()({},n),e)})),e});n(642).G2.registerShape("polygon","boundary-polygon",{draw:function(t,e){var n=e.addGroup(),r={stroke:"#fff",lineWidth:1,fill:t.color,paht:[]},i=t.points,a=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],["L",i[2].x,i[2].y],["L",i[3].x,i[3].y],["Z"]];if(r.path=this.parsePath(a),n.addShape("path",{attrs:r}),Object(m.get)(t,"data.lastWeek")){var o=[["M",i[2].x,i[2].y],["L",i[3].x,i[3].y]];n.addShape("path",{attrs:{path:this.parsePath(o),lineWidth:4,stroke:"#404040"}}),Object(m.get)(t,"data.lastDay")&&n.addShape("path",{attrs:{path:this.parsePath([["M",i[1].x,i[1].y],["L",i[2].x,i[2].y]]),lineWidth:4,stroke:"#404040"}})}return n}});var tZ=[{sourceKey:"colors",targetKey:"color",notice:"colors 是 g2Plot@1.0 的属性,请使用 color 属性替代"},{sourceKey:"valueField",targetKey:"colorField",notice:"valueField 是 g2@1.0的属性,即将废弃,请使用colorField替代"},{sourceKey:"radiusField",targetKey:"yField",notice:"radiusField 是 g2@1.0的属性,即将废弃,请使用yFeild替代"}],tK=Object(c.a)(tu.Heatmap,"CalendarChart",function(t){var e=Object(y.c)(t);return Object(y.f)(tZ,e),Object(m.isNil)(Object(m.get)(t,"shape"))&&Object(m.set)(e,"shape","boundary-polygon"),Object(m.isNil)(Object(m.get)(e,"xField"))&&Object(m.isNil)(Object(m.get)(e,"yField"))&&(Object(m.set)(e,"xField","week"),Object(m.set)(e,"meta.week",o()({type:"cat"},Object(m.get)(e,"meta.week",{}))),Object(m.set)(e,"yField","day"),Object(m.set)(e,"meta.day",{type:"cat",values:["Sun.","Mon.","Tues.","Wed.","Thur.","Fri.","Sat."]}),Object(m.set)(e,"reflect","y"),Object(m.set)(e,"xAxis",o()({tickLine:null,line:null,title:null,label:{offset:20,style:{fontSize:12,fill:"#bbb",textBaseline:"top"},formatter:function(t){return"2"==t?"MAY":"6"===t?"JUN":"10"==t?"JUL":"14"===t?"AUG":"18"==t?"SEP":"24"===t?"OCT":""}}},Object(m.get)(e,"xAxis",{})))),e}),t$=n(643),tQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},tJ=Object(c.a)(t$.Gauge,"GaugeChart",function(t){var e=Object(y.c)(t),n=e.range,r=e.min,i=void 0===r?0:r,a=e.max,s=void 0===a?1:a,l=e.value,u=tQ(e,["range","min","max","value"]);Object(m.isArray)(n)?(j()(!1,"range 应当是个对象,请修改配置。"),u.range={ticks:n.map(function(t){return(t-i)/(s-i)}),color:Object(th.getTheme)().colors10}):u.range=n||{};var c=Object(m.get)(u,"color");if(Object(m.isNil)(c)||(j()(!1,"请通过配置属性range.color来配置颜色"),u.range.color=c),Object(m.isNil)(Object(m.get)(u,"indicator"))&&Object(m.set)(u,"indicator",{pointer:{style:{stroke:"#D0D0D0"}},pin:{style:{stroke:"#D0D0D0"}}}),Object(m.get)(u,"statistic.visible")&&Object(m.set)(u,"statistic.title",Object(m.get)(u,"statistic")),!Object(m.isNil)(i)&&!Object(m.isNil)(s)&&!Object(m.isNil)(l)){u.percent=(l-i)/(s-i);var f=Object(m.get)(u,"axis.label.formatter");Object(m.set)(u,"axis",{label:{formatter:function(t){var e=t*(s-i)+i;return Object(m.isFunction)(f)?f(e):e}}})}j()(!(Object(m.get)(u,"min")||Object(m.get)(u,"max")),"属性 `max` 和 `min` 不推荐使用, 请直接配置属性range.ticks"),j()((Object(m.get)(u,"rangeSize")||Object(m.get)(u,"rangeStyle"),!1),"不再支持rangeSize、rangeStyle、rangeBackgroundStyle属性, 请查看新版仪表盘配置文档。");var d=Object(m.isNil)(u.percent)?l:u.percent;return o()({data:d},u)}),t0=n(644),t1=Object(c.a)(t0.DualAxes,"DualAxesChart"),t2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},t3=o()(o()({},i),r),t5=function(t){var e=t.chartName,n=(t.adapter||function(e){return{plotType:t.plotType||"Line",options:e}})(t2(t,["chartName","adapter"]))||{},r=n.plotType,i=n.options,a=t3[r];return(a.displayName=e,a)?l.a.createElement(a,o()({},i)):l.a.createElement("div",{style:{color:"#aaa"}},"不存在plotName=:","".concat(r),"的Plot组件")};t5.registerPlot=function(t,e){j()(!t3[t],"%s的plot已存在",t),t3[t]=e};var t4=t5},function(t,e,n){"use strict";n.r(e),n.d(e,"Canvas",function(){return T}),n.d(e,"Group",function(){return X}),n.d(e,"Circle",function(){return tt}),n.d(e,"Ellipse",function(){return tn}),n.d(e,"Image",function(){return ti}),n.d(e,"Line",function(){return to}),n.d(e,"Marker",function(){return tl}),n.d(e,"Path",function(){return tc}),n.d(e,"Polygon",function(){return td}),n.d(e,"Polyline",function(){return th}),n.d(e,"Rect",function(){return tv}),n.d(e,"Text",function(){return tm}),n.d(e,"render",function(){return tb});var r=n(621),i=n.n(r),a=n(3),o=n.n(a),s=n(29),l={},u=i()({getRootHostContext:function(){},getChildHostContext:function(){},createInstance:function(){},finalizeInitialChildren:function(){return!1},hideTextInstance:function(){},getPublicInstance:function(t){return t},hideInstance:function(){},unhideInstance:function(){},createTextInstance:function(){},prepareUpdate:function(){return l},shouldDeprioritizeSubtree:function(){return!1},appendInitialChild:function(){},appendChildToContainer:function(){},removeChildFromContainer:function(){},prepareForCommit:function(){},resetAfterCommit:function(){},shouldSetTextContent:function(){return!1},supportsMutation:!0,appendChild:function(){}}),c=n(12),f=n.n(c),d=n(13),p=n.n(d),h=n(5),g=n.n(h),v=n(4),y=n.n(v),m=n(9),b=n.n(m),x=n(10),_=n.n(x),O=n(205),P=n(324),M=n(132),A=n(67),S=o.a.createContext(null);S.displayName="CanvasContext";var w=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},E=function(){function t(){b()(this,t)}return _()(t,[{key:"createInstance",value:function(t){t.children;var e=t.renderer,n=w(t,["children","renderer"]);"svg"===e?this.instance=new P.Canvas(y()({},n)):this.instance=new O.Canvas(y()({},n))}},{key:"update",value:function(t){this.instance||this.createInstance(t)}},{key:"draw",value:function(){this.instance&&this.instance.draw()}},{key:"destory",value:function(){this.instance&&(this.instance.remove(),this.instance=null)}}]),t}(),C=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new E,e}return _()(r,[{key:"componentDidMount",value:function(){this.helper.draw()}},{key:"componentWillUnmount",value:function(){this.helper.destory()}},{key:"getInstance",value:function(){return this.helper.instance}},{key:"render",value:function(){return this.helper.update(this.props),o.a.createElement(A.b,y()({},this.props.ErrorBoundaryProps),o.a.createElement(S.Provider,{value:this.helper},o.a.createElement(s.a.Provider,{value:this.helper.instance},o.a.createElement(o.a.Fragment,null,this.props.children))))}}]),r}(o.a.Component),T=Object(M.a)(C),I=n(45),j=n.n(I),F=n(77),L=n.n(F),D=n(28),k=n.n(D),R=n(228),N=n.n(R),B=n(23),G=n.n(B),V=n(93),z=n.n(V),W={onClick:"click",onMousedown:"mousedown",onMouseup:"mouseup",onDblclick:"dblclick",onMouseout:"mouseout",onMouseover:"mouseover",onMousemove:"mousemove",onMouseleave:"mouseleave",onMouseenter:"mouseenter",onTouchstart:"touchstart",onTouchmove:"touchmove",onTouchend:"touchend",onDragenter:"dragenter",onDragover:"dragover",onDragleave:"dragleave",onDrop:"drop",onContextmenu:"contextmenu"},Y=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},H=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){b()(this,r),(e=n.call(this,t)).state={isReady:!1},e.handleRender=N()(function(){if(e.instance)e.forceUpdate();else{var t=e.props,n=t.group,r=t.zIndex,i=t.name;e.instance=n.chart.canvas.addGroup({zIndex:r,name:i}),n.chart.canvas.sort(),e.setState({isReady:!0})}},300),e.configGroup=function(t){var n,r=t.rotate,i=t.animate,a=t.rotateAtPoint,o=t.scale,s=t.translate,l=t.move;if(r&&e.instance.rotate(r),G()(a)&&(n=e.instance).rotateAtPoint.apply(n,j()(a)),o&&e.instance.rotate(o),s&&e.instance.translate(s[0],s[1]),l&&e.instance.move(l.x,l.y),i){var u=i.toAttrs,c=Y(i,["toAttrs"]);e.instance.animate(u,c)}},e.bindEvents=function(){e.instance.off(),L()(W,function(t,n){k()(e.props[n])&&e.instance.on(t,e.props[n])})};var e,i=t.group,a=t.zIndex,o=t.name;return e.id=z()("group"),i.isChartCanvas?i.chart.on("afterrender",e.handleRender):(e.instance=i.addGroup({zIndex:a,name:o}),e.configGroup(t)),e}return _()(r,[{key:"componentWillUnmount",value:function(){var t=this.props.group;t.isChartCanvas&&t.chart.off("afterrender",this.handleRender),this.instance&&this.instance.remove(!0)}},{key:"getInstance",value:function(){return this.instance}},{key:"render",value:function(){var t=this.props.group;return this.instance&&(this.instance.clear(),this.bindEvents()),t.isChartCanvas&&this.state.isReady||!t.isChartCanvas?o.a.createElement(s.a.Provider,{value:this.instance},o.a.createElement(o.a.Fragment,{key:z()(this.id)},this.props.children)):o.a.createElement(o.a.Fragment,null)}}]),r}(o.a.Component);H.defaultProps={zIndex:3};var X=Object(s.b)(H),U=n(78),q=n(94),Z=n(75),K=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},$=function(){function t(e){b()(this,t),this.shape=e}return _()(t,[{key:"createInstance",value:function(t){this.instance=t.group.addShape(this.shape,Object(U.a)(t,["group","ctx"]))}},{key:"destroy",value:function(){this.instance&&(this.instance.remove(!0),this.instance=null)}},{key:"update",value:function(t){var e=this,n=Object(U.a)(t,j()(q.a));this.destroy(),this.createInstance(n);var r=n.attrs,i=n.animate,a=n.isClipShape,o=n.visible,s=n.matrix,l=K(n,["attrs","animate","isClipShape","visible","matrix"]);if(this.instance.attr(r),i){var u=i.toAttrs,c=K(i,["toAttrs"]);this.instance.animate(u,c)}a&&this.instance.isClipShape(),!1===o&&this.instance.hide(),s&&this.instance.setMatrix(s),L()(W,function(t,n){k()(l[n])&&e.instance.on(t,l[n])}),this.config=Object(Z.a)(n)}}]),t}(),Q=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(){return b()(this,r),n.apply(this,arguments)}return _()(r,[{key:"componentWillUnmount",value:function(){this.helper.destroy()}},{key:"getInstance",value:function(){return this.helper.instance}},{key:"render",value:function(){return this.helper.update(this.props),null}}]),r}(o.a.Component),J=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("circle"),e}return _()(r)}(Q),tt=Object(s.b)(J),te=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("ellipse"),e}return _()(r)}(Q),tn=Object(s.b)(te),tr=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("image"),e}return _()(r)}(Q),ti=Object(s.b)(tr),ta=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("line"),e}return _()(r)}(Q),to=Object(s.b)(ta),ts=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("marker"),e}return _()(r)}(Q),tl=Object(s.b)(ts),tu=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("path"),e}return _()(r)}(Q),tc=Object(s.b)(tu),tf=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("polygon"),e}return _()(r)}(Q),td=Object(s.b)(tf),tp=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("polyline"),e}return _()(r)}(Q),th=Object(s.b)(tp),tg=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("rect"),e}return _()(r)}(Q),tv=Object(s.b)(tg),ty=function(t){f()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=g()(r);if(e){var i=g()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p()(this,t)});function r(t){var e;return b()(this,r),(e=n.call(this,t)).helper=new $("text"),e}return _()(r)}(Q),tm=Object(s.b)(ty),tb=function(t,e){e.clear&&e.clear();var n=u.createContainer(e,0,!1);return u.updateContainer(o.a.createElement(s.a.Provider,{value:e},o.a.createElement(o.a.Fragment,null,t)),n,null,function(){}),u.getPublicRootInstance(n)}},function(t,e,n){"use strict";n.r(e),n.d(e,"Base",function(){return r.a}),n.d(e,"Arc",function(){return i.a}),n.d(e,"DataMarker",function(){return a.a}),n.d(e,"DataRegion",function(){return o.a}),n.d(e,"RegionFilter",function(){return y}),n.d(e,"Html",function(){return m}),n.d(e,"ReactElement",function(){return b}),n.d(e,"Image",function(){return x.a}),n.d(e,"Line",function(){return _.a}),n.d(e,"Region",function(){return O.a}),n.d(e,"Text",function(){return P.a});var r=n(35),i=n(207),a=n(208),o=n(209),s=n(10),l=n.n(s),u=n(9),c=n.n(u),f=n(12),d=n.n(f),p=n(13),h=n.n(p),g=n(5),v=n.n(g),y=function(t){d()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=v()(r);if(e){var i=v()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return h()(this,t)});function r(){var t;return c()(this,r),t=n.apply(this,arguments),t.annotationType="regionFilter",t}return l()(r)}(r.a),m=function(t){d()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=v()(r);if(e){var i=v()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return h()(this,t)});function r(){var t;return c()(this,r),t=n.apply(this,arguments),t.annotationType="html",t}return l()(r)}(r.a),b=function(t){d()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=v()(r);if(e){var i=v()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return h()(this,t)});function r(){var t;return c()(this,r),t=n.apply(this,arguments),t.annotationType="ReactElement",t}return l()(r)}(r.a),x=n(210),_=n(211),O=n(212),P=n(213)},function(t,e,n){"use strict";n.d(e,"a",function(){return J});var r=n(4),i=n.n(r),a=n(3),o=n.n(a),s=n(28),l=n.n(s),u=n(204),c=n.n(u),f=n(93),d=n.n(f),p=n(23),h=n.n(p),g=n(50),v=n.n(g),y=n(8),m=n(40),b=n(9),x=n.n(b),_=n(10),O=n.n(_),P=n(12),M=n.n(P),A=n(13),S=n.n(A),w=n(5),E=n.n(w),C=n(221),T=n.n(C),I=n(18),j=n.n(I),F=n(625),L=n.n(F),D=n(47),k=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},R="g2-tooltip",N=function(t){M()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=E()(r);if(e){var i=E()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return S()(this,t)});function r(){var t;return x()(this,r),t=n.apply(this,arguments),t.renderInnder=function(e){var n=e.data,r=n.title,i=n.items,a=n.x,o=n.y;T.a.render(t.props.children(r,i,a,o,e),t.getElement())},t}return O()(r,[{key:"componentWillUnmount",value:function(){var t=this.props.chartView;this.element&&this.element.remove(),t.getController("tooltip").clear(),t.off("tooltip:change",this.renderInnder)}},{key:"getElement",value:function(){return this.element||(this.element=document.createElement("div"),this.element.classList.add("bizcharts-tooltip"),this.element.classList.add("g2-tooltip"),this.element.style.width="auto",this.element.style.height="auto"),this.element}},{key:"overwriteCfg",value:function(){var t=this,e=this.props,n=e.chartView,r=(e.children,e.domStyles),a=void 0===r?{}:r,o=k(e,["chartView","children","domStyles"]);n.tooltip(i()(i()({inPlot:!1,domStyles:a},o),{customContent:function(){return t.getElement()}})),n.on("tooltip:change",this.renderInnder);var s=j()(Object(y.getTheme)(),["components","tooltip","domStyles",R],{});L()(this.element,i()(i()({},s),a[R]))}},{key:"render",value:function(){return this.overwriteCfg(),null}}]),r}(o.a.Component),B=Object(D.b)(N),G=n(166),V=n(345),z=n.n(V),W=n(346),Y=n.n(W),H=n(127),X=n.n(H),U=n(347),q=n.n(U);Object(y.registerAction)("tooltip",X.a),Object(y.registerAction)("sibling-tooltip",Y.a),Object(y.registerAction)("active-region",z.a),Object(y.registerAction)("ellipsis-text",q.a),Object(y.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Object(y.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Object(y.registerInteraction)("tooltip-click",{start:[{trigger:"plot:click",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchstart",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:leave",action:"tooltip:hide"}]});var Z=function(t){t.view.isTooltipLocked()?t.view.unlockTooltip():t.view.lockTooltip()};Object(y.registerInteraction)("tooltip-lock",{start:[{trigger:"plot:click",action:Z},{trigger:"plot:touchstart",action:Z},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:mousemove",action:"tooltip:show"}],end:[{trigger:"plot:click",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Object(y.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});var K=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};Object(y.registerComponentController)("tooltip",c.a);var $=function(t){var e=t.visible,n=t.children;return(void 0===e||e)&&l()(n)},Q=function(t){var e=t.visible,n=(t.children,K(t,["visible","children"])),r=Object(m.a)();return r.getController("tooltip").clear(),!0===(void 0===e||e)?r.tooltip(i()({customContent:null,showMarkers:!1},n)):r.tooltip(!1),null};function J(t){var e=t.children,n=t.triggerOn,r=t.onShow,s=t.onChange,u=t.onHide,c=t.lock,f=t.linkage,p=K(t,["children","triggerOn","onShow","onChange","onHide","lock","linkage"]),g=Object(m.a)();g.removeInteraction("tooltip"),g.removeInteraction("tooltip-click"),g.removeInteraction("tooltip-lock"),"click"===n?g.interaction("tooltip-click"):c?g.interaction("tooltip-lock"):g.interaction("tooltip");var y=Object(a.useRef)(d()("tooltip"));Object(a.useEffect)(function(){h()(f)?Object(G.b)(f[0],y.current,g,p.shared,f[1]):v()(f)&&Object(G.b)(f,y.current,g,p.shared)},[f,g]);var b=Object(a.useCallback)(function(t){l()(r)&&r(t,g)},[]),x=Object(a.useCallback)(function(t){l()(s)&&s(t,g)},[]),_=Object(a.useCallback)(function(t){l()(u)&&u(t,g)},[]);return g.off("tooltip:show",b),g.on("tooltip:show",b),g.off("tooltip:change",x),g.on("tooltip:change",x),g.off("tooltip:hide",_),g.on("tooltip:hide",_),$(t)?o.a.createElement(B,i()({},p),e):o.a.createElement(Q,i()({},t))}J.defaultProps={showMarkers:!1,triggerOn:"hover"}},function(t,e,n){"use strict";var r=n(4),i=n.n(r),a=n(9),o=n.n(a),s=n(10),l=n.n(s),u=n(12),c=n.n(u),f=n(13),d=n.n(f),p=n(5),h=n.n(p),g=n(3),v=n.n(g),y=n(228),m=n.n(y),b=n(160),x=n(231),_=n(67),O=n(132),P=n(76),M=n(47),A=n(29),S=n(45),w=n.n(S),E=n(93),C=n.n(E),T=n(55),I=n.n(T),j=n(28),F=n.n(j),L=n(23),D=n.n(L),k=n(624),R=n.n(k),N=n(8),B=n(17),G=n.n(B),V=n(82),z=n(78),W=n(75),Y=n(94),H=n(21),X=n(126),U=n.n(X),q=n(137),Z=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},K=function(t){c()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=h()(r);if(e){var i=h()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return d()(this,t)});function r(){var t;return o()(this,r),t=n.apply(this,arguments),t.config={},t}return l()(r,[{key:"createInstance",value:function(t){this.chart=new N.Chart(i()({},t)),this.key=C()("bx-chart"),this.chart.emit("initialed"),this.isNewInstance=!0,this.extendGroup={isChartCanvas:!0,chart:this.chart}}},{key:"render",value:function(){if(this.chart)try{this.isNewInstance?(this.chart.render(),this.onGetG2Instance(),this.chart.unbindAutoFit(),this.isNewInstance=!1):this.chart.forceReRender?this.chart.render():this.chart.render(!0),this.chart.emit("processElemens")}catch(t){this.emit("renderError",t),this.destory(),console&&console.error(null==t?void 0:t.stack)}}},{key:"onGetG2Instance",value:function(){F()(this.config.onGetG2Instance)&&this.config.onGetG2Instance(this.chart)}},{key:"shouldReCreateInstance",value:function(t){if(!this.chart||t.forceUpdate)return!0;var e=this.config,n=e.data,r=Z(e,["data"]),i=t.data,a=Z(t,["data"]);if(D()(this.config.data)&&0===n.length&&D()(i)&&0!==i.length)return!0;var o=[].concat(w()(Y.a),["scale","width","height","container","_container","_interactions","placeholder",/^on/,/^\_on/]);return!R()(Object(z.a)(r,w()(o)),Object(z.a)(a,w()(o)))}},{key:"update",value:function(t){var e=this,n=Object(W.a)(this.adapterOptions(t));this.shouldReCreateInstance(n)&&(this.destory(),this.createInstance(n)),n.pure&&(this.chart.axis(!1),this.chart.tooltip(!1),this.chart.legend(!1),this.chart.isPure=!0);var r=Object(q.a)(this.config),i=Object(q.a)(n),a=n.data,o=n.interactions,s=Z(n,["data","interactions"]),l=this.config,u=l.data,c=l.interactions;if(this.isNewInstance||r.forEach(function(t){e.chart.off(t[1],e.config["_".concat(t[0])])}),i.forEach(function(t){n["_".concat(t[0])]=function(r){n[t[0]](r,e.chart)},e.chart.on(t[1],n["_".concat(t[0])])}),D()(u)&&u.length){var f=!0;if(n.notCompareData&&(f=!1),u.length!==a.length?f=!1:u.forEach(function(t,e){Object(V.a)(t,a[e])||(f=!1)}),!f){this.chart.isDataChanged=!0,this.chart.emit(H.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA),this.chart.data(a);for(var d=this.chart.views,p=0,h=d.length;p=0&&e!==this.chartHelper.chart.width||n>=0&&n!==this.chartHelper.chart.height){var r=e||this.chartHelper.chart.width,i=n||this.chartHelper.chart.height;this.chartHelper.chart.changeSize(r,i),this.chartHelper.chart.emit("resize")}else this.chartHelper.render()}else this.chartHelper.render()}},{key:"componentWillUnmount",value:function(){this.chartHelper.destory(),this.resizeObserver.unobserve(this.props.container)}},{key:"getG2Instance",value:function(){return this.chartHelper.chart}},{key:"render",value:function(){var t=this,e=this.props,n=e.placeholder,r=e.data,a=e.errorContent,o=this.props.ErrorBoundaryProps;if((void 0===r||0===r.length)&&n){this.chartHelper.destory();var s=!0===n?v.a.createElement("div",{style:{position:"relative",top:"48%",color:"#aaa",textAlign:"center"}},"暂无数据"):n;return v.a.createElement(_.b,i()({},o),s)}return this.chartHelper.update(this.props),o=a?i()({fallback:a},o):{FallbackComponent:_.a},v.a.createElement(_.b,i()({},o,{key:this.chartHelper.key,onError:function(){var e;t.isError=!0,Object($.isFunction)(o.onError)&&(e=o).onError.apply(e,arguments)},onReset:function(){var e;t.isError=!1,Object($.isFunction)(o.onReset)&&(e=o).onReset.apply(e,arguments)},resetKeys:[this.chartHelper.key],fallback:a}),v.a.createElement(P.a.Provider,{value:this.chartHelper},v.a.createElement(M.a.Provider,{value:this.chartHelper.chart},v.a.createElement(A.a.Provider,{value:this.chartHelper.extendGroup},this.props.children))))}}]),r}(v.a.Component);Q.defaultProps={placeholder:!1,visible:!0,interactions:[],filter:[]},e.a=Object(O.a)(Q)},function(t,e,n){"use strict";var r=n(9),i=n.n(r),a=n(10),o=n.n(a),s=n(12),l=n.n(s),u=n(13),c=n.n(u),f=n(5),d=n.n(f),p=n(3),h=n.n(p),g=n(76),v=n(47),y=n(4),m=n.n(y),b=n(23),x=n.n(b),_=n(168),O=n.n(_),P=n(55),M=n.n(P),A=n(17),S=n.n(A),w=n(82),E=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},C=function(){function t(e){i()(this,t),this.config={},this.isRootView=!1,this.chart=e}return o()(t,[{key:"creatViewInstance",value:function(t){this.view=this.chart.createView(this.processOptions(t)),this.view.rootChart=this.chart}},{key:"getView",value:function(){return this.view}},{key:"update",value:function(t){var e=this,n=this.config.data,r=t.scale,i=t.animate,a=t.filter,o=t.visible,s=t.data,l=void 0===s?[]:s;if(l.rows&&(S()(!l.rows,"bizcharts@4不支持 dataset数据格式,请使用data={dv.rows}"),l=l.rows),(!this.view||x()(n)&&0===n.length)&&(this.destroy(),this.creatViewInstance(t)),x()(n)){this.view.changeData(l);var u=!0;n.length!==l.length?u=!1:n.forEach(function(t,e){Object(w.a)(t,l[e])||(u=!1)}),u||this.view.changeData(l)}else this.view.data(l);this.view.scale(r),this.view.animate(i),M()(this.config.filter,function(t,n){x()(t)?e.view.filter(t[0],null):e.view.filter(n,null)}),M()(a,function(t,n){x()(t)?e.view.filter(t[0],t[1]):e.view.filter(n,t)}),o?this.view.show():this.view.hide(),this.config=m()(m()({},t),{data:l})}},{key:"destroy",value:function(){this.view&&(this.view.destroy(),this.view=null),this.config={}}},{key:"processOptions",value:function(t){var e=t.region,n=t.start,r=t.end,i=E(t,["region","start","end"]);S()(!n,"start 属性将在5.0后废弃,请使用 region={{ start: {x:0,y:0}}} 替代"),S()(!r,"end 属性将在5.0后废弃,请使用 region={{ end: {x:0,y:0}}} 替代");var a=O()({start:{x:0,y:0},end:{x:1,y:1}},{start:n,end:r},e);return m()(m()({},i),{region:a})}}]),t}(),T=function(t){l()(r,t);var e,n=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=d()(r);if(e){var i=d()(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return c()(this,t)});function r(){var t;return i()(this,r),t=n.apply(this,arguments),t.name="view",t}return o()(r,[{key:"componentWillUnmount",value:function(){this.viewHelper.destroy(),this.viewHelper=null}},{key:"render",value:function(){return this.viewHelper||(this.viewHelper=new C(this.context.chart)),this.viewHelper.update(this.props),h.a.createElement(v.a.Provider,{value:this.viewHelper.view},h.a.createElement(h.a.Fragment,null,this.props.children))}}]),r}(h.a.Component);T.defaultProps={visible:!0,preInteractions:[],filter:[]},T.contextType=g.a,e.a=T},function(t,e,n){"use strict";n.d(e,"a",function(){return _});var r=n(3),i=n(343),a=n.n(i),o=n(28),s=n.n(o),l=n(8),u=n(40),c=n(227),f=n.n(c),d=n(358),p=n.n(d),h=n(360),g=n.n(h),v=n(362),y=n.n(v),m=n(359),b=n.n(m);Object(l.registerAction)("list-active",p.a),Object(l.registerAction)("list-selected",b.a),Object(l.registerAction)("list-highlight",f.a),Object(l.registerAction)("list-unchecked",g.a),Object(l.registerAction)("data-filter",y.a),Object(l.registerAction)("legend-item-highlight",f.a,{componentNames:["legend"]}),Object(l.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Object(l.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Object(l.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:"list-unchecked:toggle"},{trigger:"legend-item:click",action:"data-filter:filter"}]});var x=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function _(t){var e=t.name,n=t.visible,i=void 0===n||n,a=(t.onChange,t.filter),o=x(t,["name","visible","onChange","filter"]),l=Object(u.a)();return void 0===e?i?l.legend(o):l.legend(!1):i?l.legend(e,o):l.legend(e,!1),s()(a)&&e&&l.filter(e,a),Object(r.useEffect)(function(){l.on("legend:valuechanged",function(e){s()(t.onChange)&&t.onChange(e,l)}),l.on("legend-item:click",function(e){if(s()(t.onChange)){var n=e.target.get("delegateObject").item;e.item=n,t.onChange(e,l)}})},[]),null}Object(l.registerComponentController)("legend",a.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n(342),i=n.n(r),a=n(40),o=n(626),s=n.n(o),l=function(t,e){var n=s()(t);return e.forEach(function(t){!0===n[t]?n[t]={}:!1===n[t]&&(n[t]=null)}),n},u=n(8),c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};Object(u.registerComponentController)("axis",i.a);var f=function(t){return void 0===t};function d(t){var e=t.name,n=t.visible,r=c(t,["name","visible"]),i=Object(a.a)(),o=l(r,["title","line","tickLine","subTickLine","label","grid"]);return void 0===n||n?f(e)?i.axis(!0):i.axis(e,o):f(e)?i.axis(!1):i.axis(e,!1),null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(96),a=n(0),o=n(742),s=n(202),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.__assign(r.__assign({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");s.clearDom(t);var n=a.isFunction(e)?e(t):e;if(a.isElement(n))t.appendChild(n);else if(a.isString(n)||a.isNumber(n)){var r=i.createDom(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,a=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),l=this.get("offsetY"),u=i.getOuterWidth(t),c=i.getOuterHeight(t),f={x:n,y:r};"middle"===a?f.x-=Math.round(u/2):"right"===a&&(f.x-=Math.round(u)),"middle"===o?f.y-=Math.round(c/2):"bottom"===o&&(f.y-=Math.round(c)),s&&(f.x+=s),l&&(f.y+=l),i.modifyCSS(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var r=n(1),i=n(184);e.Shape=i,r.__exportStar(n(26),e);var a=n(928);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return a.default}});var o=n(262);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return o.default}}),e.version="0.5.6"},function(t,e,n){"use strict";var r,i,a,o=n(2)(n(6));a=function(t,e){var n=e&&"object"===(0,o.default)(e)&&"default"in e?e:{default:e},r={error:null},i=function(t){function e(){for(var e,n=arguments.length,i=Array(n),a=0;a2&&void 0!==arguments[2]?arguments[2]:[],i=t;return r&&r.length&&(i=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return v()(n)?e=n:h()(n)?e=function(t,e){for(var r=0;re[i])return 1}return 0}:m()(n)&&(e=function(t,e){return t[n]e[n]?1:0}),t.sort(e)}(t,r)),v()(e)?n=e:h()(e)?n=function(t){return"_".concat(e.map(function(e){return t[e]}).join("-"))}:m()(e)&&(n=function(t){return"_".concat(t[e])}),x()(i,n)},O=function(t,e,n,r){var i=[],a=r?_(t,r):{_data:t};return u()(a,function(t){var r=Object(c.a)(t.map(function(t){return t[e]}));d()(0!==r,"Invalid data: total sum of field ".concat(e," is 0!")),u()(t,function(t){var a=o()({},t);0===r?a[n]=0:a[n]=t[e]/r,i.push(a)})}),i},P=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return t>=1e8?"".concat((t/1e8).toFixed(e).replace(/\.?0*$/,""),"亿"):t>=1e4?"".concat((t/1e4).toFixed(e).replace(/\.?0*$/,""),"万"):t.toFixed(e).replace(/\.?0*$/,"")},M=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return"number"==typeof t?t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,e):t},A=n(165),S=n(75),w=n(82)},function(t,e,n){t.exports=n(647)},function(t,e,n){"use strict";n.r(e),n.d(e,"Util",function(){return H});var r=n(4),i=n.n(r),a=n(0),o=n(612);n.d(e,"Annotation",function(){return o});var s=n(323);n.d(e,"G2",function(){return s});var l=n(611);n.d(e,"GComponents",function(){return l});var u=n(645),c=n(614);n.d(e,"Chart",function(){return c.a});var f=n(615);n.d(e,"View",function(){return f.a});var d=n(613);n.d(e,"Tooltip",function(){return d.a});var p=n(616);n.d(e,"Legend",function(){return p.a});var h=n(215);n.d(e,"Coordinate",function(){return h.a});var g=n(617);n.d(e,"Axis",function(){return g.a});var v=n(489);n.d(e,"Facet",function(){return v.a});var y=n(490);n.d(e,"Slider",function(){return y.a});var m=n(128);n.d(e,"Area",function(){return m.a});var b=n(216);n.d(e,"Edge",function(){return b.a});var x=n(217);n.d(e,"Heatmap",function(){return x.a});var _=n(218);n.d(e,"Interval",function(){return _.a});var O=n(129);n.d(e,"Line",function(){return O.a});var P=n(130);n.d(e,"Point",function(){return P.a});var M=n(219);n.d(e,"Polygon",function(){return M.a});var A=n(492);n.d(e,"Schema",function(){return A.a});var S=n(39);n.d(e,"BaseGeom",function(){return S.a});var w=n(290);n.d(e,"Label",function(){return w.a});var E=n(493);n.d(e,"Path",function(){return E.a});var C=n(220);n.d(e,"LineAdvance",function(){return C.a});var T=n(494);n.d(e,"Geom",function(){return T.a});var I=n(495);n.d(e,"Coord",function(){return I.a});var j=n(496);n.d(e,"Guide",function(){return j.a});var F=n(497);n.d(e,"Effects",function(){return F.a});var L=n(498);n.d(e,"Interaction",function(){return L.a});var D=n(11);n.d(e,"createPlot",function(){return D.a});var k=n(166);n.d(e,"createTooltipConnector",function(){return k.a});var R=n(40);n.d(e,"useView",function(){return R.a});var N=n(81);n.d(e,"useRootChart",function(){return N.a}),n.d(e,"useChartInstance",function(){return N.a});var B=n(504);n.d(e,"useTheme",function(){return B.a});var G=n(47);n.d(e,"withView",function(){return G.b});var V=n(76);n.d(e,"withChartInstance",function(){return V.b});var z=n(8);for(var W in z)0>["default","Util","Annotation","G2","GComponents","Chart","View","Tooltip","Legend","Coordinate","Axis","Facet","Slider","Area","Edge","Heatmap","Interval","Line","Point","Polygon","Schema","BaseGeom","Label","Path","LineAdvance","Geom","Coord","Guide","Effects","Interaction","createPlot","createTooltipConnector","useView","useRootChart","useChartInstance","useTheme","withView","withChartInstance"].indexOf(W)&&function(t){n.d(e,t,function(){return z[t]})}(W);var Y=n(610);n.d(e,"ProgressChart",function(){return Y.x}),n.d(e,"RingProgressChart",function(){return Y.B}),n.d(e,"TinyColumnChart",function(){return Y.K}),n.d(e,"TinyAreaChart",function(){return Y.J}),n.d(e,"TinyLineChart",function(){return Y.L}),n.d(e,"LineChart",function(){return Y.q}),n.d(e,"TreemapChart",function(){return Y.M}),n.d(e,"StepLineChart",function(){return Y.I}),n.d(e,"BarChart",function(){return Y.b}),n.d(e,"StackedBarChart",function(){return Y.F}),n.d(e,"GroupedBarChart",function(){return Y.l}),n.d(e,"PercentStackedBarChart",function(){return Y.t}),n.d(e,"RangeBarChart",function(){return Y.z}),n.d(e,"AreaChart",function(){return Y.a}),n.d(e,"StackedAreaChart",function(){return Y.E}),n.d(e,"PercentStackedAreaChart",function(){return Y.s}),n.d(e,"ColumnChart",function(){return Y.f}),n.d(e,"GroupedColumnChart",function(){return Y.m}),n.d(e,"StackedColumnChart",function(){return Y.G}),n.d(e,"RangeColumnChart",function(){return Y.A}),n.d(e,"PercentStackedColumnChart",function(){return Y.u}),n.d(e,"PieChart",function(){return Y.v}),n.d(e,"DensityHeatmapChart",function(){return Y.g}),n.d(e,"HeatmapChart",function(){return Y.o}),n.d(e,"WordCloudChart",function(){return Y.O}),n.d(e,"RoseChart",function(){return Y.C}),n.d(e,"FunnelChart",function(){return Y.j}),n.d(e,"StackedRoseChart",function(){return Y.H}),n.d(e,"GroupedRoseChart",function(){return Y.n}),n.d(e,"RadarChart",function(){return Y.y}),n.d(e,"LiquidChart",function(){return Y.r}),n.d(e,"HistogramChart",function(){return Y.p}),n.d(e,"DonutChart",function(){return Y.h}),n.d(e,"WaterfallChart",function(){return Y.N}),n.d(e,"ScatterChart",function(){return Y.D}),n.d(e,"BubbleChart",function(){return Y.c}),n.d(e,"BulletChart",function(){return Y.d}),n.d(e,"CalendarChart",function(){return Y.e}),n.d(e,"GaugeChart",function(){return Y.k}),n.d(e,"DualAxesChart",function(){return Y.i}),n.d(e,"PlotAdapter",function(){return Y.w});var H=i()(i()(i()({},a),u),s.Util)},function(t,e,n){"use strict";var r,i=n(2)(n(6));if(!Object.keys){var a=Object.prototype.hasOwnProperty,o=Object.prototype.toString,s=n(366),l=Object.prototype.propertyIsEnumerable,u=!l.call({toString:null},"toString"),c=l.call(function(){},"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(t){var e=t.constructor;return e&&e.prototype===t},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!p["$"+t]&&a.call(window,t)&&null!==window[t]&&"object"===(0,i.default)(window[t]))try{d(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),g=function(t){if("undefined"==typeof window||!h)return d(t);try{return d(t)}catch(t){return!1}};r=function(t){var e=null!==t&&"object"===(0,i.default)(t),n="[object Function]"===o.call(t),r=s(t),l=e&&"[object String]"===o.call(t),d=[];if(!e&&!n&&!r)throw TypeError("Object.keys called on a non-object");var p=c&&n;if(l&&t.length>0&&!a.call(t,0))for(var h=0;h0)for(var v=0;v-1?i(n):n}},function(t,e,n){"use strict";var r=n(364),i=n(370);t.exports=function(){var t=i();return r(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(371)),a=r(n(238));e.default=function(t,e){return void 0===e&&(e=[]),(0,i.default)(t,function(t){return!(0,a.default)(e,t)})}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(57)),a=r(n(372)),o=r(n(36)),s=r(n(138));e.default=function(t,e){if(!(0,o.default)(t))return null;if((0,i.default)(e)&&(n=e),(0,s.default)(e)&&(n=function(t){return(0,a.default)(t,e)}),n){for(var n,r=0;r-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(56)),a=r(n(376));e.default=function(t,e){var n=[];if(!(0,i.default)(t))return n;for(var r=-1,o=[],s=t.length;++re[i])return 1;if(t[i]n?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(86));e.default=function(t){return(0,i.default)(t)&&t%1!=0}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(86));e.default=function(t){return(0,i.default)(t)&&t%2==0}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(86)),a=Number.isInteger?Number.isInteger:function(t){return(0,i.default)(t)&&t%1==0};e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(86));e.default=function(t){return(0,i.default)(t)&&t<0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)0}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(36)),a=r(n(57));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=-1/0,o=0;or&&(n=s,r=l)}return n}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(36)),a=r(n(57));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=1/0,o=0;oe?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(r),s=0,r=i=a=null},u}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(56));e.default=function(t){return(0,i.default)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,i.default)(t)?0:(0,a.default)(t)?t.length:Object.keys(t).length};var i=r(n(95)),a=r(n(56))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(85)),a=r(n(108)),o=r(n(386));e.default=function(t,e,n,r){void 0===r&&(r="...");var s,l,u=(0,o.default)(r,n),c=(0,i.default)(t)?t:(0,a.default)(t),f=e,d=[];if((0,o.default)(t,n)<=e)return t;for(;s=c.substr(0,16),!((l=(0,o.default)(s,n))+u>f)||!(l>f);)if(d.push(s),f-=l,!(c=c.substr(16)))return d.join("");for(;s=c.substr(0,1),!((l=(0,o.default)(s,n))+u>f);)if(d.push(s),f-=l,!(c=c.substr(1)))return d.join("");return""+d.join("")+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},function(t,e,n){"use strict";function r(e,n){return t.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e,n)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e,n){"use strict";var r,i,a,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){r||(r=document.createElement("table"),i=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var n=o[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var s=n.childNodes[0];return s&&n.contains(s)&&n.removeChild(s),s}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderTopWidth"))||0,o=parseFloat((0,i.default)(t,"paddingTop"))||0,s=parseFloat((0,i.default)(t,"paddingBottom"))||0;return n+r+(parseFloat((0,i.default)(t,"borderBottomWidth"))||0)+o+s+(parseFloat((0,i.default)(t,"marginTop"))||0)+(parseFloat((0,i.default)(t,"marginBottom"))||0)};var i=r(n(139)),a=r(n(387))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderLeftWidth"))||0,o=parseFloat((0,i.default)(t,"paddingLeft"))||0,s=parseFloat((0,i.default)(t,"paddingRight"))||0,l=parseFloat((0,i.default)(t,"borderRightWidth"))||0,u=parseFloat((0,i.default)(t,"marginRight"))||0;return n+r+l+o+s+(parseFloat((0,i.default)(t,"marginLeft"))||0)+u};var i=r(n(139)),a=r(n(388))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(96),a=n(0),o=n(202),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return r.__assign(r.__assign({},e),{container:null,containerTpl:"
    ",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return o.createBBox(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");o.clearDom(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(a.isNil(t)){t=this.createDom();var e=this.get("parent");a.isString(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else a.isString(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?a.deepMix({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&o.hasClass(e,n)){var r=t[n];i.modifyCSS(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){a.each(e,function(e,n){var r=t.getElementsByClassName(n);a.each(r,function(t){i.modifyCSS(t,e)})})},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");i.modifyCSS(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return i.createDom(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){a.hasKey(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(743).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(0),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};a.each(t,function(t,r){var i=e.get(r),o=t;i!==t&&(a.isObject(t)&&n[r]&&(o=a.deepMix({},n[r],t)),e.set(r,o))}),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){a.hasKey(t,"visible")&&(t.visible?this.show():this.hide()),a.hasKey(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=r.__assign({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=o[this.get("locationType")];return a.each(n,function(n){e[n]=t.get(n)}),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");a.each(e,function(e,n){var r=t.get(n);if(a.isObject(r)){var i=a.deepMix({},e,r);t.set(n,i)}})},e}(i.Base);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(242),o=r(n(392)),s=n(102),l=r(n(752)),u=r(n(784)),c=(0,a.detect)(),f=c&&"firefox"===c.name,d=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,s.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new u.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new l.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(f&&!(0,s.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,s.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o.default);e.default=d},function(t,e,n){"use strict";var r,i,a,o=t.exports={};function s(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function u(t){if(r===setTimeout)return setTimeout(t,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:s}catch(t){r=s}try{i="function"==typeof clearTimeout?clearTimeout:l}catch(t){i=l}}();var c=[],f=!1,d=-1;function p(){f&&a&&(f=!1,a.length?c=a.concat(c):d=-1,c.length&&h())}function h(){if(!f){var t=u(p);f=!0;for(var e=c.length;e;){for(a=c,c=[];++d1)for(var n=1;nh(e,n)&&(r=-r),t[0]=e[0]*i+n[0]*r,t[1]=e[1]*i+n[1]*r,t[2]=e[2]*i+n[2]*r,t[3]=e[3]*i+n[3]*r,t[4]=e[4]*i+n[4]*r,t[5]=e[5]*i+n[5]*r,t[6]=e[6]*i+n[6]*r,t[7]=e[7]*i+n[7]*r,t},e.mul=void 0,e.multiply=p,e.normalize=function(t,e){var n=v(e);if(n>0){n=Math.sqrt(n);var r=e[0]/n,i=e[1]/n,a=e[2]/n,o=e[3]/n,s=e[4],l=e[5],u=e[6],c=e[7],f=r*s+i*l+a*u+o*c;t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=(s-r*f)/n,t[5]=(l-i*f)/n,t[6]=(u-a*f)/n,t[7]=(c-o*f)/n}return t},e.rotateAroundAxis=function(t,e,n,r){if(Math.abs(r)=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.direction=s,e.leftRotate=a,e.leftScale=o,e.leftTranslate=i,e.transform=function(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,l=e.length;s0){for(var c=r.animators.length-1;c>=0;c--){if((t=r.animators[c]).destroyed){r.removeAnimator(c);continue}if(!t.isAnimatePaused()){e=t.get("animations");for(var f=e.length-1;f>=0;f--)(function(t,e,n){var r,a=e.startTime;if(nh.length?(p=l.parsePathString(c[f]),h=l.parsePathString(s[f]),h=l.fillPathByDiff(h,p),h=l.formatPath(h,p),e.fromAttrs.path=h,e.toAttrs.path=p):e.pathFormatted||(p=l.parsePathString(c[f]),h=l.parsePathString(s[f]),h=l.formatPath(h,p),e.fromAttrs.path=h,e.toAttrs.path=p,e.pathFormatted=!0),a[f]=[];for(var g=0;gf?Math.pow(t,1/3):t/c+l}function v(t){return t>u?t*t*t:c*(t-l)}function y(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function m(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function b(t){if(t instanceof _)return new _(t.h,t.c,t.l,t.opacity);if(t instanceof h||(t=d(t)),0===t.a&&0===t.b)return new _(NaN,0180?u+=360:u-l>180&&(l+=360),p.push({i:d.push(a(d)+"rotate(",null,r)-2,x:(0,i.default)(l,u)})):u&&d.push(a(d)+"rotate("+u+r),(c=o.skewX)!==(f=s.skewX)?p.push({i:d.push(a(d)+"skewX(",null,r)-2,x:(0,i.default)(c,f)}):f&&d.push(a(d)+"skewX("+f+r),function(t,e,n,r,o,s){if(t!==n||e!==r){var l=o.push(a(o)+"scale(",null,",",null,")");s.push({i:l-4,x:(0,i.default)(t,n)},{i:l-2,x:(0,i.default)(e,r)})}else(1!==n||1!==r)&&o.push(a(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,d,p),o=s=null,function(t){for(var e,n=-1,r=p.length;++n120||u*u+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,o){var l=this._getEventObj(t,e,n,r,i,o);if(r){l.shape=r,s(r,t,l);for(var u=r.getParent();u;)u.emitDelegation(t,l),l.propagationStopped||function(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),!t.isCanvas()||!i){if(r&&(0,a.isParent)(t,r)){n.bubbles=!1;return}n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}}(u,t,l),l.propagationPath.push(u),u=u.getParent()}else s(this.canvas,t,l)},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.multiplyVec2)(e,[t.minX,t.minY]),l=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),u=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),i=Math.max(s[0],l[0],u[0],c[0]),r=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var f=this.attrs;if(f.shadowColor){var d=f.shadowBlur,p=void 0===d?0:d,h=f.shadowOffsetX,g=void 0===h?0:h,v=f.shadowOffsetY,y=void 0===v?0:v,m=n-p+g,b=i+p+g,x=r-p+y,_=a+p+y;n=Math.min(n,m),i=Math.max(i,b),r=Math.min(r,x),a=Math.max(a,_)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);return this.isOnlyHitBox()?s:!!(s&&!this.isClipped(a,o)&&(this.isInShape(a,o)||n&&n.isHit(a,o)||r&&r.isHit(a,o)))},e}(a.default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}}),Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return i.register}});var i=n(788),a=r(n(789)),o=r(n(790)),s=r(n(791)),l=r(n(797)),u=r(n(798)),c=r(n(799)),f=r(n(814)),d=r(n(815));(0,i.register)("rect",a.default),(0,i.register)("image",a.default),(0,i.register)("circle",o.default),(0,i.register)("marker",o.default),(0,i.register)("polyline",s.default),(0,i.register)("polygon",l.default),(0,i.register)("text",u.default),(0,i.register)("path",c.default),(0,i.register)("line",f.default),(0,i.register)("ellipse",d.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=function(t){return r.get(t)},e.register=function(t,e){r.set(t,e)};var r=new Map},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o=0?[i]:[]}function u(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function c(t,e,n,r,a,o,l){var u=s(t,n,a,l),c=s(e,r,o,l),f=i.default.pointAt(t,e,n,r,l),d=i.default.pointAt(n,r,a,o,l);return[[t,e,f.x,f.y,u,c],[u,c,d.x,d.y,a,o]]}e.default={box:function(t,e,n,r,i,o){var u=l(t,n,i)[0],c=l(e,r,o)[0],f=[t,i],d=[e,o];return void 0!==u&&f.push(s(t,n,i,u)),void 0!==c&&d.push(s(e,r,o,c)),(0,a.getBBoxByArray)(f,d)},length:function(t,e,n,r,i,o){return function t(e,n,r,i,o,s,l){if(0===l)return((0,a.distance)(e,n,r,i)+(0,a.distance)(r,i,o,s)+(0,a.distance)(e,n,o,s))/2;var u=c(e,n,r,i,o,s,.5),f=u[0],d=u[1];return f.push(l-1),d.push(l-1),t.apply(null,f)+t.apply(null,d)}(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,a,l,u){return(0,o.nearestPoint)([t,n,i],[e,r,a],l,u,s)},pointDistance:function(t,e,n,r,i,o,s,l){var u=this.nearestPoint(t,e,n,r,i,o,s,l);return(0,a.distance)(u.x,u.y,s,l)},interpolationAt:s,pointAt:function(t,e,n,r,i,a,o){return{x:s(t,n,i,o),y:s(e,r,a,o)}},divide:function(t,e,n,r,i,a,o){return c(t,e,n,r,i,a,o)},tangentAngle:function(t,e,n,r,i,o,s){var l=u(t,n,i,s),c=Math.atan2(u(e,r,o,s),l);return(0,a.piMod)(c)}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(87),a=r(n(174)),o=n(409);function s(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function l(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function u(t,e,n,r){var a,o,s,l=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,c=3*e-3*t,f=[];if((0,i.isNumberEqual)(l,0))!(0,i.isNumberEqual)(u,0)&&(a=-c/u)>=0&&a<=1&&f.push(a);else{var d=u*u-4*l*c;(0,i.isNumberEqual)(d,0)?f.push(-u/(2*l)):d>0&&(a=(-u+(s=Math.sqrt(d)))/(2*l),o=(-u-s)/(2*l),a>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i,o,l,u,c){var f=s(t,n,i,l,c),d=s(e,r,o,u,c),p=a.default.pointAt(t,e,n,r,c),h=a.default.pointAt(n,r,i,o,c),g=a.default.pointAt(i,o,l,u,c),v=a.default.pointAt(p.x,p.y,h.x,h.y,c),y=a.default.pointAt(h.x,h.y,g.x,g.y,c);return[[t,e,p.x,p.y,v.x,v.y,f,d],[f,d,y.x,y.y,g.x,g.y,l,u]]}e.default={extrema:u,box:function(t,e,n,r,a,o,l,c){for(var f=[t,l],d=[e,c],p=u(t,n,a,l),h=u(e,r,o,c),g=0;gf&&(f=g)}for(var v=Math.atan(r/(n*Math.tan(i))),y=1/0,m=-1/0,b=[a,l],p=-(2*Math.PI);p<=2*Math.PI;p+=Math.PI){var x=v+p;am&&(m=_)}return{x:c,y:y,width:f-c,height:m-y}},length:function(t,e,n,r,i,a,o){},nearestPoint:function(t,e,n,r,i,o,s,c,f){var d,p=u(c-t,f-e,-i),h=p[0],g=p[1],v=a.default.nearestPoint(0,0,n,r,h,g),y=(d=v.x,(Math.atan2(v.y*n,d*r)+2*Math.PI)%(2*Math.PI));ys&&(v=l(n,r,s));var m=u(v.x,v.y,i);return{x:m[0]+t,y:m[1]+e}},pointDistance:function(t,e,n,r,a,o,s,l,u){var c=this.nearestPoint(t,e,n,r,l,u);return(0,i.distance)(c.x,c.y,l,u)},pointAt:function(t,e,n,r,i,a,l,u){var c=(l-a)*u+a;return{x:o(t,e,n,r,i,c),y:s(t,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,a,o,s,l){var u=(s-o)*l+o,c=-1*n*Math.cos(a)*Math.sin(u)-r*Math.sin(a)*Math.cos(u),f=-1*n*Math.sin(a)*Math.sin(u)+r*Math.cos(a)*Math.cos(u);return(0,i.piMod)(Math.atan2(f,c))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(87);function i(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,a,o){if(0===n||0===r)return{x:t,y:e};for(var s,l,u=a-t,c=o-e,f=Math.abs(u),d=Math.abs(c),p=n*n,h=r*r,g=Math.PI/4,v=0;v<4;v++){s=n*Math.cos(g),l=r*Math.sin(g);var y=(p-h)*Math.pow(Math.cos(g),3)/n,m=(h-p)*Math.pow(Math.sin(g),3)/r,b=s-y,x=l-m,_=f-y,O=d-m,P=Math.hypot(x,b),M=Math.hypot(O,_);g+=P*Math.asin((b*O-x*_)/(P*M))/Math.sqrt(p+h-s*s-l*l),g=Math.min(Math.PI/2,Math.max(0,g))}return{x:t+i(s,u),y:e+i(l,c)}},pointDistance:function(t,e,n,i,a,o){var s=this.nearestPoint(t,e,n,i,a,o);return(0,r.distance)(s.x,s.y,a,o)},pointAt:function(t,e,n,r,i){var a=2*Math.PI*i;return{x:t+n*Math.cos(a),y:e+r*Math.sin(a)}},tangentAngle:function(t,e,n,i,a){var o=2*Math.PI*a,s=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return(0,r.piMod)(s)}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(410),a=r(n(411));function o(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}e.default={box:function(t){return a.default.box(t)},length:function(t){return(0,i.lengthOfSegment)(o(t))},pointAt:function(t,e){return(0,i.pointAtSegments)(o(t),e)},pointDistance:function(t,e,n){return(0,i.distanceAtSegment)(o(t),e,n)},tangentAngle:function(t,e){return(0,i.angleAtSegments)(o(t),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=t.attr().points,n=[],i=[],a=0;aMath.PI/2?Math.PI-u:u))*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos((c=c>Math.PI/2?Math.PI-c:c)-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(801);e.default=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i,a,o,s=!!e,l=[],u=0,c=t.length;u=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.direction=s,e.leftRotate=a,e.leftScale=o,e.leftTranslate=i,e.transform=function(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],s=0,l=e.length;s=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])})}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r}(t[i],t[i+1],r))},[]);return l.unshift(t[0]),("Z"===e[r]||"z"===e[r])&&l.push("Z"),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=i(t,e),r=t.length,a=e.length,o=[],s=1,l=1;if(n[r][a]!==r){for(var u=1;u<=r;u++){var c=n[u][u].min;l=u;for(var f=s;f<=a;f++)n[u][f].min=0;u--)s=o[u].index,"add"===o[u].type?t.splice(s,0,[].concat(t[s])):t.splice(s,1)}if((r=t.length)0)n=i(n,t[a-1],1);else{t[a]=e[a];break}}t[a]=["Q"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"T":t[a]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(a>0)n=i(n,t[a-1],2);else{t[a]=e[a];break}}t[a]=["C"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;case"S":if(n.length<2){if(a>0)n=i(n,t[a-1],1);else{t[a]=e[a];break}}t[a]=["S"].concat(n.reduce(function(t,e){return t.concat(e)},[]));break;default:t[a]=e[a]}return t}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return v(t,e)};var i=n(0),a=r(n(415)),o=r(n(416)),s=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},l=function(t,e,n,r,i,a,o,l,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,h=0;h<12;h++){var g=c*f[h]+c,v=s(g,t,n,i,o),y=s(g,e,r,a,l),m=v*v+y*y;p+=d[h]*Math.sqrt(m)}return c*p},u=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,d,p=[],h=[[],[]],g=0;g<2;++g){if(0===g?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),1e-12>Math.abs(l)){if(1e-12>Math.abs(u))continue;(f=-c/u)>0&&f<1&&p.push(f);continue}var v=u*u-4*c*l,y=Math.sqrt(v);if(!(v<0)){var m=(-u+y)/(2*l);m>0&&m<1&&p.push(m);var b=(-u-y)/(2*l);b>0&&b<1&&p.push(b)}}for(var x=p.length,_=x;x--;)d=1-(f=p[x]),h[0][x]=d*d*d*t+3*d*d*f*n+3*d*f*f*i+f*f*f*o,h[1][x]=d*d*d*e+3*d*d*f*r+3*d*f*f*a+f*f*f*s;return h[0][_]=t,h[1][_]=e,h[0][_+1]=o,h[1][_+1]=s,h[0].length=h[1].length=_+2,{min:{x:Math.min.apply(0,h[0]),y:Math.min.apply(0,h[1])},max:{x:Math.max.apply(0,h[0]),y:Math.max.apply(0,h[1])}}},c=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)Math.max(i,o)||Math.max(e,r)Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),d=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},f=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},d=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:(0,a.default)(t,e,n,r),vb:[t,e,n,r].join(" ")}},p=function(t,e,n,r,a,o,s,l){(0,i.isArray)(t)||(t=[t,e,n,r,a,o,s,l]);var c=u.apply(null,t);return d(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},h=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),d=l*l,p=d*l,h=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(a-2*r+e),v=n+2*l*(i-n)+d*(o-2*i+n),y=r+2*l*(a-r)+d*(s-2*a+r),m=90-180*Math.atan2(h-v,g-y)/Math.PI;return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:h,y:g},n:{x:v,y:y},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:m}},g=function(t,e,n){var r,i,a=p(t),o=p(e);if(r=a,i=o,r=d(r),!(f(i=d(i),r.x,r.y)||f(i,r.x2,r.y)||f(i,r.x,r.y2)||f(i,r.x2,r.y2)||f(r,i.x,i.y)||f(r,i.x2,i.y)||f(r,i.x,i.y2)||f(r,i.x2,i.y2))&&((!(r.xi.x))&&(!(i.xr.x))||(!(r.yi.y))&&(!(i.yr.y))))return n?0:[];for(var s=l.apply(0,t),u=l.apply(0,e),g=~~(s/8),v=~~(u/8),y=[],m=[],b={},x=n?0:[],_=0;_Math.abs(A.x-M.x)?"y":"x",C=.001>Math.abs(w.x-S.x)?"y":"x",T=c(M.x,M.y,A.x,A.y,S.x,S.y,w.x,w.y);if(T){if(b[T.x.toFixed(4)]===T.y.toFixed(4))continue;b[T.x.toFixed(4)]=T.y.toFixed(4);var I=M.t+Math.abs((T[E]-M[E])/(A[E]-M[E]))*(A.t-M.t),j=S.t+Math.abs((T[C]-S[C])/(w[C]-S[C]))*(w.t-S.t);I>=0&&I<=1&&j>=0&&j<=1&&(n?x++:x.push({x:T.x,y:T.y,t1:I,t2:j}))}}return x},v=function(t,e,n){t=(0,o.default)(t),e=(0,o.default)(e);for(var r,i,a,s,l,u,c,f,d,p,h=n?0:[],v=0,y=t.length;v"TQ".indexOf(t[0])&&(e.qx=null,e.qy=null);var n=t.slice(1),o=n[0],s=n[1];switch(t[0]){case"M":e.x=o,e.y=s;break;case"A":return["C"].concat(r.arcToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=o,e.qy=s,["C"].concat(i.quadToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,e.x,e.y))}return t};var r=n(808),i=n(809),a=n(810)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arcToCubic=function(t,e,n,r,i,a,o,s,u){return l({px:t,py:e,cx:s,cy:u,rx:n,ry:r,xAxisRotation:i,largeArcFlag:a,sweepFlag:o}).reduce(function(t,e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.x,s=e.y;return t.push(n,r,i,a,o,s),t},[])};var r=2*Math.PI,i=function(t,e,n,r,i,a,o){var s=t.x,l=t.y;return{x:r*(s*=e)-i*(l*=n)+a,y:i*s+r*l+o}},a=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:a+o*n,y:o-a*n},{x:a,y:o}]},o=function(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)},s=function(t,e,n,i,a,s,l,u,c,f,d,p){var h=Math.pow(a,2),g=Math.pow(s,2),v=Math.pow(d,2),y=Math.pow(p,2),m=h*g-h*y-g*v;m<0&&(m=0),m/=h*y+g*v;var b=(m=Math.sqrt(m)*(l===u?-1:1))*a/s*p,x=-(m*s)/a*d,_=(d-b)/a,O=(p-x)/s,P=o(1,0,_,O),M=o(_,O,(-d-b)/a,(-p-x)/s);return 0===u&&M>0&&(M-=r),1===u&&M<0&&(M+=r),[f*b-c*x+(t+n)/2,c*b+f*x+(e+i)/2,P,M]},l=function(t){var e=t.px,n=t.py,o=t.cx,l=t.cy,u=t.rx,c=t.ry,f=t.xAxisRotation,d=void 0===f?0:f,p=t.largeArcFlag,h=void 0===p?0:p,g=t.sweepFlag,v=void 0===g?0:g,y=[];if(0===u||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:o,y:l}];var m=Math.sin(d*r/360),b=Math.cos(d*r/360),x=b*(e-o)/2+m*(n-l)/2,_=-m*(e-o)/2+b*(n-l)/2;if(0===x&&0===_)return[{x1:0,y1:0,x2:0,y2:0,x:o,y:l}];var O=Math.pow(x,2)/Math.pow(u=Math.abs(u),2)+Math.pow(_,2)/Math.pow(c=Math.abs(c),2);O>1&&(u*=Math.sqrt(O),c*=Math.sqrt(O));var P=s(e,n,o,l,u,c,h,v,m,b,x,_),M=P[0],A=P[1],S=P[2],w=P[3],E=Math.abs(w)/(r/4);1e-7>Math.abs(1-E)&&(E=1);var C=Math.max(Math.ceil(E),1);w/=C;for(var T=0;Tn.maxX||r.maxXn.maxY||r.maxY1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function l(t){var e=t.map(function(t){return t[0]}),n=t.map(function(t){return t[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x1,i=e.y1,a=e.x2,o=e.y2,s={minX:Math.min(n,a),maxX:Math.max(n,a),minY:Math.min(i,o),maxY:Math.max(i,o)};return{x:(s=(0,r.mergeArrowBBox)(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}};var r=n(249)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;return{x:n-i,y:r-a,width:2*i,height:2*a}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0});var i={getAdjust:!0,registerAdjust:!0,Adjust:!0};Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return a.default}}),e.registerAdjust=e.getAdjust=void 0;var a=r(n(110)),o=n(423);Object.keys(o).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(i,t))&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var s={},l=function(t){return s[t.toLowerCase()]};e.getAdjust=l,e.registerAdjust=function(t,e){if(l(t))throw Error("Adjust type '"+t+"' existed.");s[t.toLowerCase()]=e}},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(89),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(0)),s=n(250);function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?s.MARGIN_RATIO:r,a=e.dodgeRatio,o=void 0===a?s.DODGE_RATIO:a,l=e.dodgeBy,u=e.intervalPadding,c=e.dodgePadding,f=e.xDimensionLength,d=e.groupNum,p=e.defaultSize,h=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio,y=e.customOffset;return n.marginRatio=i,n.dodgeRatio=o,n.dodgeBy=l,n.intervalPadding=u,n.dodgePadding=c,n.xDimensionLegenth=f,n.groupNum=d,n.defaultSize=p,n.maxColumnWidth=h,n.minColumnWidth=g,n.columnWidthRatio=v,n.customOffset=y,n}return(0,a.__extends)(e,t),e.prototype.process=function(t){var e=o.clone(t),n=o.flatten(e),r=this.dodgeBy,i=r?o.group(n,r):e;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var i=this,a=this.customOffset,s=this.getDistribution(t),l=this.groupData(n,t);return o.each(l,function(n,l){var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:i.getAdjustRange(t,parseFloat(l),e),o.each(n,function(e){var n=s[e[t]],l=n.indexOf(r);if(o.isNil(a))e[t]=i.getDodgeOffset(u,l,n.length);else{var c=u.pre,f=u.next;e[t]=o.isFunction(a)?a(e,u):(c+f)/2+a}})}),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,i=this.dodgeRatio,a=this.marginRatio,s=this.intervalPadding,l=this.dodgePadding,u=t.pre,c=t.next,f=c-u;if(!o.isNil(s)&&o.isNil(l)&&s>=0){var d=this.getIntervalOnlyOffset(n,e);r=u+d}else if(!o.isNil(l)&&o.isNil(s)&&l>=0){var d=this.getDodgeOnlyOffset(n,e);r=u+d}else if(!o.isNil(s)&&!o.isNil(l)&&s>=0&&l>=0){var d=this.getIntervalAndDodgeOffset(n,e);r=u+d}else{var p=f*i/n,h=a*p,d=.5*(f-n*p-(n-1)*h)+((e+1)*p+e*h)-.5*p-.5*f;r=(u+c)/2+d}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this.defaultSize,r=this.intervalPadding,i=this.xDimensionLegenth,a=this.groupNum,s=this.dodgeRatio,l=this.maxColumnWidth,u=this.minColumnWidth,c=this.columnWidthRatio,f=r/i,d=(1-(a-1)*f)/a*s/(t-1),p=((1-f*(a-1))/a-d*(t-1))/t;return p=o.isNil(c)?p:1/a/t*c,o.isNil(l)||(p=Math.min(p,l/i)),o.isNil(u)||(p=Math.max(p,u/i)),d=((1-(a-1)*f)/a-t*(p=n?n/i:p))/(t-1),((.5+e)*p+e*d+.5*f)*a-f/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this.defaultSize,r=this.dodgePadding,i=this.xDimensionLegenth,a=this.groupNum,s=this.marginRatio,l=this.maxColumnWidth,u=this.minColumnWidth,c=this.columnWidthRatio,f=r/i,d=1*s/(a-1),p=((1-d*(a-1))/a-f*(t-1))/t;return p=c?1/a/t*c:p,o.isNil(l)||(p=Math.min(p,l/i)),o.isNil(u)||(p=Math.max(p,u/i)),d=(1-((p=n?n/i:p)*t+f*(t-1))*a)/(a-1),((.5+e)*p+e*f+.5*d)*a-d/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,a=this.groupNum,o=n/i,s=r/i;return((.5+e)*(((1-o*(a-1))/a-s*(t-1))/t)+e*s+.5*o)*a-o/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},o.each(e,function(e,n){var i=o.valuesOfKey(e,t);i.length||i.push(0),o.each(i,function(t){r[t]||(r[t]=[]),r[t].push(n)})}),n[t]=r),r},e}(r(n(110)).default);e.default=u},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(89),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(0)),s=n(250);function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.process=function(t){var e=o.clone(t),n=o.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,i=this.groupData(n,t);return o.each(i,function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)})},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*s.GAP;return e=n+i,(r-i-e)*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var i=this,a=this.getAdjustRange(e,n,r);return o.each(t,function(t){t[e]=i.getAdjustOffset(a)}),t},e}(r(n(110)).default);e.default=u},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(89),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(0)),s=r(n(110));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=o.Cache,c=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=e.height,a=void 0===i?NaN:i,o=e.size,s=e.reverseOrder;return n.adjustNames=void 0===r?["y"]:r,n.height=a,n.size=void 0===o?10:o,n.reverseOrder=void 0!==s&&s,n}return(0,a.__extends)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,r=this.reverseOrder?this.reverse(t):t,i=new u,s=new u;return r.map(function(t){return t.map(function(t){var r,l=o.get(t,e,0),u=o.get(t,[n]),c=l.toString();if(u=o.isArray(u)?u[1]:u,!o.isNil(u)){var f=u>=0?i:s;f.has(c)||f.set(c,0);var d=f.get(c),p=u+d;return f.set(c,p),(0,a.__assign)((0,a.__assign)({},t),((r={})[n]=[d,p],r))}return t})})},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,r=this.height,i=this.reverseOrder?this.reverse(t):t,o=new u;return i.map(function(t){return t.map(function(t){var i,s=e.size,l=t[n],u=2*s/r;o.has(l)||o.set(l,u/2);var c=o.get(l);return o.set(l,c+u),(0,a.__assign)((0,a.__assign)({},t),((i={}).y=c,i))})})},e}(s.default);e.default=c},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(89),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(0));function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.process=function(t){var e=o.flatten(t),n=this.xField,r=this.yField,i=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(i).map(function(t){return i[t]}));return o.map(t,function(t){return o.map(t,function(t){var e,l,u=t[r],c=t[n];if(o.isArray(u)){var f=(s-i[c])/2;return(0,a.__assign)((0,a.__assign)({},t),((e={})[r]=o.map(u,function(t){return f+t}),e))}var d=(s-u)/2;return(0,a.__assign)((0,a.__assign)({},t),((l={})[r]=[d,u+d],l))})})},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,i=o.groupBy(t,function(t){return t[n]});return o.mapValues(i,function(t){return e.getDimMaxValue(t,r)})},e.prototype.getDimMaxValue=function(t,e){var n=o.map(t,function(t){return o.get(t,e,[])}),r=o.flatten(n);return Math.max.apply(Math,r)},e}(r(n(110)).default);e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=r(n(140)),o=n(0),s=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],(0,o.isString)(n.values)&&(n.linear=!0),n.gradient=a.default.gradient(n.values),n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(r(n(103)).default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return(0,i.__extends)(e,t),e}(r(n(103)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=n(0),o=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return(0,i.__extends)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return(0,a.isNil)(t)||(0,a.isNil)(e)?[]:[(0,a.isArray)(t)?t.map(function(t){return r.scale(t)}):r.scale(t),(0,a.isArray)(e)?e.map(function(t){return i.scale(t)}):i.scale(e)]},e}(r(n(103)).default);e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(r(n(103)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(89),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return(0,i.__extends)(e,t),e}(r(n(103)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0});var i={getAttribute:!0,registerAttribute:!0,Attribute:!0};Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return a.default}}),e.registerAttribute=e.getAttribute=void 0;var a=r(n(103)),o=n(424);Object.keys(o).forEach(function(t){!("default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(i,t))&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var s={},l=function(t){return s[t.toLowerCase()]};e.getAttribute=l,e.registerAttribute=function(t,e){if(l(t))throw Error("Attribute type '"+t+"' existed.");s[t.toLowerCase()]=e}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(175),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,i.__extends)(e,t),e.prototype.translate=function(t){t=(0,o.toTimeStamp)(t);var e=this.values.indexOf(t);return -1===e&&(e=(0,a.isNumber)(t)&&t-1){var r=this.values[n],i=this.formatter;return i?i(r,e):(0,o.timeFormat)(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;(0,a.each)(e,function(t,n){e[n]=(0,o.toTimeStamp)(t)}),e.sort(function(t,e){return t-e}),t.prototype.setDomain.call(this)},e}(r(n(426)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assign=c,e.format=e.defaultI18n=e.default=void 0,e.parse=C,e.setGlobalDateMasks=e.setGlobalDateI18n=void 0;var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="\\d\\d?",a="\\d\\d",o="[^\\s]+",s=/\[([^]*?)\]/gm;function l(t,e){for(var n=[],r=0,i=t.length;r-1?r:null}};function c(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}};e.defaultI18n=h;var g=c({},h),v=function(t){return g=c(g,t)};e.setGlobalDateI18n=v;var y=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},m=function(t,e){for(void 0===e&&(e=2),t=String(t);t.lengtht.getHours()?e.amPm[0]:e.amPm[1]},A:function(t,e){return 12>t.getHours()?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+m(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+m(Math.floor(Math.abs(e)/60),2)+":"+m(Math.abs(e)%60,2)}},x=function(t){return+t-1},_=[null,i],O=[null,o],P=["isPm",o,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],A={D:["day",i],DD:["day",a],Do:["day",i+o,function(t){return parseInt(t,10)}],M:["month",i,x],MM:["month",a,x],YY:["year",a,function(t){var e=+(""+new Date().getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour",i,void 0,"isPm"],hh:["hour",a,void 0,"isPm"],H:["hour",i],HH:["hour",a],m:["minute",i],mm:["minute",a],s:["second",i],ss:["second",a],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",a,function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:_,dd:_,ddd:O,dddd:O,MMM:["month",o,u("monthNamesShort")],MMMM:["month",o,u("monthNames")],a:P,A:P,ZZ:M,Z:M},S={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},w=function(t){return c(S,t)};e.setGlobalDateMasks=w;var E=function(t,e,n){if(void 0===e&&(e=S.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw Error("Invalid Date pass to format");e=S[e]||e;var i=[];e=e.replace(s,function(t,e){return i.push(e),"@@@"});var a=c(c({},g),n);return(e=e.replace(r,function(e){return b[e](t,a)})).replace(/@@@/g,function(){return i.shift()})};function C(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw Error("Invalid format in fecha parse");if(e=S[e]||e,t.length>1e3)return null;var i,a={year:new Date().getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],l=[],u=e.replace(s,function(t,e){return l.push(y(e)),"@@@"}),f={},d={};u=y(u).replace(r,function(t){var e=A[t],n=e[0],r=e[1],i=e[3];if(f[n])throw Error("Invalid format. "+n+" specified twice in format");return f[n]=!0,i&&(d[i]=!0),o.push(e),"("+r+")"}),Object.keys(d).forEach(function(t){if(!f[t])throw Error("Invalid format. "+t+" is required in specified format")}),u=u.replace(/@@@/g,function(){return l.shift()});var p=t.match(RegExp(u,"i"));if(!p)return null;for(var h=c(c({},g),n),v=1;v11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return i}e.format=E,e.default={format:E,parse:C,defaultI18n:h,setGlobalDateI18n:v,setGlobalDateMasks:w}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(e,n,i,a){for(var o=(0,r.isNil)(i)?0:i,s=(0,r.isNil)(a)?e.length:a;o>>1;t(e[l])>n?s=l:o=l+1}return o}};var r=n(0)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(177),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=(0,a.log)(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var l=1/(r-(e=(0,a.log)(n,s/n)))*o;if(t=0?1:-1)},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return((0,a.calBase)(r,t)-(0,a.calBase)(r,n))/((0,a.calBase)(r,e)-(0,a.calBase)(r,n))},e}(r(n(176)).default);e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(175),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,i.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):(0,o.timeFormat)(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,a.isString)(n)||(0,a.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return(0,o.toTimeStamp)(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,a.isNil)(e)&&(0,a.isNumber)(e)||(this.min=this.translate(this.min)),(0,a.isNil)(n)&&(0,a.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,s=1/0,l=0;(0,a.each)(t,function(t){var e=(0,o.toTimeStamp)(t);if(isNaN(e))throw TypeError("Invalid Time: "+t+" in time scale!");i>e?(s=i,i=e):s>e&&(s=e),l1&&(this.minTickInterval=s-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(n)&&(this.max=l)}},e}(r(n(427)).default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,i.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(r(n(428)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return i.default}}),e.getScale=function(t){return a[t]},e.registerScale=function(t,e){if(a[t])throw Error("type '"+t+"' existed.");a[t]=e};var i=r(n(141)),a={}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,i.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,a.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(r(n(141)).default);e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return f.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return f.registerTickMethod}});var i=r(n(429)),a=r(n(837)),o=r(n(839)),s=r(n(841)),l=r(n(842)),u=r(n(843)),c=r(n(844)),f=n(425),d=r(n(845)),p=r(n(846)),h=r(n(847));(0,f.registerTickMethod)("cat",i.default),(0,f.registerTickMethod)("time-cat",p.default),(0,f.registerTickMethod)("wilkinson-extended",o.default),(0,f.registerTickMethod)("r-pretty",c.default),(0,f.registerTickMethod)("time",d.default),(0,f.registerTickMethod)("time-pretty",h.default),(0,f.registerTickMethod)("log",s.default),(0,f.registerTickMethod)("pow",l.default),(0,f.registerTickMethod)("quantile",u.default),(0,f.registerTickMethod)("d3-linear",a.default)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.min,n=t.max,r=t.tickInterval,l=t.minLimit,u=t.maxLimit,c=(0,a.default)(t);return(0,i.isNil)(l)&&(0,i.isNil)(u)?r?(0,o.default)(e,n,r).ticks:c:(0,s.default)(t,(0,i.head)(c),(0,i.last)(c))};var i=n(0),a=r(n(838)),o=r(n(252)),s=r(n(253))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.D3Linear=void 0,e.default=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,a=new o;return a.domain([e,n]),r&&a.nice(i),a.ticks(i)};var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2),o=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){void 0===t&&(t=5);var e,n,r,i=this._domain.slice(),a=0,o=this._domain.length-1,l=this._domain[a],u=this._domain[o];return u0?r=s(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=s(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,a,o,l=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/o),a=Array(i=Math.ceil((e=Math.floor(e/o))-t+1));++l=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=a?2:1)}e.D3Linear=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,l=t.nice,u=t.tickInterval,c=t.minLimit,f=t.maxLimit,d=(0,a.default)(e,n,r,l).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(f)?u?(0,o.default)(e,n,u).ticks:d:(0,s.default)(t,(0,i.head)(d),(0,i.last)(d))};var i=n(0),a=r(n(840)),o=r(n(252)),s=r(n(253))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_Q=e.ALL_Q=void 0,e.default=function(t,e,n,s,l,u){void 0===n&&(n=5),void 0===s&&(s=!0),void 0===l&&(l=a),void 0===u&&(u=[.25,.2,.5,.05]);var c=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!=typeof t||"number"!=typeof e||!c)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===c)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var f=n||5,d=(e-t)/f;return{min:t,max:e,ticks:Array(f).fill(null).map(function(e,n){return(0,i.prettyNumber)(t+d*n)})}}for(var p={score:-2,lmin:0,lmax:0,lstep:0},h=1;h<1/0;){for(var g=0;g=c?2-(S-1)/(c-1):1;if(u[0]*y+u[1]+u[2]*b+u[3]r?1-Math.pow((n-r)/2,2)/Math.pow(.1*r,2):1}(t,e,_*(m-1));if(u[0]*y+u[1]*O+u[2]*b+u[3]=0&&(c=1),1-u/(l-1)-n+c}(v,l,h,w,E,_),T=1-.5*(Math.pow(e-E,2)+Math.pow(t-w,2))/Math.pow(.1*(e-t),2),I=function(t,e,n,r,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}(m,c,t,e,w,E),j=u[0]*C+u[1]*T+u[2]*I+1*u[3];j>p.score&&(!s||w<=t&&E>=e)&&(p.lmin=w,p.lmax=E,p.lstep=_,p.score=j)}x+=1}m+=1}}h+=1}var F=(0,i.prettyNumber)(p.lmax),L=(0,i.prettyNumber)(p.lmin),D=(0,i.prettyNumber)(p.lstep),k=Math.floor(Math.round(1e12*((F-L)/D))/1e12)+1,R=Array(k);R[0]=(0,i.prettyNumber)(L);for(var g=1;g0)e=Math.floor((0,r.log)(n,a));else{var u=(0,r.getLogPositiveMin)(s,n,o);e=Math.floor((0,r.log)(n,u))}for(var c=Math.ceil((l-e)/i),f=[],d=e;d=0?1:-1)})};var i=n(177),a=r(n(431))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort(function(t,e){return t-e}),i=[],a=0;a1&&(a*=Math.ceil(s)),i&&ar.YEAR)for(var f,d=i(n),p=Math.ceil(l/r.YEAR),h=c;h<=d+p;h+=p)u.push((f=h,new Date(f,0,1).getTime()));else if(l>r.MONTH)for(var g,v,y,m,b=Math.ceil(l/r.MONTH),x=a(e),_=(g=i(e),v=i(n),y=a(e),(v-g)*12+(a(n)-y)%12),h=0;h<=_+b;h+=b)u.push((m=h+x,new Date(c,m,1).getTime()));else if(l>r.DAY)for(var O=new Date(e),P=O.getFullYear(),M=O.getMonth(),A=O.getDate(),S=Math.ceil(l/r.DAY),w=Math.ceil((n-e)/r.DAY),h=0;hr.HOUR)for(var O=new Date(e),P=O.getFullYear(),M=O.getMonth(),S=O.getDate(),E=O.getHours(),C=Math.ceil(l/r.HOUR),T=Math.ceil((n-e)/r.HOUR),h=0;h<=T+C;h+=C)u.push(new Date(P,M,S,E+h).getTime());else if(l>r.MINUTE)for(var I=Math.ceil((n-e)/6e4),j=Math.ceil(l/r.MINUTE),h=0;h<=I+j;h+=j)u.push(e+h*r.MINUTE);else{var F=l;F=512&&console.warn("Notice: current ticks length("+u.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+l+") is too small, increase the value to solve the problem!"),u};var r=n(175);function i(t){return new Date(t).getFullYear()}function a(t){return new Date(t).getMonth()}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return l.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return l.registerCoordinate}});var i=r(n(178)),a=r(n(849)),o=r(n(850)),s=r(n(851)),l=n(852);(0,l.registerCoordinate)("rect",a.default),(0,l.registerCoordinate)("cartesian",a.default),(0,l.registerCoordinate)("polar",s.default),(0,l.registerCoordinate)("helix",o.default)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(r(n(178)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(32),o=n(0),s=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,l=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=void 0===s?0:s,n.radius=l,n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),a=this.a*i,o=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=a.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=a.ext.angleTo(r,[1,0],!0),s=i*this.a;a.vec2.length(r)this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-a)*e*r,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,s=this.endAngle;this.isReflect("x")&&(i=(e=[s,i])[0],s=e[1]);var l=[1,0,0,0,1,0,0,0,1];a.ext.leftRotate(l,l,i);var u=[1,0,0];a.vec3.transformMat3(u,u,l);var c=[u[0],u[1]],f=a.ext.angleTo(c,r,s0?p:-p;var h=this.invertDim(d,"y"),g={x:0,y:0};return g.x=this.isTransposed?h:p,g.y=this.isTransposed?p:h,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i1||r<0)&&(r=1),{x:(0,u.getValueByPercent)(t.x,e.x,r),y:(0,u.getValueByPercent)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,a=e.content,o=e.style,l=e.offsetX,u=e.offsetY,c=e.autoRotate,f=e.maxLength,d=e.autoEllipsis,p=e.ellipsisPosition,h=e.background,g=e.isVertical,v=this.getLabelPoint(n,r,i),y=v.x+l,m=v.y+u,b={id:this.getElementId("line-text"),name:"annotation-line-text",x:y,y:m,content:a,style:o,maxLength:f,autoEllipsis:d,ellipsisPosition:p,background:h,isVertical:void 0!==g&&g};if(c){var x=[r.x-n.x,r.y-n.y];b.rotate=Math.atan2(x[1],x[0])}(0,s.renderTag)(t,b)},e}(o.default);e.default=c},function(t,e,n){"use strict";function r(t,e){return t.charCodeAt(e)>0&&128>t.charCodeAt(e)?1:2}Object.defineProperty(e,"__esModule",{value:!0}),e.charAtLength=r,e.ellipsisString=function(t,e,n){void 0===n&&(n="tail");var i=t.length,a="";if("tail"===n){for(var o=0,s=0;oMath.PI?1:0,u=[["M",a.x,a.y]];if(i-r==2*Math.PI){var c=(0,o.getCirclePoint)(e,n,r+Math.PI);u.push(["A",n,n,0,l,1,c.x,c.y]),u.push(["A",n,n,0,l,1,s.x,s.y])}else u.push(["A",n,n,0,l,1,s.x,s.y]);return u},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,i.__assign)({path:e},n)})},e}(a.default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(41)),o=r(n(58)),s=n(42),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:o.default.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),a=(0,s.regionToBBox)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a.default);e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(41)),o=n(42),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=(0,o.regionToBBox)({start:t,end:e}),a=this.get("src");return(0,i.__assign)({x:r.x,y:r.y,img:a,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a.default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=n(180),l=n(90),u=r(n(58)),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.default.fontFamily}}}})},e.prototype.renderInner=function(t){(0,a.get)(this.get("line"),"display")&&this.renderLine(t),(0,a.get)(this.get("text"),"display")&&this.renderText(t),(0,a.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,a=e.text,o=(0,i.__rest)(e,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,f=l.autoEllipsis,d=l.isVertival,p=l.ellipsisPosition,h={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:u,maxLength:c,autoEllipsis:f,isVertival:d,ellipsisPosition:p};(0,s.renderTag)(t,h)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),i=(0,a.get)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=t.getBBox(),u=s.minX,c=s.maxX,f=s.minY,d=s.maxY,p=t.findById(this.getElementId("text-group")),h=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(p){if(n+u<=o.minX){var v=o.minX-(n+u);(0,l.applyTranslate)(p,p.attr("x")+v,p.attr("y"))}if(n+c>=o.maxX){var v=n+c-o.maxX;(0,l.applyTranslate)(p,p.attr("x")-v,p.attr("y"))}}if("upward"===e&&r+f<=o.minY||"upward"!==e&&r+d>=o.maxY){var y=void 0,m=void 0;"upward"===e&&r+f<=o.minY?(y="top",m=1):(y="bottom",m=-1),h.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,i*m]]),(0,l.applyTranslate)(p,p.attr("x"),(i+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=(0,a.get)(this.get("line"),"display"),e=(0,a.get)(this.get("point"),"style",{}),n=(0,a.get)(this.get("line"),"style",{}),r=(0,a.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,a.get)(this.get("line"),"length",0):0,l="upward"===o?-1:1;return{point:(0,i.__assign)({x:0,y:0},e),line:(0,i.__assign)({path:[["M",0,0],["L",0,s*l]]},n),text:(0,i.__assign)({x:0,y:(s+2)*l,text:(0,a.get)(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},r)}},e}(o.default);e.default=c},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=r(n(58)),l=n(42),u=n(180),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:s.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:s.default.textColor,fontFamily:s.default.fontFamily}}}})},e.prototype.renderInner=function(t){var e=(0,a.get)(this.get("region"),"style",{});(0,a.get)(this.get("text"),"style",{});var n=this.get("lineLength")||0,r=this.get("points");if(r.length){var o=(0,l.pointsToBBox)(r),s=[];s.push(["M",r[0].x,o.minY-n]),r.forEach(function(t){s.push(["L",t.x,t.y])}),s.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({path:s},e)});var c=(0,i.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));(0,u.renderTag)(t,c)}},e}(o.default);e.default=c},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(41)),s=n(42),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,a.each)(this.get("shapes"),function(t,n){var r=t.get("type"),o=(0,a.clone)(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})});var o=(0,s.regionToBBox)({start:n,end:r});i.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.default);e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"shape",draw:a.noop})},e.prototype.renderInner=function(t){var e=this.get("render");(0,a.isFunction)(e)&&e(t)},e}(r(n(41)).default);e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(96),o=n(0),s=r(n(181)),l=n(42),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");(0,l.clearDom)(t);var n=(0,o.isFunction)(e)?e(t):e;if((0,o.isElement)(n))t.appendChild(n);else if((0,o.isString)(n)||(0,o.isNumber)(n)){var r=(0,a.createDom)(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),l=this.get("offsetY"),u=(0,a.getOuterWidth)(t),c=(0,a.getOuterHeight)(t),f={x:n,y:r};"middle"===i?f.x-=Math.round(u/2):"right"===i&&(f.x-=Math.round(u)),"middle"===o?f.y-=Math.round(c/2):"bottom"===o&&(f.y-=Math.round(c)),s&&(f.x+=s),l&&(f.y+=l),(0,a.modifyCSS)(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(s.default);e.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return i.default}});var i=r(n(867)),a=r(n(871)),o=r(n(255))},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(32),s=n(0),l=r(n(255)),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(434));function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,a.__assign)((0,a.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),a=Math.min(e.y,n.y,r.y),o=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return(0,s.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return(0,s.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=o.vec2.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return o.vec2.scale([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),l=i.offset,u=o,c=0,f=0;a&&(c=a.style.fontSize,f=a.spacing),u&&(u=u-l-f-c);var d=this.get("overlapOrder");if((0,s.each)(d,function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,u)}),a&&(0,s.isNil)(a.offset)){var p=t.getCanvasBBox(),h=n?p.width:p.height;a.offset=l+h+f+c/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,s.isNil)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=this.isVertical(),o=!1,l=u[t];if(!0===e?(this.get("label"),o=l.getDefault()(a,n,r)):(0,s.isFunction)(e)?o=e(a,n,r):(0,s.isObject)(e)?l[e.type]&&(o=l[e.type](a,n,r,e.cfg)):l[e]&&(o=l[e](a,n,r)),"autoRotate"===t){if(o){var c=n.getChildren(),f=this.get("verticalFactor");(0,s.each)(c,function(t){"center"===t.attr("textAlign")&&t.attr("textAlign",f>0?"end":"start")})}}else if("autoHide"===t){var d=n.getChildren().slice(0);(0,s.each)(d,function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())})}},e}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisHead=function(t,e,n){return a(t,e,n,"head")},e.ellipsisMiddle=function(t,e,n){return a(t,e,n,"middle")},e.ellipsisTail=o,e.getDefault=function(){return o};var r=n(0),i=n(142);function a(t,e,n,a){var o=e.getChildren(),s=!1;return(0,r.each)(o,function(e){var r=(0,i.ellipsisLabel)(t,e,n,a);s=s||r}),s}function o(t,e,n){return a(t,e,n,"tail")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equidistance=c,e.equidistanceWithReverseBoth=function(t,e,n,r){var i=e.getChildren().slice(),a=u(t,e,r);if(i.length>2){var o=i[0],s=i[i.length-1];!o.get("visible")&&(o.show(),l(t,e,!1,r)&&(a=!0)),!s.get("visible")&&(s.show(),l(t,e,!0,r)&&(a=!0))}return a},e.getDefault=function(){return c},e.reserveBoth=function(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,l=a.length,u=a[0],c=a[l-1],f=u,d=1;de.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}else{var c=Math.abs(Math.sin(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}return i}function l(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice().filter(function(t){return t.get("visible")});if(!a.length)return!1;var o=!1;n&&a.reverse();for(var l=a.length,u=a[0],c=1;c1){g=Math.ceil(g);for(var m=0;mn?r=Math.PI/4:(r=Math.asin(e/n))>Math.PI/4&&(r=Math.PI/4),r})};var i=n(0),a=n(142),o=n(90),s=r(n(58));function l(t,e,n,r){var s=e.getChildren();if(!s.length||!t&&s.length<2)return!1;var l=(0,a.getMaxLabelWidth)(s),u=!1;if(u=t?!!n&&l>n:l>Math.abs(s[1].attr("x")-s[0].attr("x"))){var c=r(n,l);(0,i.each)(s,function(t){var e=t.attr("x"),n=t.attr("y"),r=(0,o.getMatrixByAngle)({x:e,y:n},c);t.attr("matrix",r)})}return u}function u(t,e,n,r){return l(t,e,n,function(){return(0,i.isNumber)(r)?r:t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate})}},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(0),s=n(32),l=r(n(255)),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(434));function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,a.__assign)((0,a.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=this.get("startAngle"),a=this.get("endAngle"),o=[];if(Math.abs(a-i)===2*Math.PI)o=[["M",e,n-r],["A",r,r,0,1,1,e,n+r],["A",r,r,0,1,1,e,n-r],["Z"]];else{var s=this.getCirclePoint(i),l=this.getCirclePoint(a),u=Math.abs(a-i)>Math.PI?1:0,c=i>a?0:1;o=[["M",e,n],["L",s.x,s.y],["A",r,r,0,u,c,l.x,l.y],["L",e,n]]}return o},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=this.get("endAngle");return this.getCirclePoint(e+(n-e)*t)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),a=s.vec2.length(r);return s.vec2.scale(r,r,i*t/a),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,o.isNil)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),a=n.offset,s=i,l=0,u=0;r&&(l=r.style.fontSize,u=r.spacing),s&&(s=s-a-u-l);var c=this.get("overlapOrder");if((0,o.each)(c,function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,s)}),r&&(0,o.isNil)(r.offset)){var f=t.getCanvasBBox().height;r.offset=a+f+u+l/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=!1,s=u[t];if(r>0&&(!0===e?a=s.getDefault()(!1,n,r):(0,o.isFunction)(e)?a=e(!1,n,r):(0,o.isObject)(e)?s[e.type]&&(a=s[e.type](!1,n,r,e.cfg)):s[e]&&(a=s[e](!1,n,r))),"autoRotate"===t){if(a){var l=n.getChildren(),c=this.get("verticalFactor");(0,o.each)(l,function(t){"center"===t.attr("textAlign")&&t.attr("textAlign",c>0?"end":"start")})}}else if("autoHide"===t){var f=n.getChildren().slice(0);(0,o.each)(f,function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())})}},e}(l.default);e.default=f},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return i.default}});var i=r(n(873)),a=r(n(874)),o=r(n(256)),s=r(n(875))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(42),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return(0,a.getTextPoint)(e,n,i,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(r(n(256)).default);e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(42),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,s=r.startAngle,l=r.endAngle,u=this.getRotateAngle()-Math.PI,c=(0,a.getCirclePoint)(i,o,"start"===e?s:l),f=Math.cos(u)*n,d=Math.sin(u)*n;return{x:c.x+f,y:c.y+d}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r==2*Math.PI){var s=e.x,l=e.y;o=[["M",s,l-n],["A",n,n,0,1,1,s,l+n],["A",n,n,0,1,1,s,l-n],["Z"]]}else{var u=(0,a.getCirclePoint)(e,n,r),c=(0,a.getCirclePoint)(e,n,i),f=Math.abs(i-r)>Math.PI?1:0,d=r>i?0:1;o=[["M",u.x,u.y],["A",n,n,0,f,d,c.x,c.y]]}return o},e}(r(n(256)).default);e.default=o},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(96),s=n(0),l=n(42),u=r(n(181)),c=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=d(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(435)),f=r(n(876));function d(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(d=function(t){return t?n:e})(t)}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,a.__assign)((0,a.__assign)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
    ',crosshairTpl:'
    ',textTpl:'{content}',domStyles:null,containerClassName:c.CONTAINER_CLASS,defaultStyles:f.default,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=(0,o.createDom)(e);t.appendChild(n),this.applyStyle(c.CROSSHAIR_LINE,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return(0,l.getTextPoint)(e,n,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=(0,s.substitute)(this.get("textTpl"),t);e=(0,o.createDom)(i),r.appendChild(e),this.applyStyle(c.CROSSHAIR_TEXT,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?(0,o.modifyCSS)(t,{width:"1px",height:(0,l.toPx)(Math.abs(n.y-e.y))}):(0,o.modifyCSS)(t,{height:"1px",width:(0,l.toPx)(Math.abs(n.x-e.x))}),(0,o.modifyCSS)(t,{top:(0,l.toPx)(i),left:(0,l.toPx)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}(0,o.modifyCSS)(t,{top:(0,l.toPx)(r.y),left:(0,l.toPx)(r.x)})}},e.prototype.updateInner=function(e){(0,s.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(u.default);e.default=p},function(t,e,n){"use strict";var r,i=n(2),a=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(58)),s=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(435));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=((r={})[""+s.CONTAINER_CLASS]={position:"relative"},r[""+s.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+s.CROSSHAIR_TEXT]={position:"absolute",color:o.default.textColor,fontFamily:o.default.fontFamily},r);e.default=u},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return o.default}});var i=r(n(257)),a=r(n(878)),o=r(n(879))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),r=this.get("closed"),i=[];if(t.length){if("circle"===n){var o,s,l,u,c,f,d=this.get("center"),p=t[0],h=(o=d.x,s=d.y,l=p.x,u=p.y,Math.sqrt((c=l-o)*c+(f=u-s)*f)),g=e?0:1;r?(i.push(["M",d.x,d.y-h]),i.push(["A",h,h,0,0,g,d.x,d.y+h]),i.push(["A",h,h,0,0,g,d.x,d.y-h]),i.push(["Z"])):(0,a.each)(t,function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["A",h,h,0,0,g,t.x,t.y])})}else(0,a.each)(t,function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])}),r&&i.push(["Z"])}return i},e}(r(n(257)).default);e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return(0,a.each)(t,function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])}),e},e}(r(n(257)).default);e.default=o},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"Continuous",{enumerable:!0,get:function(){return a.default}});var i=r(n(881)),a=r(n(882)),o=r(n(258))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(142),s=n(90),l=n(433),u=r(n(58)),c=r(n(258)),f={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},d={fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:u.default.fontFamily,fontWeight:"normal",lineHeight:12},p="navigation-arrow-right",h="navigation-arrow-left",g={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},v=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndexg&&(g=m),"horizontal"===d?(v&&vx&&(x=e.width)}),_=x,x+=d,l&&(x=Math.min(l,x),_=Math.min(l,_)),this.pageWidth=x,this.pageHeight=u-Math.max(v.height,p+O);var A=Math.floor(this.pageHeight/(p+O));(0,a.each)(s,function(t,e){0!==e&&e%A==0&&(m+=1,y.x+=x,y.y=i),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:x,height:p}}),y.y+=p+O}),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+_/2-v.width/2-v.minX,y:u-v.height-v.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,a.get)(r.marker,"style",{}),u=l.size,c=void 0===u?12:u,f=(0,i.__rest)(l,["size"]),d=this.drawArrow(s,o,h,"horizontal"===e?"up":"left",c,f);d.on("click",this.onNavigationBack);var g=d.getBBox();o.x+=g.width+2;var v=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,i.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,a.get)(r.text,"style"))}).getBBox();return o.x+=v.width+2,this.drawArrow(s,o,p,"horizontal"===e?"down":"right",c,f).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=(0,a.deepMix)({},f,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId(h)):this.getElementByLocalId(h),c=t?t.findById(this.getElementId(p)):this.getElementByLocalId(p);l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?o:r),u.attr("fill",1===this.currentPageIndex?i:n),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:r),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?i:n),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var d=u.getBBox().maxX+2;l.attr("x",d),d+=l.getBBox().width+2,this.updateArrowPath(c,{x:d,y:0})},e.prototype.drawArrow=function(t,e,n,r,a,o){var l=e.x,u=e.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,i.__assign)({size:a,direction:r,path:[["M",l+a/2,u],["L",l,u+a],["L",l+a,u+a],["Z"]],cursor:"pointer"},o)});return c.attr("matrix",(0,s.getMatrixByAngle)({x:l+a/2,y:u+a/2},g[r])),c},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),a=i.size,o=i.direction,l=(0,s.getMatrixByAngle)({x:n+a/2,y:r+a/2},g[o]);t.attr("path",[["M",n+a/2,r],["L",n,r+a],["L",n+a,r+a],["Z"]]),t.attr("matrix",l)},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r=this.get("layout");return(0,s.getMatrixByTranslate)("horizontal"===r?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0})},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");(0,a.each)(n,function(e){var n=e.get("name").split("-")[2],i=(0,l.getStatesStyle)(t,n,r);i&&(e.attr(i),"marker"===n&&!(e.get("isStroke")&&e.get("isFill"))&&(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))})}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(c.default);e.default=v},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(58)),s=n(42),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:o.default.textColor,textBaseline:"middle",fontFamily:o.default.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:o.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];rn&&(r=n),e.setValue([r,n])})},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",function(t){n={x:t.x,y:t.y}}),t.on("legend-track:drag",function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),l=i-r;l<0?a[0]+l>s.min?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.min,s.min+o]):l>0&&(l>0&&a[1]+la&&(c=a),c0&&this.changeRailLength(r,i,n[i]-c)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+l.width+o,r.y),e.attr({x:r.x+l.width+s.width+2*o,y:r.y+c/2})):"top"===a?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+o}),e.attr({x:r.x+s.width,y:r.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o),e.attr({x:r.x,y:r.y+l.height+s.height+2*o});else if("right"===a)t.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+o,y:r.y+s.height});else{var c=Math.max(l.width,u.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+o,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(r(n(258)).default);e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return i.default}});var i=r(n(884))},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=r(n(140)),s=n(96),l=n(0),u=r(n(181)),c=n(42),f=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(259)),d=r(n(885)),p=n(886);function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,a.__assign)((0,a.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
      ',itemTpl:'
    • \n \n {name}:\n {value}\n
    • ',xCrosshairTpl:'
      ',yCrosshairTpl:'
      ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:f.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:d.default})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),(0,s.modifyCSS)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),(0,s.modifyCSS)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&(0,s.modifyCSS)(n,{display:e}),r&&(0,s.modifyCSS)(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){if(this.get("customContent"))this.renderCustomContent();else{var n;n=!1,(0,l.each)(["title","showTitle"],function(t){if((0,l.hasKey)(e,t))return n=!0,!1}),n&&this.resetTitle(),(0,l.hasKey)(e,"items")&&this.renderItems()}t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),a=i.offsetX,o=i.offsetY,l=this.get("position"),u=this.get("region"),f=this.getContainer(),d=this.getBBox(),h=d.width,g=d.height;u&&(t=(0,c.regionToBBox)(u));var v=(0,p.getAlignPoint)(e,n,r,h,g,l,t);(0,s.modifyCSS)(f,{left:(0,c.toPx)(v.x+a),top:(0,c.toPx)(v.y+o)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=(0,l.isElement)(n)?n:(0,s.createDom)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(f.TITLE_CLASS)[0],n=t.getElementsByClassName(f.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=(0,c.regionToBBox)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?(0,s.modifyCSS)(n,{left:(0,c.toPx)(r),top:(0,c.toPx)(e.y),height:(0,c.toPx)(e.height)}):(0,s.modifyCSS)(n,{top:(0,c.toPx)(r),left:(0,c.toPx)(e.x),width:(0,c.toPx)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=f["CROSSHAIR_"+t.toUpperCase()],r=this.get(e),i=this.get("parent");return r||(r=(0,s.createDom)(this.get(t+"CrosshairTpl")),this.applyStyle(n,r),i.appendChild(r),this.set(e,r)),r},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&((0,l.each)(t,function(t){var r=o.default.toCSSGradient(t.color),i=(0,a.__assign)((0,a.__assign)({},t),{color:r}),u=(0,l.substitute)(e,i),c=(0,s.createDom)(u);n.appendChild(c)}),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&(0,c.clearDom)(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(u.default);e.default=g},function(t,e,n){"use strict";var r,i=n(2),a=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(58)),s=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=i?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(259));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var u=((r={})[""+s.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:o.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+s.TITLE_CLASS]={marginBottom:"4px"},r[""+s.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+s.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+s.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+s.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+s.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+s.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r);e.default=u},function(t,e,n){"use strict";function r(t,e,n,r,i){return{left:ti.x+i.width,top:ei.y+i.height}}function i(t,e,n,r,i,a){var o=t,s=e;switch(a){case"left":o=t-r-n,s=e-i/2;break;case"right":o=t+n,s=e-i/2;break;case"top":o=t-r/2,s=e-i-n;break;case"bottom":o=t-r/2,s=e+n;break;default:o=t+n,s=e-i-n}return{x:o,y:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlignPoint=function(t,e,n,a,o,s,l){var u=i(t,e,n,a,o,s);if(l){var c=r(u.x,u.y,a,o,l);"auto"===s?(c.right&&(u.x=Math.max(0,t-a-n)),c.top&&(u.y=Math.max(0,e-o-n))):"top"===s||"bottom"===s?(c.left&&(u.x=l.x),c.right&&(u.x=l.x+l.width-a),"top"===s&&c.top&&(u.y=e+n),"bottom"===s&&c.bottom&&(u.y=e-o-n)):(c.top&&(u.y=l.y),c.bottom&&(u.y=l.y+l.height-o),"left"===s&&c.left&&(u.x=t+n),"right"===s&&c.right&&(u.x=t-a-n))}return u},e.getOutSides=r,e.getPointByPosition=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r.Slider}});var r=n(888)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Slider=void 0;var i=n(1),a=n(0),o=r(n(41)),s=n(889),l=n(892),u=n(893),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=(0,a.get)(r,"touches.0.pageX",r.pageX),e.prevY=(0,a.get)(r,"touches.0.pageY",r.pageY);var i=e.getContainerDOM();i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=(0,a.get)(t,"touches.0.pageX",t.pageX),o=(0,a.get)(t,"touches.0.pageY",t.pageY),s=i-e.prevX,l=e.adjustOffsetRange(s/n);e.updateStartEnd(l),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(u.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return(0,i.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),i=(0,a.clamp)(n,t,e),o=(0,a.clamp)(r,t,e);this.get("isInit")||n===i&&r===o||this.setValue([i,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if((0,a.isArray)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,a.clamp)(t[0],e.min,e.max),end:(0,a.clamp)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:u.BACKGROUND_STYLE,foregroundStyle:u.FOREGROUND_STYLE,handlerStyle:u.HANDLER_STYLE,textStyle:u.TEXT_STYLE}})},e.prototype.update=function(e){var n=e.start,r=e.end,o=(0,i.__assign)({},e);(0,a.isNil)(n)||(o.start=(0,a.clamp)(n,0,1)),(0,a.isNil)(r)||(o.end=(0,a.clamp)(r,0,1)),t.prototype.update.call(this,o),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",(0,a.clamp)(this.get("start"),0,1)),this.set("end",(0,a.clamp)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),r=e.height,o=e.trendCfg,c=void 0===o?{}:o,f=e.minText,d=e.maxText,p=e.backgroundStyle,h=void 0===p?{}:p,g=e.foregroundStyle,v=void 0===g?{}:g,y=e.textStyle,m=void 0===y?{}:y,b=(0,a.deepMix)({},l.DEFAULT_HANDLER_STYLE,this.cfg.handlerStyle);(0,a.size)((0,a.get)(c,"data"))&&(this.trend=this.addComponent(t,(0,i.__assign)({component:s.Trend,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},h)}),this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"right",text:f,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"left",text:d,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,i.__assign)({y:0,height:r},v)});var x=(0,a.get)(b,"width",u.DEFAULT_HANDLER_WIDTH),_=(0,a.get)(b,"height",24);this.minHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-_)/2,width:x,height:_,cursor:"ew-resize",style:b}),this.maxHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-_)/2,width:x,height:_,cursor:"ew-resize",style:b})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,i=r.start,o=r.end,s=r.width,l=r.minText,c=r.maxText,f=r.handlerStyle,d=r.height,p=i*s,h=o*s;this.trend&&(this.trend.update({width:s,height:d}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",h-p);var g=(0,a.get)(f,"width",u.DEFAULT_HANDLER_WIDTH);e.attr("text",l),n.attr("text",c);var v=this._dodgeText([p,h],e,n),y=v[0],m=v[1];this.minHandler&&(this.minHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,a.each)(y,function(t,n){return e.attr(n,t)}),this.maxHandler&&(this.maxHandler.update({x:h-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,a.each)(m,function(t,e){return n.attr(e,t)})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,a=1-n;return Math.min(a,Math.max(i,t));case"maxHandler":var i=0-r,a=1-r;return Math.min(a,Math.max(i,t));case"foreground":var i=0-n,a=1-r;return Math.min(a,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,i,o=this.cfg,s=o.handlerStyle,l=o.width,c=(0,a.get)(s,"width",u.DEFAULT_HANDLER_WIDTH),f=t[0],d=t[1],p=!1;f>d&&(f=(r=[d,f])[0],d=r[1],e=(i=[n,e])[0],n=i[1],p=!0);var h=e.getBBox(),g=n.getBBox(),v=h.width>f-2?{x:f+c/2+2,textAlign:"left"}:{x:f-c/2-2,textAlign:"right"},y=g.width>l-d-2?{x:d-c/2-2,textAlign:"right"}:{x:d+c/2+2,textAlign:"left"};return p?[y,v]:[v,y]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.default);e.Slider=c,e.default=c},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Trend=void 0;var i=n(1),a=r(n(41)),o=n(890),s=n(891),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o.BACKGROUND_STYLE,lineStyle:o.LINE_STYLE,areaStyle:o.AREA_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,a=e.data,o=e.smooth,l=e.isArea,u=e.backgroundStyle,c=e.lineStyle,f=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},u)});var d=(0,s.dataToPath)(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,i.__assign)({path:d},c)}),l){var p=(0,s.linePathToAreaPath)(d,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,i.__assign)({path:p},f)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a.default);e.Trend=l,e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LINE_STYLE=e.BACKGROUND_STYLE=e.AREA_STYLE=void 0,e.BACKGROUND_STYLE={opacity:0},e.LINE_STYLE={stroke:"#C5C5C5",strokeOpacity:.85},e.AREA_STYLE={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dataToPath=function(t,e,n,r){void 0===r&&(r=!0);var i=new a.Linear({values:t}),u=new a.Category({values:(0,o.map)(t,function(t,e){return e})}),c=(0,o.map)(t,function(t,r){return[u.scale(r)*e,n-i.scale(t)*n]});return r?l(c):s(c)},e.getAreaLineY=u,e.getLinePath=s,e.getSmoothLinePath=l,e.linePathToAreaPath=function(t,e,n,i){var a=(0,r.__spreadArrays)(t),o=u(i,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a};var r=n(1),i=n(88),a=n(66),o=n(0);function s(t){return(0,o.map)(t,function(t,e){return[0===e?"M":"L",t[0],t[1]]})}function l(t){if(t.length<=2)return s(t);var e=[];(0,o.each)(t,function(t){(0,o.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])});var n=(0,i.catmullRom2Bezier)(e,!1),r=(0,o.head)(t),a=r[0],l=r[1];return n.unshift(["M",a,l]),n}function u(t,e){var n=new a.Linear({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Handler=e.DEFAULT_HANDLER_STYLE=void 0;var i=n(1),a=r(n(41)),o={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"};e.DEFAULT_HANDLER_STYLE=o;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:o})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,a=i.fill,o=i.stroke,s=i.radius,l=i.opacity,u=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:l,cursor:u}});var c=1/3*n,f=2/3*n,d=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:d,x2:c,y2:p,stroke:o,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:d,x2:f,y2:p,stroke:o,cursor:u}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()}),this.get("group").on("mouseleave",function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()})},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(a.default);e.Handler=s,e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TEXT_STYLE=e.SLIDER_CHANGE=e.HANDLER_STYLE=e.FOREGROUND_STYLE=e.DEFAULT_HANDLER_WIDTH=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={fill:"#416180",opacity:.05},e.FOREGROUND_STYLE={fill:"#5B8FF9",opacity:.15,cursor:"move"},e.DEFAULT_HANDLER_WIDTH=10,e.HANDLER_STYLE={width:10,height:24},e.TEXT_STYLE={textBaseline:"middle",fill:"#000",opacity:.45},e.SLIDER_CHANGE="sliderchange"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(895);Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))})},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.DEFAULT_THEME=void 0;var i=n(1),a=n(96),o=n(0),s=r(n(41)),l={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}};e.DEFAULT_THEME=l;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?(0,o.get)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?(0,o.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[(0,a.addEventListener)(t,"touchmove",e.onMouseMove),(0,a.addEventListener)(t,"touchend",e.onMouseUp),(0,a.addEventListener)(t,"touchcancel",e.onMouseUp)]:[(0,a.addEventListener)(t,"mousemove",e.onMouseMove),(0,a.addEventListener)(t,"mouseup",e.onMouseUp),(0,a.addEventListener)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach(function(t){t.remove()})}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?(0,o.get)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?(0,o.get)(t,"touches.0.clientY"):t.clientY,l=r?a:s,u=l-e.startPos;e.startPos=l,e.updateThumbOffset(i+u)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,u=t.clientY,c=r?l-s.left-i-o/2:u-s.top-a-o/2,f=e.validateRange(c);e.updateThumbOffset(f)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return(0,i.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=(0,o.clamp)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,o.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return(0,o.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:l})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,r=e.theme,i=(0,o.deepMix)({},l,void 0===r?{default:{}}:r).default,a=i.lineCap,s=i.trackColor,u=i.size,c=(0,o.get)(this.cfg,"size",u),f=this.get("isHorizontal")?{x1:0+c/2,y1:c/2,x2:n-c/2,y2:c/2,lineWidth:c,stroke:s,lineCap:a}:{x1:c/2,y1:0+c/2,x2:c/2,y2:n-c/2,lineWidth:c,stroke:s,lineCap:a};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:f})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,a=(0,o.deepMix)({},l,i).default,s=a.size,u=a.lineCap,c=a.thumbColor,f=(0,o.get)(this.cfg,"size",s),d=this.get("isHorizontal")?{x1:n+f/2,y1:f/2,x2:n+r-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"}:{x1:f/2,y1:n+f/2,x2:f/2,y2:n+r-f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:d})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n=u-c&&f<=u+c},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a,o,s,l,u,c,f=this.attr(),d=i/2,p=f.x,h=f.y,g=f.rx,v=f.ry,y=(t-p)*(t-p),m=(e-h)*(e-h);return r&&n?1>=y/((a=g+d)*a)+m/((o=v+d)*o):r?1>=y/(g*g)+m/(v*v):!!n&&y/((s=g-d)*s)+m/((l=v-d)*l)>=1&&1>=y/((u=g+d)*u)+m/((c=v+d)*c)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,l=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(n(71).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(71),a=n(51);function o(t){return t instanceof HTMLElement&&a.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(a.isString(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):o(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,t.getAttribute("height")))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var e=this.attr(),n=e.x,r=e.y,i=e.width,s=e.height,l=e.sx,u=e.sy,c=e.swidth,f=e.sheight,d=e.img;(d instanceof Image||o(d))&&(a.isNil(l)||a.isNil(u)||a.isNil(c)||a.isNil(f)?t.drawImage(d,n,r,i,s):t.drawImage(d,l,u,c,f,n,r,i,s))},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(38),a=n(71),o=n(183),s=n(182),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&s.addStartArrow(this,t,r,i,e,n),o&&s.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr(),s=a.x1,l=a.y1,u=a.x2,c=a.y2;return o.default(s,l,u,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,l=e.endArrow,u={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(u=s.getShortenOffset(n,r,i,a,e.startArrow.d)),l&&l.d&&(c=s.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,a=t.y2;return i.Line.length(e,n,r,a)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,a=e.x2,o=e.y2;return i.Line.pointAt(n,r,a,o,t)},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(88),o=n(71),s=n(51),l=n(144),u={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return i.isNil(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,l=r.symbol||"circle",u=this._getR(r);if(s.isFunction(l))n=(t=l)(i,o,u),n=a.path2Absolute(n);else{if(!(t=e.Symbols[l]))return console.warn(l+" marker is not supported."),null;n=t(i,o,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");l.drawPath(this,t,{path:e},n)},e.Symbols=u,e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(38),a=n(0),o=n(71),s=n(88),l=n(144),u=n(439),c=n(440),f=n(906),d=n(182);function p(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)});var s=o[n];if(a.isNil(s)||a.isNil(n))return null;var l=s.length,u=o[n+1];return i.Cubic.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",f.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r=0,o=0,s=[],l=this.get("curve");if(l){if(a.each(l,function(t,a){e=l[a+1],n=t.length,e&&(r+=i.Cubic.length(t[n-2],t[n-1],e[1],e[2],e[3],e[4],e[5],e[6])||0)}),this.set("totalLength",r),0===r){this.set("tCache",[]);return}a.each(l,function(a,u){e=l[u+1],n=a.length,e&&((t=[])[0]=o/r,o+=i.Cubic.length(a[n-2],a[n-1],e[1],e[2],e[3],e[4],e[5],e[6])||0,t[1]=o/r,s.push(t))}),this.set("tCache",s)}},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(o.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(38),o=n(38),s=n(32),l=n(171),u=n(51),c=n(183),f=n(441),d=s.ext.transform;e.default=r.__assign({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var s=!1,p=e/2,h=0;hM?P:M,T=d(null,[["t",-_,-O],["r",-w],["s",1/(P>M?1:P/M),1/(P>M?M/P:1)]]);l.transformMat3(E,E,T),s=f.default(0,0,C,A,S,e,E[0],E[1])}if(s)break}}return s}},i.PathUtil)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(71),a=n(442),o=n(440),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var s=this.attr().points,l=!1;return n&&(l=a.default(s,i,t,e,!0)),!l&&r&&(l=o.default(s,t,e)),l},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}),i.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t,e=this.attr().points;if(e&&0!==e.length){var n=this.getTotalLength();if(!(n<=0)){var r=0,a=[];o.each(e,function(o,s){e[s+1]&&((t=[])[0]=r/n,r+=i.Line.length(o[0],o[1],e[s+1][0],e[s+1][1]),t[1]=r/n,a.push(t))}),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(71),a=n(437),o=n(51),s=n(910),l=n(911),u=n(439),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),c=a.x,f=a.y,d=a.width,p=a.height,h=a.radius;if(h){var g=!1;return n&&(g=l.default(c,f,d,p,h,i,t,e)),!g&&r&&(g=u.default(this,t,e)),g}var v=i/2;return r&&n?o.inBox(c-v,f-v,d+v,p+v,t,e):r?o.inBox(c,f,d,p,t,e):n?s.default(c,f,d,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,o=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,o);else{var l=a.parseRadius(s),u=l[0],c=l[1],f=l[2],d=l[3];t.moveTo(n+u,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+o-f),0!==f&&t.arc(n+i-f,r+o-f,f,0,Math.PI/2),t.lineTo(n+d,r+o),0!==d&&t.arc(n+d,r+o-d,d,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(i.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(51);e.default=function(t,e,n,i,a,o,s){var l=a/2;return r.inBox(t-l,e-l,n,a,o,s)||r.inBox(t+n-l,e-l,a,i,o,s)||r.inBox(t+l,e+i-l,n,a,o,s)||r.inBox(t-l,e+l,a,i,o,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(183),i=n(441);e.default=function(t,e,n,a,o,s,l,u){return r.default(t+o,e,t+n-o,e,s,l,u)||r.default(t+n,e+o,t+n,e+a-o,s,l,u)||r.default(t+n-o,e+a,t+o,e+a,s,l,u)||r.default(t,e+a-o,t,e+o,s,l,u)||i.default(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,l,u)||i.default(t+n-o,e+a-o,o,0,.5*Math.PI,s,l,u)||i.default(t+o,e+a-o,o,.5*Math.PI,Math.PI,s,l,u)||i.default(t+o,e+o,o,Math.PI,1.5*Math.PI,s,l,u)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(71),a=n(51),o=n(26),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=o.assembleFont(t)},e.prototype._setText=function(t){var e=null;a.isString(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,s=i.textBaseline,l=i.x,u=i.y,c=1*i.fontSize,f=this._getSpaceingY(),d=o.getTextHeight(i.text,i.fontSize,i.lineHeight);a.each(e,function(e,i){r=u+i*(f+c)-d+c,"middle"===s&&(r+=d-c-(d-c)/2),"top"===s&&(r+=d-c),a.isNil(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,r))})},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var s=n.text;a.isNil(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(a.isNil(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(a.isNil(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(914),o=n(143),s=n(260),l=n(51),u=n(144),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){("attr"===t||"sort"===t||"changeSize"===t)&&(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return s.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||l.getPixelRatio();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?a.getShape(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();return e.length&&e[0]===this?t=n:(t=u.getMergedRegion(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=u.mergeView(t,n))),t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(l.clearAnimationFrame(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),u.applyAttrsToContext(t,this),u.drawChildren(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),u.applyAttrsToContext(t,this),u.checkRefresh(this,n,r),u.drawChildren(t,n,r),t.restore()):e.length&&u.clearChanged(e),l.each(e,function(t){t.get("hasChanged")&&t.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=l.requestAnimationFrame(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)}),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(i.AbstractCanvas);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n(26);function i(t,e,n){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var n=r.invert(e);return r.multiplyVec2(n,t)}return t}([e,n,1],i);return[a[0],a[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!r.isAllowCapture(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,n),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),l=s.length,u=l-1;u>=0;u--){var c=s[u];if(c.isGroup())o=t(c,n,r);else if(a(c,n,r)){var f=i(c,n,r),d=f[0],p=f[1];c.isInShape(d,p)&&(o=c)}if(o)break}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t)})},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return r.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(i.each(e||n,function(t,e){a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t)}),"function"==typeof n.html){var o=n.html.call(this,n);if(o instanceof Element||o instanceof HTMLDocument){for(var s=r.childNodes,l=s.length-1;l>=0;l--)r.removeChild(s[l]);r.appendChild(o)}else r.innerHTML=o}else r.innerHTML=n.html},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t)})},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el");i.each(e||r,function(t,e){"img"===e?n._setImage(r.img):a.SVG_ATTR_MAP[e]&&o.setAttribute(a.SVG_ATTR_MAP[e],t)})},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if(i.isString(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&i.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(38),a=n(0),o=n(52),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");a.each(e||n,function(e,i){if("startArrow"===i||"endArrow"===i){if(e){var s=a.isObject(e)?t.addArrow(n,o.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,o.SVG_ATTR_MAP[i]);r.setAttribute(o.SVG_ATTR_MAP[i],"url(#"+s+")")}else r.removeAttribute(o.SVG_ATTR_MAP[i])}else o.SVG_ATTR_MAP[i]&&r.setAttribute(o.SVG_ATTR_MAP[i],e)})},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,a=t.y2;return i.Line.length(e,n,r,a)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,a=e.x2,o=e.y2;return i.Line.pointAt(n,r,a,o,t)},e}(n(62).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(62),o=n(921),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return i.isArray(t)?t.map(function(t){return t.join(" ")}).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,a=e.r||e.radius,s=e.symbol||"circle";return(t=i.isFunction(s)?s:o.default.get(s))?t(n,r,a):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=o.default,e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,-(2*n),0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),o=this.get("el");i.each(e||r,function(e,s){if("path"===s&&i.isArray(e))o.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s){if(e){var l=i.isObject(e)?t.addArrow(r,a.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,a.SVG_ATTR_MAP[s]);o.setAttribute(a.SVG_ATTR_MAP[s],"url(#"+l+")")}else o.removeAttribute(a.SVG_ATTR_MAP[s])}else a.SVG_ATTR_MAP[s]&&o.setAttribute(a.SVG_ATTR_MAP[s],e)})},e.prototype._formatPath=function(t){var e=t.map(function(t){return t.join(" ")}).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(52),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");i.each(e||n,function(t,e){"points"===e&&i.isArray(t)&&t.length>=2?r.setAttribute("points",t.map(function(t){return t[0]+","+t[1]}).join(" ")):a.SVG_ATTR_MAP[e]&&r.setAttribute(a.SVG_ATTR_MAP[e],t)})},e}(n(62).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(38),a=n(38),o=n(0),s=n(52),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");o.each(e||n,function(t,e){"points"===e&&o.isArray(t)&&t.length>=2?r.setAttribute("points",t.map(function(t){return t[0]+","+t[1]}).join(" ")):s.SVG_ATTR_MAP[e]&&r.setAttribute(s.SVG_ATTR_MAP[e],t)})},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return o.isNil(e)?(this.set("totalLength",i.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),o.each(i,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t,e=this.attr().points;if(e&&0!==e.length){var n=this.getTotalLength();if(!(n<=0)){var r=0,i=[];o.each(e,function(o,s){e[s+1]&&((t=[])[0]=r/n,r+=a.Line.length(o[0],o[1],e[s+1][0],e[s+1][1]),t[1]=r/n,i.push(t))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(n(62).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(62),o=n(52),s=n(926),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),a=this.get("el"),s=!1,l=["x","y","width","height","radius"];i.each(e||r,function(t,e){-1===l.indexOf(e)||s?-1===l.indexOf(e)&&o.SVG_ATTR_MAP[e]&&a.setAttribute(o.SVG_ATTR_MAP[e],t):(a.setAttribute("d",n._assembleRect(r)),s=!0)})},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,a=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+a+" l"+-r+" 0 z";var l=s.parseRadius(o);return i.isArray(o)?1===o.length?l.r1=l.r2=l.r3=l.r4=o[0]:2===o.length?(l.r1=l.r3=o[0],l.r2=l.r4=o[1]):3===o.length?(l.r1=o[0],l.r2=l.r4=o[1],l.r3=o[2]):(l.r1=o[0],l.r2=o[1],l.r3=o[2],l.r4=o[3]):l.r1=l.r2=l.r3=l.r4=o,[["M "+(e+l.r1)+","+n],["l "+(r-l.r1-l.r2)+",0"],["a "+l.r2+","+l.r2+",0,0,1,"+l.r2+","+l.r2],["l 0,"+(a-l.r2-l.r3)],["a "+l.r3+","+l.r3+",0,0,1,"+-l.r3+","+l.r3],["l "+(l.r3+l.r4-r)+",0"],["a "+l.r4+","+l.r4+",0,0,1,"+-l.r4+","+-l.r4],["l 0,"+(l.r4+l.r1-a)],["a "+l.r1+","+l.r1+",0,0,1,"+l.r1+","+-l.r1],["z"]].join(" ")},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return r.isArray(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},e.parsePath=function(t){return(t=t||[],r.isArray(t))?t:r.isString(t)?(t=t.match(i),r.each(t,function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}r.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(242),o=n(145),s=n(52),l=n(62),u={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},c={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},f={left:"left",start:"left",center:"middle",right:"end",end:"end"},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),a=this.get("el");this._setFont(),i.each(e||r,function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?o.setTransform(n):s.SVG_ATTR_MAP[e]&&a.setAttribute(s.SVG_ATTR_MAP[e],t)}),a.setAttribute("paint-order","stroke"),a.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=a.detect();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",c[n]||"alphabetic"):t.setAttribute("alignment-baseline",u[n]||"baseline"),t.setAttribute("text-anchor",f[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,a=n.textBaseline,o=void 0===a?"bottom":a;if(t){if(~t.indexOf("\n")){var s=t.split("\n"),l=s.length-1,u="";i.each(s,function(t,e){0===e?"alphabetic"===o?u+=''+t+"":"top"===o?u+=''+t+"":"middle"===o?u+=''+t+"":"bottom"===o?u+=''+t+"":"hanging"===o&&(u+=''+t+""):u+=''+t+""}),e.innerHTML=u}else e.innerHTML=t}else e.innerHTML=""},e}(l.default);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(26),a=n(52),o=n(261),s=n(145),l=n(72),u=n(184),c=n(262),f=n(929),d=function(t){function e(e){return t.call(this,r.__assign(r.__assign({},e),{autoDraw:!0,renderer:"svg"}))||this}return r.__extends(e,t),e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return c.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!a.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!a.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find(function(t){return t.get("el")===r})},e.prototype.createDom=function(){var t=l.createSVGElement("svg"),e=new f.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&l.sortDom(this,function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0})}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?s.setTransform(this):"clip"===t?s.setClip(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();s.setClip(this,t),e.length&&o.drawChildren(t,e)},e}(i.AbstractCanvas);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(930),a=n(931),o=n(932),s=n(933),l=n(934),u=n(72),c=function(){function t(t){var e=u.createSVGElement("defs"),n=r.uniqueId("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i'}),n}var u=function(){function t(t){this.cfg={};var e,n,s,u,c,f,d,p,h,g,v,y,m,b,x,_,O=null,P=r.uniqueId("gradient_");return"l"===t.toLowerCase()[0]?(e=O=i.createSVGElement("linearGradient"),u=a.exec(t),c=r.mod(r.toRadian(parseFloat(u[1])),2*Math.PI),f=u[2],c>=0&&c<.5*Math.PI?(n={x:0,y:0},s={x:1,y:1}):.5*Math.PI<=c&&c';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(72),a=function(){function t(t,e){this.cfg={};var n=i.createSVGElement("marker"),a=r.uniqueId("marker_");n.setAttribute("id",a);var o=i.createSVGElement("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;r.isArray(i)&&(i=i.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(72),a=function(){function t(t){this.type="clip",this.cfg={};var e=i.createSVGElement("clipPath");this.el=e,this.id=r.uniqueId("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(72),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=i.createSVGElement("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=i.createSVGElement("image");e.appendChild(n);var o=r.uniqueId("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];n.setAttribute("href",s);var l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(443),s=n(160),l=function(t){function e(e){var n=this,l=e.container,u=e.width,c=e.height,f=e.autoFit,d=void 0!==f&&f,p=e.padding,h=e.appendPadding,g=e.renderer,v=void 0===g?"canvas":g,y=e.pixelRatio,m=e.localRefresh,b=void 0===m||m,x=e.visible,_=e.supportCSSTransform,O=e.defaultInteractions,P=void 0===O?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:O,M=e.options,A=e.limitInPlot,S=e.theme,w=e.syncViewPadding,E=(0,i.isString)(l)?document.getElementById(l):l,C=(0,s.createDom)('
      ');E.appendChild(C);var T=(0,s.getChartSize)(E,d,u,c),I=new((0,o.getEngine)(v)).Canvas((0,r.__assign)({container:C,pixelRatio:y,localRefresh:b,supportCSSTransform:void 0!==_&&_},T));return(n=t.call(this,{parent:null,canvas:I,backgroundGroup:I.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:I.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:I.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:h,visible:void 0===x||x,options:M,limitInPlot:A,theme:S,syncViewPadding:w})||this).onResize=(0,i.debounce)(function(){n.forceFit()},300),n.ele=E,n.canvas=I,n.width=T.width,n.height=T.height,n.autoFit=d,n.localRefresh=b,n.renderer=v,n.wrapperElement=C,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(P),n}return(0,r.__extends)(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;(0,i.each)(t,function(t){e.interaction(t)})},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,s.removeDom)(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=(0,s.getChartSize)(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){(0,s.modifyCSS)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}((0,r.__importDefault)(n(444)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseAction=void 0;var r=n(1),i=n(0),a=n(203),o=(0,r.__importDefault)(n(938)),s=(0,r.__importDefault)(n(445));function l(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||(0,a.createAction)(i,e);if(!o)throw Error("There is no action named "+i);return{action:o,methodName:r[1],arg:n}}function u(t){var e=t.action,n=t.methodName,r=t.arg;if(e[n])e[n](r);else throw Error("Action("+e.name+") doesn't have a method called "+n)}e.parseAction=l;var c={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},f=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return(0,r.__extends)(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;(0,i.each)(this.steps,function(e,n){(0,i.each)(e,function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)})})},e.prototype.clearEvents=function(){var t=this;(0,i.each)(this.steps,function(e,n){(0,i.each)(e,function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)})})},e.prototype.initContext=function(){var t=this.view,e=new o.default(t);this.context=e;var n=this.steps;(0,i.each)(n,function(t){(0,i.each)(t,function(t){if((0,i.isFunction)(t.action))t.actionObject={action:(0,a.createCallbackAction)(t.action,e),methodName:"execute"};else if((0,i.isString)(t.action))t.actionObject=l(t.action,e,t.arg);else if((0,i.isArray)(t.action)){var n=t.action,r=(0,i.isArray)(t.arg)?t.arg:[t.arg];t.actionObject=[],(0,i.each)(n,function(n,i){t.actionObject.push(l(n,e,r[i]))})}})})},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t||t===c.SHOW_ENABLE)return!0;if(t===c.PROCESSING)return e===c.START;if(t===c.START)return e!==c.PROCESSING;if(t===c.END)return e===c.PROCESSING||e===c.START;if(t===c.ROLLBACK){if(n[c.END])return e===c.END;if(e===c.START)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==c.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,a=this.callbackCaches,o=e.actionObject;if(e.action&&o){var s=this.getKey(t,e);if(!a[s]){var l=function(a){r.event=a,n.isAllowExecute(t,e)?((0,i.isArray)(o)?(0,i.each)(o,function(t){r.event=a,u(t)}):(r.event=a,u(o)),n.afterExecute(t,e),e.callback&&(r.event=a,e.callback(r))):r.event=null};e.debounce?a[s]=(0,i.debounce)(l,e.debounce.wait,e.debounce.immediate):e.throttle?a[s]=(0,i.throttle)(l,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):a[s]=l}return a[s]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}((0,r.__importDefault)(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(31),a=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return(0,r.get)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=(0,i.getComponents)(this.view),n=this.getCurrentPoint();return!!n&&!!e.find(function(e){var r=e.getBBox();return t?e.get("name")===t&&(0,i.isInBox)(r,n):(0,i.isInBox)(r,n)})},t.prototype.destroy=function(){(0,r.each)(this.actions.slice(),function(t){t.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(1),i=n(0),a=n(106),o=n(161);e.createTheme=function(t){var e=t.styleSheet,n=(0,r.__rest)(t,["styleSheet"]),s=(0,o.createLightStyleSheet)(void 0===e?{}:e);return(0,i.deepMix)({},(0,a.createThemeByStyleSheet)(s),n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(69),o=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return(0,i.some)(e,function(e){return e[0]===t})},t.prototype.create=function(t,e){var n=this.option,i=n.type,o=n.cfg,s="theta"===i,l=(0,r.__assign)({start:t,end:e},o),u=(0,a.getCoordinate)(s?"polar":i);return this.coordinate=new u(l),this.coordinate.type=i,s&&!this.hasAction("transpose")&&this.transpose(),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return(0,r.__assign)({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;(0,i.each)(n,function(n){var r,a=n[0],o=n.slice(1);((0,i.isNil)(t)||t.includes(a))&&(r=e.coordinate)[a].apply(r,o)})},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach(function(t){t&&t.layout()})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScalePool=void 0;var r=n(0),i=n(111),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,a){var o=n,s=this.getScaleMeta(a);if(0===e.length&&s){var l=s.scale,u={type:l.type};l.isCategory&&(u.values=l.values),o=(0,r.deepMix)(u,s.scaleDef,n)}var c=(0,i.createScaleByField)(t,e,o);return this.cacheScale(c,n,a),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach(function(a,o){var s=Number.MAX_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER,u=[];(0,r.each)(a,function(t){var e=n.getScale(t);l=(0,r.isNumber)(e.max)?Math.max(l,e.max):l,s=(0,r.isNumber)(e.min)?Math.min(s,e.min):s,(0,r.each)(e.values,function(t){u.includes(t)||u.push(t)})}),(0,r.each)(a,function(a){var o=n.getScale(a);if(o.isContinuous)o.change({min:s,max:l,values:u});else if(o.isCategory){var c=o.range,f=n.getScaleMeta(a);u&&!(0,r.get)(f,["scaleDef","range"])&&(c=(0,i.getDefaultCategoryScaleRange)((0,r.deepMix)({},o,{values:u}),t,e)),o.change({values:u,range:c})}})})},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?((0,i.syncScale)(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var a=this.getSyncKey(r);if(r.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=(0,r.last)(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach(function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1})},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,a=(0,r.get)(n,["sync"]);return!0===a?i:!1===a?void 0:a},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();e.ScalePool=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePadding=void 0;var r=n(1),i=n(0),a=n(21),o=n(80),s=n(267),l=n(448);e.calculatePadding=function(t){var e=t.padding;if(!(0,s.isAutoPadding)(e))return new(l.PaddingCal.bind.apply(l.PaddingCal,(0,r.__spreadArray)([void 0],(0,s.parsePadding)(e),!1)));var n=t.viewBBox,u=new l.PaddingCal,c=[],f=[],d=[];return(0,i.each)(t.getComponents(),function(t){var e=t.type;e===a.COMPONENT_TYPE.AXIS?c.push(t):[a.COMPONENT_TYPE.LEGEND,a.COMPONENT_TYPE.SLIDER,a.COMPONENT_TYPE.SCROLLBAR].includes(e)?f.push(t):e!==a.COMPONENT_TYPE.GRID&&e!==a.COMPONENT_TYPE.TOOLTIP&&d.push(t)}),(0,i.each)(c,function(t){var e=t.component.getLayoutBBox(),r=new o.BBox(e.x,e.y,e.width,e.height).exceed(n);u.max(r)}),(0,i.each)(f,function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=e.get("padding"),a=new o.BBox(r.x,r.y,r.width,r.height).expand(i);u.inc(a,n)}),(0,i.each)(d,function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new o.BBox(r.x,r.y,r.width,r.height);u.inc(i,n)}),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSyncViewPadding=void 0,e.defaultSyncViewPadding=function(t,e,n){var r=n.instance();e.forEach(function(t){t.autoPadding=r.max(t.autoPadding.getPadding())})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.group=void 0;var r=n(0);e.group=function(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=(0,r.groupToMap)(t,e),a=[];if(1===e.length&&n[e[0]])for(var o=n[e[0]],s=0;s=e.getCount()&&!t.destroyed&&e.add(t)})}},function(t,e,n){"use strict";var r=n(5);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(222),i=n(167),a=n(162),o=n(320),s=n(223),l=n(321),u=n(322),c=n(224),f=n(25);Object(f.registerAnimation)("fade-in",r.fadeIn),Object(f.registerAnimation)("fade-out",r.fadeOut),Object(f.registerAnimation)("grow-in-x",i.growInX),Object(f.registerAnimation)("grow-in-xy",i.growInXY),Object(f.registerAnimation)("grow-in-y",i.growInY),Object(f.registerAnimation)("scale-in-x",s.scaleInX),Object(f.registerAnimation)("scale-in-y",s.scaleInY),Object(f.registerAnimation)("wave-in",u.waveIn),Object(f.registerAnimation)("zoom-in",c.zoomIn),Object(f.registerAnimation)("zoom-out",c.zoomOut),Object(f.registerAnimation)("position-update",o.positionUpdate),Object(f.registerAnimation)("sector-path-update",l.sectorPathUpdate),Object(f.registerAnimation)("path-in",a.pathIn)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doScaleAnimate=e.transformShape=void 0;var r=n(32);function i(t,e,n){var i,a=e[0],o=e[1];return t.applyToMatrix([a,o,1]),"x"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):"y"===n?(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):"xy"===n&&(t.setMatrix(r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=r.ext.transform(t.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}e.transformShape=i,e.doScaleAnimate=function(t,e,n,r,a){var o,s,l=n.start,u=n.end,c=n.getWidth(),f=n.getHeight();"y"===a?(o=l.x+c/2,s=r.yl.x?r.x:l.x,s=l.y+f/2):"xy"===a&&(n.isPolar?(o=n.getCenter().x,s=n.getCenter().y):(o=(l.x+u.x)/2,s=(l.y+u.y)/2));var d=i(t,[o,s],a);t.animate({matrix:d},e)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=n(53),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,l=a.y,u=a.r,c=i/2,f=(0,o.distance)(s,l,t,e);return r&&n?f<=u+c:r?f<=u:!!n&&f>=u-c&&f<=u+c},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(a.default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a,o,s,l,u,c,f=this.attr(),d=i/2,p=f.x,h=f.y,g=f.rx,v=f.ry,y=(t-p)*(t-p),m=(e-h)*(e-h);return r&&n?1>=y/((a=g+d)*a)+m/((o=v+d)*o):r?1>=y/(g*g)+m/(v*v):!!n&&y/((s=g-d)*s)+m/((l=v-d)*l)>=1&&1>=y/((u=g+d)*u)+m/((c=v+d)*c)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,l=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(r(n(73)).default);e.default=a},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=n(53);function s(t){return t instanceof HTMLElement&&(0,o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,o.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):s(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,t.getAttribute("height")))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading")){this.set("toDraw",!0),this.set("context",t);return}var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,l=e.sx,u=e.sy,c=e.swidth,f=e.sheight,d=e.img;(d instanceof Image||s(d))&&((0,o.isNil)(l)||(0,o.isNil)(u)||(0,o.isNil)(c)||(0,o.isNil)(f)?t.drawImage(d,n,r,i,a):t.drawImage(d,l,u,c,f,n,r,i,a))},e}(a.default);e.default=l},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(38),s=r(n(73)),l=r(n(189)),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=c(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(188));function c(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(c=function(t){return t?n:e})(t)}var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,a.__assign)((0,a.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&u.addStartArrow(this,t,r,i,e,n),o&&u.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr(),o=a.x1,s=a.y1,u=a.x2,c=a.y2;return(0,l.default)(o,s,u,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(l=u.getShortenOffset(n,r,i,a,e.startArrow.d)),s&&s.d&&(c=u.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,r+l.dy),t.lineTo(i-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return o.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2;return o.Line.pointAt(n,r,i,a,t)},e}(s.default);e.default=f},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(88),s=r(n(73)),l=n(53),u=n(148),c={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,a.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,s=r.symbol||"circle",u=this._getR(r);if((0,l.isFunction)(s))n=(t=s)(i,a,u),n=(0,o.path2Absolute)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,a,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");(0,u.drawPath)(this,t,{path:e},n)},e.Symbols=c,e}(s.default);e.default=f},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(38),s=n(0),l=r(n(73)),u=n(88),c=n(148),f=r(n(455)),d=r(n(456)),p=r(n(958)),h=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=g(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(188));function g(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(g=function(t){return t?n:e})(t)}function v(t,e,n){for(var r=!1,i=0;i=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)});var a=i[n];if((0,s.isNil)(a)||(0,s.isNil)(n))return null;var l=a.length,u=i[n+1];return o.Cubic.pointAt(a[l-2],a[l-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",p.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r=0,i=0,a=[],l=this.get("curve");if(l){if((0,s.each)(l,function(t,i){e=l[i+1],n=t.length,e&&(r+=o.Cubic.length(t[n-2],t[n-1],e[1],e[2],e[3],e[4],e[5],e[6])||0)}),this.set("totalLength",r),0===r){this.set("tCache",[]);return}(0,s.each)(l,function(s,u){e=l[u+1],n=s.length,e&&((t=[])[0]=i/r,i+=o.Cubic.length(s[n-2],s[n-1],e[1],e[2],e[3],e[4],e[5],e[6])||0,t[1]=i/r,a.push(t))}),this.set("tCache",a)}},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(l.default);e.default=y},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(26),s=n(38),l=n(32),u=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(171)),c=n(53),f=r(n(189)),d=r(n(457));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}var h=l.ext.transform,g=(0,a.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,o=e/2,l=0;lP?O:P,C=h(null,[["t",-x,-_],["r",-S],["s",1/(O>P?1:O/P),1/(O>P?P/O:1)]]);u.transformMat3(w,w,C),a=(0,d.default)(0,0,E,M,A,e,w[0],w[1])}if(a)break}}return a}},o.PathUtil);e.default=g},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=r(n(458)),s=r(n(456)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr().points,l=!1;return n&&(l=(0,o.default)(a,i,t,e,!0)),!l&&r&&(l=(0,s.default)(a,t,e)),l},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t,e=this.attr().points;if(e&&0!==e.length){var n=this.getTotalLength();if(!(n<=0)){var r=0,i=[];(0,s.each)(e,function(a,s){e[s+1]&&((t=[])[0]=r/n,r+=o.Line.length(a[0],a[1],e[s+1][0],e[s+1][1]),t[1]=r/n,i.push(t))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(l.default);e.default=d},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=n(453),s=n(53),l=r(n(962)),u=r(n(963)),c=r(n(455)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),o=a.x,f=a.y,d=a.width,p=a.height,h=a.radius;if(h){var g=!1;return n&&(g=(0,u.default)(o,f,d,p,h,i,t,e)),!g&&r&&(g=(0,c.default)(this,t,e)),g}var v=i/2;return r&&n?(0,s.inBox)(o-v,f-v,d+v,p+v,t,e):r?(0,s.inBox)(o,f,d,p,t,e):n?(0,l.default)(o,f,d,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var l=(0,o.parseRadius)(s),u=l[0],c=l[1],f=l[2],d=l[3];t.moveTo(n+u,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+a-f),0!==f&&t.arc(n+i-f,r+a-f,f,0,Math.PI/2),t.lineTo(n+d,r+a),0!==d&&t.arc(n+d,r+a-d,d,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i,a,o,s){var l=a/2;return(0,r.inBox)(t-l,e-l,n,a,o,s)||(0,r.inBox)(t+n-l,e-l,a,i,o,s)||(0,r.inBox)(t+l,e+i-l,n,a,o,s)||(0,r.inBox)(t-l,e+l,a,i,o,s)};var r=n(53)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,o,s,l,u){return(0,i.default)(t+o,e,t+n-o,e,s,l,u)||(0,i.default)(t+n,e+o,t+n,e+r-o,s,l,u)||(0,i.default)(t+n-o,e+r,t+o,e+r,s,l,u)||(0,i.default)(t,e+r-o,t,e+o,s,l,u)||(0,a.default)(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,l,u)||(0,a.default)(t+n-o,e+r-o,o,0,.5*Math.PI,s,l,u)||(0,a.default)(t+o,e+r-o,o,.5*Math.PI,Math.PI,s,l,u)||(0,a.default)(t+o,e+o,o,Math.PI,1.5*Math.PI,s,l,u)};var i=r(n(189)),a=r(n(457))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=r(n(73)),o=n(53),s=n(26),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,s.assembleFont)(t)},e.prototype._setText=function(t){var e=null;(0,o.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,a=i.textBaseline,l=i.x,u=i.y,c=1*i.fontSize,f=this._getSpaceingY(),d=(0,s.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,o.each)(e,function(e,i){r=u+i*(f+c)-d+c,"middle"===a&&(r+=d-c-(d-c)/2),"top"===a&&(r+=d-c),(0,o.isNil)(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,r))})},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;(0,o.isNil)(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(a.default);e.default=l},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(26),s=n(966),l=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=d(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(147)),u=r(n(273)),c=n(53),f=n(148);function d(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(d=function(t){return t?n:e})(t)}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){("attr"===t||"sort"===t||"changeSize"===t)&&(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return u.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(0,c.getPixelRatio)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?(0,s.getShape)(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();return e.length&&e[0]===this?t=n:(t=(0,f.getMergedRegion)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=(0,f.mergeView)(t,n))),t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,c.clearAnimationFrame)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),(0,f.applyAttrsToContext)(t,this),(0,f.drawChildren)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),(0,f.applyAttrsToContext)(t,this),(0,f.checkRefresh)(this,n,r),(0,f.drawChildren)(t,n,r),t.restore()):e.length&&(0,f.clearChanged)(e),(0,c.each)(e,function(t){t.get("hasChanged")&&t.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=(0,c.requestAnimationFrame)(function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)}),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(o.AbstractCanvas);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),l=s.length,u=l-1;u>=0;u--){var c=s[u];if(c.isGroup())o=t(c,n,r);else if(a(c,n,r)){var f=i(c,n,r),d=f[0],p=f[1];c.isInShape(d,p)&&(o=c)}if(o)break}return o};var r=n(26);function i(t,e,n){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var n=(0,r.invert)(e);return(0,r.multiplyVec2)(n,t)}return t}([e,n,1],i);return[a[0],a[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,r.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,n),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})},e}(r(n(63)).default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,a.each)(e||n,function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var s=r.childNodes,l=s.length-1;l>=0;l--)r.removeChild(s[l]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(r(n(63)).default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})},e}(r(n(63)).default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)})},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,a.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,a.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(r(n(63)).default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(38),o=n(0),s=n(54),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,function(e,i){if("startArrow"===i||"endArrow"===i){if(e){var a=(0,o.isObject)(e)?t.addArrow(n,s.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,s.SVG_ATTR_MAP[i]);r.setAttribute(s.SVG_ATTR_MAP[i],"url(#"+a+")")}else r.removeAttribute(s.SVG_ATTR_MAP[i])}else s.SVG_ATTR_MAP[i]&&r.setAttribute(s.SVG_ATTR_MAP[i],e)})},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(r(n(63)).default);e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(63)),s=r(n(973)),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,a.isArray)(t)?t.map(function(t){return t.join(" ")}).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=(0,a.isFunction)(o)?o:s.default.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=s.default,e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,-(2*n),0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,function(e,s){if("path"===s&&(0,a.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s){if(e){var l=(0,a.isObject)(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);i.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+l+")")}else i.removeAttribute(o.SVG_ATTR_MAP[s])}else o.SVG_ATTR_MAP[s]&&i.setAttribute(o.SVG_ATTR_MAP[s],e)})},e.prototype._formatPath=function(t){var e=t.map(function(t){return t.join(" ")}).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(r(n(63)).default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(54),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map(function(t){return t[0]+","+t[1]}).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})},e}(r(n(63)).default);e.default=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(38),o=n(0),s=n(54),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,function(t,e){"points"===e&&(0,o.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map(function(t){return t[0]+","+t[1]}).join(" ")):s.SVG_ATTR_MAP[e]&&r.setAttribute(s.SVG_ATTR_MAP[e],t)})},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,o.isNil)(e)?(this.set("totalLength",a.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,o.each)(i,function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t,e=this.attr().points;if(e&&0!==e.length){var n=this.getTotalLength();if(!(n<=0)){var r=0,i=[];(0,o.each)(e,function(o,s){e[s+1]&&((t=[])[0]=r/n,r+=a.Line.length(o[0],o[1],e[s+1][0],e[s+1][1]),t[1]=r/n,i.push(t))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(r(n(63)).default);e.default=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=r(n(63)),s=n(54),l=n(978),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,l=["x","y","width","height","radius"];(0,a.each)(e||r,function(t,e){-1===l.indexOf(e)||o?-1===l.indexOf(e)&&s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)})},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var s=(0,l.parseRadius)(o);return(0,a.isArray)(o)?1===o.length?s.r1=s.r2=s.r3=s.r4=o[0]:2===o.length?(s.r1=s.r3=o[0],s.r2=s.r4=o[1]):3===o.length?(s.r1=o[0],s.r2=s.r4=o[1],s.r3=o[2]):(s.r1=o[0],s.r2=o[1],s.r3=o[2],s.r4=o[3]):s.r1=s.r2=s.r3=s.r4=o,[["M "+(e+s.r1)+","+n],["l "+(r-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(i-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-r)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-i)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]].join(" ")},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=function(t){return(t=t||[],(0,r.isArray)(t))?t:(0,r.isString)(t)?(t=t.match(i),(0,r.each)(t,function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}(0,r.each)(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}};var r=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(1),a=n(0),o=n(242),s=n(149),l=n(54),u=r(n(63)),c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},f={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},d={left:"left",start:"left",center:"middle",right:"end",end:"end"},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),(0,a.each)(e||r,function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?(0,s.setTransform)(n):l.SVG_ATTR_MAP[e]&&i.setAttribute(l.SVG_ATTR_MAP[e],t)}),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=(0,o.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",f[n]||"alphabetic"):t.setAttribute("alignment-baseline",c[n]||"baseline"),t.setAttribute("text-anchor",d[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t){if(~t.indexOf("\n")){var s=t.split("\n"),l=s.length-1,u="";(0,a.each)(s,function(t,e){0===e?"alphabetic"===o?u+=''+t+"":"top"===o?u+=''+t+"":"middle"===o?u+=''+t+"":"bottom"===o?u+=''+t+"":"hanging"===o&&(u+=''+t+""):u+=''+t+""}),e.innerHTML=u}else e.innerHTML=t}else e.innerHTML=""},e}(u.default);e.default=p},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(1),o=n(26),s=n(54),l=n(274),u=n(149),c=n(74),f=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var s=a?Object.getOwnPropertyDescriptor(t,o):null;s&&(s.get||s.set)?Object.defineProperty(r,o,s):r[o]=t[o]}return r.default=t,n&&n.set(t,r),r}(n(190)),d=r(n(275)),p=r(n(981));function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}var g=function(t){function e(e){return t.call(this,(0,a.__assign)((0,a.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return(0,a.__extends)(e,t),e.prototype.getShapeBase=function(){return f},e.prototype.getGroupBase=function(){return d.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!s.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!s.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find(function(t){return t.get("el")===r})},e.prototype.createDom=function(){var t=(0,c.createSVGElement)("svg"),e=new p.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&(0,c.sortDom)(this,function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0})}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?(0,u.setTransform)(this):"clip"===t?(0,u.setClip)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();(0,u.setClip)(this,t),e.length&&(0,l.drawChildren)(t,e)},e}(o.AbstractCanvas);e.default=g},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(0),a=r(n(982)),o=r(n(983)),s=r(n(984)),l=r(n(985)),u=r(n(986)),c=n(74),f=function(){function t(t){var e=(0,c.createSVGElement)("defs"),n=(0,i.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i'}),n}var u=function(){function t(t){this.cfg={};var e,n,s,u,c,f,d,p,h,g,v,y,m,b,x,_,O=null,P=(0,r.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?(e=O=(0,i.createSVGElement)("linearGradient"),u=a.exec(t),c=(0,r.mod)((0,r.toRadian)(parseFloat(u[1])),2*Math.PI),f=u[2],c>=0&&c<.5*Math.PI?(n={x:0,y:0},s={x:1,y:1}):.5*Math.PI<=c&&c';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=n(74),a=function(){function t(t,e){this.cfg={};var n=(0,i.createSVGElement)("marker"),a=(0,r.uniqueId)("marker_");n.setAttribute("id",a);var o=(0,i.createSVGElement)("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;(0,r.isArray)(i)&&(i=i.map(function(t){return t.join(" ")}).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=n(74),a=function(){function t(t){this.type="clip",this.cfg={};var e=(0,i.createSVGElement)("clipPath");this.el=e,this.id=(0,r.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(0),i=n(74),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=(0,i.createSVGElement)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=(0,i.createSVGElement)("image");e.appendChild(n);var o=(0,r.uniqueId)("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];n.setAttribute("href",s);var l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=n(270),o=n(33),s=n(150),l=(0,i.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return(0,s.getRectPoints)(t)}});(0,i.registerShape)("interval","rect",{draw:function(t,e){var n,i=(0,o.getStyle)(t,!1,!0),l=e,u=null==t?void 0:t.background;if(u){l=e.addGroup();var c=(0,o.getBackgroundRectStyle)(t),f=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);l.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},c),{path:f}),zIndex:-1,name:a.BACKGROUND_SHAPE})}n=i.radius&&this.coordinate.isRect?(0,s.getRectWithCornerRadius)(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath((0,s.getIntervalRectPath)(t.points,i.lineCap,this.coordinate));var d=l.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},i),{path:n}),name:"interval"});return u?l:d},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(146),a=n(27),o=n(277),s=n(280),l=(0,a.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return(0,o.splitPoints)(t)}});(0,r.each)(s.SHAPES,function(t){(0,a.registerShape)("point","hollow-"+t,{draw:function(e,n){return(0,s.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(21),o=n(48),s=n(279),l=(0,r.__importDefault)(n(91));n(990);var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return(0,r.__extends)(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),l=this.getAttribute("size");if(l){n=this.getAttributeValues(l,e)[0];var u=this.coordinate;n/=(0,o.getXDimensionLength)(u)}else this.defaultSize||(this.defaultSize=(0,s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r._size=(0,i.get)(e[a.FIELD_ORIGIN],[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(l.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(27),o=n(115),s=n(33),l=(0,a.registerShapeFactory)("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!(0,i.isArray)(t))return[];var e=(0,i.max)(t);return(0,i.map)(t,function(t){return t/e})}(t._size);return(0,i.each)(t.y,function(i,a){var o=r[a]*e,s=0===a,l=a===t.y.length-1;n.push({isMin:s,isMax:l,x:t.x-o,y:i}),n.unshift({isMin:s,isMax:l,x:t.x+o,y:i})}),n}});(0,a.registerShape)("violin","violin",{draw:function(t,e){var n=(0,s.getStyle)(t,!0,!0),i=this.parsePath((0,o.getViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(27),i=n(101);(0,r.registerShape)("area","line",{draw:function(t,e){var n=(0,i.getShapeAttrs)(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(27),i=n(101);(0,r.registerShape)("area","smooth",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!1,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(27),i=n(101);(0,r.registerShape)("area","smooth-line",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!0,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(46),a=n(27),o=n(33),s=n(464);(0,a.registerShape)("edge","arc",{draw:function(t,e){var n,a=(0,o.getStyle)(t,!0,!1,"lineWidth"),l=t.points,u=l.length>2?"weight":"normal";if(t.isInCircle){var c,f,d,p,h,g,v,y,m={x:0,y:1};return"normal"===u?(c=l[0],f=l[1],d=(0,s.getQPath)(f,m),(p=[["M",c.x,c.y]]).push(d),n=p):(a.fill=a.stroke,h=l,g=(0,s.getQPath)(h[1],m),v=(0,s.getQPath)(h[3],m),(y=[["M",h[0].x,h[0].y]]).push(v),y.push(["L",h[3].x,h[3].y]),y.push(["L",h[2].x,h[2].y]),y.push(g),y.push(["L",h[1].x,h[1].y]),y.push(["L",h[0].x,h[0].y]),y.push(["Z"]),n=y),n=this.parsePath(n),e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},a),{path:n})})}if("normal"===u)return l=this.parsePoints(l),n=(0,i.getArcPath)((l[1].x+l[0].x)/2,l[0].y,Math.abs(l[1].x-l[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},a),{path:n})});var b=(0,s.getCPath)(l[1],l[3]),x=(0,s.getCPath)(l[2],l[0]);return n=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y],b,["L",l[3].x,l[3].y],["L",l[2].x,l[2].y],x,["Z"]],n=this.parsePath(n),a.fill=a.stroke,e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},a),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=n(33),o=n(464);(0,i.registerShape)("edge","smooth",{draw:function(t,e){var n,i,s,l,u=(0,a.getStyle)(t,!0,!1,"lineWidth"),c=t.points,f=this.parsePath((n=c[0],i=c[1],s=(0,o.getCPath)(n,i),(l=[["M",n.x,n.y]]).push(s),l));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},u),{path:f})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(27),o=n(33),s=1/3;(0,a.registerShape)("edge","vhv",{draw:function(t,e){var n,a,l,u,c=(0,o.getStyle)(t,!0,!1,"lineWidth"),f=t.points,d=this.parsePath((n=f[0],a=f[1],(l=[]).push({x:n.x,y:n.y*(1-s)+a.y*s}),l.push({x:a.x,y:n.y*(1-s)+a.y*s}),l.push(a),u=[["M",n.x,n.y]],(0,i.each)(l,function(t){u.push(["L",t.x,t.y])}),u));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},c),{path:d})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=n(115),o=n(33);(0,i.registerShape)("violin","smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!0),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=n(115),o=n(33);(0,i.registerShape)("violin","hollow",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),(0,i.registerShape)("violin","hollow-smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:(0,r.__assign)((0,r.__assign)({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieOuterLabelLayout=void 0;var r=n(0),i=n(46),a=n(476);e.pieOuterLabelLayout=function(t,e,n,o){var s=(0,r.filter)(t,function(t){return!(0,r.isNil)(t)}),l=e[0]&&e[0].get("coordinate");if(l){for(var u=l.getCenter(),c=l.getRadius(),f={},d=0;dn&&(t.sort(function(t,e){return e.percent-t.percent}),(0,r.each)(t,function(t,e){e+1>n&&(f[t.id].set("visible",!1),t.invisible=!0)})),(0,a.antiCollision)(t,h,O)}),(0,r.each)(y,function(t,e){(0,r.each)(t,function(t){var n=e===v,a=f[t.id].getChildByIndex(0);if(a){var o=c+g,s=t.y-u.y,d=Math.pow(o,2),p=Math.pow(s,2),h=Math.sqrt(d-p>0?d-p:0),y=Math.abs(Math.cos(t.angle)*o);n?t.x=u.x+Math.max(h,y):t.x=u.x-Math.max(h,y)}a&&(a.attr("y",t.y),a.attr("x",t.x)),function(t,e){var n=e.getCenter(),a=e.getRadius();if(t&&t.labelLine){var o=t.angle,s=t.offset,l=(0,i.polarToCartesian)(n.x,n.y,a,o),u=t.x+(0,r.get)(t,"offsetX",0)*(Math.cos(o)>0?1:-1),c=t.y+(0,r.get)(t,"offsetY",0)*(Math.sin(o)>0?1:-1),f={x:u-4*Math.cos(o),y:c-4*Math.sin(o)},d=t.labelLine.smooth,p=[],h=f.x-n.x,g=Math.atan((f.y-n.y)/h);if(h<0&&(g+=Math.PI),!1===d){(0,r.isObject)(t.labelLine)||(t.labelLine={});var v=0;(o<0&&o>-Math.PI/2||o>1.5*Math.PI)&&f.y>l.y&&(v=1),o>=0&&ol.y&&(v=1),o>=Math.PI/2&&of.y&&(v=1),(o<-Math.PI/2||o>=Math.PI&&o<1.5*Math.PI)&&l.y>f.y&&(v=1);var y=s/2>4?4:Math.max(s/2-1,0),m=(0,i.polarToCartesian)(n.x,n.y,a+y,o),b=(0,i.polarToCartesian)(n.x,n.y,a+s/2,g);p.push("M "+l.x+" "+l.y),p.push("L "+m.x+" "+m.y),p.push("A "+n.x+" "+n.y+" 0 0 "+v+" "+b.x+" "+b.y),p.push("L "+f.x+" "+f.y)}else{var m=(0,i.polarToCartesian)(n.x,n.y,a+(s/2>4?4:Math.max(s/2-1,0)),o),x=l.x11253517471925921e-23&&p.push.apply(p,["C",f.x+4*x,f.y,2*m.x-l.x,2*m.y-l.y,l.x,l.y]),p.push("L "+l.x+" "+l.y)}t.labelLine.path=p.join(" ")}}(t,l)})})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var r=n(0),i=n(46),a=n(476),o=n(114);e.pieSpiderLabelLayout=function(t,e,n,s){var l=e[0]&&e[0].get("coordinate");if(l){for(var u=l.getCenter(),c=l.getRadius(),f={},d=0;du.x||t.x===u.x&&t.y>u.y,n=(0,r.isNil)(t.offsetX)?4:t.offsetX,a=(0,i.polarToCartesian)(u.x,u.y,c+4,t.angle);t.x=u.x+(e?1:-1)*(c+(g+n)),t.y=a.y}});var v=l.start,y=l.end,m="right",b=(0,r.groupBy)(t,function(t){return t.xx&&(x=Math.min(e,Math.abs(v.y-y.y)))});var _={minX:v.x,maxX:y.x,minY:u.y-x/2,maxY:u.y+x/2};(0,r.each)(b,function(t,e){var n=x/h;t.length>n&&(t.sort(function(t,e){return e.percent-t.percent}),(0,r.each)(t,function(t,e){e>n&&(f[t.id].set("visible",!1),t.invisible=!0)})),(0,a.antiCollision)(t,h,_)});var O=_.minY,P=_.maxY;(0,r.each)(b,function(t,e){var n=e===m;(0,r.each)(t,function(t){var e=(0,r.get)(f,t&&[t.id]);if(e){if(t.yP){e.set("visible",!1);return}var a=e.getChildByIndex(0),s=a.getCanvasBBox(),u={x:n?s.x:s.maxX,y:s.y+s.height/2};(0,o.translate)(a,t.x-u.x,t.y-u.y),t.labelLine&&function(t,e,n){var a=e.getCenter(),o=e.getRadius(),s={x:t.x-(n?4:-4),y:t.y},l=(0,i.polarToCartesian)(a.x,a.y,o+4,t.angle),u={x:s.x,y:s.y},c={x:l.x,y:l.y},f=(0,i.polarToCartesian)(a.x,a.y,o,t.angle),d="";if(s.y!==l.y){var p=n?4:-4;u.y=s.y,t.angle<0&&t.angle>=-Math.PI/2&&(u.x=Math.max(l.x,s.x-p),s.y0&&t.anglel.y?c.y=u.y:(c.y=l.y,c.x=Math.max(c.x,u.x-p))),t.angle>Math.PI/2&&(u.x=Math.min(l.x,s.x-p),s.y>l.y?c.y=u.y:(c.y=l.y,c.x=Math.min(c.x,u.x-p))),t.angle<-Math.PI/2&&(u.x=Math.min(l.x,s.x-p),s.y4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function s(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function l(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[s(e[0],n,e[0]),s(e[1],n,e[0]),s(e[2],n,e[0]),s(e[3],n,e[0])]:e}function u(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach(function(t){n.push(a([t.x,t.y],e))}),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function c(t){return(0,i.isNumber)(t)&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0}function f(t){return Object.values(t).every(c)}function d(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.heighth.min)||!(p.min=l.height:u.width>=l.width}))&&n.forEach(function(t,n){var a,o,l,u=e[n];a=s.coordinate,o=r.BBox.fromObject(t.getBBox()),l=(0,i.findLabelTextShape)(u),a.isTransposed?l.attr({x:o.minX+o.width/2,textAlign:"center"}):l.attr({y:o.minY+o.height/2,textBaseline:"middle"})})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var r=n(0),i=n(113);e.intervalHideOverlap=function(t,e,n){if(0!==n.length){var a,o,s,l=null===(s=n[0])||void 0===s?void 0:s.get("element"),u=null==l?void 0:l.geometry;if(u&&"interval"===u.type){var c=(a=[],o=Math.max(Math.floor(e.length/500),1),(0,r.each)(e,function(t,e){e%o==0?a.push(t):t.set("visible",!1)}),a),f=u.getXYFields()[0],d=[],p=[],h=(0,r.groupBy)(c,function(t){return t.get("data")[f]}),g=(0,r.uniq)((0,r.map)(c,function(t){return t.get("data")[f]}));c.forEach(function(t){t.set("visible",!0)});var v=function(t){t&&(t.length&&p.push(t.pop()),p.push.apply(p,t))};for((0,r.size)(g)>0&&v(h[g.shift()]),(0,r.size)(g)>0&&v(h[g.pop()]),(0,r.each)(g.reverse(),function(t){v(h[t])});p.length>0;){var y=p.shift();y.get("visible")&&((0,i.checkShapeOverlap)(y,d)?y.set("visible",!1):d.push(y))}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var r=n(0),i=n(113);function a(t,e,n){return t.some(function(t){return n(t,e)})}function o(t,e){return a(t,e,function(t,e){var n,r,a=(0,i.findLabelTextShape)(t),o=(0,i.findLabelTextShape)(e);return n=a.getCanvasBBox(),r=o.getCanvasBBox(),Math.max(0,Math.min(n.x+n.width+2,r.x+r.width+2)-Math.max(n.x-2,r.x-2))*Math.max(0,Math.min(n.y+n.height+2,r.y+r.height+2)-Math.max(n.y-2,r.y-2))>0})}e.pointAdjustPosition=function(t,e,n,s,l){if(0!==n.length){var u,c,f=null===(u=n[0])||void 0===u?void 0:u.get("element"),d=null==f?void 0:f.geometry;if(d&&"point"===d.type){var p=d.getXYFields(),h=p[0],g=p[1],v=(0,r.groupBy)(e,function(t){return t.get("data")[h]}),y=[],m=l&&l.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;(0,r.map)((0,r.keys)(v).reverse(),function(t){for(var e,n,r,s,l=(e=v[t],n=d.getXYFields()[1],r=[],(s=e.sort(function(t,e){return t.get("data")[n]-t.get("data")[n]})).length>0&&r.push(s.shift()),s.length>0&&r.push(s.pop()),r.push.apply(r,s),r);l.length;){var u=l.shift(),c=(0,i.findLabelTextShape)(u);if(a(y,u,function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[g]===e.get("data")[g]})){c.set("visible",!1);continue}var f=o(y,u),p=!1;if(f&&(c.attr("y",c.attr("y")+2*m),p=o(y,u)),p){c.set("visible",!1);continue}y.push(u)}})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var r=n(0),i=n(113);function a(t,e,n){return t.some(function(t){return n(t,e)})}function o(t,e){return a(t,e,function(t,e){var n,r,a=(0,i.findLabelTextShape)(t),o=(0,i.findLabelTextShape)(e);return n=a.getCanvasBBox(),r=o.getCanvasBBox(),Math.max(0,Math.min(n.x+n.width+2,r.x+r.width+2)-Math.max(n.x-2,r.x-2))*Math.max(0,Math.min(n.y+n.height+2,r.y+r.height+2)-Math.max(n.y-2,r.y-2))>0})}e.pathAdjustPosition=function(t,e,n,s,l){if(0!==n.length){var u,c,f=null===(u=n[0])||void 0===u?void 0:u.get("element"),d=null==f?void 0:f.geometry;if(!(!d||0>["path","line","area"].indexOf(d.type))){var p=d.getXYFields(),h=p[0],g=p[1],v=(0,r.groupBy)(e,function(t){return t.get("data")[h]}),y=[],m=l&&l.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;(0,r.map)((0,r.keys)(v).reverse(),function(t){for(var e,n,r,s,l=(e=v[t],n=d.getXYFields()[1],r=[],(s=e.sort(function(t,e){return t.get("data")[n]-t.get("data")[n]})).length>0&&r.push(s.shift()),s.length>0&&r.push(s.pop()),r.push.apply(r,s),r);l.length;){var u=l.shift(),c=(0,i.findLabelTextShape)(u);if(a(y,u,function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[g]===e.get("data")[g]})){c.set("visible",!1);continue}var f=o(y,u),p=!1;if(f&&(c.attr("y",c.attr("y")+2*m),p=o(y,u)),p){c.set("visible",!1);continue}y.push(u)}})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=void 0;var r=n(0),i=n(48),a=n(1010),o=n(114);e.limitInPlot=function(t,e,n,s,l){if(!(e.length<=0)){var u=(null==l?void 0:l.direction)||["top","right","bottom","left"],c=(null==l?void 0:l.action)||"translate",f=(null==l?void 0:l.margin)||0,d=e[0].get("coordinate");if(d){var p=(0,i.getCoordinateBBox)(d,f),h=p.minX,g=p.minY,v=p.maxX,y=p.maxY;(0,r.each)(e,function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,l=e.maxY,f=e.x,d=e.y,p=e.width,m=e.height,b=f,x=d;if(u.indexOf("left")>=0&&(n=0&&(i=0&&(n>v?b=v-p:s>v&&(b-=s-v)),u.indexOf("bottom")>=0&&(i>y?x=y-m:l>y&&(x-=l-y)),b!==f||x!==d){var _=b-f;"translate"===c?(0,o.translate)(t,_,x-d):"ellipsis"===c?t.findAll(function(t){return"text"===t.get("type")}).forEach(function(t){var e=(0,r.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=(0,a.getEllipsisText)(t.attr("text"),n.width-Math.abs(_),e);t.attr("text",i)}):t.hide()}})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEllipsisText=e.measureTextWidth=void 0;var r=n(1),i=n(0),a=n(1011);e.measureTextWidth=(0,i.memoize)(function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,o=e.fontWeight,s=e.fontStyle,l=e.fontVariant,u=(0,a.getCanvasContext)();return u.font=[s,l,o,n+"px",r].join(" "),u.measureText((0,i.isString)(t)?t:"").width},function(t,e){return void 0===e&&(e={}),(0,r.__spreadArray)([t],(0,i.values)(e),!0).join("")}),e.getEllipsisText=function(t,n,r){var a,o,s,l=(0,e.measureTextWidth)("...",r);a=(0,i.isString)(t)?t:(0,i.toString)(t);var u=n,c=[];if((0,e.measureTextWidth)(t,r)<=n)return t;for(;o=a.substr(0,16),!((s=(0,e.measureTextWidth)(o,r))+l>u)||!(s>u);)if(c.push(o),u-=s,!(a=a.substr(16)))return c.join("");for(;o=a.substr(0,1),!((s=(0,e.measureTextWidth)(o,r))+l>u);)if(c.push(o),u-=s,!(a=a.substr(1)))return c.join("");return c.join("")+"..."}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasContext=void 0,e.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showGrid=e.getCircleGridItems=e.getLineGridItems=e.getGridThemeCfg=void 0;var r=n(0);e.getGridThemeCfg=function(t,e){var n=(0,r.deepMix)({},(0,r.get)(t,["components","axis","common"]),(0,r.get)(t,["components","axis",e]));return(0,r.get)(n,["grid"],{})},e.getLineGridItems=function(t,e,n,r){var i=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(e,a,o){var s=a.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(o){var l=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return a},a[0]),i},e.getCircleGridItems=function(t,e,n,i,a){var o=e.values.length,s=[],l=n.getTicks();return l.reduce(function(e,n){var l=e?e.value:n.value,u=n.value,c=(l+u)/2;return"x"===a?s.push({points:[t.convert({x:i?u:c,y:0}),t.convert({x:i?u:c,y:1})]}):s.push({points:(0,r.map)(Array(o+1),function(e,n){return t.convert({x:n/o,y:i?u:c})})}),n},l[0]),s},e.showGrid=function(t,e){var n=(0,r.get)(e,"grid");if(null===n)return!1;var i=(0,r.get)(t,"grid");return!(void 0===n&&null===i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(104),a=n(69),o=n(80),s=n(282),l=n(21),u=n(0),c=n(70),f=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=u.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=(0,u.clamp)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(l.LAYER.FORE).addGroup(),n.onChangeFn=(0,u.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),a=new o.BBox(i.x,i.y,Math.min(i.width,e),i.height).expand(n),u=this.getScrollbarComponentCfg(),c=void 0,f=void 0;if(u.isHorizontal){var d=(0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.BOTTOM),p=d[0],h=d[1],g=(0,s.directionToPosition)(this.view.coordinateBBox,a,l.DIRECTION.BOTTOM),v=g[0],y=g[1];c=v,f=h}else{var m=(0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),p=m[0],h=m[1],b=(0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),v=b[0],y=b[1];c=v,f=h}c+=n[3],f+=n[0],this.trackLen?this.scrollbar.component.update((0,r.__assign)((0,r.__assign)({},u),{x:c,y:f,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,r.__assign)((0,r.__assign)({},u),{x:c,y:f})),this.view.viewBBox=this.view.viewBBox.cut(a,u.isHorizontal?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,u.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,u.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,a=(0,r.__rest)(n,["thumbHighlightColor"]);return{default:(0,u.deepMix)({},(0,u.get)(e,["default","style"],{}),a),hover:(0,u.deepMix)({},(0,u.get)(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,u.clamp)(this.ratio,0,1)),e=Math.min(t+this.step-1,this.cnt-1);return[t,e]},e.prototype.changeViewData=function(t,e){var n=this,r=t[0],i=t[1],a=this.getValidScrollbarCfg().type,o=(0,u.valuesOfKey)(this.data,this.xScaleCfg.field),s="vertical"!==a?o:o.reverse();this.yScalesCfg.forEach(function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})}),this.view.filter(this.xScaleCfg.field,function(t){var e=s.indexOf(t);return!(e>-1)||(0,c.isBetween)(e,r,i)}),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e=new a.Scrollbar((0,r.__assign)((0,r.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:l.LAYER.FORE,direction:"vertical"!==t?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT,type:l.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?(0,r.__assign)((0,r.__assign)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,r.__assign)({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize;return Math.floor(("vertical"!==n?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=(0,u.valuesOfKey)(e,t.field);return(0,u.size)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),a=i.type,o=i.padding,s=i.width,l=i.height,c=i.style,f="vertical"!==a,d=o[0],p=o[1],h=o[2],g=o[3],v=f?{x:e.minX+g,y:n.maxY-l-h}:{x:n.maxX-s-p,y:e.minY+d},y=this.getStep(),m=this.getCnt(),b=f?e.width-g-p:e.height-d-h,x=Math.max(b*(0,u.clamp)(y/m,0,1),20);return(0,r.__assign)((0,r.__assign)({},this.getThemeOptions()),{x:v.x,y:v.y,size:f?l:s,isHorizontal:f,trackLen:b,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,u.isObject)(this.option)&&(t=(0,r.__assign)((0,r.__assign)({},t),this.option)),(0,u.isObject)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=(0,r.__spreadArray)([],n,!0).reverse()),n},e}(i.Controller);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearList=void 0;var r=n(0),i="inactive",a="active";e.clearList=function(t){var e=t.getItems();(0,r.each)(e,function(e){t.hasState(e,a)&&t.setItemState(e,a,!1),t.hasState(e,i)&&t.setItemState(e,i,!1)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(151)),o="unchecked",s="checked",l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=s,e}return(0,r.__extends)(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,function(t){return t===e},n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&(0,i.each)(r,function(n){e(n)?(t.hasState(n,o)&&t.setItemState(n,o,!1),t.setItemState(n,s,!0)):t.hasState(n,s)||t.setItemState(n,o,!0)})},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!(0,i.some)(e.getItems(),function(t){return e.hasState(t,o)})||e.hasState(n,o)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();(0,i.each)(t,function(t){t.clearItemsState(s),t.clearItemsState(o)})},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=n(31),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return(0,r.__extends)(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=(0,i.last)(this.points),n=0,r=0,o=0;if(t.length){var s=t[0];n=(0,a.distance)(s,e)/2,r=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:r,y:o,r:n}},e}((0,r.__importDefault)(n(288)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0);function a(t){t.x=(0,i.clamp)(t.x,0,1),t.y=(0,i.clamp)(t.y,0,1)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return(0,r.__extends)(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,o=this.context.view.getCoordinate(),s=o.invert((0,i.head)(n)),l=o.invert((0,i.last)(n));return this.inPlot&&(a(s),a(l)),"x"===r?(t=o.convert({x:s.x,y:0}),e=o.convert({x:l.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:l.y})),{start:t,end:e}},e}((0,r.__importDefault)(n(477)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(31),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getMaskPath=function(){var t=this.points;return(0,i.getSpline)(t,!0)},e}((0,r.__importDefault)(n(478)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(479)),o=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.filterView=function(t,e,n){var r=(0,o.getSilbings)(t);(0,i.each)(r,function(t){t.filter(e,n)})},e.prototype.reRender=function(t){var e=(0,o.getSilbings)(t);(0,i.each)(e,function(t){t.render(!0)})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(44)),o=n(31),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context),e=this.context.view,n=(0,o.getElements)(e);if((0,o.isMask)(this.context)){var r=(0,o.getMaskedElements)(this.context,10);r&&(0,i.each)(n,function(t){r.includes(t)?t.show():t.hide()})}else if(t){var a=t.component,s=a.get("field");if((0,o.isList)(t)){if(s){var l=a.getItemsByState("unchecked"),u=(0,o.getScaleByField)(e,s),c=l.map(function(t){return t.name});(0,i.each)(n,function(t){var e=(0,o.getElementValue)(t,s),n=u.getText(e);c.indexOf(n)>=0?t.hide():t.show()})}}else if((0,o.isSlider)(t)){var f=a.getValue(),d=f[0],p=f[1];(0,i.each)(n,function(t){var e=(0,o.getElementValue)(t,s);e>=d&&e<=p?t.show():t.hide()})}}},e.prototype.clear=function(){var t=(0,o.getElements)(this.context.view);(0,i.each)(t,function(t){t.show()})},e.prototype.reset=function(){this.clear()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=(0,r.__importDefault)(n(44)),o=n(31),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return(0,r.__extends)(e,t),e.prototype.filter=function(){(0,o.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=(0,o.getMaskedElements)(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,a=e.map(function(t){return t.getModel().data}),s=(0,o.getSilbings)(t);(0,i.each)(s,function(t){var e=(0,o.getElements)(t);(0,i.each)(e,function(t){var e=t.getModel().data;(0,o.isInRecords)(a,e,n,r)?t.show():t.hide()})})}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=(0,o.getSilbings)(e);(0,i.each)(n,function(e){var n=(0,o.getSiblingMaskElements)(t.context,e,10),r=(0,o.getElements)(e);n&&(0,i.each)(r,function(t){n.includes(t)?t.show():t.hide()})})},e.prototype.reset=function(){var t=(0,o.getSilbings)(this.context.view);(0,i.each)(t,function(t){var e=(0,o.getElements)(t);(0,i.each)(e,function(t){t.show()})})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(32),a=n(0),o=n(267),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return(0,r.__extends)(e,t),e.prototype.getButtonCfg=function(){return(0,a.deepMix)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:(0,r.__assign)({text:t.text},t.textStyle)}).getBBox(),i=(0,o.parsePadding)(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:(0,r.__assign)({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});a.toBack(),e.on("mouseenter",function(){a.attr(t.activeStyle)}),e.on("mouseleave",function(){a.attr(t.style)}),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.ext.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}((0,r.__importDefault)(n(44)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=(0,r.__importDefault)(n(44)),a=n(31),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return(0,r.__extends)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):(0,a.distance)(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(32),a=n(185),o=n(31),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return(0,r.__extends)(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if((0,o.distance)(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(a.Action);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return(0,r.__extends)(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;(0,i.each)(e,function(e){var n=t.getScale(e),r=n.min,i=n.max,a=n.values;t.startCache[e]={min:r,max:i,values:a}})},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),a=n.invert(e),o=n.invert(r),s=o.x-a.x,l=o.y-a.y,u=this.context.view,c=this.dims;(0,i.each)(c,function(e){t.translateDim(e,{x:-1*s,y:-1*l})}),u.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],a=i.min,o=i.max,s=n[t]*(o-a);this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),r.scale(e.field,{nice:!1,min:a+s,max:o+s})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}((0,r.__importDefault)(n(480)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return(0,r.__extends)(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;(0,i.each)(n,function(n){e.zoomDim(n,t)}),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],a=i.max-i.min,o=e.min,s=e.max,l=n*a,u=o-l,c=s+l,f=(c-u)/a;c>u&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:o-l,max:s+l})},e}((0,r.__importDefault)(n(480)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var a=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),s=n.getXScale(),l=n.getOptions().data,u=(0,i.size)((0,i.valuesOfKey)(l,s.field)),c=(0,i.size)(s.values),f=Math.floor((u-c)*o.getValue())+(r.gEvent.originalEvent.deltaY>0?a:-a),d=a/(u-c)/1e4,p=(0,i.clamp)(f/(u-c)+d,0,1);o.setValue(p)}},e}(n(185).Action);e.default=a},function(t,e,n){"use strict";(function(t){var e=n(2)(n(6));/** @license React v0.25.1 - * react-reconciler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */t.exports=function r(i){var a,o,s,l,u,c=n(1030),f=n(3),d=n(1031);function p(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;ntR||(t.current=tk[tR],tk[tR]=null,tR--)}function tB(t,e){tk[++tR]=t.current,t.current=e}var tG={},tV={current:tG},tz={current:!1},tW=tG;function tY(t,e){var n=t.type.contextTypes;if(!n)return tG;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function tH(t){return null!=(t=t.childContextTypes)}function tX(){tN(tz),tN(tV)}function tU(t,e,n){if(tV.current!==tG)throw Error(p(168));tB(tV,e),tB(tz,n)}function tq(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(p(108,j(e)||"Unknown",i));return c({},n,{},r)}function tZ(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||tG,tW=tV.current,tB(tV,t),tB(tz,tz.current),!0}function tK(t,e,n){var r=t.stateNode;if(!r)throw Error(p(169));n?(t=tq(t,e,tW),r.__reactInternalMemoizedMergedChildContext=t,tN(tz),tN(tV),tB(tV,t)):tN(tz),tB(tz,n)}var t$=d.unstable_runWithPriority,tQ=d.unstable_scheduleCallback,tJ=d.unstable_cancelCallback,t0=d.unstable_requestPaint,t1=d.unstable_now,t2=d.unstable_getCurrentPriorityLevel,t3=d.unstable_ImmediatePriority,t5=d.unstable_UserBlockingPriority,t4=d.unstable_NormalPriority,t6=d.unstable_LowPriority,t7=d.unstable_IdlePriority,t8={},t9=d.unstable_shouldYield,et=void 0!==t0?t0:function(){},ee=null,en=null,er=!1,ei=t1(),ea=1e4>ei?t1:function(){return t1()-ei};function eo(){switch(t2()){case t3:return 99;case t5:return 98;case t4:return 97;case t6:return 96;case t7:return 95;default:throw Error(p(332))}}function es(t){switch(t){case 99:return t3;case 98:return t5;case 97:return t4;case 96:return t6;case 95:return t7;default:throw Error(p(332))}}function el(t,e){return t$(t=es(t),e)}function eu(t){return null===ee?(ee=[t],en=tQ(t3,ef)):ee.push(t),t8}function ec(){if(null!==en){var t=en;en=null,tJ(t)}ef()}function ef(){if(!er&&null!==ee){er=!0;var t=0;try{var e=ee;el(99,function(){for(;t=e&&(nz=!0),t.firstContext=null)}function eS(t,e){if(ex!==t&&!1!==e&&0!==e){if(("number"!=typeof e||1073741823===e)&&(ex=t,e=1073741823),e={context:t,observedBits:e,next:null},null===eb){if(null===em)throw Error(p(308));eb=e,em.dependencies={expirationTime:0,firstContext:e,responders:null}}else eb=eb.next=e}return Q?t._currentValue:t._currentValue2}var ew=!1;function eE(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function eC(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function eT(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function eI(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function ej(t,e){var n=t.alternate;null!==n&&eC(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function eF(t,e,n,r){var i=t.updateQueue;ew=!1;var a=i.baseQueue,o=i.shared.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}a=o,i.shared.pending=null,null!==(s=t.alternate)&&null!==(s=s.updateQueue)&&(s.baseQueue=o)}if(null!==a){s=a.next;var l=i.baseState,u=0,f=null,d=null,p=null;if(null!==s)for(var h=s;;){if((o=h.expirationTime)u&&(u=o)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),rJ(o,h.suspenseConfig);e:{var v=t,y=h;switch(o=e,g=n,y.tag){case 1:if("function"==typeof(v=y.payload)){l=v.call(g,l,o);break e}l=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null==(o="function"==typeof(v=y.payload)?v.call(g,l,o):v))break e;l=c({},l,o);break e;case 2:ew=!0}}null!==h.callback&&(t.effectTag|=32,null===(o=i.effects)?i.effects=[h]:o.push(h))}if(null===(h=h.next)||h===s){if(null===(o=i.shared.pending))break;h=a.next=o.next,o.next=s,i.baseQueue=a=o,i.shared.pending=null}}null===p?f=l:p.next=d,i.baseState=f,i.baseQueue=p,r0(u),t.expirationTime=u,t.memoizedState=l}}function eL(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;ep?(v=f,f=null):v=f.sibling;var y=h(e,f,s[p],l);if(null===y){null===f&&(f=v);break}t&&f&&null===y.alternate&&n(e,f),a=o(y,a,p),null===c?u=y:c.sibling=y,c=y,f=v}if(p===s.length)return r(e,f),u;if(null===f){for(;pv?(y=f,f=null):y=f.sibling;var b=h(e,f,m.value,l);if(null===b){null===f&&(f=y);break}t&&f&&null===b.alternate&&n(e,f),a=o(b,a,v),null===c?u=b:c.sibling=b,c=b,f=y}if(m.done)return r(e,f),u;if(null===f){for(;!m.done;v++,m=s.next())null!==(m=d(e,m.value,l))&&(a=o(m,a,v),null===c?u=m:c.sibling=m,c=m);return u}for(f=i(e,f);!m.done;v++,m=s.next())null!==(m=g(f,e,v,m.value,l))&&(t&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===c?u=m:c.sibling=m,c=m);return t&&f.forEach(function(t){return n(e,t)}),u}(l,u,c,f);if(x&&eH(l,c),void 0===c&&!b)switch(l.tag){case 1:case 0:throw Error(p(152,(l=l.type).displayName||l.name||"Component"))}return r(l,u)}}var eU=eX(!0),eq=eX(!1),eZ={},eK={current:eZ},e$={current:eZ},eQ={current:eZ};function eJ(t){if(t===eZ)throw Error(p(174));return t}function e0(t,e){tB(eQ,e),tB(e$,t),tB(eK,eZ),t=N(e),tN(eK),tB(eK,t)}function e1(){tN(eK),tN(e$),tN(eQ)}function e2(t){var e=eJ(eQ.current),n=eJ(eK.current);e=B(n,t.type,e),n!==e&&(tB(e$,t),tB(eK,e))}function e3(t){e$.current===t&&(tN(eK),tN(e$))}var e5={current:0};function e4(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||tA(n)||tS(n)))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!=(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function e6(t,e){return{responder:t,props:e}}var e7=h.ReactCurrentDispatcher,e8=h.ReactCurrentBatchConfig,e9=0,nt=null,ne=null,nn=null,nr=!1;function ni(){throw Error(p(321))}function na(t,e){if(null===e)return!1;for(var n=0;na))throw Error(p(301));a+=1,nn=ne=null,e.updateQueue=null,e7.current=nI,t=n(r,i)}while(e.expirationTime===e9)}if(e7.current=nE,e=null!==ne&&null!==ne.next,e9=0,nn=ne=nt=null,nr=!1,e)throw Error(p(300));return t}function ns(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===nn?nt.memoizedState=nn=t:nn=nn.next=t,nn}function nl(){if(null===ne){var t=nt.alternate;t=null!==t?t.memoizedState:null}else t=ne.next;var e=null===nn?nt.memoizedState:nn.next;if(null!==e)nn=e,ne=t;else{if(null===t)throw Error(p(310));t={memoizedState:(ne=t).memoizedState,baseState:ne.baseState,baseQueue:ne.baseQueue,queue:ne.queue,next:null},null===nn?nt.memoizedState=nn=t:nn=nn.next=t}return nn}function nu(t,e){return"function"==typeof e?e(t):e}function nc(t){var e=nl(),n=e.queue;if(null===n)throw Error(p(311));n.lastRenderedReducer=t;var r=ne,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=o=a=null,l=i;do{var u=l.expirationTime;if(unt.expirationTime&&(nt.expirationTime=u,r0(u))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),rJ(u,l.suspenseConfig),r=l.eagerReducer===t?l.eagerState:t(r,l.action);l=l.next}while(null!==l&&l!==i);null===s?a=r:s.next=o,ep(r,e.memoizedState)||(nz=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=s,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function nf(t){var e=nl(),n=e.queue;if(null===n)throw Error(p(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,a=e.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do a=t(a,o.action),o=o.next;while(o!==i);ep(a,e.memoizedState)||(nz=!0),e.memoizedState=a,null===e.baseQueue&&(e.baseState=a),n.lastRenderedState=a}return[a,r]}function nd(t){var e=ns();return"function"==typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:nu,lastRenderedState:t}).dispatch=nw.bind(null,nt,t),[e.memoizedState,t]}function np(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=nt.updateQueue)?(e={lastEffect:null},nt.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function nh(){return nl().memoizedState}function ng(t,e,n,r){var i=ns();nt.effectTag|=t,i.memoizedState=np(1|e,n,void 0,void 0===r?null:r)}function nv(t,e,n,r){var i=nl();r=void 0===r?null:r;var a=void 0;if(null!==ne){var o=ne.memoizedState;if(a=o.destroy,null!==r&&na(r,o.deps)){np(e,n,a,r);return}}nt.effectTag|=t,i.memoizedState=np(1|e,n,a,r)}function ny(t,e){return ng(516,4,t,e)}function nm(t,e){return nv(516,4,t,e)}function nb(t,e){return nv(4,2,t,e)}function nx(t,e){return"function"==typeof e?(e(t=t()),function(){e(null)}):null!=e?(t=t(),e.current=t,function(){e.current=null}):void 0}function n_(t,e,n){return n=null!=n?n.concat([t]):null,nv(4,2,nx.bind(null,e,t),n)}function nO(){}function nP(t,e){return ns().memoizedState=[t,void 0===e?null:e],t}function nM(t,e){var n=nl();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&na(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function nA(t,e){var n=nl();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&na(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function nS(t,e,n){var r=eo();el(98>r?98:r,function(){t(!0)}),el(97e)&&rk.set(t,e))}}function rW(t,e){t.expirationTime=(t=n>t?n:t)&&e!==t?0:t}function rH(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=eu(rU.bind(null,t));else{var e=rY(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r,i,a,o=rG();if(o=1073741823===e?99:1===e||2===e?95:0>=(o=10*(1073741821-e)-10*(1073741821-o))?99:250>=o?98:5250>=o?97:95,null!==n){var s=t.callbackPriority;if(t.callbackExpirationTime===e&&s>=o)return;n!==t8&&tJ(n)}t.callbackExpirationTime=e,t.callbackPriority=o,e=1073741823===e?eu(rU.bind(null,t)):(r=o,i=rX.bind(null,t),a={timeout:10*(1073741821-e)-ea()},tQ(r=es(r),i,a)),t.callbackNode=e}}}function rX(t,e){if(rB=0,e)return ib(t,e=rG()),rH(t),null;var n=rY(t);if(0!==n){if(e=t.callbackNode,(48&ry)!=0)throw Error(p(327));if(r6(),t===rm&&n===rx||rK(t,n),null!==rb){var r=ry;ry|=16;for(var i=rQ();;)try{(function(){for(;null!==rb&&!t9();)rb=r1(rb)})();break}catch(e){r$(t,e)}if(e_(),ry=r,rg.current=i,1===r_)throw e=rO,rK(t,n),iy(t,n),rH(t),e;if(null===rb)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,rm=null,r=r_){case 0:case 1:throw Error(p(345));case 2:ib(t,2=n){t.lastPingedTime=n,rK(t,n);break}}if(0!==(a=rY(t))&&a!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=Z(r5.bind(null,t),i);break}r5(t);break;case 4:if(iy(t,n),r=t.lastSuspendedTime,n===r&&(t.nextKnownPendingLevel=r3(i)),rw&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,rK(t,n);break}if(0!==(i=rY(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==rM?r=10*(1073741821-rM)-ea():1073741823===rP?r=0:(r=10*(1073741821-rP)-5e3,n=10*(1073741821-n)-(i=ea()),0>(r=i-r)&&(r=0),n<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*rh(r/1960))-r)&&(r=n)),10=(r=0|o.busyMinDurationMs)?r=0:(i=0|o.busyDelayMs,r=(a=ea()-(10*(1073741821-a)-(0|o.timeoutMs||5e3)))<=i?0:i+r-a),10 component higher in the tree to provide a loading indicator or placeholder to display."+tD(o))}5!==r_&&(r_=2),s=n7(s,o),d=a;do{switch(d.tag){case 3:u=s,d.effectTag|=4096,d.expirationTime=n;var x=rd(d,u,n);ej(d,x);break e;case 1:u=s;var _=d.type,O=d.stateNode;if(0==(64&d.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==O&&"function"==typeof O.componentDidCatch&&(null===rj||!rj.has(O)))){d.effectTag|=4096,d.expirationTime=n;var P=rp(d,u,n);ej(d,P);break e}}d=d.return}while(null!==d)}rb=r2(rb)}catch(t){n=t;continue}break}}function rQ(){var t=rg.current;return rg.current=nE,null===t?nE:t}function rJ(t,e){trS&&(rS=t)}function r1(t){var e=u(t.alternate,t,rx);return t.memoizedProps=t.pendingProps,null===e&&(e=r2(t)),rv.current=null,e}function r2(t){rb=t;do{var e=rb.alternate;if(t=rb.return,0==(2048&rb.effectTag)){if(e=function(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return tH(e.type)&&tX(),null;case 3:return e1(),tN(tz),tN(tV),(r=e.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(null===t||null===t.child)&&nB(e)&&n5(e),o(e),null;case 5:e3(e);var i=eJ(eQ.current);if(n=e.type,null!==t&&null!=e.stateNode)s(t,e,n,r,i),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(p(166));return null}if(t=eJ(eK.current),nB(e)){if(!te)throw Error(p(175));t=tC(e.stateNode,e.type,e.memoizedProps,i,t,e),e.updateQueue=t,null!==t&&n5(e)}else{var u=z(n,r,i,t,e);a(u,e,!1,!1),e.stateNode=u,Y(u,n,r,i,t)&&n5(e)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)l(t,e,t.memoizedProps,r);else{if("string"!=typeof r&&null===e.stateNode)throw Error(p(166));if(t=eJ(eQ.current),i=eJ(eK.current),nB(e)){if(!te)throw Error(p(176));tT(e.stateNode,e.memoizedProps,e)&&n5(e)}else e.stateNode=q(r,t,i,e)}return null;case 13:if(tN(e5),r=e.memoizedState,0!=(64&e.effectTag))return e.expirationTime=n,e;return r=null!==r,i=!1,null===t?void 0!==e.memoizedProps.fallback&&nB(e):(i=null!==(n=t.memoizedState),r||null===n||null!==(n=t.child.sibling)&&(null!==(u=e.firstEffect)?(e.firstEffect=n,n.nextEffect=u):(e.firstEffect=e.lastEffect=n,n.nextEffect=null),n.effectTag=8)),r&&!i&&0!=(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!=(1&e5.current)?0===r_&&(r_=3):((0===r_||3===r_)&&(r_=4),0!==rS&&null!==rm&&(iy(rm,rx),im(rm,rS)))),tt&&r&&(e.effectTag|=4),J&&(r||i)&&(e.effectTag|=4),null;case 4:return e1(),o(e),null;case 10:return eP(e),null;case 19:if(tN(e5),null===(r=e.memoizedState))return null;if(i=0!=(64&e.effectTag),null===(u=r.rendering)){if(i)n6(r,!1);else if(0!==r_||null!==t&&0!=(64&t.effectTag))for(t=e.child;null!==t;){if(null!==(u=e4(t))){for(e.effectTag|=64,n6(r,!1),null!==(t=u.updateQueue)&&(e.updateQueue=t,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,t=n,r=e.child;null!==r;)i=r,n=t,i.effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(u=i.alternate)?(i.childExpirationTime=0,i.expirationTime=n,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=u.childExpirationTime,i.expirationTime=u.expirationTime,i.child=u.child,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,n=u.dependencies,i.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),r=r.sibling;return tB(e5,1&e5.current|2),e.child}t=t.sibling}}else{if(!i){if(null!==(t=e4(u))){if(e.effectTag|=64,i=!0,null!==(t=t.updateQueue)&&(e.updateQueue=t,e.effectTag|=4),n6(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*ea()-r.renderingStartTime>r.tailExpiration&&1n&&(n=i),u>n&&(n=u),r=r.sibling}rb.childExpirationTime=n}if(null!==e)return e;null!==t&&0==(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=rb.firstEffect),null!==rb.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=rb.firstEffect),t.lastEffect=rb.lastEffect),1(t=t.childExpirationTime)?e:t}function r5(t){return el(99,r4.bind(null,t,eo())),null}function r4(t,e){do r6();while(null!==rL);if((48&ry)!=0)throw Error(p(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(p(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=r3(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===rm&&(rb=rm=null,rx=0),1=r)return nJ(t,n,r);return tB(e5,1&e5.current),null!==(n=n3(t,n,r))?n.sibling:null}tB(e5,1&e5.current);break;case 19:if(i=n.childExpirationTime>=r,0!=(64&t.effectTag)){if(i)return n2(t,n,r);n.effectTag|=64}if(null!==(a=n.memoizedState)&&(a.rendering=null,a.tail=null),tB(e5,e5.current),!i)return null}return n3(t,n,r)}nz=!1}}else nz=!1;switch(n.expirationTime=0,n.tag){case 2:if(i=n.type,null!==t&&(t.alternate=null,n.alternate=null,n.effectTag|=2),t=n.pendingProps,a=tY(n,tV.current),eA(n,r),a=no(null,n,i,t,a,r),n.effectTag|=1,"object"===(0,e.default)(a)&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,tH(i)){var o=!0;tZ(n)}else o=!1;n.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,eE(n);var s=i.getDerivedStateFromProps;"function"==typeof s&&eR(n,i,s,t),a.updater=eN,n.stateNode=a,a._reactInternalFiber=n,ez(n,i,t,r),n=nK(null,n,i,!0,o,r)}else n.tag=0,nW(null,n,a,r),n=n.child;return n;case 16:e:{if(a=n.elementType,null!==t&&(t.alternate=null,n.alternate=null,n.effectTag|=2),t=n.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)})}}(a),1!==a._status)throw a._result;switch(a=a._result,n.type=a,o=n.tag=function(t){if("function"==typeof t)return il(t)?1:0;if(null!=t){if((t=t.$$typeof)===M)return 11;if(t===w)return 14}return 2}(a),t=ev(a,t),o){case 0:n=nq(null,n,a,t,r);break e;case 1:n=nZ(null,n,a,t,r);break e;case 11:n=nY(null,n,a,t,r);break e;case 14:n=nH(null,n,a,ev(a.type,t),i,r);break e}throw Error(p(306,a,""))}return n;case 0:return i=n.type,a=n.pendingProps,a=n.elementType===i?a:ev(i,a),nq(t,n,i,a,r);case 1:return i=n.type,a=n.pendingProps,a=n.elementType===i?a:ev(i,a),nZ(t,n,i,a,r);case 3:if(n$(n),i=n.updateQueue,null===t||null===i)throw Error(p(282));if(i=n.pendingProps,a=null!==(a=n.memoizedState)?a.element:null,eC(t,n),eF(n,i,null,r),(i=n.memoizedState.element)===a)nG(),n=n3(t,n,r);else{if((a=n.stateNode.hydrate)&&(te?(nF=tE(n.stateNode.containerInfo),nj=n,a=nL=!0):a=!1),a)for(r=eq(n,null,i,r),n.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else nW(t,n,i,r),nG();n=n.child}return n;case 5:return e2(n),null===t&&nR(n),i=n.type,a=n.pendingProps,o=null!==t?t.memoizedProps:null,s=a.children,X(i,a)?s=null:null!==o&&X(i,o)&&(n.effectTag|=16),nU(t,n),4&n.mode&&1!==r&&U(i,a)?(n.expirationTime=n.childExpirationTime=1,n=null):(nW(t,n,s,r),n=n.child),n;case 6:return null===t&&nR(n),null;case 13:return nJ(t,n,r);case 4:return e0(n,n.stateNode.containerInfo),i=n.pendingProps,null===t?n.child=eU(n,null,i,r):nW(t,n,i,r),n.child;case 11:return i=n.type,a=n.pendingProps,a=n.elementType===i?a:ev(i,a),nY(t,n,i,a,r);case 7:return nW(t,n,n.pendingProps,r),n.child;case 8:case 12:return nW(t,n,n.pendingProps.children,r),n.child;case 10:e:{if(i=n.type._context,a=n.pendingProps,s=n.memoizedProps,o=a.value,eO(n,o),null!==s){var l=s.value;if(0==(o=ep(l,o)?0:("function"==typeof i._calculateChangedBits?i._calculateChangedBits(l,o):1073741823)|0)){if(s.children===a.children&&!tz.current){n=n3(t,n,r);break e}}else for(null!==(l=n.child)&&(l.return=n);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===i&&0!=(c.observedBits&o)){1===l.tag&&((c=eT(r,null)).tag=2,eI(l,c)),l.expirationTime=e&&t<=e}function iy(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;ne||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function im(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function ib(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}var ix=null;function i_(t){var e=t._reactInternalFiber;if(void 0===e){if("function"==typeof t.render)throw Error(p(188));throw Error(p(268,Object.keys(t)))}return null===(t=k(e))?null:t.stateNode}function iO(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime=P},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125>>1,i=t[r];if(void 0!==i&&0C(o,n))void 0!==l&&0>C(l,o)?(t[r]=l,t[s]=n,r=s):(t[r]=o,t[a]=n,r=a);else if(void 0!==l&&0>C(l,n))t[r]=l,t[s]=n,r=s;else break}}return e}return null}function C(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var T=[],I=[],j=1,F=null,L=3,D=!1,k=!1,R=!1;function N(t){for(var e=w(I);null!==e;){if(null===e.callback)E(I);else if(e.startTime<=t)E(I),e.sortIndex=e.expirationTime,S(T,e);else break;e=w(I)}}function B(t){if(R=!1,N(t),!k){if(null!==w(T))k=!0,r(G);else{var e=w(I);null!==e&&i(B,e.startTime-t)}}}function G(t,n){k=!1,R&&(R=!1,a()),D=!0;var r=L;try{for(N(n),F=w(T);null!==F&&(!(F.expirationTime>n)||t&&!o());){var s=F.callback;if(null!==s){F.callback=null,L=F.priorityLevel;var l=s(F.expirationTime<=n);n=e.unstable_now(),"function"==typeof l?F.callback=l:F===w(T)&&E(T),N(n)}else E(T);F=w(T)}if(null!==F)var u=!0;else{var c=w(I);null!==c&&i(B,c.startTime-n),u=!1}return u}finally{F=null,L=r,D=!1}}function V(t){switch(t){case 1:return -1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){k||D||(k=!0,r(G))},e.unstable_getCurrentPriorityLevel=function(){return L},e.unstable_getFirstCallbackNode=function(){return w(T)},e.unstable_next=function(t){switch(L){case 1:case 2:case 3:var e=3;break;default:e=L}var n=L;L=e;try{return t()}finally{L=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=z,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=L;L=t;try{return e()}finally{L=n}},e.unstable_scheduleCallback=function(t,n,o){var s=e.unstable_now();if("object"===(0,l.default)(o)&&null!==o){var u=o.delay;u="number"==typeof u&&0s?(t.sortIndex=u,S(I,t),null===w(T)&&t===w(I)&&(R?a():R=!0,i(B,u-s))):(t.sortIndex=o,S(T,t),k||D||(k=!0,r(G))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();N(t);var n=w(T);return n!==F&&null!==F&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTimel(a.observationTargets,e)&&(u&&o.resizeObservers.push(a),a.observationTargets.push(new i.ResizeObservation(e,n&&n.box)),(0,r.updateCount)(1),r.scheduler.schedule())},t.unobserve=function(t,e){var n=s.get(t),i=l(n.observationTargets,e),a=1===n.observationTargets.length;i>=0&&(a&&o.resizeObservers.splice(o.resizeObservers.indexOf(n),1),n.observationTargets.splice(i,1),(0,r.updateCount)(-1))},t.disconnect=function(t){var e=this,n=s.get(t);n.observationTargets.slice().forEach(function(n){return e.unobserve(t,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},t}();e.ResizeObserverController=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateCount=e.scheduler=void 0;var r=n(1042),i=n(486),a=n(1049),o=0,s={attributes:!0,characterData:!0,childList:!0,subtree:!0},l=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],u=function(t){return void 0===t&&(t=0),Date.now()+t},c=!1,f=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!c){c=!0;var n=u(t);(0,a.queueResizeObserver)(function(){var i=!1;try{i=(0,r.process)()}finally{if(c=!1,t=n-u(),!o)return;i?e.run(1e3):t>0?e.run(t):e.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,s)};document.body?e():i.global.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),l.forEach(function(e){return i.global.addEventListener(e,t.listener,!0)}))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),l.forEach(function(e){return i.global.removeEventListener(e,t.listener,!0)}),this.stopped=!0)},t}());e.scheduler=f,e.updateCount=function(t){!o&&t>0&&f.start(),(o+=t)||f.stop()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.process=void 0;var r=n(1043),i=n(1044),a=n(1045),o=n(1046),s=n(1048);e.process=function(){var t=0;for((0,s.gatherActiveObservationsAtDepth)(t);(0,r.hasActiveObservations)();)t=(0,o.broadcastActiveObservations)(),(0,s.gatherActiveObservationsAtDepth)(t);return(0,i.hasSkippedObservations)()&&(0,a.deliverResizeLoopError)(),t>0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasActiveObservations=void 0;var r=n(152);e.hasActiveObservations=function(){return r.resizeObservers.some(function(t){return t.activeTargets.length>0})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasSkippedObservations=void 0;var r=n(152);e.hasSkippedObservations=function(){return r.resizeObservers.some(function(t){return t.skippedTargets.length>0})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deliverResizeLoopError=void 0;var r="ResizeObserver loop completed with undelivered notifications.";e.deliverResizeLoopError=function(){var t;"function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:r}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=r),window.dispatchEvent(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.broadcastActiveObservations=void 0;var r=n(152),i=n(483),a=n(487),o=n(289);e.broadcastActiveObservations=function(){var t=1/0,e=[];r.resizeObservers.forEach(function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach(function(e){var n=new i.ResizeObserverEntry(e.target),s=(0,a.calculateDepthForNode)(e.target);r.push(n),e.lastReportedSize=(0,o.calculateBoxSize)(e.target,e.observedBox),st?e.activeTargets.push(n):e.skippedTargets.push(n))})})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.queueResizeObserver=void 0;var r=n(1050);e.queueResizeObserver=function(t){(0,r.queueMicroTask)(function(){requestAnimationFrame(t)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.queueMicroTask=void 0;var r,i=[];e.queueMicroTask=function(t){if(!r){var e=0,n=document.createTextNode("");new MutationObserver(function(){return i.splice(0).forEach(function(t){return t()})}).observe(n,{characterData:!0}),r=function(){n.textContent="".concat(e?e--:e++)}}i.push(t),r()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeObservation=void 0;var r=n(484),i=n(289),a=n(192),o=function(){function t(t,e){this.target=t,this.observedBox=e||r.ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=(0,i.calculateBoxSize)(this.target,this.observedBox,!0);return t=this.target,(0,a.isSVG)(t)||(0,a.isReplacedElement)(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}();e.ResizeObservation=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResizeObserverDetail=void 0,e.ResizeObserverDetail=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(488),i=n(117);e.default=function(t){if(!r.default(t)||!i.default(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(117);e.default=function(t){return r.default(t,"Number")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flow=void 0,e.flow=function(){for(var t=[],e=0;e=r.get(e,["views","length"],0)?i(e):r.reduce(e.views,function(e,n){return e.concat(t(n))},i(e))},e.getAllGeometriesRecursively=function(t){return 0>=r.get(t,["views","length"],0)?t.geometries:r.reduce(t.views,function(t,e){return t.concat(e.geometries)},t.geometries)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformLabel=void 0;var r=n(1),i=n(0);e.transformLabel=function(t){if(!i.isType(t,"Object"))return t;var e=r.__assign({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSplinePath=e.catmullRom2bezier=e.smoothBezier=e.points2Path=void 0;var r=n(32);function i(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},e.DEFAULT_OPTIONS={appendPadding:2,tooltip:r.__assign({},e.DEFAULT_TOOLTIP_OPTIONS),animation:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(1),i=n(154);e.DEFAULT_OPTIONS={appendPadding:2,tooltip:r.__assign({},i.DEFAULT_TOOLTIP_OPTIONS),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(15),i=n(34),a=n(43),o=n(296);Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return o.meta}});var s=n(118),l=n(154);function u(t){var e=t.chart,n=t.options,i=n.data,o=n.color,u=n.lineStyle,c=n.point,f=null==c?void 0:c.state,d=s.getTinyData(i);e.data(d);var p=r.deepAssign({},t,{options:{xField:l.X_FIELD,yField:l.Y_FIELD,line:{color:o,style:u},point:c}}),h=r.deepAssign({},p,{options:{tooltip:!1,state:f}});return a.line(p),a.point(h),e.axis(!1),e.legend(!1),t}e.adaptor=function(t){return r.flow(u,o.meta,i.theme,i.tooltip,i.animation,i.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left"},isStack:!1})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=n(1089);r.registerAction("marker-active",i.MarkerActiveAction),r.registerInteraction("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerActiveAction=void 0;var r=n(1),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.active=function(){var t=this.getView(),e=this.context.event;if(e.data){var n=e.data.items,r=t.geometries.filter(function(t){return"point"===t.type});i.each(r,function(t){i.each(t.elements,function(t){var e=-1!==i.findIndex(n,function(e){return e.data===t.data});t.setState("active",e)})})}},e.prototype.reset=function(){var t=this.getView().geometries.filter(function(t){return"point"===t.type});i.each(t,function(t){i.each(t.elements,function(t){t.setState("active",!1)})})},e.prototype.getView=function(){return this.context.view},e}(n(14).InteractionAction);e.MarkerActiveAction=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.interaction=void 0;var r=n(1),i=n(0),a=n(510),o=n(34),s=n(153),l=n(15),u=n(293),c=n(513);function f(t){var e=t.options.colorField;return l.deepAssign({options:{rawFields:["value"],tooltip:{fields:["name","value",e,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function d(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=n.rectStyle,s=n.hierarchyConfig,u=n.rawFields,f=c.transformData({data:n.data,colorField:n.colorField,enableDrillDown:c.enableDrillInteraction(n),hierarchyConfig:s});return e.data(f),a.polygon(l.deepAssign({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:u,polygon:{color:r,style:o}}})),e.coordinate().reflect("y"),t}function p(t){return t.chart.axis(!1),t}function h(t){var e,n,a=t.chart,s=t.options,f=s.interactions,d=s.drilldown;o.interaction({chart:a,options:(e=s.drilldown,n=s.interactions,c.enableDrillInteraction(s)?l.deepAssign({},s,{interactions:r.__spreadArrays(void 0===n?[]:n,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:c.transformData}}])}):s)});var p=c.findInteraction(f,"view-zoom");return p&&(!1!==p.enable?a.getCanvas().on("mousewheel",function(t){t.preventDefault()}):a.getCanvas().off("mousewheel")),c.enableDrillInteraction(s)&&(a.appendPadding=u.getAdjustAppendPadding(a.appendPadding,i.get(d,["breadCrumb","position"]))),t}e.interaction=h,e.adaptor=function(t){return l.flow(f,o.theme,s.pattern("rectStyle"),d,p,o.legend,o.tooltip,h,o.animation,o.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.treemap=e.getTileMethod=void 0;var r=n(1).__importStar(n(193)),i=n(0),a=n(1116),o={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function s(t,e){return"treemapSquarify"===t?r[t].ratio(e):r[t]}e.getTileMethod=s,e.treemap=function(t,e){var n,l=(e=i.assign({},o,e)).as;if(!i.isArray(l)||2!==l.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(t){console.warn(t)}var u=s(e.tile,e.ratio),c=r.treemap().tile(u).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(r.hierarchy(t).sum(function(t){return e.ignoreParentValue&&t.children?0:t[n]}).sort(e.sort)),f=l[0],d=l[1];return c.each(function(t){t[f]=[t.x0,t.x1,t.x1,t.x0],t[d]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach(function(e){-1===l.indexOf(e)&&delete t[e]})}),a.getAllNodes(c)}},function(t,e,n){"use strict";function r(t,e){return t.parent===e.parent?1:2}function i(t,e){return t+e.x}function a(t,e){return Math.max(t,e.y)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=r,e=1,n=1,o=!1;function s(r){var s,l=0;r.eachAfter(function(e){var n=e.children;n?(e.x=n.reduce(i,0)/n.length,e.y=1+n.reduce(a,0)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)});var u=function(t){for(var e;e=t.children;)t=e[0];return t}(r),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(r),f=u.x-t(u,c)/2,d=c.x+t(c,u)/2;return r.eachAfter(o?function(t){t.x=(t.x-r.x)*e,t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-f)/(d-f)*e,t.y=(1-(r.y?t.y/r.y:1))*n})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,e=+t[0],n=+t[1],s):o?null:[e,n]},s.nodeSize=function(t){return arguments.length?(o=!0,e=+t[0],n=+t[1],s):o?[e,n]:null},s}},function(t,e,n){"use strict";function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return this.eachAfter(r)}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(this);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.call(e,o,++i,this)}}catch(t){a.e(t)}finally{a.f()}return this}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n,r,i=this,a=[i],o=-1;i=a.pop();)if(t.call(e,i,++o,this),n=i.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n,r,i,a=this,o=[a],s=[],l=-1;a=o.pop();)if(s.push(a),n=a.children)for(r=0,i=n.length;rt.length)&&(e=t.length);for(var n=0,r=Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}(this);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(t.call(e,o,++i,this))return o}}catch(t){a.e(t)}finally{a.f()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)r.push(e=e.parent);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return Array.from(this)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=r(n(1106)),a=i.default.mark(o);function o(){var t,e,n,r,o,s;return i.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:t=this,n=[t];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){i.next=8;break}return i.next=5,t;case 5:if(r=t.children)for(o=0,s=r.length;o=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=null,e=1,n=1,r=o.constantZero;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(u(t)).eachAfter(c(r,.5)).eachBefore(f(1)):i.eachBefore(u(l)).eachAfter(c(o.constantZero,1)).eachAfter(c(r,i.r/Math.min(e,n))).eachBefore(f(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=(0,a.optional)(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"==typeof t?t:(0,o.default)(+t),i):r},i};var i=n(515),a=n(298),o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}(n(518));function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}function l(t){return Math.sqrt(t.value)}function u(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function c(t,e){return function(n){if(r=n.children){var r,a,o,s=r.length,l=t(n)*e||0;if(l)for(a=0;a0)throw Error("cycle");return l}return n.id=function(e){return arguments.length?(t=(0,r.required)(e),n):t},n.parentId=function(t){return arguments.length?(e=(0,r.required)(t),n):e},n};var r=n(298),i=n(297),a={depth:-1},o={};function s(t){return t.id}function l(t){return t.parentId}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=i,e=1,n=1,r=null;function l(i){var a=function(t){for(var e,n,r,i,a,o=new s(t,0),l=[o];e=l.pop();)if(r=e._.children)for(e.children=Array(a=r.length),i=a-1;i>=0;--i)l.push(n=e.children[i]=new s(r[i],i)),n.parent=e;return(o.parent=new s(null,0)).children=[o],o}(i);if(a.eachAfter(u),a.parent.m=-a.z,a.eachBefore(c),r)i.eachBefore(f);else{var o=i,l=i,d=i;i.eachBefore(function(t){t.xl.x&&(l=t),t.depth>d.depth&&(d=t)});var p=o===l?1:t(o,l)/2,h=p-o.x,g=e/(l.x+p+h),v=n/(d.depth||1);i.eachBefore(function(t){t.x=(t.x+h)*g,t.y=t.depth*v})}return i}function u(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)e=i[a],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var s=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-s):e.z=s}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,s,l,u=e,c=e,f=n,d=u.parent.children[0],p=u.m,h=c.m,g=f.m,v=d.m;f=o(f),u=a(u),f&&u;)d=a(d),(c=o(c)).a=e,(l=f.z+g-u.z-p+t(f._,u._))>0&&(function(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}((i=f,s=r,i.a.parent===e.parent?i.a:s),e,l),p+=l,h+=l),g+=f.m,p+=u.m,v+=d.m,h+=c.m;f&&!o(c)&&(c.t=f,c.m+=g-h),u&&!a(d)&&(d.t=u,d.m+=p-v,r=e)}return r}(e,i,e.parent.A||r[0])}function c(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function f(t){t.x*=e,t.y=t.depth*n}return l.separation=function(e){return arguments.length?(t=e,l):t},l.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],l):r?null:[e,n]},l.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],l):r?[e,n]:null},l};var r=n(297);function i(t,e){return t.parent===e.parent?1:2}function a(t){var e=t.children;return e?e[0]:t.t}function o(t){var e=t.children;return e?e[e.length-1]:t.t}function s(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}s.prototype=Object.create(r.Node.prototype)},function(t,e,n){"use strict";var r=n(2),i=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=o.default,e=!1,n=1,r=1,i=[0],u=l.constantZero,c=l.constantZero,f=l.constantZero,d=l.constantZero,p=l.constantZero;function h(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(g),i=[0],e&&t.eachBefore(a.default),t}function g(e){var n=i[e.depth],r=e.x0+n,a=e.y0+n,o=e.x1-n,s=e.y1-n;o=n-1){var c=s[e];c.x0=i,c.y0=a,c.x1=o,c.y1=l;return}for(var f=u[e],d=r/2+f,p=e+1,h=n-1;p>>1;u[g]l-a){var m=r?(i*y+o*v)/r:o;t(e,p,v,i,a,m,l),t(p,n,y,m,a,o,l)}else{var b=r?(a*y+l*v)/r:l;t(e,p,v,i,a,o,b),t(p,n,y,i,b,o,l)}})(0,l,t.value,e,n,r,i)}},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,o){(1&t.depth?a.default:i.default)(t,e,n,r,o)};var i=r(n(155)),a=r(n(194))},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(155)),a=r(n(194)),o=n(299),s=function t(e){function n(t,n,r,s,l){if((u=t._squarify)&&u.ratio===e)for(var u,c,f,d,p,h=-1,g=u.length,v=t.value;++h1?e:1)},n}(o.phi);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAllNodes=e.getField=e.NODE_ANCESTORS_FIELD=e.CHILD_NODE_COUNT=e.NODE_INDEX_FIELD=void 0;var r=n(0);e.NODE_INDEX_FIELD="nodeIndex",e.CHILD_NODE_COUNT="childNodeCount",e.NODE_ANCESTORS_FIELD="nodeAncestor";var i="Invalid field: it must be a string!";e.getField=function(t,e){var n=t.field,a=t.fields;if(r.isString(n))return n;if(r.isArray(n))return console.warn(i),n[0];if(console.warn(i+" will try to get fields instead."),r.isString(a))return a;if(r.isArray(a)&&a.length)return a[0];if(e)return e;throw TypeError(i)},e.getAllNodes=function(t){var n,i,a=[];return t&&t.each?t.each(function(t){t.parent!==n?(n=t.parent,i=0):i+=1;var o,s,l=r.filter(((null===(o=t.ancestors)||void 0===o?void 0:o.call(t))||[]).map(function(t){return a.find(function(e){return e.name===t.name})||t}),function(e){var n=e.depth;return n>0&&n0}function s(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,a=r.y,o=e.center;return Math.sqrt(Math.pow(o.x-i,2)+Math.pow(o.y-a,2))0){var n;(function(t,e,n){var i,a=t.view,o=t.geometry,s=t.group,u=t.options,c=t.horizontal,f=u.offset,d=u.size,p=u.arrow,h=a.getCoordinate(),g=l(h,e)[c?3:0],v=l(h,n)[c?0:3],y=v.y-g.y,m=v.x-g.x;if("boolean"!=typeof p){var b=p.headSize,x=u.spacing;c?(m-b)/2_){var P=Math.max(1,Math.ceil(_/(O/y.length))-1),M=y.slice(0,P)+"...";x.attr("text",M)}}}}(h,n,t)}})}})),u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connectedArea=void 0;var r=n(14),i={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},a=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};r.registerInteraction(i.hover,{start:a(i.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),r.registerInteraction(i.click,{start:a(i.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]}),e.connectedArea=function(t){return void 0===t&&(t=!1),function(e){var n=e.chart,r=e.options.connectedArea,o=function(){n.removeInteraction(i.hover),n.removeInteraction(i.click)};if(!t&&r){var s=r.trigger||"hover";o(),n.interaction(i[s],{start:a(s,r.style)})}else o();return e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonAction=e.BUTTON_ACTION_CONFIG=void 0;var r=n(1),i=n(14),a=n(0),o=n(15);e.BUTTON_ACTION_CONFIG={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}};var s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.buttonGroup=null,n.buttonCfg=r.__assign({name:"button"},e.BUTTON_ACTION_CONFIG),n}return r.__extends(n,t),n.prototype.getButtonCfg=function(){var t=this.context.view,e=a.get(t,["interactions","filter-action","cfg","buttonConfig"]);return o.deepAssign(this.buttonCfg,e,this.cfg)},n.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},n.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:r.__assign({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},n.prototype.drawBackground=function(t,e){var n,i=this.getButtonCfg(),a=o.normalPadding(i.padding),s=t.addShape({type:"rect",name:"button-rect",attrs:r.__assign({x:e.x-a[3],y:e.y-a[0],width:e.width+a[1]+a[3],height:e.height+a[0]+a[2]},null===(n=i.buttonStyle)||void 0===n?void 0:n.default)});return s.toBack(),t.on("mouseenter",function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.active)}),t.on("mouseleave",function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.default)}),s},n.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.Util.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},n.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},n.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},n.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},n}(i.Action);e.ButtonAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(1),i=n(0),a=n(34),o=n(15),s=n(43),l=n(15),u=n(119),c=n(512);function f(t){var e=t.chart,n=t.options,i=n.data,a=n.areaStyle,o=n.color,c=n.point,f=n.line,d=n.isPercent,p=n.xField,h=n.yField,g=n.tooltip,v=n.seriesField,y=n.startOnZero,m=null==c?void 0:c.state,b=u.getDataWhetherPecentage(i,h,p,h,d);e.data(b);var x=d?r.__assign({formatter:function(t){return{name:t[v]||t[p],value:(100*Number(t[h])).toFixed(2)+"%"}}},g):g,_=l.deepAssign({},t,{options:{area:{color:o,style:a},line:f&&r.__assign({color:o},f),point:c&&r.__assign({color:o},c),tooltip:x,label:void 0,args:{startOnZero:y}}}),O=l.deepAssign({options:{line:{size:2}}},_,{options:{sizeField:v,tooltip:!1}}),P=l.deepAssign({},_,{options:{tooltip:!1,state:m}});return s.area(_),s.line(O),s.point(P),t}function d(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=o.findGeometry(e,"area");if(i){var u=i.callback,c=r.__rest(i,["callback"]);s.label({fields:[a],callback:u,cfg:r.__assign({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},l.transformLabel(c))})}else s.label(!1);return t}function p(t){var e=t.chart,n=t.options,r=n.isStack,a=n.isPercent,o=n.seriesField;return(a||r)&&o&&i.each(e.geometries,function(t){t.adjust("stack")}),t}Object.defineProperty(e,"meta",{enumerable:!0,get:function(){return c.meta}}),e.adaptor=function(t){return l.flow(a.theme,a.pattern("areaStyle"),f,c.meta,p,c.axis,c.legend,a.tooltip,d,a.slider,a.annotation(),a.interaction,a.animation,a.limitInPlot)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left"}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.interaction=e.pieAnnotation=e.transformStatisticOptions=void 0;var r=n(1),i=n(0),a=n(34),o=n(59),s=n(43),l=n(153),u=n(131),c=n(15),f=n(525),d=n(526),p=n(527);function h(t){var e=t.chart,n=t.options,i=n.data,a=n.angleField,o=n.colorField,l=n.color,u=n.pieStyle,f=c.processIllegalData(i,a);if(d.isAllZero(f,a)){var p="$$percentage$$";f=f.map(function(t){var e;return r.__assign(r.__assign({},t),((e={})[p]=1/f.length,e))}),e.data(f);var h=c.deepAssign({},t,{options:{xField:"1",yField:p,seriesField:o,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0}}});s.interval(h)}else{e.data(f);var h=c.deepAssign({},t,{options:{xField:"1",yField:a,seriesField:o,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0}}});s.interval(h)}return t}function g(t){var e,n=t.chart,r=t.options,i=r.meta,a=r.colorField,o=c.deepAssign({},i);return n.scale(o,((e={})[a]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}),t}function y(t){var e=t.chart,n=t.options,a=n.label,o=n.colorField,s=n.angleField,l=e.geometries[0];if(a){var u=a.callback,f=r.__rest(a,["callback"]),p=c.transformLabel(f);if(p.content){var h=p.content;p.content=function(t,n,a){var l=t[o],u=t[s],f=e.getScaleByField(s),d=null==f?void 0:f.scale(u);return i.isFunction(h)?h(r.__assign(r.__assign({},t),{percent:d}),n,a):i.isString(h)?c.template(h,{value:u,name:l,percentage:i.isNumber(d)&&!i.isNil(u)?(100*d).toFixed(2)+"%":null}):h}}var g=p.type?({inner:"",outer:"pie-outer",spider:"pie-spider"})[p.type]:"pie-outer",v=p.layout?i.isArray(p.layout)?p.layout:[p.layout]:[];p.layout=(g?[{type:g}]:[]).concat(v),l.label({fields:o?[s,o]:[s],callback:u,cfg:r.__assign(r.__assign({},p),{offset:d.adaptOffset(p.type,p.offset),type:"pie"})})}else l.label(!1);return t}function m(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,a=t.colorField,o=t.meta,s=t.locale,l=u.getLocale(s);if(e&&n){var p=c.deepAssign({},f.DEFAULT_OPTIONS.statistic,n),h=p.title,g=p.content;return!1!==h&&(h=c.deepAssign({},{formatter:function(t){return t?t[a]:i.isNil(h.content)?l.get(["statistic","total"]):h.content}},h)),!1!==g&&(g=c.deepAssign({},{formatter:function(t,e){var n=t?t[r]:d.getTotalValue(e,r),a=i.get(o,[r,"formatter"])||function(t){return t};return t?a(n):i.isNil(g.content)?a(n):g.content}},g)),c.deepAssign({},{statistic:{title:h,content:g}},t)}return t}function b(t){var e=t.chart,n=m(t.options),r=n.innerRadius,i=n.statistic;return e.getController("annotation").clear(!0),c.flow(a.annotation())(t),r&&i&&c.renderStatistic(e,{statistic:i,plotType:"pie"}),t}function x(t){var e=t.chart,n=t.options,r=n.tooltip,a=n.colorField,s=n.angleField,l=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(c.deepAssign({},r,{shared:!1})),d.isAllZero(l,s)){var u=i.get(r,"fields"),f=i.get(r,"formatter");i.isEmpty(i.get(r,"fields"))&&(u=[a,s],f=f||function(t){return{name:t[a],value:i.toString(t[s])}}),e.geometries[0].tooltip(u.join("*"),o.getMappingFunction(u,f))}return t}function _(t){var e=t.chart,n=m(t.options),a=n.interactions,o=n.statistic,s=n.annotations;return i.each(a,function(t){var n,a;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var l=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(l=[{trigger:"element:mouseenter",action:p.PIE_STATISTIC+":change",arg:{statistic:o,annotations:s}}]),i.each(null===(a=t.cfg)||void 0===a?void 0:a.start,function(t){l.push(r.__assign(r.__assign({},t),{arg:{statistic:o,annotations:s}}))}),e.interaction(t.type,c.deepAssign({},t.cfg,{start:l}))}else e.interaction(t.type,t.cfg||{})}),t}e.transformStatisticOptions=m,e.pieAnnotation=b,e.interaction=_,e.adaptor=function(t){return c.flow(l.pattern("pieStyle"),h,g,a.theme,v,a.legend,x,y,a.state,b,_,a.animation)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieLegendAction=void 0;var r=n(1),i=n(14),a=n(0),o=n(528),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getActiveElements=function(){var t=i.Util.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,a=n.get("field");if(a)return e.geometries[0].elements.filter(function(t){return t.getModel().data[a]===r.value})}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter(function(t){return e.find(function(e){return a.isEqual(e.getData(),t.get("data"))})})},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach(function(e,r){var a=n[r],s=e.geometry.coordinate;if(s.isPolar&&s.isTransposed){var l=i.Util.getAngle(e.getModel(),s),u=(l.startAngle+l.endAngle)/2,c=t,f=c*Math.cos(u),d=c*Math.sin(u);e.shape.setMatrix(o.transform([["t",f,d]])),a.setMatrix(o.transform([["t",f,d]]))}})},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(i.Action);e.PieLegendAction=s},function(t,e,n){"use strict";var r=n(2)(n(6));Object.defineProperty(e,"__esModule",{value:!0}),e.StatisticAction=void 0;var i=n(1),a=n(14),o=n(0),s=n(503),l=n(1131),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",function(){var n=t.getAnnotations(e);t.initialAnnotation=n})},e.prototype.change=function(t){var e=this.context,n=e.view,i=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var u=o.get(i,["data","data"]);if(i.type.match("legend-item")){var c=a.Util.getDelegationObject(this.context),f=n.getGroupedFields()[0];if(c&&f){var d=c.item;u=n.getData().find(function(t){return t[f]===d.value})}}if(u){var p=o.get(t,"annotations",[]),h=o.get(t,"statistic",{});n.getController("annotation").clear(!0),o.each(p,function(t){"object"===(0,r.default)(t)&&n.annotation()[t.type](t)}),s.renderStatistic(n,{statistic:h,plotType:"pie"},u),n.render(!0)}var g=l.getCurrentElement(this.context);g&&g.shape.toFront()},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();o.each(e,function(e){t.annotation()[e.type](e)}),t.render(!0)},e}(a.Action);e.StatisticAction=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentElement=void 0,e.getCurrentElement=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(1),i=n(0),a=n(15),o=n(15),s=n(34),l=n(59),u=n(64);function c(t){var e=t.chart,n=t.options,r=n.data,o=n.type,s=n.xField,c=n.yField,f=n.colorField,d=n.sizeField,p=n.sizeRatio,h=n.shape,g=n.color,v=n.tooltip,y=n.heatmapStyle;e.data(r);var m="polygon";"density"===o&&(m="heatmap");var b=u.getTooltipMapping(v,[s,c,f]),x=b.fields,_=b.formatter,O=1;return(p||0===p)&&(h||d?p<0||p>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):O=p:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),l.geometry(a.deepAssign({},t,{options:{type:m,colorField:f,tooltipFields:x,shapeField:d||"",label:void 0,mapping:{tooltip:_,shape:h&&(d?function(t){var e=r.map(function(t){return t[d]}),n=Math.min.apply(Math,e),a=Math.max.apply(Math,e);return[h,(i.get(t,d)-n)/(a-n),O]}:function(){return[h,1,O]}),color:g||f&&e.getTheme().sequenceColors.join("-"),style:y}}})),t}function f(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,l=n.yField;return o.flow(s.scale(((e={})[a]=r,e[l]=i,e)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function p(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,a=n.sizeField,o=n.sizeLegend,s=!1!==r;return i&&e.legend(i,!!s&&r),a&&e.legend(a,void 0===o?r:o),s||o||e.legend(!1),t}function h(t){var e=t.chart,n=t.options,i=n.label,s=n.colorField,l=n.type,u=a.findGeometry(e,"density"===l?"heatmap":"polygon");if(i){if(s){var c=i.callback,f=r.__rest(i,["callback"]);u.label({fields:[s],callback:c,cfg:o.transformLabel(f)})}}else u.label(!1);return t}function g(t){var e=t.chart,n=t.options,r=n.coordinate,i=n.reflect;return r&&e.coordinate({type:r.type||"rect",cfg:r.cfg}),i&&e.coordinate().reflect(i),t}e.adaptor=function(t){return o.flow(s.theme,s.pattern("heatmapStyle"),f,g,c,d,p,s.tooltip,h,s.annotation(),s.interaction,s.animation,s.state)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);n(14).registerShape("polygon","circle",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),l=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y))/2,u=Number(t.shape[1]),c=l*Math.sqrt(Number(t.shape[2]))*Math.sqrt(u),f=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("circle",{attrs:r.__assign(r.__assign(r.__assign({x:a,y:o,r:c},t.defaultStyle),t.style),{fill:f})})}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);n(14).registerShape("polygon","square",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),l=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y)),u=Number(t.shape[1]),c=l*Math.sqrt(Number(t.shape[2]))*Math.sqrt(u),f=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("rect",{attrs:r.__assign(r.__assign(r.__assign({x:a-c/2,y:o-c/2,width:c,height:c},t.defaultStyle),t.style),{fill:f})})}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.legend=void 0;var r=n(1),i=n(0),a=n(34),o=n(15),s=n(43),l=n(529),u=n(530);function c(t){var e=t.chart,n=t.options,a=n.colorField,c=n.color,f=l.transform(t);e.data(f);var d=o.deepAssign({},t,{options:{xField:"x",yField:"y",seriesField:a&&u.WORD_CLOUD_COLOR_FIELD,rawFields:i.isFunction(c)&&r.__spreadArrays(i.get(n,"rawFields",[]),["datum"]),point:{color:c,shape:"word-cloud"}}});return s.point(d).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function f(t){return o.flow(a.scale({x:{nice:!1},y:{nice:!1}}))(t)}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend(u.WORD_CLOUD_COLOR_FIELD,r),t}e.legend=d,e.adaptor=function(t){o.flow(c,f,a.tooltip,d,a.interaction,a.animation,a.theme,a.state)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.functor=e.transform=e.wordCloud=void 0;var r=n(0),i={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function a(t,e){var n,i,a,y,m,b,x,_,O,P,M,A=(n=[256,256],i=l,a=c,y=u,m=f,b=d,x=p,_=Math.random,O=[],P=1/0,(M={}).start=function(){var t,e,r,l=n[0],c=n[1],f=((t=document.createElement("canvas")).width=t.height=1,e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2),t.width=2048/e,t.height=2048/e,(r=t.getContext("2d")).fillStyle=r.strokeStyle="red",r.textAlign="center",{context:r,ratio:e}),d=M.board?M.board:h((n[0]>>5)*n[1]),p=O.length,g=[],v=O.map(function(t,e,n){return t.text=s.call(this,t,e,n),t.font=i.call(this,t,e,n),t.style=u.call(this,t,e,n),t.weight=y.call(this,t,e,n),t.rotate=m.call(this,t,e,n),t.size=~~a.call(this,t,e,n),t.padding=b.call(this,t,e,n),t}).sort(function(t,e){return e.size-t.size}),A=-1,S=M.board?[{x:0,y:0},{x:l,y:c}]:null;return function(){for(var t=Date.now();Date.now()-t>1,e.y=c*(_()+.5)>>1,function(t,e,n,r){if(!e.sprite){var i=t.context,a=t.ratio;i.clearRect(0,0,2048/a,2048/a);var s=0,l=0,u=0,c=n.length;for(--r;++r>5<<5,d=~~Math.max(Math.abs(v+y),Math.abs(v-y))}else f=f+31>>5<<5;if(d>u&&(u=d),s+f>=2048&&(s=0,l+=u,u=0),l+d>=2048)break;i.translate((s+(f>>1))/a,(l+(d>>1))/a),e.rotate&&i.rotate(e.rotate*o),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=f,e.height=d,e.xoff=s,e.yoff=l,e.x1=f>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,s+=f}for(var b=i.getImageData(0,0,2048/a,2048/a).data,x=[];--r>=0;)if((e=n[r]).hasText){for(var f=e.width,_=f>>5,d=e.y1-e.y0,O=0;O>5),w=b[(l+A)*2048+(s+O)<<2]?1<<31-O%32:0;x[S]|=w,P|=w}P?M=A:(e.y0++,d--,A--,l++)}e.y1=e.y0+M,e.sprite=x.slice(0,(e.y1-e.y0)*_)}}}(f,e,v,A),e.hasText&&function(t,e,r){for(var i,a,o,s=e.x,l=e.y,u=Math.sqrt(n[0]*n[0]+n[1]*n[1]),c=x(n),f=.5>_()?1:-1,d=-f;(i=c(d+=f))&&!(Math.min(Math.abs(a=~~i[0]),Math.abs(o=~~i[1]))>=u);)if(e.x=s+a,e.y=l+o,!(e.x+e.x0<0)&&!(e.y+e.y0<0)&&!(e.x+e.x1>n[0])&&!(e.y+e.y1>n[1])&&(!r||!function(t,e,n){n>>=5;for(var r,i=t.sprite,a=t.width>>5,o=t.x-(a<<4),s=127&o,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*n+(o>>5),f=0;f>>s:0))&e[c+d])return!0;c+=n}return!1}(e,t,n[0]))&&(!r||e.x+e.x1>r[0].x&&e.x+e.x0r[0].y&&e.y+e.y0>5,g=n[0]>>5,v=e.x-(h<<4),y=127&v,m=32-y,b=e.y1-e.y0,O=void 0,P=(e.y+e.y0)*g+(v>>5),M=0;M>>y:0);P+=g}return delete e.sprite,!0}return!1}(d,e,S)&&(g.push(e),S?M.hasImage||function(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}(S,e):S=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=n[0]>>1,e.y-=n[1]>>1)}M._tags=g,M._bounds=S}(),M},M.createMask=function(t){var e=document.createElement("canvas"),r=n[0],i=n[1];if(r&&i){var a=r>>5,o=h((r>>5)*i);e.width=r,e.height=i;var s=e.getContext("2d");s.drawImage(t,0,0,t.width,t.height,0,0,r,i);for(var l=s.getImageData(0,0,r,i).data,u=0;u>5),d=u*r+c<<2,p=l[d]>=250&&l[d+1]>=250&&l[d+2]>=250?1<<31-c%32:0;o[f]|=p}M.board=o,M.hasImage=!0}},M.timeInterval=function(t){P=null==t?1/0:t},M.words=function(t){O=t},M.size=function(t){n=[+t[0],+t[1]]},M.font=function(t){i=g(t)},M.fontWeight=function(t){y=g(t)},M.rotate=function(t){m=g(t)},M.spiral=function(t){x=v[t]||t},M.fontSize=function(t){a=g(t)},M.padding=function(t){b=g(t)},M.random=function(t){_=g(t)},M);["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(t){r.isNil(e[t])||A[t](e[t])}),A.words(t),e.imageMask&&A.createMask(e.imageMask);var S=A.start()._tags;S.forEach(function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2});var w=e.size,E=w[0],C=w[1];return S.push({text:"",value:0,x:0,y:0,opacity:0}),S.push({text:"",value:0,x:E,y:C,opacity:0}),S}e.wordCloud=function(t,e){return a(t,e=r.assign({},i,e))},e.transform=a;var o=Math.PI/180;function s(t){return t.text}function l(){return"serif"}function u(){return"normal"}function c(t){return t.value}function f(){return 90*~~(2*Math.random())}function d(){return 1}function p(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function h(t){for(var e=[],n=-1;++n=0)&&(p=p?i.isArray(p)?p:[p]:[],f.layout=i.filter(p,function(t){return"limit-in-shape"!==t.type}),f.layout.length||delete f.layout),l.label({fields:c||[s],callback:u,cfg:a.transformLabel(f)})}else a.log(a.LEVEL.WARN,null===o,"the label option must be an Object."),l.label({fields:[s]});return t}function c(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function f(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}),t}function d(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,l=n.yField;return a.flow(o.scale(((e={})[s]=r,e[l]=i,e)))(t)}function p(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return r?e.axis(a,r):e.axis(a,!1),i?e.axis(o,i):e.axis(o,!1),t}e.legend=c,e.adaptor=function(t){a.flow(o.pattern("sectorStyle"),l,d,u,f,p,c,o.tooltip,o.interaction,o.animation,o.theme,o.annotation(),o.state)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right"},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(0),i=n(34),a=n(131),o=n(15),s=n(521),l=n(531),u=n(1142),c=n(1143),f=n(1144),d=n(120);function p(t){var e,n=t.options,i=n.compareField,l=n.xField,u=n.yField,c=n.locale,f=n.funnelStyle,p=n.data,h=a.getLocale(c),g={label:i?{fields:[l,u,i,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],formatter:function(t){return""+t[u]}}:{fields:[l,u,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],offset:0,position:"middle",formatter:function(t){return t[l]+" "+t[u]}},tooltip:{title:l,formatter:function(t){return{name:t[l],value:t[u]}}},conversionTag:{formatter:function(t){return h.get(["conversionTag","label"])+": "+s.conversionTagFormatter.apply(void 0,t[d.FUNNEL_CONVERSATION])}}};return(i||f)&&(e=function(t){return o.deepAssign({},i&&{lineWidth:1,stroke:"#fff"},r.isFunction(f)?f(t):f)}),o.deepAssign({options:g},t,{options:{funnelStyle:e,data:r.clone(p)}})}function h(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?c.facetFunnel(t):n?u.compareFunnel(t):r?f.dynamicHeightFunnel(t):l.basicFunnel(t)}function g(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,s=n.xField,l=n.yField;return o.flow(i.scale(((e={})[s]=r,e[l]=a,e)))(t)}function v(t){return t.chart.axis(!1),t}function y(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}e.meta=g,e.adaptor=function(t){return o.flow(p,h,g,v,i.tooltip,i.interaction,y,i.animation,i.theme,i.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.compareFunnel=void 0;var r=n(0),i=n(15),a=n(64),o=n(59),s=n(120),l=n(300);function u(t){var e,n=t.chart,r=t.options,i=r.data,a=void 0===i?[]:i,o=r.yField;return n.data(a),n.scale(((e={})[o]={sync:!0},e)),t}function c(t){var e=t.chart,n=t.options,u=n.data,c=n.xField,f=n.yField,d=n.color,p=n.compareField,h=n.isTransposed,g=n.tooltip,v=n.maxSize,y=n.minSize,m=n.label,b=n.funnelStyle,x=n.state;return e.facet("mirror",{fields:[p],transpose:!h,padding:h?0:[32,0,0,0],eachView:function(t,e){var n=h?e.rowIndex:e.columnIndex;h||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var _=l.transformData(e.data,u,{yField:f,maxSize:v,minSize:y});t.data(_);var O=a.getTooltipMapping(g,[c,f,p]),P=O.fields,M=O.formatter;o.geometry({chart:t,options:{type:"interval",xField:c,yField:s.FUNNEL_MAPPING_VALUE,colorField:c,tooltipFields:r.isArray(P)&&P.concat([s.FUNNEL_PERCENT,s.FUNNEL_CONVERSATION]),mapping:{shape:"funnel",tooltip:M,color:d,style:b},label:!1!==m&&i.deepAssign({},h?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}},m),state:x}})}}),t}function f(t){var e=t.chart,n=t.options,r=n.conversionTag,a=n.isTransposed;return e.once("beforepaint",function(){e.views.forEach(function(t,e){l.conversionTagComponent(function(t,n,o,l){return i.deepAssign({},l,{start:[n-.5,t[s.FUNNEL_MAPPING_VALUE]],end:[n-.5,t[s.FUNNEL_MAPPING_VALUE]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:!1!==r?(0===e?-1:1)*r.offsetX:0,style:{textAlign:0===e?"end":"start"}}})})(i.deepAssign({},{chart:t,options:n}))})}),t}e.compareFunnel=function(t){return i.flow(u,c,f)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.facetFunnel=void 0;var r=n(15),i=n(531);function a(t){var e,n=t.chart,r=t.options,i=r.data,a=void 0===i?[]:i,o=r.yField;return n.data(a),n.scale(((e={})[o]={sync:!0},e)),t}function o(t){var e=t.chart,n=t.options,a=n.seriesField,o=n.isTransposed;return e.facet("rect",{fields:[a],padding:[o?0:32,10,0,10],eachView:function(e,n){i.basicFunnel(r.deepAssign({},t,{chart:e,options:{data:n.data}}))}}),t}e.facetFunnel=function(t){return r.flow(a,o)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dynamicHeightFunnel=void 0;var r=n(1),i=n(0),a=n(15),o=n(120),s=n(59),l=n(64),u=n(300);function c(t){var e=t.chart,n=t.options,r=n.data,a=void 0===r?[]:r,s=n.yField,l=i.reduce(a,function(t,e){return t+(e[s]||0)},0),u=i.maxBy(a,s)[s],c=i.map(a,function(t,e){var n=[],r=[];if(t[o.FUNNEL_TOTAL_PERCENT]=(t[s]||0)/l,e){var c=a[e-1][o.PLOYGON_X],f=a[e-1][o.PLOYGON_Y];n[0]=c[3],r[0]=f[3],n[1]=c[2],r[1]=f[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t[o.FUNNEL_TOTAL_PERCENT],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t[o.PLOYGON_X]=n,t[o.PLOYGON_Y]=r,t[o.FUNNEL_PERCENT]=(t[s]||0)/u,t[o.FUNNEL_CONVERSATION]=[i.get(a,[e-1,s]),t[s]],t});return e.data(c),t}function f(t){var e=t.chart,n=t.options,r=n.xField,a=n.yField,u=n.color,c=n.tooltip,f=n.label,d=n.funnelStyle,p=n.state,h=l.getTooltipMapping(c,[r,a]),g=h.fields,v=h.formatter;return s.geometry({chart:e,options:{type:"polygon",xField:o.PLOYGON_X,yField:o.PLOYGON_Y,colorField:r,tooltipFields:i.isArray(g)&&g.concat([o.FUNNEL_PERCENT,o.FUNNEL_CONVERSATION]),label:f,state:p,mapping:{tooltip:v,color:u,style:d}}}),t}function d(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function p(t){return u.conversionTagComponent(function(t,e,n,i){return r.__assign(r.__assign({},i),{start:[t[o.PLOYGON_X][1],t[o.PLOYGON_Y][1]],end:[t[o.PLOYGON_X][1]+.05,t[o.PLOYGON_Y][1]]})})(t),t}e.dynamicHeightFunnel=function(t){return a.flow(c,f,d,p)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=void 0;var r=n(1),i=n(34),a=n(43),o=n(15);function s(t){var e=t.chart,n=t.options,i=n.data,s=n.lineStyle,l=n.color,u=n.point,c=n.area;e.data(i);var f=o.deepAssign({},t,{options:{line:{style:s,color:l},point:u?r.__assign({color:l},u):u,area:c?r.__assign({color:l},c):c,label:void 0}}),d=o.deepAssign({},f,{options:{tooltip:!1}}),p=(null==u?void 0:u.state)||n.state,h=o.deepAssign({},f,{options:{tooltip:!1,state:p}});return a.line(f),a.point(h),a.area(d),t}function l(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,s=n.xField,l=n.yField;return o.flow(i.scale(((e={})[s]=r,e[l]=a,e)))(t)}function u(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,a=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:a}),t}function c(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,a=n.yField,o=n.yAxis;return e.axis(r,i),e.axis(a,o),t}function f(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=o.findGeometry(e,"line");if(i){var l=i.callback,u=r.__rest(i,["callback"]);s.label({fields:[a],callback:l,cfg:o.transformLabel(u)})}else s.label(!1);return t}e.adaptor=function(t){return o.flow(s,l,i.theme,u,c,i.legend,i.tooltip,f,i.interaction,i.animation,i.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=n(1147);r.registerAction("radar-tooltip",i.RadarTooltipAction),r.registerInteraction("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RadarTooltipAction=e.RadarTooltipController=void 0;var r=n(1),i=n(14),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),o=n.shared,s=n.title,l=t.prototype.getTooltipItems.call(this,e);if(l.length>0){var u=this.view.geometries[0],c=u.dataArray,f=l[0].name,d=[];return c.forEach(function(t){t.forEach(function(t){var e=i.Util.getTooltipItems(t,u)[0];if(!o&&e&&e.name===f){var n=a.isNil(s)?f:s;d.push(r.__assign(r.__assign({},e),{name:e.title,title:n}))}else if(o&&e){var n=a.isNil(s)?e.name||f:s;d.push(r.__assign(r.__assign({},e),{name:e.title,title:n}))}})}),d}return[]},e}(i.TooltipController);e.RadarTooltipController=o,i.registerComponentController("radar-tooltip",o);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(i.Action);e.RadarTooltipAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.statistic=void 0;var r=n(1),i=n(0),a=n(34),o=n(15),s=n(43),l=n(532);function u(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,a=n.radius,u=n.outline,c=n.wave,f=n.shape;e.scale({percent:{min:0,max:1}}),e.data(l.getLiquidData(r));var d=n.color||e.getTheme().defaultColor,p=o.deepAssign({},t,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:d,style:i,shape:"liquid-fill-gauge"}}}),h=s.interval(p).ext.geometry,g=e.getTheme().background;return h.customInfo({radius:a,outline:u,wave:c,shape:f,background:g}),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function c(t,e){var n=t.chart,a=t.options,s=a.statistic,l=a.percent,u=a.meta;n.getController("annotation").clear(!0);var c=i.get(u,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},f=s.content;return f&&(f=o.deepAssign({},f,{content:i.isNil(f.content)?c(l):f.content})),o.renderStatistic(n,{statistic:r.__assign(r.__assign({},s),{content:f}),plotType:"liquid"},{percent:l}),e&&n.render(!0),t}e.statistic=c,e.adaptor=function(t){return o.flow(a.theme,a.pattern("liquidStyle"),u,c,a.scale({}),a.animation,a.interaction)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0,e.DEFAULT_OPTIONS={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(14),a=n(0),o=n(528);function s(t,e,n,r){var i=2*n/3,a=Math.max(i,r),o=i/2,s=o+e-a/2,l=Math.asin(o/((a-o)*.85)),u=Math.sin(l)*o,c=Math.cos(l)*o,f=t-c,d=s+u,p=s+o/Math.sin(l);return"\n M "+f+" "+d+"\n A "+o+" "+o+" 0 1 1 "+(f+2*c)+" "+d+"\n Q "+t+" "+p+" "+t+" "+(e+a/2)+"\n Q "+t+" "+p+" "+f+" "+d+"\n Z \n "}function l(t,e,n,r){var i=n/2,a=r/2;return"\n M "+t+" "+(e-a)+" \n a "+i+" "+a+" 0 1 0 0 "+2*a+"\n a "+i+" "+a+" 0 1 0 0 "+-(2*a)+"\n Z\n "}function u(t,e,n,r){var i=r/2,a=n/2;return"\n M "+t+" "+(e-i)+"\n L "+(t+a)+" "+e+"\n L "+t+" "+(e+i)+"\n L "+(t-a)+" "+e+"\n Z\n "}function c(t,e,n,r){var i=r/2,a=n/2;return"\n M "+t+" "+(e-i)+"\n L "+(t+a)+" "+(e+i)+"\n L "+(t-a)+" "+(e+i)+"\n Z\n "}function f(t,e,n,r){var i=r/2,a=n/2*.618;return"\n M "+(t-a)+" "+(e-i)+"\n L "+(t+a)+" "+(e-i)+"\n L "+(t+a)+" "+(e+i)+"\n L "+(t-a)+" "+(e+i)+"\n Z\n "}i.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var n,i,d,p=t.customInfo,h=p.radius,g=p.shape,v=p.background,y=p.outline,m=p.wave,b=y.border,x=y.distance,_=m.count,O=m.length,P=a.reduce(t.points,function(t,e){return Math.min(t,e.x)},1/0),M=this.parsePoint({x:.5,y:.5}),A=this.parsePoint({x:P,y:.5}),S=Math.min(M.x-A.x,A.y*h),w=(n=r.__assign({opacity:1},t.style),t.color&&!n.fill&&(n.fill=t.color),n),E=(i=a.mix({},t,y),d=a.mix({},{fill:"#fff",fillOpacity:0,lineWidth:4},i.style),i.color&&!d.stroke&&(d.stroke=i.color),a.isNumber(i.opacity)&&(d.opacity=d.strokeOpacity=i.opacity),d),C=S-b/2,T={pin:s,circle:l,diamond:u,triangle:c,rect:f},I=("function"==typeof g?g:T[g]||T.circle)(M.x,M.y,2*C,2*C),j=e.addGroup({name:"waves"}),F=j.setClip({type:"path",attrs:{path:I}});return function(t,e,n,r,i,a,s,l,u){for(var c=i.fill,f=i.opacity,d=s.getBBox(),p=d.maxX-d.minX,h=d.maxY-d.minY,g=0;g0;)u-=2*Math.PI;var c=a-t+(u=u/Math.PI/2*n)-2*t;l.push(["M",c,e]);for(var f=0,d=0;d0?g:v},b=l.deepAssign({},t,{options:{xField:a,yField:u.Y_FIELD,seriesField:a,rawFields:[s,u.DIFF_FIELD,u.IS_TOTAL,u.Y_FIELD],widthRatio:p,interval:{style:h,shape:"waterfall",color:m}}});return o.interval(b).ext.geometry.customInfo({leaderLine:d}),t}function p(t){var e,n,r=t.options,o=r.xAxis,s=r.yAxis,c=r.xField,f=r.yField,d=r.meta,p=l.deepAssign({},{alias:f},i.get(d,f));return l.flow(a.scale(((e={})[c]=o,e[f]=s,e[u.Y_FIELD]=s,e),l.deepAssign({},d,((n={})[u.Y_FIELD]=p,n[u.DIFF_FIELD]=p,n[u.ABSOLUTE_FIELD]=p,n))))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?(e.axis(o,!1),e.axis(u.Y_FIELD,!1)):(e.axis(o,i),e.axis(u.Y_FIELD,i)),t}function g(t){var e=t.chart,n=t.options,r=n.legend,a=n.total,o=n.risingFill,u=n.fallingFill,c=n.locale,f=s.getLocale(c);if(!1===r)e.legend(!1);else{var d=[{name:f.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:f.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:u}}}];a&&d.push({name:a.label||"",value:"total",marker:{symbol:"square",style:l.deepAssign({},{r:5},i.get(a,"style"))}}),e.legend(l.deepAssign({},{custom:!0,position:"top",items:d},r)),e.removeInteraction("legend-filter")}return t}function v(t){var e=t.chart,n=t.options,i=n.label,a=n.labelMode,o=n.xField,s=l.findGeometry(e,"interval");if(i){var c=i.callback,f=r.__rest(i,["callback"]);s.label({fields:"absolute"===a?[u.ABSOLUTE_FIELD,o]:[u.DIFF_FIELD,o],callback:c,cfg:l.transformLabel(f)})}else s.label(!1);return t}function y(t){var e=t.chart,n=t.options,i=n.tooltip,a=n.xField,o=n.yField;if(!1!==i){e.tooltip(r.__assign({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},i));var s=e.geometries[0];(null==i?void 0:i.formatter)?s.tooltip(a+"*"+o,i.formatter):s.tooltip(o)}else e.tooltip(!1);return t}n(1153),e.tooltip=y,e.adaptor=function(t){return l.flow(f,a.theme,d,p,h,g,y,v,a.state,a.interaction,a.animation,a.annotation())(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(14),a=n(0),o=n(15);i.registerShape("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,s=t.nextPoints,l=e.addGroup(),u=this.parsePath(function(t){for(var e=[],n=0;n0,d=c>0;function p(t,e){var n=a.get(i,[t]);function r(t){return a.get(n,t)}var o={};return"x"===e?(a.isNumber(u)&&(a.isNumber(r("min"))||(o.min=f?0:2*u),a.isNumber(r("max"))||(o.max=f?2*u:0)),o):(a.isNumber(c)&&(a.isNumber(r("min"))||(o.min=d?0:2*c),a.isNumber(r("max"))||(o.max=d?2*c:0)),o)}return r.__assign(r.__assign({},i),((e={})[o]=r.__assign(r.__assign({},i[o]),p(o,"x")),e[s]=r.__assign(r.__assign({},i[s]),p(s,"y")),e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(520)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.meta=void 0;var r=n(1),i=n(0),a=n(34),o=n(15),s=n(43),l=n(537);function u(t){var e=t.chart,n=t.options,a=n.bulletStyle,u=n.targetField,c=n.rangeField,f=n.measureField,d=n.xField,p=n.color,h=n.layout,g=n.size,v=n.label,y=l.transformData(n),m=y.min,b=y.max,x=y.ds;e.data(x);var _=o.deepAssign({},t,{options:{xField:d,yField:c,seriesField:"rKey",isStack:!0,label:i.get(v,"range"),interval:{color:i.get(p,"range"),style:i.get(a,"range"),size:i.get(g,"range")}}});s.interval(_),e.geometries[0].tooltip(!1);var O=o.deepAssign({},t,{options:{xField:d,yField:f,seriesField:"mKey",isStack:!0,label:i.get(v,"measure"),interval:{color:i.get(p,"measure"),style:i.get(a,"measure"),size:i.get(g,"measure")}}});s.interval(O);var P=o.deepAssign({},t,{options:{xField:d,yField:u,seriesField:"tKey",label:i.get(v,"target"),point:{color:i.get(p,"target"),style:i.get(a,"target"),size:i.isFunction(i.get(g,"target"))?function(t){return i.get(g,"target")(t)/2}:i.get(g,"target")/2,shape:"horizontal"===h?"line":"hyphen"}}});return s.point(P),"horizontal"===h&&e.coordinate().transpose(),r.__assign(r.__assign({},t),{ext:{data:{min:m,max:b}}})}function c(t){var e,n,r=t.options,i=t.ext,s=r.xAxis,l=r.yAxis,u=r.targetField,c=r.rangeField,f=r.measureField,d=r.xField,p=i.data;return o.flow(a.scale(((e={})[d]=s,e[f]=l,e),((n={})[f]={min:null==p?void 0:p.min,max:null==p?void 0:p.max,sync:!0},n[u]={sync:""+f},n[c]={sync:""+f},n)))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.measureField,s=n.rangeField,l=n.targetField;return e.axis(""+s,!1),e.axis(""+l,!1),!1===r?e.axis(""+a,!1):e.axis(""+a,r),!1===i?e.axis(""+o,!1):e.axis(""+o,i),t}function d(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function p(t){var e=t.chart,n=t.options,a=n.label,s=n.measureField,l=n.targetField,u=n.rangeField,c=e.geometries,f=c[0],d=c[1],p=c[2];return i.get(a,"range")?f.label(""+u,r.__assign({layout:[{type:"limit-in-plot"}]},o.transformLabel(a.range))):f.label(!1),i.get(a,"measure")?d.label(""+s,r.__assign({layout:[{type:"limit-in-plot"}]},o.transformLabel(a.measure))):d.label(!1),i.get(a,"target")?p.label(""+l,r.__assign({layout:[{type:"limit-in-plot"}]},o.transformLabel(a.target))):p.label(!1),t}e.meta=c,e.adaptor=function(t){o.flow(u,c,f,d,a.theme,p,a.tooltip,a.interaction,a.animation)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(24),i=n(15);e.DEFAULT_OPTIONS=i.deepAssign({},r.Plot.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flow=function(){for(var t=[],e=0;e=(0,r.get)(e,["views","length"],0)?i(e):(0,r.reduce)(e.views,function(e,n){return e.concat(t(n))},i(e))},e.getAllGeometriesRecursively=function(t){return 0>=(0,r.get)(t,["views","length"],0)?t.geometries:(0,r.reduce)(t.views,function(t,e){return t.concat(e.geometries)},t.geometries)};var r=n(0);function i(t){return(0,r.reduce)(t.geometries,function(t,e){return t.concat(e.elements)},[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformLabel=function(t){if(!(0,i.isType)(t,"Object"))return t;var e=(0,r.__assign)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e};var r=n(1),i=n(0)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.catmullRom2bezier=o,e.getSplinePath=function(t,e,n){var r=[],a=t[0],s=null;if(t.length<=2)return i(t,e);for(var l=0,u=t.length;l0){var n;(function(t,e,n){var i,a=t.view,o=t.geometry,s=t.group,u=t.options,c=t.horizontal,f=u.offset,d=u.size,p=u.arrow,h=a.getCoordinate(),g=l(h,e)[c?3:0],v=l(h,n)[c?0:3],y=v.y-g.y,m=v.x-g.x;if("boolean"!=typeof p){var b=p.headSize,x=u.spacing;c?(m-b)/2_){var P=Math.max(1,Math.ceil(_/(O/y.length))-1),M=y.slice(0,P)+"...";x.attr("text",M)}}}}(h,n,t)}})}})),u}};var r=n(1),i=n(0),a=n(14),o=n(7),s=n(551);function l(t,e){return(0,i.map)(e.getModel().points,function(e){return t.convertPoint(e)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connectedArea=function(t){return void 0===t&&(t=!1),function(e){var n=e.chart,r=e.options.connectedArea,o=function(){n.removeInteraction(i.hover),n.removeInteraction(i.click)};if(!t&&r){var s=r.trigger||"hover";o(),n.interaction(i[s],{start:a(s,r.style)})}else o();return e}};var r=n(14),i={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},a=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};(0,r.registerInteraction)(i.hover,{start:a(i.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),(0,r.registerInteraction)(i.click,{start:a(i.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getInteractionCfg=o;var r=n(14),i=n(1199);function a(t){return t.isInPlot()}function o(t,e,n){var r=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a,action:["brush:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null==n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:a,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:a,action:["brush:filter","brush:end",r+"-mask:end",r+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null==n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a,action:["brush-x:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null==n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:a,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:a,action:["brush-x:filter","brush-x:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null==n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a,action:["brush-y:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null==n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:a,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:a,action:["brush-y:filter","brush-y:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null==n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};default:return{}}}(0,r.registerAction)("brush-reset-button",i.ButtonAction,{name:"brush-reset-button"}),(0,r.registerInteraction)("filter-action",{}),(0,r.registerInteraction)("brush",o("brush")),(0,r.registerInteraction)("brush-highlight",o("brush-highlight")),(0,r.registerInteraction)("brush-x",o("brush-x","x-rect")),(0,r.registerInteraction)("brush-y",o("brush-y","y-rect")),(0,r.registerInteraction)("brush-x-highlight",o("brush-x-highlight","x-rect")),(0,r.registerInteraction)("brush-y-highlight",o("brush-y-highlight","y-rect"))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonAction=e.BUTTON_ACTION_CONFIG=void 0;var r=n(1),i=n(14),a=n(0),o=n(7),s={padding:[8,10],text:"reset",textStyle:{default:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"}},buttonStyle:{default:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},active:{fill:"#e6e6e6"}}};e.BUTTON_ACTION_CONFIG=s;var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=(0,r.__assign)({name:"button"},s),e}return(0,r.__extends)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=(0,a.get)(t,["interactions","filter-action","cfg","buttonConfig"]);return(0,o.deepAssign)(this.buttonCfg,e,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=this.drawText(e);this.drawBackground(e,n.getBBox()),this.buttonGroup=e},e.prototype.drawText=function(t){var e,n=this.getButtonCfg();return t.addShape({type:"text",name:"button-text",attrs:(0,r.__assign)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,i=this.getButtonCfg(),a=(0,o.normalPadding)(i.padding),s=t.addShape({type:"rect",name:"button-rect",attrs:(0,r.__assign)({x:e.x-a[3],y:e.y-a[0],width:e.width+a[1]+a[3],height:e.height+a[0]+a[2]},null===(n=i.buttonStyle)||void 0===n?void 0:n.default)});return s.toBack(),t.on("mouseenter",function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.active)}),t.on("mouseleave",function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.default)}),s},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.Util.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(i.Action);e.ButtonAction=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},interactions:[{type:"active-region"}]});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PieLegendAction=void 0;var r=n(1),i=n(14),a=n(0),o=n(561),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getActiveElements=function(){var t=i.Util.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,a=n.get("field");if(a)return e.geometries[0].elements.filter(function(t){return t.getModel().data[a]===r.value})}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements();return t.geometries[0].labelsContainer.getChildren().filter(function(t){return e.find(function(e){return(0,a.isEqual)(e.getData(),t.get("data"))})})},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach(function(e,r){var a=n[r],s=e.geometry.coordinate;if(s.isPolar&&s.isTransposed){var l=i.Util.getAngle(e.getModel(),s),u=(l.startAngle+l.endAngle)/2,c=t,f=c*Math.cos(u),d=c*Math.sin(u);e.shape.setMatrix((0,o.transform)([["t",f,d]])),a.setMatrix((0,o.transform)([["t",f,d]]))}})},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(i.Action);e.PieLegendAction=s},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.StatisticAction=void 0;var i=r(n(6)),a=n(1),o=n(14),s=n(0),l=n(542),u=n(1204),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,a.__extends)(e,t),e.prototype.getAnnotations=function(t){return(t||this.context.view).getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",function(){var n=t.getAnnotations(e);t.initialAnnotation=n})},e.prototype.change=function(t){var e=this.context,n=e.view,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var a=(0,s.get)(r,["data","data"]);if(r.type.match("legend-item")){var c=o.Util.getDelegationObject(this.context),f=n.getGroupedFields()[0];if(c&&f){var d=c.item;a=n.getData().find(function(t){return t[f]===d.value})}}if(a){var p=(0,s.get)(t,"annotations",[]),h=(0,s.get)(t,"statistic",{});n.getController("annotation").clear(!0),(0,s.each)(p,function(t){"object"===(0,i.default)(t)&&n.annotation()[t.type](t)}),(0,l.renderStatistic)(n,{statistic:h,plotType:"pie"},a),n.render(!0)}var g=(0,u.getCurrentElement)(this.context);g&&g.shape.toFront()},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();(0,s.each)(e,function(e){t.annotation()[e.type](e)}),t.render(!0)},e}(o.Action);e.StatisticAction=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentElement=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Rose=void 0;var r=n(1),i=n(19),a=n(1206),o=n(1207),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Rose=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){(0,a.flow)((0,o.pattern)("sectorStyle"),l,d,u,f,p,c,o.tooltip,o.interaction,o.animation,o.theme,(0,o.annotation)(),o.state)(t)},e.legend=c;var r=n(1),i=n(0),a=n(7),o=n(22),s=n(30);function l(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,o=n.color;return e.data(r),(0,a.flow)(s.interval)((0,a.deepAssign)({},t,{options:{marginRatio:1,interval:{style:i,color:o}}})),t}function u(t){var e=t.chart,n=t.options,o=n.label,s=n.xField,l=(0,a.findGeometry)(e,"interval");if(!1===o)l.label(!1);else if((0,i.isObject)(o)){var u=o.callback,c=o.fields,f=(0,r.__rest)(o,["callback","fields"]),d=f.offset,p=f.layout;(void 0===d||d>=0)&&(p=p?(0,i.isArray)(p)?p:[p]:[],f.layout=(0,i.filter)(p,function(t){return"limit-in-shape"!==t.type}),f.layout.length||delete f.layout),l.label({fields:c||[s],callback:u,cfg:(0,a.transformLabel)(f)})}else(0,a.log)(a.LEVEL.WARN,null===o,"the label option must be an Object."),l.label({fields:[s]});return t}function c(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return!1===r?e.legend(!1):i&&e.legend(i,r),t}function f(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:a,endAngle:o}}),t}function d(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,l=n.yField;return(0,a.flow)((0,o.scale)(((e={})[s]=r,e[l]=i,e)))(t)}function p(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return r?e.axis(a,r):e.axis(a,!1),i?e.axis(o,i):e.axis(o,!1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right"},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WordCloud=void 0;var r=n(1),i=n(19),a=n(1209),o=n(563),s=n(562);n(1211);var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData((0,s.transform)({chart:this.chart,options:this.options}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){var e=this;return new Promise(function(n){var i=e.options.imageMask;if(!i){t.prototype.render.call(e),n();return}var a=function(i){e.options=(0,r.__assign)((0,r.__assign)({},e.options),{imageMask:i||null}),t.prototype.render.call(e),n()};(0,s.processImageMask)(i).then(a).catch(a)})},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){t.prototype.triggerResize.call(e)}))},e}(i.Plot);e.WordCloud=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){(0,o.flow)(c,f,a.tooltip,d,a.interaction,a.animation,a.theme,a.state)(t)},e.legend=d;var r=n(1),i=n(0),a=n(22),o=n(7),s=n(30),l=n(562),u=n(563);function c(t){var e=t.chart,n=t.options,a=n.colorField,c=n.color,f=(0,l.transform)(t);e.data(f);var d=(0,o.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:a&&u.WORD_CLOUD_COLOR_FIELD,rawFields:(0,i.isFunction)(c)&&(0,r.__spreadArrays)((0,i.get)(n,"rawFields",[]),["datum"]),point:{color:c,shape:"word-cloud"}}});return(0,s.point)(d).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function f(t){return(0,o.flow)((0,a.scale)({x:{nice:!1},y:{nice:!1}}))(t)}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend(u.WORD_CLOUD_COLOR_FIELD,r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.functor=g,e.transform=a,e.wordCloud=function(t,e){return a(t,e=(0,r.assign)({},i,e))};var r=n(0),i={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function a(t,e){var n,i,a,y,m,b,x,_,O,P,M,A=(n=[256,256],i=l,a=c,y=u,m=f,b=d,x=p,_=Math.random,O=[],P=1/0,(M={}).start=function(){var t,e,r,l=n[0],c=n[1],f=((t=document.createElement("canvas")).width=t.height=1,e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2),t.width=2048/e,t.height=2048/e,(r=t.getContext("2d")).fillStyle=r.strokeStyle="red",r.textAlign="center",{context:r,ratio:e}),d=M.board?M.board:h((n[0]>>5)*n[1]),p=O.length,g=[],v=O.map(function(t,e,n){return t.text=s.call(this,t,e,n),t.font=i.call(this,t,e,n),t.style=u.call(this,t,e,n),t.weight=y.call(this,t,e,n),t.rotate=m.call(this,t,e,n),t.size=~~a.call(this,t,e,n),t.padding=b.call(this,t,e,n),t}).sort(function(t,e){return e.size-t.size}),A=-1,S=M.board?[{x:0,y:0},{x:l,y:c}]:null;return function(){for(var t=Date.now();Date.now()-t>1,e.y=c*(_()+.5)>>1,function(t,e,n,r){if(!e.sprite){var i=t.context,a=t.ratio;i.clearRect(0,0,2048/a,2048/a);var s=0,l=0,u=0,c=n.length;for(--r;++r>5<<5,d=~~Math.max(Math.abs(v+y),Math.abs(v-y))}else f=f+31>>5<<5;if(d>u&&(u=d),s+f>=2048&&(s=0,l+=u,u=0),l+d>=2048)break;i.translate((s+(f>>1))/a,(l+(d>>1))/a),e.rotate&&i.rotate(e.rotate*o),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=f,e.height=d,e.xoff=s,e.yoff=l,e.x1=f>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,s+=f}for(var b=i.getImageData(0,0,2048/a,2048/a).data,x=[];--r>=0;)if((e=n[r]).hasText){for(var f=e.width,_=f>>5,d=e.y1-e.y0,O=0;O>5),w=b[(l+A)*2048+(s+O)<<2]?1<<31-O%32:0;x[S]|=w,P|=w}P?M=A:(e.y0++,d--,A--,l++)}e.y1=e.y0+M,e.sprite=x.slice(0,(e.y1-e.y0)*_)}}}(f,e,v,A),e.hasText&&function(t,e,r){for(var i,a,o,s=e.x,l=e.y,u=Math.sqrt(n[0]*n[0]+n[1]*n[1]),c=x(n),f=.5>_()?1:-1,d=-f;(i=c(d+=f))&&!(Math.min(Math.abs(a=~~i[0]),Math.abs(o=~~i[1]))>=u);)if(e.x=s+a,e.y=l+o,!(e.x+e.x0<0)&&!(e.y+e.y0<0)&&!(e.x+e.x1>n[0])&&!(e.y+e.y1>n[1])&&(!r||!function(t,e,n){n>>=5;for(var r,i=t.sprite,a=t.width>>5,o=t.x-(a<<4),s=127&o,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*n+(o>>5),f=0;f>>s:0))&e[c+d])return!0;c+=n}return!1}(e,t,n[0]))&&(!r||e.x+e.x1>r[0].x&&e.x+e.x0r[0].y&&e.y+e.y0>5,g=n[0]>>5,v=e.x-(h<<4),y=127&v,m=32-y,b=e.y1-e.y0,O=void 0,P=(e.y+e.y0)*g+(v>>5),M=0;M>>y:0);P+=g}return delete e.sprite,!0}return!1}(d,e,S)&&(g.push(e),S?M.hasImage||function(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}(S,e):S=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=n[0]>>1,e.y-=n[1]>>1)}M._tags=g,M._bounds=S}(),M},M.createMask=function(t){var e=document.createElement("canvas"),r=n[0],i=n[1];if(r&&i){var a=r>>5,o=h((r>>5)*i);e.width=r,e.height=i;var s=e.getContext("2d");s.drawImage(t,0,0,t.width,t.height,0,0,r,i);for(var l=s.getImageData(0,0,r,i).data,u=0;u>5),d=u*r+c<<2,p=l[d]>=250&&l[d+1]>=250&&l[d+2]>=250?1<<31-c%32:0;o[f]|=p}M.board=o,M.hasImage=!0}},M.timeInterval=function(t){P=null==t?1/0:t},M.words=function(t){O=t},M.size=function(t){n=[+t[0],+t[1]]},M.font=function(t){i=g(t)},M.fontWeight=function(t){y=g(t)},M.rotate=function(t){m=g(t)},M.spiral=function(t){x=v[t]||t},M.fontSize=function(t){a=g(t)},M.padding=function(t){b=g(t)},M.random=function(t){_=g(t)},M);["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(t){(0,r.isNil)(e[t])||A[t](e[t])}),A.words(t),e.imageMask&&A.createMask(e.imageMask);var S=A.start()._tags;S.forEach(function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2});var w=e.size,E=w[0],C=w[1];return S.push({text:"",value:0,x:0,y:0,opacity:0}),S.push({text:"",value:0,x:E,y:C,opacity:0}),S}var o=Math.PI/180;function s(t){return t.text}function l(){return"serif"}function u(){return"normal"}function c(t){return t.value}function f(){return 90*~~(2*Math.random())}function d(){return 1}function p(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function h(t){for(var e=[],n=-1;++n0,d=c>0;function p(t,e){var n=(0,a.get)(i,[t]);function r(t){return(0,a.get)(n,t)}var o={};return"x"===e?((0,a.isNumber)(u)&&((0,a.isNumber)(r("min"))||(o.min=f?0:2*u),(0,a.isNumber)(r("max"))||(o.max=f?2*u:0)),o):((0,a.isNumber)(c)&&((0,a.isNumber)(r("min"))||(o.min=d?0:2*c),(0,a.isNumber)(r("max"))||(o.max=d?2*c:0)),o)}return(0,r.__assign)((0,r.__assign)({},i),((e={})[o]=(0,r.__assign)((0,r.__assign)({},i[o]),p(o,"x")),e[s]=(0,r.__assign)((0,r.__assign)({},i[s]),p(s,"y")),e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";n(566)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Radar=void 0;var r=n(1),i=n(19),a=n(7),o=n(1216);n(1217);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return(0,r.__extends)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return(0,a.deepAssign)({},t.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.Radar=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(s,l,i.theme,u,c,i.legend,i.tooltip,f,i.interaction,i.animation,(0,i.annotation)())(t)};var r=n(1),i=n(22),a=n(30),o=n(7);function s(t){var e=t.chart,n=t.options,i=n.data,s=n.lineStyle,l=n.color,u=n.point,c=n.area;e.data(i);var f=(0,o.deepAssign)({},t,{options:{line:{style:s,color:l},point:u?(0,r.__assign)({color:l},u):u,area:c?(0,r.__assign)({color:l},c):c,label:void 0}}),d=(0,o.deepAssign)({},f,{options:{tooltip:!1}}),p=(null==u?void 0:u.state)||n.state,h=(0,o.deepAssign)({},f,{options:{tooltip:!1,state:p}});return(0,a.line)(f),(0,a.point)(h),(0,a.area)(d),t}function l(t){var e,n=t.options,r=n.xAxis,a=n.yAxis,s=n.xField,l=n.yField;return(0,o.flow)((0,i.scale)(((e={})[s]=r,e[l]=a,e)))(t)}function u(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,a=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:a}),t}function c(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,a=n.yField,o=n.yAxis;return e.axis(r,i),e.axis(a,o),t}function f(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=(0,o.findGeometry)(e,"line");if(i){var l=i.callback,u=(0,r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:(0,o.transformLabel)(u)})}else s.label(!1);return t}},function(t,e,n){"use strict";var r=n(14),i=n(1218);(0,r.registerAction)("radar-tooltip",i.RadarTooltipAction),(0,r.registerInteraction)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RadarTooltipController=e.RadarTooltipAction=void 0;var r=n(1),i=n(14),a=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),o=n.shared,s=n.title,l=t.prototype.getTooltipItems.call(this,e);if(l.length>0){var u=this.view.geometries[0],c=u.dataArray,f=l[0].name,d=[];return c.forEach(function(t){t.forEach(function(t){var e=i.Util.getTooltipItems(t,u)[0];if(!o&&e&&e.name===f){var n=(0,a.isNil)(s)?f:s;d.push((0,r.__assign)((0,r.__assign)({},e),{name:e.title,title:n}))}else if(o&&e){var n=(0,a.isNil)(s)?e.name||f:s;d.push((0,r.__assign)((0,r.__assign)({},e),{name:e.title,title:n}))}})}),d}return[]},e}(i.TooltipController);e.RadarTooltipController=o,(0,i.registerComponentController)("radar-tooltip",o);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.init=function(){this.context.view.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event;this.getTooltipController().showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){this.getTooltipController().hideTooltip()},e.prototype.getTooltipController=function(){return this.context.view.getController("radar-tooltip")},e}(i.Action);e.RadarTooltipAction=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DualAxes=void 0;var r=n(1),i=n(19),a=n(7),o=n(1220),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}return(0,r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return(0,a.deepAssign)({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot);e.DualAxes=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)(g,v,M,y,b,x,S,_,O,P,A,m,w,E)(t)},e.animation=A,e.annotation=P,e.axis=x,e.color=m,e.interaction=O,e.legend=w,e.limitInPlot=S,e.meta=b,e.slider=E,e.theme=M,e.tooltip=_,e.transformOptions=g;var r=n(1),i=n(0),a=n(22),o=n(123),s=n(7),l=n(540),u=n(305),c=n(1221),f=n(1222),d=n(1223),p=n(567),h=n(568);function g(t){var e,n=t.options,r=n.geometryOptions,a=void 0===r?[]:r,o=n.xField,l=n.yField,c=(0,i.every)(a,function(t){var e=t.geometry;return e===p.DualAxesGeometry.Line||void 0===e});return(0,s.deepAssign)({},{options:{geometryOptions:[],meta:((e={})[o]={type:"cat",sync:!0,range:c?[0,1]:void 0},e),tooltip:{showMarkers:c,showCrosshairs:c,shared:!0,crosshairs:{type:"x"}},interactions:c?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:(0,u.transformObjectToArray)(l,n.yAxis),geometryOptions:[(0,u.getGeometryOption)(o,l[0],a[0]),(0,u.getGeometryOption)(o,l[1],a[1])],annotations:(0,u.transformObjectToArray)(l,n.annotations)}})}function v(t){var e,n,r=t.chart,i=t.options.geometryOptions,a={line:0,column:1};return[{type:null===(e=i[0])||void 0===e?void 0:e.geometry,id:h.LEFT_AXES_VIEW},{type:null===(n=i[1])||void 0===n?void 0:n.geometry,id:h.RIGHT_AXES_VIEW}].sort(function(t,e){return-a[t.type]+a[e.type]}).forEach(function(t){return r.createView({id:t.id})}),t}function y(t){var e=t.chart,n=t.options,i=n.xField,a=n.yField,s=n.geometryOptions,c=n.data,d=n.tooltip;return[(0,r.__assign)((0,r.__assign)({},s[0]),{id:h.LEFT_AXES_VIEW,data:c[0],yField:a[0]}),(0,r.__assign)((0,r.__assign)({},s[1]),{id:h.RIGHT_AXES_VIEW,data:c[1],yField:a[1]})].forEach(function(t){var n=t.id,a=t.data,s=t.yField,c=(0,u.isColumn)(t)&&t.isPercent,p=c?(0,o.percent)(a,s,i,s):a,h=(0,l.findViewById)(e,n).data(p),g=c?(0,r.__assign)({formatter:function(e){return{name:e[t.seriesField]||s,value:(100*Number(e[s])).toFixed(2)+"%"}}},d):d;(0,f.drawSingleGeometry)({chart:h,options:{xField:i,yField:s,tooltip:g,geometryOption:t}})}),t}function m(t){var e,n=t.chart,r=t.options.geometryOptions,a=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",function(){(0,i.each)(r,function(t,e){var r=(0,l.findViewById)(n,0===e?h.LEFT_AXES_VIEW:h.RIGHT_AXES_VIEW);if(!t.color){var s=r.getGroupScales(),u=(0,i.get)(s,[0,"values","length"],1),c=a.slice(o,o+u).concat(0===e?[]:a);r.geometries.forEach(function(e){t.seriesField?e.color(t.seriesField,c):e.color(c[0])}),o+=u}}),n.render(!0)}),t}function b(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,u=i.yAxis,c=i.xField,f=i.yField;return(0,a.scale)(((e={})[c]=o,e[f[0]]=u[0],e))((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(r,h.LEFT_AXES_VIEW)})),(0,a.scale)(((n={})[c]=o,n[f[1]]=u[1],n))((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(r,h.RIGHT_AXES_VIEW)})),t}function x(t){var e=t.chart,n=t.options,r=(0,l.findViewById)(e,h.LEFT_AXES_VIEW),i=(0,l.findViewById)(e,h.RIGHT_AXES_VIEW),a=n.xField,o=n.yField,s=n.xAxis,c=n.yAxis;return e.axis(a,!1),e.axis(o[0],!1),e.axis(o[1],!1),r.axis(a,s),r.axis(o[0],(0,u.getYAxisWithDefault)(c[0],p.AxisType.Left)),i.axis(a,!1),i.axis(o[1],(0,u.getYAxisWithDefault)(c[1],p.AxisType.Right)),t}function _(t){var e=t.chart,n=t.options.tooltip,r=(0,l.findViewById)(e,h.LEFT_AXES_VIEW),i=(0,l.findViewById)(e,h.RIGHT_AXES_VIEW);return e.tooltip(n),r.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function O(t){var e=t.chart;return(0,a.interaction)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW)})),(0,a.interaction)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW)})),t}function P(t){var e=t.chart,n=t.options.annotations,r=(0,i.get)(n,[0]),o=(0,i.get)(n,[1]);return(0,a.annotation)(r)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW),options:{annotations:r}})),(0,a.annotation)(o)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW),options:{annotations:o}})),t}function M(t){var e=t.chart;return(0,a.theme)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW)})),(0,a.theme)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW)})),(0,a.theme)(t),t}function A(t){var e=t.chart;return(0,a.animation)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW)})),(0,a.animation)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW)})),t}function S(t){var e=t.chart,n=t.options.yAxis;return(0,a.limitInPlot)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.LEFT_AXES_VIEW),options:{yAxis:n[0]}})),(0,a.limitInPlot)((0,s.deepAssign)({},t,{chart:(0,l.findViewById)(e,h.RIGHT_AXES_VIEW),options:{yAxis:n[1]}})),t}function w(t){var e=t.chart,n=t.options,r=n.legend,a=n.geometryOptions,o=n.yField,u=n.data,f=(0,l.findViewById)(e,h.LEFT_AXES_VIEW),d=(0,l.findViewById)(e,h.RIGHT_AXES_VIEW);if(!1===r)e.legend(!1);else if((0,i.isObject)(r)&&!0===r.custom)e.legend(r);else{var p=(0,i.get)(a,[0,"legend"],r),g=(0,i.get)(a,[1,"legend"],r);e.once("beforepaint",function(){var t=u[0].length?(0,c.getViewLegendItems)({view:f,geometryOption:a[0],yField:o[0],legend:p}):[],n=u[1].length?(0,c.getViewLegendItems)({view:d,geometryOption:a[1],yField:o[1],legend:g}):[];e.legend((0,s.deepAssign)({},r,{custom:!0,items:t.concat(n)}))}),a[0].seriesField&&f.legend(a[0].seriesField,p),a[1].seriesField&&d.legend(a[1].seriesField,g),e.on("legend-item:click",function(t){var n=(0,i.get)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,a=r.value,s=r.isGeometry,u=r.viewId;if(s){if((0,i.findIndex)(o,function(t){return t===a})>-1){var c=(0,i.get)((0,l.findViewById)(e,u),"geometries");(0,i.each)(c,function(t){t.changeVisible(!n.item.unchecked)})}}else{var f=(0,i.get)(e.getController("legend"),"option.items",[]);(0,i.each)(e.views,function(t){var n=t.getGroupScales();(0,i.each)(n,function(e){e.values&&e.values.indexOf(a)>-1&&t.filter(e.field,function(t){return!(0,i.find)(f,function(e){return e.value===t}).unchecked})}),e.render(!0)})}}})}return t}function E(t){var e=t.chart,n=t.options.slider,r=(0,l.findViewById)(e,h.LEFT_AXES_VIEW),a=(0,l.findViewById)(e,h.RIGHT_AXES_VIEW);return n&&(r.option("slider",n),r.on("slider:valuechanged",function(t){var e=t.event,n=e.value,r=e.originValue;(0,i.isEqual)(n,r)||(0,d.doSliderFilter)(a,n)}),e.once("afterpaint",function(){if(!(0,i.isBoolean)(n)){var t=n.start,e=n.end;(t||e)&&(0,d.doSliderFilter)(a,[t,e])}})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getViewLegendItems=function(t){var e=t.view,n=t.geometryOption,s=t.yField,l=t.legend,u=(0,r.get)(l,"marker"),c=(0,a.findGeometry)(e,(0,o.isLine)(n)?"line":"interval");if(!n.seriesField){var f=(0,r.get)(e,"options.scales."+s+".alias")||s,d=c.getAttribute("color"),p=e.getTheme().defaultColor;d&&(p=i.Util.getMappingValue(d,f,(0,r.get)(d,["values",0],p)));var h=((0,r.isFunction)(u)?u:!(0,r.isEmpty)(u)&&(0,a.deepAssign)({},{style:{stroke:p,fill:p}},u))||((0,o.isLine)(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:p}}:{symbol:"square",style:{fill:p}});return[{value:s,name:f,marker:h,isGeometry:!0,viewId:e.id}]}var g=c.getGroupAttributes();return(0,r.reduce)(g,function(t,n){var r=i.Util.getLegendItems(e,c,n,e.getTheme(),u);return t.concat(r)},[])};var r=n(0),i=n(14),a=n(7),o=n(305)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.drawSingleGeometry=function(t){var e=t.options,n=t.chart,u=e.geometryOption,c=u.isStack,f=u.color,d=u.seriesField,p=u.groupField,h=u.isGroup,g=["xField","yField"];if((0,l.isLine)(u)){(0,a.line)((0,o.deepAssign)({},t,{options:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,o.pick)(e,g)),u),{line:{color:u.color,style:u.lineStyle}})})),(0,a.point)((0,o.deepAssign)({},t,{options:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,o.pick)(e,g)),u),{point:u.point&&(0,r.__assign)({color:f,shape:"circle"},u.point)})}));var v=[];h&&v.push({type:"dodge",dodgeBy:p||d,customOffset:0}),c&&v.push({type:"stack"}),v.length&&(0,i.each)(n.geometries,function(t){t.adjust(v)})}return(0,l.isColumn)(u)&&(0,s.adaptor)((0,o.deepAssign)({},t,{options:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,o.pick)(e,g)),u),{widthRatio:u.columnWidthRatio,interval:(0,r.__assign)((0,r.__assign)({},(0,o.pick)(u,["color"])),{style:u.columnStyle})})})),t};var r=n(1),i=n(0),a=n(30),o=n(7),s=n(198),l=n(305)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doSliderFilter=void 0;var r=n(0),i=n(7);e.doSliderFilter=function(t,e){var n=e[0],a=e[1],o=t.getOptions().data,s=t.getXScale(),l=(0,r.size)(o);if(s&&l){var u=(0,r.valuesOfKey)(o,s.field),c=(0,r.size)(u),f=Math.floor(n*(c-1)),d=Math.floor(a*(c-1));t.filter(s.field,function(t){var e=u.indexOf(t);return!(e>-1)||(0,i.isBetween)(e,f,d)}),t.render(!0)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_TOOLTIP_OPTIONS=e.DEFAULT_OPTIONS=void 0;var r=n(1),i=n(0),a={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+(0,i.get)(e,[0,"data","y"],0)},containerTpl:'
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}};e.DEFAULT_TOOLTIP_OPTIONS=a;var o={appendPadding:2,tooltip:(0,r.__assign)({},a),animation:{}};e.DEFAULT_OPTIONS=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(1),i=n(156),a={appendPadding:2,tooltip:(0,r.__assign)({},i.DEFAULT_TOOLTIP_OPTIONS),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}};e.DEFAULT_OPTIONS=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0,e.DEFAULT_OPTIONS={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Heatmap=void 0;var r=n(1),i=n(19),a=n(1228),o=n(1229);n(1230),n(1231);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(i.Plot);e.Heatmap=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,a.flow)(o.theme,(0,o.pattern)("heatmapStyle"),c,h,u,f,d,o.tooltip,p,(0,o.annotation)(),o.interaction,o.animation,o.state)(t)};var r=n(1),i=n(0),a=n(7),o=n(22),s=n(49),l=n(65);function u(t){var e=t.chart,n=t.options,r=n.data,o=n.type,u=n.xField,c=n.yField,f=n.colorField,d=n.sizeField,p=n.sizeRatio,h=n.shape,g=n.color,v=n.tooltip,y=n.heatmapStyle;e.data(r);var m="polygon";"density"===o&&(m="heatmap");var b=(0,l.getTooltipMapping)(v,[u,c,f]),x=b.fields,_=b.formatter,O=1;return(p||0===p)&&(h||d?p<0||p>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):O=p:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),(0,s.geometry)((0,a.deepAssign)({},t,{options:{type:m,colorField:f,tooltipFields:x,shapeField:d||"",label:void 0,mapping:{tooltip:_,shape:h&&(d?function(t){var e=r.map(function(t){return t[d]}),n=Math.min.apply(Math,e),a=Math.max.apply(Math,e);return[h,((0,i.get)(t,d)-n)/(a-n),O]}:function(){return[h,1,O]}),color:g||f&&e.getTheme().sequenceColors.join("-"),style:y}}})),t}function c(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,s=n.xField,l=n.yField;return(0,a.flow)((0,o.scale)(((e={})[s]=r,e[l]=i,e)))(t)}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(o,!1):e.axis(o,i),t}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,a=n.sizeField,o=n.sizeLegend,s=!1!==r;return i&&e.legend(i,!!s&&r),a&&e.legend(a,void 0===o?r:o),s||o||e.legend(!1),t}function p(t){var e=t.chart,n=t.options,i=n.label,o=n.colorField,s=n.type,l=(0,a.findGeometry)(e,"density"===s?"heatmap":"polygon");if(i){if(o){var u=i.callback,c=(0,r.__rest)(i,["callback"]);l.label({fields:[o],callback:u,cfg:(0,a.transformLabel)(c)})}}else l.label(!1);return t}function h(t){var e=t.chart,n=t.options,r=n.coordinate,i=n.reflect;return r&&e.coordinate({type:r.type||"rect",cfg:r.cfg}),i&&e.coordinate().reflect(i),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";var r=n(1);(0,n(14).registerShape)("polygon","circle",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),l=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y))/2,u=Number(t.shape[1]),c=l*Math.sqrt(Number(t.shape[2]))*Math.sqrt(u),f=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("circle",{attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({x:a,y:o,r:c},t.defaultStyle),t.style),{fill:f})})}})},function(t,e,n){"use strict";var r=n(1);(0,n(14).registerShape)("polygon","square",{draw:function(t,e){var n,i,a=t.x,o=t.y,s=this.parsePoints(t.points),l=Math.min(Math.abs(s[2].x-s[1].x),Math.abs(s[1].y-s[0].y)),u=Number(t.shape[1]),c=l*Math.sqrt(Number(t.shape[2]))*Math.sqrt(u),f=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(i=t.defaultStyle)||void 0===i?void 0:i.fill);return e.addShape("rect",{attrs:(0,r.__assign)((0,r.__assign)((0,r.__assign)({x:a-c/2,y:o-c/2,width:c,height:c},t.defaultStyle),t.style),{fill:f})})}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Box=void 0;var r=n(1),i=n(19),a=n(1233),o=n(582),s=n(308),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return s.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find(function(t){return t.id===s.OUTLIERS_VIEW_ID});n&&n.data(t),this.chart.changeData((0,o.transformData)(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Box=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)(f,d,p,h,g,a.tooltip,a.interaction,a.animation,a.theme)(t)},e.legend=g;var r=n(1),i=n(0),a=n(22),o=n(30),s=n(7),l=n(99),u=n(308),c=n(582);function f(t){var e=t.chart,n=t.options,r=n.xField,a=n.yField,l=n.groupField,f=n.color,d=n.tooltip,p=n.boxStyle;e.data((0,c.transformData)(n.data,a));var h=(0,i.isArray)(a)?u.BOX_RANGE:a,g=a?(0,i.isArray)(a)?a:[a]:[],v=d;!1!==v&&(v=(0,s.deepAssign)({},{fields:(0,i.isArray)(a)?a:[]},v));var y=(0,o.schema)((0,s.deepAssign)({},t,{options:{xField:r,yField:h,seriesField:l,tooltip:v,rawFields:g,label:!1,schema:{shape:"box",color:f,style:p}}})).ext;return l&&y.geometry.adjust("dodge"),t}function d(t){var e=t.chart,n=t.options,i=n.xField,a=n.data,s=n.outliersField,l=n.outliersStyle,c=n.padding,f=n.label;if(!s)return t;var d=e.createView({padding:c,id:u.OUTLIERS_VIEW_ID}),p=a.reduce(function(t,e){return e[s].forEach(function(n){var i;return t.push((0,r.__assign)((0,r.__assign)({},e),((i={})[s]=n,i)))}),t},[]);return d.data(p),(0,o.point)({chart:d,options:{xField:i,yField:s,point:{shape:"circle",style:l},label:f}}),d.axis(!1),t}function p(t){var e,n,r=t.chart,i=t.options,a=i.meta,o=i.xAxis,c=i.yAxis,f=i.xField,d=i.yField,p=i.outliersField,h=Array.isArray(d)?u.BOX_RANGE:d,g={};if(p){var v=u.BOX_SYNC_NAME;(e={})[p]={sync:v,nice:!0},e[h]={sync:v,nice:!0},g=e}var y=(0,s.deepAssign)(g,a,((n={})[f]=(0,s.pick)(o,l.AXIS_META_CONFIG_KEYS),n[h]=(0,s.pick)(c,l.AXIS_META_CONFIG_KEYS),n));return r.scale(y),t}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField,s=Array.isArray(o)?u.BOX_RANGE:o;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?e.axis(u.BOX_RANGE,!1):e.axis(s,i),t}function g(t){var e=t.chart,n=t.options,r=n.legend,i=n.groupField;return i?r?e.legend(i,r):e.legend(i,{position:"bottom"}):e.legend(!1),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Violin=void 0;var r=n(1),i=n(19),a=n(1235),o=n(584),s=n(583),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData((0,s.transformViolinData)(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Violin=l},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,u.flow)(s.theme,g,v,y,m,s.tooltip,b,x,s.interaction,_,O)(t)},e.animation=O;var i=r(n(6)),a=n(1),o=n(0),s=n(22),l=n(30),u=n(7),c=n(99),f=n(583),d=n(584),p=["low","high","q1","q3","median"],h=[{type:"dodge",marginRatio:1/32}];function g(t){var e=t.chart,n=t.options;return e.data((0,f.transformViolinData)(n)),t}function v(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.color,o=n.shape,s=n.violinStyle,u=n.tooltip,c=n.state,f=e.createView({id:d.VIOLIN_VIEW_ID});return(0,l.violin)({chart:f,options:{xField:d.X_FIELD,yField:d.VIOLIN_Y_FIELD,seriesField:r||d.X_FIELD,sizeField:d.VIOLIN_SIZE_FIELD,tooltip:(0,a.__assign)({fields:p},u),violin:{style:s,color:i,shape:void 0===o?"violin":o},state:c}}),f.geometries[0].adjust(h),t}function y(t){var e=t.chart,n=t.options,r=n.seriesField,o=n.color,s=n.tooltip,u=n.box;if(!1===u)return t;var c=e.createView({id:d.MIN_MAX_VIEW_ID});(0,l.interval)({chart:c,options:{xField:d.X_FIELD,yField:d.MIN_MAX_FIELD,seriesField:r||d.X_FIELD,tooltip:(0,a.__assign)({fields:p},s),state:"object"===(0,i.default)(u)?u.state:{},interval:{color:o,size:1,style:{lineWidth:0}}}}),c.geometries[0].adjust(h);var f=e.createView({id:d.QUANTILE_VIEW_ID});(0,l.interval)({chart:f,options:{xField:d.X_FIELD,yField:d.QUANTILE_FIELD,seriesField:r||d.X_FIELD,tooltip:(0,a.__assign)({fields:p},s),state:"object"===(0,i.default)(u)?u.state:{},interval:{color:o,size:8,style:{fillOpacity:1}}}}),f.geometries[0].adjust(h);var g=e.createView({id:d.MEDIAN_VIEW_ID});return(0,l.point)({chart:g,options:{xField:d.X_FIELD,yField:d.MEDIAN_FIELD,seriesField:r||d.X_FIELD,tooltip:(0,a.__assign)({fields:p},s),state:"object"===(0,i.default)(u)?u.state:{},point:{color:o,size:1,style:{fill:"white",lineWidth:0}}}}),g.geometries[0].adjust(h),f.axis(!1),c.axis(!1),g.axis(!1),g.legend(!1),c.legend(!1),f.legend(!1),t}function m(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.xAxis,s=r.yAxis,l=(0,u.deepAssign)({},i,((e={})[d.X_FIELD]=(0,a.__assign)((0,a.__assign)({sync:!0},(0,u.pick)(o,c.AXIS_META_CONFIG_KEYS)),{type:"cat"}),e[d.VIOLIN_Y_FIELD]=(0,a.__assign)({sync:!0},(0,u.pick)(s,c.AXIS_META_CONFIG_KEYS)),e[d.MIN_MAX_FIELD]=(0,a.__assign)({sync:d.VIOLIN_Y_FIELD},(0,u.pick)(s,c.AXIS_META_CONFIG_KEYS)),e[d.QUANTILE_FIELD]=(0,a.__assign)({sync:d.VIOLIN_Y_FIELD},(0,u.pick)(s,c.AXIS_META_CONFIG_KEYS)),e[d.MEDIAN_FIELD]=(0,a.__assign)({sync:d.VIOLIN_Y_FIELD},(0,u.pick)(s,c.AXIS_META_CONFIG_KEYS)),e));return n.scale(l),t}function b(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=(0,u.findViewById)(e,d.VIOLIN_VIEW_ID);return!1===r?a.axis(d.X_FIELD,!1):a.axis(d.X_FIELD,r),!1===i?a.axis(d.VIOLIN_Y_FIELD,!1):a.axis(d.VIOLIN_Y_FIELD,i),e.axis(!1),t}function x(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField,a=n.shape;if(!1===r)e.legend(!1);else{var s=i||d.X_FIELD,l=(0,o.omit)(r,["selected"]);a&&a.startsWith("hollow")||(0,o.get)(l,["marker","style","lineWidth"])||(0,o.set)(l,["marker","style","lineWidth"],0),e.legend(s,l),(0,o.get)(r,"selected")&&(0,o.each)(e.views,function(t){return t.legend(s,r)})}return t}function _(t){var e=t.chart,n=(0,u.findViewById)(e,d.VIOLIN_VIEW_ID);return(0,s.annotation)()((0,a.__assign)((0,a.__assign)({},t),{chart:n})),t}function O(t){var e=t.chart,n=t.options.animation;return(0,o.each)(e.views,function(t){"boolean"==typeof n?t.animate(n):t.animate(!0),(0,o.each)(t.geometries,function(t){t.animate(n)})}),t}},function(t,e,n){"use strict";var r=Math.log(2),i=t.exports,a=n(1237);function o(t){return 1-Math.abs(t)}t.exports.getUnifiedMinMax=function(t,e){return i.getUnifiedMinMaxMulti([t],e)},t.exports.getUnifiedMinMaxMulti=function(t,e){e=e||{};var n=!1,r=!1,i=a.isNumber(e.width)?e.width:2,o=a.isNumber(e.size)?e.size:50,s=a.isNumber(e.min)?e.min:(n=!0,a.findMinMulti(t)),l=a.isNumber(e.max)?e.max:(r=!0,a.findMaxMulti(t)),u=(l-s)/(o-1);return n&&(s-=2*i*u),r&&(l+=2*i*u),{min:s,max:l}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=a.isNumber(e.size)?e.size:50,r=a.isNumber(e.width)?e.width:2,s=i.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),l=s.min,u=s.max-l,c=u/(n-1);if(0===u)return[{x:l,y:1}];for(var f=[],d=0;d=f.length)){var n=Math.max(e-r,0),i=Math.min(e+r,f.length-1),o=n-(e-r),s=e+r-i,u=h/(h-(p[-r-1+o]||0)-(p[-r-1+s]||0));o>0&&(v+=u*(o-1)*g);var d=Math.max(0,e-r+1);a.inside(0,f.length-1,d)&&(f[d].y+=1*u*g),a.inside(0,f.length-1,e+1)&&(f[e+1].y-=2*u*g),a.inside(0,f.length-1,i+1)&&(f[i+1].y+=1*u*g)}});var y=v,m=0,b=0;return f.forEach(function(t){m+=t.y,y+=m,t.y=y,b+=y}),b>0&&f.forEach(function(t){t.y/=b}),f},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){e+=t.x*t.y}),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,r=0,i=0;i=e));i++);return t[r].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach(function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)}),Math.pow(2,e=-e/r)}}},function(t,e,n){"use strict";var r=t.exports;t.exports.isNumber=function(t){return"number"==typeof t},t.exports.findMin=function(t){if(0===t.length)return 1/0;for(var e=t[0],n=1;n1)throw Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function i(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function a(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var o=r-n+1,s=e-n+1,l=Math.log(o),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(o-u)/o);s-o/2<0&&(c*=-1);var f=Math.max(n,Math.floor(e-s*u/o+c)),d=Math.min(r,Math.floor(e+(o-s)*u/o+c));a(t,e,f,d)}var p=t[e],h=n,g=r;for(i(t,n,e),t[r]>p&&i(t,n,r);hp;)g--}t[n]===p?i(t,n,g):i(t,++g,r),g<=e&&(n=g+1),e<=g&&(r=g-1)}}function o(t,e,n,r){e%1==0?a(t,e,n,r):(a(t,e=Math.floor(e),n,r),a(t,e+1,e+1,r))}function s(t,e){return t-e}function l(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}Object.defineProperty(e,"__esModule",{value:!0}),e.quantile=function(t,e){var n=t.slice();if(Array.isArray(e)){(function(t,e){for(var n=[0],r=0;re?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t?255:(t=255*(e/255)/(1-t/255))>255?255:t},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},o=function(t){if(!a[t])throw Error("unknown blend mode "+t);return a[t]};function s(t){var e,n=t.replace("/s+/g","");return"string"!=typeof n||n.startsWith("rgba")||n.startsWith("#")?(n.startsWith("rgba")&&(e=n.replace("rgba(","").replace(")","").split(",")),n.startsWith("#")&&(e=i.default.rgb2arr(n).concat([1])),e.map(function(t,e){return 3===e?Number(t):0|t})):i.default.rgb2arr(i.default.toRGB(n)).concat([1])}e.innerBlend=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bestInitialLayout=s,e.constrainedMDSLayout=l,e.disjointCluster=f,e.distanceFromIntersectArea=a,e.getDistanceMatrices=o,e.greedyLayout=u,e.lossFunction=c,e.normalizeSolution=function(t,e,n){null===e&&(e=Math.PI/2);var r,a,o=[];for(a in t)if(t.hasOwnProperty(a)){var s=t[a];o.push({x:s.x,y:s.y,radius:s.radius,setid:a})}var l=f(o);for(r=0;r0){var r,a=t[0].x,o=t[0].y;for(r=0;r1){var s=Math.atan2(t[1].x,t[1].y)-e,l=void 0,u=void 0,c=Math.cos(s),f=Math.sin(s);for(r=0;r2){for(var d=Math.atan2(t[2].x,t[2].y)-e;d<0;)d+=2*Math.PI;for(;d>2*Math.PI;)d-=2*Math.PI;if(d>Math.PI){var p=t[1].y/(1e-10+t[1].x);for(r=0;re?1:-1}),e=0;e=Math.min(e[r].size,e[s].size)?u=1:t.size<=1e-10&&(u=-1),o[r][s]=o[s][r]=u}),{distances:i,constraints:o}}function s(t,e){var n=u(t,e),r=e.lossFunction||c;if(t.length>=8){var i=l(t,e);r(i,t)+1e-80&&h<=f||d<0&&h>=f||(a+=2*g*g,e[2*i]+=4*g*(o-u),e[2*i+1]+=4*g*(s-c),e[2*l]+=4*g*(u-o),e[2*l+1]+=4*g*(c-s))}return a}(t,e,d,p)};for(n=0;n=Math.min(o[p].size,o[h].size)&&(d=0),s[p].push({set:h,size:f.size,weight:d}),s[h].push({set:p,size:f.size,weight:d})}var g=[];for(n in s)if(s.hasOwnProperty(n)){for(var v=0,l=0;l0&&console.log("WARNING: area "+s+" not represented on screen")}return n},e.intersectionAreaPath=function(t){var e={};(0,i.intersectionArea)(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return s(r.x,r.y,r.radius)}for(var a=["\nM",n[0].p2.x,n[0].p2.y],o=0;ou;a.push("\nA",u,u,0,c?1:0,1,l.p1.x,l.p1.y)}return a.join(" ")};var r=n(585),i=n(586);function a(t,e,n){var r,a,o=e[0].radius-(0,i.distance)(e[0],t);for(r=1;r=c&&(u=s[n],c=f)}var d=(0,r.nelderMead)(function(n){return -1*a({x:n[0],y:n[1]},t,e)},[u.x,u.y],{maxIterations:500,minErrorDelta:1e-10}).x,p={x:d[0],y:d[1]},h=!0;for(n=0;nt[n].radius){h=!1;break}for(n=0;n0;)u-=2*Math.PI;var c=a-t+(u=u/Math.PI/2*n)-2*t;l.push(["M",c,e]);for(var f=0,d=0;d0&&t.depth>p)return null;for(var e,i,s,l,f,h,v=t.data.name,y=(0,r.__assign)({},t);y.depth>1;)v=(null===(i=y.parent.data)||void 0===i?void 0:i.name)+" / "+v,y=y.parent;var b=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,o.pick)(t.data,(0,r.__spreadArrays)(c||[],[d.field]))),((e={})[u.SUNBURST_PATH_FIELD]=v,e[u.SUNBURST_ANCESTOR_FIELD]=y.data.name,e)),t);g&&(b[g]=t.data[g]||(null===(l=null===(s=t.parent)||void 0===s?void 0:s.data)||void 0===l?void 0:l[g])),n&&(b[n]=t.data[n]||(null===(h=null===(f=t.parent)||void 0===f?void 0:f.data)||void 0===h?void 0:h[n])),b.ext=d,b[a.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:d,colorField:n,rawFields:c},m.push(b)}),m};var r=n(1),i=n(0),a=n(201),o=n(7),s=n(1266),l=n(593),u=n(312)},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.partition=function(t,e){var n,r=(e=(0,a.assign)({},l,e)).as;if(!(0,a.isArray)(r)||2!==r.length)throw TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=(0,o.getField)(e)}catch(t){console.warn(t)}var s=i.partition().size(e.size).round(e.round).padding(e.padding)(i.hierarchy(t).sum(function(t){return(0,a.size)(t.children)?e.ignoreParentValue?0:t[n]-(0,a.reduce)(t.children,function(t,e){return t+e[n]},0):t[n]}).sort(e.sort)),u=r[0],c=r[1];return s.each(function(t){var e,n;t[u]=[t.x0,t.x1,t.x1,t.x0],t[c]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach(function(e){-1===r.indexOf(e)&&delete t[e]})}),(0,o.getAllNodes)(s)};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}(n(193)),a=n(0),o=n(157);function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}var l={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0}},function(t,e,n){"use strict";n(313)},function(t,e,n){"use strict";var r=n(1);(0,n(14).registerShape)("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,a=n.defaultColor,o=i.pointer,s=i.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:(0,r.__assign)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:a},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,r.__assign)({x:u.x,y:u.y,stroke:a},s.style)}),l}})},function(t,e,n){"use strict";var r=n(14),i=n(0);(0,r.registerShape)("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,a=void 0===n?{}:n,o=a.steps,s=void 0===o?50:o,l=a.stepRatio,u=void 0===l?.5:l;s=s<1?1:s,u=(0,i.clamp)(u,0,1);var c=this.coordinate,f=c.startAngle,d=c.endAngle,p=0;u>0&&u<1&&(p=(d-f)/s/(u/(1-u)+1-1/s));for(var h=p/(1-u)*u,g=e.addGroup(),v=this.coordinate.getCenter(),y=this.coordinate.getRadius(),m=r.Util.getAngle(t,this.coordinate),b=m.startAngle,x=m.endAngle,_=b;_0?g:v},b=(0,l.deepAssign)({},t,{options:{xField:a,yField:u.Y_FIELD,seriesField:a,rawFields:[s,u.DIFF_FIELD,u.IS_TOTAL,u.Y_FIELD],widthRatio:p,interval:{style:h,shape:"waterfall",color:m}}});return(0,o.interval)(b).ext.geometry.customInfo({leaderLine:d}),t}function p(t){var e,n,r=t.options,o=r.xAxis,s=r.yAxis,c=r.xField,f=r.yField,d=r.meta,p=(0,l.deepAssign)({},{alias:f},(0,i.get)(d,f));return(0,l.flow)((0,a.scale)(((e={})[c]=o,e[f]=s,e[u.Y_FIELD]=s,e),(0,l.deepAssign)({},d,((n={})[u.Y_FIELD]=p,n[u.DIFF_FIELD]=p,n[u.ABSOLUTE_FIELD]=p,n))))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,o=n.yField;return!1===r?e.axis(a,!1):e.axis(a,r),!1===i?(e.axis(o,!1),e.axis(u.Y_FIELD,!1)):(e.axis(o,i),e.axis(u.Y_FIELD,i)),t}function g(t){var e=t.chart,n=t.options,r=n.legend,a=n.total,o=n.risingFill,u=n.fallingFill,c=n.locale,f=(0,s.getLocale)(c);if(!1===r)e.legend(!1);else{var d=[{name:f.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:f.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:u}}}];a&&d.push({name:a.label||"",value:"total",marker:{symbol:"square",style:(0,l.deepAssign)({},{r:5},(0,i.get)(a,"style"))}}),e.legend((0,l.deepAssign)({},{custom:!0,position:"top",items:d},r)),e.removeInteraction("legend-filter")}return t}function v(t){var e=t.chart,n=t.options,i=n.label,a=n.labelMode,o=n.xField,s=(0,l.findGeometry)(e,"interval");if(i){var c=i.callback,f=(0,r.__rest)(i,["callback"]);s.label({fields:"absolute"===a?[u.ABSOLUTE_FIELD,o]:[u.DIFF_FIELD,o],callback:c,cfg:(0,l.transformLabel)(f)})}else s.label(!1);return t}function y(t){var e=t.chart,n=t.options,i=n.tooltip,a=n.xField,o=n.yField;if(!1!==i){e.tooltip((0,r.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},i));var s=e.geometries[0];(null==i?void 0:i.formatter)?s.tooltip(a+"*"+o,i.formatter):s.tooltip(o)}else e.tooltip(!1);return t}n(1272)},function(t,e,n){"use strict";var r=n(1),i=n(14),a=n(0),o=n(7);(0,i.registerShape)("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,s=t.nextPoints,l=e.addGroup(),u=this.parsePath(function(t){for(var e=[],n=0;n0?Math.max.apply(Math,r):0,a=Math.abs(t)%360;return a?360*i/a:i},e.getStackedData=function(t,e,n){var i=[];return t.forEach(function(t){var a=i.find(function(n){return n[e]===t[e]});a?a[n]+=t[n]||null:i.push((0,r.__assign)({},t))}),i};var r=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0;var r=n(19),i=(0,n(7).deepAssign)({},r.Plot.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});e.DEFAULT_OPTIONS=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BidirectionalBar=void 0;var r=n(1),i=n(14),a=n(19),o=n(7),s=n(1278),l=n(599),u=n(598),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return(0,o.deepAssign)({},t.getDefaultOptions.call(this),{syncViewPadding:l.syncViewPadding})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=e.xField,r=e.yField,a=e.layout,s=(0,l.transformData)(n,r,u.SERIES_FIELD_KEY,t,(0,l.isHorizontal)(a)),c=s[0],f=s[1],d=(0,o.findViewById)(this.chart,u.FIRST_AXES_VIEW),p=(0,o.findViewById)(this.chart,u.SECOND_AXES_VIEW);d.data(c),p.data(f),this.chart.render(!0),this.chart.emit(i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,i.Event.fromData(this.chart,i.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.SERIES_FIELD_KEY=u.SERIES_FIELD_KEY,e}(a.Plot);e.BidirectionalBar=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)(c,f,d,h,g,y,a.tooltip,p,v)(t)},e.animation=v,e.interaction=p,e.limitInPlot=h,e.theme=g;var r=n(1),i=n(0),a=n(22),o=n(30),s=n(7),l=n(598),u=n(599);function c(t){var e,n,r=t.chart,i=t.options,a=i.data,c=i.xField,f=i.yField,d=i.color,p=i.barStyle,h=i.widthRatio,g=i.legend,v=i.layout,y=(0,u.transformData)(c,f,l.SERIES_FIELD_KEY,a,(0,u.isHorizontal)(v));g?r.legend(l.SERIES_FIELD_KEY,g):!1===g&&r.legend(!1);var m=y[0],b=y[1];(0,u.isHorizontal)(v)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:l.FIRST_AXES_VIEW})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:l.SECOND_AXES_VIEW})).coordinate().transpose(),e.data(m),n.data(b)):(e=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:l.FIRST_AXES_VIEW}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:l.SECOND_AXES_VIEW})).coordinate().reflect("y"),e.data(m),n.data(b));var x=(0,s.deepAssign)({},t,{chart:e,options:{widthRatio:h,xField:c,yField:f[0],seriesField:l.SERIES_FIELD_KEY,interval:{color:d,style:p}}});(0,o.interval)(x);var _=(0,s.deepAssign)({},t,{chart:n,options:{xField:c,yField:f[1],seriesField:l.SERIES_FIELD_KEY,widthRatio:h,interval:{color:d,style:p}}});return(0,o.interval)(_),t}function f(t){var e,n,r,o=t.options,u=t.chart,c=o.xAxis,f=o.yAxis,d=o.xField,p=o.yField,h=(0,s.findViewById)(u,l.FIRST_AXES_VIEW),g=(0,s.findViewById)(u,l.SECOND_AXES_VIEW),v={};return(0,i.keys)((null==o?void 0:o.meta)||{}).map(function(t){(0,i.get)(null==o?void 0:o.meta,[t,"alias"])&&(v[t]=o.meta[t].alias)}),u.scale(((e={})[l.SERIES_FIELD_KEY]={sync:!0,formatter:function(t){return(0,i.get)(v,t,t)}},e)),(0,a.scale)(((n={})[d]=c,n[p[0]]=f[p[0]],n))((0,s.deepAssign)({},t,{chart:h})),(0,a.scale)(((r={})[d]=c,r[p[1]]=f[p[1]],r))((0,s.deepAssign)({},t,{chart:g})),t}function d(t){var e=t.chart,n=t.options,i=n.xAxis,a=n.yAxis,o=n.xField,c=n.yField,f=n.layout,d=(0,s.findViewById)(e,l.FIRST_AXES_VIEW),p=(0,s.findViewById)(e,l.SECOND_AXES_VIEW);return(null==i?void 0:i.position)==="bottom"?p.axis(o,(0,r.__assign)((0,r.__assign)({},i),{label:{formatter:function(){return""}}})):p.axis(o,!1),!1===i?d.axis(o,!1):d.axis(o,(0,r.__assign)({position:(0,u.isHorizontal)(f)?"top":"bottom"},i)),!1===a?(d.axis(c[0],!1),p.axis(c[1],!1)):(d.axis(c[0],a[c[0]]),p.axis(c[1],a[c[1]])),e.__axisPosition={position:d.getOptions().axes[o].position,layout:f},t}function p(t){var e=t.chart;return(0,a.interaction)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.FIRST_AXES_VIEW)})),(0,a.interaction)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.SECOND_AXES_VIEW)})),t}function h(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return(0,a.limitInPlot)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.FIRST_AXES_VIEW),options:{yAxis:i[r[0]]}})),(0,a.limitInPlot)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.SECOND_AXES_VIEW),options:{yAxis:i[r[1]]}})),t}function g(t){var e=t.chart;return(0,a.theme)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.FIRST_AXES_VIEW)})),(0,a.theme)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.SECOND_AXES_VIEW)})),t}function v(t){var e=t.chart;return(0,a.animation)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.FIRST_AXES_VIEW)})),(0,a.animation)((0,s.deepAssign)({},t,{chart:(0,s.findViewById)(e,l.SECOND_AXES_VIEW)})),t}function y(t){var e,n,i=this,a=t.chart,o=t.options,c=o.label,f=o.yField,d=o.layout,p=(0,s.findViewById)(a,l.FIRST_AXES_VIEW),h=(0,s.findViewById)(a,l.SECOND_AXES_VIEW),g=(0,s.findGeometry)(p,"interval"),v=(0,s.findGeometry)(h,"interval");if(c){var y=c.callback,m=(0,r.__rest)(c,["callback"]);m.position||(m.position="middle"),void 0===m.offset&&(m.offset=2);var b=(0,r.__assign)({},m);if((0,u.isHorizontal)(d)){var x=(null===(e=b.style)||void 0===e?void 0:e.textAlign)||("middle"===m.position?"center":"left");m.style=(0,s.deepAssign)({},m.style,{textAlign:x}),b.style=(0,s.deepAssign)({},b.style,{textAlign:{left:"right",right:"left",center:"center"}[x]})}else{var _={top:"bottom",bottom:"top",middle:"middle"};"string"==typeof m.position?m.position=_[m.position]:"function"==typeof m.position&&(m.position=function(){for(var t=[],e=0;e "+t.target,value:t.value}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=(0,l.transformToViewsData)(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=(0,o.findViewById)(this.chart,u.NODES_VIEW_ID),a=(0,o.findViewById)(this.chart,u.EDGES_VIEW_ID);i.changeData(n),a.changeData(r)},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(a.Plot);e.Sankey=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(c,f,a.interaction,p,d,a.theme)(t)},e.animation=d,e.nodeDraggable=p;var r=n(1),i=n(0),a=n(22),o=n(7),s=n(30),l=n(601),u=n(316);function c(t){var e=t.options.rawFields,n=void 0===e?[]:e;return(0,o.deepAssign)({},{options:{tooltip:{fields:(0,i.uniq)((0,r.__spreadArrays)(["name","source","target","value","isNode"],n))},label:{fields:(0,i.uniq)((0,r.__spreadArrays)(["x","name"],n))}}},t)}function f(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,a=n.edgeStyle,o=n.label,c=n.tooltip,f=n.nodeState,d=n.edgeState;e.legend(!1),e.tooltip(c),e.axis(!1),e.coordinate().reflect("y");var p=(0,l.transformToViewsData)(n,e.width,e.height),h=p.nodes,g=p.edges,v=e.createView({id:u.EDGES_VIEW_ID});v.data(g),(0,s.edge)({chart:v,options:{xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.COLOR_FIELD,edge:{color:r,style:a,shape:"arc"},tooltip:c,state:d}});var y=e.createView({id:u.NODES_VIEW_ID});return y.data(h),(0,s.polygon)({chart:y,options:{xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.COLOR_FIELD,polygon:{color:r,style:i},label:o,tooltip:c,state:f}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function d(t){var e=t.chart,n=t.options.animation;return"boolean"==typeof n?e.animate(n):e.animate(!0),(0,r.__spreadArrays)(e.views[0].geometries,e.views[1].geometries).forEach(function(t){t.animate(n)}),t}function p(t){var e=t.chart,n=t.options.nodeDraggable,r="sankey-node-draggable";return n?e.interaction(r):e.removeInteraction(r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultOptions=l,e.getNodeAlignFunction=s,e.sankeyLayout=function(t,e){var n=l(t),r=n.nodeId,a=n.nodeSort,o=n.nodeAlign,u=n.nodeWidth,c=n.nodePadding,f=n.nodeDepth,d=(0,i.sankey)().nodeSort(a).nodeWidth(u).nodePadding(c).nodeDepth(f).nodeAlign(s(o)).extent([[0,0],[1,1]]).nodeId(r)(e);return d.nodes.forEach(function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;t.x=[e,n,n,e],t.y=[r,r,i,i]}),d.links.forEach(function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var a=t.width/2;t.y=[t.y0+a,t.y0-a,t.y1+a,t.y1-a]}),d};var r=n(0),i=n(1286),a={left:i.left,right:i.right,center:i.center,justify:i.justify},o={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function s(t){return((0,r.isString)(t)?a[t]:(0,r.isFunction)(t)?t:null)||i.justify}function l(t){return(0,r.assign)({},o,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"center",{enumerable:!0,get:function(){return i.center}}),Object.defineProperty(e,"justify",{enumerable:!0,get:function(){return i.justify}}),Object.defineProperty(e,"left",{enumerable:!0,get:function(){return i.left}}),Object.defineProperty(e,"right",{enumerable:!0,get:function(){return i.right}}),Object.defineProperty(e,"sankey",{enumerable:!0,get:function(){return r.Sankey}});var r=n(1287),i=n(602)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.Sankey=function(){var t,e,n,r,v=0,y=0,m=1,b=1,x=24,_=8,O=f,P=a.justify,M=d,A=p,S=6;function w(a){var f={nodes:M(a),links:A(a)};return function(t){var e=t.nodes,r=t.links;e.forEach(function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]});var a=new Map(e.map(function(t){return[O(t),t]}));if(r.forEach(function(t,e){t.index=e;var n=t.source,r=t.target;"object"!==(0,i.default)(n)&&(n=t.source=h(a,n)),"object"!==(0,i.default)(r)&&(r=t.target=h(a,r)),n.sourceLinks.push(t),r.targetLinks.push(t)}),null!=n)for(var o=0;or)throw Error("circular link");i=a,a=new Set}if(t)for(var l=Math.max((0,o.maxValueBy)(n,function(t){return t.depth})+1,0),u=void 0,c=0;cn)throw Error("circular link");r=i,i=new Set}}(f),function(t){var i=function(t){for(var n=t.nodes,r=Math.max((0,o.maxValueBy)(n,function(t){return t.depth})+1,0),i=(m-v-x)/(r-1),a=Array(r).fill(0).map(function(){return[]}),s=0;s=0;--o){for(var s=t[o],l=0;l0){var m=(f/d-c.y0)*n;c.y0+=m,c.y1+=m,I(c)}}void 0===e&&s.sort(u),s.length&&E(s,i)}})(i,f,d),function(t,n,i){for(var a=1,o=t.length;a0){var m=(f/d-c.y0)*n;c.y0+=m,c.y1+=m,I(c)}}void 0===e&&s.sort(u),s.length&&E(s,i)}}(i,f,d)}}(f),g(f),f}function E(t,e){var n=t.length>>1,i=t[n];T(t,i.y0-r,n-1,e),C(t,i.y1+r,n+1,e),T(t,b,t.length-1,e),C(t,y,0,e)}function C(t,e,n,i){for(;n1e-6&&(a.y0+=o,a.y1+=o),e=a.y1+r}}function T(t,e,n,i){for(;n>=0;--n){var a=t[n],o=(a.y1-e)*i;o>1e-6&&(a.y0-=o,a.y1-=o),e=a.y0-r}}function I(t){var e=t.sourceLinks,r=t.targetLinks;if(void 0===n){for(var i=0;io.findIndex(function(r){return r===t[e]+"_"+t[n]})})},e.getMatrix=a,e.getNodes=i;var r=n(0);function i(t,e,n){var r=[];return t.forEach(function(t){var i=t[e],a=t[n];r.includes(i)||r.push(i),r.includes(a)||r.push(a)}),r}function a(t,e,n,r){var i={};return e.forEach(function(t){i[t]={},e.forEach(function(e){i[t][e]=0})}),t.forEach(function(t){i[t[n]][t[r]]=1}),i}},function(t,e,n){"use strict";n(1291)},function(t,e,n){"use strict";var r=n(14),i=n(1292);(0,r.registerAction)("sankey-node-drag",i.SankeyNodeDragAction),(0,r.registerInteraction)("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SankeyNodeDragAction=void 0;var r=n(1),i=n(14),a=n(0),o=n(7),s=n(316),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return(0,r.__extends)(e,t),e.prototype.isNodeElement=function(){var t=(0,a.get)(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return(0,o.findViewById)(this.context.view,s.NODES_VIEW_ID)},e.prototype.getEdgeView=function(){return(0,o.findViewById)(this.context.view,s.EDGES_VIEW_ID)},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:(0,a.get)(this.context,"event.x"),y:(0,a.get)(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);-1!==e&&(this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1))}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:(0,a.get)(this.context,"event.x"),y:(0,a.get)(this.context,"event.y")},n=e.x-this.prevPoint.x,i=e.y-this.prevPoint.y,o=this.getNodeView(),s=o.geometries[0].elements[this.currentElementIdx];if(s&&s.getModel()){var l=s.getModel().data,u=o.getOptions().data,c=o.getCoordinate(),f={x:n/c.getWidth(),y:i/c.getHeight()},d=(0,r.__assign)((0,r.__assign)({},l),{x:l.x.map(function(t){return t+f.x}),y:l.y.map(function(t){return t+f.y})}),p=(0,r.__spreadArrays)(u);p[this.currentElementIdx]=d,o.data(p);var h=l.name,g=this.getEdgeView(),v=g.getOptions().data;v.forEach(function(t){t.source===h&&(t.x[0]+=f.x,t.x[1]+=f.x,t.y[0]+=f.y,t.y[1]+=f.y),t.target===h&&(t.x[2]+=f.x,t.x[3]+=f.x,t.y[2]+=f.y,t.y[3]+=f.y)}),g.data(v),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(i.Action);e.SankeyNodeDragAction=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Chord=void 0;var r=n(1),i=n(19),a=n(1294),o=n(603),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Chord=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,o.flow)(a.theme,c,g,f,d,p,h,y,v,a.interaction,a.state,m)(t)};var r=n(1),i=n(0),a=n(22),o=n(7),s=n(30),l=n(1295),u=n(603);function c(t){var e=t.options,n=e.data,i=e.sourceField,a=e.targetField,s=e.weightField,u=e.nodePaddingRatio,c=e.nodeWidthRatio,f=e.rawFields,d=void 0===f?[]:f,p=(0,o.transformDataToNodeLinkData)(n,i,a,s),h=(0,l.chordLayout)({weight:!0,nodePaddingRatio:u,nodeWidthRatio:c},p),g=h.nodes,v=h.links,y=g.map(function(t){return(0,r.__assign)((0,r.__assign)({},(0,o.pick)(t,(0,r.__spreadArrays)(["id","x","y","name"],d))),{isNode:!0})}),m=v.map(function(t){return(0,r.__assign)((0,r.__assign)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},(0,o.pick)(t,(0,r.__spreadArrays)(["x","y","value"],d))),{isNode:!1})});return(0,r.__assign)((0,r.__assign)({},t),{ext:(0,r.__assign)((0,r.__assign)({},t.ext),{chordData:{nodesData:y,edgesData:m}})})}function f(t){var e;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}})[u.NODE_COLOR_FIELD]={sync:"color"},e[u.EDGE_COLOR_FIELD]={sync:"color"},e)),t}function d(t){return t.chart.axis(!1),t}function p(t){return t.chart.legend(!1),t}function h(t){var e=t.chart,n=t.options.tooltip;return e.tooltip(n),t}function g(t){return t.chart.coordinate("polar").reflect("y"),t}function v(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,a=n.label,o=n.tooltip,l=e.createView();return l.data(r),(0,s.polygon)({chart:l,options:{xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.NODE_COLOR_FIELD,polygon:{style:i},label:a,tooltip:o}}),t}function y(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,a=n.tooltip,o=e.createView();o.data(r);var l={xField:u.X_FIELD,yField:u.Y_FIELD,seriesField:u.EDGE_COLOR_FIELD,edge:{style:i,shape:"arc"},tooltip:a};return(0,s.edge)({chart:o,options:l}),t}function m(t){var e=t.chart,n=t.options.animation;return"boolean"==typeof n?e.animate(n):e.animate(!0),(0,i.each)((0,o.getAllGeometriesRecursively)(e),function(t){t.animate(n)}),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.chordLayout=function(t,e){var n,i,o=a(t),s={},l=e.nodes,u=e.links;return l.forEach(function(t){s[o.id(t)]=t}),(0,r.forIn)(s,function(t,e){t.inEdges=u.filter(function(t){return""+o.target(t)==""+e}),t.outEdges=u.filter(function(t){return""+o.source(t)==""+e}),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach(function(e){t.value+=o.targetWeight(e)}),t.outEdges.forEach(function(e){t.value+=o.sourceWeight(e)})}),!(i=({weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,e){return(""+n.id(t)).localeCompare(""+n.id(e))}})[(n=o).sortBy])&&(0,r.isFunction)(n.sortBy)&&(i=n.sortBy),i&&l.sort(i),{nodes:function(t,e){var n=t.length;if(!n)throw TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),a=e.nodeWidthRatio;if(a<=0||a>=1)throw TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;t.forEach(function(t){o+=t.value}),t.forEach(function(t){t.weight=t.value/o,t.width=t.weight*(1-r),t.height=a}),t.forEach(function(n,r){for(var o=0,s=r-1;s>=0;s--)o+=t[s].width+2*i;var l=n.minX=i+o,u=n.maxX=n.minX+n.width,c=n.minY=e.y-a/2,f=n.maxY=c+a;n.x=[l,u,u,l],n.y=[c,c,f,f]})}else{var s=1/n;t.forEach(function(t,n){t.x=(n+.5)*s,t.y=e.y})}return t}(l,o),links:function(t,e,n){if(n.weight){var i={};(0,r.forIn)(t,function(t,e){i[e]=t.value}),e.forEach(function(e){var r=n.source(e),a=n.target(e),o=t[r],s=t[a];if(o&&s){var l=i[r],u=n.sourceWeight(e),c=o.minX+(o.value-l)/o.value*o.width,f=c+u/o.value*o.width;i[r]-=u;var d=i[a],p=n.targetWeight(e),h=s.minX+(s.value-d)/s.value*s.width,g=h+p/s.value*s.width;i[a]-=p;var v=n.y;e.x=[c,f,h,g],e.y=[v,v,v,v],e.source=o,e.target=s}})}else e.forEach(function(e){var r=t[n.source(e)],i=t[n.target(e)];r&&i&&(e.x=[r.x,i.x],e.y=[r.y,i.y],e.source=r,e.target=i)});return e}(s,u,o)}},e.getDefaultOptions=a;var r=n(0),i={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function a(t){return(0,r.assign)({},i,t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CirclePacking=void 0;var r=n(1),i=n(19),a=n(1297),o=n(604);n(1300);var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))},e}(i.Plot);e.CirclePacking=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)((0,o.pattern)("pointStyle"),f,d,o.theme,h,p,v,o.legend,g,y,o.animation,(0,o.annotation)())(t)},e.meta=h;var r=n(1),i=n(0),a=n(546),o=n(22),s=n(7),l=n(121),u=n(1298),c=n(604);function f(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return(0,s.deepAssign)({options:{size:function(t){return t.r*n}}},t)}function d(t){var e=t.options,n=t.chart,r=n.viewBBox,a=e.padding,o=e.appendPadding,s=e.drilldown,c=o;if(null==s?void 0:s.enabled){var f=(0,l.getAdjustAppendPadding)(n.appendPadding,(0,i.get)(s,["breadCrumb","position"]));c=(0,l.resolveAllPadding)([f,o])}var d=(0,u.resolvePaddingForCircle)(a,c,r).finalPadding;return n.padding=d,n.appendPadding=0,t}function p(t){var e=t.chart,n=t.options,i=e.padding,o=e.appendPadding,l=n.color,f=n.colorField,d=n.pointStyle,p=n.hierarchyConfig,h=n.sizeField,g=n.rawFields,v=void 0===g?[]:g,y=n.drilldown,m=(0,u.transformData)({data:n.data,hierarchyConfig:p,enableDrillDown:null==y?void 0:y.enabled,rawFields:v});e.data(m);var b=e.viewBBox,x=(0,u.resolvePaddingForCircle)(i,o,b).finalSize,_=function(t){return t.r*x};return h&&(_=function(t){return t[h]*x}),(0,a.point)((0,s.deepAssign)({},t,{options:{xField:"x",yField:"y",seriesField:f,sizeField:h,rawFields:(0,r.__spreadArrays)(c.RAW_FIELDS,v),point:{color:l,style:d,shape:"circle",size:_}}})),t}function h(t){return(0,s.flow)((0,o.scale)({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function g(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var a=n;(0,i.get)(n,"fields")||(a=(0,s.deepAssign)({},{customItems:function(t){return t.map(function(t){var n=(0,i.get)(e.getOptions(),"scales"),a=(0,i.get)(n,["name","formatter"],function(t){return t}),o=(0,i.get)(n,["value","formatter"],function(t){return t});return(0,r.__assign)((0,r.__assign)({},t),{name:a(t.data.name),value:o(t.data.value)})})}},a)),e.tooltip(a)}return t}function v(t){return t.chart.axis(!1),t}function y(t){var e,n,i=t.chart,a=t.options;return(0,o.interaction)({chart:i,options:(e=a.drilldown,n=a.interactions,(null==e?void 0:e.enabled)?(0,s.deepAssign)({},a,{interactions:(0,r.__spreadArrays)(void 0===n?[]:n,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:u.transformData,enableDrillDown:!0}}])}):a)}),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolvePaddingForCircle=function(t,e,n){var r=(0,s.resolveAllPadding)([t,e]),i=r[0],a=r[1],o=r[2],l=r[3],u=n.width,c=n.height,f=u-(l+a),d=c-(i+o),p=Math.min(f,d),h=(f-p)/2,g=(d-p)/2;return{finalPadding:[i+g,a+h,o+g,l+h],finalSize:p<0?0:p}},e.transformData=function(t){var e=t.data,n=t.hierarchyConfig,s=t.rawFields,l=void 0===s?[]:s,u=t.enableDrillDown,c=(0,i.pack)(e,(0,r.__assign)((0,r.__assign)({},n),{field:"value",as:["x","y","r"]})),f=[];return c.forEach(function(t){for(var e,i=t.data.name,s=(0,r.__assign)({},t);s.depth>1;)i=(null===(e=s.parent.data)||void 0===e?void 0:e.name)+" / "+i,s=s.parent;if(u&&t.depth>2)return null;var c=(0,a.deepAssign)({},t.data,(0,r.__assign)((0,r.__assign)((0,r.__assign)({},(0,a.pick)(t.data,l)),{path:i}),t));c.ext=n,c[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:n,rawFields:l,enableDrillDown:u},f.push(c)}),f};var r=n(1),i=n(1299),a=n(7),o=n(201),s=n(121)},function(t,e,n){"use strict";var r=n(6);Object.defineProperty(e,"__esModule",{value:!0}),e.pack=function(t,e){var n,r=(e=(0,a.assign)({},l,e)).as;if(!(0,a.isArray)(r)||3!==r.length)throw TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=(0,o.getField)(e)}catch(t){console.warn(t)}var s=i.pack().size(e.size).padding(e.padding)(i.hierarchy(t).sum(function(t){return t[n]}).sort(e.sort)),u=r[0],c=r[1],f=r[2];return s.each(function(t){t[u]=t.x,t[c]=t.y,t[f]=t.r}),(0,o.getAllNodes)(s)};var i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=s(e);if(n&&n.has(t))return n.get(t);var i={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var l=a?Object.getOwnPropertyDescriptor(t,o):null;l&&(l.get||l.set)?Object.defineProperty(i,o,l):i[o]=t[o]}return i.default=t,n&&n.set(t,i),i}(n(193)),a=n(0),o=n(157);function s(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(s=function(t){return t?n:e})(t)}var l={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}}},function(t,e,n){"use strict";n(313)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.P=void 0;var r=n(1),i=n(7),a=function(t){function e(e,n,r,a){var o=t.call(this,e,(0,i.deepAssign)({},a,n))||this;return o.type="g2-plot",o.defaultOptions=a,o.adaptor=r,o}return(0,r.__extends)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor},e}(n(19).Plot);e.P=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,u.flow)(o.animation,f,d,o.interaction,o.animation,o.theme,o.tooltip)(t)};var r=n(1),i=n(0),a=n(49),o=n(22),s=n(19),l=n(99),u=n(7),c=n(606);function f(t){var e=t.chart,n=t.options,o=n.views,s=n.legend;return(0,i.each)(o,function(t){var n=t.region,o=t.data,s=t.meta,c=t.axes,f=t.coordinate,d=t.interactions,p=t.annotations,h=t.tooltip,g=t.geometries,v=e.createView({region:n});v.data(o);var y={};c&&(0,i.each)(c,function(t,e){y[e]=(0,u.pick)(t,l.AXIS_META_CONFIG_KEYS)}),y=(0,u.deepAssign)({},s,y),v.scale(y),c?(0,i.each)(c,function(t,e){v.axis(e,t)}):v.axis(!1),v.coordinate(f),(0,i.each)(g,function(t){var e=(0,a.geometry)({chart:v,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)}),(0,i.each)(d,function(t){!1===t.enable?v.removeInteraction(t.type):v.interaction(t.type,t.cfg)}),(0,i.each)(p,function(t){v.annotation()[t.type]((0,r.__assign)({},t))}),"boolean"==typeof t.animation?v.animate(!1):(v.animate(!0),(0,i.each)(v.geometries,function(e){e.animate(t.animation)})),h&&(v.interaction("tooltip"),v.tooltip(h))}),s?(0,i.each)(s,function(t,n){e.legend(n,t)}):e.legend(!1),e.tooltip(n.tooltip),t}function d(t){var e=t.chart,n=t.options.plots;return(0,i.each)(n,function(t){var n=t.type,i=t.region,a=t.options,o=void 0===a?{}:a,l=o.tooltip,f=e.createView((0,r.__assign)({region:i},(0,u.pick)(o,s.PLOT_CONTAINER_OPTIONS)));l&&f.interaction("tooltip"),(0,c.execPlotAdaptor)(n,f,o)}),t}},function(t,e,n){"use strict";n(1304)},function(t,e,n){"use strict";var r=n(1),i=n(0),a=n(14),o=n(7),s=n(1305),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,r.__extends)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,a=e||{},l=a.linkField,u=a.dim,c=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var f=r.data.data;(0,i.each)(t,function(t){var e,n,r=l;if("x"===u?r=t.getXScale().field:"y"===u?r=null===(e=t.getYScales().find(function(t){return t.field===r}))||void 0===e?void 0:e.field:r||(r=null===(n=t.getGroupScales()[0])||void 0===n?void 0:n.field),r){var a=(0,i.map)((0,o.getAllElements)(t),function(e){var n=!1,a=!1,o=(0,i.isArray)(f)?(0,i.get)(f[0],r):(0,i.get)(f,r);return(0,s.getElementValue)(e,r)===o?n=!0:a=!0,{element:e,view:t,active:n,inactive:a}});c.push.apply(c,a)}})}return c},e.prototype.showTooltip=function(t){var e=(0,o.getSiblingViews)(this.context.view),n=this.getAssociationItems(e,t);(0,i.each)(n,function(t){if(t.active){var e=t.element.shape.getCanvasBBox();t.view.showTooltip({x:e.minX+e.width/2,y:e.minY+e.height/2})}})},e.prototype.hideTooltip=function(){var t=(0,o.getSiblingViews)(this.context.view);(0,i.each)(t,function(t){t.hideTooltip()})},e.prototype.active=function(t){var e=(0,o.getViews)(this.context.view),n=this.getAssociationItems(e,t);(0,i.each)(n,function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)})},e.prototype.selected=function(t){var e=(0,o.getViews)(this.context.view),n=this.getAssociationItems(e,t);(0,i.each)(n,function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)})},e.prototype.highlight=function(t){var e=(0,o.getViews)(this.context.view),n=this.getAssociationItems(e,t);(0,i.each)(n,function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)})},e.prototype.reset=function(){var t=(0,o.getViews)(this.context.view);(0,i.each)(t,function(t){(0,s.clearHighlight)(t)})},e}(a.Action);(0,a.registerAction)("association",l),(0,a.registerInteraction)("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,a.registerInteraction)("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,a.registerInteraction)("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),(0,a.registerInteraction)("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearHighlight=function(t){var e=(0,i.getAllElements)(t);(0,r.each)(e,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})},e.getElementValue=function(t,e){var n=t.getModel().data;return(0,r.isArray)(n)?n[0][e]:n[e]};var r=n(0),i=n(7)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Facet=void 0;var r=n(1),i=n(19),a=n(1307),o=n(1309),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return(0,r.__extends)(e,t),e.getDefaultOptions=function(){return o.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.adaptor},e}(i.Plot);e.Facet=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=function(t){return(0,s.flow)(a.theme,c,f)(t)};var r=n(1),i=n(0),a=n(22),o=n(99),s=n(7),l=n(606),u=n(1308);function c(t){var e=t.chart,n=t.options,a=n.type,o=n.data,s=n.fields,c=n.eachView,f=(0,i.omit)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(o),e.facet(a,(0,r.__assign)((0,r.__assign)({},f),{fields:s,eachView:function(t,e){var n=c(t,e);if(n.geometries)(0,u.execViewAdaptor)(t,n);else{var r=n.options;r.tooltip&&t.interaction("tooltip"),(0,l.execPlotAdaptor)(n.type,t,r)}}})),t}function f(t){var e=t.chart,n=t.options,a=n.axes,l=n.meta,u=n.tooltip,c=n.coordinate,f=n.theme,d=n.legend,p=n.interactions,h=n.annotations,g={};return a&&(0,i.each)(a,function(t,e){g[e]=(0,s.pick)(t,o.AXIS_META_CONFIG_KEYS)}),g=(0,s.deepAssign)({},l,g),e.scale(g),e.coordinate(c),a?(0,i.each)(a,function(t,n){e.axis(n,t)}):e.axis(!1),u?(e.interaction("tooltip"),e.tooltip(u)):!1===u&&e.removeInteraction("tooltip"),e.legend(d),f&&e.theme(f),(0,i.each)(p,function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)}),(0,i.each)(h,function(t){e.annotation()[t.type]((0,r.__assign)({},t))}),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.execViewAdaptor=function(t,e){var n=e.data,l=e.coordinate,u=e.interactions,c=e.annotations,f=e.animation,d=e.tooltip,p=e.axes,h=e.meta,g=e.geometries;n&&t.data(n);var v={};p&&(0,i.each)(p,function(t,e){v[e]=(0,s.pick)(t,o.AXIS_META_CONFIG_KEYS)}),v=(0,s.deepAssign)({},h,v),t.scale(v),l&&t.coordinate(l),!1===p?t.axis(!1):(0,i.each)(p,function(e,n){t.axis(n,e)}),(0,i.each)(g,function(e){var n=(0,a.geometry)({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)}),(0,i.each)(u,function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)}),(0,i.each)(c,function(e){t.annotation()[e.type]((0,r.__assign)({},e))}),"boolean"==typeof f?t.animate(!1):(t.animate(!0),(0,i.each)(t.geometries,function(t){t.animate(f)})),d?(t.interaction("tooltip"),t.tooltip(d)):!1===d&&t.removeInteraction("tooltip")};var r=n(1),i=n(0),a=n(49),o=n(99),s=n(7)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_OPTIONS=void 0,e.DEFAULT_OPTIONS={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Stage=e.Lab=void 0,e.notice=o;var r,i,a=n(605);function o(t,e){console.warn(t===i.DEV?"Plot '"+e+"' is in DEV stage, just give us issues.":t===i.BETA?"Plot '"+e+"' is in BETA stage, DO NOT use it in production env.":t===i.STABLE?"Plot '"+e+"' is in STABLE stage, import it by \"import { "+e+" } from '@antv/g2plot'\".":"invalid Stage type.")}e.Stage=i,(r=i||(e.Stage=i={})).DEV="DEV",r.BETA="BETA",r.STABLE="STABLE";var s=function(){function t(){}return Object.defineProperty(t,"MultiView",{get:function(){return o(i.STABLE,"MultiView"),a.Mix},enumerable:!1,configurable:!0}),t}();e.Lab=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adaptor=e.statistic=void 0;var r=n(1),i=n(0),a=n(34),o=n(43),s=n(509),l=n(15),u=n(317),c=n(607);function f(t){var e=t.chart,n=t.options,r=n.percent,a=n.range,f=n.radius,d=n.innerRadius,p=n.startAngle,h=n.endAngle,g=n.axis,v=n.indicator,y=n.gaugeStyle,m=n.type,b=n.meter,x=a.color,_=a.width;if(v){var O=c.getIndicatorData(r),P=e.createView({id:u.INDICATEOR_VIEW_ID});P.data(O),P.point().position(u.PERCENT+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),P.coordinate("polar",{startAngle:p,endAngle:h,radius:d*f}),P.axis(u.PERCENT,g),P.scale(u.PERCENT,l.pick(g,s.AXIS_META_CONFIG_KEYS))}var M=c.getRangeData(r,n.range),A=e.createView({id:u.RANGE_VIEW_ID});A.data(M);var S=i.isString(x)?[x,u.DEFAULT_COLOR]:x;return o.interval({chart:A,options:{xField:"1",yField:u.RANGE_VALUE,seriesField:u.RANGE_TYPE,rawFields:[u.PERCENT],isStack:!0,interval:{color:S,style:y,shape:"meter"===m?"meter-gauge":null},args:{zIndexReversed:!0},minColumnWidth:_,maxColumnWidth:_}}).ext.geometry.customInfo({meter:b}),A.coordinate("polar",{innerRadius:d,radius:f,startAngle:p,endAngle:h}).transpose(),t}function d(t){var e;return l.flow(a.scale(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[u.PERCENT]={},e)))(t)}function p(t,e){var n=t.chart,i=t.options,a=i.statistic,o=i.percent;if(n.getController("annotation").clear(!0),a){var s=a.content,u=void 0;s&&(u=l.deepAssign({},{content:(100*o).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),l.renderGaugeStatistic(n,{statistic:r.__assign(r.__assign({},a),{content:u})},{percent:o})}return e&&n.render(!0),t}function h(t){var e=t.chart;return e.legend(!1),e.tooltip(!1),t}e.statistic=p,e.adaptor=function(t){return l.flow(a.theme,a.animation,f,d,p,a.interaction,a.annotation(),h)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);n(14).registerShape("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,a=n.defaultColor,o=i.pointer,s=i.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:r.__assign({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:a},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:r.__assign({x:u.x,y:u.y,stroke:a},s.style)}),l}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=n(0);r.registerShape("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,a=void 0===n?{}:n,o=a.steps,s=void 0===o?50:o,l=a.stepRatio,u=void 0===l?.5:l;s=s<1?1:s,u=i.clamp(u,0,1);var c=this.coordinate,f=c.startAngle,d=c.endAngle,p=0;u>0&&u<1&&(p=(d-f)/s/(u/(1-u)+1-1/s));for(var h=p/(1-u)*u,g=e.addGroup(),v=this.coordinate.getCenter(),y=this.coordinate.getRadius(),m=r.Util.getAngle(t,this.coordinate),b=m.startAngle,x=m.endAngle,_=b;_-1){var c=i.get(l.findViewById(e,u),"geometries");i.each(c,function(t){t.changeVisible(!n.item.unchecked)})}}else{var f=i.get(e.getController("legend"),"option.items",[]);i.each(e.views,function(t){var n=t.getGroupScales();i.each(n,function(e){e.values&&e.values.indexOf(a)>-1&&t.filter(e.field,function(t){return!i.find(f,function(e){return e.value===t}).unchecked})}),e.render(!0)})}}})}return t}function E(t){var e=t.chart,n=t.options.slider,r=l.findViewById(e,h.LEFT_AXES_VIEW),a=l.findViewById(e,h.RIGHT_AXES_VIEW);return n&&(r.option("slider",n),r.on("slider:valuechanged",function(t){var e=t.event,n=e.value,r=e.originValue;i.isEqual(n,r)||d.doSliderFilter(a,n)}),e.once("afterpaint",function(){if(!i.isBoolean(n)){var t=n.start,e=n.end;(t||e)&&d.doSliderFilter(a,[t,e])}})),t}e.transformOptions=g,e.color=m,e.meta=b,e.axis=x,e.tooltip=_,e.interaction=O,e.annotation=P,e.theme=M,e.animation=A,e.limitInPlot=S,e.legend=w,e.slider=E,e.adaptor=function(t){return s.flow(g,v,M,y,b,x,S,_,O,P,A,m,w,E)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getViewLegendItems=void 0;var r=n(0),i=n(14),a=n(15),o=n(318);e.getViewLegendItems=function(t){var e=t.view,n=t.geometryOption,s=t.yField,l=t.legend,u=r.get(l,"marker"),c=a.findGeometry(e,o.isLine(n)?"line":"interval");if(!n.seriesField){var f=r.get(e,"options.scales."+s+".alias")||s,d=c.getAttribute("color"),p=e.getTheme().defaultColor;d&&(p=i.Util.getMappingValue(d,f,r.get(d,["values",0],p)));var h=(r.isFunction(u)?u:!r.isEmpty(u)&&a.deepAssign({},{style:{stroke:p,fill:p}},u))||(o.isLine(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:p}}:{symbol:"square",style:{fill:p}});return[{value:s,name:f,marker:h,isGeometry:!0,viewId:e.id}]}var g=c.getGroupAttributes();return r.reduce(g,function(t,n){var r=i.Util.getLegendItems(e,c,n,e.getTheme(),u);return t.concat(r)},[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.drawSingleGeometry=void 0;var r=n(1),i=n(0),a=n(43),o=n(15),s=n(195),l=n(318);e.drawSingleGeometry=function(t){var e=t.options,n=t.chart,u=e.geometryOption,c=u.isStack,f=u.color,d=u.seriesField,p=u.groupField,h=u.isGroup,g=["xField","yField"];if(l.isLine(u)){a.line(o.deepAssign({},t,{options:r.__assign(r.__assign(r.__assign({},o.pick(e,g)),u),{line:{color:u.color,style:u.lineStyle}})})),a.point(o.deepAssign({},t,{options:r.__assign(r.__assign(r.__assign({},o.pick(e,g)),u),{point:u.point&&r.__assign({color:f,shape:"circle"},u.point)})}));var v=[];h&&v.push({type:"dodge",dodgeBy:p||d,customOffset:0}),c&&v.push({type:"stack"}),v.length&&i.each(n.geometries,function(t){t.adjust(v)})}return l.isColumn(u)&&s.adaptor(o.deepAssign({},t,{options:r.__assign(r.__assign(r.__assign({},o.pick(e,g)),u),{widthRatio:u.columnWidthRatio,interval:r.__assign(r.__assign({},o.pick(u,["color"])),{style:u.columnStyle})})})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doSliderFilter=void 0;var r=n(0),i=n(15);e.doSliderFilter=function(t,e){var n=e[0],a=e[1],o=t.getOptions().data,s=t.getXScale(),l=r.size(o);if(s&&l){var u=r.valuesOfKey(o,s.field),c=r.size(u),f=Math.floor(n*(c-1)),d=Math.floor(a*(c-1));t.filter(s.field,function(t){var e=u.indexOf(t);return!(e>-1)||i.isBetween(e,f,d)}),t.render(!0)}}},function(t,e,n){"use strict";var r=n(9),i=n.n(r),a=n(10),o=n.n(a),s=n(363),l=n.n(s),u=n(12),c=n.n(u),f=n(13),d=n.n(f),p=n(5),h=n.n(p),g=n(66),v=[1,1.2,1.5,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10];function y(t){var e=1;if(0===(t=Math.abs(t)))return e;if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;return e.toString().length>12&&(e=parseFloat(e.toFixed(n))),e}for(;t>10;)e*=10,t/=10;return e}function m(t){var e=t.toString(),n=e.indexOf("."),r=e.indexOf("e-"),i=r>=0?parseInt(e.substr(r+2),10):e.substr(n+1).length;return i>20&&(i=20),i}function b(t,e){return parseFloat(t.toFixed(e))}Object(g.registerTickMethod)("linear-strict-tick-method",function(t){var e=t||{},n=e.tickCount,r=e.tickInterval,i=t||{},a=i.min,o=i.max;a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=n&&n>=2?n:5,l=r||function(t){var e=t.tickCount,n=t.min,r=t.max;if(n===r)return 1*y(r);for(var i=(r-n)/(e-1),a=y(i),o=i/a,s=r/a,l=n/a,u=0,c=0;c=r}({interval:v[s],tickCount:n,max:i,min:r})){o=v[s],a=!0;break}return a?o:10*t(0,n,r/10,i/10)}(u,e,l,s),d=m(f)+m(a);return b(f*a,d)}({tickCount:s,max:o,min:a}),u=Math.floor(a/l)*l;r&&(s=Math.max(s,Math.abs(Math.ceil((o-u)/r))+1));for(var c=[],f=0,d=m(l);f