diff --git a/gui_dev/src/components/BandPowerGraph.jsx b/gui_dev/src/components/BandPowerGraph.jsx index e1f1ee2a..d8168763 100644 --- a/gui_dev/src/components/BandPowerGraph.jsx +++ b/gui_dev/src/components/BandPowerGraph.jsx @@ -1,15 +1,26 @@ -import { useEffect, useState, useMemo, useRef } from "react"; -import { useSocketStore } from "@/stores/socketStore"; +import { useEffect, useRef, useState, useMemo } from "react"; +import { useSocketStore } from "@/stores/socketStore"; import { useSessionStore } from "@/stores/sessionStore"; -import Plot from 'react-plotly.js'; +import Plotly from "plotly.js-basic-dist-min"; import { Box, Typography, + Radio, + RadioGroup, FormControlLabel, - Checkbox, } from "@mui/material"; -import { CollapsibleBox } from "./CollapsibleBox"; +import { CollapsibleBox } from "./CollapsibleBox"; import { getChannelAndFeature } from "./utils"; +import { shallow } from "zustand/shallow"; + +const generateColors = (numColors) => { + const colors = []; + for (let i = 0; i < numColors; i++) { + const hue = (i * 360) / numColors; + colors.push(`hsl(${hue}, 100%, 50%)`); + } + return colors; +}; const fftFeatures = [ "fft_theta_mean", @@ -21,25 +32,35 @@ const fftFeatures = [ ]; export const BandPowerGraph = () => { - const channels = useSessionStore((state) => state.channels); + const channels = useSessionStore((state) => state.channels, shallow); - const [selectedChannels, setSelectedChannels] = useState([]); + const usedChannels = useMemo( + () => channels.filter((channel) => channel.used === 1), + [channels] + ); - const availableChannels = channels.map((channel) => channel.name); + const availableChannels = useMemo( + () => usedChannels.map((channel) => channel.name), + [usedChannels] + ); + const [selectedChannel, setSelectedChannel] = useState(""); const hasInitialized = useRef(false); - const socketPsdData = useSocketStore((state) => state.graphData); - - const psdData = useMemo(() => { - if (!socketPsdData) return []; + const socketData = useSocketStore((state) => state.graphData); + + const data = useMemo(() => { + if (!socketData || !selectedChannel) return null; const dataByChannel = {}; - Object.entries(socketPsdData).forEach(([key, value]) => { - const { channelName = '', featureName = '' } = getChannelAndFeature(availableChannels, key); - if (!channelName || !featureName) return; + Object.entries(socketData).forEach(([key, value]) => { + const { channelName = "", featureName = "" } = getChannelAndFeature( + availableChannels, + key + ); + if (!channelName) return; - if (!fftFeatures.includes(featureName)) return; + if (!fftFeatures.includes(featureName)) return; if (!dataByChannel[channelName]) { dataByChannel[channelName] = { @@ -50,107 +71,94 @@ export const BandPowerGraph = () => { } dataByChannel[channelName].features.push(featureName); - dataByChannel[channelName].values.push(Number(value) || 0); + dataByChannel[channelName].values.push(value); }); - const selectedData = selectedChannels.map((channelName) => { - const channelData = dataByChannel[channelName]; + const channelData = dataByChannel[selectedChannel]; + if (channelData) { const sortedValues = fftFeatures.map((feature) => { - let value = 0; - if (channelData) { - const index = channelData.features.indexOf(feature); - value = index !== -1 ? Number(channelData.values[index]) : 0; - } - if (!isFinite(value)) { - value = 0; - } - return value; + const index = channelData.features.indexOf(feature); + return index !== -1 ? channelData.values[index] : null; }); return { - channelName, + channelName: selectedChannel, features: fftFeatures.map((f) => - f.replace('_mean', '').replace('fft_', '') + f.replace("_mean", "").replace("fft_", "") ), values: sortedValues, }; - }); + } else { + return { + channelName: selectedChannel, + features: fftFeatures.map((f) => + f.replace("_mean", "").replace("fft_", "") + ), + values: fftFeatures.map(() => null), + }; + } + }, [socketData, selectedChannel, availableChannels]); - return selectedData; - }, [socketPsdData, selectedChannels]); + const graphRef = useRef(null); + const plotlyRef = useRef(null); - const handleChannelToggle = (channelName) => { - setSelectedChannels((prevSelected) => { - if (prevSelected.includes(channelName)) { - return prevSelected.filter((name) => name !== channelName); - } else { - return [...prevSelected, channelName]; - } - }); + const handleChannelSelect = (channelName) => { + setSelectedChannel(channelName); }; useEffect(() => { - if (channels.length > 0 && !hasInitialized.current) { - setSelectedChannels(availableChannels); + if (usedChannels.length > 0 && !hasInitialized.current) { + const availableChannelNames = usedChannels.map((channel) => channel.name); + setSelectedChannel(availableChannelNames[0]); hasInitialized.current = true; } - }, [channels, availableChannels]); - - const frequencies = fftFeatures.map((f) => f.replace('_mean', '').replace('fft_', '')); - const xValues = frequencies.map((_, index) => index); - const yChannels = psdData.map((data) => data.channelName); - const yValues = yChannels.map((_, index) => index); - const zData = psdData.map((data) => data.values); - - const xMesh = yValues.map(() => xValues); - const yMesh = yValues.map(y => Array(xValues.length).fill(y)); - - let invalidValueFound = false; - zData.forEach((row, rowIndex) => { - row.forEach((value, colIndex) => { - if (!isFinite(value)) { - console.warn(`Invalid value at zData[${rowIndex}][${colIndex}]:`, value); - invalidValueFound = true; - } - }); - }); + }, [usedChannels]); - if (invalidValueFound) { - console.error('Invalid values found in zData.'); - } + useEffect(() => { + if (!graphRef.current || !selectedChannel || !data) return; - const data = [{ - type: 'surface', - x: xMesh, - y: yMesh, - z: zData, - colorscale: 'Viridis', - }]; - - const layout = { - title: 'Band Power 3D Surface', - autosize: true, - height: 350, - scene: { + const layout = { + autosize: true, + height: 350, + paper_bgcolor: "#333", + plot_bgcolor: "#333", xaxis: { - title: 'Frequency Band', - tickvals: xValues, - ticktext: frequencies, + title: { text: "Frequency Band", font: { color: "#f4f4f4" } }, + color: "#cccccc", + type: "category", }, yaxis: { - title: 'Channel', - tickvals: yValues, - ticktext: yChannels, + title: { text: "Power", font: { color: "#f4f4f4" } }, + color: "#cccccc", }, - zaxis: { title: 'Power' }, - camera: { - eye: { x: 1.5, y: 1.5, z: 1.5 }, - }, - }, - margin: { l: 50, r: 50, b: 50, t: 50 }, - }; + margin: { l: 50, r: 50, b: 50, t: 0 }, + font: { color: "#f4f4f4" }, + legend: { orientation: "h", x: 0, y: -0.2 }, + }; + + const barColors = generateColors(data.features.length); + + const trace = { + x: data.features, + y: data.values, + type: "bar", + name: data.channelName, + marker: { color: barColors }, + }; + + Plotly.react(graphRef.current, [trace], layout, { + responsive: true, + displayModeBar: false, + }) + .then((gd) => { + plotlyRef.current = gd; + }) + .catch((error) => { + console.error("Plotly error:", error); + }); + }, [data, selectedChannel]); return ( - + { flexWrap="wrap" > - Band Power 3D Surface + Band Power - + - {channels.map((channel, index) => ( - handleChannelToggle(channel.name)} - color="primary" - /> - } - label={channel.name} - /> - ))} + handleChannelSelect(e.target.value)} + > + {usedChannels.map((channel, index) => ( + } + label={channel.name} + /> + ))} + - - - + +
); }; diff --git a/gui_dev/src/components/HeatmapGraph.jsx b/gui_dev/src/components/HeatmapGraph.jsx index 6006f80e..b521196c 100644 --- a/gui_dev/src/components/HeatmapGraph.jsx +++ b/gui_dev/src/components/HeatmapGraph.jsx @@ -1,20 +1,35 @@ -import React, { useEffect, useState, useRef } from 'react'; +import React, { useEffect, useState, useRef, useMemo } from 'react'; import { useSocketStore, useSessionStore } from '@/stores'; import Plot from 'react-plotly.js'; import { Box, Typography, FormControl, - InputLabel, - Select, - MenuItem, + RadioGroup, + FormControlLabel, + Radio, } from '@mui/material'; +import { CollapsibleBox } from './CollapsibleBox'; +import { getChannelAndFeature } from './utils'; +import { shallow } from 'zustand/shallow'; const maxTimeWindow = 10; export const HeatmapGraph = () => { - const channels = useSessionStore((state) => state.channels); - const [selectedChannel, setSelectedChannel] = useState(''); // TODO: Switch this maybe multiple? + + const channels = useSessionStore((state) => state.channels, shallow); + + const usedChannels = useMemo( + () => channels.filter((channel) => channel.used === 1), + [channels] + ); + + const availableChannels = useMemo( + () => usedChannels.map((channel) => channel.name), + [usedChannels] + ); + + const [selectedChannel, setSelectedChannel] = useState(''); // TODO: Switch this maybe multiple? const [features, setFeatures] = useState([]); const [heatmapData, setHeatmapData] = useState({ x: [], z: [] }); const [isDataStale, setIsDataStale] = useState(false); @@ -24,20 +39,15 @@ export const HeatmapGraph = () => { const hasInitialized = useRef(Date.now()); const graphData = useSocketStore((state) => state.graphData); - const handleChannelChange = (event) => { + const handleChannelToggle = (event) => { setSelectedChannel(event.target.value); - setFeatures([]); - setHeatmapData({ x: [], z: [] }); // TODO: Data reset on channel switch currently doesn't work 100% - setIsDataStale(false); - setLastDataTime(null); - setLastDataTimestamp(null); }; useEffect(() => { - if (channels.length > 0 && !selectedChannel) { - setSelectedChannel(channels[0].name); + if (usedChannels.length > 0 && !selectedChannel) { + setSelectedChannel(usedChannels[0].name); } - }, [channels, selectedChannel]); + }, [usedChannels, selectedChannel]); // Update features on data/channel change -> TODO: Debug the channel switch useEffect(() => { @@ -50,7 +60,6 @@ export const HeatmapGraph = () => { ); const newFeatures = featureKeys.map((key) => key.substring(channelPrefix.length)); - if (JSON.stringify(newFeatures) !== JSON.stringify(features)) { console.log('Updating features:', newFeatures); setFeatures(newFeatures); @@ -59,12 +68,12 @@ export const HeatmapGraph = () => { setLastDataTime(null); setLastDataTimestamp(null); } - }, [graphData, selectedChannel, features]); + }, [graphData, selectedChannel]); useEffect(() => { if (!graphData || !selectedChannel || features.length === 0) return; - // TOOD: Always data in ms? (Time conversion here always necessary?) + // TODO: Always data in ms? (Time conversion here always necessary?) let timestamp = graphData.time; if (timestamp === undefined) { timestamp = (Date.now() - hasInitialized.current) / 1000; @@ -72,27 +81,25 @@ export const HeatmapGraph = () => { timestamp = timestamp / 1000; } - setLastDataTime(Date.now()); - setLastDataTimestamp(timestamp); setIsDataStale(false); let x = [...heatmapData.x, timestamp]; - let z = heatmapData.z ? heatmapData.z.map((row) => [...row]) : []; + + let z; + if (heatmapData.z && heatmapData.z.length === features.length) { + z = heatmapData.z.map((row) => [...row]); + } else { + z = features.map(() => []); + } features.forEach((featureName, idx) => { const key = `${selectedChannel}_${featureName}`; const value = graphData[key]; - const numericValue = typeof value === 'number' && !isNaN(value) ? value : 0; - - if (!z[idx]) { - z[idx] = []; - } z[idx].push(numericValue); }); - const currentTime = timestamp; const minTime = currentTime - maxTimeWindow; // TODO: What should be the visible window frame? adjustable? 10s? @@ -107,10 +114,9 @@ export const HeatmapGraph = () => { z = z.map((row) => validIndices.map((index) => row[index])); setHeatmapData({ x, z }); - }, [graphData, selectedChannel, features]); - // Check if data is stale (no new data in the last second) + // Check if data is stale (no new data in the last second) -> TODO: Find better solution debug this useEffect(() => { if (!lastDataTime) return; @@ -125,10 +131,10 @@ export const HeatmapGraph = () => { return () => clearInterval(interval); }, [lastDataTime]); - const xRange = // Adjusting x-axis range when data is stale to visually move the frame in position at the end - isDataStale && heatmapData.x.length > 0 - ? [heatmapData.x[0], heatmapData.x[heatmapData.x.length - 1]] - : undefined; + // TODO: Adjustment of x-axis -> this currently is a bit buggy + const xRange = isDataStale && heatmapData.x.length > 0 + ? [heatmapData.x[0], heatmapData.x[heatmapData.x.length - 1]] + : undefined; const layout = { // title: { text: 'Heatmap', font: { color: '#f4f4f4' } }, @@ -161,28 +167,29 @@ export const HeatmapGraph = () => { return ( - + Heatmap - - - Channel Selection - - - + + + + + {usedChannels.map((channel, index) => ( + } // TODO: Should we make multiple selectable? + label={channel.name} + /> + ))} + + + + {heatmapData.x.length > 0 && features.length > 0 && heatmapData.z.length > 0 && ( { - const channels = useSessionStore((state) => state.channels); - const [selectedChannels, setSelectedChannels] = useState([]); - const availableChannels = channels.map((channel) => channel.name); + const channels = useSessionStore((state) => state.channels, shallow); - const hasInitialized = useRef(false); + const usedChannels = useMemo( + () => channels.filter((channel) => channel.used === 1), + [channels] + ); + + const availableChannels = useMemo( + () => usedChannels.map((channel) => channel.name), + [usedChannels] + ); + const [selectedChannels, setSelectedChannels] = useState([]); + const hasInitialized = useRef(false); + const socketPsdData = useSocketStore((state) => state.graphData); const psdData = useMemo(() => { @@ -87,7 +97,7 @@ export const PSDGraph = () => { }); return selectedData; - }, [socketPsdData, selectedChannels]); + }, [socketPsdData, selectedChannels, availableChannels]); const graphRef = useRef(null); const plotlyRef = useRef(null); @@ -103,12 +113,12 @@ export const PSDGraph = () => { }; useEffect(() => { - if (channels.length > 0 && !hasInitialized.current) { - const availableChannels = channels.map((channel) => channel.name); - setSelectedChannels(availableChannels); + if (usedChannels.length > 0 && !hasInitialized.current) { + const availableChannelNames = usedChannels.map((channel) => channel.name); + setSelectedChannels(availableChannelNames); hasInitialized.current = true; } - }, [channels]); + }, [usedChannels]); useEffect(() => { if (!graphRef.current) return; @@ -149,8 +159,6 @@ export const PSDGraph = () => { line: { simplify: false, color: colors[idx] }, })); - // console.log("Traces to plot:", traces); - // TODO: Fix the typing error -> How to solve this in jsx? Plotly.react(graphRef.current, traces, layout, { responsive: true, displayModeBar: false, @@ -179,9 +187,9 @@ export const PSDGraph = () => { {/* TODO: Fix the typing errors -> How to solve this in jsx? */} - {channels.map((channel, index) => ( + {usedChannels.map((channel, index) => ( { @@ -31,8 +32,19 @@ export const RawDataGraph = ({ maxDataPoints = 400, }) => { const graphData = useSocketStore((state) => state.graphData); - const channels = useSessionStore((state) => state.channels); - const availableChannels = channels.map((channel) => channel.name); + + const channels = useSessionStore((state) => state.channels, shallow); + + const usedChannels = useMemo( + () => channels.filter((channel) => channel.used === 1), + [channels] + ); + + const availableChannels = useMemo( + () => usedChannels.map((channel) => channel.name), + [usedChannels] + ); + const [selectedChannels, setSelectedChannels] = useState([]); const hasInitialized = useRef(false); const [rawData, setRawData] = useState({}); @@ -90,41 +102,43 @@ export const RawDataGraph = ({ }; useEffect(() => { - if (channels.length > 0 && !hasInitialized.current) { - const availableChannels = channels.map((channel) => channel.name); - setSelectedChannels(availableChannels); + if (usedChannels.length > 0 && !hasInitialized.current) { + const availableChannelNames = usedChannels.map((channel) => channel.name); + setSelectedChannels(availableChannelNames); hasInitialized.current = true; } - }, [channels]); + }, [usedChannels]); // Process incoming graphData to extract raw data for each channel -> TODO: Check later if this fits here better than socketStore useEffect(() => { if (!graphData || Object.keys(graphData).length === 0) return; const latestData = graphData; - const updatedRawData = { ...rawData }; - - Object.entries(latestData).forEach(([key, value]) => { - - const { channelName = '', featureName = '' } = getChannelAndFeature(availableChannels, key); - - if (!channelName) return; - - if (featureName !== 'raw') return; - if (!updatedRawData[channelName]) { - updatedRawData[channelName] = []; - } - - updatedRawData[channelName].push(value); - - if (updatedRawData[channelName].length > maxDataPoints) { - updatedRawData[channelName] = updatedRawData[channelName].slice(-maxDataPoints); - } + setRawData((prevRawData) => { + const updatedRawData = { ...prevRawData }; + + Object.entries(latestData).forEach(([key, value]) => { + const { channelName = '', featureName = '' } = getChannelAndFeature(availableChannels, key); + + if (!channelName) return; + + if (featureName !== 'raw') return; + + if (!updatedRawData[channelName]) { + updatedRawData[channelName] = []; + } + + updatedRawData[channelName].push(value); + + if (updatedRawData[channelName].length > maxDataPoints) { + updatedRawData[channelName] = updatedRawData[channelName].slice(-maxDataPoints); + } + }); + + return updatedRawData; }); - - setRawData(updatedRawData); - }, [graphData]); + }, [graphData, availableChannels]); // Update the graph when rawData or selectedChannels change -> TODO: switch the logic to graph for each channel ?! useEffect(() => { @@ -228,9 +242,9 @@ export const RawDataGraph = ({ {/* TODO: Fix the typing errors -> How to solve this in jsx? */} - {channels.map((channel, index) => ( + {usedChannels.map((channel, index) => ( - ))} + ))} diff --git a/gui_dev/src/pages/Decoding.jsx b/gui_dev/src/pages/Decoding.jsx index 35c60aa8..2363ec77 100644 --- a/gui_dev/src/pages/Decoding.jsx +++ b/gui_dev/src/pages/Decoding.jsx @@ -1,6 +1,7 @@ import React from 'react'; import { Sidebar, SidebarDrawer } from '@/components'; // Adjust the import paths as needed import { Settings } from '@/pages'; // Adjust the import paths as needed +import { useSocketStore, useSessionStore } from '@/stores'; import { Switch, FormControlLabel, @@ -16,6 +17,13 @@ import { useNavigate } from 'react-router-dom'; export const Decoding = () => { const navigate = useNavigate(); + const connectSocket = useSocketStore((state) => state.connectSocket); + connectSocket(); + + const startStream = useSessionStore((state) => state.startStream); + const socketData = useSocketStore((state) => state.graphData); + console.log("Socket Data:", socketData); + // State variables for toggles and select const [movementDecoding, setMovementDecoding] = React.useState(false); const [dyskinesiaDecoding, setDyskinesiaDecoding] = React.useState(false); @@ -104,14 +112,7 @@ export const Decoding = () => { - + diff --git a/py_neuromodulation/gui/frontend/assets/index-DtSMweeP.js b/py_neuromodulation/gui/frontend/assets/index-DtSMweeP.js deleted file mode 100644 index e6fff648..00000000 --- a/py_neuromodulation/gui/frontend/assets/index-DtSMweeP.js +++ /dev/null @@ -1,257 +0,0 @@ -var Px=Object.defineProperty;var Ix=(e,t,n)=>t in e?Px(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Si=(e,t,n)=>Ix(e,typeof t!="symbol"?t+"":t,n);import{g as Xp,p as qh}from"./plotly--La8R4UM.js";function Vx(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var Z0={exports:{}},tu={};/** - * @license React - * react-jsx-runtime.production.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 Gx=Symbol.for("react.transitional.element"),qx=Symbol.for("react.fragment");function J0(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var o in t)o!=="key"&&(n[o]=t[o])}else n=t;return t=n.ref,{$$typeof:Gx,type:e,key:r,ref:t!==void 0?t:null,props:n}}tu.Fragment=qx;tu.jsx=J0;tu.jsxs=J0;Z0.exports=tu;var b=Z0.exports,ev={exports:{}},de={};/** - * @license React - * react.production.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 Kp=Symbol.for("react.transitional.element"),Fx=Symbol.for("react.portal"),Yx=Symbol.for("react.fragment"),Wx=Symbol.for("react.strict_mode"),Xx=Symbol.for("react.profiler"),Kx=Symbol.for("react.consumer"),Qx=Symbol.for("react.context"),Zx=Symbol.for("react.forward_ref"),Jx=Symbol.for("react.suspense"),e2=Symbol.for("react.memo"),tv=Symbol.for("react.lazy"),Fh=Symbol.iterator;function t2(e){return e===null||typeof e!="object"?null:(e=Fh&&e[Fh]||e["@@iterator"],typeof e=="function"?e:null)}var nv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rv=Object.assign,ov={};function ai(e,t,n){this.props=e,this.context=t,this.refs=ov,this.updater=n||nv}ai.prototype.isReactComponent={};ai.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ai.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function av(){}av.prototype=ai.prototype;function Qp(e,t,n){this.props=e,this.context=t,this.refs=ov,this.updater=n||nv}var Zp=Qp.prototype=new av;Zp.constructor=Qp;rv(Zp,ai.prototype);Zp.isPureReactComponent=!0;var Yh=Array.isArray,Qe={H:null,A:null,T:null,S:null},iv=Object.prototype.hasOwnProperty;function Jp(e,t,n,r,o,a,i){return n=i.ref,{$$typeof:Kp,type:e,key:t,ref:n!==void 0?n:null,props:i}}function n2(e,t){return Jp(e.type,t,null,void 0,void 0,void 0,e.props)}function em(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kp}function r2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wh=/\/+/g;function Sf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?r2(""+e.key):t.toString(36)}function Xh(){}function o2(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Xh,Xh):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ca(e,t,n,r,o){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(a){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Kp:case Fx:i=!0;break;case tv:return i=e._init,ca(i(e._payload),t,n,r,o)}}if(i)return o=o(e),i=r===""?"."+Sf(e,0):r,Yh(o)?(n="",i!=null&&(n=i.replace(Wh,"$&/")+"/"),ca(o,t,n,"",function(c){return c})):o!=null&&(em(o)&&(o=n2(o,n+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(Wh,"$&/")+"/")+i)),t.push(o)),1;i=0;var l=r===""?".":r+":";if(Yh(e))for(var s=0;s>>1,P=M[U];if(0>>1;Uo(W,j))qo(Z,W)?(M[U]=Z,M[q]=j,U=q):(M[U]=W,M[Q]=j,U=Q);else if(qo(Z,j))M[U]=Z,M[q]=j,U=q;else break e}}return z}function o(M,z){var j=M.sortIndex-z.sortIndex;return j!==0?j:M.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,f=null,d=3,h=!1,y=!1,v=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;function p(M){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=M)r(c),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(c)}}function x(M){if(v=!1,p(M),!y)if(n(s)!==null)y=!0,B();else{var z=n(c);z!==null&&D(x,z.startTime-M)}}var w=!1,T=-1,R=5,O=-1;function E(){return!(e.unstable_now()-OM&&E());){var U=f.callback;if(typeof U=="function"){f.callback=null,d=f.priorityLevel;var P=U(f.expirationTime<=M);if(M=e.unstable_now(),typeof P=="function"){f.callback=P,p(M),z=!0;break t}f===n(s)&&r(s),p(M)}else r(s);f=n(s)}if(f!==null)z=!0;else{var F=n(c);F!==null&&D(x,F.startTime-M),z=!1}}break e}finally{f=null,d=j,h=!1}z=void 0}}finally{z?_():w=!1}}}var _;if(typeof g=="function")_=function(){g(A)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,$=k.port2;k.port1.onmessage=A,_=function(){$.postMessage(null)}}else _=function(){C(A,0)};function B(){w||(w=!0,_())}function D(M,z){T=C(function(){M(e.unstable_now())},z)}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(M){M.callback=null},e.unstable_continueExecution=function(){y||h||(y=!0,B())},e.unstable_forceFrameRate=function(M){0>M||125U?(M.sortIndex=j,t(c,M),n(s)===null&&M===n(c)&&(v?(m(T),T=-1):v=!0,D(x,j-U))):(M.sortIndex=P,t(s,M),y||h||(y=!0,B())),M},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(M){var z=d;return function(){var j=d;d=z;try{return M.apply(this,arguments)}finally{d=j}}}})(cv);sv.exports=cv;var l2=sv.exports,uv={exports:{}},Lt={};/** - * @license React - * react-dom.production.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 s2=S;function fv(e){var t="https://react.dev/errors/"+e;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dv)}catch(e){console.error(e)}}dv(),uv.exports=Lt;var tm=uv.exports;const ds=Xp(tm);/** - * @license React - * react-dom-client.production.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 mt=l2,pv=S,f2=tm;function L(e){var t="https://react.dev/errors/"+e;if(1)":-1o||s[r]!==c[o]){var u=` -`+s[r].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=r&&0<=o);break}}}finally{Cf=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Hi(n):""}function g2(e){switch(e.tag){case 26:case 27:case 5:return Hi(e.type);case 16:return Hi("Lazy");case 13:return Hi("Suspense");case 19:return Hi("SuspenseList");case 0:case 15:return e=Ef(e.type,!1),e;case 11:return e=Ef(e.type.render,!1),e;case 1:return e=Ef(e.type,!0),e;default:return""}}function Jh(e){try{var t="";do t+=g2(e),e=e.return;while(e);return t}catch(n){return` -Error generating stack: `+n.message+` -`+n.stack}}function ii(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function vv(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function eg(e){if(ii(e)!==e)throw Error(L(188))}function y2(e){var t=e.alternate;if(!t){if(t=ii(e),t===null)throw Error(L(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var a=o.alternate;if(a===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return eg(o),e;if(a===r)return eg(o),t;a=a.sibling}throw Error(L(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(L(189))}}if(n.alternate!==r)throw Error(L(190))}if(n.tag!==3)throw Error(L(188));return n.stateNode.current===n?e:t}function bv(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=bv(e),t!==null)return t;e=e.sibling}return null}var Pi=Array.isArray,Ie=f2.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ao={pending:!1,data:null,method:null,action:null},wd=[],ha=-1;function sr(e){return{current:e}}function bt(e){0>ha||(e.current=wd[ha],wd[ha]=null,ha--)}function Ye(e,t){ha++,wd[ha]=e.current,e.current=t}var Jn=sr(null),hl=sr(null),Xr=sr(null),lc=sr(null);function sc(e,t){switch(Ye(Xr,t),Ye(hl,e),Ye(Jn,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?ey(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=ey(e),t=z1(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}bt(Jn),Ye(Jn,t)}function Ua(){bt(Jn),bt(hl),bt(Xr)}function Rd(e){e.memoizedState!==null&&Ye(lc,e);var t=Jn.current,n=z1(t,e.type);t!==n&&(Ye(hl,e),Ye(Jn,n))}function cc(e){hl.current===e&&(bt(Jn),bt(hl)),lc.current===e&&(bt(lc),Ol._currentValue=Ao)}var Td=Object.prototype.hasOwnProperty,om=mt.unstable_scheduleCallback,wf=mt.unstable_cancelCallback,v2=mt.unstable_shouldYield,b2=mt.unstable_requestPaint,er=mt.unstable_now,S2=mt.unstable_getCurrentPriorityLevel,am=mt.unstable_ImmediatePriority,Sv=mt.unstable_UserBlockingPriority,uc=mt.unstable_NormalPriority,x2=mt.unstable_LowPriority,xv=mt.unstable_IdlePriority,C2=mt.log,E2=mt.unstable_setDisableYieldValue,Gl=null,en=null;function w2(e){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(Gl,e,void 0,(e.current.flags&128)===128)}catch{}}function qr(e){if(typeof C2=="function"&&E2(e),en&&typeof en.setStrictMode=="function")try{en.setStrictMode(Gl,e)}catch{}}var tn=Math.clz32?Math.clz32:O2,R2=Math.log,T2=Math.LN2;function O2(e){return e>>>=0,e===0?32:31-(R2(e)/T2|0)|0}var ms=128,hs=4194304;function bo(e){var t=e&42;if(t!==0)return t;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:return e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function fc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=e.warmLanes;e=e.finishedLanes!==0;var l=n&134217727;return l!==0?(n=l&~o,n!==0?r=bo(n):(a&=l,a!==0?r=bo(a):e||(i=l&~i,i!==0&&(r=bo(i))))):(l=n&~o,l!==0?r=bo(l):a!==0?r=bo(a):e||(i=n&~i,i!==0&&(r=bo(i)))),r===0?0:t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===32&&(i&4194176)!==0)?t:r}function A2(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Cv(e,t){return e.errorRecoveryDisabledLanes&t?0:(e=e.pendingLanes&-536870913,e!==0?e:e&536870912?536870912:0)}function Ev(){var e=ms;return ms<<=1,!(ms&4194176)&&(ms=128),e}function wv(){var e=hs;return hs<<=1,!(hs&62914560)&&(hs=4194304),e}function Rf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function M2(e,t,n,r,o,a){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),j2=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ng={},rg={};function $2(e){return Td.call(rg,e)?!0:Td.call(ng,e)?!1:j2.test(e)?rg[e]=!0:(ng[e]=!0,!1)}function Hs(e,t,n){if($2(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function gs(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ur(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function gn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function zv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D2(e){var t=zv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,a.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dc(e){e._valueTracker||(e._valueTracker=D2(e))}function kv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=zv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function pc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var N2=/[\n"\\]/g;function xn(e){return e.replace(N2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ad(e,t,n,r,o,a,i,l){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+gn(t)):e.value!==""+gn(t)&&(e.value=""+gn(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Md(e,i,gn(t)):n!=null?Md(e,i,gn(n)):r!=null&&e.removeAttribute("value"),o==null&&a!=null&&(e.defaultChecked=!!a),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+gn(l):e.removeAttribute("name")}function jv(e,t,n,r,o,a,i,l){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null))return;n=n!=null?""+gn(n):"",t=t!=null?""+gn(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i)}function Md(e,t,n){t==="number"&&pc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ma(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o=Ki),ug=" ",fg=!1;function Hv(e,t){switch(e){case"keyup":return uC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ya=!1;function dC(e,t){switch(e){case"compositionend":return Pv(t);case"keypress":return t.which!==32?null:(fg=!0,ug);case"textInput":return e=t.data,e===ug&&fg?null:e;default:return null}}function pC(e,t){if(ya)return e==="compositionend"||!fm&&Hv(e,t)?(e=Lv(),Is=cm=Fr=null,ya=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gg(n)}}function qv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Fv(e){var t,n;for(e=(n=e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)!=null?n:window,t=pc(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=pc(e.document)}return t}function dm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xC(e,t){var n=Fv(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&qv(t.ownerDocument.documentElement,t)){if(r!==null&&dm(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var o=t.textContent.length,a=Math.min(r.start,o);r=r.end===void 0?a:Math.min(r.end,o),!n.extend&&a>r&&(o=r,r=a,a=o),o=yg(t,a);var i=yg(t,r);o&&i&&(n.rangeCount!==1||n.anchorNode!==o.node||n.anchorOffset!==o.offset||n.focusNode!==i.node||n.focusOffset!==i.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),n.removeAllRanges(),a>r?(n.addRange(e),n.extend(i.node,i.offset)):(e.setEnd(i.node,i.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,va=null,kd=null,Zi=null,jd=!1;function vg(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jd||va==null||va!==pc(r)||(r=va,"selectionStart"in r&&dm(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zi&&bl(Zi,r)||(Zi=r,r=_c(kd,"onSelect"),0>=i,o-=i,yr=1<<32-tn(t)+o|n<O?(E=R,R=null):E=R.sibling;var A=d(m,R,p[O],x);if(A===null){R===null&&(R=E);break}e&&R&&A.alternate===null&&t(m,R),g=a(A,g,O),T===null?w=A:T.sibling=A,T=A,R=E}if(O===p.length)return n(m,R),Te&&So(m,O),w;if(R===null){for(;OO?(E=R,R=null):E=R.sibling;var _=d(m,R,A.value,x);if(_===null){R===null&&(R=E);break}e&&R&&_.alternate===null&&t(m,R),g=a(_,g,O),T===null?w=_:T.sibling=_,T=_,R=E}if(A.done)return n(m,R),Te&&So(m,O),w;if(R===null){for(;!A.done;O++,A=p.next())A=f(m,A.value,x),A!==null&&(g=a(A,g,O),T===null?w=A:T.sibling=A,T=A);return Te&&So(m,O),w}for(R=r(R);!A.done;O++,A=p.next())A=h(R,m,O,A.value,x),A!==null&&(e&&A.alternate!==null&&R.delete(A.key===null?O:A.key),g=a(A,g,O),T===null?w=A:T.sibling=A,T=A);return e&&R.forEach(function(k){return t(m,k)}),Te&&So(m,O),w}function C(m,g,p,x){if(typeof p=="object"&&p!==null&&p.type===ma&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case ps:e:{for(var w=p.key,T=g;T!==null;){if(T.key===w){if(w=p.type,w===ma){if(T.tag===7){n(m,T.sibling),g=o(T,p.props.children),g.return=m,m=g;break e}}else if(T.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ur&&Rg(w)===T.type){n(m,T.sibling),g=o(T,p.props),Ri(m,T,g,p),g.return=m,m=g;break e}n(m,T);break}else t(m,T);T=T.sibling}p.type===ma?(g=zo(p.props.children,m.mode,x,p.key),g.return=m,m=g):(x=Ws(p.type,p.key,p.props,null,m.mode,x),Ri(m,g,x,p),x.return=m,m=x)}return i(m);case Ui:e:{for(T=p.key;g!==null;){if(g.key===T)if(g.tag===4&&g.stateNode.containerInfo===p.containerInfo&&g.stateNode.implementation===p.implementation){n(m,g.sibling),g=o(g,p.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=qf(p,m.mode,x),g.return=m,m=g}return i(m);case Ur:return T=p._init,p=T(p._payload),C(m,g,p,x)}if(Pi(p))return y(m,g,p,x);if(xi(p)){if(T=xi(p),typeof T!="function")throw Error(L(150));return p=T.call(p),v(m,g,p,x)}if(typeof p.then=="function")return C(m,g,bs(p),x);if(p.$$typeof===gr)return C(m,g,xs(m,p),x);Ss(m,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,g!==null&&g.tag===6?(n(m,g.sibling),g=o(g,p),g.return=m,m=g):(n(m,g),g=Gf(p,m.mode,x),g.return=m,m=g),i(m)):n(m,g)}return function(m,g,p,x){try{xl=0;var w=C(m,g,p,x);return za=null,w}catch(R){if(R===Ji)throw R;var T=wn(29,R,null,m.mode);return T.lanes=x,T.return=m,T}finally{}}}var Do=rb(!0),ob=rb(!1),Ia=sr(null),yc=sr(0);function Tg(e,t){e=Tr,Ye(yc,e),Ye(Ia,t),Tr=e|t.baseLanes}function Nd(){Ye(yc,Tr),Ye(Ia,Ia.current)}function ym(){Tr=yc.current,bt(Ia),bt(yc)}var or=sr(null),tr=null;function Pr(e){var t=e.alternate;Ye(pt,pt.current&1),Ye(or,e),tr===null&&(t===null||Ia.current!==null||t.memoizedState!==null)&&(tr=e)}function ab(e){if(e.tag===22){if(Ye(pt,pt.current),Ye(or,e),tr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(tr=e)}}else Ir()}function Ir(){Ye(pt,pt.current),Ye(or,or.current)}function br(e){bt(or),tr===e&&(tr=null),bt(pt)}var pt=sr(0);function vc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var TC=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},OC=mt.unstable_scheduleCallback,AC=mt.unstable_NormalPriority,dt={$$typeof:gr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vm(){return{controller:new TC,data:new Map,refCount:0}}function Yl(e){e.refCount--,e.refCount===0&&OC(AC,function(){e.controller.abort()})}var tl=null,Bd=0,Va=0,ka=null;function MC(e,t){if(tl===null){var n=tl=[];Bd=0,Va=Vm(),ka={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Bd++,t.then(Og,Og),t}function Og(){if(tl!==null&&--Bd===0){ka!==null&&(ka.status="fulfilled");var e=tl;tl=null,Va=0,ka=null;for(var t=0;ta?a:8;var i=fe.T,l={};fe.T=l,zm(e,!1,t,n);try{var s=o(),c=fe.S;if(c!==null&&c(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=_C(s,r);Da(e,t,u)}else Da(e,t,r)}catch(f){Da(e,t,{then:function(){},status:"rejected",reason:f})}finally{Ie.p=a,fe.T=i}}function DC(){}function Hd(e,t,n,r){if(e.tag!==5)throw Error(L(476));var o=kb(e).queue;zb(e,o,t,Ao,n===null?DC:function(){return jb(e),n(r)})}function kb(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ao,baseState:Ao,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:Ao},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function jb(e){var t=kb(e).next.queue;Da(e,t,{})}function _m(){return kt(Ol)}function $b(){return ft().memoizedState}function Db(){return ft().memoizedState}function NC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xr();e=Kr(n);var r=Qr(t,e,n);r!==null&&(Bt(r,t,n),rl(r,t,n)),t={cache:vm()},e.payload=t;return}t=t.return}}function BC(e,t,n){var r=xr();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},du(e)?Nb(t,n):(n=mm(e,t,n,r),n!==null&&(Bt(n,e,r),Bb(n,t,r)))}function Da(e,t,n){var r=xr(),o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(du(e))Nb(t,o);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,rn(l,i)){su(e,t,o,0),je===null&&lu();return}}catch{}finally{}n=mm(e,t,o,r),n!==null&&(Bt(n,e,r),Bb(n,t,r))}}function zm(e,t,n,r){if(r={lane:2,revertLane:Vm(),action:r,hasEagerState:!1,eagerState:null,next:null},du(e)){if(t)throw Error(L(479))}else t=mm(e,n,r,2),t!==null&&Bt(t,e,2)}function du(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function Nb(e,t){ja=bc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bb(e,t,n){if(n&4194176){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Tv(e,n)}}var ar={readContext:kt,use:uu,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt};ar.useCacheRefresh=rt;ar.useMemoCache=rt;ar.useHostTransitionStatus=rt;ar.useFormState=rt;ar.useActionState=rt;ar.useOptimistic=rt;var Wo={readContext:kt,use:uu,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:zg,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Fs(4194308,4,Tb.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fs(4194308,4,e,t)},useInsertionEffect:function(e,t){Fs(4,2,e,t)},useMemo:function(e,t){var n=Ht();t=t===void 0?null:t;var r=e();return No&&(qr(!0),e(),qr(!1)),n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ht();if(n!==void 0){var o=n(t);No&&(qr(!0),n(t),qr(!1))}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=BC.bind(null,pe,e),[r.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=Ld(e);var t=e.queue,n=Da.bind(null,pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Am,useDeferredValue:function(e,t){var n=Ht();return Mm(n,e,t)},useTransition:function(){var e=Ld(!1);return e=zb.bind(null,pe,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=pe,o=Ht();if(Te){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),je===null)throw Error(L(349));Ee&60||ub(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,zg(db.bind(null,r,a,e),[e]),r.flags|=2048,Ga(9,fb.bind(null,r,a,n,t),{destroy:void 0},null),n},useId:function(){var e=Ht(),t=je.identifierPrefix;if(Te){var n=vr,r=yr;n=(r&~(1<<32-tn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Sc++,0 title"))),Mt(a,r,n),a[zt]=e,yt(a),r=a;break e;case"link":var i=iy("link","href",o).get(r+(n.href||""));if(i){for(var l=0;l<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?o.createElement(n,{is:r.is}):o.createElement(n)}}e[zt]=t,e[qt]=r;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(Mt(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&pr(t)}}return Xe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&pr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(L(166));if(e=Xr.current,wi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,o=Dt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[zt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||_1(e.nodeValue,n)),e||$o(t)}else e=zc(e).createTextNode(r),e[zt]=t,t.stateNode=e}return Xe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=wi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(L(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(L(317));o[zt]=t}else Fl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),o=!1}else Dn!==null&&(tp(Dn),Dn=null),o=!0;if(!o)return t.flags&256?(br(t),t):(br(t),null)}if(br(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool);var a=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==o&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Cs(t,t.updateQueue),Xe(t),null;case 4:return Ua(),e===null&&Gm(t.stateNode.containerInfo),Xe(t),null;case 10:return Sr(t.type),Xe(t),null;case 19:if(bt(pt),o=t.memoizedState,o===null)return Xe(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Oi(o,!1);else{if(nt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=vc(e),a!==null){for(t.flags|=128,Oi(o,!1),e=a.updateQueue,t.updateQueue=e,Cs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)p1(n,e),n=n.sibling;return Ye(pt,pt.current&1|2),t.child}e=e.sibling}o.tail!==null&&er()>Tc&&(t.flags|=128,r=!0,Oi(o,!1),t.lanes=4194304)}else{if(!r)if(e=vc(a),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Cs(t,e),Oi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Te)return Xe(t),null}else 2*er()-o.renderingStartTime>Tc&&n!==536870912&&(t.flags|=128,r=!0,Oi(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(e=o.last,e!==null?e.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=er(),t.sibling=null,e=pt.current,Ye(pt,r?e&1|2:e&1),t):(Xe(t),null);case 22:case 23:return br(t),ym(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&Cs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&bt(_o),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sr(dt),Xe(t),null;case 25:return null}throw Error(L(156,t.tag))}function GC(e,t){switch(gm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sr(dt),Ua(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return cc(t),null;case 13:if(br(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Fl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return bt(pt),null;case 4:return Ua(),null;case 10:return Sr(t.type),null;case 22:case 23:return br(t),ym(),e!==null&&bt(_o),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sr(dt),null;case 25:return null;default:return null}}function h1(e,t){switch(gm(t),t.tag){case 3:Sr(dt),Ua();break;case 26:case 27:case 5:cc(t);break;case 4:Ua();break;case 13:br(t);break;case 19:bt(pt);break;case 10:Sr(t.type);break;case 22:case 23:br(t),ym(),e!==null&&bt(_o);break;case 24:Sr(dt)}}var qC={getCacheForType:function(e){var t=kt(dt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},FC=typeof WeakMap=="function"?WeakMap:Map,Ae=0,je=null,be=null,Ee=0,Fe=0,mn=null,bn=!1,Lm=!1,Tr=0,nt=0,Or=0,Ar=0,Um=0,Pt=0,Uo=0,ll=null,Ln=null,qa=!1,Rc=!1,Hm=0,Tc=1/0,El=null,Jr=null,Es=!1,wo=null,sl=0,Zd=0,Jd=null,cl=0,ep=null;function xr(){if(Ae&2&&Ee!==0)return Ee&-Ee;if(fe.T!==null){var e=Va;return e!==0?e:Vm()}return Av()}function g1(){Pt===0&&(Pt=!(Ee&536870912)||Te?Ev():536870912);var e=or.current;return e!==null&&(e.flags|=32),Pt}function Bt(e,t,n){(e===je&&Fe===2||e.cancelPendingCommit!==null)&&(Ko(e,0),Zn(e,Ee,Pt,bn)),Ql(e,n),(!(Ae&2)||e!==je)&&(e===je&&(!(Ae&2)&&(Ar|=n),nt===4&&Zn(e,Ee,Pt,bn)),It(e))}function y1(e,t){if(Ae&6)throw Error(L(327));var n=e.callbackNode;if(Na()&&e.callbackNode!==n)return null;var r=fc(e,e===je?Ee:0);if(r===0)return null;var o=(r&60)===0&&(r&e.expiredLanes)===0&&!t;if(t=o?XC(e,r):Oc(e,r),t!==0){var a=o;do{if(t===6)Zn(e,r,0,bn);else{if(o=e.current.alternate,a&&!YC(o)){t=Oc(e,r),a=!1;continue}if(t===2){a=r;var i=Cv(e,a);if(i!==0&&(r=i,t=v1(e,a,i),a=!1,t!==2))continue}if(t===1){Ko(e,0),Zn(e,r,0,bn);break}e:{switch(a=e,t){case 0:case 1:throw Error(L(345));case 4:if((r&4194176)===r){Zn(a,r,Pt,bn);break e}break;case 2:Ln=null;break;case 3:case 5:break;default:throw Error(L(329))}if(a.finishedWork=o,a.finishedLanes=r,(r&62914560)===r&&(t=Hm+300-er(),10n?32:n,fe.T=null,wo===null)var a=!1;else{n=Jd,Jd=null;var i=wo,l=sl;if(wo=null,sl=0,Ae&6)throw Error(L(331));var s=Ae;if(Ae|=4,f1(i.current),s1(i,i.current,l,n),Ae=s,Zl(0,!1),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(Gl,i)}catch{}a=!0}return a}finally{Ie.p=o,fe.T=r,R1(e,t)}}return!1}function Xg(e,t,n){t=Cn(n,t),t=Id(e.stateNode,t,2),e=Qr(e,t,2),e!==null&&(Ql(e,2),It(e))}function Be(e,t,n){if(e.tag===3)Xg(e,e,n);else for(;t!==null;){if(t.tag===3){Xg(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Jr===null||!Jr.has(r))){e=Cn(n,e),n=Pb(2),r=Qr(t,n,2),r!==null&&(Ib(n,r,t,e),Ql(r,2),It(r));break}}t=t.return}}function Ff(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new FC;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(Lm=!0,o.add(n),e=ZC.bind(null,e,t,n),t.then(e,e))}function ZC(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ae&2?qa=!0:Ae&4&&(Rc=!0),Im(),je===e&&(Ee&n)===n&&(nt===4||nt===3&&(Ee&62914560)===Ee&&300>er()-Hm?!(Ae&2)&&Ko(e,0):Um|=n,Uo===Ee&&(Uo=0)),It(e)}function T1(e,t){t===0&&(t=wv()),e=oo(e,t),e!==null&&(Ql(e,t),It(e))}function JC(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T1(e,n)}function eE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(L(314))}r!==null&&r.delete(t),T1(e,n)}function Im(){if(50"u"?null:document;function $1(e,t,n){var r=ci;if(r&&typeof t=="string"&&t){var o=xn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),ry.has(o)||(ry.add(o),e={rel:e,crossOrigin:n,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),Mt(t,"link",e),yt(t),r.head.appendChild(t)))}}function bE(e){kr.D(e),$1("dns-prefetch",e,null)}function SE(e,t){kr.C(e,t),$1("preconnect",e,t)}function xE(e,t,n){kr.L(e,t,n);var r=ci;if(r&&e&&t){var o='link[rel="preload"][as="'+xn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+xn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+xn(n.imageSizes)+'"]')):o+='[href="'+xn(e)+'"]';var a=o;switch(t){case"style":a=Fa(e);break;case"script":a=ui(e)}On.has(a)||(e=Ve({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),On.set(a,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(Jl(a))||t==="script"&&r.querySelector(es(a))||(t=r.createElement("link"),Mt(t,"link",e),yt(t),r.head.appendChild(t)))}}function CE(e,t){kr.m(e,t);var n=ci;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+xn(r)+'"][href="'+xn(e)+'"]',a=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=ui(e)}if(!On.has(a)&&(e=Ve({rel:"modulepreload",href:e},t),On.set(a,e),n.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(es(a)))return}r=n.createElement("link"),Mt(r,"link",e),yt(r),n.head.appendChild(r)}}}function EE(e,t,n){kr.S(e,t,n);var r=ci;if(r&&e){var o=Aa(r).hoistableStyles,a=Fa(e);t=t||"default";var i=o.get(a);if(!i){var l={loading:0,preload:null};if(i=r.querySelector(Jl(a)))l.loading=5;else{e=Ve({rel:"stylesheet",href:e,"data-precedence":t},n),(n=On.get(a))&&qm(e,n);var s=i=r.createElement("link");yt(s),Mt(s,"link",e),s._p=new Promise(function(c,u){s.onload=c,s.onerror=u}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Xs(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:l},o.set(a,i)}}}function wE(e,t){kr.X(e,t);var n=ci;if(n&&e){var r=Aa(n).hoistableScripts,o=ui(e),a=r.get(o);a||(a=n.querySelector(es(o)),a||(e=Ve({src:e,async:!0},t),(t=On.get(o))&&Fm(e,t),a=n.createElement("script"),yt(a),Mt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}}function RE(e,t){kr.M(e,t);var n=ci;if(n&&e){var r=Aa(n).hoistableScripts,o=ui(e),a=r.get(o);a||(a=n.querySelector(es(o)),a||(e=Ve({src:e,async:!0,type:"module"},t),(t=On.get(o))&&Fm(e,t),a=n.createElement("script"),yt(a),Mt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(o,a))}}function oy(e,t,n,r){var o=(o=Xr.current)?kc(o):null;if(!o)throw Error(L(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Fa(n.href),n=Aa(o).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Fa(n.href);var a=Aa(o).hoistableStyles,i=a.get(e);if(i||(o=o.ownerDocument||o,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,i),(a=o.querySelector(Jl(e)))&&!a._p&&(i.instance=a,i.state.loading=5),On.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},On.set(e,n),a||TE(o,e,n,i.state))),t&&r===null)throw Error(L(528,""));return i}if(t&&r!==null)throw Error(L(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ui(n),n=Aa(o).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(L(444,e))}}function Fa(e){return'href="'+xn(e)+'"'}function Jl(e){return'link[rel="stylesheet"]['+e+"]"}function D1(e){return Ve({},e,{"data-precedence":e.precedence,precedence:null})}function TE(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Mt(t,"link",n),yt(t),e.head.appendChild(t))}function ui(e){return'[src="'+xn(e)+'"]'}function es(e){return"script[async]"+e}function ay(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+xn(n.href)+'"]');if(r)return t.instance=r,yt(r),r;var o=Ve({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),yt(r),Mt(r,"style",o),Xs(r,n.precedence,e),t.instance=r;case"stylesheet":o=Fa(n.href);var a=e.querySelector(Jl(o));if(a)return t.state.loading|=4,t.instance=a,yt(a),a;r=D1(n),(o=On.get(o))&&qm(r,o),a=(e.ownerDocument||e).createElement("link"),yt(a);var i=a;return i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),Mt(a,"link",r),t.state.loading|=4,Xs(a,n.precedence,e),t.instance=a;case"script":return a=ui(n.src),(o=e.querySelector(es(a)))?(t.instance=o,yt(o),o):(r=n,(o=On.get(a))&&(r=Ve({},n),Fm(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),yt(o),Mt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(L(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Xs(r,n.precedence,e));return t.instance}function Xs(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,a=o,i=0;i title"):null)}function OE(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function N1(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var Tl=null;function AE(){}function ME(e,t,n){if(Tl===null)throw Error(L(475));var r=Tl;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var o=Fa(n.href),a=e.querySelector(Jl(o));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=jc.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,yt(a);return}a=e.ownerDocument||e,n=D1(n),(o=On.get(o))&&qm(n,o),a=a.createElement("link"),yt(a);var i=a;i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),Mt(a,"link",n),t.instance=a}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=jc.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function _E(){if(Tl===null)throw Error(L(475));var e=Tl;return e.stylesheets&&e.count===0&&up(e,e.stylesheets),0"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(V1)}catch(e){console.error(e)}}V1(),lv.exports=nu;var UE=lv.exports;const HE=Xp(UE);var G1={exports:{}},q1={};/** - * @license React - * react-compiler-runtime.production.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 PE=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;q1.c=function(e){return PE.H.useMemoCache(e)};G1.exports=q1;var We=G1.exports;const py=e=>{let t;const n=new Set,r=(c,u)=>{const f=typeof c=="function"?c(t):c;if(!Object.is(f,t)){const d=t;t=u??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(h=>h(t,d))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>s,subscribe:c=>(n.add(c),()=>n.delete(c))},s=t=e(r,o,l);return l},IE=e=>e?py(e):py,VE=e=>e;function GE(e,t=VE){const n=En.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return En.useDebugValue(n),n}const my=e=>{const t=IE(e),n=r=>GE(t,r);return Object.assign(n,t),n},F1=e=>e?my(e):my;var Y1=Symbol.for("immer-nothing"),hy=Symbol.for("immer-draftable"),on=Symbol.for("immer-state");function Nn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ya=Object.getPrototypeOf;function Wa(e){return!!e&&!!e[on]}function Ho(e){var t;return e?W1(e)||Array.isArray(e)||!!e[hy]||!!((t=e.constructor)!=null&&t[hy])||Su(e)||xu(e):!1}var qE=Object.prototype.constructor.toString();function W1(e){if(!e||typeof e!="object")return!1;const t=Ya(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===qE}function Bc(e,t){bu(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function bu(e){const t=e[on];return t?t.type_:Array.isArray(e)?1:Su(e)?2:xu(e)?3:0}function pp(e,t){return bu(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function X1(e,t,n){const r=bu(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function FE(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Su(e){return e instanceof Map}function xu(e){return e instanceof Set}function xo(e){return e.copy_||e.base_}function mp(e,t){if(Su(e))return new Map(e);if(xu(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=W1(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[on];let o=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=YE),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Qm(r,!0))),e}function YE(){Nn(2)}function Cu(e){return Object.isFrozen(e)}var WE={};function Po(e){const t=WE[e];return t||Nn(0,e),t}var zl;function K1(){return zl}function XE(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function gy(e,t){t&&(Po("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function hp(e){gp(e),e.drafts_.forEach(KE),e.drafts_=null}function gp(e){e===zl&&(zl=e.parent_)}function yy(e){return zl=XE(zl,e)}function KE(e){const t=e[on];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function vy(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[on].modified_&&(hp(t),Nn(4)),Ho(e)&&(e=Lc(t,e),t.parent_||Uc(t,e)),t.patches_&&Po("Patches").generateReplacementPatches_(n[on].base_,e,t.patches_,t.inversePatches_)):e=Lc(t,n,[]),hp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Y1?e:void 0}function Lc(e,t,n){if(Cu(t))return t;const r=t[on];if(!r)return Bc(t,(o,a)=>by(e,r,t,o,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Uc(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let a=o,i=!1;r.type_===3&&(a=new Set(o),o.clear(),i=!0),Bc(a,(l,s)=>by(e,r,o,l,s,n,i)),Uc(e,o,!1),n&&e.patches_&&Po("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function by(e,t,n,r,o,a,i){if(Wa(o)){const l=a&&t&&t.type_!==3&&!pp(t.assigned_,r)?a.concat(r):void 0,s=Lc(e,o,l);if(X1(n,r,s),Wa(s))e.canAutoFreeze_=!1;else return}else i&&n.add(o);if(Ho(o)&&!Cu(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Lc(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Uc(e,o)}}function Uc(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Qm(t,n)}function QE(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:K1(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,a=Zm;n&&(o=[r],a=kl);const{revoke:i,proxy:l}=Proxy.revocable(o,a);return r.draft_=l,r.revoke_=i,l}var Zm={get(e,t){if(t===on)return e;const n=xo(e);if(!pp(n,t))return ZE(e,n,t);const r=n[t];return e.finalized_||!Ho(r)?r:r===ed(e.base_,t)?(td(e),e.copy_[t]=vp(r,e)):r},has(e,t){return t in xo(e)},ownKeys(e){return Reflect.ownKeys(xo(e))},set(e,t,n){const r=Q1(xo(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=ed(xo(e),t),a=o==null?void 0:o[on];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(FE(n,o)&&(n!==void 0||pp(e.base_,t)))return!0;td(e),yp(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return ed(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,td(e),yp(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=xo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Nn(11)},getPrototypeOf(e){return Ya(e.base_)},setPrototypeOf(){Nn(12)}},kl={};Bc(Zm,(e,t)=>{kl[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});kl.deleteProperty=function(e,t){return kl.set.call(this,e,t,void 0)};kl.set=function(e,t,n){return Zm.set.call(this,e[0],t,n,e[0])};function ed(e,t){const n=e[on];return(n?xo(n):e)[t]}function ZE(e,t,n){var o;const r=Q1(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function Q1(e,t){if(!(t in e))return;let n=Ya(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ya(n)}}function yp(e){e.modified_||(e.modified_=!0,e.parent_&&yp(e.parent_))}function td(e){e.copy_||(e.copy_=mp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var JE=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const i=this;return function(s=a,...c){return i.produce(s,u=>n.call(this,u,...c))}}typeof n!="function"&&Nn(6),r!==void 0&&typeof r!="function"&&Nn(7);let o;if(Ho(t)){const a=yy(this),i=vp(t,void 0);let l=!0;try{o=n(i),l=!1}finally{l?hp(a):gp(a)}return gy(a,r),vy(o,a)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===Y1&&(o=void 0),this.autoFreeze_&&Qm(o,!0),r){const a=[],i=[];Po("Patches").generateReplacementPatches_(t,o,a,i),r(a,i)}return o}else Nn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(i,...l)=>this.produceWithPatches(i,s=>t(s,...l));let r,o;return[this.produce(t,n,(i,l)=>{r=i,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Ho(e)||Nn(8),Wa(e)&&(e=ew(e));const t=yy(this),n=vp(e,void 0);return n[on].isManual_=!0,gp(t),n}finishDraft(e,t){const n=e&&e[on];(!n||!n.isManual_)&&Nn(9);const{scope_:r}=n;return gy(r,t),vy(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Po("Patches").applyPatches_;return Wa(e)?r(e,t):this.produce(e,o=>r(o,t))}};function vp(e,t){const n=Su(e)?Po("MapSet").proxyMap_(e,t):xu(e)?Po("MapSet").proxySet_(e,t):QE(e,t);return(t?t.scope_:K1()).drafts_.push(n),n}function ew(e){return Wa(e)||Nn(10,e),Z1(e)}function Z1(e){if(!Ho(e)||Cu(e))return e;const t=e[on];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=mp(e,t.scope_.immer_.useStrictShallowCopy_)}else n=mp(e,!0);return Bc(n,(r,o)=>{X1(n,r,Z1(o))}),t&&(t.finalized_=!1),n}var an=new JE,tw=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseStrictShallowCopy.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);const nw=e=>(t,n,r)=>(r.setState=(o,a,...i)=>{const l=typeof o=="function"?tw(o):o;return t(l,a,...i)},e(r.setState,n,r)),Sy=nw,xy={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},bp=new Map,As=e=>{const t=bp.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},rw=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=bp.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return bp.set(n.name,o),{type:"tracked",store:e,...o}},ow=(e,t={})=>(n,r,o)=>{const{enabled:a,anonymousActionType:i,store:l,...s}=t;let c;try{c=(a??(xy?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return e(n,r,o);const{connection:u,...f}=rw(l,c,s);let d=!0;o.setState=(v,C,m)=>{const g=n(v,C);if(!d)return g;const p=m===void 0?{type:i||"anonymous"}:typeof m=="string"?{type:m}:m;return l===void 0?(u==null||u.send(p,r()),g):(u==null||u.send({...p,type:`${l}/${p.type}`},{...As(s.name),[l]:o.getState()}),g)};const h=(...v)=>{const C=d;d=!1,n(...v),d=C},y=e(o.setState,r,o);if(f.type==="untracked"?u==null||u.init(y):(f.stores[f.store]=o,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([v,C])=>[v,v===f.store?y:C.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let v=!1;const C=o.dispatch;o.dispatch=(...m)=>{(xy?"production":void 0)!=="production"&&m[0].type==="__setState"&&!v&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),v=!0),C(...m)}}return u.subscribe(v=>{var C;switch(v.type){case"ACTION":if(typeof v.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return nd(v.payload,m=>{if(m.type==="__setState"){if(l===void 0){h(m.state);return}Object.keys(m.state).length!==1&&console.error(` - [zustand devtools middleware] Unsupported __setState action format. - When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), - and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const g=m.state[l];if(g==null)return;JSON.stringify(o.getState())!==JSON.stringify(g)&&h(g);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(m)});case"DISPATCH":switch(v.payload.type){case"RESET":return h(y),l===void 0?u==null?void 0:u.init(o.getState()):u==null?void 0:u.init(As(s.name));case"COMMIT":if(l===void 0){u==null||u.init(o.getState());return}return u==null?void 0:u.init(As(s.name));case"ROLLBACK":return nd(v.state,m=>{if(l===void 0){h(m),u==null||u.init(o.getState());return}h(m[l]),u==null||u.init(As(s.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return nd(v.state,m=>{if(l===void 0){h(m);return}JSON.stringify(o.getState())!==JSON.stringify(m[l])&&h(m[l])});case"IMPORT_STATE":{const{nextLiftedState:m}=v.payload,g=(C=m.computedStates.slice(-1)[0])==null?void 0:C.state;if(!g)return;h(l===void 0?g:g[l]),u==null||u.send(null,m);return}case"PAUSE_RECORDING":return d=!d}return}}),y},aw=ow,nd=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function iw(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var a;const i=s=>s===null?null:JSON.parse(s,void 0),l=(a=n.getItem(o))!=null?a:null;return l instanceof Promise?l.then(i):i(l)},setItem:(o,a)=>n.setItem(o,JSON.stringify(a,void 0)),removeItem:o=>n.removeItem(o)}}const Sp=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Sp(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Sp(r)(n)}}}},lw=(e,t)=>(n,r,o)=>{let a={storage:iw(()=>localStorage),partialize:v=>v,version:0,merge:(v,C)=>({...C,...v}),...t},i=!1;const l=new Set,s=new Set;let c=a.storage;if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...v)},r,o);const u=()=>{const v=a.partialize({...r()});return c.setItem(a.name,{state:v,version:a.version})},f=o.setState;o.setState=(v,C)=>{f(v,C),u()};const d=e((...v)=>{n(...v),u()},r,o);o.getInitialState=()=>d;let h;const y=()=>{var v,C;if(!c)return;i=!1,l.forEach(g=>{var p;return g((p=r())!=null?p:d)});const m=((C=a.onRehydrateStorage)==null?void 0:C.call(a,(v=r())!=null?v:d))||void 0;return Sp(c.getItem.bind(c))(a.name).then(g=>{if(g)if(typeof g.version=="number"&&g.version!==a.version){if(a.migrate)return[!0,a.migrate(g.state,g.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,g.state];return[!1,void 0]}).then(g=>{var p;const[x,w]=g;if(h=a.merge(w,(p=r())!=null?p:d),n(h,!0),x)return u()}).then(()=>{m==null||m(h,void 0),h=r(),i=!0,s.forEach(g=>g(h))}).catch(g=>{m==null||m(void 0,g)})};return o.persist={setOptions:v=>{a={...a,...v},v.storage&&(c=v.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>y(),hasHydrated:()=>i,onHydrate:v=>(l.add(v),()=>{l.delete(v)}),onFinishHydration:v=>(s.add(v),()=>{s.delete(v)})},a.skipHydration||y(),h||d},sw=lw,ts=(e,t,n=!1)=>{const r=n?sw(Sy(t),e):Sy(t);return F1(aw(r,{name:e}))},J1=(e,t)=>ts(e,t,!0),cw="ws",Cy=500,xp=ts("socket",(e,t)=>({socket:null,status:"disconnected",error:null,graphData:[],infoMessages:[],reconnectTimer:null,intentionalDisconnect:!1,setSocket:n=>e({socket:n}),connectSocket:()=>{const{socket:n,status:r,reconnectTimer:o}=t();if(o&&clearTimeout(o),n||r==="connecting"||r==="connected")return;e({status:"connecting",error:null,intentionalDisconnect:!1});const a=new WebSocket(cw);a.binaryType="arraybuffer",a.onopen=()=>{console.log("WebSocket connected"),e({socket:a,status:"connected",error:null})},a.onerror=i=>{t().intentionalDisconnect||(console.error("WebSocket error:",i),e({status:"disconnected",error:"Connection error",socket:null}),t().setReconnectTimer(Cy))},a.onclose=i=>{t().intentionalDisconnect?console.log("WebSocket closed intentionally"):(console.log("WebSocket closed unexpectedly:",i.reason),e({status:"disconnected",error:null,socket:null}),t().setReconnectTimer(Cy))},a.onmessage=i=>{console.log("Received message from server:",i.data)},e({socket:a})},disconnectSocket:()=>{const{socket:n,reconnectTimer:r}=t();if(e({intentionalDisconnect:!0}),n)try{n.close()}catch(o){console.warning("Error closing socket:",o)}r&&clearTimeout(r),e({socket:null,status:"disconnected",error:null,reconnectTimer:null,intentionalDisconnect:!1})},setReconnectTimer:n=>{const r=setTimeout(()=>{e({intentionalDisconnect:!1}),t().connectSocket()},n);e({reconnectTimer:r})},sendMessage:n=>{const{socket:r,status:o}=t();r&&o==="connected"?r.send(n):console.error("Cannot send message: WebSocket not connected")},clearMessages:e({messages:[]})})),uw=100,fw=15e3,fi=ts("webview",e=>({isWebviewReady:!1,isWebView:!1,statusMessage:"Checking for PyWebview...",isMaximized:!1,setIsWebviewReady:t=>e({isWebviewReady:t}),setStatusMessage:t=>e({statusMessage:t}),setIsMaximized:t=>e({isMaximized:t}),initPyWebView:()=>{if(navigator.userAgent.includes("PyNmWebView")){e({isWebView:!0,statusMessage:"Detected PyWebView, waiting for API..."});const t=Date.now(),n=()=>{var r;(r=window.pywebview)!=null&&r.api?e({isWebviewReady:!0,statusMessage:"Found PyWebView API"}):Date.now()-t>fw?e({statusMessage:"PyWebView initialization timed out",isWebviewReady:!1}):setTimeout(n,uw)};n()}else e({isWebView:!1,statusMessage:"Running in a regular browser",isWebviewReady:!1})}})),dw=()=>fi(pw);function pw(e){return e.initPyWebView}const mw=3e3,hw=1e3,gw=100,yw=async e=>{try{if(!(await fetch("/api/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok)throw new Error("Failed to update settings");return{success:!0}}catch(t){return console.error("Error updating settings:",t),{success:!1,error:t}}},Cp=ts("settings",(e,t)=>({settings:null,isLoading:!1,error:null,retryCount:0,setSettings:n=>e({settings:n}),fetchSettingsWithDelay:()=>{e({isLoading:!0,error:null}),setTimeout(()=>{t().fetchSettings()},mw)},fetchSettings:async()=>{try{console.log("Fetching settings...");const n=await fetch("/api/settings");if(!n.ok)throw new Error("Failed to fetch settings");const r=await n.json();e({settings:r,retryCount:0})}catch(n){if(console.log("Error fetching settings:",n),e(r=>({error:n.message,retryCount:r.retryCount+1})),t().retryCountsetTimeout(r,hw)),t().fetchSettings();console.error("Error fetching settings after all retries:",n)}},resetRetryCount:()=>e({retryCount:0}),updateSettings:async n=>{const r=t().settings;e(a=>{n(a.settings)});const o=t().settings;try{const a=await yw(o);return a.success||e({settings:r}),a}catch(a){throw e({settings:r}),a}}})),vw=()=>Cp(bw);function bw(e){return e.fetchSettingsWithDelay}const rd=J1("ui",(e,t)=>({activeDrawer:null,toggleDrawer:n=>e(r=>({activeDrawer:r.activeDrawer===n?null:n})),isDrawerOpen:n=>t().activeDrawer===n,closeAllDrawers:()=>{e({activeDrawer:null})},accordionStates:{},toggleAccordionState:n=>e(r=>{r.accordionStates[n]=!r.accordionStates[n]}),initAccordionState:(n,r)=>e(o=>{o.accordionStates[n]===void 0&&(o.accordionStates[n]=r)})})),eS=ts("appInfo",e=>({version:"",website:"",authors:[],maintainers:[],repository:"",documentation:"",license:"",launchMode:"",fetchAppInfo:async()=>{try{const n=await(await fetch("/api/app-info")).json();e(n)}catch(t){console.error("Failed to fetch app info:",t)}}})),Sw=()=>eS(xw);function xw(e){return e.fetchAppInfo}const Ep=Object.freeze({SOURCE_SELECTION:Symbol("SOURCE_SELECTION"),CHANNEL_SELECTION:Symbol("CHANNEL_SELECTION"),SETTINGS_CONFIGURATION:Symbol("SETTINGS_CONFIGURATION"),VISUALIZATION:Symbol("VISUALIZATION")}),Ke=J1("session",(e,t)=>({syncStatus:"synced",syncError:null,currentStage:Ep.SOURCE_SELECTION,streamSetupMessage:null,isStreamSetupCorrect:!1,getWorkflowStage:()=>t().currentStage,setWorkflowStage:n=>{Object.values(Ep).includes(n)?e({currentStage:n}):console.error(`Invalid workflow stage: ${n}`)},sourceType:null,isSourceValid:!1,fileSource:{},lslSource:{selectedStream:null,availableStreams:[]},streamParameters:{samplingRate:1e3,lineNoise:50,samplingRateFeatures:10,allValid:!1},setSourceType:n=>e({sourceType:n}),updateStreamParameter:(n,r)=>e(o=>{o.streamParameters[n]=r}),setFileSource:n=>{e({fileSource:n,isSourceValid:!0})},fetchLSLStreams:async()=>{const n=await fetch("/api/LSL-streams");if(!n.ok)throw e({lslSource:{selectedStream:null,availableStreams:[]}}),new Error(`HTTP error! status: ${n.status}`);const o=(await n.json()).message;e({lslSource:{availableStreams:o}})},selectLSLStream:async n=>{e(r=>{r.lslSource.selectedStream=r.lslSource.availableStreams[n],r.streamParameters.samplingRate=r.lslSource.selectedStream.sfreq}),t().checkStreamParameters()},checkStreamParameters:()=>{const{samplingRate:n,lineNoise:r,samplingRateFeatures:o}=t();e({areParametersValid:n&&r&&o})},initializeOfflineStream:async()=>{try{const n=await fetch("/api/setup-Offline-stream",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({file_path:t().fileSource.path,sampling_rate_features:t().streamParameters.samplingRateFeatures,line_noise:t().streamParameters.lineNoise})});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const r=await n.json();e({streamSetupMessage:r.message,isStreamSetupCorrect:!0}),t().fetchChannels()}catch(n){throw console.error("Error initializing stream:",n),e({streamSetupMessage:`Error: ${n.message}`,isStreamSetupCorrect:!1}),n}},initializeLSLStream:async()=>{const n=t().lslSource,r=t().streamParameters,o=await fetch("/api/setup-LSL-stream",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({stream_name:n.availableStreams[0].name,sampling_rate_features:r.samplingRate,line_noise:r.lineNoise})});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);e({sourceType:"lsl",isSourceValid:!0}),t().fetchChannels()},channels:[],updateChannel:(n,r,o)=>e(a=>{a.channels[n][r]=o}),fetchChannels:async()=>{try{const n=await fetch("/api/channels");if(!n.ok)throw new Error("Network response was not ok");const r=await n.json();if("channels"in r)e({channels:r.channels});else throw new Error("Invalid channels response")}catch(n){console.error("Error fetching channels:",n)}},uploadChannels:async()=>{try{console.log("Data being sent to the backend:",JSON.stringify({channels:t().channels}));const n=await fetch("/api/channels",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({channels:t().channels})});if(!n.ok)throw new Error(`Failed to update channels: ${await n.text()}`);const r=await n.json();console.log("Update successful:",r)}catch(n){console.error("Error updating channels:",n)}},canStartAnalysis:()=>{const{isSourceValid:n,selectedChannels:r,analysisParams:o}=t();return n&&r.length>0&&Object.keys(o).length>0},resetSession:()=>t().setStateAndSync({sourceType:null,isSourceValid:!1,fileSource:{filePath:""},lslSource:{streamName:""},selectedChannels:[],analysisParams:{},results:null,isSessionActive:!1})}));F1(e=>({options:[{id:1,name:"raw_resampling"}],setOptions:t=>e({options:t}),addOption:t=>e(n=>n.options.some(r=>r.id===t.id)?{}:{options:[...n.options,t]}),removeOption:t=>e(n=>({options:n.options.filter(r=>r.id!==t)}))}));/** - * @remix-run/router v1.19.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function jl(){return jl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function tS(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ew(){return Math.random().toString(36).substr(2,8)}function wy(e,t){return{usr:e.state,key:e.key,idx:t}}function wp(e,t,n,r){return n===void 0&&(n=null),jl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?di(t):t,{state:n,key:t&&t.key||r||Ew()})}function Hc(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function di(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ww(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,l=Yr.Pop,s=null,c=u();c==null&&(c=0,i.replaceState(jl({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function f(){l=Yr.Pop;let C=u(),m=C==null?null:C-c;c=C,s&&s({action:l,location:v.location,delta:m})}function d(C,m){l=Yr.Push;let g=wp(v.location,C,m);c=u()+1;let p=wy(g,c),x=v.createHref(g);try{i.pushState(p,"",x)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(x)}a&&s&&s({action:l,location:v.location,delta:1})}function h(C,m){l=Yr.Replace;let g=wp(v.location,C,m);c=u();let p=wy(g,c),x=v.createHref(g);i.replaceState(p,"",x),a&&s&&s({action:l,location:v.location,delta:0})}function y(C){let m=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof C=="string"?C:Hc(C);return g=g.replace(/ $/,"%20"),at(m,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,m)}let v={get action(){return l},get location(){return e(o,i)},listen(C){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(Ey,f),s=C,()=>{o.removeEventListener(Ey,f),s=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let m=y(C);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(C){return i.go(C)}};return v}var Ry;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ry||(Ry={}));function Rw(e,t,n){return n===void 0&&(n="/"),Tw(e,t,n,!1)}function Tw(e,t,n,r){let o=typeof t=="string"?di(t):t,a=Jm(o.pathname||"/",n);if(a==null)return null;let i=nS(e);Ow(i);let l=null;for(let s=0;l==null&&s{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};s.relativePath.startsWith("/")&&(at(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=ro([r,s.relativePath]),u=n.concat(s);a.children&&a.children.length>0&&(at(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),nS(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:$w(c,a.index),routesMeta:u})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let s of rS(a.path))o(a,i,s)}),t}function rS(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=rS(r.join("/")),l=[];return l.push(...i.map(s=>s===""?a:[a,s].join("/"))),o&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Ow(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Dw(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Aw=/^:[\w-]+$/,Mw=3,_w=2,zw=1,kw=10,jw=-2,Ty=e=>e==="*";function $w(e,t){let n=e.split("/"),r=n.length;return n.some(Ty)&&(r+=jw),t&&(r+=_w),n.filter(o=>!Ty(o)).reduce((o,a)=>o+(Aw.test(a)?Mw:a===""?zw:kw),r)}function Dw(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Nw(e,t,n){let{routesMeta:r}=e,o={},a="/",i=[];for(let l=0;l{let{paramName:d,isOptional:h}=u;if(d==="*"){let v=l[f]||"";i=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const y=l[f];return h&&!y?c[d]=void 0:c[d]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:i,pattern:e}}function Bw(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),tS(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Lw(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return tS(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Jm(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Uw(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?di(e):e;return{pathname:n?n.startsWith("/")?n:Hw(n,t):t,search:Vw(r),hash:Gw(o)}}function Hw(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function od(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Pw(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eh(e,t){let n=Pw(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function th(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=di(e):(o=jl({},e),at(!o.pathname||!o.pathname.includes("?"),od("?","pathname","search",o)),at(!o.pathname||!o.pathname.includes("#"),od("#","pathname","hash",o)),at(!o.search||!o.search.includes("#"),od("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(i==null)l=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let d=i.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=Uw(o,l),c=i&&i!=="/"&&i.endsWith("/"),u=(a||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||u)&&(s.pathname+="/"),s}const ro=e=>e.join("/").replace(/\/\/+/g,"/"),Iw=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Vw=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const oS=["post","put","patch","delete"];new Set(oS);const Fw=["get",...oS];new Set(Fw);/** - * React Router v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function $l(){return $l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),S.useCallback(function(c,u){if(u===void 0&&(u={}),!l.current)return;if(typeof c=="number"){r.go(c);return}let f=th(c,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ro([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,i,a,e])}const Kw=S.createContext(null);function Qw(e){let t=S.useContext(jr).outlet;return t&&S.createElement(Kw.Provider,{value:e},t)}function sS(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=S.useContext(po),{matches:o}=S.useContext(jr),{pathname:a}=mi(),i=JSON.stringify(eh(o,r.v7_relativeSplatPath));return S.useMemo(()=>th(e,JSON.parse(i),a,n==="path"),[e,i,a,n])}function Zw(e,t){return Jw(e,t)}function Jw(e,t,n,r){pi()||at(!1);let{navigator:o}=S.useContext(po),{matches:a}=S.useContext(jr),i=a[a.length-1],l=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let c=mi(),u;if(t){var f;let C=typeof t=="string"?di(t):t;s==="/"||(f=C.pathname)!=null&&f.startsWith(s)||at(!1),u=C}else u=c;let d=u.pathname||"/",h=d;if(s!=="/"){let C=s.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(C.length).join("/")}let y=Rw(e,{pathname:h}),v=oR(y&&y.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:ro([s,o.encodeLocation?o.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?s:ro([s,o.encodeLocation?o.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,n,r);return t&&v?S.createElement(Eu.Provider,{value:{location:$l({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Yr.Pop}},v):v}function eR(){let e=sR(),t=qw(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:o},n):null,null)}const tR=S.createElement(eR,null);class nR extends S.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?S.createElement(jr.Provider,{value:this.props.routeContext},S.createElement(aS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rR(e){let{routeContext:t,match:n,children:r}=e,o=S.useContext(nh);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),S.createElement(jr.Provider,{value:t},r)}function oR(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let u=i.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);u>=0||at(!1),i=i.slice(0,Math.min(i.length,u+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,f,d)=>{let h,y=!1,v=null,C=null;n&&(h=l&&f.route.id?l[f.route.id]:void 0,v=f.route.errorElement||tR,s&&(c<0&&d===0?(y=!0,C=null):c===d&&(y=!0,C=f.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,d+1)),g=()=>{let p;return h?p=v:y?p=C:f.route.Component?p=S.createElement(f.route.Component,null):f.route.element?p=f.route.element:p=u,S.createElement(rR,{match:f,routeContext:{outlet:u,matches:m,isDataRoute:n!=null},children:p})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?S.createElement(nR,{location:n.location,revalidation:n.revalidation,component:v,error:h,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()},null)}var cS=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cS||{}),Pc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Pc||{});function aR(e){let t=S.useContext(nh);return t||at(!1),t}function iR(e){let t=S.useContext(Yw);return t||at(!1),t}function lR(e){let t=S.useContext(jr);return t||at(!1),t}function uS(e){let t=lR(),n=t.matches[t.matches.length-1];return n.route.id||at(!1),n.route.id}function sR(){var e;let t=S.useContext(aS),n=iR(Pc.UseRouteError),r=uS(Pc.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function cR(){let{router:e}=aR(cS.UseNavigateStable),t=uS(Pc.UseNavigateStable),n=S.useRef(!1);return iS(()=>{n.current=!0}),S.useCallback(function(o,a){a===void 0&&(a={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,$l({fromRouteId:t},a)))},[e,t])}function Ay(e){let{to:t,replace:n,state:r,relative:o}=e;pi()||at(!1);let{future:a,static:i}=S.useContext(po),{matches:l}=S.useContext(jr),{pathname:s}=mi(),c=lS(),u=th(t,eh(l,a.v7_relativeSplatPath),s,o==="path"),f=JSON.stringify(u);return S.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function uR(e){return Qw(e.context)}function Yn(e){at(!1)}function fR(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Yr.Pop,navigator:a,static:i=!1,future:l}=e;pi()&&at(!1);let s=t.replace(/^\/*/,"/"),c=S.useMemo(()=>({basename:s,navigator:a,static:i,future:$l({v7_relativeSplatPath:!1},l)}),[s,l,a,i]);typeof r=="string"&&(r=di(r));let{pathname:u="/",search:f="",hash:d="",state:h=null,key:y="default"}=r,v=S.useMemo(()=>{let C=Jm(u,s);return C==null?null:{location:{pathname:C,search:f,hash:d,state:h,key:y},navigationType:o}},[s,u,f,d,h,y,o]);return v==null?null:S.createElement(po.Provider,{value:c},S.createElement(Eu.Provider,{children:n,value:v}))}function dR(e){let{children:t,location:n}=e;return Zw(Rp(t),n)}new Promise(()=>{});function Rp(e,t){t===void 0&&(t=[]);let n=[];return S.Children.forEach(e,(r,o)=>{if(!S.isValidElement(r))return;let a=[...t,o];if(r.type===S.Fragment){n.push.apply(n,Rp(r.props.children,a));return}r.type!==Yn&&at(!1),!r.props.index||!r.props.children||at(!1);let i={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Rp(r.props.children,a)),n.push(i)}),n}/** - * React Router DOM v6.26.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Tp(){return Tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function mR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hR(e,t){return e.button===0&&(!t||t==="_self")&&!mR(e)}const gR=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],yR="6";try{window.__reactRouterVersion=yR}catch{}const vR="startTransition",My=ic[vR];function bR(e){let{basename:t,children:n,future:r,window:o}=e,a=S.useRef();a.current==null&&(a.current=Cw({window:o,v5Compat:!0}));let i=a.current,[l,s]=S.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},u=S.useCallback(f=>{c&&My?My(()=>s(f)):s(f)},[s,c]);return S.useLayoutEffect(()=>i.listen(u),[i,u]),S.createElement(fR,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:i,future:r})}const SR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rh=S.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:a,replace:i,state:l,target:s,to:c,preventScrollReset:u,unstable_viewTransition:f}=t,d=pR(t,gR),{basename:h}=S.useContext(po),y,v=!1;if(typeof c=="string"&&xR.test(c)&&(y=c,SR))try{let p=new URL(window.location.href),x=c.startsWith("//")?new URL(p.protocol+c):new URL(c),w=Jm(x.pathname,h);x.origin===p.origin&&w!=null?c=w+x.search+x.hash:v=!0}catch{}let C=Ww(c,{relative:o}),m=CR(c,{replace:i,state:l,target:s,preventScrollReset:u,relative:o,unstable_viewTransition:f});function g(p){r&&r(p),p.defaultPrevented||m(p)}return S.createElement("a",Tp({},d,{href:y||C,onClick:v||a?r:g,ref:n,target:s}))});var _y;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_y||(_y={}));var zy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(zy||(zy={}));function CR(e,t){let{target:n,replace:r,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l}=t===void 0?{}:t,s=lS(),c=mi(),u=sS(e,{relative:i});return S.useCallback(f=>{if(hR(f,n)){f.preventDefault();let d=r!==void 0?r:Hc(c)===Hc(u);s(e,{replace:d,state:o,preventScrollReset:a,relative:i,unstable_viewTransition:l})}},[c,s,u,r,o,n,e,a,i,l])}const Dl={black:"#000",white:"#fff"},na={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"},ra={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"},oa={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"},aa={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"},ia={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"},Mi={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"},ER={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Mr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ot(hi,--Ft):0,Xa--,ut===10&&(Xa=1,Ru--),ut}function nn(){return ut=Ft2||Bl(ut)>3?"":" "}function HR(e,t){for(;--t&&nn()&&!(ut<48||ut>102||ut>57&&ut<65||ut>70&&ut<97););return ns(e,Zs()+(t<6&&nr()==32&&nn()==32))}function Ap(e){for(;nn();)switch(ut){case e:return Ft;case 34:case 39:e!==34&&e!==39&&Ap(ut);break;case 40:e===41&&Ap(e);break;case 92:nn();break}return Ft}function PR(e,t){for(;nn()&&e+ut!==57;)if(e+ut===84&&nr()===47)break;return"/*"+ns(t,Ft-1)+"*"+wu(e===47?e:nn())}function IR(e){for(;!Bl(nr());)nn();return ns(e,Ft)}function VR(e){return yS(ec("",null,null,null,[""],e=gS(e),0,[0],e))}function ec(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,f=i,d=0,h=0,y=0,v=1,C=1,m=1,g=0,p="",x=o,w=a,T=r,R=p;C;)switch(y=g,g=nn()){case 40:if(y!=108&&Ot(R,f-1)==58){Op(R+=Re(Js(g),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:R+=Js(g);break;case 9:case 10:case 13:case 32:R+=UR(y);break;case 92:R+=HR(Zs()-1,7);continue;case 47:switch(nr()){case 42:case 47:Ms(GR(PR(nn(),Zs()),t,n),s);break;default:R+="/"}break;case 123*v:l[c++]=Wn(R)*m;case 125*v:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+u:m==-1&&(R=Re(R,/\f/g,"")),h>0&&Wn(R)-f&&Ms(h>32?jy(R+";",r,n,f-1):jy(Re(R," ","")+";",r,n,f-2),s);break;case 59:R+=";";default:if(Ms(T=ky(R,t,n,c,u,o,l,p,x=[],w=[],f),a),g===123)if(u===0)ec(R,t,T,T,x,a,f,l,w);else switch(d===99&&Ot(R,3)===110?100:d){case 100:case 108:case 109:case 115:ec(e,T,T,r&&Ms(ky(e,T,T,0,0,o,l,p,o,x=[],f),w),o,w,f,l,r?x:w);break;default:ec(R,T,T,T,[""],w,0,l,w)}}c=u=h=0,v=m=1,p=R="",f=i;break;case 58:f=1+Wn(R),h=y;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&LR()==125)continue}switch(R+=wu(g),g*v){case 38:m=u>0?1:(R+="\f",-1);break;case 44:l[c++]=(Wn(R)-1)*m,m=1;break;case 64:nr()===45&&(R+=Js(nn())),d=nr(),u=f=Wn(p=R+=IR(Zs())),g++;break;case 45:y===45&&Wn(R)==2&&(v=0)}}return a}function ky(e,t,n,r,o,a,i,l,s,c,u){for(var f=o-1,d=o===0?a:[""],h=ih(d),y=0,v=0,C=0;y0?d[m]+" "+g:Re(g,/&\f/g,d[m])))&&(s[C++]=p);return Tu(e,t,n,o===0?oh:l,s,c,u)}function GR(e,t,n){return Tu(e,t,n,dS,wu(BR()),Nl(e,2,-2),0)}function jy(e,t,n,r){return Tu(e,t,n,ah,Nl(e,0,r),Nl(e,r+1,-1),r)}function Ba(e,t){for(var n="",r=ih(e),o=0;o6)switch(Ot(e,t+1)){case 109:if(Ot(e,t+4)!==45)break;case 102:return Re(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+Vc+(Ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Op(e,"stretch")?vS(Re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ot(e,t+1)!==115)break;case 6444:switch(Ot(e,Wn(e)-3-(~Op(e,"!important")&&10))){case 107:return Re(e,":",":"+we)+e;case 101:return Re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(Ot(e,14)===45?"inline-":"")+"box$3$1"+we+"$2$3$1"+_t+"$2box$3")+e}break;case 5936:switch(Ot(e,t+11)){case 114:return we+e+_t+Re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+_t+Re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+_t+Re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+_t+e+e}return e}var JR=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case ah:t.return=vS(t.value,t.length);break;case pS:return Ba([_i(t,{value:Re(t.value,"@","@"+we)})],o);case oh:if(t.length)return NR(t.props,function(a){switch(DR(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ba([_i(t,{props:[Re(a,/:(read-\w+)/,":"+Vc+"$1")]})],o);case"::placeholder":return Ba([_i(t,{props:[Re(a,/:(plac\w+)/,":"+we+"input-$1")]}),_i(t,{props:[Re(a,/:(plac\w+)/,":"+Vc+"$1")]}),_i(t,{props:[Re(a,/:(plac\w+)/,_t+"input-$1")]})],o)}return""})}},eT=[JR],tT=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var C=v.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||eT,a={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var C=v.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var pT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},mT=!1,hT=/[A-Z]|^ms/g,gT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,RS=function(t){return t.charCodeAt(1)===45},Dy=function(t){return t!=null&&typeof t!="boolean"},ad=fS(function(e){return RS(e)?e:e.replace(hT,"-$&").toLowerCase()}),Ny=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(gT,function(r,o,a){return Xn={name:o,styles:a,next:Xn},o})}return pT[t]!==1&&!RS(t)&&typeof n=="number"&&n!==0?n+"px":n},yT="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ll(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Xn={name:o.name,styles:o.styles,next:Xn},o.name;var a=n;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)Xn={name:i.name,styles:i.styles,next:Xn},i=i.next;var l=a.styles+";";return l}return vT(e,t,n)}case"function":{if(e!==void 0){var s=Xn,c=n(e);return Xn=s,Ll(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function vT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?CT:ET},Hy=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},wT=!1,RT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return ES(n,r,o),ST(function(){return wS(n,r,o)}),null},TT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var l=Hy(t,n,r),s=l||Uy(o),c=!s("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{f.push(u[0][0]);for(var d=u.length,h=1;ht(AT(o)?n:o):t;return b.jsx(xT,{styles:r})}/** - * @mui/styled-engine v6.1.0 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function _S(e,t){return Mp(e,t)}const MT=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Qn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function zS(e){if(!Qn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=zS(e[n])}),t}function St(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Qn(e)&&Qn(t)&&Object.keys(t).forEach(o=>{Qn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Qn(e[o])?r[o]=St(e[o],t[o],n):n.clone?r[o]=Qn(t[o])?zS(t[o]):t[o]:r[o]=t[o]}),r}const _T=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function zT(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,a=_T(t),i=Object.keys(a);function l(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function s(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function c(d,h){const y=i.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(y!==-1&&typeof t[i[y]]=="number"?t[i[y]]:h)-r/100}${n})`}function u(d){return i.indexOf(d)+1r.startsWith("@container")).sort((r,o)=>{var i,l;const a=/min-width:\s*([0-9.]+)/;return+(((i=r.match(a))==null?void 0:i[1])||0)-+(((l=o.match(a))==null?void 0:l[1])||0)});return n.length?n.reduce((r,o)=>{const a=t[o];return delete r[o],r[o]=a,r},{...t}):t}function jT(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function $T(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(a)}function DT(e){const t=(a,i)=>a.replace("@media",i?`@container ${i}`:"@container");function n(a,i){a.up=(...l)=>t(e.breakpoints.up(...l),i),a.down=(...l)=>t(e.breakpoints.down(...l),i),a.between=(...l)=>t(e.breakpoints.between(...l),i),a.only=(...l)=>t(e.breakpoints.only(...l),i),a.not=(...l)=>{const s=t(e.breakpoints.not(...l),i);return s.includes("not all and")?s.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):s}}const r={},o=a=>(n(r,a),r);return n(o),{...e,containerQueries:o}}const NT={borderRadius:4};function ul(e,t){return t?St(e,t,{clone:!1}):e}const Lu={xs:0,sm:600,md:900,lg:1200,xl:1536},Py={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Lu[e]}px)`},BT={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Lu[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function In(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||Py;return t.reduce((i,l,s)=>(i[a.up(a.keys[s])]=n(t[s]),i),{})}if(typeof t=="object"){const a=r.breakpoints||Py;return Object.keys(t).reduce((i,l)=>{if(jT(a.keys,l)){const s=$T(r.containerQueries?r:BT,l);s&&(i[s]=n(t[l],l))}else if(Object.keys(a.values||Lu).includes(l)){const s=a.up(l);i[s]=n(t[l],l)}else{const s=l;i[s]=t[s]}return i},{})}return n(t)}function kS(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function jS(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function LT(e,...t){const n=kS(e),r=[n,...t].reduce((o,a)=>St(o,a),{});return jS(Object.keys(n),r)}function UT(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,a)=>{a{e[o]!=null&&(n[o]=!0)}),n}function id({values:e,breakpoints:t,base:n}){const r=n||UT(e,t),o=Object.keys(r);if(o.length===0)return e;let a;return o.reduce((i,l,s)=>(Array.isArray(e)?(i[l]=e[s]!=null?e[s]:e[a],a=s):typeof e=="object"?(i[l]=e[l]!=null?e[l]:e[a],a=l):i[l]=e,i),{})}function I(e){if(typeof e!="string")throw new Error(Mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ka(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Gc(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Ka(e,n)||r,t&&(o=t(o,r,e)),o}function it(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const l=i[t],s=i.theme,c=Ka(s,r)||{};return In(i,l,f=>{let d=Gc(c,o,f);return f===d&&typeof f=="string"&&(d=Gc(c,o,`${t}${f==="default"?"":I(f)}`,f)),n===!1?d:{[n]:d}})};return a.propTypes={},a.filterProps=[t],a}function HT(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const PT={m:"margin",p:"padding"},IT={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Iy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},VT=HT(e=>{if(e.length>2)if(Iy[e])e=Iy[e];else return[e];const[t,n]=e.split(""),r=PT[t],o=IT[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),dh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ph=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...dh,...ph];function os(e,t,n,r){const o=Ka(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?a=>typeof a=="string"?a:typeof o=="string"?`calc(${a} * ${o})`:o*a:Array.isArray(o)?a=>{if(typeof a=="string")return a;const i=Math.abs(a),l=o[i];return a>=0?l:typeof l=="number"?-l:`-${l}`}:typeof o=="function"?o:()=>{}}function Uu(e){return os(e,"spacing",8)}function Io(e,t){return typeof t=="string"||t==null?t:e(t)}function GT(e,t){return n=>e.reduce((r,o)=>(r[o]=Io(t,n),r),{})}function qT(e,t,n,r){if(!t.includes(n))return null;const o=VT(n),a=GT(o,r),i=e[n];return In(e,i,a)}function $S(e,t){const n=Uu(e.theme);return Object.keys(e).map(r=>qT(e,t,r,n)).reduce(ul,{})}function Je(e){return $S(e,dh)}Je.propTypes={};Je.filterProps=dh;function et(e){return $S(e,ph)}et.propTypes={};et.filterProps=ph;function DS(e=8,t=Uu({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function Hu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?ul(o,t[a](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Sn(e){return typeof e!="number"?e:`${e}px solid`}function _n(e,t){return it({prop:e,themeKey:"borders",transform:t})}const FT=_n("border",Sn),YT=_n("borderTop",Sn),WT=_n("borderRight",Sn),XT=_n("borderBottom",Sn),KT=_n("borderLeft",Sn),QT=_n("borderColor"),ZT=_n("borderTopColor"),JT=_n("borderRightColor"),e4=_n("borderBottomColor"),t4=_n("borderLeftColor"),n4=_n("outline",Sn),r4=_n("outlineColor"),Pu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=os(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Io(t,r)});return In(e,e.borderRadius,n)}return null};Pu.propTypes={};Pu.filterProps=["borderRadius"];Hu(FT,YT,WT,XT,KT,QT,ZT,JT,e4,t4,Pu,n4,r4);const Iu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=os(e.theme,"spacing",8),n=r=>({gap:Io(t,r)});return In(e,e.gap,n)}return null};Iu.propTypes={};Iu.filterProps=["gap"];const Vu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=os(e.theme,"spacing",8),n=r=>({columnGap:Io(t,r)});return In(e,e.columnGap,n)}return null};Vu.propTypes={};Vu.filterProps=["columnGap"];const Gu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=os(e.theme,"spacing",8),n=r=>({rowGap:Io(t,r)});return In(e,e.rowGap,n)}return null};Gu.propTypes={};Gu.filterProps=["rowGap"];const o4=it({prop:"gridColumn"}),a4=it({prop:"gridRow"}),i4=it({prop:"gridAutoFlow"}),l4=it({prop:"gridAutoColumns"}),s4=it({prop:"gridAutoRows"}),c4=it({prop:"gridTemplateColumns"}),u4=it({prop:"gridTemplateRows"}),f4=it({prop:"gridTemplateAreas"}),d4=it({prop:"gridArea"});Hu(Iu,Vu,Gu,o4,a4,i4,l4,s4,c4,u4,f4,d4);function La(e,t){return t==="grey"?t:e}const p4=it({prop:"color",themeKey:"palette",transform:La}),m4=it({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:La}),h4=it({prop:"backgroundColor",themeKey:"palette",transform:La});Hu(p4,m4,h4);function Zt(e){return e<=1&&e!==0?`${e*100}%`:e}const g4=it({prop:"width",transform:Zt}),mh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,a,i,l,s;const r=((i=(a=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:a.values)==null?void 0:i[n])||Lu[n];return r?((s=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:s.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Zt(n)}};return In(e,e.maxWidth,t)}return null};mh.filterProps=["maxWidth"];const y4=it({prop:"minWidth",transform:Zt}),v4=it({prop:"height",transform:Zt}),b4=it({prop:"maxHeight",transform:Zt}),S4=it({prop:"minHeight",transform:Zt});it({prop:"size",cssProperty:"width",transform:Zt});it({prop:"size",cssProperty:"height",transform:Zt});const x4=it({prop:"boxSizing"});Hu(g4,mh,y4,v4,b4,S4,x4);const as={border:{themeKey:"borders",transform:Sn},borderTop:{themeKey:"borders",transform:Sn},borderRight:{themeKey:"borders",transform:Sn},borderBottom:{themeKey:"borders",transform:Sn},borderLeft:{themeKey:"borders",transform:Sn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Sn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Pu},color:{themeKey:"palette",transform:La},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:La},backgroundColor:{themeKey:"palette",transform:La},p:{style:et},pt:{style:et},pr:{style:et},pb:{style:et},pl:{style:et},px:{style:et},py:{style:et},padding:{style:et},paddingTop:{style:et},paddingRight:{style:et},paddingBottom:{style:et},paddingLeft:{style:et},paddingX:{style:et},paddingY:{style:et},paddingInline:{style:et},paddingInlineStart:{style:et},paddingInlineEnd:{style:et},paddingBlock:{style:et},paddingBlockStart:{style:et},paddingBlockEnd:{style:et},m:{style:Je},mt:{style:Je},mr:{style:Je},mb:{style:Je},ml:{style:Je},mx:{style:Je},my:{style:Je},margin:{style:Je},marginTop:{style:Je},marginRight:{style:Je},marginBottom:{style:Je},marginLeft:{style:Je},marginX:{style:Je},marginY:{style:Je},marginInline:{style:Je},marginInlineStart:{style:Je},marginInlineEnd:{style:Je},marginBlock:{style:Je},marginBlockStart:{style:Je},marginBlockEnd:{style:Je},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:Iu},rowGap:{style:Gu},columnGap:{style:Vu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zt},maxWidth:{style:mh},minWidth:{transform:Zt},height:{transform:Zt},maxHeight:{transform:Zt},minHeight:{transform:Zt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function C4(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function E4(e,t){return typeof e=="function"?e(t):e}function w4(){function e(n,r,o,a){const i={[n]:r,theme:o},l=a[n];if(!l)return{[n]:r};const{cssProperty:s=n,themeKey:c,transform:u,style:f}=l;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const d=Ka(o,c)||{};return f?f(i):In(i,r,y=>{let v=Gc(d,u,y);return y===v&&typeof y=="string"&&(v=Gc(d,u,`${n}${y==="default"?"":I(y)}`,y)),s===!1?v:{[s]:v}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const a=o.unstable_sxConfig??as;function i(l){let s=l;if(typeof l=="function")s=l(o);else if(typeof l!="object")return l;if(!s)return null;const c=kS(o.breakpoints),u=Object.keys(c);let f=c;return Object.keys(s).forEach(d=>{const h=E4(s[d],o);if(h!=null)if(typeof h=="object")if(a[d])f=ul(f,e(d,h,o,a));else{const y=In({theme:o},h,v=>({[d]:v}));C4(y,h)?f[d]=t({sx:h,theme:o}):f=ul(f,y)}else f=ul(f,e(d,h,o,a))}),kT(o,jS(u,f))}return Array.isArray(r)?r.map(i):i(r)}return t}const Qo=w4();Qo.filterProps=["sx"];function R4(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function is(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={},...i}=e,l=zT(n),s=DS(o);let c=St({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:s,shape:{...NT,...a}},i);return c=DT(c),c.applyStyles=R4,c=t.reduce((u,f)=>St(u,f),c),c.unstable_sxConfig={...as,...i==null?void 0:i.unstable_sxConfig},c.unstable_sx=function(f){return Qo({sx:f,theme:this})},c}function T4(e){return Object.keys(e).length===0}function NS(e=null){const t=S.useContext(Bu);return!t||T4(t)?e:t}const O4=is();function qu(e=O4){return NS(e)}function A4({styles:e,themeId:t,defaultTheme:n={}}){const r=qu(n),o=typeof e=="function"?e(t&&r[t]||r):e;return b.jsx(MS,{styles:o})}const M4=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??as;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function hh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=M4(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...i)=>{const l=t(...i);return Qn(l)?{...r,...l}:r}:a={...r,...t},{...o,sx:a}}const Vy=e=>e,_4=()=>{let e=Vy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Vy}}},BS=_4();function LS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;tl!=="theme"&&l!=="sx"&&l!=="as"})(Qo);return S.forwardRef(function(s,c){const u=qu(n),{className:f,component:d="div",...h}=hh(s);return b.jsx(a,{as:d,ref:c,className:V(f,o?o(r):r),theme:t&&u[t]||u,...h})})}const k4={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function te(e,t,n="Mui"){const r=k4[t];return r?`${n}-${r}`:`${BS.generate(e)}-${t}`}function ee(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=te(e,o,n)}),r}var $e={};/** - * @license React - * react-is.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. - */var gh=Symbol.for("react.element"),yh=Symbol.for("react.portal"),Fu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Wu=Symbol.for("react.profiler"),Xu=Symbol.for("react.provider"),Ku=Symbol.for("react.context"),j4=Symbol.for("react.server_context"),Qu=Symbol.for("react.forward_ref"),Zu=Symbol.for("react.suspense"),Ju=Symbol.for("react.suspense_list"),ef=Symbol.for("react.memo"),tf=Symbol.for("react.lazy"),$4=Symbol.for("react.offscreen"),US;US=Symbol.for("react.module.reference");function zn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case gh:switch(e=e.type,e){case Fu:case Wu:case Yu:case Zu:case Ju:return e;default:switch(e=e&&e.$$typeof,e){case j4:case Ku:case Qu:case tf:case ef:case Xu:return e;default:return t}}case yh:return t}}}$e.ContextConsumer=Ku;$e.ContextProvider=Xu;$e.Element=gh;$e.ForwardRef=Qu;$e.Fragment=Fu;$e.Lazy=tf;$e.Memo=ef;$e.Portal=yh;$e.Profiler=Wu;$e.StrictMode=Yu;$e.Suspense=Zu;$e.SuspenseList=Ju;$e.isAsyncMode=function(){return!1};$e.isConcurrentMode=function(){return!1};$e.isContextConsumer=function(e){return zn(e)===Ku};$e.isContextProvider=function(e){return zn(e)===Xu};$e.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===gh};$e.isForwardRef=function(e){return zn(e)===Qu};$e.isFragment=function(e){return zn(e)===Fu};$e.isLazy=function(e){return zn(e)===tf};$e.isMemo=function(e){return zn(e)===ef};$e.isPortal=function(e){return zn(e)===yh};$e.isProfiler=function(e){return zn(e)===Wu};$e.isStrictMode=function(e){return zn(e)===Yu};$e.isSuspense=function(e){return zn(e)===Zu};$e.isSuspenseList=function(e){return zn(e)===Ju};$e.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Fu||e===Wu||e===Yu||e===Zu||e===Ju||e===$4||typeof e=="object"&&e!==null&&(e.$$typeof===tf||e.$$typeof===ef||e.$$typeof===Xu||e.$$typeof===Ku||e.$$typeof===Qu||e.$$typeof===US||e.getModuleId!==void 0)};$e.typeOf=zn;const D4=is();function ld(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function _p(e,t,n){return B4(t)?n:t[e]||t}const _s=Symbol("mui.processed_props");function zs(e,t,n){if(_s in e)return e[_s];const r={...e,theme:_p(t,e.theme,n)};return e[_s]=r,r[_s]=r,r}function N4(e){return e?(t,n)=>n[e]:null}function tc(e,t){var r;const n=typeof e=="function"?e(t):e;if(Array.isArray(n))return n.flatMap(o=>tc(o,t));if(Array.isArray(n==null?void 0:n.variants)){const{variants:o,...a}=n;let i=a,l;e:for(let s=0;sQo(zs(l,t,n));return a.__mui_systemSx=!0,(l,s={})=>{MT(l,T=>T.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:h=N4(U4(u)),...y}=s,v=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,C=d||!1;let m,g=ld;u==="Root"||u==="root"?g=r:u?g=o:L4(l)&&(g=void 0);const p=_S(l,{shouldForwardProp:g,label:m,...y}),x=T=>typeof T=="function"&&T.__emotion_real!==T||Qn(T)?R=>tc(T,zs(R,t,n)):T,w=(T,...R)=>{let O=x(T);const E=R?R.map(x):[];c&&h&&E.push(k=>{const $=_p(t,k.theme,n);if(!$.components||!$.components[c]||!$.components[c].styleOverrides)return null;const B=$.components[c].styleOverrides,D={},M=zs(k,t,n);for(const z in B)D[z]=tc(B[z],M);return h(k,D)}),c&&!v&&E.push(k=>{var D,M;const $=_p(t,k.theme,n),B=(M=(D=$==null?void 0:$.components)==null?void 0:D[c])==null?void 0:M.variants;return B?tc({variants:B},zs(k,t,n)):null}),C||E.push(a);const A=E.length-R.length;if(Array.isArray(T)&&A>0){const k=new Array(A).fill("");O=[...T,...k],O.raw=[...T.raw,...k]}const _=p(O,...E);return l.muiName&&(_.muiName=l.muiName),_};return p.withConfig&&(w.withConfig=p.withConfig),w}}function B4(e){for(const t in e)return!1;return!0}function L4(e){return typeof e=="string"&&e.charCodeAt(0)>96}function U4(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const PS=HS();function Ul(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const a=e[o],i=t[o];if(!i)n[o]=a||{};else if(!a)n[o]=i;else{n[o]={...i};for(const l in a)if(Object.prototype.hasOwnProperty.call(a,l)){const s=l;n[o][s]=Ul(a[s],i[s])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function H4(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ul(t.components[n].defaultProps,r)}function vh({props:e,name:t,defaultTheme:n,themeId:r}){let o=qu(n);return r&&(o=o[r]||o),H4({theme:o,name:t,props:e})}const ir=typeof window<"u"?S.useLayoutEffect:S.useEffect;function P4(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function bh(e,t=0,n=1){return P4(e,t,n)}function I4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function lo(e){if(e.type)return e;if(e.charAt(0)==="#")return lo(I4(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Mr(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(Mr(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}const V4=e=>{const t=lo(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},qi=(e,t)=>{try{return V4(e)}catch{return e}};function nf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function IS(e){e=lo(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(c,u=(c+n/30)%12)=>o-a*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const s=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(l+="a",s.push(t[3])),nf({type:l,values:s})}function zp(e){e=lo(e);let t=e.type==="hsl"||e.type==="hsla"?lo(IS(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function G4(e,t){const n=zp(e),r=zp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ke(e,t){return e=lo(e),t=bh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,nf(e)}function ks(e,t,n){try{return ke(e,t)}catch{return e}}function ls(e,t){if(e=lo(e),t=bh(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return nf(e)}function De(e,t,n){try{return ls(e,t)}catch{return e}}function ss(e,t){if(e=lo(e),t=bh(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return nf(e)}function Ne(e,t,n){try{return ss(e,t)}catch{return e}}function VS(e,t=.15){return zp(e)>.5?ls(e,t):ss(e,t)}function js(e,t,n){try{return VS(e,t)}catch{return e}}function Gy(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function GS(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function nc(e,t){var n,r,o;return S.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}function xt(e){return e&&e.ownerDocument||document}function Vo(e){return xt(e).defaultView||window}function kp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let qy=0;function q4(e){const[t,n]=S.useState(e),r=e||t;return S.useEffect(()=>{t==null&&(qy+=1,n(`mui-${qy}`))},[t]),r}const Fy=ic.useId;function Sh(e){if(Fy!==void 0){const t=Fy();return e??t}return q4(e)}function Hl({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=S.useRef(e!==void 0),[a,i]=S.useState(t),l=o?e:a,s=S.useCallback(c=>{o||i(c)},[]);return[l,s]}function Un(e){const t=S.useRef(e);return ir(()=>{t.current=e}),S.useRef((...n)=>(0,t.current)(...n)).current}function Ze(...e){return S.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{kp(n,t)})},e)}const Yy={};function qS(e,t){const n=S.useRef(Yy);return n.current===Yy&&(n.current=e(t)),n}const F4=[];function Y4(e){S.useEffect(e,F4)}class rf{constructor(){Si(this,"currentId",null);Si(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Si(this,"disposeEffect",()=>this.clear)}static create(){return new rf}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Wr(){const e=qS(rf.create).current;return Y4(e.disposeEffect),e}function Qa(e){try{return e.matches(":focus-visible")}catch{}return!1}function FS(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function ne(e,t,n=void 0){const r={};for(const o in e){const a=e[o];let i="",l=!0;for(let s=0;sr.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Wy(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function YS(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const h=V(n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),y={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},v={...n,...o,...r};return h.length>0&&(v.className=h),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const i=qc({...o,...r}),l=Wy(r),s=Wy(o),c=t(i),u=V(c==null?void 0:c.className,n==null?void 0:n.className,a,o==null?void 0:o.className,r==null?void 0:r.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},d={...c,...n,...s,...l};return u.length>0&&(d.className=u),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:c.ref}}function WS(e,t,n){return typeof e=="function"?e(t,n):e}function Fc(e){var f;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...a}=e,i=o?{}:WS(n,r),{props:l,internalRef:s}=YS({...a,externalSlotProps:i}),c=Ze(s,i==null?void 0:i.ref,(f=e.additionalProps)==null?void 0:f.ref);return Ra(t,{...l,ref:c},r)}function Zo(e){return!e||!S.isValidElement(e)?null:e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref}const XS=S.createContext(null);function xh(){return S.useContext(XS)}const X4=typeof Symbol=="function"&&Symbol.for,K4=X4?Symbol.for("mui.nested"):"__THEME_NESTED__";function Q4(e,t){return typeof t=="function"?t(e):{...e,...t}}function Z4(e){const{children:t,theme:n}=e,r=xh(),o=S.useMemo(()=>{const a=r===null?{...n}:Q4(r,n);return a!=null&&(a[K4]=r!==null),a},[n,r]);return b.jsx(XS.Provider,{value:o,children:t})}const KS=S.createContext();function J4({value:e,...t}){return b.jsx(KS.Provider,{value:e??!0,...t})}const Ch=()=>S.useContext(KS)??!1,QS=S.createContext(void 0);function e5({value:e,children:t}){return b.jsx(QS.Provider,{value:e,children:t})}function t5(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Ul(o.defaultProps,r):!o.styleOverrides&&!o.variants?Ul(o,r):r}function n5({props:e,name:t}){const n=S.useContext(QS);return t5({props:e,name:t,theme:{components:n}})}const Xy={};function Ky(e,t,n,r=!1){return S.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const a=n(o),i=e?{...t,[e]:a}:a;return r?()=>i:i}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function ZS(e){const{children:t,theme:n,themeId:r}=e,o=NS(Xy),a=xh()||Xy,i=Ky(r,o,n),l=Ky(r,a,n,!0),s=i.direction==="rtl";return b.jsx(Z4,{theme:l,children:b.jsx(Bu.Provider,{value:i,children:b.jsx(J4,{value:s,children:b.jsx(e5,{value:i==null?void 0:i.components,children:t})})})})}const Eh="mode",wh="color-scheme",r5="data-color-scheme";function o5(e){const{defaultLightColorScheme:t="light",defaultDarkColorScheme:n="dark",modeStorageKey:r=Eh,colorSchemeStorageKey:o=wh,attribute:a=r5,colorSchemeNode:i="document.documentElement",nonce:l}=e||{};let s="",c=a;if(a==="class"&&(c=".%s"),a==="data"&&(c="[data-%s]"),c.startsWith(".")){const f=c.substring(1);s+=`${i}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); - ${i}.classList.add('${f}'.replace('%s', colorScheme));`}const u=c.match(/\[([^\]]+)\]/);if(u){const[f,d]=u[1].split("=");d||(s+=`${i}.removeAttribute('${f}'.replace('%s', light)); - ${i}.removeAttribute('${f}'.replace('%s', dark));`),s+=` - ${i}.setAttribute('${f}'.replace('%s', colorScheme), ${d?`${d}.replace('%s', colorScheme)`:'""'});`}else s+=`${i}.setAttribute('${c}', colorScheme);`;return b.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { -try { - let colorScheme = ''; - const mode = localStorage.getItem('${r}') || 'system'; - const dark = localStorage.getItem('${o}-dark') || '${n}'; - const light = localStorage.getItem('${o}-light') || '${t}'; - if (mode === 'system') { - // handle system mode - const mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = dark - } else { - colorScheme = light - } - } - if (mode === 'light') { - colorScheme = light; - } - if (mode === 'dark') { - colorScheme = dark; - } - if (colorScheme) { - ${s} - } -} catch(e){}})();`}},"mui-color-scheme-init")}function Qy(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function JS(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function a5(e){return JS(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function sd(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function i5(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:a=Eh,colorSchemeStorageKey:i=wh,storageWindow:l=typeof window>"u"?void 0:window}=e,s=o.join(","),c=o.length>1,[u,f]=S.useState(()=>{const p=sd(a,t),x=sd(`${i}-light`,n),w=sd(`${i}-dark`,r);return{mode:p,systemMode:Qy(p),lightColorScheme:x,darkColorScheme:w}}),[,d]=S.useState(!1),h=S.useRef(!1);S.useEffect(()=>{c&&d(!0),h.current=!0},[c]);const y=a5(u),v=S.useCallback(p=>{f(x=>{if(p===x.mode)return x;const w=p??t;try{localStorage.setItem(a,w)}catch{}return{...x,mode:w,systemMode:Qy(w)}})},[a,t]),C=S.useCallback(p=>{p?typeof p=="string"?p&&!s.includes(p)?console.error(`\`${p}\` does not exist in \`theme.colorSchemes\`.`):f(x=>{const w={...x};return JS(x,T=>{try{localStorage.setItem(`${i}-${T}`,p)}catch{}T==="light"&&(w.lightColorScheme=p),T==="dark"&&(w.darkColorScheme=p)}),w}):f(x=>{const w={...x},T=p.light===null?n:p.light,R=p.dark===null?r:p.dark;if(T)if(!s.includes(T))console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`);else{w.lightColorScheme=T;try{localStorage.setItem(`${i}-light`,T)}catch{}}if(R)if(!s.includes(R))console.error(`\`${R}\` does not exist in \`theme.colorSchemes\`.`);else{w.darkColorScheme=R;try{localStorage.setItem(`${i}-dark`,R)}catch{}}return w}):f(x=>{try{localStorage.setItem(`${i}-light`,n),localStorage.setItem(`${i}-dark`,r)}catch{}return{...x,lightColorScheme:n,darkColorScheme:r}})},[s,i,n,r]),m=S.useCallback(p=>{u.mode==="system"&&f(x=>{const w=p!=null&&p.matches?"dark":"light";return x.systemMode===w?x:{...x,systemMode:w}})},[u.mode]),g=S.useRef(m);return g.current=m,S.useEffect(()=>{if(typeof window.matchMedia!="function"||!c)return;const p=(...w)=>g.current(...w),x=window.matchMedia("(prefers-color-scheme: dark)");return x.addListener(p),p(x),()=>{x.removeListener(p)}},[c]),S.useEffect(()=>{if(l&&c){const p=x=>{const w=x.newValue;typeof x.key=="string"&&x.key.startsWith(i)&&(!w||s.match(w))&&(x.key.endsWith("light")&&C({light:w}),x.key.endsWith("dark")&&C({dark:w})),x.key===a&&(!w||["light","dark","system"].includes(w))&&v(w||t)};return l.addEventListener("storage",p),()=>{l.removeEventListener("storage",p)}}},[C,v,a,i,s,t,l,c]),{...u,mode:h.current||!c?u.mode:void 0,systemMode:h.current||!c?u.systemMode:void 0,colorScheme:h.current||!c?y:void 0,setMode:v,setColorScheme:C}}const l5="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function s5(e){const{themeId:t,theme:n={},modeStorageKey:r=Eh,colorSchemeStorageKey:o=wh,disableTransitionOnChange:a=!1,defaultColorScheme:i,resolveTheme:l}=e,s={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=S.createContext(void 0),u=()=>S.useContext(c)||s;function f(v){var Se,ht,Y,Pe,Xt;const{children:C,theme:m,modeStorageKey:g=r,colorSchemeStorageKey:p=o,disableTransitionOnChange:x=a,storageWindow:w=typeof window>"u"?void 0:window,documentNode:T=typeof document>"u"?void 0:document,colorSchemeNode:R=typeof document>"u"?void 0:document.documentElement,disableNestedContext:O=!1,disableStyleSheetGeneration:E=!1}=v,A=S.useRef(!1),_=xh(),k=S.useContext(c),$=!!k&&!O,B=S.useMemo(()=>m||(typeof n=="function"?n():n),[m]),D=B[t],{colorSchemes:M={},components:z={},cssVarPrefix:j,...U}=D||B,P=Object.keys(M).filter(ge=>!!M[ge]).join(","),F=S.useMemo(()=>P.split(","),[P]),Q=typeof i=="string"?i:i.light,W=typeof i=="string"?i:i.dark,q=M[Q]&&M[W]?"system":((ht=(Se=M[U.defaultColorScheme])==null?void 0:Se.palette)==null?void 0:ht.mode)||((Y=U.palette)==null?void 0:Y.mode),{mode:Z,setMode:G,systemMode:se,lightColorScheme:ce,darkColorScheme:ue,colorScheme:J,setColorScheme:oe}=i5({supportedColorSchemes:F,defaultLightColorScheme:Q,defaultDarkColorScheme:W,modeStorageKey:g,colorSchemeStorageKey:p,defaultMode:q,storageWindow:w});let X=Z,ae=J;$&&(X=k.mode,ae=k.colorScheme);const ie=ae||U.defaultColorScheme,me=((Pe=U.generateThemeVars)==null?void 0:Pe.call(U))||U.vars,Ce={...U,components:z,colorSchemes:M,cssVarPrefix:j,vars:me};if(typeof Ce.generateSpacing=="function"&&(Ce.spacing=Ce.generateSpacing()),ie){const ge=M[ie];ge&&typeof ge=="object"&&Object.keys(ge).forEach(ye=>{ge[ye]&&typeof ge[ye]=="object"?Ce[ye]={...Ce[ye],...ge[ye]}:Ce[ye]=ge[ye]})}const Le=U.colorSchemeSelector;S.useEffect(()=>{if(ae&&R&&Le&&Le!=="media"){const ge=Le;let ye=Le;if(ge==="class"&&(ye=".%s"),ge==="data"&&(ye="[data-%s]"),ge!=null&&ge.startsWith("data-")&&!ge.includes("%s")&&(ye=`[${ge}="%s"]`),ye.startsWith("."))R.classList.remove(...F.map(jt=>ye.substring(1).replace("%s",jt))),R.classList.add(ye.substring(1).replace("%s",ae));else{const jt=ye.replace("%s",ae).match(/\[([^\]]+)\]/);if(jt){const[wt,Ut]=jt[1].split("=");Ut||F.forEach(he=>{R.removeAttribute(wt.replace(ae,he))}),R.setAttribute(wt,Ut?Ut.replace(/"|'/g,""):"")}else R.setAttribute(ye,ae)}}},[ae,Le,R,F]),S.useEffect(()=>{let ge;if(x&&A.current&&T){const ye=T.createElement("style");ye.appendChild(T.createTextNode(l5)),T.head.appendChild(ye),window.getComputedStyle(T.body),ge=setTimeout(()=>{T.head.removeChild(ye)},1)}return()=>{clearTimeout(ge)}},[ae,x,T]),S.useEffect(()=>(A.current=!0,()=>{A.current=!1}),[]);const Ue=S.useMemo(()=>({allColorSchemes:F,colorScheme:ae,darkColorScheme:ue,lightColorScheme:ce,mode:X,setColorScheme:oe,setMode:G,systemMode:se}),[F,ae,ue,ce,X,oe,G,se]);let He=!0;(E||U.cssVariables===!1||$&&(_==null?void 0:_.cssVarPrefix)===j)&&(He=!1);const Ge=b.jsxs(S.Fragment,{children:[He&&b.jsx(S.Fragment,{children:(((Xt=Ce.generateStyleSheets)==null?void 0:Xt.call(Ce))||[]).map((ge,ye)=>b.jsx(MS,{styles:ge},ye))}),b.jsx(ZS,{themeId:D?t:void 0,theme:l?l(Ce):Ce,children:C})]});return $?Ge:b.jsx(c.Provider,{value:Ue,children:Ge})}const d=typeof i=="string"?i:i.light,h=typeof i=="string"?i:i.dark;return{CssVarsProvider:f,useColorScheme:u,getInitColorSchemeScript:v=>o5({colorSchemeStorageKey:o,defaultLightColorScheme:d,defaultDarkColorScheme:h,modeStorageKey:r,...v})}}function c5(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Zy=(e,t,n,r=[])=>{let o=e;t.forEach((a,i)=>{i===t.length-1?Array.isArray(o)?o[Number(a)]=n:o&&typeof o=="object"&&(o[a]=n):o&&typeof o=="object"&&(o[a]||(o[a]=r.includes(a)?[]:{}),o=o[a])})},u5=(e,t,n)=>{function r(o,a=[],i=[]){Object.entries(o).forEach(([l,s])=>{(!n||n&&!n([...a,l]))&&s!=null&&(typeof s=="object"&&Object.keys(s).length>0?r(s,[...a,l],Array.isArray(s)?[...i,l]:i):t([...a,l],s,i))})}r(e)},f5=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function cd(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},a={},i={};return u5(e,(l,s,c)=>{if((typeof s=="string"||typeof s=="number")&&(!r||!r(l,s))){const u=`--${n?`${n}-`:""}${l.join("-")}`,f=f5(l,s);Object.assign(o,{[u]:f}),Zy(a,l,`var(${u})`,c),Zy(i,l,`var(${u}, ${f})`,c)}},l=>l[0]==="vars"),{css:o,vars:a,varsWithDefaults:i}}function d5(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:a={},components:i,defaultColorScheme:l="light",...s}=e,{vars:c,css:u,varsWithDefaults:f}=cd(s,t);let d=f;const h={},{[l]:y,...v}=a;if(Object.entries(v||{}).forEach(([p,x])=>{const{vars:w,css:T,varsWithDefaults:R}=cd(x,t);d=St(d,R),h[p]={css:T,vars:w}}),y){const{css:p,vars:x,varsWithDefaults:w}=cd(y,t);d=St(d,w),h[l]={css:p,vars:x}}function C(p,x){var T,R;let w=o;if(o==="class"&&(w=".%s"),o==="data"&&(w="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(w=`[${o}="%s"]`),p){if(w==="media")return e.defaultColorScheme===p?":root":{[`@media (prefers-color-scheme: ${((R=(T=a[p])==null?void 0:T.palette)==null?void 0:R.mode)||p})`]:{":root":x}};if(w)return e.defaultColorScheme===p?`:root, ${w.replace("%s",String(p))}`:w.replace("%s",String(p))}return":root"}return{vars:d,generateThemeVars:()=>{let p={...c};return Object.entries(h).forEach(([,{vars:x}])=>{p=St(p,x)}),p},generateStyleSheets:()=>{var O,E;const p=[],x=e.defaultColorScheme||"light";function w(A,_){Object.keys(_).length&&p.push(typeof A=="string"?{[A]:{..._}}:A)}w(n(void 0,{...u}),u);const{[x]:T,...R}=h;if(T){const{css:A}=T,_=(E=(O=a[x])==null?void 0:O.palette)==null?void 0:E.mode,k=!r&&_?{colorScheme:_,...A}:{...A};w(n(x,{...k}),k)}return Object.entries(R).forEach(([A,{css:_}])=>{var B,D;const k=(D=(B=a[A])==null?void 0:B.palette)==null?void 0:D.mode,$=!r&&k?{colorScheme:k,..._}:{..._};w(n(A,{...$}),$)}),p}}}function p5(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const m5=is(),h5=PS("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${I(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),g5=e=>vh({props:e,name:"MuiContainer",defaultTheme:m5}),y5=(e,t)=>{const n=s=>te(t,s),{classes:r,fixed:o,disableGutters:a,maxWidth:i}=e,l={root:["root",i&&`maxWidth${I(String(i))}`,o&&"fixed",a&&"disableGutters"]};return ne(l,n,r)};function v5(e={}){const{createStyledComponent:t=h5,useThemeProps:n=g5,componentName:r="MuiContainer"}=e,o=t(({theme:i,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}}),({theme:i,ownerState:l})=>l.fixed&&Object.keys(i.breakpoints.values).reduce((s,c)=>{const u=c,f=i.breakpoints.values[u];return f!==0&&(s[i.breakpoints.up(u)]={maxWidth:`${f}${i.breakpoints.unit}`}),s},{}),({theme:i,ownerState:l})=>({...l.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[i.breakpoints.up(l.maxWidth)]:{maxWidth:`${i.breakpoints.values[l.maxWidth]}${i.breakpoints.unit}`}}}));return S.forwardRef(function(l,s){const c=n(l),{className:u,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:y="lg",classes:v,...C}=c,m={...c,component:f,disableGutters:d,fixed:h,maxWidth:y},g=y5(m,r);return b.jsx(o,{as:f,ownerState:m,className:V(g.root,u),ref:s,...C})})}const b5=is(),S5=PS("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function x5(e){return vh({props:e,name:"MuiStack",defaultTheme:b5})}function C5(e,t){const n=S.Children.toArray(e).filter(Boolean);return n.reduce((r,o,a)=>(r.push(o),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],w5=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...In({theme:t},id({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Uu(t),o=Object.keys(t.breakpoints.values).reduce((s,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(s[c]=!0),s),{}),a=id({values:e.direction,base:o}),i=id({values:e.spacing,base:o});typeof a=="object"&&Object.keys(a).forEach((s,c,u)=>{if(!a[s]){const d=c>0?a[u[c-1]]:"column";a[s]=d}}),n=St(n,In({theme:t},i,(s,c)=>e.useFlexGap?{gap:Io(r,s)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${E5(c?a[c]:e.direction)}`]:Io(r,s)}}))}return n=LT(t.breakpoints,n),n};function R5(e={}){const{createStyledComponent:t=S5,useThemeProps:n=x5,componentName:r="MuiStack"}=e,o=()=>ne({root:["root"]},s=>te(r,s),{}),a=t(w5);return S.forwardRef(function(s,c){const u=n(s),f=hh(u),{component:d="div",direction:h="column",spacing:y=0,divider:v,children:C,className:m,useFlexGap:g=!1,...p}=f,x={direction:h,spacing:y,useFlexGap:g},w=o();return b.jsx(a,{as:d,ownerState:x,ref:c,className:V(w.root,m),...p,children:v?C5(C,v):C})})}const Jy={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:Dl.white,default:Dl.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}},ud={text:{primary:Dl.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:Dl.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 e0(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ss(e.main,o):t==="dark"&&(e.dark=ls(e.main,a)))}function T5(e="light"){return e==="dark"?{main:oa[200],light:oa[50],dark:oa[400]}:{main:oa[700],light:oa[400],dark:oa[800]}}function O5(e="light"){return e==="dark"?{main:ra[200],light:ra[50],dark:ra[400]}:{main:ra[500],light:ra[300],dark:ra[700]}}function A5(e="light"){return e==="dark"?{main:na[500],light:na[300],dark:na[700]}:{main:na[700],light:na[400],dark:na[800]}}function M5(e="light"){return e==="dark"?{main:aa[400],light:aa[300],dark:aa[700]}:{main:aa[700],light:aa[500],dark:aa[900]}}function _5(e="light"){return e==="dark"?{main:ia[400],light:ia[300],dark:ia[700]}:{main:ia[800],light:ia[500],dark:ia[900]}}function z5(e="light"){return e==="dark"?{main:Mi[400],light:Mi[300],dark:Mi[700]}:{main:"#ed6c02",light:Mi[500],dark:Mi[900]}}function Rh(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,a=e.primary||T5(t),i=e.secondary||O5(t),l=e.error||A5(t),s=e.info||M5(t),c=e.success||_5(t),u=e.warning||z5(t);function f(v){return G4(v,ud.text.primary)>=n?ud.text.primary:Jy.text.primary}const d=({color:v,name:C,mainShade:m=500,lightShade:g=300,darkShade:p=700})=>{if(v={...v},!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(Mr(11,C?` (${C})`:"",m));if(typeof v.main!="string")throw new Error(Mr(12,C?` (${C})`:"",JSON.stringify(v.main)));return e0(v,"light",g,r),e0(v,"dark",p,r),v.contrastText||(v.contrastText=f(v.main)),v},h={dark:ud,light:Jy};return St({common:{...Dl},mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:l,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:s,name:"info"}),success:d({color:c,name:"success"}),grey:ER,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r,...h[t]},o)}function k5(e){const t={};return Object.entries(e).forEach(r=>{const[o,a]=r;typeof a=="object"&&(t[o]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function j5(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function $5(e){return Math.round(e*1e5)/1e5}const t0={textTransform:"uppercase"},n0='"Roboto", "Helvetica", "Arial", sans-serif';function ex(e,t){const{fontFamily:n=n0,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:i=500,fontWeightBold:l=700,htmlFontSize:s=16,allVariants:c,pxToRem:u,...f}=typeof t=="function"?t(e):t,d=r/14,h=u||(C=>`${C/s*d}rem`),y=(C,m,g,p,x)=>({fontFamily:n,fontWeight:C,fontSize:h(m),lineHeight:g,...n===n0?{letterSpacing:`${$5(p/m)}em`}:{},...x,...c}),v={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(i,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(i,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(i,14,1.75,.4,t0),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,t0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return St({htmlFontSize:s,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:i,fontWeightBold:l,...v},f,{clone:!1})}const D5=.2,N5=.14,B5=.12;function qe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${D5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${N5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${B5})`].join(",")}const L5=["none",qe(0,2,1,-1,0,1,1,0,0,1,3,0),qe(0,3,1,-2,0,2,2,0,0,1,5,0),qe(0,3,3,-2,0,3,4,0,0,1,8,0),qe(0,2,4,-1,0,4,5,0,0,1,10,0),qe(0,3,5,-1,0,5,8,0,0,1,14,0),qe(0,3,5,-1,0,6,10,0,0,1,18,0),qe(0,4,5,-2,0,7,10,1,0,2,16,1),qe(0,5,5,-3,0,8,10,1,0,3,14,2),qe(0,5,6,-3,0,9,12,1,0,3,16,2),qe(0,6,6,-3,0,10,14,1,0,4,18,3),qe(0,6,7,-4,0,11,15,1,0,4,20,3),qe(0,7,8,-4,0,12,17,2,0,5,22,4),qe(0,7,8,-4,0,13,19,2,0,5,24,4),qe(0,7,9,-4,0,14,21,2,0,5,26,4),qe(0,8,9,-5,0,15,22,2,0,6,28,5),qe(0,8,10,-5,0,16,24,2,0,6,30,5),qe(0,8,11,-5,0,17,26,2,0,6,32,5),qe(0,9,11,-5,0,18,28,2,0,7,34,6),qe(0,9,12,-6,0,19,29,2,0,7,36,6),qe(0,10,13,-6,0,20,31,3,0,8,38,7),qe(0,10,13,-6,0,21,33,3,0,8,40,7),qe(0,10,14,-6,0,22,35,3,0,8,42,7),qe(0,11,14,-7,0,23,36,3,0,9,44,8),qe(0,11,15,-7,0,24,38,3,0,9,46,8)],U5={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},tx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function r0(e){return`${Math.round(e)}ms`}function H5(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function P5(e){const t={...U5,...e.easing},n={...tx,...e.duration};return{getAutoHeightDuration:H5,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:s=0,...c}=a;return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof i=="string"?i:r0(i)} ${l} ${typeof s=="string"?s:r0(s)}`).join(",")},...e,easing:t,duration:n}}const I5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function jp(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:a={},transitions:i={},typography:l={},shape:s,...c}=e;if(e.vars)throw new Error(Mr(20));const u=Rh(a),f=is(e);let d=St(f,{mixins:j5(f.breakpoints,r),palette:u,shadows:L5.slice(),typography:ex(u,l),transitions:P5(i),zIndex:{...I5}});return d=St(d,c),d=t.reduce((h,y)=>St(h,y),d),d.unstable_sxConfig={...as,...c==null?void 0:c.unstable_sxConfig},d.unstable_sx=function(y){return Qo({sx:y,theme:this})},d}function $p(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const V5=[...Array(25)].map((e,t)=>{if(t===0)return;const n=$p(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function nx(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function rx(e){return e==="dark"?V5:[]}function G5(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,a=Rh(t);return{palette:a,opacity:{...nx(a.mode),...n},overlays:r||rx(a.mode),...o}}function q5(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const F5=e=>[...[...Array(24)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n+1}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Y5=e=>(t,n)=>{const r=e.colorSchemeSelector;let o=r;if(r==="class"&&(o=".%s"),r==="data"&&(o="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(o=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return F5(e.cssVarPrefix).forEach(i=>{a[i]=n[i],delete n[i]}),o==="media"?{":root":n,"@media (prefers-color-scheme: dark)":{":root":a}}:o?{[o.replace("%s",t)]:a,[`:root, ${o.replace("%s",t)}`]:n}:{":root":{...n,...a}}}if(o&&o!=="media")return`:root, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{":root":n}};if(o)return o.replace("%s",String(t))}return":root"};function W5(e){return Qn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function X5(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let a=0;a{e[n]||(e[n]={})})}function N(e,t,n){!e[t]&&n&&(e[t]=n)}function Fi(e){return!e||!e.startsWith("hsl")?e:IS(e)}function mr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=qi(Fi(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). -To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Q5(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const qn=e=>{try{return e()}catch{}},Z5=(e="mui")=>c5(e);function fd(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=G5({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:a,...i}=jp({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:a,opacity:{...nx(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||rx(o)},i}function J5(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:i=q5,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,...s}=e,c=Object.keys(n)[0],u=r||(n.light&&c!=="light"?"light":c),f=Z5(a),{[u]:d,light:h,dark:y,...v}=n,C={...v};let m=d;if((u==="dark"&&!("dark"in n)||u==="light"&&!("light"in n))&&(m=!0),!m)throw new Error(Mr(21,u));const g=fd(C,m,s,u);h&&!C.light&&fd(C,h,void 0,"light"),y&&!C.dark&&fd(C,y,void 0,"dark");let p={defaultColorScheme:u,...g,cssVarPrefix:a,colorSchemeSelector:l,getCssVar:f,colorSchemes:C,font:{...k5(g.typography),...g.font},spacing:Q5(s.spacing)};Object.keys(p.colorSchemes).forEach(O=>{const E=p.colorSchemes[O].palette,A=_=>{const k=_.split("-"),$=k[1],B=k[2];return f(_,E[$][B])};if(E.mode==="light"&&(N(E.common,"background","#fff"),N(E.common,"onBackground","#000")),E.mode==="dark"&&(N(E.common,"background","#000"),N(E.common,"onBackground","#fff")),K5(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){N(E.Alert,"errorColor",De(E.error.light,.6)),N(E.Alert,"infoColor",De(E.info.light,.6)),N(E.Alert,"successColor",De(E.success.light,.6)),N(E.Alert,"warningColor",De(E.warning.light,.6)),N(E.Alert,"errorFilledBg",A("palette-error-main")),N(E.Alert,"infoFilledBg",A("palette-info-main")),N(E.Alert,"successFilledBg",A("palette-success-main")),N(E.Alert,"warningFilledBg",A("palette-warning-main")),N(E.Alert,"errorFilledColor",qn(()=>E.getContrastText(E.error.main))),N(E.Alert,"infoFilledColor",qn(()=>E.getContrastText(E.info.main))),N(E.Alert,"successFilledColor",qn(()=>E.getContrastText(E.success.main))),N(E.Alert,"warningFilledColor",qn(()=>E.getContrastText(E.warning.main))),N(E.Alert,"errorStandardBg",Ne(E.error.light,.9)),N(E.Alert,"infoStandardBg",Ne(E.info.light,.9)),N(E.Alert,"successStandardBg",Ne(E.success.light,.9)),N(E.Alert,"warningStandardBg",Ne(E.warning.light,.9)),N(E.Alert,"errorIconColor",A("palette-error-main")),N(E.Alert,"infoIconColor",A("palette-info-main")),N(E.Alert,"successIconColor",A("palette-success-main")),N(E.Alert,"warningIconColor",A("palette-warning-main")),N(E.AppBar,"defaultBg",A("palette-grey-100")),N(E.Avatar,"defaultBg",A("palette-grey-400")),N(E.Button,"inheritContainedBg",A("palette-grey-300")),N(E.Button,"inheritContainedHoverBg",A("palette-grey-A100")),N(E.Chip,"defaultBorder",A("palette-grey-400")),N(E.Chip,"defaultAvatarColor",A("palette-grey-700")),N(E.Chip,"defaultIconColor",A("palette-grey-700")),N(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),N(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),N(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),N(E.LinearProgress,"primaryBg",Ne(E.primary.main,.62)),N(E.LinearProgress,"secondaryBg",Ne(E.secondary.main,.62)),N(E.LinearProgress,"errorBg",Ne(E.error.main,.62)),N(E.LinearProgress,"infoBg",Ne(E.info.main,.62)),N(E.LinearProgress,"successBg",Ne(E.success.main,.62)),N(E.LinearProgress,"warningBg",Ne(E.warning.main,.62)),N(E.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.11)`),N(E.Slider,"primaryTrack",Ne(E.primary.main,.62)),N(E.Slider,"secondaryTrack",Ne(E.secondary.main,.62)),N(E.Slider,"errorTrack",Ne(E.error.main,.62)),N(E.Slider,"infoTrack",Ne(E.info.main,.62)),N(E.Slider,"successTrack",Ne(E.success.main,.62)),N(E.Slider,"warningTrack",Ne(E.warning.main,.62));const _=js(E.background.default,.8);N(E.SnackbarContent,"bg",_),N(E.SnackbarContent,"color",qn(()=>E.getContrastText(_))),N(E.SpeedDialAction,"fabHoverBg",js(E.background.paper,.15)),N(E.StepConnector,"border",A("palette-grey-400")),N(E.StepContent,"border",A("palette-grey-400")),N(E.Switch,"defaultColor",A("palette-common-white")),N(E.Switch,"defaultDisabledColor",A("palette-grey-100")),N(E.Switch,"primaryDisabledColor",Ne(E.primary.main,.62)),N(E.Switch,"secondaryDisabledColor",Ne(E.secondary.main,.62)),N(E.Switch,"errorDisabledColor",Ne(E.error.main,.62)),N(E.Switch,"infoDisabledColor",Ne(E.info.main,.62)),N(E.Switch,"successDisabledColor",Ne(E.success.main,.62)),N(E.Switch,"warningDisabledColor",Ne(E.warning.main,.62)),N(E.TableCell,"border",Ne(ks(E.divider,1),.88)),N(E.Tooltip,"bg",ks(E.grey[700],.92))}if(E.mode==="dark"){N(E.Alert,"errorColor",Ne(E.error.light,.6)),N(E.Alert,"infoColor",Ne(E.info.light,.6)),N(E.Alert,"successColor",Ne(E.success.light,.6)),N(E.Alert,"warningColor",Ne(E.warning.light,.6)),N(E.Alert,"errorFilledBg",A("palette-error-dark")),N(E.Alert,"infoFilledBg",A("palette-info-dark")),N(E.Alert,"successFilledBg",A("palette-success-dark")),N(E.Alert,"warningFilledBg",A("palette-warning-dark")),N(E.Alert,"errorFilledColor",qn(()=>E.getContrastText(E.error.dark))),N(E.Alert,"infoFilledColor",qn(()=>E.getContrastText(E.info.dark))),N(E.Alert,"successFilledColor",qn(()=>E.getContrastText(E.success.dark))),N(E.Alert,"warningFilledColor",qn(()=>E.getContrastText(E.warning.dark))),N(E.Alert,"errorStandardBg",De(E.error.light,.9)),N(E.Alert,"infoStandardBg",De(E.info.light,.9)),N(E.Alert,"successStandardBg",De(E.success.light,.9)),N(E.Alert,"warningStandardBg",De(E.warning.light,.9)),N(E.Alert,"errorIconColor",A("palette-error-main")),N(E.Alert,"infoIconColor",A("palette-info-main")),N(E.Alert,"successIconColor",A("palette-success-main")),N(E.Alert,"warningIconColor",A("palette-warning-main")),N(E.AppBar,"defaultBg",A("palette-grey-900")),N(E.AppBar,"darkBg",A("palette-background-paper")),N(E.AppBar,"darkColor",A("palette-text-primary")),N(E.Avatar,"defaultBg",A("palette-grey-600")),N(E.Button,"inheritContainedBg",A("palette-grey-800")),N(E.Button,"inheritContainedHoverBg",A("palette-grey-700")),N(E.Chip,"defaultBorder",A("palette-grey-700")),N(E.Chip,"defaultAvatarColor",A("palette-grey-300")),N(E.Chip,"defaultIconColor",A("palette-grey-300")),N(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),N(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),N(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),N(E.LinearProgress,"primaryBg",De(E.primary.main,.5)),N(E.LinearProgress,"secondaryBg",De(E.secondary.main,.5)),N(E.LinearProgress,"errorBg",De(E.error.main,.5)),N(E.LinearProgress,"infoBg",De(E.info.main,.5)),N(E.LinearProgress,"successBg",De(E.success.main,.5)),N(E.LinearProgress,"warningBg",De(E.warning.main,.5)),N(E.Skeleton,"bg",`rgba(${A("palette-text-primaryChannel")} / 0.13)`),N(E.Slider,"primaryTrack",De(E.primary.main,.5)),N(E.Slider,"secondaryTrack",De(E.secondary.main,.5)),N(E.Slider,"errorTrack",De(E.error.main,.5)),N(E.Slider,"infoTrack",De(E.info.main,.5)),N(E.Slider,"successTrack",De(E.success.main,.5)),N(E.Slider,"warningTrack",De(E.warning.main,.5));const _=js(E.background.default,.98);N(E.SnackbarContent,"bg",_),N(E.SnackbarContent,"color",qn(()=>E.getContrastText(_))),N(E.SpeedDialAction,"fabHoverBg",js(E.background.paper,.15)),N(E.StepConnector,"border",A("palette-grey-600")),N(E.StepContent,"border",A("palette-grey-600")),N(E.Switch,"defaultColor",A("palette-grey-300")),N(E.Switch,"defaultDisabledColor",A("palette-grey-600")),N(E.Switch,"primaryDisabledColor",De(E.primary.main,.55)),N(E.Switch,"secondaryDisabledColor",De(E.secondary.main,.55)),N(E.Switch,"errorDisabledColor",De(E.error.main,.55)),N(E.Switch,"infoDisabledColor",De(E.info.main,.55)),N(E.Switch,"successDisabledColor",De(E.success.main,.55)),N(E.Switch,"warningDisabledColor",De(E.warning.main,.55)),N(E.TableCell,"border",De(ks(E.divider,1),.68)),N(E.Tooltip,"bg",ks(E.grey[700],.92))}mr(E.background,"default"),mr(E.background,"paper"),mr(E.common,"background"),mr(E.common,"onBackground"),mr(E,"divider"),Object.keys(E).forEach(_=>{const k=E[_];k&&typeof k=="object"&&(k.main&&N(E[_],"mainChannel",qi(Fi(k.main))),k.light&&N(E[_],"lightChannel",qi(Fi(k.light))),k.dark&&N(E[_],"darkChannel",qi(Fi(k.dark))),k.contrastText&&N(E[_],"contrastTextChannel",qi(Fi(k.contrastText))),_==="text"&&(mr(E[_],"primary"),mr(E[_],"secondary")),_==="action"&&(k.active&&mr(E[_],"active"),k.selected&&mr(E[_],"selected")))})}),p=t.reduce((O,E)=>St(O,E),p);const x={prefix:a,disableCssColorScheme:o,shouldSkipGeneratingVar:i,getSelector:Y5(p)},{vars:w,generateThemeVars:T,generateStyleSheets:R}=d5(p,x);return p.vars=w,Object.entries(p.colorSchemes[p.defaultColorScheme]).forEach(([O,E])=>{p[O]=E}),p.generateThemeVars=T,p.generateStyleSheets=R,p.generateSpacing=function(){return DS(s.spacing,Uu(this))},p.getColorSchemeSelector=p5(l),p.spacing=p.generateSpacing(),p.shouldSkipGeneratingVar=i,p.unstable_sxConfig={...as,...s==null?void 0:s.unstable_sxConfig},p.unstable_sx=function(E){return Qo({sx:E,theme:this})},p.toRuntimeSource=X5,p}function o0(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Rh({...n===!0?{}:n.palette,mode:t})})}function of(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...i}=e,l=a||"light",s=o==null?void 0:o[l],c={...o,...n?{[l]:{...typeof s!="boolean"&&s,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return jp(e,...t);let u=n;"palette"in e||c[l]&&(c[l]!==!0?u=c[l].palette:l==="dark"&&(u={mode:"dark"}));const f=jp({...e,palette:u},...t);return f.defaultColorScheme=l,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},o0(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},o0(f,"light",c.light)),f}return!n&&!("light"in c)&&l==="light"&&(c.light=!0),J5({...i,colorSchemes:c,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const af=of();function Jo(){const e=qu(af);return e[Pn]||e}function Th({props:e,name:t}){return vh({props:e,name:t,defaultTheme:af,themeId:Pn})}function ox(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Wt=e=>ox(e)&&e!=="classes",H=HS({themeId:Pn,defaultTheme:af,rootShouldForwardProp:Wt});function a0({theme:e,...t}){const n=Pn in e?e[Pn]:void 0;return b.jsx(ZS,{...t,themeId:n?Pn:void 0,theme:n||e})}const $s={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:eO,useColorScheme:ij,getInitColorSchemeScript:lj}=s5({themeId:Pn,theme:()=>of({cssVariables:!0}),colorSchemeStorageKey:$s.colorSchemeStorageKey,modeStorageKey:$s.modeStorageKey,defaultColorScheme:{light:$s.defaultLightColorScheme,dark:$s.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:ex(e.palette,e.typography)};return t.unstable_sx=function(r){return Qo({sx:r,theme:this})},t}}),tO=eO;function nO({theme:e,...t}){return typeof e=="function"?b.jsx(a0,{theme:e,...t}):"colorSchemes"in(Pn in e?e[Pn]:e)?b.jsx(tO,{theme:e,...t}):b.jsx(a0,{theme:e,...t})}function rO(e){return b.jsx(A4,{...e,defaultTheme:af,themeId:Pn})}function Oh(e){return function(n){return b.jsx(rO,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function oO(){return hh}const i0={theme:void 0};function re(e){let t,n;return r=>{let o=t;return(o===void 0||r.theme!==n)&&(i0.theme=r.theme,o=e(i0),t=o,n=r.theme),o}}function le(e){return n5(e)}function aO(e){return te("MuiSvgIcon",e)}ee("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const iO=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${I(t)}`,`fontSize${I(n)}`]};return ne(o,aO,r)},lO=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${I(n.color)}`],t[`fontSize${I(n.fontSize)}`]]}})(re(({theme:e})=>{var t,n,r,o,a,i,l,s,c,u,f,d,h,y;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:v=>!v.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((s=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:s.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,v])=>v&&v.main).map(([v])=>{var C,m;return{props:{color:v},style:{color:(m=(C=(e.vars??e).palette)==null?void 0:C[v])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(y=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:y.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Yc=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:l="svg",fontSize:s="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24",...h}=r,y=S.isValidElement(o)&&o.type==="svg",v={...r,color:i,component:l,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:y},C={};u||(C.viewBox=d);const m=iO(v);return b.jsxs(lO,{as:l,className:V(m.root,a),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...C,...h,...y&&o.props,ownerState:v,children:[y?o.props.children:o,f?b.jsx("title",{children:f}):null]})});Yc&&(Yc.muiName="SvgIcon");function Et(e,t){function n(r,o){return b.jsx(Yc,{"data-testid":`${t}Icon`,ref:o,...r,children:e})}return n.muiName=Yc.muiName,S.memo(S.forwardRef(n))}function ax(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Dp(e,t){return Dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Dp(e,t)}function ix(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dp(e,t)}const l0={disabled:!1},Wc=En.createContext(null);var sO=function(t){return t.scrollTop},Yi="unmounted",Co="exited",Eo="entering",pa="entered",Np="exiting",Gn=function(e){ix(t,e);function t(r,o){var a;a=e.call(this,r,o)||this;var i=o,l=i&&!i.isMounting?r.enter:r.appear,s;return a.appearStatus=null,r.in?l?(s=Co,a.appearStatus=Eo):s=pa:r.unmountOnExit||r.mountOnEnter?s=Yi:s=Co,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var i=o.in;return i&&a.status===Yi?{status:Co}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var a=null;if(o!==this.props){var i=this.state.status;this.props.in?i!==Eo&&i!==pa&&(a=Eo):(i===Eo||i===pa)&&(a=Np)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,a,i,l;return a=i=l=o,o!=null&&typeof o!="number"&&(a=o.exit,i=o.enter,l=o.appear!==void 0?o.appear:i),{exit:a,enter:i,appear:l}},n.updateStatus=function(o,a){if(o===void 0&&(o=!1),a!==null)if(this.cancelNextCallback(),a===Eo){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ds.findDOMNode(this);i&&sO(i)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Co&&this.setState({status:Yi})},n.performEnter=function(o){var a=this,i=this.props.enter,l=this.context?this.context.isMounting:o,s=this.props.nodeRef?[l]:[ds.findDOMNode(this),l],c=s[0],u=s[1],f=this.getTimeouts(),d=l?f.appear:f.enter;if(!o&&!i||l0.disabled){this.safeSetState({status:pa},function(){a.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Eo},function(){a.props.onEntering(c,u),a.onTransitionEnd(d,function(){a.safeSetState({status:pa},function(){a.props.onEntered(c,u)})})})},n.performExit=function(){var o=this,a=this.props.exit,i=this.getTimeouts(),l=this.props.nodeRef?void 0:ds.findDOMNode(this);if(!a||l0.disabled){this.safeSetState({status:Co},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Np},function(){o.props.onExiting(l),o.onTransitionEnd(i.exit,function(){o.safeSetState({status:Co},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},n.setNextCallback=function(o){var a=this,i=!0;return this.nextCallback=function(l){i&&(i=!1,a.nextCallback=null,o(l))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(o,a){this.setNextCallback(a);var i=this.props.nodeRef?this.props.nodeRef.current:ds.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!i||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=s[0],u=s[1];this.props.addEndListener(c,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Yi)return null;var a=this.props,i=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=ax(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return En.createElement(Wc.Provider,{value:null},typeof i=="function"?i(o,l):En.cloneElement(En.Children.only(i),l))},t}(En.Component);Gn.contextType=Wc;Gn.propTypes={};function la(){}Gn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:la,onEntering:la,onEntered:la,onExit:la,onExiting:la,onExited:la};Gn.UNMOUNTED=Yi;Gn.EXITED=Co;Gn.ENTERING=Eo;Gn.ENTERED=pa;Gn.EXITING=Np;function cO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ah(e,t){var n=function(a){return t&&S.isValidElement(a)?t(a):a},r=Object.create(null);return e&&S.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function uO(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i,l={};for(var s in t){if(r[s])for(i=0;ie.scrollTop;function Za(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function hO(e){return te("MuiCollapse",e)}ee("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const gO=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return ne(r,hO,n)},yO=H("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(re(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),vO=H("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),bO=H("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Bp=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiCollapse"}),{addEndListener:o,children:a,className:i,collapsedSize:l="0px",component:s,easing:c,in:u,onEnter:f,onEntered:d,onEntering:h,onExit:y,onExited:v,onExiting:C,orientation:m="vertical",style:g,timeout:p=tx.standard,TransitionComponent:x=Gn,...w}=r,T={...r,orientation:m,collapsedSize:l},R=gO(T),O=Jo(),E=Wr(),A=S.useRef(null),_=S.useRef(),k=typeof l=="number"?`${l}px`:l,$=m==="horizontal",B=$?"width":"height",D=S.useRef(null),M=Ze(n,D),z=G=>se=>{if(G){const ce=D.current;se===void 0?G(ce):G(ce,se)}},j=()=>A.current?A.current[$?"clientWidth":"clientHeight"]:0,U=z((G,se)=>{A.current&&$&&(A.current.style.position="absolute"),G.style[B]=k,f&&f(G,se)}),P=z((G,se)=>{const ce=j();A.current&&$&&(A.current.style.position="");const{duration:ue,easing:J}=Za({style:g,timeout:p,easing:c},{mode:"enter"});if(p==="auto"){const oe=O.transitions.getAutoHeightDuration(ce);G.style.transitionDuration=`${oe}ms`,_.current=oe}else G.style.transitionDuration=typeof ue=="string"?ue:`${ue}ms`;G.style[B]=`${ce}px`,G.style.transitionTimingFunction=J,h&&h(G,se)}),F=z((G,se)=>{G.style[B]="auto",d&&d(G,se)}),Q=z(G=>{G.style[B]=`${j()}px`,y&&y(G)}),W=z(v),q=z(G=>{const se=j(),{duration:ce,easing:ue}=Za({style:g,timeout:p,easing:c},{mode:"exit"});if(p==="auto"){const J=O.transitions.getAutoHeightDuration(se);G.style.transitionDuration=`${J}ms`,_.current=J}else G.style.transitionDuration=typeof ce=="string"?ce:`${ce}ms`;G.style[B]=k,G.style.transitionTimingFunction=ue,C&&C(G)}),Z=G=>{p==="auto"&&E.start(_.current||0,G),o&&o(D.current,G)};return b.jsx(x,{in:u,onEnter:U,onEntered:F,onEntering:P,onExit:Q,onExited:W,onExiting:q,addEndListener:Z,nodeRef:D,timeout:p==="auto"?null:p,...w,children:(G,se)=>b.jsx(yO,{as:s,className:V(R.root,i,{entered:R.entered,exited:!u&&k==="0px"&&R.hidden}[G]),style:{[$?"minWidth":"minHeight"]:k,...g},ref:M,...se,ownerState:{...T,state:G},children:b.jsx(vO,{ownerState:{...T,state:G},className:R.wrapper,ref:A,children:b.jsx(bO,{ownerState:{...T,state:G},className:R.wrapperInner,children:a})})})})});Bp&&(Bp.muiSupportAuto=!0);function SO(e){return te("MuiPaper",e)}ee("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const xO=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ne(a,SO,o)},CO=H("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(re(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),_r=S.forwardRef(function(t,n){var h;const r=le({props:t,name:"MuiPaper"}),o=Jo(),{className:a,component:i="div",elevation:l=1,square:s=!1,variant:c="elevation",...u}=r,f={...r,component:i,elevation:l,square:s,variant:c},d=xO(f);return b.jsx(CO,{as:i,ownerState:f,className:V(d.root,a),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(h=o.vars.overlays)==null?void 0:h[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${ke("#fff",$p(l))}, ${ke("#fff",$p(l))})`}},...u.style}})}),sx=S.createContext({});function Jt(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...d}=a,h=u[e]||r,y=WS(f[e],o),{props:{component:v,...C},internalRef:m}=YS({className:n,...s,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:y}),g=Ze(m,y==null?void 0:y.ref,t.ref),p=i?i(C):{},x={...o,...p},w=e==="root"?v||c:v,T=Ra(h,{...e==="root"&&!c&&!u[e]&&l,...e!=="root"&&!u[e]&&l,...C,...w&&{as:w},ref:g},x);return Object.keys(p).forEach(R=>{delete T[R]}),[h,T]}function EO(e){return te("MuiAccordion",e)}const Ds=ee("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),wO=e=>{const{classes:t,square:n,expanded:r,disabled:o,disableGutters:a}=e;return ne({root:["root",!n&&"rounded",r&&"expanded",o&&"disabled",!a&&"gutters"],heading:["heading"],region:["region"]},EO,t)},RO=H(_r,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ds.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(re(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${Ds.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${Ds.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),re(({theme:e})=>({variants:[{props:t=>!t.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:t=>!t.disableGutters,style:{[`&.${Ds.expanded}`]:{margin:"16px 0"}}}]}))),TO=H("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(e,t)=>t.heading})({all:"unset"}),OO=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiAccordion"}),{children:o,className:a,defaultExpanded:i=!1,disabled:l=!1,disableGutters:s=!1,expanded:c,onChange:u,square:f=!1,slots:d={},slotProps:h={},TransitionComponent:y,TransitionProps:v,...C}=r,[m,g]=Hl({controlled:c,default:i,name:"Accordion",state:"expanded"}),p=S.useCallback(M=>{g(!m),u&&u(M,!m)},[m,u,g]),[x,...w]=S.Children.toArray(o),T=S.useMemo(()=>({expanded:m,disabled:l,disableGutters:s,toggle:p}),[m,l,s,p]),R={...r,square:f,disabled:l,disableGutters:s,expanded:m},O=wO(R),E={transition:y,...d},A={transition:v,...h},_={slots:E,slotProps:A},[k,$]=Jt("heading",{elementType:TO,externalForwardedProps:_,className:O.heading,ownerState:R}),[B,D]=Jt("transition",{elementType:Bp,externalForwardedProps:_,ownerState:R});return b.jsxs(RO,{className:V(O.root,a),ref:n,ownerState:R,square:f,...C,children:[b.jsx(k,{...$,children:b.jsx(sx.Provider,{value:T,children:x})}),b.jsx(B,{in:m,timeout:"auto",...D,children:b.jsx("div",{"aria-labelledby":x.props.id,id:x.props["aria-controls"],role:"region",className:O.region,children:w})})]})});function AO(e){return te("MuiAccordionDetails",e)}ee("MuiAccordionDetails",["root"]);const MO=e=>{const{classes:t}=e;return ne({root:["root"]},AO,t)},_O=H("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(re(({theme:e})=>({padding:e.spacing(1,2,2)}))),zO=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiAccordionDetails"}),{className:o,...a}=r,i=r,l=MO(i);return b.jsx(_O,{className:V(l.root,o),ref:n,ownerState:i,...a})});class Xc{constructor(){Si(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Xc}static use(){const t=qS(Xc.create).current,[n,r]=S.useState(!1);return t.shouldMount=n,t.setShouldMount=r,S.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=jO(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function kO(){return Xc.use()}function jO(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function $O(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:s,timeout:c}=e,[u,f]=S.useState(!1),d=V(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:i,height:i,top:-(i/2)+a,left:-(i/2)+o},y=V(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&f(!0),S.useEffect(()=>{if(!l&&s!=null){const v=setTimeout(s,c);return()=>{clearTimeout(v)}}},[s,l,c]),b.jsx("span",{className:d,style:h,children:b.jsx("span",{className:y})})}const hn=ee("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Lp=550,DO=80,NO=rs` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,BO=rs` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,LO=rs` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,UO=H("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),HO=H($O,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${hn.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${NO}; - animation-duration: ${Lp}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - &.${hn.ripplePulsate} { - animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; - } - - & .${hn.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${hn.childLeaving} { - opacity: 0; - animation-name: ${BO}; - animation-duration: ${Lp}ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - } - - & .${hn.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${LO}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,PO=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:i,...l}=r,[s,c]=S.useState([]),u=S.useRef(0),f=S.useRef(null);S.useEffect(()=>{f.current&&(f.current(),f.current=null)},[s]);const d=S.useRef(!1),h=Wr(),y=S.useRef(null),v=S.useRef(null),C=S.useCallback(x=>{const{pulsate:w,rippleX:T,rippleY:R,rippleSize:O,cb:E}=x;c(A=>[...A,b.jsx(HO,{classes:{ripple:V(a.ripple,hn.ripple),rippleVisible:V(a.rippleVisible,hn.rippleVisible),ripplePulsate:V(a.ripplePulsate,hn.ripplePulsate),child:V(a.child,hn.child),childLeaving:V(a.childLeaving,hn.childLeaving),childPulsate:V(a.childPulsate,hn.childPulsate)},timeout:Lp,pulsate:w,rippleX:T,rippleY:R,rippleSize:O},u.current)]),u.current+=1,f.current=E},[a]),m=S.useCallback((x={},w={},T=()=>{})=>{const{pulsate:R=!1,center:O=o||w.pulsate,fakeElement:E=!1}=w;if((x==null?void 0:x.type)==="mousedown"&&d.current){d.current=!1;return}(x==null?void 0:x.type)==="touchstart"&&(d.current=!0);const A=E?null:v.current,_=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,$,B;if(O||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)k=Math.round(_.width/2),$=Math.round(_.height/2);else{const{clientX:D,clientY:M}=x.touches&&x.touches.length>0?x.touches[0]:x;k=Math.round(D-_.left),$=Math.round(M-_.top)}if(O)B=Math.sqrt((2*_.width**2+_.height**2)/3),B%2===0&&(B+=1);else{const D=Math.max(Math.abs((A?A.clientWidth:0)-k),k)*2+2,M=Math.max(Math.abs((A?A.clientHeight:0)-$),$)*2+2;B=Math.sqrt(D**2+M**2)}x!=null&&x.touches?y.current===null&&(y.current=()=>{C({pulsate:R,rippleX:k,rippleY:$,rippleSize:B,cb:T})},h.start(DO,()=>{y.current&&(y.current(),y.current=null)})):C({pulsate:R,rippleX:k,rippleY:$,rippleSize:B,cb:T})},[o,C,h]),g=S.useCallback(()=>{m({},{pulsate:!0})},[m]),p=S.useCallback((x,w)=>{if(h.clear(),(x==null?void 0:x.type)==="touchend"&&y.current){y.current(),y.current=null,h.start(0,()=>{p(x,w)});return}y.current=null,c(T=>T.length>0?T.slice(1):T),f.current=w},[h]);return S.useImperativeHandle(n,()=>({pulsate:g,start:m,stop:p}),[g,m,p]),b.jsx(UO,{className:V(hn.root,a.root,i),ref:v,...l,children:b.jsx(Mh,{component:null,exit:!0,children:s})})});function IO(e){return te("MuiButtonBase",e)}const VO=ee("MuiButtonBase",["root","disabled","focusVisible"]),GO=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ne({root:["root",t&&"disabled",n&&"focusVisible"]},IO,o);return n&&r&&(i.root+=` ${r}`),i},qO=H("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gi=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:i,className:l,component:s="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:d=!1,focusVisibleClassName:h,LinkComponent:y="a",onBlur:v,onClick:C,onContextMenu:m,onDragLeave:g,onFocus:p,onFocusVisible:x,onKeyDown:w,onKeyUp:T,onMouseDown:R,onMouseLeave:O,onMouseUp:E,onTouchEnd:A,onTouchMove:_,onTouchStart:k,tabIndex:$=0,TouchRippleProps:B,touchRippleRef:D,type:M,...z}=r,j=S.useRef(null),U=kO(),P=Ze(U.ref,D),[F,Q]=S.useState(!1);c&&F&&Q(!1),S.useImperativeHandle(o,()=>({focusVisible:()=>{Q(!0),j.current.focus()}}),[]);const W=U.shouldMount&&!u&&!c;S.useEffect(()=>{F&&d&&!u&&U.pulsate()},[u,d,F,U]);function q(Y,Pe,Xt=f){return Un(ge=>(Pe&&Pe(ge),Xt||U[Y](ge),!0))}const Z=q("start",R),G=q("stop",m),se=q("stop",g),ce=q("stop",E),ue=q("stop",Y=>{F&&Y.preventDefault(),O&&O(Y)}),J=q("start",k),oe=q("stop",A),X=q("stop",_),ae=q("stop",Y=>{Qa(Y.target)||Q(!1),v&&v(Y)},!1),ie=Un(Y=>{j.current||(j.current=Y.currentTarget),Qa(Y.target)&&(Q(!0),x&&x(Y)),p&&p(Y)}),me=()=>{const Y=j.current;return s&&s!=="button"&&!(Y.tagName==="A"&&Y.href)},Ce=Un(Y=>{d&&!Y.repeat&&F&&Y.key===" "&&U.stop(Y,()=>{U.start(Y)}),Y.target===Y.currentTarget&&me()&&Y.key===" "&&Y.preventDefault(),w&&w(Y),Y.target===Y.currentTarget&&me()&&Y.key==="Enter"&&!c&&(Y.preventDefault(),C&&C(Y))}),Le=Un(Y=>{d&&Y.key===" "&&F&&!Y.defaultPrevented&&U.stop(Y,()=>{U.pulsate(Y)}),T&&T(Y),C&&Y.target===Y.currentTarget&&me()&&Y.key===" "&&!Y.defaultPrevented&&C(Y)});let Ue=s;Ue==="button"&&(z.href||z.to)&&(Ue=y);const He={};Ue==="button"?(He.type=M===void 0?"button":M,He.disabled=c):(!z.href&&!z.to&&(He.role="button"),c&&(He["aria-disabled"]=c));const Ge=Ze(n,j),Se={...r,centerRipple:a,component:s,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:d,tabIndex:$,focusVisible:F},ht=GO(Se);return b.jsxs(qO,{as:Ue,className:V(ht.root,l),ownerState:Se,onBlur:ae,onClick:C,onContextMenu:G,onFocus:ie,onKeyDown:Ce,onKeyUp:Le,onMouseDown:Z,onMouseLeave:ue,onMouseUp:ce,onDragLeave:se,onTouchEnd:oe,onTouchMove:X,onTouchStart:J,ref:Ge,tabIndex:c?-1:$,type:M,...He,...z,children:[i,W?b.jsx(PO,{ref:P,center:a,...B}):null]})});function FO(e){return te("MuiAccordionSummary",e)}const Ta=ee("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),YO=e=>{const{classes:t,expanded:n,disabled:r,disableGutters:o}=e;return ne({root:["root",n&&"expanded",r&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},FO,t)},WO=H(gi,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(re(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],t),[`&.${Ta.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ta.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Ta.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${Ta.expanded}`]:{minHeight:64}}}]}})),XO=H("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(re(({theme:e})=>({display:"flex",flexGrow:1,margin:"12px 0",variants:[{props:t=>!t.disableGutters,style:{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Ta.expanded}`]:{margin:"20px 0"}}}]}))),KO=H("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(re(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${Ta.expanded}`]:{transform:"rotate(180deg)"}}))),QO=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiAccordionSummary"}),{children:o,className:a,expandIcon:i,focusVisibleClassName:l,onClick:s,...c}=r,{disabled:u=!1,disableGutters:f,expanded:d,toggle:h}=S.useContext(sx),y=m=>{h&&h(m),s&&s(m)},v={...r,expanded:d,disabled:u,disableGutters:f},C=YO(v);return b.jsxs(WO,{focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":d,className:V(C.root,a),focusVisibleClassName:V(C.focusVisible,l),onClick:y,ref:n,ownerState:v,...c,children:[b.jsx(XO,{className:C.content,ownerState:v,children:o}),i&&b.jsx(KO,{className:C.expandIconWrapper,ownerState:v,children:i})]})});function ZO(e){return typeof e.main=="string"}function JO(e,t=[]){if(!ZO(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ln(e=[]){return([,t])=>t&&JO(t,e)}function eA(e){return te("MuiIconButton",e)}const tA=ee("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nA=e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e,i={root:["root",n&&"disabled",r!=="default"&&`color${I(r)}`,o&&`edge${I(o)}`,`size${I(a)}`]};return ne(i,eA,t)},rA=H(gi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${I(n.color)}`],n.edge&&t[`edge${I(n.edge)}`],t[`size${I(n.size)}`]]}})(re(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:{disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),re(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke((e.vars||e).palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${tA.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),s0=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:i,color:l="default",disabled:s=!1,disableFocusRipple:c=!1,disableRipple:u=!1,size:f="medium",...d}=r,h={...r,edge:o,color:l,disabled:s,disableFocusRipple:c,disableRipple:u,size:f},y=nA(h);return b.jsx(rA,{className:V(y.root,i),centerRipple:!0,focusRipple:!c,disabled:s,disableRipple:u,ref:n,...d,ownerState:h,children:a})});function oA(e){return te("MuiTypography",e)}const aA=ee("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),c0=aA,iA={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},lA=oO(),sA=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e,l={root:["root",a,e.align!=="inherit"&&`align${I(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return ne(l,oA,i)},cA=H("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${I(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(re(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(ln()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${I(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),u0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ot=S.forwardRef(function(t,n){const{color:r,...o}=le({props:t,name:"MuiTypography"}),a=!iA[r],i=lA({...o,...a&&{color:r}}),{align:l="inherit",className:s,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:d=!1,variant:h="body1",variantMapping:y=u0,...v}=i,C={...i,align:l,color:r,className:s,component:c,gutterBottom:u,noWrap:f,paragraph:d,variant:h,variantMapping:y},m=c||(d?"p":y[h]||u0[h])||"span",g=sA(C);return b.jsx(cA,{as:m,ref:n,className:V(g.root,s),...v,ownerState:C,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...v.style}})});var Vt="top",An="bottom",Mn="right",Gt="left",_h="auto",cs=[Vt,An,Mn,Gt],Ja="start",Pl="end",uA="clippingParents",cx="viewport",zi="popper",fA="reference",f0=cs.reduce(function(e,t){return e.concat([t+"-"+Ja,t+"-"+Pl])},[]),ux=[].concat(cs,[_h]).reduce(function(e,t){return e.concat([t,t+"-"+Ja,t+"-"+Pl])},[]),dA="beforeRead",pA="read",mA="afterRead",hA="beforeMain",gA="main",yA="afterMain",vA="beforeWrite",bA="write",SA="afterWrite",xA=[dA,pA,mA,hA,gA,yA,vA,bA,SA];function lr(e){return e?(e.nodeName||"").toLowerCase():null}function sn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Go(e){var t=sn(e).Element;return e instanceof t||e instanceof Element}function Rn(e){var t=sn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function zh(e){if(typeof ShadowRoot>"u")return!1;var t=sn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function CA(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!Rn(a)||!lr(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function EA(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(r){var o=t.elements[r],a=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=i.reduce(function(s,c){return s[c]="",s},{});!Rn(o)||!lr(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(s){o.removeAttribute(s)}))})}}const wA={name:"applyStyles",enabled:!0,phase:"write",fn:CA,effect:EA,requires:["computeStyles"]};function rr(e){return e.split("-")[0]}var jo=Math.max,Kc=Math.min,ei=Math.round;function Up(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function fx(){return!/^((?!chrome|android).)*safari/i.test(Up())}function ti(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Rn(e)&&(o=e.offsetWidth>0&&ei(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ei(r.height)/e.offsetHeight||1);var i=Go(e)?sn(e):window,l=i.visualViewport,s=!fx()&&n,c=(r.left+(s&&l?l.offsetLeft:0))/o,u=(r.top+(s&&l?l.offsetTop:0))/a,f=r.width/o,d=r.height/a;return{width:f,height:d,top:u,right:c+f,bottom:u+d,left:c,x:c,y:u}}function kh(e){var t=ti(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function dx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zh(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zr(e){return sn(e).getComputedStyle(e)}function RA(e){return["table","td","th"].indexOf(lr(e))>=0}function mo(e){return((Go(e)?e.ownerDocument:e.document)||window.document).documentElement}function lf(e){return lr(e)==="html"?e:e.assignedSlot||e.parentNode||(zh(e)?e.host:null)||mo(e)}function d0(e){return!Rn(e)||zr(e).position==="fixed"?null:e.offsetParent}function TA(e){var t=/firefox/i.test(Up()),n=/Trident/i.test(Up());if(n&&Rn(e)){var r=zr(e);if(r.position==="fixed")return null}var o=lf(e);for(zh(o)&&(o=o.host);Rn(o)&&["html","body"].indexOf(lr(o))<0;){var a=zr(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function us(e){for(var t=sn(e),n=d0(e);n&&RA(n)&&zr(n).position==="static";)n=d0(n);return n&&(lr(n)==="html"||lr(n)==="body"&&zr(n).position==="static")?t:n||TA(e)||t}function jh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fl(e,t,n){return jo(e,Kc(t,n))}function OA(e,t,n){var r=fl(e,t,n);return r>n?n:r}function px(){return{top:0,right:0,bottom:0,left:0}}function mx(e){return Object.assign({},px(),e)}function hx(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var AA=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mx(typeof t!="number"?t:hx(t,cs))};function MA(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=rr(n.placement),s=jh(l),c=[Gt,Mn].indexOf(l)>=0,u=c?"height":"width";if(!(!a||!i)){var f=AA(o.padding,n),d=kh(a),h=s==="y"?Vt:Gt,y=s==="y"?An:Mn,v=n.rects.reference[u]+n.rects.reference[s]-i[s]-n.rects.popper[u],C=i[s]-n.rects.reference[s],m=us(a),g=m?s==="y"?m.clientHeight||0:m.clientWidth||0:0,p=v/2-C/2,x=f[h],w=g-d[u]-f[y],T=g/2-d[u]/2+p,R=fl(x,T,w),O=s;n.modifiersData[r]=(t={},t[O]=R,t.centerOffset=R-T,t)}}function _A(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||dx(t.elements.popper,o)&&(t.elements.arrow=o))}const zA={name:"arrow",enabled:!0,phase:"main",fn:MA,effect:_A,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ni(e){return e.split("-")[1]}var kA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jA(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ei(n*o)/o||0,y:ei(r*o)/o||0}}function p0(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,d=i.x,h=d===void 0?0:d,y=i.y,v=y===void 0?0:y,C=typeof u=="function"?u({x:h,y:v}):{x:h,y:v};h=C.x,v=C.y;var m=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),p=Gt,x=Vt,w=window;if(c){var T=us(n),R="clientHeight",O="clientWidth";if(T===sn(n)&&(T=mo(n),zr(T).position!=="static"&&l==="absolute"&&(R="scrollHeight",O="scrollWidth")),T=T,o===Vt||(o===Gt||o===Mn)&&a===Pl){x=An;var E=f&&T===w&&w.visualViewport?w.visualViewport.height:T[R];v-=E-r.height,v*=s?1:-1}if(o===Gt||(o===Vt||o===An)&&a===Pl){p=Mn;var A=f&&T===w&&w.visualViewport?w.visualViewport.width:T[O];h-=A-r.width,h*=s?1:-1}}var _=Object.assign({position:l},c&&kA),k=u===!0?jA({x:h,y:v},sn(n)):{x:h,y:v};if(h=k.x,v=k.y,s){var $;return Object.assign({},_,($={},$[x]=g?"0":"",$[p]=m?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",$))}return Object.assign({},_,(t={},t[x]=g?v+"px":"",t[p]=m?h+"px":"",t.transform="",t))}function $A(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,i=a===void 0?!0:a,l=n.roundOffsets,s=l===void 0?!0:l,c={placement:rr(t.placement),variation:ni(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,p0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,p0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const DA={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$A,data:{}};var Ns={passive:!0};function NA(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,i=r.resize,l=i===void 0?!0:i,s=sn(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",n.update,Ns)}),l&&s.addEventListener("resize",n.update,Ns),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Ns)}),l&&s.removeEventListener("resize",n.update,Ns)}}const BA={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:NA,data:{}};var LA={left:"right",right:"left",bottom:"top",top:"bottom"};function rc(e){return e.replace(/left|right|bottom|top/g,function(t){return LA[t]})}var UA={start:"end",end:"start"};function m0(e){return e.replace(/start|end/g,function(t){return UA[t]})}function $h(e){var t=sn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Dh(e){return ti(mo(e)).left+$h(e).scrollLeft}function HA(e,t){var n=sn(e),r=mo(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=fx();(c||!c&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Dh(e),y:s}}function PA(e){var t,n=mo(e),r=$h(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=jo(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=jo(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Dh(e),s=-r.scrollTop;return zr(o||n).direction==="rtl"&&(l+=jo(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}function Nh(e){var t=zr(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function gx(e){return["html","body","#document"].indexOf(lr(e))>=0?e.ownerDocument.body:Rn(e)&&Nh(e)?e:gx(lf(e))}function dl(e,t){var n;t===void 0&&(t=[]);var r=gx(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=sn(r),i=o?[a].concat(a.visualViewport||[],Nh(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(dl(lf(i)))}function Hp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function IA(e,t){var n=ti(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function h0(e,t,n){return t===cx?Hp(HA(e,n)):Go(t)?IA(t,n):Hp(PA(mo(e)))}function VA(e){var t=dl(lf(e)),n=["absolute","fixed"].indexOf(zr(e).position)>=0,r=n&&Rn(e)?us(e):e;return Go(r)?t.filter(function(o){return Go(o)&&dx(o,r)&&lr(o)!=="body"}):[]}function GA(e,t,n,r){var o=t==="clippingParents"?VA(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce(function(s,c){var u=h0(e,c,r);return s.top=jo(u.top,s.top),s.right=Kc(u.right,s.right),s.bottom=Kc(u.bottom,s.bottom),s.left=jo(u.left,s.left),s},h0(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function yx(e){var t=e.reference,n=e.element,r=e.placement,o=r?rr(r):null,a=r?ni(r):null,i=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,s;switch(o){case Vt:s={x:i,y:t.y-n.height};break;case An:s={x:i,y:t.y+t.height};break;case Mn:s={x:t.x+t.width,y:l};break;case Gt:s={x:t.x-n.width,y:l};break;default:s={x:t.x,y:t.y}}var c=o?jh(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Ja:s[c]=s[c]-(t[u]/2-n[u]/2);break;case Pl:s[c]=s[c]+(t[u]/2-n[u]/2);break}}return s}function Il(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,i=a===void 0?e.strategy:a,l=n.boundary,s=l===void 0?uA:l,c=n.rootBoundary,u=c===void 0?cx:c,f=n.elementContext,d=f===void 0?zi:f,h=n.altBoundary,y=h===void 0?!1:h,v=n.padding,C=v===void 0?0:v,m=mx(typeof C!="number"?C:hx(C,cs)),g=d===zi?fA:zi,p=e.rects.popper,x=e.elements[y?g:d],w=GA(Go(x)?x:x.contextElement||mo(e.elements.popper),s,u,i),T=ti(e.elements.reference),R=yx({reference:T,element:p,strategy:"absolute",placement:o}),O=Hp(Object.assign({},p,R)),E=d===zi?O:T,A={top:w.top-E.top+m.top,bottom:E.bottom-w.bottom+m.bottom,left:w.left-E.left+m.left,right:E.right-w.right+m.right},_=e.modifiersData.offset;if(d===zi&&_){var k=_[o];Object.keys(A).forEach(function($){var B=[Mn,An].indexOf($)>=0?1:-1,D=[Vt,An].indexOf($)>=0?"y":"x";A[$]+=k[D]*B})}return A}function qA(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=s===void 0?ux:s,u=ni(r),f=u?l?f0:f0.filter(function(y){return ni(y)===u}):cs,d=f.filter(function(y){return c.indexOf(y)>=0});d.length===0&&(d=f);var h=d.reduce(function(y,v){return y[v]=Il(e,{placement:v,boundary:o,rootBoundary:a,padding:i})[rr(v)],y},{});return Object.keys(h).sort(function(y,v){return h[y]-h[v]})}function FA(e){if(rr(e)===_h)return[];var t=rc(e);return[m0(e),t,m0(t)]}function YA(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!0:i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,y=h===void 0?!0:h,v=n.allowedAutoPlacements,C=t.options.placement,m=rr(C),g=m===C,p=s||(g||!y?[rc(C)]:FA(C)),x=[C].concat(p).reduce(function(q,Z){return q.concat(rr(Z)===_h?qA(t,{placement:Z,boundary:u,rootBoundary:f,padding:c,flipVariations:y,allowedAutoPlacements:v}):Z)},[]),w=t.rects.reference,T=t.rects.popper,R=new Map,O=!0,E=x[0],A=0;A=0,D=B?"width":"height",M=Il(t,{placement:_,boundary:u,rootBoundary:f,altBoundary:d,padding:c}),z=B?$?Mn:Gt:$?An:Vt;w[D]>T[D]&&(z=rc(z));var j=rc(z),U=[];if(a&&U.push(M[k]<=0),l&&U.push(M[z]<=0,M[j]<=0),U.every(function(q){return q})){E=_,O=!1;break}R.set(_,U)}if(O)for(var P=y?3:1,F=function(Z){var G=x.find(function(se){var ce=R.get(se);if(ce)return ce.slice(0,Z).every(function(ue){return ue})});if(G)return E=G,"break"},Q=P;Q>0;Q--){var W=F(Q);if(W==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const WA={name:"flip",enabled:!0,phase:"main",fn:YA,requiresIfExists:["offset"],data:{_skip:!1}};function g0(e,t,n){return n===void 0&&(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 y0(e){return[Vt,Mn,An,Gt].some(function(t){return e[t]>=0})}function XA(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Il(t,{elementContext:"reference"}),l=Il(t,{altBoundary:!0}),s=g0(i,r),c=g0(l,o,a),u=y0(s),f=y0(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const KA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XA};function QA(e,t,n){var r=rr(e),o=[Gt,Vt].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Gt,Mn].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}function ZA(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,i=ux.reduce(function(u,f){return u[f]=QA(f,t.rects,a),u},{}),l=i[t.placement],s=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const JA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZA};function e3(e){var t=e.state,n=e.name;t.modifiersData[n]=yx({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const t3={name:"popperOffsets",enabled:!0,phase:"read",fn:e3,data:{}};function n3(e){return e==="x"?"y":"x"}function r3(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,i=n.altAxis,l=i===void 0?!1:i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,y=n.tetherOffset,v=y===void 0?0:y,C=Il(t,{boundary:s,rootBoundary:c,padding:f,altBoundary:u}),m=rr(t.placement),g=ni(t.placement),p=!g,x=jh(m),w=n3(x),T=t.modifiersData.popperOffsets,R=t.rects.reference,O=t.rects.popper,E=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,A=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(T){if(a){var $,B=x==="y"?Vt:Gt,D=x==="y"?An:Mn,M=x==="y"?"height":"width",z=T[x],j=z+C[B],U=z-C[D],P=h?-O[M]/2:0,F=g===Ja?R[M]:O[M],Q=g===Ja?-O[M]:-R[M],W=t.elements.arrow,q=h&&W?kh(W):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:px(),G=Z[B],se=Z[D],ce=fl(0,R[M],q[M]),ue=p?R[M]/2-P-ce-G-A.mainAxis:F-ce-G-A.mainAxis,J=p?-R[M]/2+P+ce+se+A.mainAxis:Q+ce+se+A.mainAxis,oe=t.elements.arrow&&us(t.elements.arrow),X=oe?x==="y"?oe.clientTop||0:oe.clientLeft||0:0,ae=($=_==null?void 0:_[x])!=null?$:0,ie=z+ue-ae-X,me=z+J-ae,Ce=fl(h?Kc(j,ie):j,z,h?jo(U,me):U);T[x]=Ce,k[x]=Ce-z}if(l){var Le,Ue=x==="x"?Vt:Gt,He=x==="x"?An:Mn,Ge=T[w],Se=w==="y"?"height":"width",ht=Ge+C[Ue],Y=Ge-C[He],Pe=[Vt,Gt].indexOf(m)!==-1,Xt=(Le=_==null?void 0:_[w])!=null?Le:0,ge=Pe?ht:Ge-R[Se]-O[Se]-Xt+A.altAxis,ye=Pe?Ge+R[Se]+O[Se]-Xt-A.altAxis:Y,jt=h&&Pe?OA(ge,Ge,ye):fl(h?ge:ht,Ge,h?ye:Y);T[w]=jt,k[w]=jt-Ge}t.modifiersData[r]=k}}const o3={name:"preventOverflow",enabled:!0,phase:"main",fn:r3,requiresIfExists:["offset"]};function a3(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function i3(e){return e===sn(e)||!Rn(e)?$h(e):a3(e)}function l3(e){var t=e.getBoundingClientRect(),n=ei(t.width)/e.offsetWidth||1,r=ei(t.height)/e.offsetHeight||1;return n!==1||r!==1}function s3(e,t,n){n===void 0&&(n=!1);var r=Rn(t),o=Rn(t)&&l3(t),a=mo(t),i=ti(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&((lr(t)!=="body"||Nh(a))&&(l=i3(t)),Rn(t)?(s=ti(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Dh(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function c3(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!n.has(l)){var s=t.get(l);s&&o(s)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function u3(e){var t=c3(e);return xA.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function f3(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function d3(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var v0={placement:"bottom",modifiers:[],strategy:"absolute"};function b0(){for(var e=arguments.length,t=new Array(e),n=0;n{a||l(g3(o)||document.body)},[o,a]),ir(()=>{if(i&&!a)return kp(n,i),()=>{kp(n,null)}},[n,i,a]),a){if(S.isValidElement(r)){const c={ref:s};return S.cloneElement(r,c)}return b.jsx(S.Fragment,{children:r})}return b.jsx(S.Fragment,{children:i&&tm.createPortal(r,i)})});function y3(e){return te("MuiPopper",e)}ee("MuiPopper",["root"]);function v3(e,t){if(t==="ltr")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}}function Pp(e){return typeof e=="function"?e():e}function b3(e){return e.nodeType!==void 0}const S3=e=>{const{classes:t}=e;return ne({root:["root"]},y3,t)},x3={},C3=S.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:f,slotProps:d={},slots:h={},TransitionProps:y,ownerState:v,...C}=t,m=S.useRef(null),g=Ze(m,n),p=S.useRef(null),x=Ze(p,f),w=S.useRef(x);ir(()=>{w.current=x},[x]),S.useImperativeHandle(f,()=>p.current,[]);const T=v3(c,a),[R,O]=S.useState(T),[E,A]=S.useState(Pp(r));S.useEffect(()=>{p.current&&p.current.forceUpdate()}),S.useEffect(()=>{r&&A(Pp(r))},[r]),ir(()=>{if(!E||!s)return;const D=j=>{O(j.placement)};let M=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:j})=>{D(j)}}];l!=null&&(M=M.concat(l)),u&&u.modifiers!=null&&(M=M.concat(u.modifiers));const z=h3(E,m.current,{placement:T,...u,modifiers:M});return w.current(z),()=>{z.destroy(),w.current(null)}},[E,i,l,s,u,T]);const _={placement:R};y!==null&&(_.TransitionProps=y);const k=S3(t),$=h.root??"div",B=Fc({elementType:$,externalSlotProps:d.root,externalForwardedProps:C,additionalProps:{role:"tooltip",ref:g},ownerState:t,className:k.root});return b.jsx($,{...B,children:typeof o=="function"?o(_):o})}),E3=S.forwardRef(function(t,n){const{anchorEl:r,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:s=!1,modifiers:c,open:u,placement:f="bottom",popperOptions:d=x3,popperRef:h,style:y,transition:v=!1,slotProps:C={},slots:m={},...g}=t,[p,x]=S.useState(!0),w=()=>{x(!1)},T=()=>{x(!0)};if(!s&&!u&&(!v||p))return null;let R;if(a)R=a;else if(r){const A=Pp(r);R=A&&b3(A)?xt(A).body:xt(null).body}const O=!u&&s&&(!v||p)?"none":void 0,E=v?{in:u,onEnter:w,onExited:T}:void 0;return b.jsx(vx,{disablePortal:l,container:R,children:b.jsx(C3,{anchorEl:r,direction:i,disablePortal:l,modifiers:c,ref:n,open:v?!p:u,placement:f,popperOptions:d,popperRef:h,slotProps:C,slots:m,...g,style:{position:"fixed",top:0,left:0,display:O,...y},TransitionProps:E,children:o})})}),w3=H(E3,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bx=S.forwardRef(function(t,n){const r=Ch(),o=le({props:t,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:f,modifiers:d,open:h,placement:y,popperOptions:v,popperRef:C,transition:m,slots:g,slotProps:p,...x}=o,w=(g==null?void 0:g.root)??(l==null?void 0:l.Root),T={anchorEl:a,container:c,disablePortal:u,keepMounted:f,modifiers:d,open:h,placement:y,popperOptions:v,popperRef:C,transition:m,...x};return b.jsx(w3,{as:i,direction:r?"rtl":"ltr",slots:{root:w},slotProps:p??s,...T,ref:n})});function Bs(e){return parseInt(e,10)||0}const R3={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function T3(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const O3=S.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:a=1,style:i,value:l,...s}=t,{current:c}=S.useRef(l!=null),u=S.useRef(null),f=Ze(n,u),d=S.useRef(null),h=S.useRef(null),y=S.useCallback(()=>{const m=u.current,p=Vo(m).getComputedStyle(m);if(p.width==="0px")return{outerHeightStyle:0,overflowing:!1};const x=h.current;x.style.width=p.width,x.value=m.value||t.placeholder||"x",x.value.slice(-1)===` -`&&(x.value+=" ");const w=p.boxSizing,T=Bs(p.paddingBottom)+Bs(p.paddingTop),R=Bs(p.borderBottomWidth)+Bs(p.borderTopWidth),O=x.scrollHeight;x.value="x";const E=x.scrollHeight;let A=O;a&&(A=Math.max(Number(a)*E,A)),o&&(A=Math.min(Number(o)*E,A)),A=Math.max(A,E);const _=A+(w==="border-box"?T+R:0),k=Math.abs(A-O)<=1;return{outerHeightStyle:_,overflowing:k}},[o,a,t.placeholder]),v=S.useCallback(()=>{const m=y();if(T3(m))return;const g=m.outerHeightStyle,p=u.current;d.current!==g&&(d.current=g,p.style.height=`${g}px`),p.style.overflow=m.overflowing?"hidden":""},[y]);ir(()=>{const m=()=>{v()};let g;const p=GS(m),x=u.current,w=Vo(x);w.addEventListener("resize",p);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(m),T.observe(x)),()=>{p.clear(),cancelAnimationFrame(g),w.removeEventListener("resize",p),T&&T.disconnect()}},[y,v]),ir(()=>{v()});const C=m=>{c||v(),r&&r(m)};return b.jsxs(S.Fragment,{children:[b.jsx("textarea",{value:l,onChange:C,ref:f,rows:a,style:i,...s}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...R3.shadow,...i,paddingTop:0,paddingBottom:0}})]})});function Vl(e){return typeof e=="string"}function yi({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const sf=S.createContext(void 0);function ho(){return S.useContext(sf)}function S0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Qc(e,t=!1){return e&&(S0(e.value)&&e.value!==""||t&&S0(e.defaultValue)&&e.defaultValue!=="")}function A3(e){return e.startAdornment}function M3(e){return te("MuiInputBase",e)}const ri=ee("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var x0;const cf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${I(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},uf=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},_3=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:f,size:d,startAdornment:h,type:y}=e,v={root:["root",`color${I(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",d&&d!=="medium"&&`size${I(d)}`,u&&"multiline",h&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",y==="search"&&"inputTypeSearch",u&&"inputMultiline",d==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return ne(v,M3,t)},ff=H("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cf})(re(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ri.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),df=H("input",{name:"MuiInputBase",slot:"Input",overridesResolver:uf})(re(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ri.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ri.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),C0=Oh({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),z3=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,color:s,components:c={},componentsProps:u={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:y,error:v,fullWidth:C=!1,id:m,inputComponent:g="input",inputProps:p={},inputRef:x,margin:w,maxRows:T,minRows:R,multiline:O=!1,name:E,onBlur:A,onChange:_,onClick:k,onFocus:$,onKeyDown:B,onKeyUp:D,placeholder:M,readOnly:z,renderSuffix:j,rows:U,size:P,slotProps:F={},slots:Q={},startAdornment:W,type:q="text",value:Z,...G}=r,se=p.value!=null?p.value:Z,{current:ce}=S.useRef(se!=null),ue=S.useRef(),J=S.useCallback(he=>{},[]),oe=Ze(ue,x,p.ref,J),[X,ae]=S.useState(!1),ie=ho(),me=yi({props:r,muiFormControl:ie,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=ie?ie.focused:X,S.useEffect(()=>{!ie&&d&&X&&(ae(!1),A&&A())},[ie,d,X,A]);const Ce=ie&&ie.onFilled,Le=ie&&ie.onEmpty,Ue=S.useCallback(he=>{Qc(he)?Ce&&Ce():Le&&Le()},[Ce,Le]);ir(()=>{ce&&Ue({value:se})},[se,Ue,ce]);const He=he=>{$&&$(he),p.onFocus&&p.onFocus(he),ie&&ie.onFocus?ie.onFocus(he):ae(!0)},Ge=he=>{A&&A(he),p.onBlur&&p.onBlur(he),ie&&ie.onBlur?ie.onBlur(he):ae(!1)},Se=(he,...kn)=>{if(!ce){const go=he.target||ue.current;if(go==null)throw new Error(Mr(1));Ue({value:go.value})}p.onChange&&p.onChange(he,...kn),_&&_(he,...kn)};S.useEffect(()=>{Ue(ue.current)},[]);const ht=he=>{ue.current&&he.currentTarget===he.target&&ue.current.focus(),k&&k(he)};let Y=g,Pe=p;O&&Y==="input"&&(U?Pe={type:void 0,minRows:U,maxRows:U,...Pe}:Pe={type:void 0,maxRows:T,minRows:R,...Pe},Y=O3);const Xt=he=>{Ue(he.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};S.useEffect(()=>{ie&&ie.setAdornedStart(!!W)},[ie,W]);const ge={...r,color:me.color||"primary",disabled:me.disabled,endAdornment:y,error:me.error,focused:me.focused,formControl:ie,fullWidth:C,hiddenLabel:me.hiddenLabel,multiline:O,size:me.size,startAdornment:W,type:q},ye=_3(ge),jt=Q.root||c.Root||ff,wt=F.root||u.root||{},Ut=Q.input||c.Input||df;return Pe={...Pe,...F.input??u.input},b.jsxs(S.Fragment,{children:[!h&&typeof C0=="function"&&(x0||(x0=b.jsx(C0,{}))),b.jsxs(jt,{...wt,ref:n,onClick:ht,...G,...!Vl(jt)&&{ownerState:{...ge,...wt.ownerState}},className:V(ye.root,wt.className,l,z&&"MuiInputBase-readOnly"),children:[W,b.jsx(sf.Provider,{value:null,children:b.jsx(Ut,{"aria-invalid":me.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:f,disabled:me.disabled,id:m,onAnimationStart:Xt,name:E,placeholder:M,readOnly:z,required:me.required,rows:U,value:se,onKeyDown:B,onKeyUp:D,type:q,...Pe,...!Vl(Ut)&&{as:Y,ownerState:{...ge,...Pe.ownerState}},ref:oe,className:V(ye.input,Pe.className,z&&"MuiInputBase-readOnly"),onBlur:Ge,onChange:Se,onFocus:He})}),y,j?j({...me,startAdornment:W}):null]})]})}),Bh=z3;function k3(e){return te("MuiInput",e)}const ki={...ri,...ee("MuiInput",["root","underline","input"])};function j3(e){return te("MuiOutlinedInput",e)}const Fn={...ri,...ee("MuiOutlinedInput",["root","notchedOutline","input"])};function $3(e){return te("MuiFilledInput",e)}const vo={...ri,...ee("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},D3=Et(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),N3={entering:{opacity:1},entered:{opacity:1}},B3=S.forwardRef(function(t,n){const r=Jo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,easing:s,in:c,onEnter:u,onEntered:f,onEntering:d,onExit:h,onExited:y,onExiting:v,style:C,timeout:m=o,TransitionComponent:g=Gn,...p}=t,x=S.useRef(null),w=Ze(x,Zo(l),n),T=B=>D=>{if(B){const M=x.current;D===void 0?B(M):B(M,D)}},R=T(d),O=T((B,D)=>{lx(B);const M=Za({style:C,timeout:m,easing:s},{mode:"enter"});B.style.webkitTransition=r.transitions.create("opacity",M),B.style.transition=r.transitions.create("opacity",M),u&&u(B,D)}),E=T(f),A=T(v),_=T(B=>{const D=Za({style:C,timeout:m,easing:s},{mode:"exit"});B.style.webkitTransition=r.transitions.create("opacity",D),B.style.transition=r.transitions.create("opacity",D),h&&h(B)}),k=T(y),$=B=>{a&&a(x.current,B)};return b.jsx(g,{appear:i,in:c,nodeRef:x,onEnter:O,onEntered:E,onEntering:R,onExit:_,onExited:k,onExiting:A,addEndListener:$,timeout:m,...p,children:(B,D)=>S.cloneElement(l,{style:{opacity:0,visibility:B==="exited"&&!c?"hidden":void 0,...N3[B],...C,...l.props.style},ref:w,...D})})});function L3(e){return te("MuiBackdrop",e)}ee("MuiBackdrop",["root","invisible"]);const U3=e=>{const{classes:t,invisible:n}=e;return ne({root:["root",n&&"invisible"]},L3,t)},H3=H("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),P3=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiBackdrop"}),{children:o,className:a,component:i="div",invisible:l=!1,open:s,components:c={},componentsProps:u={},slotProps:f={},slots:d={},TransitionComponent:h,transitionDuration:y,...v}=r,C={...r,component:i,invisible:l},m=U3(C),g={transition:h,root:c.Root,...d},p={...u,...f},x={slots:g,slotProps:p},[w,T]=Jt("root",{elementType:H3,externalForwardedProps:x,className:V(m.root,a),ownerState:C}),[R,O]=Jt("transition",{elementType:B3,externalForwardedProps:x,ownerState:C});return delete O.ownerState,b.jsx(R,{in:s,timeout:y,...v,...O,children:b.jsx(w,{"aria-hidden":!0,...T,classes:m,ref:n,children:o})})}),I3=ee("MuiBox",["root"]),V3=of(),Bn=z4({themeId:Pn,defaultTheme:V3,defaultClassName:I3.root,generateClassName:BS.generate});function G3(e){return te("MuiButton",e)}const sa=ee("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),q3=S.createContext({}),F3=S.createContext(void 0),Y3=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e,l={root:["root",a,`${a}${I(t)}`,`size${I(o)}`,`${a}Size${I(o)}`,`color${I(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${I(o)}`],endIcon:["icon","endIcon",`iconSize${I(o)}`]},s=ne(l,G3,i);return{...i,...s}},Sx=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],W3=H(gi,{shouldForwardProp:e=>Wt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${I(n.color)}`],t[`size${I(n.size)}`],t[`${n.variant}Size${I(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(re(({theme:e})=>{var r,o;const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${sa.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${sa.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${sa.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${sa.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ln(["dark","contrastText"])).map(([a])=>({props:{color:a},style:{"--variant-textColor":(e.vars||e).palette[a].main,"--variant-outlinedColor":(e.vars||e).palette[a].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[a].mainChannel} / 0.5)`:ke(e.palette[a].main,.5),"--variant-containedColor":(e.vars||e).palette[a].contrastText,"--variant-containedBg":(e.vars||e).palette[a].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[a].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[a].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[a].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[a].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[a].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{"--variant-containedColor":e.vars?e.vars.palette.text.primary:(o=(r=e.palette).getContrastText)==null?void 0:o.call(r,t),"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${sa.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${sa.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),X3=H("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${I(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Sx]}),K3=H("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${I(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Sx]}),Tn=S.forwardRef(function(t,n){const r=S.useContext(q3),o=S.useContext(F3),a=Ul(r,t),i=le({props:a,name:"MuiButton"}),{children:l,color:s="primary",component:c="button",className:u,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:y,focusVisibleClassName:v,fullWidth:C=!1,size:m="medium",startIcon:g,type:p,variant:x="text",...w}=i,T={...i,color:s,component:c,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:C,size:m,type:p,variant:x},R=Y3(T),O=g&&b.jsx(X3,{className:R.startIcon,ownerState:T,children:g}),E=y&&b.jsx(K3,{className:R.endIcon,ownerState:T,children:y}),A=o||"";return b.jsxs(W3,{ownerState:T,className:V(r.className,R.root,u,A),component:c,disabled:f,focusRipple:!h,focusVisibleClassName:V(R.focusVisible,v),ref:n,type:p,...w,classes:R,children:[O,l,E]})});function Q3(e){return te("PrivateSwitchBase",e)}ee("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Z3=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,a={root:["root",n&&"checked",r&&"disabled",o&&`edge${I(o)}`],input:["input"]};return ne(a,Q3,t)},J3=H(gi)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),eM=H("input",{shouldForwardProp:Wt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),xx=S.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:a,className:i,defaultChecked:l,disabled:s,disableFocusRipple:c=!1,edge:u=!1,icon:f,id:d,inputProps:h,inputRef:y,name:v,onBlur:C,onChange:m,onFocus:g,readOnly:p,required:x=!1,tabIndex:w,type:T,value:R,...O}=t,[E,A]=Hl({controlled:o,default:!!l,name:"SwitchBase",state:"checked"}),_=ho(),k=U=>{g&&g(U),_&&_.onFocus&&_.onFocus(U)},$=U=>{C&&C(U),_&&_.onBlur&&_.onBlur(U)},B=U=>{if(U.nativeEvent.defaultPrevented)return;const P=U.target.checked;A(P),m&&m(U,P)};let D=s;_&&typeof D>"u"&&(D=_.disabled);const M=T==="checkbox"||T==="radio",z={...t,checked:E,disabled:D,disableFocusRipple:c,edge:u},j=Z3(z);return b.jsxs(J3,{component:"span",className:V(j.root,i),centerRipple:!0,focusRipple:!c,disabled:D,tabIndex:null,role:void 0,onFocus:k,onBlur:$,ownerState:z,ref:n,...O,children:[b.jsx(eM,{autoFocus:r,checked:o,defaultChecked:l,className:j.input,disabled:D,id:M?d:void 0,name:v,onChange:B,readOnly:p,ref:y,required:x,ownerState:z,tabIndex:w,type:T,...T==="checkbox"&&R===void 0?{}:{value:R},...h}),E?a:f]})}),tM=Et(b.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),nM=Et(b.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),rM=Et(b.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function oM(e){return te("MuiCheckbox",e)}const dd=ee("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),aM=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,a={root:["root",n&&"indeterminate",`color${I(r)}`,`size${I(o)}`]},i=ne(a,oM,t);return{...t,...i}},iM=H(xx,{shouldForwardProp:e=>Wt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${I(n.size)}`],n.color!=="default"&&t[`color${I(n.color)}`]]}})(re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{[`&.${dd.checked}, &.${dd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${dd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),lM=b.jsx(nM,{}),sM=b.jsx(tM,{}),cM=b.jsx(rM,{}),uM=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiCheckbox"}),{checkedIcon:o=lM,color:a="primary",icon:i=sM,indeterminate:l=!1,indeterminateIcon:s=cM,inputProps:c,size:u="medium",disableRipple:f=!1,className:d,...h}=r,y=l?s:i,v=l?s:o,C={...r,disableRipple:f,color:a,indeterminate:l,size:u},m=aM(C);return b.jsx(iM,{type:"checkbox",inputProps:{"data-indeterminate":l,...c},icon:S.cloneElement(y,{fontSize:y.props.fontSize??u}),checkedIcon:S.cloneElement(v,{fontSize:v.props.fontSize??u}),ownerState:C,ref:n,className:V(m.root,d),...h,classes:m})});function fM(e){return te("MuiCircularProgress",e)}ee("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Nr=44,Ip=rs` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`,Vp=rs` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`,dM=typeof Ip!="string"?fh` - animation: ${Ip} 1.4s linear infinite; - `:null,pM=typeof Vp!="string"?fh` - animation: ${Vp} 1.4s ease-in-out infinite; - `:null,mM=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,a={root:["root",n,`color${I(r)}`],svg:["svg"],circle:["circle",`circle${I(n)}`,o&&"circleDisableShrink"]};return ne(a,fM,t)},hM=H("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${I(n.color)}`]]}})(re(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:dM||{animation:`${Ip} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),gM=H("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),yM=H("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${I(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(re(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:pM||{animation:`${Vp} 1.4s ease-in-out infinite`}}]}))),vM=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:i=!1,size:l=40,style:s,thickness:c=3.6,value:u=0,variant:f="indeterminate",...d}=r,h={...r,color:a,disableShrink:i,size:l,thickness:c,value:u,variant:f},y=mM(h),v={},C={},m={};if(f==="determinate"){const g=2*Math.PI*((Nr-c)/2);v.strokeDasharray=g.toFixed(3),m["aria-valuenow"]=Math.round(u),v.strokeDashoffset=`${((100-u)/100*g).toFixed(3)}px`,C.transform="rotate(-90deg)"}return b.jsx(hM,{className:V(y.root,o),style:{width:l,height:l,...C,...s},ownerState:h,ref:n,role:"progressbar",...m,...d,children:b.jsx(gM,{className:y.svg,ownerState:h,viewBox:`${Nr/2} ${Nr/2} ${Nr} ${Nr}`,children:b.jsx(yM,{className:y.circle,style:v,ownerState:h,cx:Nr,cy:Nr,r:(Nr-c)/2,fill:"none",strokeWidth:c})})})});function E0(e){return e.substring(2).toLowerCase()}function bM(e,t){return t.documentElement.clientWidth(setTimeout(()=>{s.current=!0},0),()=>{s.current=!1}),[]);const u=Ze(Zo(t),l),f=Un(y=>{const v=c.current;c.current=!1;const C=xt(l.current);if(!s.current||!l.current||"clientX"in y&&bM(y,C))return;if(i.current){i.current=!1;return}let m;y.composedPath?m=y.composedPath().indexOf(l.current)>-1:m=!C.documentElement.contains(y.target)||l.current.contains(y.target),!m&&(n||!v)&&o(y)}),d=y=>v=>{c.current=!0;const C=t.props[y];C&&C(v)},h={ref:u};return a!==!1&&(h[a]=d(a)),S.useEffect(()=>{if(a!==!1){const y=E0(a),v=xt(l.current),C=()=>{i.current=!0};return v.addEventListener(y,f),v.addEventListener("touchmove",C),()=>{v.removeEventListener(y,f),v.removeEventListener("touchmove",C)}}},[f,a]),r!==!1&&(h[r]=d(r)),S.useEffect(()=>{if(r!==!1){const y=E0(r),v=xt(l.current);return v.addEventListener(y,f),()=>{v.removeEventListener(y,f)}}},[f,r]),b.jsx(S.Fragment,{children:S.cloneElement(t,h)})}const Cx=v5({createStyledComponent:H("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${I(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Th({props:e,name:"MuiContainer"})}),Gp=typeof Oh({})=="function",xM=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),CM=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Ex=(e,t=!1)=>{var a,i;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([l,s])=>{var u,f;const c=e.getColorSchemeSelector(l);c.startsWith("@")?n[c]={":root":{colorScheme:(u=s.palette)==null?void 0:u.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:(f=s.palette)==null?void 0:f.mode}});let r={html:xM(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...CM(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(i=(a=e.components)==null?void 0:a.MuiCssBaseline)==null?void 0:i.styleOverrides;return o&&(r=[r,o]),r},oc="mui-ecs",EM=e=>{const t=Ex(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${oc})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var i,l;const a=e.getColorSchemeSelector(r);a.startsWith("@")?n[a]={[`:root:not(:has(.${oc}))`]:{colorScheme:(i=o.palette)==null?void 0:i.mode}}:n[a.replace(/\s*&/,"")]={[`&:not(:has(.${oc}))`]:{colorScheme:(l=o.palette)==null?void 0:l.mode}}}),t},wM=Oh(Gp?({theme:e,enableColorScheme:t})=>Ex(e,t):({theme:e})=>EM(e));function RM(e){const t=le({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return b.jsxs(S.Fragment,{children:[Gp&&b.jsx(wM,{enableColorScheme:r}),!Gp&&!r&&b.jsx("span",{className:oc,style:{display:"none"}}),n]})}function TM(e){const t=xt(e);return t.body===e?Vo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pl(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function w0(e){return parseInt(Vo(e).getComputedStyle(e).paddingRight,10)||0}function OM(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function R0(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,i=>{const l=a.indexOf(i)===-1,s=!OM(i);l&&s&&pl(i,o)})}function pd(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function AM(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(TM(r)){const i=FS(xt(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${w0(r)+i}px`;const l=xt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${w0(s)+i}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=xt(r).body;else{const i=r.parentElement,l=Vo(r);a=(i==null?void 0:i.nodeName)==="HTML"&&l.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:i,property:l})=>{a?i.style.setProperty(l,a):i.style.removeProperty(l)})}}function MM(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class _M{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&pl(t.modalRef,!1);const o=MM(n);R0(n,t.mount,t.modalRef,o,!0);const a=pd(this.containers,i=>i.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=pd(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=AM(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=pd(this.containers,i=>i.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&pl(t.modalRef,n),R0(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const i=a.modals[a.modals.length-1];i.modalRef&&pl(i.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const zM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kM(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function jM(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function $M(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||jM(e))}function DM(e){const t=[],n=[];return Array.from(e.querySelectorAll(zM)).forEach((r,o)=>{const a=kM(r);a===-1||!$M(r)||(a===0?t.push(r):n.push({documentOrder:o,tabIndex:a,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function NM(){return!0}function BM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=DM,isEnabled:i=NM,open:l}=e,s=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),f=S.useRef(null),d=S.useRef(null),h=S.useRef(!1),y=S.useRef(null),v=Ze(Zo(t),y),C=S.useRef(null);S.useEffect(()=>{!l||!y.current||(h.current=!n)},[n,l]),S.useEffect(()=>{if(!l||!y.current)return;const p=xt(y.current);return y.current.contains(p.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),h.current&&y.current.focus()),()=>{o||(f.current&&f.current.focus&&(s.current=!0,f.current.focus()),f.current=null)}},[l]),S.useEffect(()=>{if(!l||!y.current)return;const p=xt(y.current),x=R=>{C.current=R,!(r||!i()||R.key!=="Tab")&&p.activeElement===y.current&&R.shiftKey&&(s.current=!0,u.current&&u.current.focus())},w=()=>{var E,A;const R=y.current;if(R===null)return;if(!p.hasFocus()||!i()||s.current){s.current=!1;return}if(R.contains(p.activeElement)||r&&p.activeElement!==c.current&&p.activeElement!==u.current)return;if(p.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let O=[];if((p.activeElement===c.current||p.activeElement===u.current)&&(O=a(y.current)),O.length>0){const _=!!((E=C.current)!=null&&E.shiftKey&&((A=C.current)==null?void 0:A.key)==="Tab"),k=O[0],$=O[O.length-1];typeof k!="string"&&typeof $!="string"&&(_?$.focus():k.focus())}else R.focus()};p.addEventListener("focusin",w),p.addEventListener("keydown",x,!0);const T=setInterval(()=>{p.activeElement&&p.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(T),p.removeEventListener("focusin",w),p.removeEventListener("keydown",x,!0)}},[n,r,o,i,l,a]);const m=p=>{f.current===null&&(f.current=p.relatedTarget),h.current=!0,d.current=p.target;const x=t.props.onFocus;x&&x(p)},g=p=>{f.current===null&&(f.current=p.relatedTarget),h.current=!0};return b.jsxs(S.Fragment,{children:[b.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:v,onFocus:m}),b.jsx("div",{tabIndex:l?0:-1,onFocus:g,ref:u,"data-testid":"sentinelEnd"})]})}function LM(e){return typeof e=="function"?e():e}function UM(e){return e?e.props.hasOwnProperty("in"):!1}const HM=new _M;function PM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=HM,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:f}=e,d=S.useRef({}),h=S.useRef(null),y=S.useRef(null),v=Ze(y,f),[C,m]=S.useState(!u),g=UM(s);let p=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(p=!1);const x=()=>xt(h.current),w=()=>(d.current.modalRef=y.current,d.current.mount=h.current,d.current),T=()=>{o.mount(w(),{disableScrollLock:r}),y.current&&(y.current.scrollTop=0)},R=Un(()=>{const M=LM(t)||x().body;o.add(w(),M),y.current&&T()}),O=S.useCallback(()=>o.isTopModal(w()),[o]),E=Un(M=>{h.current=M,M&&(u&&O()?T():y.current&&pl(y.current,p))}),A=S.useCallback(()=>{o.remove(w(),p)},[p,o]);S.useEffect(()=>()=>{A()},[A]),S.useEffect(()=>{u?R():(!g||!a)&&A()},[u,A,g,a,R]);const _=M=>z=>{var j;(j=M.onKeyDown)==null||j.call(M,z),!(z.key!=="Escape"||z.which===229||!O())&&(n||(z.stopPropagation(),c&&c(z,"escapeKeyDown")))},k=M=>z=>{var j;(j=M.onClick)==null||j.call(M,z),z.target===z.currentTarget&&c&&c(z,"backdropClick")};return{getRootProps:(M={})=>{const z=qc(e);delete z.onTransitionEnter,delete z.onTransitionExited;const j={...z,...M};return{role:"presentation",...j,onKeyDown:_(j),ref:v}},getBackdropProps:(M={})=>{const z=M;return{"aria-hidden":!0,...z,onClick:k(z),open:u}},getTransitionProps:()=>{const M=()=>{m(!1),i&&i()},z=()=>{m(!0),l&&l(),a&&A()};return{onEnter:Gy(M,s==null?void 0:s.props.onEnter),onExited:Gy(z,s==null?void 0:s.props.onExited)}},rootRef:v,portalRef:E,isTopModal:O,exited:C,hasTransition:g}}function IM(e){return te("MuiModal",e)}ee("MuiModal",["root","hidden","backdrop"]);const VM=e=>{const{open:t,exited:n,classes:r}=e;return ne({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},IM,r)},GM=H("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(re(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),qM=H(P3,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Lh=S.forwardRef(function(t,n){const r=le({name:"MuiModal",props:t}),{BackdropComponent:o=qM,BackdropProps:a,classes:i,className:l,closeAfterTransition:s=!1,children:c,container:u,component:f,components:d={},componentsProps:h={},disableAutoFocus:y=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:C=!1,disablePortal:m=!1,disableRestoreFocus:g=!1,disableScrollLock:p=!1,hideBackdrop:x=!1,keepMounted:w=!1,onBackdropClick:T,onClose:R,onTransitionEnter:O,onTransitionExited:E,open:A,slotProps:_={},slots:k={},theme:$,...B}=r,D={...r,closeAfterTransition:s,disableAutoFocus:y,disableEnforceFocus:v,disableEscapeKeyDown:C,disablePortal:m,disableRestoreFocus:g,disableScrollLock:p,hideBackdrop:x,keepMounted:w},{getRootProps:M,getBackdropProps:z,getTransitionProps:j,portalRef:U,isTopModal:P,exited:F,hasTransition:Q}=PM({...D,rootRef:n}),W={...D,exited:F},q=VM(W),Z={};if(c.props.tabIndex===void 0&&(Z.tabIndex="-1"),Q){const{onEnter:X,onExited:ae}=j();Z.onEnter=X,Z.onExited=ae}const G={slots:{root:d.Root,backdrop:d.Backdrop,...k},slotProps:{...h,..._}},[se,ce]=Jt("root",{elementType:GM,externalForwardedProps:G,getSlotProps:M,additionalProps:{ref:n,as:f},ownerState:W,className:V(l,q==null?void 0:q.root,!W.open&&W.exited&&(q==null?void 0:q.hidden))}),[ue,J]=Jt("backdrop",{elementType:o,externalForwardedProps:G,additionalProps:a,getSlotProps:X=>z({...X,onClick:ae=>{T&&T(ae),X!=null&&X.onClick&&X.onClick(ae)}}),className:V(a==null?void 0:a.className,q==null?void 0:q.backdrop),ownerState:W}),oe=Ze(a==null?void 0:a.ref,J.ref);return!w&&!A&&(!Q||F)?null:b.jsx(vx,{ref:U,container:u,disablePortal:m,children:b.jsxs(se,{...ce,...B,children:[!x&&o?b.jsx(ue,{...J,ref:oe}):null,b.jsx(BM,{disableEnforceFocus:v,disableAutoFocus:y,disableRestoreFocus:g,isEnabled:P,open:A,children:S.cloneElement(c,Z)})]})})}),T0=ee("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),FM=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:a,hiddenLabel:i,multiline:l}=e,s={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",a==="small"&&`size${I(a)}`,i&&"hiddenLabel",l&&"multiline"],input:["input"]},c=ne(s,$3,t);return{...t,...c}},YM=H(ff,{shouldForwardProp:e=>Wt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...cf(e,t),!n.disableUnderline&&t.underline]}})(re(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${vo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${vo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${vo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${vo.disabled}, .${vo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ln()).map(([i])=>{var l;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[i])==null?void 0:l.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:l})=>i.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),WM=H(df,{name:"MuiFilledInput",slot:"Input",overridesResolver:uf})(re(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Zc=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,hiddenLabel:s,inputComponent:c="input",multiline:u=!1,slotProps:f,slots:d={},type:h="text",...y}=r,v={...r,disableUnderline:o,fullWidth:l,inputComponent:c,multiline:u,type:h},C=FM(r),m={root:{ownerState:v},input:{ownerState:v}},g=f??i?St(m,f??i):m,p=d.root??a.Root??YM,x=d.input??a.Input??WM;return b.jsx(Bh,{slots:{root:p,input:x},componentsProps:g,fullWidth:l,inputComponent:c,multiline:u,ref:n,type:h,...y,classes:C})});Zc&&(Zc.muiName="Input");function XM(e){return te("MuiFormControl",e)}ee("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const KM=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${I(n)}`,r&&"fullWidth"]};return ne(o,XM,t)},QM=H("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${I(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),wx=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormControl"}),{children:o,className:a,color:i="primary",component:l="div",disabled:s=!1,error:c=!1,focused:u,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:y=!1,size:v="medium",variant:C="outlined",...m}=r,g={...r,color:i,component:l,disabled:s,error:c,fullWidth:f,hiddenLabel:d,margin:h,required:y,size:v,variant:C},p=KM(g),[x,w]=S.useState(()=>{let $=!1;return o&&S.Children.forEach(o,B=>{if(!nc(B,["Input","Select"]))return;const D=nc(B,["Select"])?B.props.input:B;D&&A3(D.props)&&($=!0)}),$}),[T,R]=S.useState(()=>{let $=!1;return o&&S.Children.forEach(o,B=>{nc(B,["Input","Select"])&&(Qc(B.props,!0)||Qc(B.props.inputProps,!0))&&($=!0)}),$}),[O,E]=S.useState(!1);s&&O&&E(!1);const A=u!==void 0&&!s?u:O;let _;const k=S.useMemo(()=>({adornedStart:x,setAdornedStart:w,color:i,disabled:s,error:c,filled:T,focused:A,fullWidth:f,hiddenLabel:d,size:v,onBlur:()=>{E(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{E(!0)},registerEffect:_,required:y,variant:C}),[x,i,s,c,T,A,f,d,_,y,v,C]);return b.jsx(sf.Provider,{value:k,children:b.jsx(QM,{as:l,ownerState:g,className:V(p.root,a),ref:n,...m,children:o})})});function ZM(e){return te("MuiFormHelperText",e)}const O0=ee("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var A0;const JM=e=>{const{classes:t,contained:n,size:r,disabled:o,error:a,filled:i,focused:l,required:s}=e,c={root:["root",o&&"disabled",a&&"error",r&&`size${I(r)}`,n&&"contained",l&&"focused",i&&"filled",s&&"required"]};return ne(c,ZM,t)},e_=H("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${I(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${O0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${O0.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),t_=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormHelperText"}),{children:o,className:a,component:i="p",disabled:l,error:s,filled:c,focused:u,margin:f,required:d,variant:h,...y}=r,v=ho(),C=yi({props:r,muiFormControl:v,states:["variant","size","disabled","error","filled","focused","required"]}),m={...r,component:i,contained:C.variant==="filled"||C.variant==="outlined",variant:C.variant,size:C.size,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required};delete m.ownerState;const g=JM(m);return b.jsx(e_,{as:i,className:V(g.root,a),ref:n,...y,ownerState:m,children:o===" "?A0||(A0=b.jsx("span",{className:"notranslate",children:"​"})):o})});function n_(e){return te("MuiFormLabel",e)}const ml=ee("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),r_=e=>{const{classes:t,color:n,focused:r,disabled:o,error:a,filled:i,required:l}=e,s={root:["root",`color${I(n)}`,o&&"disabled",a&&"error",i&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",a&&"error"]};return ne(s,n_,t)},o_=H("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(re(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{[`&.${ml.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ml.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ml.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),a_=H("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(re(({theme:e})=>({[`&.${ml.error}`]:{color:(e.vars||e).palette.error.main}}))),i_=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiFormLabel"}),{children:o,className:a,color:i,component:l="label",disabled:s,error:c,filled:u,focused:f,required:d,...h}=r,y=ho(),v=yi({props:r,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),C={...r,color:v.color||"primary",component:l,disabled:v.disabled,error:v.error,filled:v.filled,focused:v.focused,required:v.required},m=r_(C);return b.jsxs(o_,{as:l,ownerState:C,className:V(m.root,a),ref:n,...h,children:[o,v.required&&b.jsxs(a_,{ownerState:C,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})});function qp(e){return`scale(${e}, ${e**2})`}const l_={entering:{opacity:1,transform:qp(1)},entered:{opacity:1,transform:"none"}},md=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),oi=S.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:a,easing:i,in:l,onEnter:s,onEntered:c,onEntering:u,onExit:f,onExited:d,onExiting:h,style:y,timeout:v="auto",TransitionComponent:C=Gn,...m}=t,g=Wr(),p=S.useRef(),x=Jo(),w=S.useRef(null),T=Ze(w,Zo(a),n),R=D=>M=>{if(D){const z=w.current;M===void 0?D(z):D(z,M)}},O=R(u),E=R((D,M)=>{lx(D);const{duration:z,delay:j,easing:U}=Za({style:y,timeout:v,easing:i},{mode:"enter"});let P;v==="auto"?(P=x.transitions.getAutoHeightDuration(D.clientHeight),p.current=P):P=z,D.style.transition=[x.transitions.create("opacity",{duration:P,delay:j}),x.transitions.create("transform",{duration:md?P:P*.666,delay:j,easing:U})].join(","),s&&s(D,M)}),A=R(c),_=R(h),k=R(D=>{const{duration:M,delay:z,easing:j}=Za({style:y,timeout:v,easing:i},{mode:"exit"});let U;v==="auto"?(U=x.transitions.getAutoHeightDuration(D.clientHeight),p.current=U):U=M,D.style.transition=[x.transitions.create("opacity",{duration:U,delay:z}),x.transitions.create("transform",{duration:md?U:U*.666,delay:md?z:z||U*.333,easing:j})].join(","),D.style.opacity=0,D.style.transform=qp(.75),f&&f(D)}),$=R(d),B=D=>{v==="auto"&&g.start(p.current||0,D),r&&r(w.current,D)};return b.jsx(C,{appear:o,in:l,nodeRef:w,onEnter:E,onEntered:A,onEntering:O,onExit:k,onExited:$,onExiting:_,addEndListener:B,timeout:v==="auto"?null:v,...m,children:(D,M)=>S.cloneElement(a,{style:{opacity:0,transform:qp(.75),visibility:D==="exited"&&!l?"hidden":void 0,...l_[D],...y,...a.props.style},ref:T,...M})})});oi&&(oi.muiSupportAuto=!0);const s_=e=>{const{classes:t,disableUnderline:n}=e,o=ne({root:["root",!n&&"underline"],input:["input"]},k3,t);return{...t,...o}},c_=H(ff,{shouldForwardProp:e=>Wt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...cf(e,t),!n.disableUnderline&&t.underline]}})(re(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ki.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ki.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ki.disabled}, .${ki.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ki.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ln()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),u_=H(df,{name:"MuiInput",slot:"Input",overridesResolver:uf})({}),Jc=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:a={},componentsProps:i,fullWidth:l=!1,inputComponent:s="input",multiline:c=!1,slotProps:u,slots:f={},type:d="text",...h}=r,y=s_(r),C={root:{ownerState:{disableUnderline:o}}},m=u??i?St(u??i,C):C,g=f.root??a.Root??c_,p=f.input??a.Input??u_;return b.jsx(Bh,{slots:{root:g,input:p},slotProps:m,fullWidth:l,inputComponent:s,multiline:c,ref:n,type:d,...h,classes:y})});Jc&&(Jc.muiName="Input");function f_(e){return te("MuiInputAdornment",e)}const M0=ee("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _0;const d_=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${I(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},p_=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${I(o)}`,i,r&&"hiddenLabel",a&&`size${I(a)}`]};return ne(l,f_,t)},m_=H("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:d_})(re(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${M0.positionStart}&:not(.${M0.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),h_=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiInputAdornment"}),{children:o,className:a,component:i="div",disablePointerEvents:l=!1,disableTypography:s=!1,position:c,variant:u,...f}=r,d=ho()||{};let h=u;u&&d.variant,d&&!h&&(h=d.variant);const y={...r,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:l,position:c,variant:h},v=p_(y);return b.jsx(sf.Provider,{value:null,children:b.jsx(m_,{as:i,ownerState:y,className:V(v.root,a),ref:n,...f,children:typeof o=="string"&&!s?b.jsx(ot,{color:"textSecondary",children:o}):b.jsxs(S.Fragment,{children:[c==="start"?_0||(_0=b.jsx("span",{className:"notranslate",children:"​"})):null,o]})})})});function g_(e){return te("MuiInputLabel",e)}ee("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const y_=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:a,variant:i,required:l}=e,s={root:["root",n&&"formControl",!a&&"animated",o&&"shrink",r&&r!=="normal"&&`size${I(r)}`,i],asterisk:[l&&"asterisk"]},c=ne(s,g_,t);return{...t,...c}},v_=H(i_,{shouldForwardProp:e=>Wt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ml.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(re(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Rx=S.forwardRef(function(t,n){const r=le({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:a,shrink:i,variant:l,className:s,...c}=r,u=ho();let f=i;typeof f>"u"&&u&&(f=u.filled||u.focused||u.adornedStart);const d=yi({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h={...r,disableAnimation:o,formControl:u,shrink:f,size:d.size,variant:d.variant,required:d.required,focused:d.focused},y=y_(h);return b.jsx(v_,{"data-shrink":f,ref:n,className:V(y.root,s),...c,ownerState:h,classes:y})});function b_(e){return te("MuiLink",e)}const S_=ee("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),x_=({theme:e,ownerState:t})=>{const n=t.color,r=Ka(e,`palette.${n}`,!1)||t.color,o=Ka(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ke(r,.4)},z0={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},C_=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,a={root:["root",`underline${I(o)}`,n==="button"&&"button",r&&"focusVisible"]};return ne(a,b_,t)},E_=H(ot,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${I(n.underline)}`],n.component==="button"&&t.button]}})(re(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:ke(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:ke(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:ke(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${S_.focusVisible}`]:{outline:"auto"}}}]}))),w_=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiLink"}),o=Jo(),{className:a,color:i="primary",component:l="a",onBlur:s,onFocus:c,TypographyClasses:u,underline:f="always",variant:d="inherit",sx:h,...y}=r,[v,C]=S.useState(!1),m=w=>{Qa(w.target)||C(!1),s&&s(w)},g=w=>{Qa(w.target)&&C(!0),c&&c(w)},p={...r,color:i,component:l,focusVisible:v,underline:f,variant:d},x=C_(p);return b.jsx(E_,{color:i,className:V(x.root,a),classes:u,component:l,onBlur:m,onFocus:g,ref:n,ownerState:p,variant:d,...y,sx:[...z0[i]===void 0?[{color:i}]:[],...Array.isArray(h)?h:[h]],style:{...y.style,...f==="always"&&i!=="inherit"&&!z0[i]&&{"--Link-underlineColor":x_({theme:o,ownerState:p})}}})}),Cr=S.createContext({});function R_(e){return te("MuiList",e)}ee("MuiList",["root","padding","dense","subheader"]);const T_=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return ne({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},R_,t)},O_=H("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Tx=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiList"}),{children:o,className:a,component:i="ul",dense:l=!1,disablePadding:s=!1,subheader:c,...u}=r,f=S.useMemo(()=>({dense:l}),[l]),d={...r,component:i,dense:l,disablePadding:s},h=T_(d);return b.jsx(Cr.Provider,{value:f,children:b.jsxs(O_,{as:i,className:V(h.root,a),ref:n,ownerState:d,...u,children:[c,o]})})});function A_(e){return te("MuiListItem",e)}ee("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const M_=ee("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function __(e){return te("MuiListItemSecondaryAction",e)}ee("MuiListItemSecondaryAction",["root","disableGutters"]);const z_=e=>{const{disableGutters:t,classes:n}=e;return ne({root:["root",t&&"disableGutters"]},__,n)},k_=H("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Ox=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...a}=r,i=S.useContext(Cr),l={...r,disableGutters:i.disableGutters},s=z_(l);return b.jsx(k_,{className:V(s.root,o),ownerState:l,ref:n,...a})});Ox.muiName="ListItemSecondaryAction";const j_=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},$_=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:a,divider:i,hasSecondaryAction:l}=e;return ne({root:["root",r&&"dense",!o&&"gutters",!a&&"padding",i&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},A_,n)},D_=H("div",{name:"MuiListItem",slot:"Root",overridesResolver:j_})(re(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${M_.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),N_=H("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),B_=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItem"}),{alignItems:o="center",children:a,className:i,component:l,components:s={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:f,...d}={},dense:h=!1,disableGutters:y=!1,disablePadding:v=!1,divider:C=!1,secondaryAction:m,slotProps:g={},slots:p={},...x}=r,w=S.useContext(Cr),T=S.useMemo(()=>({dense:h||w.dense||!1,alignItems:o,disableGutters:y}),[o,w.dense,h,y]),R=S.useRef(null),O=S.Children.toArray(a),E=O.length&&nc(O[O.length-1],["ListItemSecondaryAction"]),A={...r,alignItems:o,dense:T.dense,disableGutters:y,disablePadding:v,divider:C,hasSecondaryAction:E},_=$_(A),k=Ze(R,n),$=p.root||s.Root||D_,B=g.root||c.root||{},D={className:V(_.root,B.className,i),...x};let M=l||"li";return E?(M=!D.component&&!l?"div":M,u==="li"&&(M==="li"?M="div":D.component==="li"&&(D.component="div")),b.jsx(Cr.Provider,{value:T,children:b.jsxs(N_,{as:u,className:V(_.container,f),ref:k,ownerState:A,...d,children:[b.jsx($,{...B,...!Vl($)&&{as:M,ownerState:{...A,...B.ownerState}},...D,children:O}),O.pop()]})})):b.jsx(Cr.Provider,{value:T,children:b.jsxs($,{...B,as:M,ref:k,...!Vl($)&&{ownerState:{...A,...B.ownerState}},...D,children:[O,m&&b.jsx(Ox,{children:m})]})})});function L_(e){return te("MuiListItemIcon",e)}const k0=ee("MuiListItemIcon",["root","alignItemsFlexStart"]),U_=e=>{const{alignItems:t,classes:n}=e;return ne({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},L_,n)},H_=H("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(re(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),P_=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemIcon"}),{className:o,...a}=r,i=S.useContext(Cr),l={...r,alignItems:i.alignItems},s=U_(l);return b.jsx(H_,{className:V(s.root,o),ownerState:l,ref:n,...a})});function I_(e){return te("MuiListItemText",e)}const Oa=ee("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),V_=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:a}=e;return ne({root:["root",n&&"inset",a&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},I_,t)},G_=H("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Oa.primary}`]:t.primary},{[`& .${Oa.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${c0.root}:where(& .${Oa.primary})`]:{display:"block"},[`.${c0.root}:where(& .${Oa.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Ax=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiListItemText"}),{children:o,className:a,disableTypography:i=!1,inset:l=!1,primary:s,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:f,...d}=r,{dense:h}=S.useContext(Cr);let y=s??o,v=u;const C={...r,disableTypography:i,inset:l,primary:!!y,secondary:!!v,dense:h},m=V_(C);return y!=null&&y.type!==ot&&!i&&(y=b.jsx(ot,{variant:h?"body2":"body1",className:m.primary,component:c!=null&&c.variant?void 0:"span",...c,children:y})),v!=null&&v.type!==ot&&!i&&(v=b.jsx(ot,{variant:"body2",className:m.secondary,color:"textSecondary",...f,children:v})),b.jsxs(G_,{className:V(m.root,a),ownerState:C,ref:n,...d,children:[y,v]})});function hd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function j0(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Mx(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ji(e,t,n,r,o,a){let i=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const s=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Mx(l,a)||s)l=o(e,l,n);else return l.focus(),!0}return!1}const q_=S.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:a=!1,children:i,className:l,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:u,variant:f="selectedMenu",...d}=t,h=S.useRef(null),y=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ir(()=>{o&&h.current.focus()},[o]),S.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(p,{direction:x})=>{const w=!h.current.style.width;if(p.clientHeight{const x=h.current,w=p.key;if(p.ctrlKey||p.metaKey||p.altKey){u&&u(p);return}const R=xt(x).activeElement;if(w==="ArrowDown")p.preventDefault(),ji(x,R,c,s,hd);else if(w==="ArrowUp")p.preventDefault(),ji(x,R,c,s,j0);else if(w==="Home")p.preventDefault(),ji(x,null,c,s,hd);else if(w==="End")p.preventDefault(),ji(x,null,c,s,j0);else if(w.length===1){const O=y.current,E=w.toLowerCase(),A=performance.now();O.keys.length>0&&(A-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&E!==O.keys[0]&&(O.repeating=!1)),O.lastTime=A,O.keys.push(E);const _=R&&!O.repeating&&Mx(R,O);O.previousKeyMatched&&(_||ji(x,R,!1,s,hd,O))?p.preventDefault():O.previousKeyMatched=!1}u&&u(p)},C=Ze(h,n);let m=-1;S.Children.forEach(i,(p,x)=>{if(!S.isValidElement(p)){m===x&&(m+=1,m>=i.length&&(m=-1));return}p.props.disabled||(f==="selectedMenu"&&p.props.selected||m===-1)&&(m=x),m===x&&(p.props.disabled||p.props.muiSkipListHighlight||p.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))});const g=S.Children.map(i,(p,x)=>{if(x===m){const w={};return a&&(w.autoFocus=!0),p.props.tabIndex===void 0&&f==="selectedMenu"&&(w.tabIndex=0),S.cloneElement(p,w)}return p});return b.jsx(Tx,{role:"menu",ref:C,className:l,onKeyDown:v,tabIndex:o?0:-1,...d,children:g})});function F_(e){return te("MuiPopover",e)}ee("MuiPopover",["root","paper"]);function $0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function D0(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function N0(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gd(e){return typeof e=="function"?e():e}const Y_=e=>{const{classes:t}=e;return ne({root:["root"],paper:["paper"]},F_,t)},W_=H(Lh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_x=H(_r,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),X_=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiPopover"}),{action:o,anchorEl:a,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:s="anchorEl",children:c,className:u,container:f,elevation:d=8,marginThreshold:h=16,open:y,PaperProps:v={},slots:C={},slotProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:p=oi,transitionDuration:x="auto",TransitionProps:{onEntering:w,...T}={},disableScrollLock:R=!1,...O}=r,E=(m==null?void 0:m.paper)??v,A=S.useRef(),_={...r,anchorOrigin:i,anchorReference:s,elevation:d,marginThreshold:h,externalPaperSlotProps:E,transformOrigin:g,TransitionComponent:p,transitionDuration:x,TransitionProps:T},k=Y_(_),$=S.useCallback(()=>{if(s==="anchorPosition")return l;const J=gd(a),X=(J&&J.nodeType===1?J:xt(A.current).body).getBoundingClientRect();return{top:X.top+$0(X,i.vertical),left:X.left+D0(X,i.horizontal)}},[a,i.horizontal,i.vertical,l,s]),B=S.useCallback(J=>({vertical:$0(J,g.vertical),horizontal:D0(J,g.horizontal)}),[g.horizontal,g.vertical]),D=S.useCallback(J=>{const oe={width:J.offsetWidth,height:J.offsetHeight},X=B(oe);if(s==="none")return{top:null,left:null,transformOrigin:N0(X)};const ae=$();let ie=ae.top-X.vertical,me=ae.left-X.horizontal;const Ce=ie+oe.height,Le=me+oe.width,Ue=Vo(gd(a)),He=Ue.innerHeight-h,Ge=Ue.innerWidth-h;if(h!==null&&ieHe){const Se=Ce-He;ie-=Se,X.vertical+=Se}if(h!==null&&meGe){const Se=Le-Ge;me-=Se,X.horizontal+=Se}return{top:`${Math.round(ie)}px`,left:`${Math.round(me)}px`,transformOrigin:N0(X)}},[a,s,$,B,h]),[M,z]=S.useState(y),j=S.useCallback(()=>{const J=A.current;if(!J)return;const oe=D(J);oe.top!==null&&(J.style.top=oe.top),oe.left!==null&&(J.style.left=oe.left),J.style.transformOrigin=oe.transformOrigin,z(!0)},[D]);S.useEffect(()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j)),[a,R,j]);const U=(J,oe)=>{w&&w(J,oe),j()},P=()=>{z(!1)};S.useEffect(()=>{y&&j()}),S.useImperativeHandle(o,()=>y?{updatePosition:()=>{j()}}:null,[y,j]),S.useEffect(()=>{if(!y)return;const J=GS(()=>{j()}),oe=Vo(a);return oe.addEventListener("resize",J),()=>{J.clear(),oe.removeEventListener("resize",J)}},[a,y,j]);let F=x;x==="auto"&&!p.muiSupportAuto&&(F=void 0);const Q=f||(a?xt(gd(a)).body:void 0),W={slots:C,slotProps:{...m,paper:E}},[q,Z]=Jt("paper",{elementType:_x,externalForwardedProps:W,additionalProps:{elevation:d,className:V(k.paper,E==null?void 0:E.className),style:M?E.style:{...E.style,opacity:0}},ownerState:_}),[G,{slotProps:se,...ce}]=Jt("root",{elementType:W_,externalForwardedProps:W,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Q,open:y},ownerState:_,className:V(k.root,u)}),ue=Ze(A,Z.ref);return b.jsx(G,{...ce,...!Vl(G)&&{slotProps:se,disableScrollLock:R},...O,ref:n,children:b.jsx(p,{appear:!0,in:y,onEntering:U,onExited:P,timeout:F,...T,children:b.jsx(q,{...Z,ref:ue,children:c})})})});function K_(e){return te("MuiMenu",e)}ee("MuiMenu",["root","paper","list"]);const Q_={vertical:"top",horizontal:"right"},Z_={vertical:"top",horizontal:"left"},J_=e=>{const{classes:t}=e;return ne({root:["root"],paper:["paper"],list:["list"]},K_,t)},e6=H(X_,{shouldForwardProp:e=>Wt(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),t6=H(_x,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),n6=H(q_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),zx=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:i,disableAutoFocusItem:l=!1,MenuListProps:s={},onClose:c,open:u,PaperProps:f={},PopoverClasses:d,transitionDuration:h="auto",TransitionProps:{onEntering:y,...v}={},variant:C="selectedMenu",slots:m={},slotProps:g={},...p}=r,x=Ch(),w={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:s,onEntering:y,PaperProps:f,transitionDuration:h,TransitionProps:v,variant:C},T=J_(w),R=o&&!l&&u,O=S.useRef(null),E=(M,z)=>{O.current&&O.current.adjustStyleForScrollbar(M,{direction:x?"rtl":"ltr"}),y&&y(M,z)},A=M=>{M.key==="Tab"&&(M.preventDefault(),c&&c(M,"tabKeyDown"))};let _=-1;S.Children.map(a,(M,z)=>{S.isValidElement(M)&&(M.props.disabled||(C==="selectedMenu"&&M.props.selected||_===-1)&&(_=z))});const k=m.paper??t6,$=g.paper??f,B=Fc({elementType:m.root,externalSlotProps:g.root,ownerState:w,className:[T.root,i]}),D=Fc({elementType:k,externalSlotProps:$,ownerState:w,className:T.paper});return b.jsx(e6,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?Q_:Z_,slots:{paper:k,root:m.root},slotProps:{root:B,paper:D},open:u,ref:n,transitionDuration:h,TransitionProps:{onEntering:E,...v},ownerState:w,...p,classes:d,children:b.jsx(n6,{onKeyDown:A,actions:O,autoFocus:o&&(_===-1||l),autoFocusItem:R,variant:C,...s,className:V(T.list,s.className),children:a})})});function r6(e){return te("MuiMenuItem",e)}const $i=ee("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),o6=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},a6=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e,s=ne({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},r6,i);return{...i,...s}},i6=H(gi,{shouldForwardProp:e=>Wt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:o6})(re(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$i.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$i.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$i.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$i.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$i.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${T0.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${T0.inset}`]:{marginLeft:52},[`& .${Oa.root}`]:{marginTop:0,marginBottom:0},[`& .${Oa.inset}`]:{paddingLeft:36},[`& .${k0.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${k0.root} svg`]:{fontSize:"1.25rem"}}}]}))),Fp=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:f,className:d,...h}=r,y=S.useContext(Cr),v=S.useMemo(()=>({dense:i||y.dense||!1,disableGutters:s}),[y.dense,i,s]),C=S.useRef(null);ir(()=>{o&&C.current&&C.current.focus()},[o]);const m={...r,dense:v.dense,divider:l,disableGutters:s},g=a6(r),p=Ze(C,n);let x;return r.disabled||(x=f!==void 0?f:-1),b.jsx(Cr.Provider,{value:v,children:b.jsx(i6,{ref:p,role:u,tabIndex:x,component:a,focusVisibleClassName:V(g.focusVisible,c),className:V(g.root,d),...h,ownerState:m,classes:g})})});function l6(e){return te("MuiNativeSelect",e)}const Uh=ee("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),s6=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${I(n)}`,a&&"iconOpen",r&&"disabled"]};return ne(l,l6,t)},kx=H("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Uh.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),c6=H(kx,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Uh.multiple}`]:t.multiple}]}})({}),jx=H("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Uh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),u6=H(jx,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${I(n.variant)}`],n.open&&t.iconOpen]}})({}),f6=S.forwardRef(function(t,n){const{className:r,disabled:o,error:a,IconComponent:i,inputRef:l,variant:s="standard",...c}=t,u={...t,disabled:o,variant:s,error:a},f=s6(u);return b.jsxs(S.Fragment,{children:[b.jsx(c6,{ownerState:u,className:V(f.select,r),disabled:o,ref:l||n,...c}),t.multiple?null:b.jsx(u6,{as:i,ownerState:u,className:f.icon})]})});var B0;const d6=H("fieldset",{shouldForwardProp:Wt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),p6=H("legend",{shouldForwardProp:Wt})(re(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function m6(e){const{children:t,classes:n,className:r,label:o,notched:a,...i}=e,l=o!=null&&o!=="",s={...e,notched:a,withLabel:l};return b.jsx(d6,{"aria-hidden":!0,className:r,ownerState:s,...i,children:b.jsx(p6,{ownerState:s,children:l?b.jsx("span",{children:o}):B0||(B0=b.jsx("span",{className:"notranslate",children:"​"}))})})}const h6=e=>{const{classes:t}=e,r=ne({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},j3,t);return{...t,...r}},g6=H(ff,{shouldForwardProp:e=>Wt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:cf})(re(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},[`&.${Fn.focused} .${Fn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ln()).map(([n])=>({props:{color:n},style:{[`&.${Fn.focused} .${Fn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{"@media (hover: none)":{[`&:hover .${Fn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Fn.error} .${Fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Fn.disabled} .${Fn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),y6=H(m6,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(re(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),v6=H(df,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:uf})(re(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),eu=S.forwardRef(function(t,n){var r;const o=le({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:i=!1,inputComponent:l="input",label:s,multiline:c=!1,notched:u,slots:f={},type:d="text",...h}=o,y=h6(o),v=ho(),C=yi({props:o,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),m={...o,color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:v,fullWidth:i,hiddenLabel:C.hiddenLabel,multiline:c,size:C.size,type:d},g=f.root??a.Root??g6,p=f.input??a.Input??v6;return b.jsx(Bh,{slots:{root:g,input:p},renderSuffix:x=>b.jsx(y6,{ownerState:m,className:y.notchedOutline,label:s!=null&&s!==""&&C.required?r||(r=b.jsxs(S.Fragment,{children:[s," ","*"]})):s,notched:typeof u<"u"?u:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:i,inputComponent:l,multiline:c,ref:n,type:d,...h,classes:{...y,notchedOutline:null}})});eu&&(eu.muiName="Input");function b6(e){return te("MuiSelect",e)}const Di=ee("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var L0;const S6=H(kx,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Di.select}`]:t.select},{[`&.${Di.select}`]:t[n.variant]},{[`&.${Di.error}`]:t.error},{[`&.${Di.multiple}`]:t.multiple}]}})({[`&.${Di.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),x6=H(jx,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${I(n.variant)}`],n.open&&t.iconOpen]}})({}),C6=H("input",{shouldForwardProp:e=>ox(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function U0(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function E6(e){return e==null||typeof e=="string"&&!e.trim()}const w6=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:a,error:i}=e,l={select:["select",n,r&&"disabled",o&&"multiple",i&&"error"],icon:["icon",`icon${I(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ne(l,b6,t)},R6=S.forwardRef(function(t,n){var go;const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:i,children:l,className:s,defaultOpen:c,defaultValue:u,disabled:f,displayEmpty:d,error:h=!1,IconComponent:y,inputRef:v,labelId:C,MenuProps:m={},multiple:g,name:p,onBlur:x,onChange:w,onClose:T,onFocus:R,onOpen:O,open:E,readOnly:A,renderValue:_,SelectDisplayProps:k={},tabIndex:$,type:B,value:D,variant:M="standard",...z}=t,[j,U]=Hl({controlled:D,default:u,name:"Select"}),[P,F]=Hl({controlled:E,default:c,name:"Select"}),Q=S.useRef(null),W=S.useRef(null),[q,Z]=S.useState(null),{current:G}=S.useRef(E!=null),[se,ce]=S.useState(),ue=Ze(n,v),J=S.useCallback(K=>{W.current=K,K&&Z(K)},[]),oe=q==null?void 0:q.parentNode;S.useImperativeHandle(ue,()=>({focus:()=>{W.current.focus()},node:Q.current,value:j}),[j]),S.useEffect(()=>{c&&P&&q&&!G&&(ce(i?null:oe.clientWidth),W.current.focus())},[q,i]),S.useEffect(()=>{a&&W.current.focus()},[a]),S.useEffect(()=>{if(!C)return;const K=xt(W.current).getElementById(C);if(K){const Oe=()=>{getSelection().isCollapsed&&W.current.focus()};return K.addEventListener("click",Oe),()=>{K.removeEventListener("click",Oe)}}},[C]);const X=(K,Oe)=>{K?O&&O(Oe):T&&T(Oe),G||(ce(i?null:oe.clientWidth),F(K))},ae=K=>{K.button===0&&(K.preventDefault(),W.current.focus(),X(!0,K))},ie=K=>{X(!1,K)},me=S.Children.toArray(l),Ce=K=>{const Oe=me.find(lt=>lt.props.value===K.target.value);Oe!==void 0&&(U(Oe.props.value),w&&w(K,Oe))},Le=K=>Oe=>{let lt;if(Oe.currentTarget.hasAttribute("tabindex")){if(g){lt=Array.isArray(j)?j.slice():[];const cr=j.indexOf(K.props.value);cr===-1?lt.push(K.props.value):lt.splice(cr,1)}else lt=K.props.value;if(K.props.onClick&&K.props.onClick(Oe),j!==lt&&(U(lt),w)){const cr=Oe.nativeEvent||Oe,bi=new cr.constructor(cr.type,cr);Object.defineProperty(bi,"target",{writable:!0,value:{value:lt,name:p}}),w(bi,K)}g||X(!1,Oe)}},Ue=K=>{A||[" ","ArrowUp","ArrowDown","Enter"].includes(K.key)&&(K.preventDefault(),X(!0,K))},He=q!==null&&P,Ge=K=>{!He&&x&&(Object.defineProperty(K,"target",{writable:!0,value:{value:j,name:p}}),x(K))};delete z["aria-invalid"];let Se,ht;const Y=[];let Pe=!1;(Qc({value:j})||d)&&(_?Se=_(j):Pe=!0);const Xt=me.map(K=>{if(!S.isValidElement(K))return null;let Oe;if(g){if(!Array.isArray(j))throw new Error(Mr(2));Oe=j.some(lt=>U0(lt,K.props.value)),Oe&&Pe&&Y.push(K.props.children)}else Oe=U0(j,K.props.value),Oe&&Pe&&(ht=K.props.children);return S.cloneElement(K,{"aria-selected":Oe?"true":"false",onClick:Le(K),onKeyUp:lt=>{lt.key===" "&<.preventDefault(),K.props.onKeyUp&&K.props.onKeyUp(lt)},role:"option",selected:Oe,value:void 0,"data-value":K.props.value})});Pe&&(g?Y.length===0?Se=null:Se=Y.reduce((K,Oe,lt)=>(K.push(Oe),lt{const{classes:t}=e;return t},Hh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Wt(e)&&e!=="variant",slot:"Root"},O6=H(Jc,Hh)(""),A6=H(eu,Hh)(""),M6=H(Zc,Hh)(""),pf=S.forwardRef(function(t,n){const r=Th({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:a,classes:i={},className:l,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:u=D3,id:f,input:d,inputProps:h,label:y,labelId:v,MenuProps:C,multiple:m=!1,native:g=!1,onClose:p,onOpen:x,open:w,renderValue:T,SelectDisplayProps:R,variant:O="outlined",...E}=r,A=g?f6:R6,_=ho(),k=yi({props:r,muiFormControl:_,states:["variant","error"]}),$=k.variant||O,B={...r,variant:$,classes:i},D=T6(B),{root:M,...z}=D,j=d||{standard:b.jsx(O6,{ownerState:B}),outlined:b.jsx(A6,{label:y,ownerState:B}),filled:b.jsx(M6,{ownerState:B})}[$],U=Ze(n,Zo(j));return b.jsx(S.Fragment,{children:S.cloneElement(j,{inputComponent:A,inputProps:{children:a,error:k.error,IconComponent:u,variant:$,type:void 0,multiple:m,...g?{id:f}:{autoWidth:o,defaultOpen:s,displayEmpty:c,labelId:v,MenuProps:C,onClose:p,onOpen:x,open:w,renderValue:T,SelectDisplayProps:{id:f,...R}},...h,classes:h?St(z,h.classes):z,...d?d.props.inputProps:{}},...(m&&g||c)&&$==="outlined"?{notched:!0}:{},ref:U,className:V(j.props.className,l,D.root),...!d&&{variant:$},...E})})});pf.muiName="Select";function _6(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:a}=e,i=Wr();S.useEffect(()=>{if(!o)return;function m(g){g.defaultPrevented||g.key==="Escape"&&(r==null||r(g,"escapeKeyDown"))}return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m)}},[o,r]);const l=Un((m,g)=>{r==null||r(m,g)}),s=Un(m=>{!r||m==null||i.start(m,()=>{l(null,"timeout")})});S.useEffect(()=>(o&&s(t),i.clear),[o,t,s,i]);const c=m=>{r==null||r(m,"clickaway")},u=i.clear,f=S.useCallback(()=>{t!=null&&s(a??t*.5)},[t,a,s]),d=m=>g=>{const p=m.onBlur;p==null||p(g),f()},h=m=>g=>{const p=m.onFocus;p==null||p(g),u()},y=m=>g=>{const p=m.onMouseEnter;p==null||p(g),u()},v=m=>g=>{const p=m.onMouseLeave;p==null||p(g),f()};return S.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",f),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",u)}},[n,o,f,u]),{getRootProps:(m={})=>{const g={...qc(e),...qc(m)};return{role:"presentation",...m,...g,onBlur:d(g),onFocus:h(g),onMouseEnter:y(g),onMouseLeave:v(g)}},onClickAway:c}}function z6(e){return te("MuiSnackbarContent",e)}ee("MuiSnackbarContent",["root","message","action"]);const k6=e=>{const{classes:t}=e;return ne({root:["root"],action:["action"],message:["message"]},z6,t)},j6=H(_r,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(re(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=VS(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),$6=H("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),D6=H("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),N6=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbarContent"}),{action:o,className:a,message:i,role:l="alert",...s}=r,c=r,u=k6(c);return b.jsxs(j6,{role:l,square:!0,elevation:6,className:V(u.root,a),ownerState:c,ref:n,...s,children:[b.jsx($6,{className:u.message,ownerState:c,children:i}),o?b.jsx(D6,{className:u.action,ownerState:c,children:o}):null]})});function B6(e){return te("MuiSnackbar",e)}ee("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const L6=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${I(n.vertical)}${I(n.horizontal)}`]};return ne(r,B6,t)},H0=H("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${I(n.anchorOrigin.vertical)}${I(n.anchorOrigin.horizontal)}`]]}})(re(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),U6=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiSnackbar"}),o=Jo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:i,anchorOrigin:{vertical:l,horizontal:s}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:f,ClickAwayListenerProps:d,ContentProps:h,disableWindowBlurListener:y=!1,message:v,onBlur:C,onClose:m,onFocus:g,onMouseEnter:p,onMouseLeave:x,open:w,resumeHideDuration:T,TransitionComponent:R=oi,transitionDuration:O=a,TransitionProps:{onEnter:E,onExited:A,..._}={},...k}=r,$={...r,anchorOrigin:{vertical:l,horizontal:s},autoHideDuration:c,disableWindowBlurListener:y,TransitionComponent:R,transitionDuration:O},B=L6($),{getRootProps:D,onClickAway:M}=_6({...$}),[z,j]=S.useState(!0),U=Fc({elementType:H0,getSlotProps:D,externalForwardedProps:k,ownerState:$,additionalProps:{ref:n},className:[B.root,f]}),P=Q=>{j(!0),A&&A(Q)},F=(Q,W)=>{j(!1),E&&E(Q,W)};return!w&&z?null:b.jsx(SM,{onClickAway:M,...d,children:b.jsx(H0,{...U,children:b.jsx(R,{appear:!0,in:w,timeout:O,direction:l==="top"?"down":"up",onEnter:F,onExited:P,..._,children:u||b.jsx(N6,{message:v,action:i,...h})})})})});function H6(e){return te("MuiTooltip",e)}const tt=ee("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function P6(e){return Math.round(e*1e5)/1e5}const I6=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e,i={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${I(a.split("-")[0])}`],arrow:["arrow"]};return ne(i,H6,t)},V6=H(bx,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(re(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${tt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${tt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),G6=H("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${I(n.placement.split("-")[0])}`]]}})(re(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ke(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${tt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${tt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${tt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${tt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${P6(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${tt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${tt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),q6=H("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(re(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ke(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ls=!1;const P0=new rf;let Ni={x:0,y:0};function Us(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const F6=S.forwardRef(function(t,n){var Ih,Vh,Gh;const r=le({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:a,classes:i,components:l={},componentsProps:s={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:f=!1,disableInteractive:d=!1,disableTouchListener:h=!1,enterDelay:y=100,enterNextDelay:v=0,enterTouchDelay:C=700,followCursor:m=!1,id:g,leaveDelay:p=0,leaveTouchDelay:x=1500,onClose:w,onOpen:T,open:R,placement:O="bottom",PopperComponent:E,PopperProps:A={},slotProps:_={},slots:k={},title:$,TransitionComponent:B=oi,TransitionProps:D,...M}=r,z=S.isValidElement(a)?a:b.jsx("span",{children:a}),j=Jo(),U=Ch(),[P,F]=S.useState(),[Q,W]=S.useState(null),q=S.useRef(!1),Z=d||m,G=Wr(),se=Wr(),ce=Wr(),ue=Wr(),[J,oe]=Hl({controlled:R,default:!1,name:"Tooltip",state:"open"});let X=J;const ae=Sh(g),ie=S.useRef(),me=Un(()=>{ie.current!==void 0&&(document.body.style.WebkitUserSelect=ie.current,ie.current=void 0),ue.clear()});S.useEffect(()=>me,[me]);const Ce=ve=>{P0.clear(),Ls=!0,oe(!0),T&&!X&&T(ve)},Le=Un(ve=>{P0.start(800+p,()=>{Ls=!1}),oe(!1),w&&X&&w(ve),G.start(j.transitions.duration.shortest,()=>{q.current=!1})}),Ue=ve=>{q.current&&ve.type!=="touchstart"||(P&&P.removeAttribute("title"),se.clear(),ce.clear(),y||Ls&&v?se.start(Ls?v:y,()=>{Ce(ve)}):Ce(ve))},He=ve=>{se.clear(),ce.start(p,()=>{Le(ve)})},[,Ge]=S.useState(!1),Se=ve=>{Qa(ve.target)||(Ge(!1),He(ve))},ht=ve=>{P||F(ve.currentTarget),Qa(ve.target)&&(Ge(!0),Ue(ve))},Y=ve=>{q.current=!0;const jn=z.props;jn.onTouchStart&&jn.onTouchStart(ve)},Pe=ve=>{Y(ve),ce.clear(),G.clear(),me(),ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ue.start(C,()=>{document.body.style.WebkitUserSelect=ie.current,Ue(ve)})},Xt=ve=>{z.props.onTouchEnd&&z.props.onTouchEnd(ve),me(),ce.start(x,()=>{Le(ve)})};S.useEffect(()=>{if(!X)return;function ve(jn){jn.key==="Escape"&&Le(jn)}return document.addEventListener("keydown",ve),()=>{document.removeEventListener("keydown",ve)}},[Le,X]);const ge=Ze(Zo(z),F,n);!$&&$!==0&&(X=!1);const ye=S.useRef(),jt=ve=>{const jn=z.props;jn.onMouseMove&&jn.onMouseMove(ve),Ni={x:ve.clientX,y:ve.clientY},ye.current&&ye.current.update()},wt={},Ut=typeof $=="string";c?(wt.title=!X&&Ut&&!f?$:null,wt["aria-describedby"]=X?ae:null):(wt["aria-label"]=Ut?$:null,wt["aria-labelledby"]=X&&!Ut?ae:null);const he={...wt,...M,...z.props,className:V(M.className,z.props.className),onTouchStart:Y,ref:ge,...m?{onMouseMove:jt}:{}},kn={};h||(he.onTouchStart=Pe,he.onTouchEnd=Xt),f||(he.onMouseOver=Us(Ue,he.onMouseOver),he.onMouseLeave=Us(He,he.onMouseLeave),Z||(kn.onMouseOver=Ue,kn.onMouseLeave=He)),u||(he.onFocus=Us(ht,he.onFocus),he.onBlur=Us(Se,he.onBlur),Z||(kn.onFocus=ht,kn.onBlur=Se));const go=S.useMemo(()=>{var jn;let ve=[{name:"arrow",enabled:!!Q,options:{element:Q,padding:4}}];return(jn=A.popperOptions)!=null&&jn.modifiers&&(ve=ve.concat(A.popperOptions.modifiers)),{...A.popperOptions,modifiers:ve}},[Q,A]),K={...r,isRtl:U,arrow:o,disableInteractive:Z,placement:O,PopperComponentProp:E,touch:q.current},Oe=I6(K),lt=k.popper??l.Popper??V6,cr=k.transition??l.Transition??B??oi,bi=k.tooltip??l.Tooltip??G6,Ph=k.arrow??l.Arrow??q6,Bx=Ra(lt,{...A,..._.popper??s.popper,className:V(Oe.popper,A==null?void 0:A.className,(Ih=_.popper??s.popper)==null?void 0:Ih.className)},K),Lx=Ra(cr,{...D,..._.transition??s.transition},K),Ux=Ra(bi,{..._.tooltip??s.tooltip,className:V(Oe.tooltip,(Vh=_.tooltip??s.tooltip)==null?void 0:Vh.className)},K),Hx=Ra(Ph,{..._.arrow??s.arrow,className:V(Oe.arrow,(Gh=_.arrow??s.arrow)==null?void 0:Gh.className)},K);return b.jsxs(S.Fragment,{children:[S.cloneElement(z,he),b.jsx(lt,{as:E??bx,placement:O,anchorEl:m?{getBoundingClientRect:()=>({top:Ni.y,left:Ni.x,right:Ni.x,bottom:Ni.y,width:0,height:0})}:P,popperRef:ye,open:P?X:!1,id:ae,transition:!0,...kn,...Bx,popperOptions:go,children:({TransitionProps:ve})=>b.jsx(cr,{timeout:j.transitions.duration.shorter,...ve,...Lx,children:b.jsxs(bi,{...Ux,children:[$,o?b.jsx(Ph,{...Hx,ref:W}):null]})})})]})}),cn=R5({createStyledComponent:H("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Th({props:e,name:"MuiStack"})});function Y6(e){return te("MuiSwitch",e)}const $t=ee("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),W6=e=>{const{classes:t,edge:n,size:r,color:o,checked:a,disabled:i}=e,l={root:["root",n&&`edge${I(n)}`,`size${I(r)}`],switchBase:["switchBase",`color${I(o)}`,a&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=ne(l,Y6,t);return{...t,...s}},X6=H("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${I(n.edge)}`],t[`size${I(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${$t.thumb}`]:{width:16,height:16},[`& .${$t.switchBase}`]:{padding:4,[`&.${$t.checked}`]:{transform:"translateX(16px)"}}}}]}),K6=H(xx,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${$t.input}`]:t.input},n.color!=="default"&&t[`color${I(n.color)}`]]}})(re(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${$t.checked}`]:{transform:"translateX(20px)"},[`&.${$t.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${$t.checked} + .${$t.track}`]:{opacity:.5},[`&.${$t.disabled} + .${$t.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${$t.input}`]:{left:"-100%",width:"300%"}})),re(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(ln(["light"])).map(([t])=>({props:{color:t},style:{[`&.${$t.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ke(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${$t.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?ss(e.palette[t].main,.62):ls(e.palette[t].main,.55)}`}},[`&.${$t.checked} + .${$t.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Q6=H("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(re(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),Z6=H("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(re(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Yp=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiSwitch"}),{className:o,color:a="primary",edge:i=!1,size:l="medium",sx:s,...c}=r,u={...r,color:a,edge:i,size:l},f=W6(u),d=b.jsx(Z6,{className:f.thumb,ownerState:u});return b.jsxs(X6,{className:V(f.root,o),sx:s,ownerState:u,children:[b.jsx(K6,{type:"checkbox",icon:d,checkedIcon:d,ref:n,ownerState:u,...c,classes:{...f,root:f.switchBase}}),b.jsx(Q6,{className:f.track,ownerState:u})]})}),$x=S.createContext();function J6(e){return te("MuiTable",e)}ee("MuiTable",["root","stickyHeader"]);const ez=e=>{const{classes:t,stickyHeader:n}=e;return ne({root:["root",n&&"stickyHeader"]},J6,t)},tz=H("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(re(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),I0="table",mf=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiTable"}),{className:o,component:a=I0,padding:i="normal",size:l="medium",stickyHeader:s=!1,...c}=r,u={...r,component:a,padding:i,size:l,stickyHeader:s},f=ez(u),d=S.useMemo(()=>({padding:i,size:l,stickyHeader:s}),[i,l,s]);return b.jsx($x.Provider,{value:d,children:b.jsx(tz,{as:a,role:a===I0?null:"table",ref:n,className:V(f.root,o),ownerState:u,...c})})}),hf=S.createContext();function nz(e){return te("MuiTableBody",e)}ee("MuiTableBody",["root"]);const rz=e=>{const{classes:t}=e;return ne({root:["root"]},nz,t)},oz=H("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),az={variant:"body"},V0="tbody",gf=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiTableBody"}),{className:o,component:a=V0,...i}=r,l={...r,component:a},s=rz(l);return b.jsx(hf.Provider,{value:az,children:b.jsx(oz,{className:V(s.root,o),as:a,ref:n,role:a===V0?null:"rowgroup",ownerState:l,...i})})});function iz(e){return te("MuiTableCell",e)}const lz=ee("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),sz=e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e,l={root:["root",n,i&&"stickyHeader",r!=="inherit"&&`align${I(r)}`,o!=="normal"&&`padding${I(o)}`,`size${I(a)}`]};return ne(l,iz,t)},cz=H("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${I(n.size)}`],n.padding!=="normal"&&t[`padding${I(n.padding)}`],n.align!=="inherit"&&t[`align${I(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(re(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?ss(ke(e.palette.divider,1),.88):ls(ke(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${lz.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),so=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:l,scope:s,size:c,sortDirection:u,variant:f,...d}=r,h=S.useContext($x),y=S.useContext(hf),v=y&&y.variant==="head";let C;i?C=i:C=v?"th":"td";let m=s;C==="td"?m=void 0:!m&&v&&(m="col");const g=f||y&&y.variant,p={...r,align:o,component:C,padding:l||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:g==="head"&&h&&h.stickyHeader,variant:g},x=sz(p);let w=null;return u&&(w=u==="asc"?"ascending":"descending"),b.jsx(cz,{as:C,ref:n,className:V(x.root,a),"aria-sort":w,scope:m,ownerState:p,...d})});function uz(e){return te("MuiTableContainer",e)}ee("MuiTableContainer",["root"]);const fz=e=>{const{classes:t}=e;return ne({root:["root"]},uz,t)},dz=H("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),yf=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiTableContainer"}),{className:o,component:a="div",...i}=r,l={...r,component:a},s=fz(l);return b.jsx(dz,{ref:n,as:a,className:V(s.root,o),ownerState:l,...i})});function pz(e){return te("MuiTableHead",e)}ee("MuiTableHead",["root"]);const mz=e=>{const{classes:t}=e;return ne({root:["root"]},pz,t)},hz=H("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),gz={variant:"head"},G0="thead",vf=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiTableHead"}),{className:o,component:a=G0,...i}=r,l={...r,component:a},s=mz(l);return b.jsx(hf.Provider,{value:gz,children:b.jsx(hz,{as:a,className:V(s.root,o),ref:n,role:a===G0?null:"rowgroup",ownerState:l,...i})})});function yz(e){return te("MuiTableRow",e)}const q0=ee("MuiTableRow",["root","selected","hover","head","footer"]),vz=e=>{const{classes:t,selected:n,hover:r,head:o,footer:a}=e;return ne({root:["root",n&&"selected",r&&"hover",o&&"head",a&&"footer"]},yz,t)},bz=H("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(re(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${q0.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${q0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ke(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ke(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),F0="tr",co=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiTableRow"}),{className:o,component:a=F0,hover:i=!1,selected:l=!1,...s}=r,c=S.useContext(hf),u={...r,component:a,hover:i,selected:l,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},f=vz(u);return b.jsx(bz,{as:a,ref:n,className:V(f.root,o),role:a===F0?null:"row",ownerState:u,...s})}),Sz=Et(b.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function xz(e){return te("MuiTableSortLabel",e)}const yd=ee("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),Cz=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active",`direction${I(n)}`],icon:["icon",`iconDirection${I(n)}`]};return ne(o,xz,t)},Ez=H(gi,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(re(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${yd.icon}`]:{opacity:.5}},[`&.${yd.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${yd.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),wz=H("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${I(n.direction)}`]]}})(re(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),Rz=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:a,className:i,direction:l="asc",hideSortIcon:s=!1,IconComponent:c=Sz,...u}=r,f={...r,active:o,direction:l,hideSortIcon:s,IconComponent:c},d=Cz(f);return b.jsxs(Ez,{className:V(d.root,i),component:"span",disableRipple:!0,ownerState:f,ref:n,...u,children:[a,s&&!o?null:b.jsx(wz,{as:c,className:V(d.icon),ownerState:f})]})});function Tz(e){return te("MuiTextField",e)}ee("MuiTextField",["root"]);const Oz={standard:Jc,filled:Zc,outlined:eu},Az=e=>{const{classes:t}=e;return ne({root:["root"]},Tz,t)},Mz=H(wx,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vi=S.forwardRef(function(t,n){const r=le({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:a=!1,children:i,className:l,color:s="primary",defaultValue:c,disabled:u=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:y,id:v,InputLabelProps:C,inputProps:m,InputProps:g,inputRef:p,label:x,maxRows:w,minRows:T,multiline:R=!1,name:O,onBlur:E,onChange:A,onFocus:_,placeholder:k,required:$=!1,rows:B,select:D=!1,SelectProps:M,slots:z={},slotProps:j={},type:U,value:P,variant:F="outlined",...Q}=r,W={...r,autoFocus:a,color:s,disabled:u,error:f,fullWidth:h,multiline:R,required:$,select:D,variant:F},q=Az(W),Z=Sh(v),G=y&&Z?`${Z}-helper-text`:void 0,se=x&&Z?`${Z}-label`:void 0,ce=Oz[F],ue={slots:z,slotProps:{input:g,inputLabel:C,htmlInput:m,formHelperText:d,select:M,...j}},J={},oe=ue.slotProps.inputLabel;F==="outlined"&&(oe&&typeof oe.shrink<"u"&&(J.notched=oe.shrink),J.label=x),D&&((!M||!M.native)&&(J.id=void 0),J["aria-describedby"]=void 0);const[X,ae]=Jt("input",{elementType:ce,externalForwardedProps:ue,additionalProps:J,ownerState:W}),[ie,me]=Jt("inputLabel",{elementType:Rx,externalForwardedProps:ue,ownerState:W}),[Ce,Le]=Jt("htmlInput",{elementType:"input",externalForwardedProps:ue,ownerState:W}),[Ue,He]=Jt("formHelperText",{elementType:t_,externalForwardedProps:ue,ownerState:W}),[Ge,Se]=Jt("select",{elementType:pf,externalForwardedProps:ue,ownerState:W}),ht=b.jsx(X,{"aria-describedby":G,autoComplete:o,autoFocus:a,defaultValue:c,fullWidth:h,multiline:R,name:O,rows:B,maxRows:w,minRows:T,type:U,value:P,id:Z,inputRef:p,onBlur:E,onChange:A,onFocus:_,placeholder:k,inputProps:Le,slots:{input:z.htmlInput?Ce:void 0},...ae});return b.jsxs(Mz,{className:V(q.root,l),disabled:u,error:f,fullWidth:h,ref:n,required:$,color:s,variant:F,ownerState:W,...Q,children:[x!=null&&x!==""&&b.jsx(ie,{htmlFor:Z,id:se,...me,children:x}),D?b.jsx(Ge,{"aria-describedby":G,id:Z,labelId:se,value:P,input:ht,...Se,children:i}):ht,y&&b.jsx(Ue,{id:G,...He,children:y})]})}),_z=()=>{const e=We.c(19),{isWebviewReady:t,isMaximized:n,setIsMaximized:r}=fi(zz);let o;e[0]!==t?(o=()=>{t&&window.pywebview&&window.pywebview.api&&window.pywebview.api.minimize_window()},e[0]=t,e[1]=o):o=e[1];const a=o;let i;e[2]!==t||e[3]!==n||e[4]!==r?(i=()=>{t&&window.pywebview&&window.pywebview.api&&(n?(window.pywebview.api.restore_window(),r(!1),console.log("restoring")):(window.pywebview.api.maximize_window(),r(!0),console.log("maximizing")))},e[2]=t,e[3]=n,e[4]=r,e[5]=i):i=e[5];const l=i;let s;e[6]!==t?(s=()=>{t&&window.pywebview&&window.pywebview.api&&window.pywebview.api.close_window()},e[6]=t,e[7]=s):s=e[7];const c=s;let u;e[8]===Symbol.for("react.memo_cache_sentinel")?(u={display:"flex",gap:1},e[8]=u):u=e[8];let f;e[9]!==a?(f=b.jsx(Tn,{onClick:a,children:"-"}),e[9]=a,e[10]=f):f=e[10];let d;e[11]!==l?(d=b.jsx(Tn,{onClick:l,children:"□"}),e[11]=l,e[12]=d):d=e[12];let h;e[13]!==c?(h=b.jsx(Tn,{onClick:c,children:"x"}),e[13]=c,e[14]=h):h=e[14];let y;return e[15]!==f||e[16]!==d||e[17]!==h?(y=b.jsxs(Bn,{sx:u,children:[f,d,h]}),e[15]=f,e[16]=d,e[17]=h,e[18]=y):y=e[18],y};function zz(e){return{isWebviewReady:e.isWebviewReady,isMaximized:e.isMaximized,setIsMaximized:e.setIsMaximized}}const kz=Et(b.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),jz=Et(b.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"}),"BarChart"),$z=Et(b.jsx("path",{d:"M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"}),"Computer"),Dz=Et(b.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"}),"Dashboard"),Nz=Et(b.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-2m-8 14H7v-4h4zm0-6H7V7h4zm6 6h-4v-4h4zm0-6h-4V7h4z"}),"Dataset"),Bz=Et(b.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),Lz=Et(b.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2m0 14H3V5h18zm-2-9H8v2h11zm0 4H8v2h11zM7 8H5v2h2zm0 4H5v2h2z"}),"Dvr"),Uz=Et(b.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore"),Dx=Et(b.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),Nx=Et(b.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),Hz=Et(b.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),Pz=Et(b.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),Iz=Et(b.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),Bi=e=>{const t=We.c(10),{to:n,label:r,icon:o}=e,a=mi();let i;t[0]!==a.pathname||t[1]!==n?(i=a.pathname.includes(n),t[0]=a.pathname,t[1]=n,t[2]=i):i=t[2];const l=i,s=l?null:n;let c;t[3]!==l?(c=l?{color:"primary.main"}:{color:"text.primary"},t[3]=l,t[4]=c):c=t[4];let u;return t[5]!==s||t[6]!==o||t[7]!==c||t[8]!==r?(u=b.jsx(Tn,{component:rh,to:s,startIcon:o,sx:c,children:r}),t[5]=s,t[6]=o,t[7]=c,t[8]=r,t[9]=u):u=t[9],u},Vz=()=>b.jsxs(cn,{direction:"row",justifyContent:"space-around",p:.5,children:[b.jsx(Bi,{to:"/source",icon:b.jsx(Nz,{}),label:"Source Selection"}),b.jsx(Bi,{to:"/channels",icon:b.jsx(Lz,{}),label:"Channels"}),b.jsx(Bi,{to:"/settings",icon:b.jsx(Pz,{}),label:"Settings"}),b.jsx(Bi,{to:"/dashboard",icon:b.jsx(Dz,{}),label:"Dashboard"}),b.jsx(Bi,{to:"/decoding",icon:b.jsx(jz,{}),label:"Decoding"})]}),Gz=()=>{const e=We.c(11),{isWebView:t}=fi(qz),[n,r]=S.useState(!1);let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>r(!0),e[0]=o):o=e[0];let a,i;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=b.jsx(ot,{onClick:o,variant:"h4",sx:{cursor:"pointer",ml:2,"&:hover":{color:"primary.main"}},children:"PyNeuromodulation"}),i=b.jsx(Vz,{}),e[1]=a,e[2]=i):(a=e[1],i=e[2]);let l;e[3]!==t?(l=t&&b.jsx(_z,{}),e[3]=t,e[4]=l):l=e[4];let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s=()=>r(!1),e[5]=s):s=e[5];let c;e[6]!==n?(c=b.jsx(Yz,{open:n,onClose:s}),e[6]=n,e[7]=c):c=e[7];let u;return e[8]!==l||e[9]!==c?(u=b.jsxs(cn,{className:"pywebview-drag-region",direction:"row",justifyContent:"space-between",borderBottom:"2px solid",borderColor:"background.level3",bgcolor:"background.paper",children:[a,i,l,c]}),e[8]=l,e[9]=c,e[10]=u):u=e[10],u};function qz(e){return e.isWebView}const Fz=e=>{const t=We.c(10);let n,r,o,a;t[0]!==e?({href:n,children:a,className:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a):(n=t[1],r=t[2],o=t[3],a=t[4]);let i;return t[5]!==n||t[6]!==r||t[7]!==o||t[8]!==a?(i=b.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:r,...o,children:a}),t[5]=n,t[6]=r,t[7]=o,t[8]=a,t[9]=i):i=t[9],i},ac=e=>{const t=We.c(8);let n,r,o;t[0]!==e?({to:n,children:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o):(n=t[1],r=t[2],o=t[3]);let a;return t[4]!==n||t[5]!==r||t[6]!==o?(a=b.jsx(Tn,{component:rh,to:n,...r,children:o}),t[4]=n,t[5]=r,t[6]=o,t[7]=a):a=t[7],a},Br=e=>{const t=We.c(10),{label:n,value:r,isLink:o}=e,a=o===void 0?!1:o;if(r==null||r===""||Array.isArray(r)&&r.length===0)return null;let i;t[0]!==n?(i=b.jsx(ot,{display:"inline",variant:"body1",color:"primary.main",children:b.jsxs("strong",{children:[n,": "]})}),t[0]=n,t[1]=i):i=t[1];let l;t[2]!==a||t[3]!==r?(l=a?b.jsx(w_,{component:Fz,href:r,color:"text.primary",children:r}):r,t[2]=a,t[3]=r,t[4]=l):l=t[4];let s;t[5]!==l?(s=b.jsx(ot,{display:"inline",variant:"body1",children:l}),t[5]=l,t[6]=s):s=t[6];let c;return t[7]!==i||t[8]!==s?(c=b.jsx(B_,{children:b.jsxs(Ax,{disableTypography:!0,children:[i,s]})}),t[7]=i,t[8]=s,t[9]=c):c=t[9],c},Yz=e=>{const t=We.c(41),{open:n,onClose:r}=e,o=eS();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={display:"flex",justifyContent:"center",alignItems:"center"},t[0]=a):a=t[0];let i,l;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={bgcolor:"background.paper",width:"fit-content",borderRadius:3,border:"2px solid white",p:2},l=b.jsx(ot,{variant:"h5",children:"About PyNeuromodulation"}),t[1]=i,t[2]=l):(i=t[1],l=t[2]);let s;t[3]!==o.version?(s=b.jsx(Br,{label:"Version",value:o.version}),t[3]=o.version,t[4]=s):s=t[4];let c;t[5]!==o.website?(c=b.jsx(Br,{label:"Website",value:o.website,isLink:!0}),t[5]=o.website,t[6]=c):c=t[6];let u;t[7]!==o.authors?(u=o.authors.join(", "),t[7]=o.authors,t[8]=u):u=t[8];let f;t[9]!==u?(f=b.jsx(Br,{label:"Authors",value:u}),t[9]=u,t[10]=f):f=t[10];let d;t[11]!==o.maintainers?(d=o.maintainers.join(", "),t[11]=o.maintainers,t[12]=d):d=t[12];let h;t[13]!==d?(h=b.jsx(Br,{label:"Maintainers",value:d}),t[13]=d,t[14]=h):h=t[14];let y;t[15]!==o.repository?(y=b.jsx(Br,{label:"Repository",value:o.repository,isLink:!0}),t[15]=o.repository,t[16]=y):y=t[16];let v;t[17]!==o.documentation?(v=b.jsx(Br,{label:"Documentation",value:o.documentation,isLink:!0}),t[17]=o.documentation,t[18]=v):v=t[18];let C;t[19]!==o.license?(C=b.jsx(Br,{label:"License",value:o.license}),t[19]=o.license,t[20]=C):C=t[20];let m;t[21]!==o.launchMode?(m=b.jsx(Br,{label:"Launch Mode",value:o.launchMode}),t[21]=o.launchMode,t[22]=m):m=t[22];let g;t[23]!==s||t[24]!==c||t[25]!==f||t[26]!==h||t[27]!==y||t[28]!==v||t[29]!==C||t[30]!==m?(g=b.jsxs(Tx,{children:[s,c,f,h,y,v,C,m]}),t[23]=s,t[24]=c,t[25]=f,t[26]=h,t[27]=y,t[28]=v,t[29]=C,t[30]=m,t[31]=g):g=t[31];let p;t[32]!==r?(p=b.jsx(Tn,{variant:"contained",onClick:r,children:"Close"}),t[32]=r,t[33]=p):p=t[33];let x;t[34]!==g||t[35]!==p?(x=b.jsxs(cn,{sx:i,children:[l,g,p]}),t[34]=g,t[35]=p,t[36]=x):x=t[36];let w;return t[37]!==n||t[38]!==r||t[39]!==x?(w=b.jsx(Lh,{open:n,onClose:r,sx:a,children:x}),t[37]=n,t[38]=r,t[39]=x,t[40]=w):w=t[40],w},Wz=e=>e.toLowerCase().replace(/\s+/g,"-"),Li=e=>{const t=We.c(56);let n,r,o,a,i,l,s,c;t[0]!==e?({id:a,title:n,defaultExpanded:r,children:c,headerProps:l,contentProps:s,isolated:o,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=i,t[6]=l,t[7]=s,t[8]=c):(n=t[1],r=t[2],o=t[3],a=t[4],i=t[5],l=t[6],s=t[7],c=t[8]);const u=n===void 0?"Collapsible Box":n,f=r===void 0?!0:r,d=o===void 0?!1:o;let h;t[9]!==a||t[10]!==u?(h=a||Wz(u),t[9]=a,t[10]=u,t[11]=h):h=t[11];const y=h,v=rd(Xz),C=rd(Kz);let m;t[12]!==y?(m=Q=>Q.accordionStates[y],t[12]=y,t[13]=m):m=t[13];const g=rd(m);let p,x;t[14]!==C||t[15]!==y||t[16]!==f?(p=()=>{C(y,f)},x=[y,f,C],t[14]=C,t[15]=y,t[16]=f,t[17]=p,t[18]=x):(p=t[17],x=t[18]),S.useEffect(p,x);let w;t[19]!==v||t[20]!==y?(w=()=>{v(y)},t[19]=v,t[20]=y,t[21]=w):w=t[21];const T=w,R=g===void 0?f:g;let O;t[22]!==(i==null?void 0:i.sx)?(O=(i==null?void 0:i.sx)||{},t[22]=i==null?void 0:i.sx,t[23]=O):O=t[23];let E;t[24]!==O?(E={overflow:"hidden",...O},t[24]=O,t[25]=E):E=t[25];let A;t[26]===Symbol.for("react.memo_cache_sentinel")?(A=b.jsx(Uz,{}),t[26]=A):A=t[26];const _=`${y}-header`;let k;t[27]!==(l==null?void 0:l.sx)?(k=(l==null?void 0:l.sx)||{},t[27]=l==null?void 0:l.sx,t[28]=k):k=t[28];let $;t[29]!==k?($={...k},t[29]=k,t[30]=$):$=t[30];let B;t[31]!==u?(B=b.jsx(ot,{variant:"h6",children:u}),t[31]=u,t[32]=B):B=t[32];let D;t[33]!==_||t[34]!==l||t[35]!==$||t[36]!==B?(D=b.jsx(QO,{expandIcon:A,id:_,...l,sx:$,children:B}),t[33]=_,t[34]=l,t[35]=$,t[36]=B,t[37]=D):D=t[37];let M;t[38]!==(s==null?void 0:s.sx)?(M=(s==null?void 0:s.sx)||{},t[38]=s==null?void 0:s.sx,t[39]=M):M=t[39];let z;t[40]!==M?(z={bgcolor:"background.level2",...M},t[40]=M,t[41]=z):z=t[41];let j;t[42]!==s||t[43]!==z||t[44]!==c?(j=b.jsx(zO,{...s,sx:z,children:c}),t[42]=s,t[43]=z,t[44]=c,t[45]=j):j=t[45];let U;t[46]!==R||t[47]!==T||t[48]!==i||t[49]!==E||t[50]!==D||t[51]!==j?(U=b.jsxs(OO,{expanded:R,onChange:T,disableGutters:!0,...i,sx:E,children:[D,j]}),t[46]=R,t[47]=T,t[48]=i,t[49]=E,t[50]=D,t[51]=j,t[52]=U):U=t[52];const P=U;let F;return t[53]!==d||t[54]!==P?(F=d?b.jsx(Bn,{children:P}):P,t[53]=d,t[54]=P,t[55]=F):F=t[55],F};function Xz(e){return e.toggleAccordionState}function Kz(e){return e.initAccordionState}const Qz=({onItemClick:e})=>{const[t,n]=S.useState([]);S.useEffect(()=>{r()},[]);const r=async()=>{try{const a=await fetch("/api/quick-access");if(!a.ok)throw new Error("Failed to fetch quick access items");const i=await a.json();n(i.items)}catch(a){console.error("Error fetching quick access items:",a)}},o=a=>{switch(a.type){case"folder":return b.jsx(Dx,{fontSize:"small"});case"drive":return b.jsx($z,{fontSize:"small"});case"download":return b.jsx(Bz,{fontSize:"small"});case"file":return b.jsx(Nx,{fontSize:"small"});default:return b.jsx(Iz,{fontSize:"small"})}};return b.jsx(yf,{component:_r,sx:{flexGrow:1,display:"flex",flexDirection:"column",maxHeight:400,overflowX:"hidden",overflowY:"auto",scrollbarWidth:"thin",scrollbarColor:"rgba(0,0,0,.1) transparent"},children:b.jsxs(mf,{size:"small",stickyHeader:!0,children:[b.jsx(vf,{children:b.jsx(co,{sx:{height:"2.5rem"},children:b.jsx(so,{sx:{borderBottom:"1px solid",borderColor:"divider"},children:b.jsx(ot,{variant:"body",sx:{fontWeight:"bold"},children:"Quick Access"})})})}),b.jsx(gf,{sx:{overflow:"auto"},children:t.map((a,i)=>b.jsx(co,{hover:!0,onClick:()=>e(a.path),sx:{cursor:"pointer"},children:b.jsxs(so,{sx:{py:.5,display:"flex",alignItems:"center",gap:1},children:[o(a),b.jsx(ot,{variant:"body2",noWrap:!0,children:a.name})]})},i))})]})})};class Zz{constructor(t){this.apiBaseUrl=t}async getFiles({path:t="",allowedExtensions:n="",showHidden:r=!1}={}){const o=new URLSearchParams({path:t,allowed_extensions:n,show_hidden:r}),a=await fetch(`${this.apiBaseUrl}/api/files?${o}`);if(!a.ok)throw new Error(`HTTP error! status: ${a.status}`);return await a.json()}filterFiles(t,n){if(!n)return t;const r=n.toLowerCase();return t.filter(o=>o.name.toLowerCase().includes(r))}sortFiles(t,n,r=!0){return[...t].sort((o,a)=>{let i=0;switch(n){case"name":i=o.name.localeCompare(a.name);break;case"size":i=o.size-a.size;break;case"created_at":i=new Date(o.created_at)-new Date(a.created_at);break;case"modified_at":i=new Date(o.modified_at)-new Date(a.modified_at);break}return r?i:-i})}}const Y0=new Zz(""),W0=[".npy",".vhdr",".fif",".edf",".bdf"],Jz={currentPath:"",editablePath:"",files:[],sortConfig:{key:"name",direction:"asc"},drives:[],selectedDrive:"",error:"",showHiddenFiles:!1,menuAnchorEl:null};function ek(e,t){switch(t.type){case"SET_CURRENT_PATH":return{...e,currentPath:t.payload,editablePath:t.payload};case"SET_EDITABLE_PATH":return{...e,editablePath:t.payload};case"SET_FILES":return{...e,files:t.payload};case"SET_SORT_CONFIG":return{...e,sortConfig:t.payload};case"SET_DRIVES":return{...e,drives:t.payload};case"SET_SELECTED_DRIVE":return{...e,selectedDrive:t.payload};case"SET_ERROR":return{...e,error:t.payload};case"TOGGLE_HIDDEN_FILES":return{...e,showHiddenFiles:!e.showHiddenFiles};case"SET_MENU_ANCHOR_EL":return{...e,menuAnchorEl:t.payload};default:return e}}const X0=[{key:"name",label:"Name"},{key:"type",label:"Type"},{key:"size",label:"Size"},{key:"created_at",label:"Created"},{key:"modified_at",label:"Modified"}],tk=({isModal:e=!1,directory:t=null,onClose:n,onFileSelect:r})=>{const[o,a]=S.useReducer(ek,Jz);S.useEffect(()=>{i(),t?a({type:"SET_CURRENT_PATH",payload:t}):l()},[]),S.useEffect(()=>{o.currentPath&&s(o.currentPath)},[o.currentPath,o.showHiddenFiles]);const i=async()=>{try{const R=await fetch("/api/drives");if(!R.ok)throw new Error("Failed to fetch drives");const O=await R.json();a({type:"SET_DRIVES",payload:O.drives}),O.drives.length>0&&a({type:"SET_SELECTED_DRIVE",payload:O.drives[0]})}catch(R){console.error("Error fetching drives:",R),a({type:"SET_ERROR",payload:"Failed to fetch drives"})}},l=async()=>{try{const R=await fetch("/api/home_directory");if(!R.ok)throw new Error("Failed to fetch home directory");const O=await R.json();a({type:"SET_CURRENT_PATH",payload:O.home_directory})}catch(R){console.error("Error fetching home directory:",R),a({type:"SET_ERROR",payload:"Failed to fetch home directory"})}},s=async R=>{try{const O=await Y0.getFiles({path:R,allowedExtensions:W0.join(","),showHidden:o.showHiddenFiles});return a({type:"SET_FILES",payload:O.map(E=>({...E,type:E.is_directory?"Directory":E.name.split(".").pop().toUpperCase()}))}),a({type:"SET_ERROR",payload:""}),!0}catch(O){return console.error("Error fetching files:",O),a({type:"SET_ERROR",payload:O.message}),!1}},c=R=>{R.is_directory?a({type:"SET_CURRENT_PATH",payload:R.path}):W0.some(O=>R.name.toLowerCase().endsWith(O))&&r(R)},u=()=>{a({type:"SET_CURRENT_PATH",payload:o.currentPath.split(/[/\\]/).slice(0,-1).join("/")||"/"})},f=R=>{a({type:"SET_CURRENT_PATH",payload:R})},d=R=>{a({type:"SET_SELECTED_DRIVE",payload:R.target.value}),a({type:"SET_CURRENT_PATH",payload:R.target.value})},h=R=>{a({type:"SET_EDITABLE_PATH",payload:R.target.value})},y=async R=>{if(R.key==="Enter"){const O=await s(o.editablePath);a(O?{type:"SET_CURRENT_PATH",payload:o.editablePath}:{type:"SET_EDITABLE_PATH",payload:o.currentPath})}},v=R=>{const O=o.sortConfig.key===R&&o.sortConfig.direction==="asc"?"desc":"asc";a({type:"SET_SORT_CONFIG",payload:{key:R,direction:O}});const E=Y0.sortFiles([o.files],R,O==="asc");a({type:"SET_FILES",payload:E})},C=R=>{a({type:"SET_MENU_ANCHOR_EL",payload:R.currentTarget})},m=()=>{a({type:"SET_MENU_ANCHOR_EL",payload:null})},g=()=>{console.log("Toggle hidden files"),a({type:"TOGGLE_HIDDEN_FILES"})},p=R=>new Date(R).toLocaleString(),x=R=>{const O=["Bytes","KB","MB","GB","TB"];if(R===0)return"0 Byte";const E=parseInt(Math.floor(Math.log(R)/Math.log(1024)));return Math.round(R/Math.pow(1024,E),2)+" "+O[E]},w=(R,O)=>{switch(O.key){case"name":return b.jsxs(Bn,{display:"flex",alignItems:"center",children:[R.is_directory?b.jsx(Dx,{color:"primary"}):b.jsx(Nx,{}),b.jsx(ot,{component:"span",variant:"body2",sx:{ml:1},children:R.name})]});case"size":return R.is_directory?"--":x(R.size);case"created_at":case"modified_at":return p(R[O.key]);default:return R[O.key]}},T=b.jsxs(Bn,{sx:{width:"100%",maxWidth:800,margin:"auto"},children:[b.jsx(_r,{elevation:3,sx:{p:2,mb:2},children:b.jsxs(Bn,{display:"flex",alignItems:"center",children:[o.drives.length>1&&b.jsxs(wx,{sx:{minWidth:120,mr:2},children:[b.jsx(Rx,{id:"drive-select-label",children:"Drive"}),b.jsx(pf,{labelId:"drive-select-label",id:"drive-select",value:o.selectedDrive,onChange:d,size:"small",children:o.drives.map(R=>b.jsx(Fp,{value:R,children:R},R))})]}),b.jsx(vi,{fullWidth:!0,variant:"outlined",size:"small",value:o.editablePath,onChange:h,onKeyPress:y,error:!!o.error,helperText:o.error}),b.jsx(s0,{onClick:u,disabled:o.currentPath==="/"||o.drives.length>1&&o.drives.includes(o.currentPath),sx:{ml:1},children:b.jsx(kz,{})}),b.jsx(s0,{onClick:C,sx:{ml:1},children:b.jsx(Hz,{})}),b.jsxs(zx,{anchorEl:o.menuAnchorEl,open:!!o.menuAnchorEl,onClose:m,children:[b.jsxs(Fp,{onClick:g,children:[b.jsx(P_,{children:b.jsx(uM,{checked:o.showHiddenFiles,onChange:g,onClick:R=>R.stopPropagation()})}),b.jsx(Ax,{primary:"Show Hidden Files"})]})," "]})]})}),b.jsxs(Bn,{sx:{width:"100%",height:"100%",display:"flex",flexDirection:"row",maxWidth:800,margin:"auto",gap:2},children:[b.jsx(Qz,{onItemClick:f}),b.jsx(yf,{component:_r,sx:{flexBasis:"75%",flexShrink:0,maxHeight:400,scrollbarWidth:"thin",scrollbarColor:"rgba(0,0,0,.1) transparent"},children:b.jsxs(mf,{stickyHeader:!0,size:"small",children:[b.jsx(vf,{children:b.jsx(co,{sx:{height:"2.5rem"},children:X0.map(R=>b.jsx(so,{children:b.jsx(Rz,{active:o.sortConfig.key===R.key,direction:o.sortConfig.key===R.key?o.sortConfig.direction:"asc",onClick:()=>v(R.key),children:R.label})},R.key))})}),b.jsx(gf,{children:o.files.map(R=>b.jsx(co,{hover:!0,onClick:()=>c(R),sx:{cursor:"pointer"},children:X0.map(O=>b.jsx(so,{children:b.jsx(ot,{component:"span",variant:"body2",children:w(R,O)})},O.key))},R.path))})]})})]}),b.jsx(U6,{open:!!o.error,autoHideDuration:6e3,onClose:()=>a({type:"SET_ERROR",payload:""}),message:o.error})]});return e?b.jsx(Lh,{open:!0,onClose:n,"aria-labelledby":"file-browser-modal","aria-describedby":"file-browser-description",children:b.jsx(Bn,{width:"60%",height:"80%",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"background.paper",boxShadow:24,p:4,maxHeight:"90vh",overflowY:"auto",borderRadius:3},children:T})}):T},nk=e=>{const t=We.c(29),{title:n,xAxisTitle:r,yAxisTitle:o,lineColor:a,maxDataPoints:i}=e,l=n===void 0?"EEG Data":n,s=r===void 0?"Sample":r,c=o===void 0?"Value":o,u=a===void 0?"#1a73e8":a,f=i===void 0?1e3:i,d=xp(rk),h=S.useRef(null),y=S.useRef(null),v=S.useRef(null);let C;t[0]===Symbol.for("react.memo_cache_sentinel")?(C={color:"#f4f4f4"},t[0]=C):C=t[0];let m;t[1]!==l?(m={text:l,font:C},t[1]=l,t[2]=m):m=t[2];let g;t[3]===Symbol.for("react.memo_cache_sentinel")?(g={color:"#f4f4f4"},t[3]=g):g=t[3];let p;t[4]!==s?(p={title:{text:s,font:g},color:"#cccccc"},t[4]=s,t[5]=p):p=t[5];let x;t[6]===Symbol.for("react.memo_cache_sentinel")?(x={color:"#f4f4f4"},t[6]=x):x=t[6];let w;t[7]!==c?(w={title:{text:c,font:x},color:"#cccccc"},t[7]=c,t[8]=w):w=t[8];let T,R;t[9]===Symbol.for("react.memo_cache_sentinel")?(T={l:50,r:50,b:50,t:50},R={color:"#f4f4f4"},t[9]=T,t[10]=R):(T=t[9],R=t[10]);let O;t[11]!==m||t[12]!==p||t[13]!==w?(O={title:m,autosize:!0,height:400,paper_bgcolor:"#333",plot_bgcolor:"#333",xaxis:p,yaxis:w,margin:T,font:R},t[11]=m,t[12]=p,t[13]=w,t[14]=O):O=t[14];const E=S.useRef(O);let A;t[15]!==d?(A=()=>{y.current&&qh.react(y.current,[{y:d}],E.current),v.current=null},t[15]=d,t[16]=A):A=t[16];const _=A;let k;t[17]!==f||t[18]!==u?(k=()=>(h.current&&!y.current&&qh.newPlot(h.current,[{y:Array(f).fill(0),type:"scatter",mode:"lines",line:{simplify:!1,color:u}}],E.current,{responsive:!0,displayModeBar:!1}).then(z=>{y.current=z}),()=>{v.current&&cancelAnimationFrame(v.current)}),t[17]=f,t[18]=u,t[19]=k):k=t[19];let $;t[20]===Symbol.for("react.memo_cache_sentinel")?($=[],t[20]=$):$=t[20],S.useEffect(k,$);let B;t[21]!==d.length||t[22]!==_?(B=()=>{console.log("useEffect anim frame"),d.length>0&&(v.current||(v.current=requestAnimationFrame(_)))},t[21]=d.length,t[22]=_,t[23]=B):B=t[23];let D;t[24]!==d||t[25]!==f||t[26]!==_?(D=[d,f,_],t[24]=d,t[25]=f,t[26]=_,t[27]=D):D=t[27],S.useEffect(B,D);let M;return t[28]===Symbol.for("react.memo_cache_sentinel")?(M=b.jsx("div",{ref:h}),t[28]=M):M=t[28],M};function rk(e){return e.graphData}const ok=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:800,height:800,fill:"currentColor",viewBox:"0 0 24 24",...e,children:b.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m21 15-6 6m6-13L8 21"})}),ak=()=>{const e=We.c(10),t=fi(ik),n=S.useRef(null),[r,o]=S.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={},e[0]=a):a=e[0];const[i,l]=S.useState(a);let s;e[1]!==r?(s=()=>{let h,y,v,C;const m=w=>{o(!0),h=w.clientX,y=w.clientY,v=window.innerWidth,C=window.innerHeight},g=w=>{if(!r)return;const T=v+w.clientX-h,R=C+w.clientY-y;l({width:`${T}px`,height:`${R}px`})},p=()=>{o(!1),l({})},x=n.current;return x&&(x.addEventListener("mousedown",m),window.addEventListener("mousemove",g),window.addEventListener("mouseup",p)),()=>{x&&(x.removeEventListener("mousedown",m),window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",p))}},e[1]=r,e[2]=s):s=e[2];let c;e[3]!==t||e[4]!==r?(c=[t,r],e[3]=t,e[4]=r,e[5]=c):c=e[5],S.useEffect(s,c);let u,f;e[6]!==r?(u=()=>{r?(document.body.style.pointerEvents="none",document.body.style.userSelect="none"):(document.body.style.pointerEvents="",document.body.style.userSelect="")},f=[r],e[6]=r,e[7]=u,e[8]=f):(u=e[7],f=e[8]),S.useEffect(u,f);let d;return e[9]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx("div",{ref:n,children:b.jsx(ok,{})}),e[9]=d):d=e[9],d};function ik(e){return e.isWebviewReady}const lk=()=>{const e=We.c(2),t=fi(sk);let n;return e[0]!==t?(n=b.jsx("span",{children:t}),e[0]=t,e[1]=n):n=e[1],n};function sk(e){return e.statusMessage}const ck=()=>{const e=We.c(5),{isWebView:t}=fi(uk);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=b.jsx(lk,{}),e[0]=n):n=e[0];let r;e[1]!==t?(r=t&&b.jsx(ak,{}),e[1]=t,e[2]=r):r=e[2];let o;return e[3]!==r?(o=b.jsxs(cn,{direction:"row",justifyContent:"space-between",px:2,bgcolor:"background.level1",borderTop:"2px solid",borderColor:"background.level3",children:[n,r]}),e[3]=r,e[4]=o):o=e[4],o};function uk(e){return e.isWebView}const bf=({title:e="REMEMBER TO GIVE ME A TITLE",children:t,...n})=>b.jsxs(Cx,{component:"fieldset",...n,sx:{borderRadius:5,border:"1px solid #555",backgroundColor:"#424242",padding:2,width:"100%",gap:2,display:"flex",flexDirection:"column",alignItems:"center",...(n==null?void 0:n.sx)||{}},children:[b.jsx("legend",{children:e}),t]}),fk=()=>b.jsx(Bn,{children:b.jsx(nk,{})}),vd=({label:e,value:t,onChange:n})=>b.jsx(vi,{label:e,variant:"outlined",size:"small",fullWidth:!0,sx:{marginBottom:2,backgroundColor:"#616161",color:"#f4f4f4"},InputLabelProps:{style:{color:"#cccccc"}},InputProps:{style:{color:"#f4f4f4"}},value:t,onChange:n}),dk=()=>{const e=We.c(22),t=Ke(pk),n=Ke(mk),r=Ke(hk);let o;e[0]!==n||e[1]!==r?(o=(h,y)=>{n(y,h.target.value),r()},e[0]=n,e[1]=r,e[2]=o):o=e[2];const a=o;let i;e[3]!==a?(i=h=>a(h,"samplingRate"),e[3]=a,e[4]=i):i=e[4];let l;e[5]!==t.samplingRate||e[6]!==i?(l=b.jsx(vd,{label:"sfreq",value:t.samplingRate,onChange:i}),e[5]=t.samplingRate,e[6]=i,e[7]=l):l=e[7];let s;e[8]!==a?(s=h=>a(h,"lineNoise"),e[8]=a,e[9]=s):s=e[9];let c;e[10]!==t.lineNoise||e[11]!==s?(c=b.jsx(vd,{label:"line noise",value:t.lineNoise,onChange:s}),e[10]=t.lineNoise,e[11]=s,e[12]=c):c=e[12];let u;e[13]!==a?(u=h=>a(h,"samplingRateFeatures"),e[13]=a,e[14]=u):u=e[14];let f;e[15]!==t.samplingRateFeatures||e[16]!==u?(f=b.jsx(vd,{label:"sfreq features",value:t.samplingRateFeatures,onChange:u}),e[15]=t.samplingRateFeatures,e[16]=u,e[17]=f):f=e[17];let d;return e[18]!==l||e[19]!==c||e[20]!==f?(d=b.jsxs(bf,{title:"Stream parameters",children:[l,c,f]}),e[18]=l,e[19]=c,e[20]=f,e[21]=d):d=e[21],d};function pk(e){return e.streamParameters}function mk(e){return e.updateStreamParameter}function hk(e){return e.checkStreamParameters}const gk=()=>{const e=We.c(24),t=Ke(yk),n=Ke(vk),r=Ke(bk);let o,a;e[0]!==n?(o=()=>{n(Ep.SOURCE_SELECTION)},a=[n],e[0]=n,e[1]=o,e[2]=a):(o=e[1],a=e[2]),S.useEffect(o,a);let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(ot,{variant:"h6",children:"Where do you want to load data from?"}),e[3]=i):i=e[3];let l;e[4]!==t?(l=()=>t("lsl"),e[4]=t,e[5]=l):l=e[5];let s;e[6]===Symbol.for("react.memo_cache_sentinel")?(s={width:150},e[6]=s):s=e[6];let c;e[7]!==l?(c=b.jsx(ac,{variant:"contained",to:"file",onClick:l,sx:s,children:"File"}),e[7]=l,e[8]=c):c=e[8];let u;e[9]!==t?(u=()=>t("lsl"),e[9]=t,e[10]=u):u=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f={width:150},e[11]=f):f=e[11];let d;e[12]!==u?(d=b.jsx(ac,{variant:"contained",to:"lsl",onClick:u,sx:f,children:"LSL Stream"}),e[12]=u,e[13]=d):d=e[13];let h;e[14]!==c||e[15]!==d?(h=b.jsxs(cn,{direction:"row",justifyContent:"center",gap:2,children:[i,c,d]}),e[14]=c,e[15]=d,e[16]=h):h=e[16];let y,v;e[17]===Symbol.for("react.memo_cache_sentinel")?(y=b.jsx(uR,{}),v=b.jsx(dk,{}),e[17]=y,e[18]=v):(y=e[17],v=e[18]);const C=!r;let m;e[19]!==C?(m=b.jsx(ac,{variant:"contained",color:"primary",to:"/channels",disabled:C,children:"Select Channels"}),e[19]=C,e[20]=m):m=e[20];let g;return e[21]!==h||e[22]!==m?(g=b.jsxs(cn,{overflow:"auto",py:2,px:0,gap:2,children:[h,y,v,m]}),e[21]=h,e[22]=m,e[23]=g):g=e[23],g};function yk(e){return e.setSourceType}function vk(e){return e.setWorkflowStage}function bk(e){return e.isSourceValid}const Sk=()=>b.jsx(Bn,{display:"flex",width:"100%",height:"100%",flexDirection:"column",alignItems:"center",justifyContent:"center",children:"Not implemented"}),xk=Object.freeze(["eeg","meg (mag)","meg (grad)","ecg","seeg","dbs","ecog","fnirs (hbo)","fnirs (hbr)","emg","bio","stim","resp","chpi","exci","ias","syst"]),Ck=Object.freeze(["good","bad"]),bd=e=>b.jsx(vi,{variant:"standard",...e}),K0=({options:e,...t})=>b.jsx(pf,{variant:"standard",...t,children:e.map((n,r)=>b.jsx(Fp,{value:n,children:n},r))}),Q0=[{id:"name",label:"Name",component:bd,description:"Channel name"},{id:"rereference",label:"Rereference",component:bd,description:"Channel to re-reference against"},{id:"type",label:"Type",component:K0,props:{options:xk},description:"Channel type"},{id:"status",label:"Status",component:K0,props:{options:Ck}},{id:"used",label:"Used",component:Yp},{id:"target",label:"Target",component:Yp},{id:"new_name",label:"New Name",component:bd}],Ek=()=>{const e=We.c(9),t=Ke(Rk),n=Ke(Tk);let r;e[0]!==n?(r=(c,u,f)=>{n(u,f,c.target.type==="checkbox"?c.target.checked:c.target.value)},e[0]=n,e[1]=r):r=e[1];const o=r;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a={maxHeight:"500px",overflowY:"auto"},e[2]=a):a=e[2];let i;e[3]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(vf,{children:b.jsx(co,{children:Q0.map(Ok)})}),e[3]=i):i=e[3];let l;e[4]!==t||e[5]!==o?(l=t&&t.length>0&&t.map((c,u)=>b.jsx(co,{sx:{backgroundColor:u%2?"background.main":"#666666"},children:Q0.map(f=>b.jsx(so,{sx:{py:1},children:b.jsx(f.component,{value:c[f.id],onChange:d=>o(d,u,f.id),...f.props})},f.id))},u)),e[4]=t,e[5]=o,e[6]=l):l=e[6];let s;return e[7]!==l?(s=b.jsx(yf,{component:_r,sx:a,children:b.jsxs(mf,{stickyHeader:!0,children:[i,b.jsx(gf,{children:l})]})}),e[7]=l,e[8]=s):s=e[8],s},wk=()=>{const e=We.c(8),t=Ke(Ak);let n,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={pt:2},r=b.jsx(Ek,{}),e[0]=n,e[1]=r):(n=e[0],r=e[1]);let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o={marginTop:3,display:"flex",gap:2,justifyContent:"center"},e[2]=o):o=e[2];let a;e[3]!==t?(a=b.jsx(Tn,{variant:"contained",color:"primary",onClick:()=>t(),children:"Save Channels"}),e[3]=t,e[4]=a):a=e[4];let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=b.jsx(ac,{to:"/settings",variant:"contained",color:"primary",children:"Settings"}),e[5]=i):i=e[5];let l;return e[6]!==a?(l=b.jsx(Cx,{children:b.jsxs(cn,{sx:n,children:[r,b.jsxs(Bn,{sx:o,children:[a,i]})]})}),e[6]=a,e[7]=l):l=e[7],l};function Rk(e){return e.channels}function Tk(e){return e.updateChannel}function Ok(e){return b.jsx(F6,{title:e.description,placement:"top",children:b.jsx(so,{align:"center",sx:{p:1,backgroundColor:"primary.main"},children:e.label},e.id)},e.id)}function Ak(e){return e.uploadChannels}const Mk=e=>{const t=We.c(16),{settings:n}=e;let r;t[0]!==n?(r=n||{},t[0]=n,t[1]=r):r=t[1];const[o,a]=S.useState(r);let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=(C,m,g)=>{a(p=>({...p,[C]:{...p[C],[m]:g}}))},t[2]=i):i=t[2];const l=i;let s;t[3]!==o?(s=()=>{const C=`Band ${Object.keys(o).length+1}`;a(m=>({...m,[C]:{frequency_high_hz:"",frequency_low_hz:""}}))},t[3]=o,t[4]=s):s=t[4];const c=s;let u;t[5]!==o?(u=C=>{const m={...o};delete m[C],a(m)},t[5]=o,t[6]=u):u=t[6];const f=u;let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=b.jsx("div",{className:styles.header,children:"Frequency Bands"}),t[7]=d):d=t[7];let h;t[8]!==o||t[9]!==f?(h=Object.keys(o).map(C=>b.jsxs("div",{className:styles.bandContainer,children:[b.jsx("input",{type:"text",value:C,onChange:m=>{const g=m.target.value,p={...o};p[g]=p[C],delete p[C],a(p)},className:styles.bandNameInput,placeholder:"Band Name"}),b.jsx("input",{type:"text",value:o[C].frequency_high_hz,onChange:m=>l(C,"frequency_high_hz",m.target.value),className:styles.frequencyInput,placeholder:"High Hz"}),b.jsx("input",{type:"text",value:o[C].frequency_low_hz,onChange:m=>l(C,"frequency_low_hz",m.target.value),className:styles.frequencyInput,placeholder:"Low Hz"}),b.jsx("button",{onClick:()=>f(C),className:styles.removeButton,children:"–"})]},C)),t[8]=o,t[9]=f,t[10]=h):h=t[10];let y;t[11]!==c?(y=b.jsx("button",{onClick:c,className:styles.addButton,children:"+ Add Band"}),t[11]=c,t[12]=y):y=t[12];let v;return t[13]!==h||t[14]!==y?(v=b.jsxs("div",{className:styles.container,children:[d,h,y]}),t[13]=h,t[14]=y,t[15]=v):v=t[15],v},_k=(e,t)=>{const n={};return t.forEach(r=>{e.hasOwnProperty(r)&&(n[r]=e[r])}),n},Wp=e=>e.split("_").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),zk=({value:e,onChange:t})=>b.jsx(Yp,{checked:e,onChange:n=>t(n.target.checked)}),kk=({value:e,onChange:t,label:n})=>b.jsx(vi,{value:e,onChange:t,label:n}),jk=e=>{const t=We.c(8),{value:n,onChange:r,label:o}=e;let a;t[0]!==r?(a=u=>{const f=u.target.value;(f===""||/^\d*\.?\d*$/.test(f))&&r(f)},t[0]=r,t[1]=a):a=t[1];const i=a;let l,s;t[2]===Symbol.for("react.memo_cache_sentinel")?(l={endAdornment:b.jsx(h_,{position:"end",children:b.jsx("span",{style:{lineHeight:1,display:"inline-block"},children:"Hz"})})},s={pattern:"[0-9]*"},t[2]=l,t[3]=s):(l=t[2],s=t[3]);let c;return t[4]!==n||t[5]!==i||t[6]!==o?(c=b.jsx(vi,{type:"text",value:n,onChange:i,label:o,InputProps:l,inputProps:s}),t[4]=n,t[5]=i,t[6]=o,t[7]=c):c=t[7],c},$k=({value:e,onChange:t,label:n})=>b.jsx(Mk,{value:e,onChange:t,label:n}),Dk={boolean:zk,string:kk,number:jk,FrequencyRange:$k},Nk=e=>{const t=We.c(16),{path:n,Component:r,label:o,value:a,onChange:i,depth:l}=e,s=l*2;let c;t[0]!==s?(c={pl:s},t[0]=s,t[1]=c):c=t[1];let u;t[2]!==o?(u=b.jsx(ot,{variant:"body2",children:o}),t[2]=o,t[3]=u):u=t[3];let f;t[4]!==i||t[5]!==n?(f=y=>i(n,y),t[4]=i,t[5]=n,t[6]=f):f=t[6];let d;t[7]!==r||t[8]!==a||t[9]!==f||t[10]!==o?(d=b.jsx(r,{value:a,onChange:f,label:o}),t[7]=r,t[8]=a,t[9]=f,t[10]=o,t[11]=d):d=t[11];let h;return t[12]!==c||t[13]!==u||t[14]!==d?(h=b.jsxs(cn,{direction:"row",justifyContent:"space-between",sx:c,children:[u,d]}),t[12]=c,t[13]=u,t[14]=d,t[15]=h):h=t[15],h},Wi=e=>{const t=We.c(19),{settings:n,title:r,path:o,onChange:a,depth:i}=e,l=r===void 0?null:r;let s;t[0]!==o?(s=o===void 0?[]:o,t[0]=o,t[1]=s):s=t[1];const c=s,u=i===void 0?0:i;if(Object.keys(n).length===0)return null;let f;t[2]!==l||t[3]!==c?(f=l||Wp(c[c.length-1]),t[2]=l,t[3]=c,t[4]=f):f=t[4];const d=f;let h;t[5]===Symbol.for("react.memo_cache_sentinel")?(h={borderRadius:3},t[5]=h):h=t[5];let y;if(t[6]!==n||t[7]!==c||t[8]!==a||t[9]!==u){let C;t[11]!==c||t[12]!==a||t[13]!==u?(C=m=>{const[g,p]=m;if(g==="__field_type__")return null;const x=[...c,g],w=g,R=typeof p=="object"&&"__field_type__"in p?p.__field_type__:typeof p,O=Dk[R];return O?b.jsx(Nk,{path:x,Component:O,label:Wp(w),value:p,onChange:a,depth:u+1},`${g}_settingsField`):b.jsx(Wi,{settings:p,path:x,onChange:a,depth:u+1},`${g}_settingsSection`)},t[11]=c,t[12]=a,t[13]=u,t[14]=C):C=t[14],y=Object.entries(n).map(C),t[6]=n,t[7]=c,t[8]=a,t[9]=u,t[10]=y}else y=t[10];let v;return t[15]!==d||t[16]!==u||t[17]!==y?(v=b.jsx(bf,{title:d,depth:u,sx:h,children:y}),t[15]=d,t[16]=u,t[17]=y,t[18]=v):v=t[18],v},Bk=()=>{const e=We.c(55),t=Cp(Uk),n=Cp(Hk);if(!t){let w;return e[0]===Symbol.for("react.memo_cache_sentinel")?(w=b.jsx("div",{children:"Loading settings..."}),e[0]=w):w=e[0],w}let r;e[1]!==n?(r=(w,T)=>{n(R=>{let O=R;for(let E=0;Et.features[P],e[19]=t.features,e[20]=w):w=e[20];const T=Object.keys(t.features).filter(w).map(Pk),R=_k(t,T);let O;e[21]===Symbol.for("react.memo_cache_sentinel")?(O=["preprocessing","raw_resampling_settings","raw_normalization_settings","preprocessing_filter"],e[21]=O):O=e[21];const E=O;let A;e[22]===Symbol.for("react.memo_cache_sentinel")?(A=["postprocessing","feature_normalization_settings","project_cortex_settings","project_subcortex_settings"],e[22]=A):A=e[22];const _=A;u=cn,f="row",d="flex-start",h="center",y="fit-content",v=2,C=2;let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k={flex:1},e[23]=k):k=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=["features"],e[24]=$):$=e[24],e[25]!==t.features||e[26]!==o?(m=b.jsx(Li,{title:"Features",defaultExpanded:!0,isolated:!0,sx:k,children:b.jsx(Wi,{settings:t.features,path:$,onChange:o,depth:0})}),e[25]=t.features,e[26]=o,e[27]=m):m=e[27];let B;e[28]===Symbol.for("react.memo_cache_sentinel")?(B={flex:1},e[28]=B):B=e[28];const D=E.map(P=>b.jsx(Wi,{settings:t[P],path:[P],onChange:o,depth:0},`${P}_settingsSection`));let M;e[29]!==D?(M=b.jsx(Li,{title:"Preprocessing",defaultExpanded:!0,children:D}),e[29]=D,e[30]=M):M=e[30];const z=_.map(P=>b.jsx(Wi,{settings:t[P],path:[P],onChange:o,depth:0},`${P}_settingsSection`));let j;e[31]!==z?(j=b.jsx(Li,{title:"Postprocessing",defaultExpanded:!0,children:z}),e[31]=z,e[32]=j):j=e[32],e[33]!==M||e[34]!==j?(g=b.jsxs(cn,{sx:B,children:[M,j]}),e[33]=M,e[34]=j,e[35]=g):g=e[35],a=Li,i="Feature settings",l=!0,s=!0;let U;e[36]!==o?(U=P=>{const[F,Q]=P;return b.jsx(Li,{title:Wp(F),defaultExpanded:!0,children:b.jsx(Wi,{settings:Q,path:[F],onChange:o,depth:0},`${F}_settingsSection`)},`${F}_collapsibleBox`)},e[36]=o,e[37]=U):U=e[37],c=Object.entries(R).map(U),e[3]=t,e[4]=o,e[5]=a,e[6]=i,e[7]=l,e[8]=s,e[9]=c,e[10]=u,e[11]=f,e[12]=d,e[13]=h,e[14]=y,e[15]=v,e[16]=C,e[17]=m,e[18]=g}else a=e[5],i=e[6],l=e[7],s=e[8],c=e[9],u=e[10],f=e[11],d=e[12],h=e[13],y=e[14],v=e[15],C=e[16],m=e[17],g=e[18];let p;e[38]!==a||e[39]!==i||e[40]!==l||e[41]!==s||e[42]!==c?(p=b.jsx(a,{title:i,defaultExpanded:l,isolated:s,children:c}),e[38]=a,e[39]=i,e[40]=l,e[41]=s,e[42]=c,e[43]=p):p=e[43];let x;return e[44]!==u||e[45]!==f||e[46]!==d||e[47]!==h||e[48]!==y||e[49]!==v||e[50]!==C||e[51]!==m||e[52]!==g||e[53]!==p?(x=b.jsxs(u,{direction:f,alignItems:d,justifyContent:h,width:y,gap:v,p:C,children:[m,g,p]}),e[44]=u,e[45]=f,e[46]=d,e[47]=h,e[48]=y,e[49]=v,e[50]=C,e[51]=m,e[52]=g,e[53]=p,e[54]=x):x=e[54],x},Lk=()=>{const e=We.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=b.jsx(Bk,{}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=b.jsxs(cn,{justifyContent:"center",pb:2,children:[t,b.jsx(Tn,{variant:"contained",component:rh,color:"primary",to:"/decoding",sx:{mt:2},children:"Run Stream"})]}),e[1]=n):n=e[1],n};function Uk(e){return e.settings}function Hk(e){return e.updateSettings}function Pk(e){return`${e}_settings`}const Ik="/assets/Figtree-VariableFont_wght-CkXbWBDP.ttf",Vk=of({cssVariables:!0,components:{MuiCssBaseline:{styleOverrides:` - @font-face { - font-family: 'Figtree'; - font-style: normal; - font-display: swap; - font-weight: 400; - src: local('Figtree'), - url(${Ik}) format('truetype-variations'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF; - } - `},MuiButtonBase:{defaultProps:{disableRipple:!0}},MuiStack:{defaultProps:{alignItems:"center",width:"100%"}}},palette:{mode:"dark",primary:{main:"#1a73e8",light:"#4791db",dark:"#115293"},secondary:{main:"#f4f4f4",light:"#ffffff",dark:"#c1c1c1"},background:{default:"#333",paper:"#424242",level1:"#4a4a4a",level2:"#525252",level3:"#5a5a5a"},text:{primary:"#f4f4f4",secondary:"#cccccc"},divider:"rgba(255, 255, 255, 0.12)"},typography:{fontFamily:["Figtree","system-ui","Helvetica","Arial","sans-serif"].join(","),h4:{fontSize:"1.75rem",fontWeight:600},h5:{fontSize:"1.5rem",fontWeight:600},h6:{fontSize:"1.25rem",fontWeight:600},subtitle1:{fontSize:"1.1rem",fontWeight:500},subtitle2:{fontSize:"1rem",fontWeight:500}},shape:{borderRadius:5}}),Gk=()=>{const e=We.c(66),[t,n]=S.useState(!1),[r,o]=S.useState(""),[a,i]=S.useState(!1),l=Ke(qk),s=Ke(Fk),c=Ke(Yk),u=Ke(Wk),f=Ke(Xk),d=Ke(Kk),h=Ke(Qk),y=Ke(Zk);let v;e[0]!==l.availableStreams?(v=Z=>l.availableStreams.some(G=>G.name===Z),e[0]=l.availableStreams,e[1]=v):v=e[1];const C=v;let m;e[2]!==y?(m=()=>{y("lsl")},e[2]=y,e[3]=m):m=e[3];let g;e[4]===Symbol.for("react.memo_cache_sentinel")?(g=[],e[4]=g):g=e[4],S.useEffect(m,g);let p,x;e[5]!==C||e[6]!==r?(p=()=>{const Z=setTimeout(()=>{i(C(r))},500);return()=>clearTimeout(Z)},x=[r,C],e[5]=C,e[6]=r,e[7]=p,e[8]=x):(p=e[7],x=e[8]),S.useEffect(p,x);let w;e[9]!==u||e[10]!==f||e[11]!==d||e[12]!==h?(w=(Z,G)=>{o(Z),u(50),f(10),d(G),h(!0),i(!0)},e[9]=u,e[10]=f,e[11]=d,e[12]=h,e[13]=w):w=e[13];const T=w;let R,O,E,A,_,k,$;if(e[14]!==l.availableStreams||e[15]!==T||e[16]!==r||e[17]!==C||e[18]!==a||e[19]!==c||e[20]!==s||e[21]!==t){const Z={name:"Name",stype:"Stream type",dtype:"Data type",n_channels:"Channels",sfreq:"Sampling Rate (Hz)",source_id:"Source ID",hostname:"Hostname"},G=()=>b.jsx(yf,{component:_r,children:b.jsxs(mf,{size:"small",children:[b.jsx(vf,{children:b.jsx(co,{children:Object.values(Z).map((ae,ie)=>b.jsx(so,{children:ae},ie))})}),b.jsx(gf,{children:l.availableStreams.map((ae,ie)=>b.jsx(co,{onClick:()=>T(ae.name,ae.sfreq),sx:{cursor:"pointer","&:hover":{backgroundColor:"#505050"},backgroundColor:r===ae.name?"#606060 !important":"inherit"},children:Object.keys(Z).map((me,Ce)=>b.jsx(so,{children:ae[me]},Ce))},ie))})]})});let se;e[29]!==C||e[30]!==r?(se=ae=>{ae.key==="Enter"&&i(C(r))},e[29]=C,e[30]=r,e[31]=se):se=e[31],O=se;let ce;e[32]===Symbol.for("react.memo_cache_sentinel")?(ce=ae=>{o(ae.target.value)},e[32]=ce):ce=e[32],R=ce;let ue;e[33]!==a||e[34]!==c?(ue=async()=>{a&&await c()},e[33]=a,e[34]=c,e[35]=ue):ue=e[35],E=ue;let J;e[36]!==s?(J=async()=>{n(!0),await s(),n(!1)},e[36]=s,e[37]=J):J=e[37];const oe=J;A=bf,_="Read data from LSL stream";let X;e[38]!==t?(X=t?b.jsxs(b.Fragment,{children:["Searching for streams",b.jsx(vM,{size:20,sx:{mx:1},color:"secondary"})]}):"Search for LSL Streams",e[38]=t,e[39]=X):X=e[39],e[40]!==oe||e[41]!==t||e[42]!==X?(k=b.jsx(Tn,{variant:"contained",onClick:oe,disabled:t,children:X}),e[40]=oe,e[41]=t,e[42]=X,e[43]=k):k=e[43],$=l.availableStreams.length>0?G():"No LSL streams found",e[14]=l.availableStreams,e[15]=T,e[16]=r,e[17]=C,e[18]=a,e[19]=c,e[20]=s,e[21]=t,e[22]=R,e[23]=O,e[24]=E,e[25]=A,e[26]=_,e[27]=k,e[28]=$}else R=e[22],O=e[23],E=e[24],A=e[25],_=e[26],k=e[27],$=e[28];let B,D,M;e[44]===Symbol.for("react.memo_cache_sentinel")?(B={color:"#f4f4f4",flexGrow:1},D={sx:{color:"#cccccc"}},M={sx:{backgroundColor:"#616161",color:"#f4f4f4"}},e[44]=B,e[45]=D,e[46]=M):(B=e[44],D=e[45],M=e[46]);const z=!a&&r!=="",j=!a&&r!==""?"Invalid stream name":" ";let U;e[47]!==r||e[48]!==R||e[49]!==O||e[50]!==z||e[51]!==j?(U=b.jsx(vi,{label:"Selected LSL stream",fullWidth:!0,size:"small",sx:B,InputLabelProps:D,InputProps:M,value:r,onChange:R,onKeyDown:O,error:z,helperText:j}),e[47]=r,e[48]=R,e[49]=O,e[50]=z,e[51]=j,e[52]=U):U=e[52];let P;e[53]===Symbol.for("react.memo_cache_sentinel")?(P={width:"fit-content"},e[53]=P):P=e[53];const F=!a;let Q;e[54]!==E||e[55]!==F?(Q=b.jsx(Tn,{variant:"contained",onClick:E,sx:P,disabled:F,children:"Connect to stream"}),e[54]=E,e[55]=F,e[56]=Q):Q=e[56];let W;e[57]!==U||e[58]!==Q?(W=b.jsxs(cn,{direction:"row",width:"100%",gap:2,children:[U,Q]}),e[57]=U,e[58]=Q,e[59]=W):W=e[59];let q;return e[60]!==A||e[61]!==_||e[62]!==k||e[63]!==$||e[64]!==W?(q=b.jsxs(A,{title:_,children:[k,$,W]}),e[60]=A,e[61]=_,e[62]=k,e[63]=$,e[64]=W,e[65]=q):q=e[65],q};function qk(e){return e.lslSource}function Fk(e){return e.fetchLSLStreams}function Yk(e){return e.initializeLSLStream}function Wk(e){return e.setLineNoiseValue}function Xk(e){return e.setSamplingRateFeaturesValue}function Kk(e){return e.setSamplingRateValue}function Qk(e){return e.setStreamParametersAllValid}function Zk(e){return e.setSourceType}const Jk=()=>{const e=Ke(h=>h.fileSource),t=Ke(h=>h.setFileSource),n=Ke(h=>h.initializeOfflineStream),r=Ke(h=>h.streamSetupMessage),o=Ke(h=>h.isStreamSetupCorrect),a=Ke(h=>h.setSourceType),i=S.useRef("C:/dev/"),[l,s]=S.useState(!1),[c,u]=S.useState(!1);S.useEffect(()=>{a("lsl")},[]);const f=()=>{u(!0)},d=h=>{s(!0),i.current=h.dir;try{t(h),u(!1)}catch(y){console.error("Failed to load file:",y)}finally{s(!1)}};return b.jsxs(bf,{title:"Read data from file",children:[b.jsx(Tn,{variant:"contained",onClick:f,disabled:l,sx:{width:"100%"},children:l?"Selecting...":"Select File"}),b.jsxs(_r,{sx:{p:2,display:"flex",flexDirection:"column",gap:1},children:[e.name&&b.jsxs(ot,{variant:"body2",children:["Selected File: ",b.jsx("i",{children:e.name})]}),e.size&&b.jsxs(ot,{variant:"body2",children:["File Size: ",e.size]}),e.path&&b.jsxs(ot,{variant:"body2",children:["File Path: ",e.path]})]}),b.jsx(Tn,{variant:"contained",onClick:n,sx:{width:"fit-content"},children:"Open File"}),r&&b.jsx(ot,{variant:"body2",color:o?"success":"error",mt:2,children:r}),c&&b.jsx(tk,{isModal:!0,directory:i.current,onClose:()=>u(!1),onFileSelect:d})]})},ej=()=>{const e=We.c(21),t=dw(),n=vw(),r=Sw();let o,a;e[0]!==n||e[1]!==t||e[2]!==r?(o=()=>{n(),t(),r()},a=[n,t,r],e[0]=n,e[1]=t,e[2]=r,e[3]=o,e[4]=a):(o=e[3],a=e[4]),S.useEffect(o,a);const i=xp(tj),l=xp(nj);let s,c;e[5]!==i||e[6]!==l?(s=()=>{var T;return console.log(window==null?void 0:window.pywebview),console.log((T=window.pywebview)==null?void 0:T.api),console.log("Connecting socket from App component..."),i(),()=>{console.log("Disconnecting socket from App component..."),l()}},c=[i,l],e[5]=i,e[6]=l,e[7]=s,e[8]=c):(s=e[7],c=e[8]),S.useEffect(s,c);let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=b.jsx(RM,{}),e[9]=u):u=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=b.jsx(Gz,{}),e[10]=f):f=e[10];let d;e[11]===Symbol.for("react.memo_cache_sentinel")?(d={height:"100%",overflow:"auto",width:"100%",p:0,m:0},e[11]=d):d=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=b.jsx(Yn,{index:!0,element:b.jsx(Ay,{to:"/source",replace:!0})}),e[12]=h):h=e[12];let y;e[13]===Symbol.for("react.memo_cache_sentinel")?(y=b.jsx(gk,{}),e[13]=y):y=e[13];let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=b.jsx(Yn,{index:!0,element:b.jsx(Ay,{to:"/source/file",replace:!0})}),e[14]=v):v=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=b.jsx(Yn,{path:"file",element:b.jsx(Jk,{})}),e[15]=C):C=e[15];let m;e[16]===Symbol.for("react.memo_cache_sentinel")?(m=b.jsxs(Yn,{path:"source",element:y,children:[v,C,b.jsx(Yn,{path:"lsl",element:b.jsx(Gk,{})})]}),e[16]=m):m=e[16];let g;e[17]===Symbol.for("react.memo_cache_sentinel")?(g=b.jsx(Yn,{path:"channels",element:b.jsx(wk,{})}),e[17]=g):g=e[17];let p;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=b.jsx(Yn,{path:"settings",element:b.jsx(Lk,{})}),e[18]=p):p=e[18];let x;e[19]===Symbol.for("react.memo_cache_sentinel")?(x=b.jsx(Yn,{path:"dashboard",element:b.jsx(fk,{})}),e[19]=x):x=e[19];let w;return e[20]===Symbol.for("react.memo_cache_sentinel")?(w=b.jsxs(nO,{theme:Vk,children:[u,b.jsx(bR,{children:b.jsxs(cn,{height:"100vh",width:"100vw",overflow:"hidden",children:[f,b.jsx(Bn,{sx:d,children:b.jsxs(dR,{children:[h,m,g,p,x,b.jsx(Yn,{path:"decoding",element:b.jsx(Sk,{})})]})}),b.jsx(ck,{})]})})]}),e[20]=w):w=e[20],w};function tj(e){return e.connectSocket}function nj(e){return e.disconnectSocket}const rj=console.error;console.error=(e,...t)=>{e&&e.startsWith("Accessing element.ref")||rj(e,...t)};HE.createRoot(document.getElementById("root")).render(b.jsx(S.StrictMode,{children:b.jsx(ej,{})})); -//# sourceMappingURL=index-DtSMweeP.js.map diff --git a/py_neuromodulation/gui/frontend/assets/index-DtSMweeP.js.map b/py_neuromodulation/gui/frontend/assets/index-DtSMweeP.js.map deleted file mode 100644 index 0d390b4e..00000000 --- a/py_neuromodulation/gui/frontend/assets/index-DtSMweeP.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index-DtSMweeP.js","sources":["../../../../gui_dev/node_modules/react/cjs/react-jsx-runtime.production.js","../../../../gui_dev/node_modules/react/jsx-runtime.js","../../../../gui_dev/node_modules/react/cjs/react.production.js","../../../../gui_dev/node_modules/react/index.js","../../../../gui_dev/node_modules/scheduler/cjs/scheduler.production.js","../../../../gui_dev/node_modules/scheduler/index.js","../../../../gui_dev/node_modules/react-dom/cjs/react-dom.production.js","../../../../gui_dev/node_modules/react-dom/index.js","../../../../gui_dev/node_modules/react-dom/cjs/react-dom-client.production.js","../../../../gui_dev/node_modules/react-dom/client.js","../../../../gui_dev/node_modules/react/cjs/react-compiler-runtime.production.js","../../../../gui_dev/node_modules/react/compiler-runtime.js","../../../../gui_dev/node_modules/zustand/esm/vanilla.mjs","../../../../gui_dev/node_modules/zustand/esm/react.mjs","../../../../gui_dev/node_modules/immer/dist/immer.mjs","../../../../gui_dev/node_modules/zustand/esm/middleware/immer.mjs","../../../../gui_dev/node_modules/zustand/esm/middleware.mjs","../../../../gui_dev/src/stores/createStore.js","../../../../gui_dev/src/stores/socketStore.js","../../../../gui_dev/src/stores/webviewStore.js","../../../../gui_dev/src/stores/settingsStore.js","../../../../gui_dev/src/stores/uiStore.js","../../../../gui_dev/src/stores/appInfoStore.js","../../../../gui_dev/src/stores/sessionStore.js","../../../../gui_dev/src/stores/dragAndDropStore.js","../../../../gui_dev/node_modules/@remix-run/router/dist/router.js","../../../../gui_dev/node_modules/react-router/dist/index.js","../../../../gui_dev/node_modules/react-router-dom/dist/index.js","../../../../gui_dev/node_modules/@mui/material/colors/common.js","../../../../gui_dev/node_modules/@mui/material/colors/red.js","../../../../gui_dev/node_modules/@mui/material/colors/purple.js","../../../../gui_dev/node_modules/@mui/material/colors/blue.js","../../../../gui_dev/node_modules/@mui/material/colors/lightBlue.js","../../../../gui_dev/node_modules/@mui/material/colors/green.js","../../../../gui_dev/node_modules/@mui/material/colors/orange.js","../../../../gui_dev/node_modules/@mui/material/colors/grey.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","../../../../gui_dev/node_modules/@mui/material/styles/identifier.js","../../../../gui_dev/node_modules/@babel/runtime/helpers/esm/extends.js","../../../../gui_dev/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../../../../gui_dev/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js","../../../../gui_dev/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js","../../../../gui_dev/node_modules/stylis/src/Enum.js","../../../../gui_dev/node_modules/stylis/src/Utility.js","../../../../gui_dev/node_modules/stylis/src/Tokenizer.js","../../../../gui_dev/node_modules/stylis/src/Parser.js","../../../../gui_dev/node_modules/stylis/src/Serializer.js","../../../../gui_dev/node_modules/stylis/src/Middleware.js","../../../../gui_dev/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js","../../../../gui_dev/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js","../../../../gui_dev/node_modules/hoist-non-react-statics/node_modules/react-is/index.js","../../../../gui_dev/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js","../../../../gui_dev/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js","../../../../gui_dev/node_modules/@emotion/hash/dist/emotion-hash.esm.js","../../../../gui_dev/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","../../../../gui_dev/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js","../../../../gui_dev/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js","../../../../gui_dev/node_modules/@emotion/react/dist/emotion-element-5486c51c.browser.esm.js","../../../../gui_dev/node_modules/@emotion/react/dist/emotion-react.browser.esm.js","../../../../gui_dev/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js","../../../../gui_dev/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/node_modules/@mui/styled-engine/index.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/deepmerge/deepmerge.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/createBreakpoints/createBreakpoints.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/cssContainerQueries/cssContainerQueries.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/createTheme/shape.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/merge/merge.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/breakpoints/breakpoints.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/capitalize/capitalize.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/style/style.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/memoize/memoize.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/spacing/spacing.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/createTheme/createSpacing.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/compose/compose.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/borders/borders.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/cssGrid/cssGrid.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/palette/palette.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/sizing/sizing.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/styleFunctionSx/defaultSxConfig.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/styleFunctionSx/styleFunctionSx.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/createTheme/applyStyles.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/createTheme/createTheme.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/useThemeWithoutDefault/useThemeWithoutDefault.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/useTheme/useTheme.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/GlobalStyles/GlobalStyles.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/styleFunctionSx/extendSxProp.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","../../../../gui_dev/node_modules/clsx/dist/clsx.mjs","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/createBox/createBox.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","../../../../gui_dev/node_modules/react-is/cjs/react-is.production.min.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/createStyled/createStyled.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/styled/styled.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/resolveProps/resolveProps.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/useThemeProps/getThemeProps.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/useThemeProps/useThemeProps.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/clamp/clamp.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/colorManipulator/colorManipulator.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/debounce/debounce.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/setRef/setRef.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/useId/useId.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/useControlled/useControlled.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/useForkRef/useForkRef.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/useOnMount/useOnMount.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/useTimeout/useTimeout.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/composeClasses/composeClasses.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/utils/esm/getReactNodeRef/getReactNodeRef.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/node_modules/@mui/private-theming/useTheme/ThemeContext.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/node_modules/@mui/private-theming/useTheme/useTheme.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/node_modules/@mui/private-theming/ThemeProvider/nested.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/RtlProvider/index.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/DefaultPropsProvider/DefaultPropsProvider.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/ThemeProvider/ThemeProvider.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/InitColorSchemeScript/InitColorSchemeScript.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/cssVars/useCurrentColorScheme.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/cssVars/createCssVarsProvider.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/cssVars/createGetCssVar.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/cssVars/cssVarsParser.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/cssVars/prepareCssVars.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/cssVars/getColorSchemeSelector.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/Container/createContainer.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/Stack/createStack.js","../../../../gui_dev/node_modules/@mui/material/styles/createPalette.js","../../../../gui_dev/node_modules/@mui/material/node_modules/@mui/system/cssVars/prepareTypographyVars.js","../../../../gui_dev/node_modules/@mui/material/styles/createMixins.js","../../../../gui_dev/node_modules/@mui/material/styles/createTypography.js","../../../../gui_dev/node_modules/@mui/material/styles/shadows.js","../../../../gui_dev/node_modules/@mui/material/styles/createTransitions.js","../../../../gui_dev/node_modules/@mui/material/styles/zIndex.js","../../../../gui_dev/node_modules/@mui/material/styles/createThemeNoVars.js","../../../../gui_dev/node_modules/@mui/material/styles/getOverlayAlpha.js","../../../../gui_dev/node_modules/@mui/material/styles/createColorScheme.js","../../../../gui_dev/node_modules/@mui/material/styles/shouldSkipGeneratingVar.js","../../../../gui_dev/node_modules/@mui/material/styles/excludeVariablesFromRoot.js","../../../../gui_dev/node_modules/@mui/material/styles/createGetSelector.js","../../../../gui_dev/node_modules/@mui/material/styles/stringifyTheme.js","../../../../gui_dev/node_modules/@mui/material/styles/createThemeWithVars.js","../../../../gui_dev/node_modules/@mui/material/styles/createTheme.js","../../../../gui_dev/node_modules/@mui/material/styles/defaultTheme.js","../../../../gui_dev/node_modules/@mui/material/styles/useTheme.js","../../../../gui_dev/node_modules/@mui/material/styles/useThemeProps.js","../../../../gui_dev/node_modules/@mui/material/styles/slotShouldForwardProp.js","../../../../gui_dev/node_modules/@mui/material/styles/rootShouldForwardProp.js","../../../../gui_dev/node_modules/@mui/material/styles/styled.js","../../../../gui_dev/node_modules/@mui/material/styles/ThemeProviderNoVars.js","../../../../gui_dev/node_modules/@mui/material/InitColorSchemeScript/InitColorSchemeScript.js","../../../../gui_dev/node_modules/@mui/material/styles/ThemeProviderWithVars.js","../../../../gui_dev/node_modules/@mui/material/styles/ThemeProvider.js","../../../../gui_dev/node_modules/@mui/material/GlobalStyles/GlobalStyles.js","../../../../gui_dev/node_modules/@mui/material/zero-styled/index.js","../../../../gui_dev/node_modules/@mui/material/utils/memoTheme.js","../../../../gui_dev/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js","../../../../gui_dev/node_modules/@mui/material/SvgIcon/svgIconClasses.js","../../../../gui_dev/node_modules/@mui/material/SvgIcon/SvgIcon.js","../../../../gui_dev/node_modules/@mui/material/utils/createSvgIcon.js","../../../../gui_dev/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../../../../gui_dev/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js","../../../../gui_dev/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js","../../../../gui_dev/node_modules/react-transition-group/esm/config.js","../../../../gui_dev/node_modules/react-transition-group/esm/TransitionGroupContext.js","../../../../gui_dev/node_modules/react-transition-group/esm/utils/reflow.js","../../../../gui_dev/node_modules/react-transition-group/esm/Transition.js","../../../../gui_dev/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js","../../../../gui_dev/node_modules/react-transition-group/esm/utils/ChildMapping.js","../../../../gui_dev/node_modules/react-transition-group/esm/TransitionGroup.js","../../../../gui_dev/node_modules/@mui/material/transitions/utils.js","../../../../gui_dev/node_modules/@mui/material/Collapse/collapseClasses.js","../../../../gui_dev/node_modules/@mui/material/Collapse/Collapse.js","../../../../gui_dev/node_modules/@mui/material/Paper/paperClasses.js","../../../../gui_dev/node_modules/@mui/material/Paper/Paper.js","../../../../gui_dev/node_modules/@mui/material/Accordion/AccordionContext.js","../../../../gui_dev/node_modules/@mui/material/utils/useSlot.js","../../../../gui_dev/node_modules/@mui/material/Accordion/accordionClasses.js","../../../../gui_dev/node_modules/@mui/material/Accordion/Accordion.js","../../../../gui_dev/node_modules/@mui/material/AccordionDetails/accordionDetailsClasses.js","../../../../gui_dev/node_modules/@mui/material/AccordionDetails/AccordionDetails.js","../../../../gui_dev/node_modules/@mui/material/useLazyRipple/useLazyRipple.js","../../../../gui_dev/node_modules/@mui/material/ButtonBase/Ripple.js","../../../../gui_dev/node_modules/@mui/material/ButtonBase/touchRippleClasses.js","../../../../gui_dev/node_modules/@mui/material/ButtonBase/TouchRipple.js","../../../../gui_dev/node_modules/@mui/material/ButtonBase/buttonBaseClasses.js","../../../../gui_dev/node_modules/@mui/material/ButtonBase/ButtonBase.js","../../../../gui_dev/node_modules/@mui/material/AccordionSummary/accordionSummaryClasses.js","../../../../gui_dev/node_modules/@mui/material/AccordionSummary/AccordionSummary.js","../../../../gui_dev/node_modules/@mui/material/utils/createSimplePaletteValueFilter.js","../../../../gui_dev/node_modules/@mui/material/IconButton/iconButtonClasses.js","../../../../gui_dev/node_modules/@mui/material/IconButton/IconButton.js","../../../../gui_dev/node_modules/@mui/material/Typography/typographyClasses.js","../../../../gui_dev/node_modules/@mui/material/Typography/Typography.js","../../../../gui_dev/node_modules/@popperjs/core/lib/enums.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getWindow.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js","../../../../gui_dev/node_modules/@popperjs/core/lib/modifiers/applyStyles.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/getBasePlacement.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/math.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/userAgent.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/contains.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/within.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/expandToHashMap.js","../../../../gui_dev/node_modules/@popperjs/core/lib/modifiers/arrow.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/getVariation.js","../../../../gui_dev/node_modules/@popperjs/core/lib/modifiers/computeStyles.js","../../../../gui_dev/node_modules/@popperjs/core/lib/modifiers/eventListeners.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/rectToClientRect.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/computeOffsets.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/detectOverflow.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js","../../../../gui_dev/node_modules/@popperjs/core/lib/modifiers/flip.js","../../../../gui_dev/node_modules/@popperjs/core/lib/modifiers/hide.js","../../../../gui_dev/node_modules/@popperjs/core/lib/modifiers/offset.js","../../../../gui_dev/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/getAltAxis.js","../../../../gui_dev/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js","../../../../gui_dev/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/orderModifiers.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/debounce.js","../../../../gui_dev/node_modules/@popperjs/core/lib/utils/mergeByName.js","../../../../gui_dev/node_modules/@popperjs/core/lib/createPopper.js","../../../../gui_dev/node_modules/@popperjs/core/lib/popper.js","../../../../gui_dev/node_modules/@mui/material/Portal/Portal.js","../../../../gui_dev/node_modules/@mui/material/Popper/popperClasses.js","../../../../gui_dev/node_modules/@mui/material/Popper/BasePopper.js","../../../../gui_dev/node_modules/@mui/material/Popper/Popper.js","../../../../gui_dev/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js","../../../../gui_dev/node_modules/@mui/material/utils/isHostComponent.js","../../../../gui_dev/node_modules/@mui/material/FormControl/formControlState.js","../../../../gui_dev/node_modules/@mui/material/FormControl/FormControlContext.js","../../../../gui_dev/node_modules/@mui/material/FormControl/useFormControl.js","../../../../gui_dev/node_modules/@mui/material/InputBase/utils.js","../../../../gui_dev/node_modules/@mui/material/InputBase/inputBaseClasses.js","../../../../gui_dev/node_modules/@mui/material/InputBase/InputBase.js","../../../../gui_dev/node_modules/@mui/material/Input/inputClasses.js","../../../../gui_dev/node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js","../../../../gui_dev/node_modules/@mui/material/FilledInput/filledInputClasses.js","../../../../gui_dev/node_modules/@mui/material/internal/svg-icons/ArrowDropDown.js","../../../../gui_dev/node_modules/@mui/material/Fade/Fade.js","../../../../gui_dev/node_modules/@mui/material/Backdrop/backdropClasses.js","../../../../gui_dev/node_modules/@mui/material/Backdrop/Backdrop.js","../../../../gui_dev/node_modules/@mui/material/Box/boxClasses.js","../../../../gui_dev/node_modules/@mui/material/Box/Box.js","../../../../gui_dev/node_modules/@mui/material/Button/buttonClasses.js","../../../../gui_dev/node_modules/@mui/material/ButtonGroup/ButtonGroupContext.js","../../../../gui_dev/node_modules/@mui/material/ButtonGroup/ButtonGroupButtonContext.js","../../../../gui_dev/node_modules/@mui/material/Button/Button.js","../../../../gui_dev/node_modules/@mui/material/internal/switchBaseClasses.js","../../../../gui_dev/node_modules/@mui/material/internal/SwitchBase.js","../../../../gui_dev/node_modules/@mui/material/internal/svg-icons/CheckBoxOutlineBlank.js","../../../../gui_dev/node_modules/@mui/material/internal/svg-icons/CheckBox.js","../../../../gui_dev/node_modules/@mui/material/internal/svg-icons/IndeterminateCheckBox.js","../../../../gui_dev/node_modules/@mui/material/Checkbox/checkboxClasses.js","../../../../gui_dev/node_modules/@mui/material/Checkbox/Checkbox.js","../../../../gui_dev/node_modules/@mui/material/CircularProgress/circularProgressClasses.js","../../../../gui_dev/node_modules/@mui/material/CircularProgress/CircularProgress.js","../../../../gui_dev/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js","../../../../gui_dev/node_modules/@mui/material/Container/Container.js","../../../../gui_dev/node_modules/@mui/material/CssBaseline/CssBaseline.js","../../../../gui_dev/node_modules/@mui/material/Modal/ModalManager.js","../../../../gui_dev/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js","../../../../gui_dev/node_modules/@mui/material/Modal/useModal.js","../../../../gui_dev/node_modules/@mui/material/Modal/modalClasses.js","../../../../gui_dev/node_modules/@mui/material/Modal/Modal.js","../../../../gui_dev/node_modules/@mui/material/Divider/dividerClasses.js","../../../../gui_dev/node_modules/@mui/material/FilledInput/FilledInput.js","../../../../gui_dev/node_modules/@mui/material/FormControl/formControlClasses.js","../../../../gui_dev/node_modules/@mui/material/FormControl/FormControl.js","../../../../gui_dev/node_modules/@mui/material/FormHelperText/formHelperTextClasses.js","../../../../gui_dev/node_modules/@mui/material/FormHelperText/FormHelperText.js","../../../../gui_dev/node_modules/@mui/material/FormLabel/formLabelClasses.js","../../../../gui_dev/node_modules/@mui/material/FormLabel/FormLabel.js","../../../../gui_dev/node_modules/@mui/material/Grow/Grow.js","../../../../gui_dev/node_modules/@mui/material/Input/Input.js","../../../../gui_dev/node_modules/@mui/material/InputAdornment/inputAdornmentClasses.js","../../../../gui_dev/node_modules/@mui/material/InputAdornment/InputAdornment.js","../../../../gui_dev/node_modules/@mui/material/InputLabel/inputLabelClasses.js","../../../../gui_dev/node_modules/@mui/material/InputLabel/InputLabel.js","../../../../gui_dev/node_modules/@mui/material/Link/linkClasses.js","../../../../gui_dev/node_modules/@mui/material/Link/getTextDecoration.js","../../../../gui_dev/node_modules/@mui/material/Link/Link.js","../../../../gui_dev/node_modules/@mui/material/List/ListContext.js","../../../../gui_dev/node_modules/@mui/material/List/listClasses.js","../../../../gui_dev/node_modules/@mui/material/List/List.js","../../../../gui_dev/node_modules/@mui/material/ListItem/listItemClasses.js","../../../../gui_dev/node_modules/@mui/material/ListItemButton/listItemButtonClasses.js","../../../../gui_dev/node_modules/@mui/material/ListItemSecondaryAction/listItemSecondaryActionClasses.js","../../../../gui_dev/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js","../../../../gui_dev/node_modules/@mui/material/ListItem/ListItem.js","../../../../gui_dev/node_modules/@mui/material/ListItemIcon/listItemIconClasses.js","../../../../gui_dev/node_modules/@mui/material/ListItemIcon/ListItemIcon.js","../../../../gui_dev/node_modules/@mui/material/ListItemText/listItemTextClasses.js","../../../../gui_dev/node_modules/@mui/material/ListItemText/ListItemText.js","../../../../gui_dev/node_modules/@mui/material/MenuList/MenuList.js","../../../../gui_dev/node_modules/@mui/material/Popover/popoverClasses.js","../../../../gui_dev/node_modules/@mui/material/Popover/Popover.js","../../../../gui_dev/node_modules/@mui/material/Menu/menuClasses.js","../../../../gui_dev/node_modules/@mui/material/Menu/Menu.js","../../../../gui_dev/node_modules/@mui/material/MenuItem/menuItemClasses.js","../../../../gui_dev/node_modules/@mui/material/MenuItem/MenuItem.js","../../../../gui_dev/node_modules/@mui/material/NativeSelect/nativeSelectClasses.js","../../../../gui_dev/node_modules/@mui/material/NativeSelect/NativeSelectInput.js","../../../../gui_dev/node_modules/@mui/material/OutlinedInput/NotchedOutline.js","../../../../gui_dev/node_modules/@mui/material/OutlinedInput/OutlinedInput.js","../../../../gui_dev/node_modules/@mui/material/Select/selectClasses.js","../../../../gui_dev/node_modules/@mui/material/Select/SelectInput.js","../../../../gui_dev/node_modules/@mui/material/Select/Select.js","../../../../gui_dev/node_modules/@mui/material/Snackbar/useSnackbar.js","../../../../gui_dev/node_modules/@mui/material/SnackbarContent/snackbarContentClasses.js","../../../../gui_dev/node_modules/@mui/material/SnackbarContent/SnackbarContent.js","../../../../gui_dev/node_modules/@mui/material/Snackbar/snackbarClasses.js","../../../../gui_dev/node_modules/@mui/material/Snackbar/Snackbar.js","../../../../gui_dev/node_modules/@mui/material/Tooltip/tooltipClasses.js","../../../../gui_dev/node_modules/@mui/material/Tooltip/Tooltip.js","../../../../gui_dev/node_modules/@mui/material/Stack/Stack.js","../../../../gui_dev/node_modules/@mui/material/Switch/switchClasses.js","../../../../gui_dev/node_modules/@mui/material/Switch/Switch.js","../../../../gui_dev/node_modules/@mui/material/Table/TableContext.js","../../../../gui_dev/node_modules/@mui/material/Table/tableClasses.js","../../../../gui_dev/node_modules/@mui/material/Table/Table.js","../../../../gui_dev/node_modules/@mui/material/Table/Tablelvl2Context.js","../../../../gui_dev/node_modules/@mui/material/TableBody/tableBodyClasses.js","../../../../gui_dev/node_modules/@mui/material/TableBody/TableBody.js","../../../../gui_dev/node_modules/@mui/material/TableCell/tableCellClasses.js","../../../../gui_dev/node_modules/@mui/material/TableCell/TableCell.js","../../../../gui_dev/node_modules/@mui/material/TableContainer/tableContainerClasses.js","../../../../gui_dev/node_modules/@mui/material/TableContainer/TableContainer.js","../../../../gui_dev/node_modules/@mui/material/TableHead/tableHeadClasses.js","../../../../gui_dev/node_modules/@mui/material/TableHead/TableHead.js","../../../../gui_dev/node_modules/@mui/material/TableRow/tableRowClasses.js","../../../../gui_dev/node_modules/@mui/material/TableRow/TableRow.js","../../../../gui_dev/node_modules/@mui/material/internal/svg-icons/ArrowDownward.js","../../../../gui_dev/node_modules/@mui/material/TableSortLabel/tableSortLabelClasses.js","../../../../gui_dev/node_modules/@mui/material/TableSortLabel/TableSortLabel.js","../../../../gui_dev/node_modules/@mui/material/TextField/textFieldClasses.js","../../../../gui_dev/node_modules/@mui/material/TextField/TextField.js","../../../../gui_dev/src/components/WindowButtons.jsx","../../../../gui_dev/node_modules/@mui/icons-material/esm/ArrowUpward.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/BarChart.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/Computer.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/Dashboard.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/Dataset.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/Download.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/Dvr.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/ExpandMore.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/Folder.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/InsertDriveFile.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/MoreVert.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/Settings.js","../../../../gui_dev/node_modules/@mui/icons-material/esm/Star.js","../../../../gui_dev/src/components/AppBar.jsx","../../../../gui_dev/src/components/utils.jsx","../../../../gui_dev/src/components/AppInfoModal.jsx","../../../../gui_dev/src/components/CollapsibleBox.jsx","../../../../gui_dev/src/components/FileBrowser/QuickAccess.jsx","../../../../gui_dev/src/utils/FileManager.js","../../../../gui_dev/src/components/FileBrowser/FileBrowser.jsx","../../../../gui_dev/src/components/Graph.jsx","../../../../gui_dev/src/components/StatusBar/ResizeHandle.jsx","../../../../gui_dev/src/components/StatusBar/WebviewStatus.jsx","../../../../gui_dev/src/components/StatusBar/StatusBar.jsx","../../../../gui_dev/src/components/TitledBox.jsx","../../../../gui_dev/src/pages/Dashboard.jsx","../../../../gui_dev/src/pages/SourceSelection/StreamParameters.jsx","../../../../gui_dev/src/pages/SourceSelection/SourceSelection.jsx","../../../../gui_dev/src/pages/Decoding.jsx","../../../../gui_dev/src/pages/Channels/Channels.jsx","../../../../gui_dev/src/pages/Settings/FrequencyRange.jsx","../../../../gui_dev/src/utils/functions.js","../../../../gui_dev/src/pages/Settings/Settings.jsx","../../../../gui_dev/src/assets/fonts/figtree/Figtree-VariableFont_wght.ttf","../../../../gui_dev/src/theme.js","../../../../gui_dev/src/pages/SourceSelection/StreamSelector.jsx","../../../../gui_dev/src/pages/SourceSelection/FileSelector.jsx","../../../../gui_dev/src/App.jsx","../../../../gui_dev/src/main.jsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/**\n * @license React\n * react.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar ReactNoopUpdateQueue = {\n isMounted: function () {\n return !1;\n },\n enqueueForceUpdate: function () {},\n enqueueReplaceState: function () {},\n enqueueSetState: function () {}\n },\n assign = Object.assign,\n emptyObject = {};\nfunction Component(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nComponent.prototype.isReactComponent = {};\nComponent.prototype.setState = function (partialState, callback) {\n if (\n \"object\" !== typeof partialState &&\n \"function\" !== typeof partialState &&\n null != partialState\n )\n throw Error(\n \"takes an object of state variables to update or a function which returns an object of state variables.\"\n );\n this.updater.enqueueSetState(this, partialState, callback, \"setState\");\n};\nComponent.prototype.forceUpdate = function (callback) {\n this.updater.enqueueForceUpdate(this, callback, \"forceUpdate\");\n};\nfunction ComponentDummy() {}\nComponentDummy.prototype = Component.prototype;\nfunction PureComponent(props, context, updater) {\n this.props = props;\n this.context = context;\n this.refs = emptyObject;\n this.updater = updater || ReactNoopUpdateQueue;\n}\nvar pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());\npureComponentPrototype.constructor = PureComponent;\nassign(pureComponentPrototype, Component.prototype);\npureComponentPrototype.isPureReactComponent = !0;\nvar isArrayImpl = Array.isArray,\n ReactSharedInternals = { H: null, A: null, T: null, S: null },\n hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction ReactElement(type, key, _ref, self, source, owner, props) {\n _ref = props.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== _ref ? _ref : null,\n props: props\n };\n}\nfunction cloneAndReplaceKey(oldElement, newKey) {\n return ReactElement(\n oldElement.type,\n newKey,\n null,\n void 0,\n void 0,\n void 0,\n oldElement.props\n );\n}\nfunction isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n}\nfunction escape(key) {\n var escaperLookup = { \"=\": \"=0\", \":\": \"=2\" };\n return (\n \"$\" +\n key.replace(/[=:]/g, function (match) {\n return escaperLookup[match];\n })\n );\n}\nvar userProvidedKeyEscapeRegex = /\\/+/g;\nfunction getElementKey(element, index) {\n return \"object\" === typeof element && null !== element && null != element.key\n ? escape(\"\" + element.key)\n : index.toString(36);\n}\nfunction noop$1() {}\nfunction resolveThenable(thenable) {\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n default:\n switch (\n (\"string\" === typeof thenable.status\n ? thenable.then(noop$1, noop$1)\n : ((thenable.status = \"pending\"),\n thenable.then(\n function (fulfilledValue) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"fulfilled\"),\n (thenable.value = fulfilledValue));\n },\n function (error) {\n \"pending\" === thenable.status &&\n ((thenable.status = \"rejected\"), (thenable.reason = error));\n }\n )),\n thenable.status)\n ) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n throw thenable.reason;\n }\n }\n throw thenable;\n}\nfunction mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {\n var type = typeof children;\n if (\"undefined\" === type || \"boolean\" === type) children = null;\n var invokeCallback = !1;\n if (null === children) invokeCallback = !0;\n else\n switch (type) {\n case \"bigint\":\n case \"string\":\n case \"number\":\n invokeCallback = !0;\n break;\n case \"object\":\n switch (children.$$typeof) {\n case REACT_ELEMENT_TYPE:\n case REACT_PORTAL_TYPE:\n invokeCallback = !0;\n break;\n case REACT_LAZY_TYPE:\n return (\n (invokeCallback = children._init),\n mapIntoArray(\n invokeCallback(children._payload),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n )\n );\n }\n }\n if (invokeCallback)\n return (\n (callback = callback(children)),\n (invokeCallback =\n \"\" === nameSoFar ? \".\" + getElementKey(children, 0) : nameSoFar),\n isArrayImpl(callback)\n ? ((escapedPrefix = \"\"),\n null != invokeCallback &&\n (escapedPrefix =\n invokeCallback.replace(userProvidedKeyEscapeRegex, \"$&/\") + \"/\"),\n mapIntoArray(callback, array, escapedPrefix, \"\", function (c) {\n return c;\n }))\n : null != callback &&\n (isValidElement(callback) &&\n (callback = cloneAndReplaceKey(\n callback,\n escapedPrefix +\n (null == callback.key ||\n (children && children.key === callback.key)\n ? \"\"\n : (\"\" + callback.key).replace(\n userProvidedKeyEscapeRegex,\n \"$&/\"\n ) + \"/\") +\n invokeCallback\n )),\n array.push(callback)),\n 1\n );\n invokeCallback = 0;\n var nextNamePrefix = \"\" === nameSoFar ? \".\" : nameSoFar + \":\";\n if (isArrayImpl(children))\n for (var i = 0; i < children.length; i++)\n (nameSoFar = children[i]),\n (type = nextNamePrefix + getElementKey(nameSoFar, i)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (((i = getIteratorFn(children)), \"function\" === typeof i))\n for (\n children = i.call(children), i = 0;\n !(nameSoFar = children.next()).done;\n\n )\n (nameSoFar = nameSoFar.value),\n (type = nextNamePrefix + getElementKey(nameSoFar, i++)),\n (invokeCallback += mapIntoArray(\n nameSoFar,\n array,\n escapedPrefix,\n type,\n callback\n ));\n else if (\"object\" === type) {\n if (\"function\" === typeof children.then)\n return mapIntoArray(\n resolveThenable(children),\n array,\n escapedPrefix,\n nameSoFar,\n callback\n );\n array = String(children);\n throw Error(\n \"Objects are not valid as a React child (found: \" +\n (\"[object Object]\" === array\n ? \"object with keys {\" + Object.keys(children).join(\", \") + \"}\"\n : array) +\n \"). If you meant to render a collection of children, use an array instead.\"\n );\n }\n return invokeCallback;\n}\nfunction mapChildren(children, func, context) {\n if (null == children) return children;\n var result = [],\n count = 0;\n mapIntoArray(children, result, \"\", \"\", function (child) {\n return func.call(context, child, count++);\n });\n return result;\n}\nfunction lazyInitializer(payload) {\n if (-1 === payload._status) {\n var ctor = payload._result;\n ctor = ctor();\n ctor.then(\n function (moduleObject) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 1), (payload._result = moduleObject);\n },\n function (error) {\n if (0 === payload._status || -1 === payload._status)\n (payload._status = 2), (payload._result = error);\n }\n );\n -1 === payload._status && ((payload._status = 0), (payload._result = ctor));\n }\n if (1 === payload._status) return payload._result.default;\n throw payload._result;\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n };\nfunction noop() {}\nexports.Children = {\n map: mapChildren,\n forEach: function (children, forEachFunc, forEachContext) {\n mapChildren(\n children,\n function () {\n forEachFunc.apply(this, arguments);\n },\n forEachContext\n );\n },\n count: function (children) {\n var n = 0;\n mapChildren(children, function () {\n n++;\n });\n return n;\n },\n toArray: function (children) {\n return (\n mapChildren(children, function (child) {\n return child;\n }) || []\n );\n },\n only: function (children) {\n if (!isValidElement(children))\n throw Error(\n \"React.Children.only expected to receive a single React element child.\"\n );\n return children;\n }\n};\nexports.Component = Component;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.PureComponent = PureComponent;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n ReactSharedInternals;\nexports.act = function () {\n throw Error(\"act(...) is not supported in production builds of React.\");\n};\nexports.cache = function (fn) {\n return function () {\n return fn.apply(null, arguments);\n };\n};\nexports.cloneElement = function (element, config, children) {\n if (null === element || void 0 === element)\n throw Error(\n \"The argument must be a React element, but you passed \" + element + \".\"\n );\n var props = assign({}, element.props),\n key = element.key,\n owner = void 0;\n if (null != config)\n for (propName in (void 0 !== config.ref && (owner = void 0),\n void 0 !== config.key && (key = \"\" + config.key),\n config))\n !hasOwnProperty.call(config, propName) ||\n \"key\" === propName ||\n \"__self\" === propName ||\n \"__source\" === propName ||\n (\"ref\" === propName && void 0 === config.ref) ||\n (props[propName] = config[propName]);\n var propName = arguments.length - 2;\n if (1 === propName) props.children = children;\n else if (1 < propName) {\n for (var childArray = Array(propName), i = 0; i < propName; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n return ReactElement(element.type, key, null, void 0, void 0, owner, props);\n};\nexports.createContext = function (defaultValue) {\n defaultValue = {\n $$typeof: REACT_CONTEXT_TYPE,\n _currentValue: defaultValue,\n _currentValue2: defaultValue,\n _threadCount: 0,\n Provider: null,\n Consumer: null\n };\n defaultValue.Provider = defaultValue;\n defaultValue.Consumer = {\n $$typeof: REACT_CONSUMER_TYPE,\n _context: defaultValue\n };\n return defaultValue;\n};\nexports.createElement = function (type, config, children) {\n var propName,\n props = {},\n key = null;\n if (null != config)\n for (propName in (void 0 !== config.key && (key = \"\" + config.key), config))\n hasOwnProperty.call(config, propName) &&\n \"key\" !== propName &&\n \"__self\" !== propName &&\n \"__source\" !== propName &&\n (props[propName] = config[propName]);\n var childrenLength = arguments.length - 2;\n if (1 === childrenLength) props.children = children;\n else if (1 < childrenLength) {\n for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)\n childArray[i] = arguments[i + 2];\n props.children = childArray;\n }\n if (type && type.defaultProps)\n for (propName in ((childrenLength = type.defaultProps), childrenLength))\n void 0 === props[propName] &&\n (props[propName] = childrenLength[propName]);\n return ReactElement(type, key, null, void 0, void 0, null, props);\n};\nexports.createRef = function () {\n return { current: null };\n};\nexports.forwardRef = function (render) {\n return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };\n};\nexports.isValidElement = isValidElement;\nexports.lazy = function (ctor) {\n return {\n $$typeof: REACT_LAZY_TYPE,\n _payload: { _status: -1, _result: ctor },\n _init: lazyInitializer\n };\n};\nexports.memo = function (type, compare) {\n return {\n $$typeof: REACT_MEMO_TYPE,\n type: type,\n compare: void 0 === compare ? null : compare\n };\n};\nexports.startTransition = function (scope) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = scope(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n returnValue.then(noop, reportGlobalError);\n } catch (error) {\n reportGlobalError(error);\n } finally {\n ReactSharedInternals.T = prevTransition;\n }\n};\nexports.unstable_useCacheRefresh = function () {\n return ReactSharedInternals.H.useCacheRefresh();\n};\nexports.use = function (usable) {\n return ReactSharedInternals.H.use(usable);\n};\nexports.useActionState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useActionState(action, initialState, permalink);\n};\nexports.useCallback = function (callback, deps) {\n return ReactSharedInternals.H.useCallback(callback, deps);\n};\nexports.useContext = function (Context) {\n return ReactSharedInternals.H.useContext(Context);\n};\nexports.useDebugValue = function () {};\nexports.useDeferredValue = function (value, initialValue) {\n return ReactSharedInternals.H.useDeferredValue(value, initialValue);\n};\nexports.useEffect = function (create, deps) {\n return ReactSharedInternals.H.useEffect(create, deps);\n};\nexports.useId = function () {\n return ReactSharedInternals.H.useId();\n};\nexports.useImperativeHandle = function (ref, create, deps) {\n return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);\n};\nexports.useInsertionEffect = function (create, deps) {\n return ReactSharedInternals.H.useInsertionEffect(create, deps);\n};\nexports.useLayoutEffect = function (create, deps) {\n return ReactSharedInternals.H.useLayoutEffect(create, deps);\n};\nexports.useMemo = function (create, deps) {\n return ReactSharedInternals.H.useMemo(create, deps);\n};\nexports.useOptimistic = function (passthrough, reducer) {\n return ReactSharedInternals.H.useOptimistic(passthrough, reducer);\n};\nexports.useReducer = function (reducer, initialArg, init) {\n return ReactSharedInternals.H.useReducer(reducer, initialArg, init);\n};\nexports.useRef = function (initialValue) {\n return ReactSharedInternals.H.useRef(initialValue);\n};\nexports.useState = function (initialState) {\n return ReactSharedInternals.H.useState(initialState);\n};\nexports.useSyncExternalStore = function (\n subscribe,\n getSnapshot,\n getServerSnapshot\n) {\n return ReactSharedInternals.H.useSyncExternalStore(\n subscribe,\n getSnapshot,\n getServerSnapshot\n );\n};\nexports.useTransition = function () {\n return ReactSharedInternals.H.useTransition();\n};\nexports.version = \"19.0.0-rc-5dcb0097-20240918\";\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/**\n * @license React\n * scheduler.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nfunction push(heap, node) {\n var index = heap.length;\n heap.push(node);\n a: for (; 0 < index; ) {\n var parentIndex = (index - 1) >>> 1,\n parent = heap[parentIndex];\n if (0 < compare(parent, node))\n (heap[parentIndex] = node), (heap[index] = parent), (index = parentIndex);\n else break a;\n }\n}\nfunction peek(heap) {\n return 0 === heap.length ? null : heap[0];\n}\nfunction pop(heap) {\n if (0 === heap.length) return null;\n var first = heap[0],\n last = heap.pop();\n if (last !== first) {\n heap[0] = last;\n a: for (\n var index = 0, length = heap.length, halfLength = length >>> 1;\n index < halfLength;\n\n ) {\n var leftIndex = 2 * (index + 1) - 1,\n left = heap[leftIndex],\n rightIndex = leftIndex + 1,\n right = heap[rightIndex];\n if (0 > compare(left, last))\n rightIndex < length && 0 > compare(right, left)\n ? ((heap[index] = right),\n (heap[rightIndex] = last),\n (index = rightIndex))\n : ((heap[index] = left),\n (heap[leftIndex] = last),\n (index = leftIndex));\n else if (rightIndex < length && 0 > compare(right, last))\n (heap[index] = right), (heap[rightIndex] = last), (index = rightIndex);\n else break a;\n }\n }\n return first;\n}\nfunction compare(a, b) {\n var diff = a.sortIndex - b.sortIndex;\n return 0 !== diff ? diff : a.id - b.id;\n}\nexports.unstable_now = void 0;\nif (\"object\" === typeof performance && \"function\" === typeof performance.now) {\n var localPerformance = performance;\n exports.unstable_now = function () {\n return localPerformance.now();\n };\n} else {\n var localDate = Date,\n initialTime = localDate.now();\n exports.unstable_now = function () {\n return localDate.now() - initialTime;\n };\n}\nvar taskQueue = [],\n timerQueue = [],\n taskIdCounter = 1,\n currentTask = null,\n currentPriorityLevel = 3,\n isPerformingWork = !1,\n isHostCallbackScheduled = !1,\n isHostTimeoutScheduled = !1,\n localSetTimeout = \"function\" === typeof setTimeout ? setTimeout : null,\n localClearTimeout = \"function\" === typeof clearTimeout ? clearTimeout : null,\n localSetImmediate = \"undefined\" !== typeof setImmediate ? setImmediate : null;\nfunction advanceTimers(currentTime) {\n for (var timer = peek(timerQueue); null !== timer; ) {\n if (null === timer.callback) pop(timerQueue);\n else if (timer.startTime <= currentTime)\n pop(timerQueue),\n (timer.sortIndex = timer.expirationTime),\n push(taskQueue, timer);\n else break;\n timer = peek(timerQueue);\n }\n}\nfunction handleTimeout(currentTime) {\n isHostTimeoutScheduled = !1;\n advanceTimers(currentTime);\n if (!isHostCallbackScheduled)\n if (null !== peek(taskQueue))\n (isHostCallbackScheduled = !0), requestHostCallback();\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime);\n }\n}\nvar isMessageLoopRunning = !1,\n taskTimeoutID = -1,\n frameInterval = 5,\n startTime = -1;\nfunction shouldYieldToHost() {\n return exports.unstable_now() - startTime < frameInterval ? !1 : !0;\n}\nfunction performWorkUntilDeadline() {\n if (isMessageLoopRunning) {\n var currentTime = exports.unstable_now();\n startTime = currentTime;\n var hasMoreWork = !0;\n try {\n a: {\n isHostCallbackScheduled = !1;\n isHostTimeoutScheduled &&\n ((isHostTimeoutScheduled = !1),\n localClearTimeout(taskTimeoutID),\n (taskTimeoutID = -1));\n isPerformingWork = !0;\n var previousPriorityLevel = currentPriorityLevel;\n try {\n b: {\n advanceTimers(currentTime);\n for (\n currentTask = peek(taskQueue);\n null !== currentTask &&\n !(\n currentTask.expirationTime > currentTime && shouldYieldToHost()\n );\n\n ) {\n var callback = currentTask.callback;\n if (\"function\" === typeof callback) {\n currentTask.callback = null;\n currentPriorityLevel = currentTask.priorityLevel;\n var continuationCallback = callback(\n currentTask.expirationTime <= currentTime\n );\n currentTime = exports.unstable_now();\n if (\"function\" === typeof continuationCallback) {\n currentTask.callback = continuationCallback;\n advanceTimers(currentTime);\n hasMoreWork = !0;\n break b;\n }\n currentTask === peek(taskQueue) && pop(taskQueue);\n advanceTimers(currentTime);\n } else pop(taskQueue);\n currentTask = peek(taskQueue);\n }\n if (null !== currentTask) hasMoreWork = !0;\n else {\n var firstTimer = peek(timerQueue);\n null !== firstTimer &&\n requestHostTimeout(\n handleTimeout,\n firstTimer.startTime - currentTime\n );\n hasMoreWork = !1;\n }\n }\n break a;\n } finally {\n (currentTask = null),\n (currentPriorityLevel = previousPriorityLevel),\n (isPerformingWork = !1);\n }\n hasMoreWork = void 0;\n }\n } finally {\n hasMoreWork\n ? schedulePerformWorkUntilDeadline()\n : (isMessageLoopRunning = !1);\n }\n }\n}\nvar schedulePerformWorkUntilDeadline;\nif (\"function\" === typeof localSetImmediate)\n schedulePerformWorkUntilDeadline = function () {\n localSetImmediate(performWorkUntilDeadline);\n };\nelse if (\"undefined\" !== typeof MessageChannel) {\n var channel = new MessageChannel(),\n port = channel.port2;\n channel.port1.onmessage = performWorkUntilDeadline;\n schedulePerformWorkUntilDeadline = function () {\n port.postMessage(null);\n };\n} else\n schedulePerformWorkUntilDeadline = function () {\n localSetTimeout(performWorkUntilDeadline, 0);\n };\nfunction requestHostCallback() {\n isMessageLoopRunning ||\n ((isMessageLoopRunning = !0), schedulePerformWorkUntilDeadline());\n}\nfunction requestHostTimeout(callback, ms) {\n taskTimeoutID = localSetTimeout(function () {\n callback(exports.unstable_now());\n }, ms);\n}\nexports.unstable_IdlePriority = 5;\nexports.unstable_ImmediatePriority = 1;\nexports.unstable_LowPriority = 4;\nexports.unstable_NormalPriority = 3;\nexports.unstable_Profiling = null;\nexports.unstable_UserBlockingPriority = 2;\nexports.unstable_cancelCallback = function (task) {\n task.callback = null;\n};\nexports.unstable_continueExecution = function () {\n isHostCallbackScheduled ||\n isPerformingWork ||\n ((isHostCallbackScheduled = !0), requestHostCallback());\n};\nexports.unstable_forceFrameRate = function (fps) {\n 0 > fps || 125 < fps\n ? console.error(\n \"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"\n )\n : (frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5);\n};\nexports.unstable_getCurrentPriorityLevel = function () {\n return currentPriorityLevel;\n};\nexports.unstable_getFirstCallbackNode = function () {\n return peek(taskQueue);\n};\nexports.unstable_next = function (eventHandler) {\n switch (currentPriorityLevel) {\n case 1:\n case 2:\n case 3:\n var priorityLevel = 3;\n break;\n default:\n priorityLevel = currentPriorityLevel;\n }\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n};\nexports.unstable_pauseExecution = function () {};\nexports.unstable_requestPaint = function () {};\nexports.unstable_runWithPriority = function (priorityLevel, eventHandler) {\n switch (priorityLevel) {\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n break;\n default:\n priorityLevel = 3;\n }\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = priorityLevel;\n try {\n return eventHandler();\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n};\nexports.unstable_scheduleCallback = function (\n priorityLevel,\n callback,\n options\n) {\n var currentTime = exports.unstable_now();\n \"object\" === typeof options && null !== options\n ? ((options = options.delay),\n (options =\n \"number\" === typeof options && 0 < options\n ? currentTime + options\n : currentTime))\n : (options = currentTime);\n switch (priorityLevel) {\n case 1:\n var timeout = -1;\n break;\n case 2:\n timeout = 250;\n break;\n case 5:\n timeout = 1073741823;\n break;\n case 4:\n timeout = 1e4;\n break;\n default:\n timeout = 5e3;\n }\n timeout = options + timeout;\n priorityLevel = {\n id: taskIdCounter++,\n callback: callback,\n priorityLevel: priorityLevel,\n startTime: options,\n expirationTime: timeout,\n sortIndex: -1\n };\n options > currentTime\n ? ((priorityLevel.sortIndex = options),\n push(timerQueue, priorityLevel),\n null === peek(taskQueue) &&\n priorityLevel === peek(timerQueue) &&\n (isHostTimeoutScheduled\n ? (localClearTimeout(taskTimeoutID), (taskTimeoutID = -1))\n : (isHostTimeoutScheduled = !0),\n requestHostTimeout(handleTimeout, options - currentTime)))\n : ((priorityLevel.sortIndex = timeout),\n push(taskQueue, priorityLevel),\n isHostCallbackScheduled ||\n isPerformingWork ||\n ((isHostCallbackScheduled = !0), requestHostCallback()));\n return priorityLevel;\n};\nexports.unstable_shouldYield = shouldYieldToHost;\nexports.unstable_wrapCallback = function (callback) {\n var parentPriorityLevel = currentPriorityLevel;\n return function () {\n var previousPriorityLevel = currentPriorityLevel;\n currentPriorityLevel = parentPriorityLevel;\n try {\n return callback.apply(this, arguments);\n } finally {\n currentPriorityLevel = previousPriorityLevel;\n }\n };\n};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar React = require(\"react\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction noop() {}\nvar Internals = {\n d: {\n f: noop,\n r: function () {\n throw Error(formatProdErrorMessage(522));\n },\n D: noop,\n C: noop,\n L: noop,\n m: noop,\n X: noop,\n S: noop,\n M: noop\n },\n p: 0,\n findDOMNode: null\n },\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\");\nfunction createPortal$1(children, containerInfo, implementation) {\n var key =\n 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;\n return {\n $$typeof: REACT_PORTAL_TYPE,\n key: null == key ? null : \"\" + key,\n children: children,\n containerInfo: containerInfo,\n implementation: implementation\n };\n}\nvar ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nfunction getCrossOriginStringAs(as, input) {\n if (\"font\" === as) return \"\";\n if (\"string\" === typeof input)\n return \"use-credentials\" === input ? input : \"\";\n}\nexports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =\n Internals;\nexports.createPortal = function (children, container) {\n var key =\n 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;\n if (\n !container ||\n (1 !== container.nodeType &&\n 9 !== container.nodeType &&\n 11 !== container.nodeType)\n )\n throw Error(formatProdErrorMessage(299));\n return createPortal$1(children, container, null, key);\n};\nexports.flushSync = function (fn) {\n var previousTransition = ReactSharedInternals.T,\n previousUpdatePriority = Internals.p;\n try {\n if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();\n } finally {\n (ReactSharedInternals.T = previousTransition),\n (Internals.p = previousUpdatePriority),\n Internals.d.f();\n }\n};\nexports.preconnect = function (href, options) {\n \"string\" === typeof href &&\n (options\n ? ((options = options.crossOrigin),\n (options =\n \"string\" === typeof options\n ? \"use-credentials\" === options\n ? options\n : \"\"\n : void 0))\n : (options = null),\n Internals.d.C(href, options));\n};\nexports.prefetchDNS = function (href) {\n \"string\" === typeof href && Internals.d.D(href);\n};\nexports.preinit = function (href, options) {\n if (\"string\" === typeof href && options && \"string\" === typeof options.as) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),\n integrity =\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n fetchPriority =\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0;\n \"style\" === as\n ? Internals.d.S(\n href,\n \"string\" === typeof options.precedence ? options.precedence : void 0,\n {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority\n }\n )\n : \"script\" === as &&\n Internals.d.X(href, {\n crossOrigin: crossOrigin,\n integrity: integrity,\n fetchPriority: fetchPriority,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n};\nexports.preinitModule = function (href, options) {\n if (\"string\" === typeof href)\n if (\"object\" === typeof options && null !== options) {\n if (null == options.as || \"script\" === options.as) {\n var crossOrigin = getCrossOriginStringAs(\n options.as,\n options.crossOrigin\n );\n Internals.d.M(href, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0\n });\n }\n } else null == options && Internals.d.M(href);\n};\nexports.preload = function (href, options) {\n if (\n \"string\" === typeof href &&\n \"object\" === typeof options &&\n null !== options &&\n \"string\" === typeof options.as\n ) {\n var as = options.as,\n crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);\n Internals.d.L(href, as, {\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0,\n nonce: \"string\" === typeof options.nonce ? options.nonce : void 0,\n type: \"string\" === typeof options.type ? options.type : void 0,\n fetchPriority:\n \"string\" === typeof options.fetchPriority\n ? options.fetchPriority\n : void 0,\n referrerPolicy:\n \"string\" === typeof options.referrerPolicy\n ? options.referrerPolicy\n : void 0,\n imageSrcSet:\n \"string\" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,\n imageSizes:\n \"string\" === typeof options.imageSizes ? options.imageSizes : void 0,\n media: \"string\" === typeof options.media ? options.media : void 0\n });\n }\n};\nexports.preloadModule = function (href, options) {\n if (\"string\" === typeof href)\n if (options) {\n var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);\n Internals.d.m(href, {\n as:\n \"string\" === typeof options.as && \"script\" !== options.as\n ? options.as\n : void 0,\n crossOrigin: crossOrigin,\n integrity:\n \"string\" === typeof options.integrity ? options.integrity : void 0\n });\n } else Internals.d.m(href);\n};\nexports.requestFormReset = function (form) {\n Internals.d.r(form);\n};\nexports.unstable_batchedUpdates = function (fn, a) {\n return fn(a);\n};\nexports.useFormState = function (action, initialState, permalink) {\n return ReactSharedInternals.H.useFormState(action, initialState, permalink);\n};\nexports.useFormStatus = function () {\n return ReactSharedInternals.H.useHostTransitionStatus();\n};\nexports.version = \"19.0.0-rc-5dcb0097-20240918\";\n","'use strict';\n\nfunction checkDCE() {\n /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */\n if (\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||\n typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'\n ) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n // This branch is unreachable because this function is only called\n // in production, but the condition is true only in development.\n // Therefore if the branch is still here, dead code elimination wasn't\n // properly applied.\n // Don't change the message. React DevTools relies on it. Also make sure\n // this message doesn't occur elsewhere in this function, or it will cause\n // a false positive.\n throw new Error('^_^');\n }\n try {\n // Verify that the code above has been dead code eliminated (DCE'd).\n __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);\n } catch (err) {\n // DevTools shouldn't crash React, no matter what.\n // We should still report in case we break this code.\n console.error(err);\n }\n}\n\nif (process.env.NODE_ENV === 'production') {\n // DCE check should happen before ReactDOM bundle executes so that\n // DevTools can report bad minification during injection.\n checkDCE();\n module.exports = require('./cjs/react-dom.production.js');\n} else {\n module.exports = require('./cjs/react-dom.development.js');\n}\n","/**\n * @license React\n * react-dom-client.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n\"use strict\";\nvar Scheduler = require(\"scheduler\"),\n React = require(\"react\"),\n ReactDOM = require(\"react-dom\");\nfunction formatProdErrorMessage(code) {\n var url = \"https://react.dev/errors/\" + code;\n if (1 < arguments.length) {\n url += \"?args[]=\" + encodeURIComponent(arguments[1]);\n for (var i = 2; i < arguments.length; i++)\n url += \"&args[]=\" + encodeURIComponent(arguments[i]);\n }\n return (\n \"Minified React error #\" +\n code +\n \"; visit \" +\n url +\n \" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"\n );\n}\nfunction isValidContainer(node) {\n return !(\n !node ||\n (1 !== node.nodeType && 9 !== node.nodeType && 11 !== node.nodeType)\n );\n}\nvar REACT_LEGACY_ELEMENT_TYPE = Symbol.for(\"react.element\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_PROVIDER_TYPE = Symbol.for(\"react.provider\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\");\nSymbol.for(\"react.scope\");\nSymbol.for(\"react.debug_trace_mode\");\nvar REACT_OFFSCREEN_TYPE = Symbol.for(\"react.offscreen\");\nSymbol.for(\"react.legacy_hidden\");\nSymbol.for(\"react.tracing_marker\");\nvar REACT_MEMO_CACHE_SENTINEL = Symbol.for(\"react.memo_cache_sentinel\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nfunction getIteratorFn(maybeIterable) {\n if (null === maybeIterable || \"object\" !== typeof maybeIterable) return null;\n maybeIterable =\n (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||\n maybeIterable[\"@@iterator\"];\n return \"function\" === typeof maybeIterable ? maybeIterable : null;\n}\nvar REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n}\nvar ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n assign = Object.assign,\n prefix,\n suffix;\nfunction describeBuiltInComponentFrame(name) {\n if (void 0 === prefix)\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = (match && match[1]) || \"\";\n suffix =\n -1 < x.stack.indexOf(\"\\n at\")\n ? \" ()\"\n : -1 < x.stack.indexOf(\"@\")\n ? \"@unknown:0:0\"\n : \"\";\n }\n return \"\\n\" + prefix + name + suffix;\n}\nvar reentry = !1;\nfunction describeNativeComponentFrame(fn, construct) {\n if (!fn || reentry) return \"\";\n reentry = !0;\n var previousPrepareStackTrace = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n var RunInRootFrame = {\n DetermineComponentFrameRoot: function () {\n try {\n if (construct) {\n var Fake = function () {\n throw Error();\n };\n Object.defineProperty(Fake.prototype, \"props\", {\n set: function () {\n throw Error();\n }\n });\n if (\"object\" === typeof Reflect && Reflect.construct) {\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n var control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x$1) {\n control = x$1;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x$2) {\n control = x$2;\n }\n (Fake = fn()) &&\n \"function\" === typeof Fake.catch &&\n Fake.catch(function () {});\n }\n } catch (sample) {\n if (sample && control && \"string\" === typeof sample.stack)\n return [sample.stack, control.stack];\n }\n return [null, null];\n }\n };\n RunInRootFrame.DetermineComponentFrameRoot.displayName =\n \"DetermineComponentFrameRoot\";\n var namePropDescriptor = Object.getOwnPropertyDescriptor(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\"\n );\n namePropDescriptor &&\n namePropDescriptor.configurable &&\n Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, \"name\", {\n value: \"DetermineComponentFrameRoot\"\n });\n try {\n var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),\n sampleStack = _RunInRootFrame$Deter[0],\n controlStack = _RunInRootFrame$Deter[1];\n if (sampleStack && controlStack) {\n var sampleLines = sampleStack.split(\"\\n\"),\n controlLines = controlStack.split(\"\\n\");\n for (\n namePropDescriptor = RunInRootFrame = 0;\n RunInRootFrame < sampleLines.length &&\n !sampleLines[RunInRootFrame].includes(\"DetermineComponentFrameRoot\");\n\n )\n RunInRootFrame++;\n for (\n ;\n namePropDescriptor < controlLines.length &&\n !controlLines[namePropDescriptor].includes(\n \"DetermineComponentFrameRoot\"\n );\n\n )\n namePropDescriptor++;\n if (\n RunInRootFrame === sampleLines.length ||\n namePropDescriptor === controlLines.length\n )\n for (\n RunInRootFrame = sampleLines.length - 1,\n namePropDescriptor = controlLines.length - 1;\n 1 <= RunInRootFrame &&\n 0 <= namePropDescriptor &&\n sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor];\n\n )\n namePropDescriptor--;\n for (\n ;\n 1 <= RunInRootFrame && 0 <= namePropDescriptor;\n RunInRootFrame--, namePropDescriptor--\n )\n if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) {\n if (1 !== RunInRootFrame || 1 !== namePropDescriptor) {\n do\n if (\n (RunInRootFrame--,\n namePropDescriptor--,\n 0 > namePropDescriptor ||\n sampleLines[RunInRootFrame] !==\n controlLines[namePropDescriptor])\n ) {\n var frame =\n \"\\n\" +\n sampleLines[RunInRootFrame].replace(\" at new \", \" at \");\n fn.displayName &&\n frame.includes(\"\") &&\n (frame = frame.replace(\"\", fn.displayName));\n return frame;\n }\n while (1 <= RunInRootFrame && 0 <= namePropDescriptor);\n }\n break;\n }\n }\n } finally {\n (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace);\n }\n return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : \"\")\n ? describeBuiltInComponentFrame(previousPrepareStackTrace)\n : \"\";\n}\nfunction describeFiber(fiber) {\n switch (fiber.tag) {\n case 26:\n case 27:\n case 5:\n return describeBuiltInComponentFrame(fiber.type);\n case 16:\n return describeBuiltInComponentFrame(\"Lazy\");\n case 13:\n return describeBuiltInComponentFrame(\"Suspense\");\n case 19:\n return describeBuiltInComponentFrame(\"SuspenseList\");\n case 0:\n case 15:\n return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber;\n case 11:\n return (\n (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber\n );\n case 1:\n return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber;\n default:\n return \"\";\n }\n}\nfunction getStackByFiberInDevAndProd(workInProgress) {\n try {\n var info = \"\";\n do\n (info += describeFiber(workInProgress)),\n (workInProgress = workInProgress.return);\n while (workInProgress);\n return info;\n } catch (x) {\n return \"\\nError generating stack: \" + x.message + \"\\n\" + x.stack;\n }\n}\nfunction getNearestMountedFiber(fiber) {\n var node = fiber,\n nearestMounted = fiber;\n if (fiber.alternate) for (; node.return; ) node = node.return;\n else {\n fiber = node;\n do\n (node = fiber),\n 0 !== (node.flags & 4098) && (nearestMounted = node.return),\n (fiber = node.return);\n while (fiber);\n }\n return 3 === node.tag ? nearestMounted : null;\n}\nfunction getSuspenseInstanceFromFiber(fiber) {\n if (13 === fiber.tag) {\n var suspenseState = fiber.memoizedState;\n null === suspenseState &&\n ((fiber = fiber.alternate),\n null !== fiber && (suspenseState = fiber.memoizedState));\n if (null !== suspenseState) return suspenseState.dehydrated;\n }\n return null;\n}\nfunction assertIsMounted(fiber) {\n if (getNearestMountedFiber(fiber) !== fiber)\n throw Error(formatProdErrorMessage(188));\n}\nfunction findCurrentFiberUsingSlowPath(fiber) {\n var alternate = fiber.alternate;\n if (!alternate) {\n alternate = getNearestMountedFiber(fiber);\n if (null === alternate) throw Error(formatProdErrorMessage(188));\n return alternate !== fiber ? null : fiber;\n }\n for (var a = fiber, b = alternate; ; ) {\n var parentA = a.return;\n if (null === parentA) break;\n var parentB = parentA.alternate;\n if (null === parentB) {\n b = parentA.return;\n if (null !== b) {\n a = b;\n continue;\n }\n break;\n }\n if (parentA.child === parentB.child) {\n for (parentB = parentA.child; parentB; ) {\n if (parentB === a) return assertIsMounted(parentA), fiber;\n if (parentB === b) return assertIsMounted(parentA), alternate;\n parentB = parentB.sibling;\n }\n throw Error(formatProdErrorMessage(188));\n }\n if (a.return !== b.return) (a = parentA), (b = parentB);\n else {\n for (var didFindChild = !1, child$3 = parentA.child; child$3; ) {\n if (child$3 === a) {\n didFindChild = !0;\n a = parentA;\n b = parentB;\n break;\n }\n if (child$3 === b) {\n didFindChild = !0;\n b = parentA;\n a = parentB;\n break;\n }\n child$3 = child$3.sibling;\n }\n if (!didFindChild) {\n for (child$3 = parentB.child; child$3; ) {\n if (child$3 === a) {\n didFindChild = !0;\n a = parentB;\n b = parentA;\n break;\n }\n if (child$3 === b) {\n didFindChild = !0;\n b = parentB;\n a = parentA;\n break;\n }\n child$3 = child$3.sibling;\n }\n if (!didFindChild) throw Error(formatProdErrorMessage(189));\n }\n }\n if (a.alternate !== b) throw Error(formatProdErrorMessage(190));\n }\n if (3 !== a.tag) throw Error(formatProdErrorMessage(188));\n return a.stateNode.current === a ? fiber : alternate;\n}\nfunction findCurrentHostFiberImpl(node) {\n var tag = node.tag;\n if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node;\n for (node = node.child; null !== node; ) {\n tag = findCurrentHostFiberImpl(node);\n if (null !== tag) return tag;\n node = node.sibling;\n }\n return null;\n}\nvar isArrayImpl = Array.isArray,\n ReactDOMSharedInternals =\n ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n sharedNotPendingObject = {\n pending: !1,\n data: null,\n method: null,\n action: null\n },\n valueStack = [],\n index = -1;\nfunction createCursor(defaultValue) {\n return { current: defaultValue };\n}\nfunction pop(cursor) {\n 0 > index ||\n ((cursor.current = valueStack[index]), (valueStack[index] = null), index--);\n}\nfunction push(cursor, value) {\n index++;\n valueStack[index] = cursor.current;\n cursor.current = value;\n}\nvar contextStackCursor = createCursor(null),\n contextFiberStackCursor = createCursor(null),\n rootInstanceStackCursor = createCursor(null),\n hostTransitionProviderCursor = createCursor(null);\nfunction pushHostContainer(fiber, nextRootInstance) {\n push(rootInstanceStackCursor, nextRootInstance);\n push(contextFiberStackCursor, fiber);\n push(contextStackCursor, null);\n fiber = nextRootInstance.nodeType;\n switch (fiber) {\n case 9:\n case 11:\n nextRootInstance = (nextRootInstance = nextRootInstance.documentElement)\n ? (nextRootInstance = nextRootInstance.namespaceURI)\n ? getOwnHostContext(nextRootInstance)\n : 0\n : 0;\n break;\n default:\n if (\n ((fiber = 8 === fiber ? nextRootInstance.parentNode : nextRootInstance),\n (nextRootInstance = fiber.tagName),\n (fiber = fiber.namespaceURI))\n )\n (fiber = getOwnHostContext(fiber)),\n (nextRootInstance = getChildHostContextProd(fiber, nextRootInstance));\n else\n switch (nextRootInstance) {\n case \"svg\":\n nextRootInstance = 1;\n break;\n case \"math\":\n nextRootInstance = 2;\n break;\n default:\n nextRootInstance = 0;\n }\n }\n pop(contextStackCursor);\n push(contextStackCursor, nextRootInstance);\n}\nfunction popHostContainer() {\n pop(contextStackCursor);\n pop(contextFiberStackCursor);\n pop(rootInstanceStackCursor);\n}\nfunction pushHostContext(fiber) {\n null !== fiber.memoizedState && push(hostTransitionProviderCursor, fiber);\n var context = contextStackCursor.current;\n var JSCompiler_inline_result = getChildHostContextProd(context, fiber.type);\n context !== JSCompiler_inline_result &&\n (push(contextFiberStackCursor, fiber),\n push(contextStackCursor, JSCompiler_inline_result));\n}\nfunction popHostContext(fiber) {\n contextFiberStackCursor.current === fiber &&\n (pop(contextStackCursor), pop(contextFiberStackCursor));\n hostTransitionProviderCursor.current === fiber &&\n (pop(hostTransitionProviderCursor),\n (HostTransitionContext._currentValue = sharedNotPendingObject));\n}\nvar hasOwnProperty = Object.prototype.hasOwnProperty,\n scheduleCallback$3 = Scheduler.unstable_scheduleCallback,\n cancelCallback$1 = Scheduler.unstable_cancelCallback,\n shouldYield = Scheduler.unstable_shouldYield,\n requestPaint = Scheduler.unstable_requestPaint,\n now = Scheduler.unstable_now,\n getCurrentPriorityLevel = Scheduler.unstable_getCurrentPriorityLevel,\n ImmediatePriority = Scheduler.unstable_ImmediatePriority,\n UserBlockingPriority = Scheduler.unstable_UserBlockingPriority,\n NormalPriority$1 = Scheduler.unstable_NormalPriority,\n LowPriority = Scheduler.unstable_LowPriority,\n IdlePriority = Scheduler.unstable_IdlePriority,\n log$1 = Scheduler.log,\n unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue,\n rendererID = null,\n injectedHook = null;\nfunction onCommitRoot(root) {\n if (injectedHook && \"function\" === typeof injectedHook.onCommitFiberRoot)\n try {\n injectedHook.onCommitFiberRoot(\n rendererID,\n root,\n void 0,\n 128 === (root.current.flags & 128)\n );\n } catch (err) {}\n}\nfunction setIsStrictModeForDevtools(newIsStrictMode) {\n \"function\" === typeof log$1 && unstable_setDisableYieldValue(newIsStrictMode);\n if (injectedHook && \"function\" === typeof injectedHook.setStrictMode)\n try {\n injectedHook.setStrictMode(rendererID, newIsStrictMode);\n } catch (err) {}\n}\nvar clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,\n log = Math.log,\n LN2 = Math.LN2;\nfunction clz32Fallback(x) {\n x >>>= 0;\n return 0 === x ? 32 : (31 - ((log(x) / LN2) | 0)) | 0;\n}\nvar nextTransitionLane = 128,\n nextRetryLane = 4194304;\nfunction getHighestPriorityLanes(lanes) {\n var pendingSyncLanes = lanes & 42;\n if (0 !== pendingSyncLanes) return pendingSyncLanes;\n switch (lanes & -lanes) {\n case 1:\n return 1;\n case 2:\n return 2;\n case 4:\n return 4;\n case 8:\n return 8;\n case 16:\n return 16;\n case 32:\n return 32;\n case 64:\n return 64;\n case 128:\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n return lanes & 4194176;\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n return lanes & 62914560;\n case 67108864:\n return 67108864;\n case 134217728:\n return 134217728;\n case 268435456:\n return 268435456;\n case 536870912:\n return 536870912;\n case 1073741824:\n return 0;\n default:\n return lanes;\n }\n}\nfunction getNextLanes(root, wipLanes) {\n var pendingLanes = root.pendingLanes;\n if (0 === pendingLanes) return 0;\n var nextLanes = 0,\n suspendedLanes = root.suspendedLanes,\n pingedLanes = root.pingedLanes,\n warmLanes = root.warmLanes;\n root = 0 !== root.finishedLanes;\n var nonIdlePendingLanes = pendingLanes & 134217727;\n 0 !== nonIdlePendingLanes\n ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),\n 0 !== pendingLanes\n ? (nextLanes = getHighestPriorityLanes(pendingLanes))\n : ((pingedLanes &= nonIdlePendingLanes),\n 0 !== pingedLanes\n ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n : root ||\n ((warmLanes = nonIdlePendingLanes & ~warmLanes),\n 0 !== warmLanes &&\n (nextLanes = getHighestPriorityLanes(warmLanes)))))\n : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),\n 0 !== nonIdlePendingLanes\n ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))\n : 0 !== pingedLanes\n ? (nextLanes = getHighestPriorityLanes(pingedLanes))\n : root ||\n ((warmLanes = pendingLanes & ~warmLanes),\n 0 !== warmLanes &&\n (nextLanes = getHighestPriorityLanes(warmLanes))));\n return 0 === nextLanes\n ? 0\n : 0 !== wipLanes &&\n wipLanes !== nextLanes &&\n 0 === (wipLanes & suspendedLanes) &&\n ((suspendedLanes = nextLanes & -nextLanes),\n (warmLanes = wipLanes & -wipLanes),\n suspendedLanes >= warmLanes ||\n (32 === suspendedLanes && 0 !== (warmLanes & 4194176)))\n ? wipLanes\n : nextLanes;\n}\nfunction computeExpirationTime(lane, currentTime) {\n switch (lane) {\n case 1:\n case 2:\n case 4:\n case 8:\n return currentTime + 250;\n case 16:\n case 32:\n case 64:\n case 128:\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n return currentTime + 5e3;\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n return -1;\n case 67108864:\n case 134217728:\n case 268435456:\n case 536870912:\n case 1073741824:\n return -1;\n default:\n return -1;\n }\n}\nfunction getLanesToRetrySynchronouslyOnError(root, originallyAttemptedLanes) {\n if (root.errorRecoveryDisabledLanes & originallyAttemptedLanes) return 0;\n root = root.pendingLanes & -536870913;\n return 0 !== root ? root : root & 536870912 ? 536870912 : 0;\n}\nfunction claimNextTransitionLane() {\n var lane = nextTransitionLane;\n nextTransitionLane <<= 1;\n 0 === (nextTransitionLane & 4194176) && (nextTransitionLane = 128);\n return lane;\n}\nfunction claimNextRetryLane() {\n var lane = nextRetryLane;\n nextRetryLane <<= 1;\n 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304);\n return lane;\n}\nfunction createLaneMap(initial) {\n for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);\n return laneMap;\n}\nfunction markRootFinished(\n root,\n finishedLanes,\n remainingLanes,\n spawnedLane,\n updatedLanes,\n suspendedRetryLanes\n) {\n var previouslyPendingLanes = root.pendingLanes;\n root.pendingLanes = remainingLanes;\n root.suspendedLanes = 0;\n root.pingedLanes = 0;\n root.warmLanes = 0;\n root.expiredLanes &= remainingLanes;\n root.entangledLanes &= remainingLanes;\n root.errorRecoveryDisabledLanes &= remainingLanes;\n root.shellSuspendCounter = 0;\n var entanglements = root.entanglements,\n expirationTimes = root.expirationTimes,\n hiddenUpdates = root.hiddenUpdates;\n for (\n remainingLanes = previouslyPendingLanes & ~remainingLanes;\n 0 < remainingLanes;\n\n ) {\n var index$8 = 31 - clz32(remainingLanes),\n lane = 1 << index$8;\n entanglements[index$8] = 0;\n expirationTimes[index$8] = -1;\n var hiddenUpdatesForLane = hiddenUpdates[index$8];\n if (null !== hiddenUpdatesForLane)\n for (\n hiddenUpdates[index$8] = null, index$8 = 0;\n index$8 < hiddenUpdatesForLane.length;\n index$8++\n ) {\n var update = hiddenUpdatesForLane[index$8];\n null !== update && (update.lane &= -536870913);\n }\n remainingLanes &= ~lane;\n }\n 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);\n 0 !== suspendedRetryLanes &&\n 0 === updatedLanes &&\n 0 !== root.tag &&\n (root.suspendedLanes |=\n suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));\n}\nfunction markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {\n root.pendingLanes |= spawnedLane;\n root.suspendedLanes &= ~spawnedLane;\n var spawnedLaneIndex = 31 - clz32(spawnedLane);\n root.entangledLanes |= spawnedLane;\n root.entanglements[spawnedLaneIndex] =\n root.entanglements[spawnedLaneIndex] |\n 1073741824 |\n (entangledLanes & 4194218);\n}\nfunction markRootEntangled(root, entangledLanes) {\n var rootEntangledLanes = (root.entangledLanes |= entangledLanes);\n for (root = root.entanglements; rootEntangledLanes; ) {\n var index$9 = 31 - clz32(rootEntangledLanes),\n lane = 1 << index$9;\n (lane & entangledLanes) | (root[index$9] & entangledLanes) &&\n (root[index$9] |= entangledLanes);\n rootEntangledLanes &= ~lane;\n }\n}\nfunction lanesToEventPriority(lanes) {\n lanes &= -lanes;\n return 2 < lanes\n ? 8 < lanes\n ? 0 !== (lanes & 134217727)\n ? 32\n : 268435456\n : 8\n : 2;\n}\nfunction resolveUpdatePriority() {\n var updatePriority = ReactDOMSharedInternals.p;\n if (0 !== updatePriority) return updatePriority;\n updatePriority = window.event;\n return void 0 === updatePriority ? 32 : getEventPriority(updatePriority.type);\n}\nfunction runWithPriority(priority, fn) {\n var previousPriority = ReactDOMSharedInternals.p;\n try {\n return (ReactDOMSharedInternals.p = priority), fn();\n } finally {\n ReactDOMSharedInternals.p = previousPriority;\n }\n}\nvar randomKey = Math.random().toString(36).slice(2),\n internalInstanceKey = \"__reactFiber$\" + randomKey,\n internalPropsKey = \"__reactProps$\" + randomKey,\n internalContainerInstanceKey = \"__reactContainer$\" + randomKey,\n internalEventHandlersKey = \"__reactEvents$\" + randomKey,\n internalEventHandlerListenersKey = \"__reactListeners$\" + randomKey,\n internalEventHandlesSetKey = \"__reactHandles$\" + randomKey,\n internalRootNodeResourcesKey = \"__reactResources$\" + randomKey,\n internalHoistableMarker = \"__reactMarker$\" + randomKey;\nfunction detachDeletedInstance(node) {\n delete node[internalInstanceKey];\n delete node[internalPropsKey];\n delete node[internalEventHandlersKey];\n delete node[internalEventHandlerListenersKey];\n delete node[internalEventHandlesSetKey];\n}\nfunction getClosestInstanceFromNode(targetNode) {\n var targetInst = targetNode[internalInstanceKey];\n if (targetInst) return targetInst;\n for (var parentNode = targetNode.parentNode; parentNode; ) {\n if (\n (targetInst =\n parentNode[internalContainerInstanceKey] ||\n parentNode[internalInstanceKey])\n ) {\n parentNode = targetInst.alternate;\n if (\n null !== targetInst.child ||\n (null !== parentNode && null !== parentNode.child)\n )\n for (\n targetNode = getParentSuspenseInstance(targetNode);\n null !== targetNode;\n\n ) {\n if ((parentNode = targetNode[internalInstanceKey])) return parentNode;\n targetNode = getParentSuspenseInstance(targetNode);\n }\n return targetInst;\n }\n targetNode = parentNode;\n parentNode = targetNode.parentNode;\n }\n return null;\n}\nfunction getInstanceFromNode(node) {\n if (\n (node = node[internalInstanceKey] || node[internalContainerInstanceKey])\n ) {\n var tag = node.tag;\n if (\n 5 === tag ||\n 6 === tag ||\n 13 === tag ||\n 26 === tag ||\n 27 === tag ||\n 3 === tag\n )\n return node;\n }\n return null;\n}\nfunction getNodeFromInstance(inst) {\n var tag = inst.tag;\n if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return inst.stateNode;\n throw Error(formatProdErrorMessage(33));\n}\nfunction getResourcesFromRoot(root) {\n var resources = root[internalRootNodeResourcesKey];\n resources ||\n (resources = root[internalRootNodeResourcesKey] =\n { hoistableStyles: new Map(), hoistableScripts: new Map() });\n return resources;\n}\nfunction markNodeAsHoistable(node) {\n node[internalHoistableMarker] = !0;\n}\nvar allNativeEvents = new Set(),\n registrationNameDependencies = {};\nfunction registerTwoPhaseEvent(registrationName, dependencies) {\n registerDirectEvent(registrationName, dependencies);\n registerDirectEvent(registrationName + \"Capture\", dependencies);\n}\nfunction registerDirectEvent(registrationName, dependencies) {\n registrationNameDependencies[registrationName] = dependencies;\n for (\n registrationName = 0;\n registrationName < dependencies.length;\n registrationName++\n )\n allNativeEvents.add(dependencies[registrationName]);\n}\nvar canUseDOM = !(\n \"undefined\" === typeof window ||\n \"undefined\" === typeof window.document ||\n \"undefined\" === typeof window.document.createElement\n ),\n VALID_ATTRIBUTE_NAME_REGEX = RegExp(\n \"^[:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD][:A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040]*$\"\n ),\n illegalAttributeNameCache = {},\n validatedAttributeNameCache = {};\nfunction isAttributeNameSafe(attributeName) {\n if (hasOwnProperty.call(validatedAttributeNameCache, attributeName))\n return !0;\n if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1;\n if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))\n return (validatedAttributeNameCache[attributeName] = !0);\n illegalAttributeNameCache[attributeName] = !0;\n return !1;\n}\nfunction setValueForAttribute(node, name, value) {\n if (isAttributeNameSafe(name))\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n node.removeAttribute(name);\n return;\n case \"boolean\":\n var prefix$11 = name.toLowerCase().slice(0, 5);\n if (\"data-\" !== prefix$11 && \"aria-\" !== prefix$11) {\n node.removeAttribute(name);\n return;\n }\n }\n node.setAttribute(name, \"\" + value);\n }\n}\nfunction setValueForKnownAttribute(node, name, value) {\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n case \"boolean\":\n node.removeAttribute(name);\n return;\n }\n node.setAttribute(name, \"\" + value);\n }\n}\nfunction setValueForNamespacedAttribute(node, namespace, name, value) {\n if (null === value) node.removeAttribute(name);\n else {\n switch (typeof value) {\n case \"undefined\":\n case \"function\":\n case \"symbol\":\n case \"boolean\":\n node.removeAttribute(name);\n return;\n }\n node.setAttributeNS(namespace, name, \"\" + value);\n }\n}\nfunction getToStringValue(value) {\n switch (typeof value) {\n case \"bigint\":\n case \"boolean\":\n case \"number\":\n case \"string\":\n case \"undefined\":\n return value;\n case \"object\":\n return value;\n default:\n return \"\";\n }\n}\nfunction isCheckable(elem) {\n var type = elem.type;\n return (\n (elem = elem.nodeName) &&\n \"input\" === elem.toLowerCase() &&\n (\"checkbox\" === type || \"radio\" === type)\n );\n}\nfunction trackValueOnNode(node) {\n var valueField = isCheckable(node) ? \"checked\" : \"value\",\n descriptor = Object.getOwnPropertyDescriptor(\n node.constructor.prototype,\n valueField\n ),\n currentValue = \"\" + node[valueField];\n if (\n !node.hasOwnProperty(valueField) &&\n \"undefined\" !== typeof descriptor &&\n \"function\" === typeof descriptor.get &&\n \"function\" === typeof descriptor.set\n ) {\n var get = descriptor.get,\n set = descriptor.set;\n Object.defineProperty(node, valueField, {\n configurable: !0,\n get: function () {\n return get.call(this);\n },\n set: function (value) {\n currentValue = \"\" + value;\n set.call(this, value);\n }\n });\n Object.defineProperty(node, valueField, {\n enumerable: descriptor.enumerable\n });\n return {\n getValue: function () {\n return currentValue;\n },\n setValue: function (value) {\n currentValue = \"\" + value;\n },\n stopTracking: function () {\n node._valueTracker = null;\n delete node[valueField];\n }\n };\n }\n}\nfunction track(node) {\n node._valueTracker || (node._valueTracker = trackValueOnNode(node));\n}\nfunction updateValueIfChanged(node) {\n if (!node) return !1;\n var tracker = node._valueTracker;\n if (!tracker) return !0;\n var lastValue = tracker.getValue();\n var value = \"\";\n node &&\n (value = isCheckable(node)\n ? node.checked\n ? \"true\"\n : \"false\"\n : node.value);\n node = value;\n return node !== lastValue ? (tracker.setValue(node), !0) : !1;\n}\nfunction getActiveElement(doc) {\n doc = doc || (\"undefined\" !== typeof document ? document : void 0);\n if (\"undefined\" === typeof doc) return null;\n try {\n return doc.activeElement || doc.body;\n } catch (e) {\n return doc.body;\n }\n}\nvar escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\\n\"\\\\]/g;\nfunction escapeSelectorAttributeValueInsideDoubleQuotes(value) {\n return value.replace(\n escapeSelectorAttributeValueInsideDoubleQuotesRegex,\n function (ch) {\n return \"\\\\\" + ch.charCodeAt(0).toString(16) + \" \";\n }\n );\n}\nfunction updateInput(\n element,\n value,\n defaultValue,\n lastDefaultValue,\n checked,\n defaultChecked,\n type,\n name\n) {\n element.name = \"\";\n null != type &&\n \"function\" !== typeof type &&\n \"symbol\" !== typeof type &&\n \"boolean\" !== typeof type\n ? (element.type = type)\n : element.removeAttribute(\"type\");\n if (null != value)\n if (\"number\" === type) {\n if ((0 === value && \"\" === element.value) || element.value != value)\n element.value = \"\" + getToStringValue(value);\n } else\n element.value !== \"\" + getToStringValue(value) &&\n (element.value = \"\" + getToStringValue(value));\n else\n (\"submit\" !== type && \"reset\" !== type) || element.removeAttribute(\"value\");\n null != value\n ? setDefaultValue(element, type, getToStringValue(value))\n : null != defaultValue\n ? setDefaultValue(element, type, getToStringValue(defaultValue))\n : null != lastDefaultValue && element.removeAttribute(\"value\");\n null == checked &&\n null != defaultChecked &&\n (element.defaultChecked = !!defaultChecked);\n null != checked &&\n (element.checked =\n checked && \"function\" !== typeof checked && \"symbol\" !== typeof checked);\n null != name &&\n \"function\" !== typeof name &&\n \"symbol\" !== typeof name &&\n \"boolean\" !== typeof name\n ? (element.name = \"\" + getToStringValue(name))\n : element.removeAttribute(\"name\");\n}\nfunction initInput(\n element,\n value,\n defaultValue,\n checked,\n defaultChecked,\n type,\n name,\n isHydrating\n) {\n null != type &&\n \"function\" !== typeof type &&\n \"symbol\" !== typeof type &&\n \"boolean\" !== typeof type &&\n (element.type = type);\n if (null != value || null != defaultValue) {\n if (\n !(\n (\"submit\" !== type && \"reset\" !== type) ||\n (void 0 !== value && null !== value)\n )\n )\n return;\n defaultValue =\n null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n value = null != value ? \"\" + getToStringValue(value) : defaultValue;\n isHydrating || value === element.value || (element.value = value);\n element.defaultValue = value;\n }\n checked = null != checked ? checked : defaultChecked;\n checked =\n \"function\" !== typeof checked && \"symbol\" !== typeof checked && !!checked;\n element.checked = isHydrating ? element.checked : !!checked;\n element.defaultChecked = !!checked;\n null != name &&\n \"function\" !== typeof name &&\n \"symbol\" !== typeof name &&\n \"boolean\" !== typeof name &&\n (element.name = name);\n}\nfunction setDefaultValue(node, type, value) {\n (\"number\" === type && getActiveElement(node.ownerDocument) === node) ||\n node.defaultValue === \"\" + value ||\n (node.defaultValue = \"\" + value);\n}\nfunction updateOptions(node, multiple, propValue, setDefaultSelected) {\n node = node.options;\n if (multiple) {\n multiple = {};\n for (var i = 0; i < propValue.length; i++)\n multiple[\"$\" + propValue[i]] = !0;\n for (propValue = 0; propValue < node.length; propValue++)\n (i = multiple.hasOwnProperty(\"$\" + node[propValue].value)),\n node[propValue].selected !== i && (node[propValue].selected = i),\n i && setDefaultSelected && (node[propValue].defaultSelected = !0);\n } else {\n propValue = \"\" + getToStringValue(propValue);\n multiple = null;\n for (i = 0; i < node.length; i++) {\n if (node[i].value === propValue) {\n node[i].selected = !0;\n setDefaultSelected && (node[i].defaultSelected = !0);\n return;\n }\n null !== multiple || node[i].disabled || (multiple = node[i]);\n }\n null !== multiple && (multiple.selected = !0);\n }\n}\nfunction updateTextarea(element, value, defaultValue) {\n if (\n null != value &&\n ((value = \"\" + getToStringValue(value)),\n value !== element.value && (element.value = value),\n null == defaultValue)\n ) {\n element.defaultValue !== value && (element.defaultValue = value);\n return;\n }\n element.defaultValue =\n null != defaultValue ? \"\" + getToStringValue(defaultValue) : \"\";\n}\nfunction initTextarea(element, value, defaultValue, children) {\n if (null == value) {\n if (null != children) {\n if (null != defaultValue) throw Error(formatProdErrorMessage(92));\n if (isArrayImpl(children)) {\n if (1 < children.length) throw Error(formatProdErrorMessage(93));\n children = children[0];\n }\n defaultValue = children;\n }\n null == defaultValue && (defaultValue = \"\");\n value = defaultValue;\n }\n defaultValue = getToStringValue(value);\n element.defaultValue = defaultValue;\n children = element.textContent;\n children === defaultValue &&\n \"\" !== children &&\n null !== children &&\n (element.value = children);\n}\nfunction setTextContent(node, text) {\n if (text) {\n var firstChild = node.firstChild;\n if (\n firstChild &&\n firstChild === node.lastChild &&\n 3 === firstChild.nodeType\n ) {\n firstChild.nodeValue = text;\n return;\n }\n }\n node.textContent = text;\n}\nvar unitlessNumbers = new Set(\n \"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(\n \" \"\n )\n);\nfunction setValueForStyle(style, styleName, value) {\n var isCustomProperty = 0 === styleName.indexOf(\"--\");\n null == value || \"boolean\" === typeof value || \"\" === value\n ? isCustomProperty\n ? style.setProperty(styleName, \"\")\n : \"float\" === styleName\n ? (style.cssFloat = \"\")\n : (style[styleName] = \"\")\n : isCustomProperty\n ? style.setProperty(styleName, value)\n : \"number\" !== typeof value ||\n 0 === value ||\n unitlessNumbers.has(styleName)\n ? \"float\" === styleName\n ? (style.cssFloat = value)\n : (style[styleName] = (\"\" + value).trim())\n : (style[styleName] = value + \"px\");\n}\nfunction setValueForStyles(node, styles, prevStyles) {\n if (null != styles && \"object\" !== typeof styles)\n throw Error(formatProdErrorMessage(62));\n node = node.style;\n if (null != prevStyles) {\n for (var styleName in prevStyles)\n !prevStyles.hasOwnProperty(styleName) ||\n (null != styles && styles.hasOwnProperty(styleName)) ||\n (0 === styleName.indexOf(\"--\")\n ? node.setProperty(styleName, \"\")\n : \"float\" === styleName\n ? (node.cssFloat = \"\")\n : (node[styleName] = \"\"));\n for (var styleName$17 in styles)\n (styleName = styles[styleName$17]),\n styles.hasOwnProperty(styleName$17) &&\n prevStyles[styleName$17] !== styleName &&\n setValueForStyle(node, styleName$17, styleName);\n } else\n for (var styleName$18 in styles)\n styles.hasOwnProperty(styleName$18) &&\n setValueForStyle(node, styleName$18, styles[styleName$18]);\n}\nfunction isCustomElement(tagName) {\n if (-1 === tagName.indexOf(\"-\")) return !1;\n switch (tagName) {\n case \"annotation-xml\":\n case \"color-profile\":\n case \"font-face\":\n case \"font-face-src\":\n case \"font-face-uri\":\n case \"font-face-format\":\n case \"font-face-name\":\n case \"missing-glyph\":\n return !1;\n default:\n return !0;\n }\n}\nvar aliases = new Map([\n [\"acceptCharset\", \"accept-charset\"],\n [\"htmlFor\", \"for\"],\n [\"httpEquiv\", \"http-equiv\"],\n [\"crossOrigin\", \"crossorigin\"],\n [\"accentHeight\", \"accent-height\"],\n [\"alignmentBaseline\", \"alignment-baseline\"],\n [\"arabicForm\", \"arabic-form\"],\n [\"baselineShift\", \"baseline-shift\"],\n [\"capHeight\", \"cap-height\"],\n [\"clipPath\", \"clip-path\"],\n [\"clipRule\", \"clip-rule\"],\n [\"colorInterpolation\", \"color-interpolation\"],\n [\"colorInterpolationFilters\", \"color-interpolation-filters\"],\n [\"colorProfile\", \"color-profile\"],\n [\"colorRendering\", \"color-rendering\"],\n [\"dominantBaseline\", \"dominant-baseline\"],\n [\"enableBackground\", \"enable-background\"],\n [\"fillOpacity\", \"fill-opacity\"],\n [\"fillRule\", \"fill-rule\"],\n [\"floodColor\", \"flood-color\"],\n [\"floodOpacity\", \"flood-opacity\"],\n [\"fontFamily\", \"font-family\"],\n [\"fontSize\", \"font-size\"],\n [\"fontSizeAdjust\", \"font-size-adjust\"],\n [\"fontStretch\", \"font-stretch\"],\n [\"fontStyle\", \"font-style\"],\n [\"fontVariant\", \"font-variant\"],\n [\"fontWeight\", \"font-weight\"],\n [\"glyphName\", \"glyph-name\"],\n [\"glyphOrientationHorizontal\", \"glyph-orientation-horizontal\"],\n [\"glyphOrientationVertical\", \"glyph-orientation-vertical\"],\n [\"horizAdvX\", \"horiz-adv-x\"],\n [\"horizOriginX\", \"horiz-origin-x\"],\n [\"imageRendering\", \"image-rendering\"],\n [\"letterSpacing\", \"letter-spacing\"],\n [\"lightingColor\", \"lighting-color\"],\n [\"markerEnd\", \"marker-end\"],\n [\"markerMid\", \"marker-mid\"],\n [\"markerStart\", \"marker-start\"],\n [\"overlinePosition\", \"overline-position\"],\n [\"overlineThickness\", \"overline-thickness\"],\n [\"paintOrder\", \"paint-order\"],\n [\"panose-1\", \"panose-1\"],\n [\"pointerEvents\", \"pointer-events\"],\n [\"renderingIntent\", \"rendering-intent\"],\n [\"shapeRendering\", \"shape-rendering\"],\n [\"stopColor\", \"stop-color\"],\n [\"stopOpacity\", \"stop-opacity\"],\n [\"strikethroughPosition\", \"strikethrough-position\"],\n [\"strikethroughThickness\", \"strikethrough-thickness\"],\n [\"strokeDasharray\", \"stroke-dasharray\"],\n [\"strokeDashoffset\", \"stroke-dashoffset\"],\n [\"strokeLinecap\", \"stroke-linecap\"],\n [\"strokeLinejoin\", \"stroke-linejoin\"],\n [\"strokeMiterlimit\", \"stroke-miterlimit\"],\n [\"strokeOpacity\", \"stroke-opacity\"],\n [\"strokeWidth\", \"stroke-width\"],\n [\"textAnchor\", \"text-anchor\"],\n [\"textDecoration\", \"text-decoration\"],\n [\"textRendering\", \"text-rendering\"],\n [\"transformOrigin\", \"transform-origin\"],\n [\"underlinePosition\", \"underline-position\"],\n [\"underlineThickness\", \"underline-thickness\"],\n [\"unicodeBidi\", \"unicode-bidi\"],\n [\"unicodeRange\", \"unicode-range\"],\n [\"unitsPerEm\", \"units-per-em\"],\n [\"vAlphabetic\", \"v-alphabetic\"],\n [\"vHanging\", \"v-hanging\"],\n [\"vIdeographic\", \"v-ideographic\"],\n [\"vMathematical\", \"v-mathematical\"],\n [\"vectorEffect\", \"vector-effect\"],\n [\"vertAdvY\", \"vert-adv-y\"],\n [\"vertOriginX\", \"vert-origin-x\"],\n [\"vertOriginY\", \"vert-origin-y\"],\n [\"wordSpacing\", \"word-spacing\"],\n [\"writingMode\", \"writing-mode\"],\n [\"xmlnsXlink\", \"xmlns:xlink\"],\n [\"xHeight\", \"x-height\"]\n ]),\n isJavaScriptProtocol =\n /^[\\u0000-\\u001F ]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i;\nfunction sanitizeURL(url) {\n return isJavaScriptProtocol.test(\"\" + url)\n ? \"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\"\n : url;\n}\nvar currentReplayingEvent = null;\nfunction getEventTarget(nativeEvent) {\n nativeEvent = nativeEvent.target || nativeEvent.srcElement || window;\n nativeEvent.correspondingUseElement &&\n (nativeEvent = nativeEvent.correspondingUseElement);\n return 3 === nativeEvent.nodeType ? nativeEvent.parentNode : nativeEvent;\n}\nvar restoreTarget = null,\n restoreQueue = null;\nfunction restoreStateOfTarget(target) {\n var internalInstance = getInstanceFromNode(target);\n if (internalInstance && (target = internalInstance.stateNode)) {\n var props = target[internalPropsKey] || null;\n a: switch (((target = internalInstance.stateNode), internalInstance.type)) {\n case \"input\":\n updateInput(\n target,\n props.value,\n props.defaultValue,\n props.defaultValue,\n props.checked,\n props.defaultChecked,\n props.type,\n props.name\n );\n internalInstance = props.name;\n if (\"radio\" === props.type && null != internalInstance) {\n for (props = target; props.parentNode; ) props = props.parentNode;\n props = props.querySelectorAll(\n 'input[name=\"' +\n escapeSelectorAttributeValueInsideDoubleQuotes(\n \"\" + internalInstance\n ) +\n '\"][type=\"radio\"]'\n );\n for (\n internalInstance = 0;\n internalInstance < props.length;\n internalInstance++\n ) {\n var otherNode = props[internalInstance];\n if (otherNode !== target && otherNode.form === target.form) {\n var otherProps = otherNode[internalPropsKey] || null;\n if (!otherProps) throw Error(formatProdErrorMessage(90));\n updateInput(\n otherNode,\n otherProps.value,\n otherProps.defaultValue,\n otherProps.defaultValue,\n otherProps.checked,\n otherProps.defaultChecked,\n otherProps.type,\n otherProps.name\n );\n }\n }\n for (\n internalInstance = 0;\n internalInstance < props.length;\n internalInstance++\n )\n (otherNode = props[internalInstance]),\n otherNode.form === target.form && updateValueIfChanged(otherNode);\n }\n break a;\n case \"textarea\":\n updateTextarea(target, props.value, props.defaultValue);\n break a;\n case \"select\":\n (internalInstance = props.value),\n null != internalInstance &&\n updateOptions(target, !!props.multiple, internalInstance, !1);\n }\n }\n}\nvar isInsideEventHandler = !1;\nfunction batchedUpdates$1(fn, a, b) {\n if (isInsideEventHandler) return fn(a, b);\n isInsideEventHandler = !0;\n try {\n var JSCompiler_inline_result = fn(a);\n return JSCompiler_inline_result;\n } finally {\n if (\n ((isInsideEventHandler = !1),\n null !== restoreTarget || null !== restoreQueue)\n )\n if (\n (flushSyncWork$1(),\n restoreTarget &&\n ((a = restoreTarget),\n (fn = restoreQueue),\n (restoreQueue = restoreTarget = null),\n restoreStateOfTarget(a),\n fn))\n )\n for (a = 0; a < fn.length; a++) restoreStateOfTarget(fn[a]);\n }\n}\nfunction getListener(inst, registrationName) {\n var stateNode = inst.stateNode;\n if (null === stateNode) return null;\n var props = stateNode[internalPropsKey] || null;\n if (null === props) return null;\n stateNode = props[registrationName];\n a: switch (registrationName) {\n case \"onClick\":\n case \"onClickCapture\":\n case \"onDoubleClick\":\n case \"onDoubleClickCapture\":\n case \"onMouseDown\":\n case \"onMouseDownCapture\":\n case \"onMouseMove\":\n case \"onMouseMoveCapture\":\n case \"onMouseUp\":\n case \"onMouseUpCapture\":\n case \"onMouseEnter\":\n (props = !props.disabled) ||\n ((inst = inst.type),\n (props = !(\n \"button\" === inst ||\n \"input\" === inst ||\n \"select\" === inst ||\n \"textarea\" === inst\n )));\n inst = !props;\n break a;\n default:\n inst = !1;\n }\n if (inst) return null;\n if (stateNode && \"function\" !== typeof stateNode)\n throw Error(\n formatProdErrorMessage(231, registrationName, typeof stateNode)\n );\n return stateNode;\n}\nvar passiveBrowserEventsSupported = !1;\nif (canUseDOM)\n try {\n var options = {};\n Object.defineProperty(options, \"passive\", {\n get: function () {\n passiveBrowserEventsSupported = !0;\n }\n });\n window.addEventListener(\"test\", options, options);\n window.removeEventListener(\"test\", options, options);\n } catch (e) {\n passiveBrowserEventsSupported = !1;\n }\nvar root = null,\n startText = null,\n fallbackText = null;\nfunction getData() {\n if (fallbackText) return fallbackText;\n var start,\n startValue = startText,\n startLength = startValue.length,\n end,\n endValue = \"value\" in root ? root.value : root.textContent,\n endLength = endValue.length;\n for (\n start = 0;\n start < startLength && startValue[start] === endValue[start];\n start++\n );\n var minEnd = startLength - start;\n for (\n end = 1;\n end <= minEnd &&\n startValue[startLength - end] === endValue[endLength - end];\n end++\n );\n return (fallbackText = endValue.slice(start, 1 < end ? 1 - end : void 0));\n}\nfunction getEventCharCode(nativeEvent) {\n var keyCode = nativeEvent.keyCode;\n \"charCode\" in nativeEvent\n ? ((nativeEvent = nativeEvent.charCode),\n 0 === nativeEvent && 13 === keyCode && (nativeEvent = 13))\n : (nativeEvent = keyCode);\n 10 === nativeEvent && (nativeEvent = 13);\n return 32 <= nativeEvent || 13 === nativeEvent ? nativeEvent : 0;\n}\nfunction functionThatReturnsTrue() {\n return !0;\n}\nfunction functionThatReturnsFalse() {\n return !1;\n}\nfunction createSyntheticEvent(Interface) {\n function SyntheticBaseEvent(\n reactName,\n reactEventType,\n targetInst,\n nativeEvent,\n nativeEventTarget\n ) {\n this._reactName = reactName;\n this._targetInst = targetInst;\n this.type = reactEventType;\n this.nativeEvent = nativeEvent;\n this.target = nativeEventTarget;\n this.currentTarget = null;\n for (var propName in Interface)\n Interface.hasOwnProperty(propName) &&\n ((reactName = Interface[propName]),\n (this[propName] = reactName\n ? reactName(nativeEvent)\n : nativeEvent[propName]));\n this.isDefaultPrevented = (\n null != nativeEvent.defaultPrevented\n ? nativeEvent.defaultPrevented\n : !1 === nativeEvent.returnValue\n )\n ? functionThatReturnsTrue\n : functionThatReturnsFalse;\n this.isPropagationStopped = functionThatReturnsFalse;\n return this;\n }\n assign(SyntheticBaseEvent.prototype, {\n preventDefault: function () {\n this.defaultPrevented = !0;\n var event = this.nativeEvent;\n event &&\n (event.preventDefault\n ? event.preventDefault()\n : \"unknown\" !== typeof event.returnValue && (event.returnValue = !1),\n (this.isDefaultPrevented = functionThatReturnsTrue));\n },\n stopPropagation: function () {\n var event = this.nativeEvent;\n event &&\n (event.stopPropagation\n ? event.stopPropagation()\n : \"unknown\" !== typeof event.cancelBubble &&\n (event.cancelBubble = !0),\n (this.isPropagationStopped = functionThatReturnsTrue));\n },\n persist: function () {},\n isPersistent: functionThatReturnsTrue\n });\n return SyntheticBaseEvent;\n}\nvar EventInterface = {\n eventPhase: 0,\n bubbles: 0,\n cancelable: 0,\n timeStamp: function (event) {\n return event.timeStamp || Date.now();\n },\n defaultPrevented: 0,\n isTrusted: 0\n },\n SyntheticEvent = createSyntheticEvent(EventInterface),\n UIEventInterface = assign({}, EventInterface, { view: 0, detail: 0 }),\n SyntheticUIEvent = createSyntheticEvent(UIEventInterface),\n lastMovementX,\n lastMovementY,\n lastMouseEvent,\n MouseEventInterface = assign({}, UIEventInterface, {\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n getModifierState: getEventModifierState,\n button: 0,\n buttons: 0,\n relatedTarget: function (event) {\n return void 0 === event.relatedTarget\n ? event.fromElement === event.srcElement\n ? event.toElement\n : event.fromElement\n : event.relatedTarget;\n },\n movementX: function (event) {\n if (\"movementX\" in event) return event.movementX;\n event !== lastMouseEvent &&\n (lastMouseEvent && \"mousemove\" === event.type\n ? ((lastMovementX = event.screenX - lastMouseEvent.screenX),\n (lastMovementY = event.screenY - lastMouseEvent.screenY))\n : (lastMovementY = lastMovementX = 0),\n (lastMouseEvent = event));\n return lastMovementX;\n },\n movementY: function (event) {\n return \"movementY\" in event ? event.movementY : lastMovementY;\n }\n }),\n SyntheticMouseEvent = createSyntheticEvent(MouseEventInterface),\n DragEventInterface = assign({}, MouseEventInterface, { dataTransfer: 0 }),\n SyntheticDragEvent = createSyntheticEvent(DragEventInterface),\n FocusEventInterface = assign({}, UIEventInterface, { relatedTarget: 0 }),\n SyntheticFocusEvent = createSyntheticEvent(FocusEventInterface),\n AnimationEventInterface = assign({}, EventInterface, {\n animationName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n }),\n SyntheticAnimationEvent = createSyntheticEvent(AnimationEventInterface),\n ClipboardEventInterface = assign({}, EventInterface, {\n clipboardData: function (event) {\n return \"clipboardData\" in event\n ? event.clipboardData\n : window.clipboardData;\n }\n }),\n SyntheticClipboardEvent = createSyntheticEvent(ClipboardEventInterface),\n CompositionEventInterface = assign({}, EventInterface, { data: 0 }),\n SyntheticCompositionEvent = createSyntheticEvent(CompositionEventInterface),\n normalizeKey = {\n Esc: \"Escape\",\n Spacebar: \" \",\n Left: \"ArrowLeft\",\n Up: \"ArrowUp\",\n Right: \"ArrowRight\",\n Down: \"ArrowDown\",\n Del: \"Delete\",\n Win: \"OS\",\n Menu: \"ContextMenu\",\n Apps: \"ContextMenu\",\n Scroll: \"ScrollLock\",\n MozPrintableKey: \"Unidentified\"\n },\n translateToKey = {\n 8: \"Backspace\",\n 9: \"Tab\",\n 12: \"Clear\",\n 13: \"Enter\",\n 16: \"Shift\",\n 17: \"Control\",\n 18: \"Alt\",\n 19: \"Pause\",\n 20: \"CapsLock\",\n 27: \"Escape\",\n 32: \" \",\n 33: \"PageUp\",\n 34: \"PageDown\",\n 35: \"End\",\n 36: \"Home\",\n 37: \"ArrowLeft\",\n 38: \"ArrowUp\",\n 39: \"ArrowRight\",\n 40: \"ArrowDown\",\n 45: \"Insert\",\n 46: \"Delete\",\n 112: \"F1\",\n 113: \"F2\",\n 114: \"F3\",\n 115: \"F4\",\n 116: \"F5\",\n 117: \"F6\",\n 118: \"F7\",\n 119: \"F8\",\n 120: \"F9\",\n 121: \"F10\",\n 122: \"F11\",\n 123: \"F12\",\n 144: \"NumLock\",\n 145: \"ScrollLock\",\n 224: \"Meta\"\n },\n modifierKeyToProp = {\n Alt: \"altKey\",\n Control: \"ctrlKey\",\n Meta: \"metaKey\",\n Shift: \"shiftKey\"\n };\nfunction modifierStateGetter(keyArg) {\n var nativeEvent = this.nativeEvent;\n return nativeEvent.getModifierState\n ? nativeEvent.getModifierState(keyArg)\n : (keyArg = modifierKeyToProp[keyArg])\n ? !!nativeEvent[keyArg]\n : !1;\n}\nfunction getEventModifierState() {\n return modifierStateGetter;\n}\nvar KeyboardEventInterface = assign({}, UIEventInterface, {\n key: function (nativeEvent) {\n if (nativeEvent.key) {\n var key = normalizeKey[nativeEvent.key] || nativeEvent.key;\n if (\"Unidentified\" !== key) return key;\n }\n return \"keypress\" === nativeEvent.type\n ? ((nativeEvent = getEventCharCode(nativeEvent)),\n 13 === nativeEvent ? \"Enter\" : String.fromCharCode(nativeEvent))\n : \"keydown\" === nativeEvent.type || \"keyup\" === nativeEvent.type\n ? translateToKey[nativeEvent.keyCode] || \"Unidentified\"\n : \"\";\n },\n code: 0,\n location: 0,\n ctrlKey: 0,\n shiftKey: 0,\n altKey: 0,\n metaKey: 0,\n repeat: 0,\n locale: 0,\n getModifierState: getEventModifierState,\n charCode: function (event) {\n return \"keypress\" === event.type ? getEventCharCode(event) : 0;\n },\n keyCode: function (event) {\n return \"keydown\" === event.type || \"keyup\" === event.type\n ? event.keyCode\n : 0;\n },\n which: function (event) {\n return \"keypress\" === event.type\n ? getEventCharCode(event)\n : \"keydown\" === event.type || \"keyup\" === event.type\n ? event.keyCode\n : 0;\n }\n }),\n SyntheticKeyboardEvent = createSyntheticEvent(KeyboardEventInterface),\n PointerEventInterface = assign({}, MouseEventInterface, {\n pointerId: 0,\n width: 0,\n height: 0,\n pressure: 0,\n tangentialPressure: 0,\n tiltX: 0,\n tiltY: 0,\n twist: 0,\n pointerType: 0,\n isPrimary: 0\n }),\n SyntheticPointerEvent = createSyntheticEvent(PointerEventInterface),\n TouchEventInterface = assign({}, UIEventInterface, {\n touches: 0,\n targetTouches: 0,\n changedTouches: 0,\n altKey: 0,\n metaKey: 0,\n ctrlKey: 0,\n shiftKey: 0,\n getModifierState: getEventModifierState\n }),\n SyntheticTouchEvent = createSyntheticEvent(TouchEventInterface),\n TransitionEventInterface = assign({}, EventInterface, {\n propertyName: 0,\n elapsedTime: 0,\n pseudoElement: 0\n }),\n SyntheticTransitionEvent = createSyntheticEvent(TransitionEventInterface),\n WheelEventInterface = assign({}, MouseEventInterface, {\n deltaX: function (event) {\n return \"deltaX\" in event\n ? event.deltaX\n : \"wheelDeltaX\" in event\n ? -event.wheelDeltaX\n : 0;\n },\n deltaY: function (event) {\n return \"deltaY\" in event\n ? event.deltaY\n : \"wheelDeltaY\" in event\n ? -event.wheelDeltaY\n : \"wheelDelta\" in event\n ? -event.wheelDelta\n : 0;\n },\n deltaZ: 0,\n deltaMode: 0\n }),\n SyntheticWheelEvent = createSyntheticEvent(WheelEventInterface),\n ToggleEventInterface = assign({}, EventInterface, {\n newState: 0,\n oldState: 0\n }),\n SyntheticToggleEvent = createSyntheticEvent(ToggleEventInterface),\n END_KEYCODES = [9, 13, 27, 32],\n canUseCompositionEvent = canUseDOM && \"CompositionEvent\" in window,\n documentMode = null;\ncanUseDOM &&\n \"documentMode\" in document &&\n (documentMode = document.documentMode);\nvar canUseTextInputEvent = canUseDOM && \"TextEvent\" in window && !documentMode,\n useFallbackCompositionData =\n canUseDOM &&\n (!canUseCompositionEvent ||\n (documentMode && 8 < documentMode && 11 >= documentMode)),\n SPACEBAR_CHAR = String.fromCharCode(32),\n hasSpaceKeypress = !1;\nfunction isFallbackCompositionEnd(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"keyup\":\n return -1 !== END_KEYCODES.indexOf(nativeEvent.keyCode);\n case \"keydown\":\n return 229 !== nativeEvent.keyCode;\n case \"keypress\":\n case \"mousedown\":\n case \"focusout\":\n return !0;\n default:\n return !1;\n }\n}\nfunction getDataFromCustomEvent(nativeEvent) {\n nativeEvent = nativeEvent.detail;\n return \"object\" === typeof nativeEvent && \"data\" in nativeEvent\n ? nativeEvent.data\n : null;\n}\nvar isComposing = !1;\nfunction getNativeBeforeInputChars(domEventName, nativeEvent) {\n switch (domEventName) {\n case \"compositionend\":\n return getDataFromCustomEvent(nativeEvent);\n case \"keypress\":\n if (32 !== nativeEvent.which) return null;\n hasSpaceKeypress = !0;\n return SPACEBAR_CHAR;\n case \"textInput\":\n return (\n (domEventName = nativeEvent.data),\n domEventName === SPACEBAR_CHAR && hasSpaceKeypress ? null : domEventName\n );\n default:\n return null;\n }\n}\nfunction getFallbackBeforeInputChars(domEventName, nativeEvent) {\n if (isComposing)\n return \"compositionend\" === domEventName ||\n (!canUseCompositionEvent &&\n isFallbackCompositionEnd(domEventName, nativeEvent))\n ? ((domEventName = getData()),\n (fallbackText = startText = root = null),\n (isComposing = !1),\n domEventName)\n : null;\n switch (domEventName) {\n case \"paste\":\n return null;\n case \"keypress\":\n if (\n !(nativeEvent.ctrlKey || nativeEvent.altKey || nativeEvent.metaKey) ||\n (nativeEvent.ctrlKey && nativeEvent.altKey)\n ) {\n if (nativeEvent.char && 1 < nativeEvent.char.length)\n return nativeEvent.char;\n if (nativeEvent.which) return String.fromCharCode(nativeEvent.which);\n }\n return null;\n case \"compositionend\":\n return useFallbackCompositionData && \"ko\" !== nativeEvent.locale\n ? null\n : nativeEvent.data;\n default:\n return null;\n }\n}\nvar supportedInputTypes = {\n color: !0,\n date: !0,\n datetime: !0,\n \"datetime-local\": !0,\n email: !0,\n month: !0,\n number: !0,\n password: !0,\n range: !0,\n search: !0,\n tel: !0,\n text: !0,\n time: !0,\n url: !0,\n week: !0\n};\nfunction isTextInputElement(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return \"input\" === nodeName\n ? !!supportedInputTypes[elem.type]\n : \"textarea\" === nodeName\n ? !0\n : !1;\n}\nfunction createAndAccumulateChangeEvent(\n dispatchQueue,\n inst,\n nativeEvent,\n target\n) {\n restoreTarget\n ? restoreQueue\n ? restoreQueue.push(target)\n : (restoreQueue = [target])\n : (restoreTarget = target);\n inst = accumulateTwoPhaseListeners(inst, \"onChange\");\n 0 < inst.length &&\n ((nativeEvent = new SyntheticEvent(\n \"onChange\",\n \"change\",\n null,\n nativeEvent,\n target\n )),\n dispatchQueue.push({ event: nativeEvent, listeners: inst }));\n}\nvar activeElement$1 = null,\n activeElementInst$1 = null;\nfunction runEventInBatch(dispatchQueue) {\n processDispatchQueue(dispatchQueue, 0);\n}\nfunction getInstIfValueChanged(targetInst) {\n var targetNode = getNodeFromInstance(targetInst);\n if (updateValueIfChanged(targetNode)) return targetInst;\n}\nfunction getTargetInstForChangeEvent(domEventName, targetInst) {\n if (\"change\" === domEventName) return targetInst;\n}\nvar isInputEventSupported = !1;\nif (canUseDOM) {\n var JSCompiler_inline_result$jscomp$279;\n if (canUseDOM) {\n var isSupported$jscomp$inline_415 = \"oninput\" in document;\n if (!isSupported$jscomp$inline_415) {\n var element$jscomp$inline_416 = document.createElement(\"div\");\n element$jscomp$inline_416.setAttribute(\"oninput\", \"return;\");\n isSupported$jscomp$inline_415 =\n \"function\" === typeof element$jscomp$inline_416.oninput;\n }\n JSCompiler_inline_result$jscomp$279 = isSupported$jscomp$inline_415;\n } else JSCompiler_inline_result$jscomp$279 = !1;\n isInputEventSupported =\n JSCompiler_inline_result$jscomp$279 &&\n (!document.documentMode || 9 < document.documentMode);\n}\nfunction stopWatchingForValueChange() {\n activeElement$1 &&\n (activeElement$1.detachEvent(\"onpropertychange\", handlePropertyChange),\n (activeElementInst$1 = activeElement$1 = null));\n}\nfunction handlePropertyChange(nativeEvent) {\n if (\n \"value\" === nativeEvent.propertyName &&\n getInstIfValueChanged(activeElementInst$1)\n ) {\n var dispatchQueue = [];\n createAndAccumulateChangeEvent(\n dispatchQueue,\n activeElementInst$1,\n nativeEvent,\n getEventTarget(nativeEvent)\n );\n batchedUpdates$1(runEventInBatch, dispatchQueue);\n }\n}\nfunction handleEventsForInputEventPolyfill(domEventName, target, targetInst) {\n \"focusin\" === domEventName\n ? (stopWatchingForValueChange(),\n (activeElement$1 = target),\n (activeElementInst$1 = targetInst),\n activeElement$1.attachEvent(\"onpropertychange\", handlePropertyChange))\n : \"focusout\" === domEventName && stopWatchingForValueChange();\n}\nfunction getTargetInstForInputEventPolyfill(domEventName) {\n if (\n \"selectionchange\" === domEventName ||\n \"keyup\" === domEventName ||\n \"keydown\" === domEventName\n )\n return getInstIfValueChanged(activeElementInst$1);\n}\nfunction getTargetInstForClickEvent(domEventName, targetInst) {\n if (\"click\" === domEventName) return getInstIfValueChanged(targetInst);\n}\nfunction getTargetInstForInputOrChangeEvent(domEventName, targetInst) {\n if (\"input\" === domEventName || \"change\" === domEventName)\n return getInstIfValueChanged(targetInst);\n}\nfunction is(x, y) {\n return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);\n}\nvar objectIs = \"function\" === typeof Object.is ? Object.is : is;\nfunction shallowEqual(objA, objB) {\n if (objectIs(objA, objB)) return !0;\n if (\n \"object\" !== typeof objA ||\n null === objA ||\n \"object\" !== typeof objB ||\n null === objB\n )\n return !1;\n var keysA = Object.keys(objA),\n keysB = Object.keys(objB);\n if (keysA.length !== keysB.length) return !1;\n for (keysB = 0; keysB < keysA.length; keysB++) {\n var currentKey = keysA[keysB];\n if (\n !hasOwnProperty.call(objB, currentKey) ||\n !objectIs(objA[currentKey], objB[currentKey])\n )\n return !1;\n }\n return !0;\n}\nfunction getLeafNode(node) {\n for (; node && node.firstChild; ) node = node.firstChild;\n return node;\n}\nfunction getNodeForCharacterOffset(root, offset) {\n var node = getLeafNode(root);\n root = 0;\n for (var nodeEnd; node; ) {\n if (3 === node.nodeType) {\n nodeEnd = root + node.textContent.length;\n if (root <= offset && nodeEnd >= offset)\n return { node: node, offset: offset - root };\n root = nodeEnd;\n }\n a: {\n for (; node; ) {\n if (node.nextSibling) {\n node = node.nextSibling;\n break a;\n }\n node = node.parentNode;\n }\n node = void 0;\n }\n node = getLeafNode(node);\n }\n}\nfunction containsNode(outerNode, innerNode) {\n return outerNode && innerNode\n ? outerNode === innerNode\n ? !0\n : outerNode && 3 === outerNode.nodeType\n ? !1\n : innerNode && 3 === innerNode.nodeType\n ? containsNode(outerNode, innerNode.parentNode)\n : \"contains\" in outerNode\n ? outerNode.contains(innerNode)\n : outerNode.compareDocumentPosition\n ? !!(outerNode.compareDocumentPosition(innerNode) & 16)\n : !1\n : !1;\n}\nfunction getActiveElementDeep(containerInfo) {\n var $jscomp$optchain$tmp175290385$1, $jscomp$nullish$tmp0;\n containerInfo =\n null !=\n ($jscomp$nullish$tmp0 =\n null == containerInfo\n ? void 0\n : null ==\n ($jscomp$optchain$tmp175290385$1 = containerInfo.ownerDocument)\n ? void 0\n : $jscomp$optchain$tmp175290385$1.defaultView)\n ? $jscomp$nullish$tmp0\n : window;\n for (\n $jscomp$optchain$tmp175290385$1 = getActiveElement(containerInfo.document);\n $jscomp$optchain$tmp175290385$1 instanceof containerInfo.HTMLIFrameElement;\n\n ) {\n try {\n var JSCompiler_inline_result =\n \"string\" ===\n typeof $jscomp$optchain$tmp175290385$1.contentWindow.location.href;\n } catch (err) {\n JSCompiler_inline_result = !1;\n }\n if (JSCompiler_inline_result)\n containerInfo = $jscomp$optchain$tmp175290385$1.contentWindow;\n else break;\n $jscomp$optchain$tmp175290385$1 = getActiveElement(containerInfo.document);\n }\n return $jscomp$optchain$tmp175290385$1;\n}\nfunction hasSelectionCapabilities(elem) {\n var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();\n return (\n nodeName &&\n ((\"input\" === nodeName &&\n (\"text\" === elem.type ||\n \"search\" === elem.type ||\n \"tel\" === elem.type ||\n \"url\" === elem.type ||\n \"password\" === elem.type)) ||\n \"textarea\" === nodeName ||\n \"true\" === elem.contentEditable)\n );\n}\nfunction restoreSelection(priorSelectionInformation, containerInfo) {\n var curFocusedElem = getActiveElementDeep(containerInfo);\n containerInfo = priorSelectionInformation.focusedElem;\n var priorSelectionRange = priorSelectionInformation.selectionRange;\n if (\n curFocusedElem !== containerInfo &&\n containerInfo &&\n containerInfo.ownerDocument &&\n containsNode(containerInfo.ownerDocument.documentElement, containerInfo)\n ) {\n if (null !== priorSelectionRange && hasSelectionCapabilities(containerInfo))\n if (\n ((priorSelectionInformation = priorSelectionRange.start),\n (curFocusedElem = priorSelectionRange.end),\n void 0 === curFocusedElem &&\n (curFocusedElem = priorSelectionInformation),\n \"selectionStart\" in containerInfo)\n )\n (containerInfo.selectionStart = priorSelectionInformation),\n (containerInfo.selectionEnd = Math.min(\n curFocusedElem,\n containerInfo.value.length\n ));\n else if (\n ((curFocusedElem =\n ((priorSelectionInformation =\n containerInfo.ownerDocument || document) &&\n priorSelectionInformation.defaultView) ||\n window),\n curFocusedElem.getSelection)\n ) {\n curFocusedElem = curFocusedElem.getSelection();\n var length = containerInfo.textContent.length,\n start = Math.min(priorSelectionRange.start, length);\n priorSelectionRange =\n void 0 === priorSelectionRange.end\n ? start\n : Math.min(priorSelectionRange.end, length);\n !curFocusedElem.extend &&\n start > priorSelectionRange &&\n ((length = priorSelectionRange),\n (priorSelectionRange = start),\n (start = length));\n length = getNodeForCharacterOffset(containerInfo, start);\n var endMarker = getNodeForCharacterOffset(\n containerInfo,\n priorSelectionRange\n );\n length &&\n endMarker &&\n (1 !== curFocusedElem.rangeCount ||\n curFocusedElem.anchorNode !== length.node ||\n curFocusedElem.anchorOffset !== length.offset ||\n curFocusedElem.focusNode !== endMarker.node ||\n curFocusedElem.focusOffset !== endMarker.offset) &&\n ((priorSelectionInformation =\n priorSelectionInformation.createRange()),\n priorSelectionInformation.setStart(length.node, length.offset),\n curFocusedElem.removeAllRanges(),\n start > priorSelectionRange\n ? (curFocusedElem.addRange(priorSelectionInformation),\n curFocusedElem.extend(endMarker.node, endMarker.offset))\n : (priorSelectionInformation.setEnd(\n endMarker.node,\n endMarker.offset\n ),\n curFocusedElem.addRange(priorSelectionInformation)));\n }\n priorSelectionInformation = [];\n for (\n curFocusedElem = containerInfo;\n (curFocusedElem = curFocusedElem.parentNode);\n\n )\n 1 === curFocusedElem.nodeType &&\n priorSelectionInformation.push({\n element: curFocusedElem,\n left: curFocusedElem.scrollLeft,\n top: curFocusedElem.scrollTop\n });\n \"function\" === typeof containerInfo.focus && containerInfo.focus();\n for (\n containerInfo = 0;\n containerInfo < priorSelectionInformation.length;\n containerInfo++\n )\n (curFocusedElem = priorSelectionInformation[containerInfo]),\n (curFocusedElem.element.scrollLeft = curFocusedElem.left),\n (curFocusedElem.element.scrollTop = curFocusedElem.top);\n }\n}\nvar skipSelectionChangeEvent =\n canUseDOM && \"documentMode\" in document && 11 >= document.documentMode,\n activeElement = null,\n activeElementInst = null,\n lastSelection = null,\n mouseDown = !1;\nfunction constructSelectEvent(dispatchQueue, nativeEvent, nativeEventTarget) {\n var doc =\n nativeEventTarget.window === nativeEventTarget\n ? nativeEventTarget.document\n : 9 === nativeEventTarget.nodeType\n ? nativeEventTarget\n : nativeEventTarget.ownerDocument;\n mouseDown ||\n null == activeElement ||\n activeElement !== getActiveElement(doc) ||\n ((doc = activeElement),\n \"selectionStart\" in doc && hasSelectionCapabilities(doc)\n ? (doc = { start: doc.selectionStart, end: doc.selectionEnd })\n : ((doc = (\n (doc.ownerDocument && doc.ownerDocument.defaultView) ||\n window\n ).getSelection()),\n (doc = {\n anchorNode: doc.anchorNode,\n anchorOffset: doc.anchorOffset,\n focusNode: doc.focusNode,\n focusOffset: doc.focusOffset\n })),\n (lastSelection && shallowEqual(lastSelection, doc)) ||\n ((lastSelection = doc),\n (doc = accumulateTwoPhaseListeners(activeElementInst, \"onSelect\")),\n 0 < doc.length &&\n ((nativeEvent = new SyntheticEvent(\n \"onSelect\",\n \"select\",\n null,\n nativeEvent,\n nativeEventTarget\n )),\n dispatchQueue.push({ event: nativeEvent, listeners: doc }),\n (nativeEvent.target = activeElement))));\n}\nfunction makePrefixMap(styleProp, eventName) {\n var prefixes = {};\n prefixes[styleProp.toLowerCase()] = eventName.toLowerCase();\n prefixes[\"Webkit\" + styleProp] = \"webkit\" + eventName;\n prefixes[\"Moz\" + styleProp] = \"moz\" + eventName;\n return prefixes;\n}\nvar vendorPrefixes = {\n animationend: makePrefixMap(\"Animation\", \"AnimationEnd\"),\n animationiteration: makePrefixMap(\"Animation\", \"AnimationIteration\"),\n animationstart: makePrefixMap(\"Animation\", \"AnimationStart\"),\n transitionrun: makePrefixMap(\"Transition\", \"TransitionRun\"),\n transitionstart: makePrefixMap(\"Transition\", \"TransitionStart\"),\n transitioncancel: makePrefixMap(\"Transition\", \"TransitionCancel\"),\n transitionend: makePrefixMap(\"Transition\", \"TransitionEnd\")\n },\n prefixedEventNames = {},\n style = {};\ncanUseDOM &&\n ((style = document.createElement(\"div\").style),\n \"AnimationEvent\" in window ||\n (delete vendorPrefixes.animationend.animation,\n delete vendorPrefixes.animationiteration.animation,\n delete vendorPrefixes.animationstart.animation),\n \"TransitionEvent\" in window ||\n delete vendorPrefixes.transitionend.transition);\nfunction getVendorPrefixedEventName(eventName) {\n if (prefixedEventNames[eventName]) return prefixedEventNames[eventName];\n if (!vendorPrefixes[eventName]) return eventName;\n var prefixMap = vendorPrefixes[eventName],\n styleProp;\n for (styleProp in prefixMap)\n if (prefixMap.hasOwnProperty(styleProp) && styleProp in style)\n return (prefixedEventNames[eventName] = prefixMap[styleProp]);\n return eventName;\n}\nvar ANIMATION_END = getVendorPrefixedEventName(\"animationend\"),\n ANIMATION_ITERATION = getVendorPrefixedEventName(\"animationiteration\"),\n ANIMATION_START = getVendorPrefixedEventName(\"animationstart\"),\n TRANSITION_RUN = getVendorPrefixedEventName(\"transitionrun\"),\n TRANSITION_START = getVendorPrefixedEventName(\"transitionstart\"),\n TRANSITION_CANCEL = getVendorPrefixedEventName(\"transitioncancel\"),\n TRANSITION_END = getVendorPrefixedEventName(\"transitionend\"),\n topLevelEventsToReactNames = new Map(),\n simpleEventPluginEvents =\n \"abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel\".split(\n \" \"\n );\nfunction registerSimpleEvent(domEventName, reactName) {\n topLevelEventsToReactNames.set(domEventName, reactName);\n registerTwoPhaseEvent(reactName, [domEventName]);\n}\nvar concurrentQueues = [],\n concurrentQueuesIndex = 0,\n concurrentlyUpdatedLanes = 0;\nfunction finishQueueingConcurrentUpdates() {\n for (\n var endIndex = concurrentQueuesIndex,\n i = (concurrentlyUpdatedLanes = concurrentQueuesIndex = 0);\n i < endIndex;\n\n ) {\n var fiber = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var queue = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var update = concurrentQueues[i];\n concurrentQueues[i++] = null;\n var lane = concurrentQueues[i];\n concurrentQueues[i++] = null;\n if (null !== queue && null !== update) {\n var pending = queue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n queue.pending = update;\n }\n 0 !== lane && markUpdateLaneFromFiberToRoot(fiber, update, lane);\n }\n}\nfunction enqueueUpdate$1(fiber, queue, update, lane) {\n concurrentQueues[concurrentQueuesIndex++] = fiber;\n concurrentQueues[concurrentQueuesIndex++] = queue;\n concurrentQueues[concurrentQueuesIndex++] = update;\n concurrentQueues[concurrentQueuesIndex++] = lane;\n concurrentlyUpdatedLanes |= lane;\n fiber.lanes |= lane;\n fiber = fiber.alternate;\n null !== fiber && (fiber.lanes |= lane);\n}\nfunction enqueueConcurrentHookUpdate(fiber, queue, update, lane) {\n enqueueUpdate$1(fiber, queue, update, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction enqueueConcurrentRenderForLane(fiber, lane) {\n enqueueUpdate$1(fiber, null, null, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction markUpdateLaneFromFiberToRoot(sourceFiber, update, lane) {\n sourceFiber.lanes |= lane;\n var alternate = sourceFiber.alternate;\n null !== alternate && (alternate.lanes |= lane);\n for (var isHidden = !1, parent = sourceFiber.return; null !== parent; )\n (parent.childLanes |= lane),\n (alternate = parent.alternate),\n null !== alternate && (alternate.childLanes |= lane),\n 22 === parent.tag &&\n ((sourceFiber = parent.stateNode),\n null === sourceFiber || sourceFiber._visibility & 1 || (isHidden = !0)),\n (sourceFiber = parent),\n (parent = parent.return);\n isHidden &&\n null !== update &&\n 3 === sourceFiber.tag &&\n ((parent = sourceFiber.stateNode),\n (isHidden = 31 - clz32(lane)),\n (parent = parent.hiddenUpdates),\n (sourceFiber = parent[isHidden]),\n null === sourceFiber\n ? (parent[isHidden] = [update])\n : sourceFiber.push(update),\n (update.lane = lane | 536870912));\n}\nfunction getRootForUpdatedFiber(sourceFiber) {\n throwIfInfiniteUpdateLoopDetected();\n for (var parent = sourceFiber.return; null !== parent; )\n (sourceFiber = parent), (parent = sourceFiber.return);\n return 3 === sourceFiber.tag ? sourceFiber.stateNode : null;\n}\nvar emptyContextObject = {},\n CapturedStacks = new WeakMap();\nfunction createCapturedValueAtFiber(value, source) {\n if (\"object\" === typeof value && null !== value) {\n var stack = CapturedStacks.get(value);\n \"string\" !== typeof stack &&\n ((stack = getStackByFiberInDevAndProd(source)),\n CapturedStacks.set(value, stack));\n } else stack = getStackByFiberInDevAndProd(source);\n return { value: value, source: source, stack: stack };\n}\nvar forkStack = [],\n forkStackIndex = 0,\n treeForkProvider = null,\n treeForkCount = 0,\n idStack = [],\n idStackIndex = 0,\n treeContextProvider = null,\n treeContextId = 1,\n treeContextOverflow = \"\";\nfunction pushTreeFork(workInProgress, totalChildren) {\n forkStack[forkStackIndex++] = treeForkCount;\n forkStack[forkStackIndex++] = treeForkProvider;\n treeForkProvider = workInProgress;\n treeForkCount = totalChildren;\n}\nfunction pushTreeId(workInProgress, totalChildren, index) {\n idStack[idStackIndex++] = treeContextId;\n idStack[idStackIndex++] = treeContextOverflow;\n idStack[idStackIndex++] = treeContextProvider;\n treeContextProvider = workInProgress;\n var baseIdWithLeadingBit = treeContextId;\n workInProgress = treeContextOverflow;\n var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;\n baseIdWithLeadingBit &= ~(1 << baseLength);\n index += 1;\n var length = 32 - clz32(totalChildren) + baseLength;\n if (30 < length) {\n var numberOfOverflowBits = baseLength - (baseLength % 5);\n length = (\n baseIdWithLeadingBit &\n ((1 << numberOfOverflowBits) - 1)\n ).toString(32);\n baseIdWithLeadingBit >>= numberOfOverflowBits;\n baseLength -= numberOfOverflowBits;\n treeContextId =\n (1 << (32 - clz32(totalChildren) + baseLength)) |\n (index << baseLength) |\n baseIdWithLeadingBit;\n treeContextOverflow = length + workInProgress;\n } else\n (treeContextId =\n (1 << length) | (index << baseLength) | baseIdWithLeadingBit),\n (treeContextOverflow = workInProgress);\n}\nfunction pushMaterializedTreeId(workInProgress) {\n null !== workInProgress.return &&\n (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));\n}\nfunction popTreeContext(workInProgress) {\n for (; workInProgress === treeForkProvider; )\n (treeForkProvider = forkStack[--forkStackIndex]),\n (forkStack[forkStackIndex] = null),\n (treeForkCount = forkStack[--forkStackIndex]),\n (forkStack[forkStackIndex] = null);\n for (; workInProgress === treeContextProvider; )\n (treeContextProvider = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null),\n (treeContextOverflow = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null),\n (treeContextId = idStack[--idStackIndex]),\n (idStack[idStackIndex] = null);\n}\nvar hydrationParentFiber = null,\n nextHydratableInstance = null,\n isHydrating = !1,\n hydrationErrors = null,\n rootOrSingletonContext = !1,\n HydrationMismatchException = Error(formatProdErrorMessage(519));\nfunction throwOnHydrationMismatch(fiber) {\n var error = Error(formatProdErrorMessage(418, \"\"));\n queueHydrationError(createCapturedValueAtFiber(error, fiber));\n throw HydrationMismatchException;\n}\nfunction prepareToHydrateHostInstance(fiber) {\n var instance = fiber.stateNode,\n type = fiber.type,\n props = fiber.memoizedProps;\n instance[internalInstanceKey] = fiber;\n instance[internalPropsKey] = props;\n switch (type) {\n case \"dialog\":\n listenToNonDelegatedEvent(\"cancel\", instance);\n listenToNonDelegatedEvent(\"close\", instance);\n break;\n case \"iframe\":\n case \"object\":\n case \"embed\":\n listenToNonDelegatedEvent(\"load\", instance);\n break;\n case \"video\":\n case \"audio\":\n for (type = 0; type < mediaEventTypes.length; type++)\n listenToNonDelegatedEvent(mediaEventTypes[type], instance);\n break;\n case \"source\":\n listenToNonDelegatedEvent(\"error\", instance);\n break;\n case \"img\":\n case \"image\":\n case \"link\":\n listenToNonDelegatedEvent(\"error\", instance);\n listenToNonDelegatedEvent(\"load\", instance);\n break;\n case \"details\":\n listenToNonDelegatedEvent(\"toggle\", instance);\n break;\n case \"input\":\n listenToNonDelegatedEvent(\"invalid\", instance);\n initInput(\n instance,\n props.value,\n props.defaultValue,\n props.checked,\n props.defaultChecked,\n props.type,\n props.name,\n !0\n );\n track(instance);\n break;\n case \"select\":\n listenToNonDelegatedEvent(\"invalid\", instance);\n break;\n case \"textarea\":\n listenToNonDelegatedEvent(\"invalid\", instance),\n initTextarea(instance, props.value, props.defaultValue, props.children),\n track(instance);\n }\n type = props.children;\n (\"string\" !== typeof type &&\n \"number\" !== typeof type &&\n \"bigint\" !== typeof type) ||\n instance.textContent === \"\" + type ||\n !0 === props.suppressHydrationWarning ||\n checkForUnmatchedText(instance.textContent, type)\n ? (null != props.popover &&\n (listenToNonDelegatedEvent(\"beforetoggle\", instance),\n listenToNonDelegatedEvent(\"toggle\", instance)),\n null != props.onScroll && listenToNonDelegatedEvent(\"scroll\", instance),\n null != props.onScrollEnd &&\n listenToNonDelegatedEvent(\"scrollend\", instance),\n null != props.onClick && (instance.onclick = noop$1),\n (instance = !0))\n : (instance = !1);\n instance || throwOnHydrationMismatch(fiber);\n}\nfunction popToNextHostParent(fiber) {\n for (hydrationParentFiber = fiber.return; hydrationParentFiber; )\n switch (hydrationParentFiber.tag) {\n case 3:\n case 27:\n rootOrSingletonContext = !0;\n return;\n case 5:\n case 13:\n rootOrSingletonContext = !1;\n return;\n default:\n hydrationParentFiber = hydrationParentFiber.return;\n }\n}\nfunction popHydrationState(fiber) {\n if (fiber !== hydrationParentFiber) return !1;\n if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;\n var shouldClear = !1,\n JSCompiler_temp;\n if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {\n if ((JSCompiler_temp = 5 === fiber.tag))\n (JSCompiler_temp = fiber.type),\n (JSCompiler_temp =\n !(\"form\" !== JSCompiler_temp && \"button\" !== JSCompiler_temp) ||\n shouldSetTextContent(fiber.type, fiber.memoizedProps));\n JSCompiler_temp = !JSCompiler_temp;\n }\n JSCompiler_temp && (shouldClear = !0);\n shouldClear && nextHydratableInstance && throwOnHydrationMismatch(fiber);\n popToNextHostParent(fiber);\n if (13 === fiber.tag) {\n fiber = fiber.memoizedState;\n fiber = null !== fiber ? fiber.dehydrated : null;\n if (!fiber) throw Error(formatProdErrorMessage(317));\n a: {\n fiber = fiber.nextSibling;\n for (shouldClear = 0; fiber; ) {\n if (8 === fiber.nodeType)\n if (((JSCompiler_temp = fiber.data), \"/$\" === JSCompiler_temp)) {\n if (0 === shouldClear) {\n nextHydratableInstance = getNextHydratable(fiber.nextSibling);\n break a;\n }\n shouldClear--;\n } else\n (\"$\" !== JSCompiler_temp &&\n \"$!\" !== JSCompiler_temp &&\n \"$?\" !== JSCompiler_temp) ||\n shouldClear++;\n fiber = fiber.nextSibling;\n }\n nextHydratableInstance = null;\n }\n } else\n nextHydratableInstance = hydrationParentFiber\n ? getNextHydratable(fiber.stateNode.nextSibling)\n : null;\n return !0;\n}\nfunction resetHydrationState() {\n nextHydratableInstance = hydrationParentFiber = null;\n isHydrating = !1;\n}\nfunction queueHydrationError(error) {\n null === hydrationErrors\n ? (hydrationErrors = [error])\n : hydrationErrors.push(error);\n}\nvar SuspenseException = Error(formatProdErrorMessage(460)),\n SuspenseyCommitException = Error(formatProdErrorMessage(474)),\n noopSuspenseyCommitThenable = { then: function () {} };\nfunction isThenableResolved(thenable) {\n thenable = thenable.status;\n return \"fulfilled\" === thenable || \"rejected\" === thenable;\n}\nfunction noop$3() {}\nfunction trackUsedThenable(thenableState, thenable, index) {\n index = thenableState[index];\n void 0 === index\n ? thenableState.push(thenable)\n : index !== thenable && (thenable.then(noop$3, noop$3), (thenable = index));\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n thenableState = thenable.reason;\n if (thenableState === SuspenseException)\n throw Error(formatProdErrorMessage(483));\n throw thenableState;\n default:\n if (\"string\" === typeof thenable.status) thenable.then(noop$3, noop$3);\n else {\n thenableState = workInProgressRoot;\n if (null !== thenableState && 100 < thenableState.shellSuspendCounter)\n throw Error(formatProdErrorMessage(482));\n thenableState = thenable;\n thenableState.status = \"pending\";\n thenableState.then(\n function (fulfilledValue) {\n if (\"pending\" === thenable.status) {\n var fulfilledThenable = thenable;\n fulfilledThenable.status = \"fulfilled\";\n fulfilledThenable.value = fulfilledValue;\n }\n },\n function (error) {\n if (\"pending\" === thenable.status) {\n var rejectedThenable = thenable;\n rejectedThenable.status = \"rejected\";\n rejectedThenable.reason = error;\n }\n }\n );\n }\n switch (thenable.status) {\n case \"fulfilled\":\n return thenable.value;\n case \"rejected\":\n thenableState = thenable.reason;\n if (thenableState === SuspenseException)\n throw Error(formatProdErrorMessage(483));\n throw thenableState;\n }\n suspendedThenable = thenable;\n throw SuspenseException;\n }\n}\nvar suspendedThenable = null;\nfunction getSuspendedThenable() {\n if (null === suspendedThenable) throw Error(formatProdErrorMessage(459));\n var thenable = suspendedThenable;\n suspendedThenable = null;\n return thenable;\n}\nvar thenableState$1 = null,\n thenableIndexCounter$1 = 0;\nfunction unwrapThenable(thenable) {\n var index = thenableIndexCounter$1;\n thenableIndexCounter$1 += 1;\n null === thenableState$1 && (thenableState$1 = []);\n return trackUsedThenable(thenableState$1, thenable, index);\n}\nfunction coerceRef(returnFiber, current, workInProgress, element) {\n returnFiber = element.props.ref;\n workInProgress.ref = void 0 !== returnFiber ? returnFiber : null;\n}\nfunction throwOnInvalidObjectType(returnFiber, newChild) {\n if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE)\n throw Error(formatProdErrorMessage(525));\n returnFiber = Object.prototype.toString.call(newChild);\n throw Error(\n formatProdErrorMessage(\n 31,\n \"[object Object]\" === returnFiber\n ? \"object with keys {\" + Object.keys(newChild).join(\", \") + \"}\"\n : returnFiber\n )\n );\n}\nfunction resolveLazy(lazyType) {\n var init = lazyType._init;\n return init(lazyType._payload);\n}\nfunction createChildReconciler(shouldTrackSideEffects) {\n function deleteChild(returnFiber, childToDelete) {\n if (shouldTrackSideEffects) {\n var deletions = returnFiber.deletions;\n null === deletions\n ? ((returnFiber.deletions = [childToDelete]), (returnFiber.flags |= 16))\n : deletions.push(childToDelete);\n }\n }\n function deleteRemainingChildren(returnFiber, currentFirstChild) {\n if (!shouldTrackSideEffects) return null;\n for (; null !== currentFirstChild; )\n deleteChild(returnFiber, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return null;\n }\n function mapRemainingChildren(currentFirstChild) {\n for (var existingChildren = new Map(); null !== currentFirstChild; )\n null !== currentFirstChild.key\n ? existingChildren.set(currentFirstChild.key, currentFirstChild)\n : existingChildren.set(currentFirstChild.index, currentFirstChild),\n (currentFirstChild = currentFirstChild.sibling);\n return existingChildren;\n }\n function useFiber(fiber, pendingProps) {\n fiber = createWorkInProgress(fiber, pendingProps);\n fiber.index = 0;\n fiber.sibling = null;\n return fiber;\n }\n function placeChild(newFiber, lastPlacedIndex, newIndex) {\n newFiber.index = newIndex;\n if (!shouldTrackSideEffects)\n return (newFiber.flags |= 1048576), lastPlacedIndex;\n newIndex = newFiber.alternate;\n if (null !== newIndex)\n return (\n (newIndex = newIndex.index),\n newIndex < lastPlacedIndex\n ? ((newFiber.flags |= 33554434), lastPlacedIndex)\n : newIndex\n );\n newFiber.flags |= 33554434;\n return lastPlacedIndex;\n }\n function placeSingleChild(newFiber) {\n shouldTrackSideEffects &&\n null === newFiber.alternate &&\n (newFiber.flags |= 33554434);\n return newFiber;\n }\n function updateTextNode(returnFiber, current, textContent, lanes) {\n if (null === current || 6 !== current.tag)\n return (\n (current = createFiberFromText(textContent, returnFiber.mode, lanes)),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, textContent);\n current.return = returnFiber;\n return current;\n }\n function updateElement(returnFiber, current, element, lanes) {\n var elementType = element.type;\n if (elementType === REACT_FRAGMENT_TYPE)\n return updateFragment(\n returnFiber,\n current,\n element.props.children,\n lanes,\n element.key\n );\n if (\n null !== current &&\n (current.elementType === elementType ||\n (\"object\" === typeof elementType &&\n null !== elementType &&\n elementType.$$typeof === REACT_LAZY_TYPE &&\n resolveLazy(elementType) === current.type))\n )\n return (\n (lanes = useFiber(current, element.props)),\n coerceRef(returnFiber, current, lanes, element),\n (lanes.return = returnFiber),\n lanes\n );\n lanes = createFiberFromTypeAndProps(\n element.type,\n element.key,\n element.props,\n null,\n returnFiber.mode,\n lanes\n );\n coerceRef(returnFiber, current, lanes, element);\n lanes.return = returnFiber;\n return lanes;\n }\n function updatePortal(returnFiber, current, portal, lanes) {\n if (\n null === current ||\n 4 !== current.tag ||\n current.stateNode.containerInfo !== portal.containerInfo ||\n current.stateNode.implementation !== portal.implementation\n )\n return (\n (current = createFiberFromPortal(portal, returnFiber.mode, lanes)),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, portal.children || []);\n current.return = returnFiber;\n return current;\n }\n function updateFragment(returnFiber, current, fragment, lanes, key) {\n if (null === current || 7 !== current.tag)\n return (\n (current = createFiberFromFragment(\n fragment,\n returnFiber.mode,\n lanes,\n key\n )),\n (current.return = returnFiber),\n current\n );\n current = useFiber(current, fragment);\n current.return = returnFiber;\n return current;\n }\n function createChild(returnFiber, newChild, lanes) {\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return (\n (newChild = createFiberFromText(\n \"\" + newChild,\n returnFiber.mode,\n lanes\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (lanes = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n lanes\n )),\n coerceRef(returnFiber, null, lanes, newChild),\n (lanes.return = returnFiber),\n lanes\n );\n case REACT_PORTAL_TYPE:\n return (\n (newChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n lanes\n )),\n (newChild.return = returnFiber),\n newChild\n );\n case REACT_LAZY_TYPE:\n var init = newChild._init;\n newChild = init(newChild._payload);\n return createChild(returnFiber, newChild, lanes);\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return (\n (newChild = createFiberFromFragment(\n newChild,\n returnFiber.mode,\n lanes,\n null\n )),\n (newChild.return = returnFiber),\n newChild\n );\n if (\"function\" === typeof newChild.then)\n return createChild(returnFiber, unwrapThenable(newChild), lanes);\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return createChild(\n returnFiber,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateSlot(returnFiber, oldFiber, newChild, lanes) {\n var key = null !== oldFiber ? oldFiber.key : null;\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return null !== key\n ? null\n : updateTextNode(returnFiber, oldFiber, \"\" + newChild, lanes);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return newChild.key === key\n ? updateElement(returnFiber, oldFiber, newChild, lanes)\n : null;\n case REACT_PORTAL_TYPE:\n return newChild.key === key\n ? updatePortal(returnFiber, oldFiber, newChild, lanes)\n : null;\n case REACT_LAZY_TYPE:\n return (\n (key = newChild._init),\n (newChild = key(newChild._payload)),\n updateSlot(returnFiber, oldFiber, newChild, lanes)\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return null !== key\n ? null\n : updateFragment(returnFiber, oldFiber, newChild, lanes, null);\n if (\"function\" === typeof newChild.then)\n return updateSlot(\n returnFiber,\n oldFiber,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return updateSlot(\n returnFiber,\n oldFiber,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n lanes\n ) {\n if (\n (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n )\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateTextNode(returnFiber, existingChildren, \"\" + newChild, lanes)\n );\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updateElement(returnFiber, existingChildren, newChild, lanes)\n );\n case REACT_PORTAL_TYPE:\n return (\n (existingChildren =\n existingChildren.get(\n null === newChild.key ? newIdx : newChild.key\n ) || null),\n updatePortal(returnFiber, existingChildren, newChild, lanes)\n );\n case REACT_LAZY_TYPE:\n var init = newChild._init;\n newChild = init(newChild._payload);\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n newChild,\n lanes\n );\n }\n if (isArrayImpl(newChild) || getIteratorFn(newChild))\n return (\n (existingChildren = existingChildren.get(newIdx) || null),\n updateFragment(returnFiber, existingChildren, newChild, lanes, null)\n );\n if (\"function\" === typeof newChild.then)\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return updateFromMap(\n existingChildren,\n returnFiber,\n newIdx,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return null;\n }\n function reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChildren,\n lanes\n ) {\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null;\n null !== oldFiber && newIdx < newChildren.length;\n newIdx++\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(\n returnFiber,\n oldFiber,\n newChildren[newIdx],\n lanes\n );\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (newIdx === newChildren.length)\n return (\n deleteRemainingChildren(returnFiber, oldFiber),\n isHydrating && pushTreeFork(returnFiber, newIdx),\n resultingFirstChild\n );\n if (null === oldFiber) {\n for (; newIdx < newChildren.length; newIdx++)\n (oldFiber = createChild(returnFiber, newChildren[newIdx], lanes)),\n null !== oldFiber &&\n ((currentFirstChild = placeChild(\n oldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = oldFiber)\n : (previousNewFiber.sibling = oldFiber),\n (previousNewFiber = oldFiber));\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(oldFiber);\n newIdx < newChildren.length;\n newIdx++\n )\n (nextOldFiber = updateFromMap(\n oldFiber,\n returnFiber,\n newIdx,\n newChildren[newIdx],\n lanes\n )),\n null !== nextOldFiber &&\n (shouldTrackSideEffects &&\n null !== nextOldFiber.alternate &&\n oldFiber.delete(\n null === nextOldFiber.key ? newIdx : nextOldFiber.key\n ),\n (currentFirstChild = placeChild(\n nextOldFiber,\n currentFirstChild,\n newIdx\n )),\n null === previousNewFiber\n ? (resultingFirstChild = nextOldFiber)\n : (previousNewFiber.sibling = nextOldFiber),\n (previousNewFiber = nextOldFiber));\n shouldTrackSideEffects &&\n oldFiber.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n function reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChildren,\n lanes\n ) {\n if (null == newChildren) throw Error(formatProdErrorMessage(151));\n for (\n var resultingFirstChild = null,\n previousNewFiber = null,\n oldFiber = currentFirstChild,\n newIdx = (currentFirstChild = 0),\n nextOldFiber = null,\n step = newChildren.next();\n null !== oldFiber && !step.done;\n newIdx++, step = newChildren.next()\n ) {\n oldFiber.index > newIdx\n ? ((nextOldFiber = oldFiber), (oldFiber = null))\n : (nextOldFiber = oldFiber.sibling);\n var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);\n if (null === newFiber) {\n null === oldFiber && (oldFiber = nextOldFiber);\n break;\n }\n shouldTrackSideEffects &&\n oldFiber &&\n null === newFiber.alternate &&\n deleteChild(returnFiber, oldFiber);\n currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);\n null === previousNewFiber\n ? (resultingFirstChild = newFiber)\n : (previousNewFiber.sibling = newFiber);\n previousNewFiber = newFiber;\n oldFiber = nextOldFiber;\n }\n if (step.done)\n return (\n deleteRemainingChildren(returnFiber, oldFiber),\n isHydrating && pushTreeFork(returnFiber, newIdx),\n resultingFirstChild\n );\n if (null === oldFiber) {\n for (; !step.done; newIdx++, step = newChildren.next())\n (step = createChild(returnFiber, step.value, lanes)),\n null !== step &&\n ((currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n for (\n oldFiber = mapRemainingChildren(oldFiber);\n !step.done;\n newIdx++, step = newChildren.next()\n )\n (step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes)),\n null !== step &&\n (shouldTrackSideEffects &&\n null !== step.alternate &&\n oldFiber.delete(null === step.key ? newIdx : step.key),\n (currentFirstChild = placeChild(step, currentFirstChild, newIdx)),\n null === previousNewFiber\n ? (resultingFirstChild = step)\n : (previousNewFiber.sibling = step),\n (previousNewFiber = step));\n shouldTrackSideEffects &&\n oldFiber.forEach(function (child) {\n return deleteChild(returnFiber, child);\n });\n isHydrating && pushTreeFork(returnFiber, newIdx);\n return resultingFirstChild;\n }\n function reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n ) {\n \"object\" === typeof newChild &&\n null !== newChild &&\n newChild.type === REACT_FRAGMENT_TYPE &&\n null === newChild.key &&\n (newChild = newChild.props.children);\n if (\"object\" === typeof newChild && null !== newChild) {\n switch (newChild.$$typeof) {\n case REACT_ELEMENT_TYPE:\n a: {\n for (\n var key = newChild.key, child = currentFirstChild;\n null !== child;\n\n ) {\n if (child.key === key) {\n key = newChild.type;\n if (key === REACT_FRAGMENT_TYPE) {\n if (7 === child.tag) {\n deleteRemainingChildren(returnFiber, child.sibling);\n currentFirstChild = useFiber(\n child,\n newChild.props.children\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n }\n } else if (\n child.elementType === key ||\n (\"object\" === typeof key &&\n null !== key &&\n key.$$typeof === REACT_LAZY_TYPE &&\n resolveLazy(key) === child.type)\n ) {\n deleteRemainingChildren(returnFiber, child.sibling);\n currentFirstChild = useFiber(child, newChild.props);\n coerceRef(returnFiber, child, currentFirstChild, newChild);\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n }\n deleteRemainingChildren(returnFiber, child);\n break;\n } else deleteChild(returnFiber, child);\n child = child.sibling;\n }\n newChild.type === REACT_FRAGMENT_TYPE\n ? ((currentFirstChild = createFiberFromFragment(\n newChild.props.children,\n returnFiber.mode,\n lanes,\n newChild.key\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : ((lanes = createFiberFromTypeAndProps(\n newChild.type,\n newChild.key,\n newChild.props,\n null,\n returnFiber.mode,\n lanes\n )),\n coerceRef(returnFiber, currentFirstChild, lanes, newChild),\n (lanes.return = returnFiber),\n (returnFiber = lanes));\n }\n return placeSingleChild(returnFiber);\n case REACT_PORTAL_TYPE:\n a: {\n for (child = newChild.key; null !== currentFirstChild; ) {\n if (currentFirstChild.key === child)\n if (\n 4 === currentFirstChild.tag &&\n currentFirstChild.stateNode.containerInfo ===\n newChild.containerInfo &&\n currentFirstChild.stateNode.implementation ===\n newChild.implementation\n ) {\n deleteRemainingChildren(\n returnFiber,\n currentFirstChild.sibling\n );\n currentFirstChild = useFiber(\n currentFirstChild,\n newChild.children || []\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n break a;\n } else {\n deleteRemainingChildren(returnFiber, currentFirstChild);\n break;\n }\n else deleteChild(returnFiber, currentFirstChild);\n currentFirstChild = currentFirstChild.sibling;\n }\n currentFirstChild = createFiberFromPortal(\n newChild,\n returnFiber.mode,\n lanes\n );\n currentFirstChild.return = returnFiber;\n returnFiber = currentFirstChild;\n }\n return placeSingleChild(returnFiber);\n case REACT_LAZY_TYPE:\n return (\n (child = newChild._init),\n (newChild = child(newChild._payload)),\n reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n )\n );\n }\n if (isArrayImpl(newChild))\n return reconcileChildrenArray(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n if (getIteratorFn(newChild)) {\n child = getIteratorFn(newChild);\n if (\"function\" !== typeof child)\n throw Error(formatProdErrorMessage(150));\n newChild = child.call(newChild);\n return reconcileChildrenIterator(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n }\n if (\"function\" === typeof newChild.then)\n return reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n unwrapThenable(newChild),\n lanes\n );\n if (newChild.$$typeof === REACT_CONTEXT_TYPE)\n return reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n readContextDuringReconciliation(returnFiber, newChild),\n lanes\n );\n throwOnInvalidObjectType(returnFiber, newChild);\n }\n return (\"string\" === typeof newChild && \"\" !== newChild) ||\n \"number\" === typeof newChild ||\n \"bigint\" === typeof newChild\n ? ((newChild = \"\" + newChild),\n null !== currentFirstChild && 6 === currentFirstChild.tag\n ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling),\n (currentFirstChild = useFiber(currentFirstChild, newChild)),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild))\n : (deleteRemainingChildren(returnFiber, currentFirstChild),\n (currentFirstChild = createFiberFromText(\n newChild,\n returnFiber.mode,\n lanes\n )),\n (currentFirstChild.return = returnFiber),\n (returnFiber = currentFirstChild)),\n placeSingleChild(returnFiber))\n : deleteRemainingChildren(returnFiber, currentFirstChild);\n }\n return function (returnFiber, currentFirstChild, newChild, lanes) {\n try {\n thenableIndexCounter$1 = 0;\n var firstChildFiber = reconcileChildFibersImpl(\n returnFiber,\n currentFirstChild,\n newChild,\n lanes\n );\n thenableState$1 = null;\n return firstChildFiber;\n } catch (x) {\n if (x === SuspenseException) throw x;\n var fiber = createFiberImplClass(29, x, null, returnFiber.mode);\n fiber.lanes = lanes;\n fiber.return = returnFiber;\n return fiber;\n } finally {\n }\n };\n}\nvar reconcileChildFibers = createChildReconciler(!0),\n mountChildFibers = createChildReconciler(!1),\n currentTreeHiddenStackCursor = createCursor(null),\n prevEntangledRenderLanesCursor = createCursor(0);\nfunction pushHiddenContext(fiber, context) {\n fiber = entangledRenderLanes;\n push(prevEntangledRenderLanesCursor, fiber);\n push(currentTreeHiddenStackCursor, context);\n entangledRenderLanes = fiber | context.baseLanes;\n}\nfunction reuseHiddenContextOnStack() {\n push(prevEntangledRenderLanesCursor, entangledRenderLanes);\n push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current);\n}\nfunction popHiddenContext() {\n entangledRenderLanes = prevEntangledRenderLanesCursor.current;\n pop(currentTreeHiddenStackCursor);\n pop(prevEntangledRenderLanesCursor);\n}\nvar suspenseHandlerStackCursor = createCursor(null),\n shellBoundary = null;\nfunction pushPrimaryTreeSuspenseHandler(handler) {\n var current = handler.alternate;\n push(suspenseStackCursor, suspenseStackCursor.current & 1);\n push(suspenseHandlerStackCursor, handler);\n null === shellBoundary &&\n (null === current || null !== currentTreeHiddenStackCursor.current\n ? (shellBoundary = handler)\n : null !== current.memoizedState && (shellBoundary = handler));\n}\nfunction pushOffscreenSuspenseHandler(fiber) {\n if (22 === fiber.tag) {\n if (\n (push(suspenseStackCursor, suspenseStackCursor.current),\n push(suspenseHandlerStackCursor, fiber),\n null === shellBoundary)\n ) {\n var current = fiber.alternate;\n null !== current &&\n null !== current.memoizedState &&\n (shellBoundary = fiber);\n }\n } else reuseSuspenseHandlerOnStack(fiber);\n}\nfunction reuseSuspenseHandlerOnStack() {\n push(suspenseStackCursor, suspenseStackCursor.current);\n push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);\n}\nfunction popSuspenseHandler(fiber) {\n pop(suspenseHandlerStackCursor);\n shellBoundary === fiber && (shellBoundary = null);\n pop(suspenseStackCursor);\n}\nvar suspenseStackCursor = createCursor(0);\nfunction findFirstSuspended(row) {\n for (var node = row; null !== node; ) {\n if (13 === node.tag) {\n var state = node.memoizedState;\n if (\n null !== state &&\n ((state = state.dehydrated),\n null === state || \"$?\" === state.data || \"$!\" === state.data)\n )\n return node;\n } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {\n if (0 !== (node.flags & 128)) return node;\n } else if (null !== node.child) {\n node.child.return = node;\n node = node.child;\n continue;\n }\n if (node === row) break;\n for (; null === node.sibling; ) {\n if (null === node.return || node.return === row) return null;\n node = node.return;\n }\n node.sibling.return = node.return;\n node = node.sibling;\n }\n return null;\n}\nvar AbortControllerLocal =\n \"undefined\" !== typeof AbortController\n ? AbortController\n : function () {\n var listeners = [],\n signal = (this.signal = {\n aborted: !1,\n addEventListener: function (type, listener) {\n listeners.push(listener);\n }\n });\n this.abort = function () {\n signal.aborted = !0;\n listeners.forEach(function (listener) {\n return listener();\n });\n };\n },\n scheduleCallback$2 = Scheduler.unstable_scheduleCallback,\n NormalPriority = Scheduler.unstable_NormalPriority,\n CacheContext = {\n $$typeof: REACT_CONTEXT_TYPE,\n Consumer: null,\n Provider: null,\n _currentValue: null,\n _currentValue2: null,\n _threadCount: 0\n };\nfunction createCache() {\n return {\n controller: new AbortControllerLocal(),\n data: new Map(),\n refCount: 0\n };\n}\nfunction releaseCache(cache) {\n cache.refCount--;\n 0 === cache.refCount &&\n scheduleCallback$2(NormalPriority, function () {\n cache.controller.abort();\n });\n}\nvar currentEntangledListeners = null,\n currentEntangledPendingCount = 0,\n currentEntangledLane = 0,\n currentEntangledActionThenable = null;\nfunction entangleAsyncAction(transition, thenable) {\n if (null === currentEntangledListeners) {\n var entangledListeners = (currentEntangledListeners = []);\n currentEntangledPendingCount = 0;\n currentEntangledLane = requestTransitionLane();\n currentEntangledActionThenable = {\n status: \"pending\",\n value: void 0,\n then: function (resolve) {\n entangledListeners.push(resolve);\n }\n };\n }\n currentEntangledPendingCount++;\n thenable.then(pingEngtangledActionScope, pingEngtangledActionScope);\n return thenable;\n}\nfunction pingEngtangledActionScope() {\n if (\n null !== currentEntangledListeners &&\n 0 === --currentEntangledPendingCount\n ) {\n null !== currentEntangledActionThenable &&\n (currentEntangledActionThenable.status = \"fulfilled\");\n var listeners = currentEntangledListeners;\n currentEntangledListeners = null;\n currentEntangledLane = 0;\n currentEntangledActionThenable = null;\n for (var i = 0; i < listeners.length; i++) (0, listeners[i])();\n }\n}\nfunction chainThenableValue(thenable, result) {\n var listeners = [],\n thenableWithOverride = {\n status: \"pending\",\n value: null,\n reason: null,\n then: function (resolve) {\n listeners.push(resolve);\n }\n };\n thenable.then(\n function () {\n thenableWithOverride.status = \"fulfilled\";\n thenableWithOverride.value = result;\n for (var i = 0; i < listeners.length; i++) (0, listeners[i])(result);\n },\n function (error) {\n thenableWithOverride.status = \"rejected\";\n thenableWithOverride.reason = error;\n for (error = 0; error < listeners.length; error++)\n (0, listeners[error])(void 0);\n }\n );\n return thenableWithOverride;\n}\nvar prevOnStartTransitionFinish = ReactSharedInternals.S;\nReactSharedInternals.S = function (transition, returnValue) {\n \"object\" === typeof returnValue &&\n null !== returnValue &&\n \"function\" === typeof returnValue.then &&\n entangleAsyncAction(transition, returnValue);\n null !== prevOnStartTransitionFinish &&\n prevOnStartTransitionFinish(transition, returnValue);\n};\nvar resumedCache = createCursor(null);\nfunction peekCacheFromPool() {\n var cacheResumedFromPreviousRender = resumedCache.current;\n return null !== cacheResumedFromPreviousRender\n ? cacheResumedFromPreviousRender\n : workInProgressRoot.pooledCache;\n}\nfunction pushTransition(offscreenWorkInProgress, prevCachePool) {\n null === prevCachePool\n ? push(resumedCache, resumedCache.current)\n : push(resumedCache, prevCachePool.pool);\n}\nfunction getSuspendedCache() {\n var cacheFromPool = peekCacheFromPool();\n return null === cacheFromPool\n ? null\n : { parent: CacheContext._currentValue, pool: cacheFromPool };\n}\nvar renderLanes = 0,\n currentlyRenderingFiber$1 = null,\n currentHook = null,\n workInProgressHook = null,\n didScheduleRenderPhaseUpdate = !1,\n didScheduleRenderPhaseUpdateDuringThisPass = !1,\n shouldDoubleInvokeUserFnsInHooksDEV = !1,\n localIdCounter = 0,\n thenableIndexCounter = 0,\n thenableState = null,\n globalClientIdCounter = 0;\nfunction throwInvalidHookError() {\n throw Error(formatProdErrorMessage(321));\n}\nfunction areHookInputsEqual(nextDeps, prevDeps) {\n if (null === prevDeps) return !1;\n for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)\n if (!objectIs(nextDeps[i], prevDeps[i])) return !1;\n return !0;\n}\nfunction renderWithHooks(\n current,\n workInProgress,\n Component,\n props,\n secondArg,\n nextRenderLanes\n) {\n renderLanes = nextRenderLanes;\n currentlyRenderingFiber$1 = workInProgress;\n workInProgress.memoizedState = null;\n workInProgress.updateQueue = null;\n workInProgress.lanes = 0;\n ReactSharedInternals.H =\n null === current || null === current.memoizedState\n ? HooksDispatcherOnMount\n : HooksDispatcherOnUpdate;\n shouldDoubleInvokeUserFnsInHooksDEV = !1;\n nextRenderLanes = Component(props, secondArg);\n shouldDoubleInvokeUserFnsInHooksDEV = !1;\n didScheduleRenderPhaseUpdateDuringThisPass &&\n (nextRenderLanes = renderWithHooksAgain(\n workInProgress,\n Component,\n props,\n secondArg\n ));\n finishRenderingHooks(current);\n return nextRenderLanes;\n}\nfunction finishRenderingHooks(current) {\n ReactSharedInternals.H = ContextOnlyDispatcher;\n var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next;\n renderLanes = 0;\n workInProgressHook = currentHook = currentlyRenderingFiber$1 = null;\n didScheduleRenderPhaseUpdate = !1;\n thenableIndexCounter = 0;\n thenableState = null;\n if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));\n null === current ||\n didReceiveUpdate ||\n ((current = current.dependencies),\n null !== current &&\n checkIfContextChanged(current) &&\n (didReceiveUpdate = !0));\n}\nfunction renderWithHooksAgain(workInProgress, Component, props, secondArg) {\n currentlyRenderingFiber$1 = workInProgress;\n var numberOfReRenders = 0;\n do {\n didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null);\n thenableIndexCounter = 0;\n didScheduleRenderPhaseUpdateDuringThisPass = !1;\n if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));\n numberOfReRenders += 1;\n workInProgressHook = currentHook = null;\n if (null != workInProgress.updateQueue) {\n var children = workInProgress.updateQueue;\n children.lastEffect = null;\n children.events = null;\n children.stores = null;\n null != children.memoCache && (children.memoCache.index = 0);\n }\n ReactSharedInternals.H = HooksDispatcherOnRerender;\n children = Component(props, secondArg);\n } while (didScheduleRenderPhaseUpdateDuringThisPass);\n return children;\n}\nfunction TransitionAwareHostComponent() {\n var dispatcher = ReactSharedInternals.H,\n maybeThenable = dispatcher.useState()[0];\n maybeThenable =\n \"function\" === typeof maybeThenable.then\n ? useThenable(maybeThenable)\n : maybeThenable;\n dispatcher = dispatcher.useState()[0];\n (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher &&\n (currentlyRenderingFiber$1.flags |= 1024);\n return maybeThenable;\n}\nfunction checkDidRenderIdHook() {\n var didRenderIdHook = 0 !== localIdCounter;\n localIdCounter = 0;\n return didRenderIdHook;\n}\nfunction bailoutHooks(current, workInProgress, lanes) {\n workInProgress.updateQueue = current.updateQueue;\n workInProgress.flags &= -2053;\n current.lanes &= ~lanes;\n}\nfunction resetHooksOnUnwind(workInProgress) {\n if (didScheduleRenderPhaseUpdate) {\n for (\n workInProgress = workInProgress.memoizedState;\n null !== workInProgress;\n\n ) {\n var queue = workInProgress.queue;\n null !== queue && (queue.pending = null);\n workInProgress = workInProgress.next;\n }\n didScheduleRenderPhaseUpdate = !1;\n }\n renderLanes = 0;\n workInProgressHook = currentHook = currentlyRenderingFiber$1 = null;\n didScheduleRenderPhaseUpdateDuringThisPass = !1;\n thenableIndexCounter = localIdCounter = 0;\n thenableState = null;\n}\nfunction mountWorkInProgressHook() {\n var hook = {\n memoizedState: null,\n baseState: null,\n baseQueue: null,\n queue: null,\n next: null\n };\n null === workInProgressHook\n ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook = hook)\n : (workInProgressHook = workInProgressHook.next = hook);\n return workInProgressHook;\n}\nfunction updateWorkInProgressHook() {\n if (null === currentHook) {\n var nextCurrentHook = currentlyRenderingFiber$1.alternate;\n nextCurrentHook =\n null !== nextCurrentHook ? nextCurrentHook.memoizedState : null;\n } else nextCurrentHook = currentHook.next;\n var nextWorkInProgressHook =\n null === workInProgressHook\n ? currentlyRenderingFiber$1.memoizedState\n : workInProgressHook.next;\n if (null !== nextWorkInProgressHook)\n (workInProgressHook = nextWorkInProgressHook),\n (currentHook = nextCurrentHook);\n else {\n if (null === nextCurrentHook) {\n if (null === currentlyRenderingFiber$1.alternate)\n throw Error(formatProdErrorMessage(467));\n throw Error(formatProdErrorMessage(310));\n }\n currentHook = nextCurrentHook;\n nextCurrentHook = {\n memoizedState: currentHook.memoizedState,\n baseState: currentHook.baseState,\n baseQueue: currentHook.baseQueue,\n queue: currentHook.queue,\n next: null\n };\n null === workInProgressHook\n ? (currentlyRenderingFiber$1.memoizedState = workInProgressHook =\n nextCurrentHook)\n : (workInProgressHook = workInProgressHook.next = nextCurrentHook);\n }\n return workInProgressHook;\n}\nvar createFunctionComponentUpdateQueue;\ncreateFunctionComponentUpdateQueue = function () {\n return { lastEffect: null, events: null, stores: null, memoCache: null };\n};\nfunction useThenable(thenable) {\n var index = thenableIndexCounter;\n thenableIndexCounter += 1;\n null === thenableState && (thenableState = []);\n thenable = trackUsedThenable(thenableState, thenable, index);\n index = currentlyRenderingFiber$1;\n null ===\n (null === workInProgressHook\n ? index.memoizedState\n : workInProgressHook.next) &&\n ((index = index.alternate),\n (ReactSharedInternals.H =\n null === index || null === index.memoizedState\n ? HooksDispatcherOnMount\n : HooksDispatcherOnUpdate));\n return thenable;\n}\nfunction use(usable) {\n if (null !== usable && \"object\" === typeof usable) {\n if (\"function\" === typeof usable.then) return useThenable(usable);\n if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);\n }\n throw Error(formatProdErrorMessage(438, String(usable)));\n}\nfunction useMemoCache(size) {\n var memoCache = null,\n updateQueue = currentlyRenderingFiber$1.updateQueue;\n null !== updateQueue && (memoCache = updateQueue.memoCache);\n if (null == memoCache) {\n var current = currentlyRenderingFiber$1.alternate;\n null !== current &&\n ((current = current.updateQueue),\n null !== current &&\n ((current = current.memoCache),\n null != current &&\n (memoCache = {\n data: current.data.map(function (array) {\n return array.slice();\n }),\n index: 0\n })));\n }\n null == memoCache && (memoCache = { data: [], index: 0 });\n null === updateQueue &&\n ((updateQueue = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber$1.updateQueue = updateQueue));\n updateQueue.memoCache = memoCache;\n updateQueue = memoCache.data[memoCache.index];\n if (void 0 === updateQueue)\n for (\n updateQueue = memoCache.data[memoCache.index] = Array(size), current = 0;\n current < size;\n current++\n )\n updateQueue[current] = REACT_MEMO_CACHE_SENTINEL;\n memoCache.index++;\n return updateQueue;\n}\nfunction basicStateReducer(state, action) {\n return \"function\" === typeof action ? action(state) : action;\n}\nfunction updateReducer(reducer) {\n var hook = updateWorkInProgressHook();\n return updateReducerImpl(hook, currentHook, reducer);\n}\nfunction updateReducerImpl(hook, current, reducer) {\n var queue = hook.queue;\n if (null === queue) throw Error(formatProdErrorMessage(311));\n queue.lastRenderedReducer = reducer;\n var baseQueue = hook.baseQueue,\n pendingQueue = queue.pending;\n if (null !== pendingQueue) {\n if (null !== baseQueue) {\n var baseFirst = baseQueue.next;\n baseQueue.next = pendingQueue.next;\n pendingQueue.next = baseFirst;\n }\n current.baseQueue = baseQueue = pendingQueue;\n queue.pending = null;\n }\n pendingQueue = hook.baseState;\n if (null === baseQueue) hook.memoizedState = pendingQueue;\n else {\n current = baseQueue.next;\n var newBaseQueueFirst = (baseFirst = null),\n newBaseQueueLast = null,\n update = current,\n didReadFromEntangledAsyncAction$55 = !1;\n do {\n var updateLane = update.lane & -536870913;\n if (\n updateLane !== update.lane\n ? (workInProgressRootRenderLanes & updateLane) === updateLane\n : (renderLanes & updateLane) === updateLane\n ) {\n var revertLane = update.revertLane;\n if (0 === revertLane)\n null !== newBaseQueueLast &&\n (newBaseQueueLast = newBaseQueueLast.next =\n {\n lane: 0,\n revertLane: 0,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n updateLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction$55 = !0);\n else if ((renderLanes & revertLane) === revertLane) {\n update = update.next;\n revertLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction$55 = !0);\n continue;\n } else\n (updateLane = {\n lane: 0,\n revertLane: update.revertLane,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n null === newBaseQueueLast\n ? ((newBaseQueueFirst = newBaseQueueLast = updateLane),\n (baseFirst = pendingQueue))\n : (newBaseQueueLast = newBaseQueueLast.next = updateLane),\n (currentlyRenderingFiber$1.lanes |= revertLane),\n (workInProgressRootSkippedLanes |= revertLane);\n updateLane = update.action;\n shouldDoubleInvokeUserFnsInHooksDEV &&\n reducer(pendingQueue, updateLane);\n pendingQueue = update.hasEagerState\n ? update.eagerState\n : reducer(pendingQueue, updateLane);\n } else\n (revertLane = {\n lane: updateLane,\n revertLane: update.revertLane,\n action: update.action,\n hasEagerState: update.hasEagerState,\n eagerState: update.eagerState,\n next: null\n }),\n null === newBaseQueueLast\n ? ((newBaseQueueFirst = newBaseQueueLast = revertLane),\n (baseFirst = pendingQueue))\n : (newBaseQueueLast = newBaseQueueLast.next = revertLane),\n (currentlyRenderingFiber$1.lanes |= updateLane),\n (workInProgressRootSkippedLanes |= updateLane);\n update = update.next;\n } while (null !== update && update !== current);\n null === newBaseQueueLast\n ? (baseFirst = pendingQueue)\n : (newBaseQueueLast.next = newBaseQueueFirst);\n if (\n !objectIs(pendingQueue, hook.memoizedState) &&\n ((didReceiveUpdate = !0),\n didReadFromEntangledAsyncAction$55 &&\n ((reducer = currentEntangledActionThenable), null !== reducer))\n )\n throw reducer;\n hook.memoizedState = pendingQueue;\n hook.baseState = baseFirst;\n hook.baseQueue = newBaseQueueLast;\n queue.lastRenderedState = pendingQueue;\n }\n null === baseQueue && (queue.lanes = 0);\n return [hook.memoizedState, queue.dispatch];\n}\nfunction rerenderReducer(reducer) {\n var hook = updateWorkInProgressHook(),\n queue = hook.queue;\n if (null === queue) throw Error(formatProdErrorMessage(311));\n queue.lastRenderedReducer = reducer;\n var dispatch = queue.dispatch,\n lastRenderPhaseUpdate = queue.pending,\n newState = hook.memoizedState;\n if (null !== lastRenderPhaseUpdate) {\n queue.pending = null;\n var update = (lastRenderPhaseUpdate = lastRenderPhaseUpdate.next);\n do (newState = reducer(newState, update.action)), (update = update.next);\n while (update !== lastRenderPhaseUpdate);\n objectIs(newState, hook.memoizedState) || (didReceiveUpdate = !0);\n hook.memoizedState = newState;\n null === hook.baseQueue && (hook.baseState = newState);\n queue.lastRenderedState = newState;\n }\n return [newState, dispatch];\n}\nfunction updateSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber$1,\n hook = updateWorkInProgressHook(),\n isHydrating$jscomp$0 = isHydrating;\n if (isHydrating$jscomp$0) {\n if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));\n getServerSnapshot = getServerSnapshot();\n } else getServerSnapshot = getSnapshot();\n var snapshotChanged = !objectIs(\n (currentHook || hook).memoizedState,\n getServerSnapshot\n );\n snapshotChanged &&\n ((hook.memoizedState = getServerSnapshot), (didReceiveUpdate = !0));\n hook = hook.queue;\n updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe), [\n subscribe\n ]);\n if (\n hook.getSnapshot !== getSnapshot ||\n snapshotChanged ||\n (null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1)\n ) {\n fiber.flags |= 2048;\n pushEffect(\n 9,\n updateStoreInstance.bind(\n null,\n fiber,\n hook,\n getServerSnapshot,\n getSnapshot\n ),\n { destroy: void 0 },\n null\n );\n if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));\n isHydrating$jscomp$0 ||\n 0 !== (renderLanes & 60) ||\n pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n }\n return getServerSnapshot;\n}\nfunction pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {\n fiber.flags |= 16384;\n fiber = { getSnapshot: getSnapshot, value: renderedSnapshot };\n getSnapshot = currentlyRenderingFiber$1.updateQueue;\n null === getSnapshot\n ? ((getSnapshot = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber$1.updateQueue = getSnapshot),\n (getSnapshot.stores = [fiber]))\n : ((renderedSnapshot = getSnapshot.stores),\n null === renderedSnapshot\n ? (getSnapshot.stores = [fiber])\n : renderedSnapshot.push(fiber));\n}\nfunction updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {\n inst.value = nextSnapshot;\n inst.getSnapshot = getSnapshot;\n checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n}\nfunction subscribeToStore(fiber, inst, subscribe) {\n return subscribe(function () {\n checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);\n });\n}\nfunction checkIfSnapshotChanged(inst) {\n var latestGetSnapshot = inst.getSnapshot;\n inst = inst.value;\n try {\n var nextValue = latestGetSnapshot();\n return !objectIs(inst, nextValue);\n } catch (error) {\n return !0;\n }\n}\nfunction forceStoreRerender(fiber) {\n var root = enqueueConcurrentRenderForLane(fiber, 2);\n null !== root && scheduleUpdateOnFiber(root, fiber, 2);\n}\nfunction mountStateImpl(initialState) {\n var hook = mountWorkInProgressHook();\n if (\"function\" === typeof initialState) {\n var initialStateInitializer = initialState;\n initialState = initialStateInitializer();\n shouldDoubleInvokeUserFnsInHooksDEV &&\n (setIsStrictModeForDevtools(!0),\n initialStateInitializer(),\n setIsStrictModeForDevtools(!1));\n }\n hook.memoizedState = hook.baseState = initialState;\n hook.queue = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialState\n };\n return hook;\n}\nfunction updateOptimisticImpl(hook, current, passthrough, reducer) {\n hook.baseState = passthrough;\n return updateReducerImpl(\n hook,\n currentHook,\n \"function\" === typeof reducer ? reducer : basicStateReducer\n );\n}\nfunction dispatchActionState(\n fiber,\n actionQueue,\n setPendingState,\n setState,\n payload\n) {\n if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485));\n fiber = actionQueue.action;\n if (null !== fiber) {\n var actionNode = {\n payload: payload,\n action: fiber,\n next: null,\n isTransition: !0,\n status: \"pending\",\n value: null,\n reason: null,\n listeners: [],\n then: function (listener) {\n actionNode.listeners.push(listener);\n }\n };\n null !== ReactSharedInternals.T\n ? setPendingState(!0)\n : (actionNode.isTransition = !1);\n setState(actionNode);\n setPendingState = actionQueue.pending;\n null === setPendingState\n ? ((actionNode.next = actionQueue.pending = actionNode),\n runActionStateAction(actionQueue, actionNode))\n : ((actionNode.next = setPendingState.next),\n (actionQueue.pending = setPendingState.next = actionNode));\n }\n}\nfunction runActionStateAction(actionQueue, node) {\n var action = node.action,\n payload = node.payload,\n prevState = actionQueue.state;\n if (node.isTransition) {\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n try {\n var returnValue = action(prevState, payload),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n handleActionReturnValue(actionQueue, node, returnValue);\n } catch (error) {\n onActionError(actionQueue, node, error);\n } finally {\n ReactSharedInternals.T = prevTransition;\n }\n } else\n try {\n (prevTransition = action(prevState, payload)),\n handleActionReturnValue(actionQueue, node, prevTransition);\n } catch (error$61) {\n onActionError(actionQueue, node, error$61);\n }\n}\nfunction handleActionReturnValue(actionQueue, node, returnValue) {\n null !== returnValue &&\n \"object\" === typeof returnValue &&\n \"function\" === typeof returnValue.then\n ? returnValue.then(\n function (nextState) {\n onActionSuccess(actionQueue, node, nextState);\n },\n function (error) {\n return onActionError(actionQueue, node, error);\n }\n )\n : onActionSuccess(actionQueue, node, returnValue);\n}\nfunction onActionSuccess(actionQueue, actionNode, nextState) {\n actionNode.status = \"fulfilled\";\n actionNode.value = nextState;\n notifyActionListeners(actionNode);\n actionQueue.state = nextState;\n actionNode = actionQueue.pending;\n null !== actionNode &&\n ((nextState = actionNode.next),\n nextState === actionNode\n ? (actionQueue.pending = null)\n : ((nextState = nextState.next),\n (actionNode.next = nextState),\n runActionStateAction(actionQueue, nextState)));\n}\nfunction onActionError(actionQueue, actionNode, error) {\n var last = actionQueue.pending;\n actionQueue.pending = null;\n if (null !== last) {\n last = last.next;\n do\n (actionNode.status = \"rejected\"),\n (actionNode.reason = error),\n notifyActionListeners(actionNode),\n (actionNode = actionNode.next);\n while (actionNode !== last);\n }\n actionQueue.action = null;\n}\nfunction notifyActionListeners(actionNode) {\n actionNode = actionNode.listeners;\n for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])();\n}\nfunction actionStateReducer(oldState, newState) {\n return newState;\n}\nfunction mountActionState(action, initialStateProp) {\n if (isHydrating) {\n var ssrFormState = workInProgressRoot.formState;\n if (null !== ssrFormState) {\n a: {\n var JSCompiler_inline_result = currentlyRenderingFiber$1;\n if (isHydrating) {\n if (nextHydratableInstance) {\n b: {\n var JSCompiler_inline_result$jscomp$0 = nextHydratableInstance;\n for (\n var inRootOrSingleton = rootOrSingletonContext;\n 8 !== JSCompiler_inline_result$jscomp$0.nodeType;\n\n ) {\n if (!inRootOrSingleton) {\n JSCompiler_inline_result$jscomp$0 = null;\n break b;\n }\n JSCompiler_inline_result$jscomp$0 = getNextHydratable(\n JSCompiler_inline_result$jscomp$0.nextSibling\n );\n if (null === JSCompiler_inline_result$jscomp$0) {\n JSCompiler_inline_result$jscomp$0 = null;\n break b;\n }\n }\n inRootOrSingleton = JSCompiler_inline_result$jscomp$0.data;\n JSCompiler_inline_result$jscomp$0 =\n \"F!\" === inRootOrSingleton || \"F\" === inRootOrSingleton\n ? JSCompiler_inline_result$jscomp$0\n : null;\n }\n if (JSCompiler_inline_result$jscomp$0) {\n nextHydratableInstance = getNextHydratable(\n JSCompiler_inline_result$jscomp$0.nextSibling\n );\n JSCompiler_inline_result =\n \"F!\" === JSCompiler_inline_result$jscomp$0.data;\n break a;\n }\n }\n throwOnHydrationMismatch(JSCompiler_inline_result);\n }\n JSCompiler_inline_result = !1;\n }\n JSCompiler_inline_result && (initialStateProp = ssrFormState[0]);\n }\n }\n ssrFormState = mountWorkInProgressHook();\n ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp;\n JSCompiler_inline_result = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: actionStateReducer,\n lastRenderedState: initialStateProp\n };\n ssrFormState.queue = JSCompiler_inline_result;\n ssrFormState = dispatchSetState.bind(\n null,\n currentlyRenderingFiber$1,\n JSCompiler_inline_result\n );\n JSCompiler_inline_result.dispatch = ssrFormState;\n JSCompiler_inline_result = mountStateImpl(!1);\n inRootOrSingleton = dispatchOptimisticSetState.bind(\n null,\n currentlyRenderingFiber$1,\n !1,\n JSCompiler_inline_result.queue\n );\n JSCompiler_inline_result = mountWorkInProgressHook();\n JSCompiler_inline_result$jscomp$0 = {\n state: initialStateProp,\n dispatch: null,\n action: action,\n pending: null\n };\n JSCompiler_inline_result.queue = JSCompiler_inline_result$jscomp$0;\n ssrFormState = dispatchActionState.bind(\n null,\n currentlyRenderingFiber$1,\n JSCompiler_inline_result$jscomp$0,\n inRootOrSingleton,\n ssrFormState\n );\n JSCompiler_inline_result$jscomp$0.dispatch = ssrFormState;\n JSCompiler_inline_result.memoizedState = action;\n return [initialStateProp, ssrFormState, !1];\n}\nfunction updateActionState(action) {\n var stateHook = updateWorkInProgressHook();\n return updateActionStateImpl(stateHook, currentHook, action);\n}\nfunction updateActionStateImpl(stateHook, currentStateHook, action) {\n currentStateHook = updateReducerImpl(\n stateHook,\n currentStateHook,\n actionStateReducer\n )[0];\n stateHook = updateReducer(basicStateReducer)[0];\n currentStateHook =\n \"object\" === typeof currentStateHook &&\n null !== currentStateHook &&\n \"function\" === typeof currentStateHook.then\n ? useThenable(currentStateHook)\n : currentStateHook;\n var actionQueueHook = updateWorkInProgressHook(),\n actionQueue = actionQueueHook.queue,\n dispatch = actionQueue.dispatch;\n action !== actionQueueHook.memoizedState &&\n ((currentlyRenderingFiber$1.flags |= 2048),\n pushEffect(\n 9,\n actionStateActionEffect.bind(null, actionQueue, action),\n { destroy: void 0 },\n null\n ));\n return [currentStateHook, dispatch, stateHook];\n}\nfunction actionStateActionEffect(actionQueue, action) {\n actionQueue.action = action;\n}\nfunction rerenderActionState(action) {\n var stateHook = updateWorkInProgressHook(),\n currentStateHook = currentHook;\n if (null !== currentStateHook)\n return updateActionStateImpl(stateHook, currentStateHook, action);\n updateWorkInProgressHook();\n stateHook = stateHook.memoizedState;\n currentStateHook = updateWorkInProgressHook();\n var dispatch = currentStateHook.queue.dispatch;\n currentStateHook.memoizedState = action;\n return [stateHook, dispatch, !1];\n}\nfunction pushEffect(tag, create, inst, deps) {\n tag = { tag: tag, create: create, inst: inst, deps: deps, next: null };\n create = currentlyRenderingFiber$1.updateQueue;\n null === create &&\n ((create = createFunctionComponentUpdateQueue()),\n (currentlyRenderingFiber$1.updateQueue = create));\n inst = create.lastEffect;\n null === inst\n ? (create.lastEffect = tag.next = tag)\n : ((deps = inst.next),\n (inst.next = tag),\n (tag.next = deps),\n (create.lastEffect = tag));\n return tag;\n}\nfunction updateRef() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction mountEffectImpl(fiberFlags, hookFlags, create, deps) {\n var hook = mountWorkInProgressHook();\n currentlyRenderingFiber$1.flags |= fiberFlags;\n hook.memoizedState = pushEffect(\n 1 | hookFlags,\n create,\n { destroy: void 0 },\n void 0 === deps ? null : deps\n );\n}\nfunction updateEffectImpl(fiberFlags, hookFlags, create, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var inst = hook.memoizedState.inst;\n null !== currentHook &&\n null !== deps &&\n areHookInputsEqual(deps, currentHook.memoizedState.deps)\n ? (hook.memoizedState = pushEffect(hookFlags, create, inst, deps))\n : ((currentlyRenderingFiber$1.flags |= fiberFlags),\n (hook.memoizedState = pushEffect(1 | hookFlags, create, inst, deps)));\n}\nfunction mountEffect(create, deps) {\n mountEffectImpl(8390656, 8, create, deps);\n}\nfunction updateEffect(create, deps) {\n updateEffectImpl(2048, 8, create, deps);\n}\nfunction updateInsertionEffect(create, deps) {\n return updateEffectImpl(4, 2, create, deps);\n}\nfunction updateLayoutEffect(create, deps) {\n return updateEffectImpl(4, 4, create, deps);\n}\nfunction imperativeHandleEffect(create, ref) {\n if (\"function\" === typeof ref) {\n create = create();\n var refCleanup = ref(create);\n return function () {\n \"function\" === typeof refCleanup ? refCleanup() : ref(null);\n };\n }\n if (null !== ref && void 0 !== ref)\n return (\n (create = create()),\n (ref.current = create),\n function () {\n ref.current = null;\n }\n );\n}\nfunction updateImperativeHandle(ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps);\n}\nfunction mountDebugValue() {}\nfunction updateCallback(callback, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n return prevState[0];\n hook.memoizedState = [callback, deps];\n return callback;\n}\nfunction updateMemo(nextCreate, deps) {\n var hook = updateWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var prevState = hook.memoizedState;\n if (null !== deps && areHookInputsEqual(deps, prevState[1]))\n return prevState[0];\n prevState = nextCreate();\n shouldDoubleInvokeUserFnsInHooksDEV &&\n (setIsStrictModeForDevtools(!0),\n nextCreate(),\n setIsStrictModeForDevtools(!1));\n hook.memoizedState = [prevState, deps];\n return prevState;\n}\nfunction mountDeferredValueImpl(hook, value, initialValue) {\n if (void 0 === initialValue || 0 !== (renderLanes & 1073741824))\n return (hook.memoizedState = value);\n hook.memoizedState = initialValue;\n hook = requestDeferredLane();\n currentlyRenderingFiber$1.lanes |= hook;\n workInProgressRootSkippedLanes |= hook;\n return initialValue;\n}\nfunction updateDeferredValueImpl(hook, prevValue, value, initialValue) {\n if (objectIs(value, prevValue)) return value;\n if (null !== currentTreeHiddenStackCursor.current)\n return (\n (hook = mountDeferredValueImpl(hook, value, initialValue)),\n objectIs(hook, prevValue) || (didReceiveUpdate = !0),\n hook\n );\n if (0 === (renderLanes & 42))\n return (didReceiveUpdate = !0), (hook.memoizedState = value);\n hook = requestDeferredLane();\n currentlyRenderingFiber$1.lanes |= hook;\n workInProgressRootSkippedLanes |= hook;\n return prevValue;\n}\nfunction startTransition(fiber, queue, pendingState, finishedState, callback) {\n var previousPriority = ReactDOMSharedInternals.p;\n ReactDOMSharedInternals.p =\n 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;\n var prevTransition = ReactSharedInternals.T,\n currentTransition = {};\n ReactSharedInternals.T = currentTransition;\n dispatchOptimisticSetState(fiber, !1, queue, pendingState);\n try {\n var returnValue = callback(),\n onStartTransitionFinish = ReactSharedInternals.S;\n null !== onStartTransitionFinish &&\n onStartTransitionFinish(currentTransition, returnValue);\n if (\n null !== returnValue &&\n \"object\" === typeof returnValue &&\n \"function\" === typeof returnValue.then\n ) {\n var thenableForFinishedState = chainThenableValue(\n returnValue,\n finishedState\n );\n dispatchSetState(fiber, queue, thenableForFinishedState);\n } else dispatchSetState(fiber, queue, finishedState);\n } catch (error) {\n dispatchSetState(fiber, queue, {\n then: function () {},\n status: \"rejected\",\n reason: error\n });\n } finally {\n (ReactDOMSharedInternals.p = previousPriority),\n (ReactSharedInternals.T = prevTransition);\n }\n}\nfunction noop$2() {}\nfunction startHostTransition(formFiber, pendingState, action, formData) {\n if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476));\n var queue = ensureFormComponentIsStateful(formFiber).queue;\n startTransition(\n formFiber,\n queue,\n pendingState,\n sharedNotPendingObject,\n null === action\n ? noop$2\n : function () {\n requestFormReset$1(formFiber);\n return action(formData);\n }\n );\n}\nfunction ensureFormComponentIsStateful(formFiber) {\n var existingStateHook = formFiber.memoizedState;\n if (null !== existingStateHook) return existingStateHook;\n existingStateHook = {\n memoizedState: sharedNotPendingObject,\n baseState: sharedNotPendingObject,\n baseQueue: null,\n queue: {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: sharedNotPendingObject\n },\n next: null\n };\n var initialResetState = {};\n existingStateHook.next = {\n memoizedState: initialResetState,\n baseState: initialResetState,\n baseQueue: null,\n queue: {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: basicStateReducer,\n lastRenderedState: initialResetState\n },\n next: null\n };\n formFiber.memoizedState = existingStateHook;\n formFiber = formFiber.alternate;\n null !== formFiber && (formFiber.memoizedState = existingStateHook);\n return existingStateHook;\n}\nfunction requestFormReset$1(formFiber) {\n var resetStateQueue = ensureFormComponentIsStateful(formFiber).next.queue;\n dispatchSetState(formFiber, resetStateQueue, {});\n}\nfunction useHostTransitionStatus() {\n return readContext(HostTransitionContext);\n}\nfunction updateId() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction updateRefresh() {\n return updateWorkInProgressHook().memoizedState;\n}\nfunction refreshCache(fiber) {\n for (var provider = fiber.return; null !== provider; ) {\n switch (provider.tag) {\n case 24:\n case 3:\n var lane = requestUpdateLane();\n fiber = createUpdate(lane);\n var root$64 = enqueueUpdate(provider, fiber, lane);\n null !== root$64 &&\n (scheduleUpdateOnFiber(root$64, provider, lane),\n entangleTransitions(root$64, provider, lane));\n provider = { cache: createCache() };\n fiber.payload = provider;\n return;\n }\n provider = provider.return;\n }\n}\nfunction dispatchReducerAction(fiber, queue, action) {\n var lane = requestUpdateLane();\n action = {\n lane: lane,\n revertLane: 0,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n isRenderPhaseUpdate(fiber)\n ? enqueueRenderPhaseUpdate(queue, action)\n : ((action = enqueueConcurrentHookUpdate(fiber, queue, action, lane)),\n null !== action &&\n (scheduleUpdateOnFiber(action, fiber, lane),\n entangleTransitionUpdate(action, queue, lane)));\n}\nfunction dispatchSetState(fiber, queue, action) {\n var lane = requestUpdateLane(),\n update = {\n lane: lane,\n revertLane: 0,\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);\n else {\n var alternate = fiber.alternate;\n if (\n 0 === fiber.lanes &&\n (null === alternate || 0 === alternate.lanes) &&\n ((alternate = queue.lastRenderedReducer), null !== alternate)\n )\n try {\n var currentState = queue.lastRenderedState,\n eagerState = alternate(currentState, action);\n update.hasEagerState = !0;\n update.eagerState = eagerState;\n if (objectIs(eagerState, currentState)) {\n enqueueUpdate$1(fiber, queue, update, 0);\n null === workInProgressRoot && finishQueueingConcurrentUpdates();\n return;\n }\n } catch (error) {\n } finally {\n }\n action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);\n null !== action &&\n (scheduleUpdateOnFiber(action, fiber, lane),\n entangleTransitionUpdate(action, queue, lane));\n }\n}\nfunction dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {\n action = {\n lane: 2,\n revertLane: requestTransitionLane(),\n action: action,\n hasEagerState: !1,\n eagerState: null,\n next: null\n };\n if (isRenderPhaseUpdate(fiber)) {\n if (throwIfDuringRender) throw Error(formatProdErrorMessage(479));\n } else\n (throwIfDuringRender = enqueueConcurrentHookUpdate(\n fiber,\n queue,\n action,\n 2\n )),\n null !== throwIfDuringRender &&\n scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2);\n}\nfunction isRenderPhaseUpdate(fiber) {\n var alternate = fiber.alternate;\n return (\n fiber === currentlyRenderingFiber$1 ||\n (null !== alternate && alternate === currentlyRenderingFiber$1)\n );\n}\nfunction enqueueRenderPhaseUpdate(queue, update) {\n didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate =\n !0;\n var pending = queue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n queue.pending = update;\n}\nfunction entangleTransitionUpdate(root, queue, lane) {\n if (0 !== (lane & 4194176)) {\n var queueLanes = queue.lanes;\n queueLanes &= root.pendingLanes;\n lane |= queueLanes;\n queue.lanes = lane;\n markRootEntangled(root, lane);\n }\n}\nvar ContextOnlyDispatcher = {\n readContext: readContext,\n use: use,\n useCallback: throwInvalidHookError,\n useContext: throwInvalidHookError,\n useEffect: throwInvalidHookError,\n useImperativeHandle: throwInvalidHookError,\n useLayoutEffect: throwInvalidHookError,\n useInsertionEffect: throwInvalidHookError,\n useMemo: throwInvalidHookError,\n useReducer: throwInvalidHookError,\n useRef: throwInvalidHookError,\n useState: throwInvalidHookError,\n useDebugValue: throwInvalidHookError,\n useDeferredValue: throwInvalidHookError,\n useTransition: throwInvalidHookError,\n useSyncExternalStore: throwInvalidHookError,\n useId: throwInvalidHookError\n};\nContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError;\nContextOnlyDispatcher.useMemoCache = throwInvalidHookError;\nContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError;\nContextOnlyDispatcher.useFormState = throwInvalidHookError;\nContextOnlyDispatcher.useActionState = throwInvalidHookError;\nContextOnlyDispatcher.useOptimistic = throwInvalidHookError;\nvar HooksDispatcherOnMount = {\n readContext: readContext,\n use: use,\n useCallback: function (callback, deps) {\n mountWorkInProgressHook().memoizedState = [\n callback,\n void 0 === deps ? null : deps\n ];\n return callback;\n },\n useContext: readContext,\n useEffect: mountEffect,\n useImperativeHandle: function (ref, create, deps) {\n deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;\n mountEffectImpl(\n 4194308,\n 4,\n imperativeHandleEffect.bind(null, create, ref),\n deps\n );\n },\n useLayoutEffect: function (create, deps) {\n return mountEffectImpl(4194308, 4, create, deps);\n },\n useInsertionEffect: function (create, deps) {\n mountEffectImpl(4, 2, create, deps);\n },\n useMemo: function (nextCreate, deps) {\n var hook = mountWorkInProgressHook();\n deps = void 0 === deps ? null : deps;\n var nextValue = nextCreate();\n shouldDoubleInvokeUserFnsInHooksDEV &&\n (setIsStrictModeForDevtools(!0),\n nextCreate(),\n setIsStrictModeForDevtools(!1));\n hook.memoizedState = [nextValue, deps];\n return nextValue;\n },\n useReducer: function (reducer, initialArg, init) {\n var hook = mountWorkInProgressHook();\n if (void 0 !== init) {\n var initialState = init(initialArg);\n shouldDoubleInvokeUserFnsInHooksDEV &&\n (setIsStrictModeForDevtools(!0),\n init(initialArg),\n setIsStrictModeForDevtools(!1));\n } else initialState = initialArg;\n hook.memoizedState = hook.baseState = initialState;\n reducer = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: reducer,\n lastRenderedState: initialState\n };\n hook.queue = reducer;\n reducer = reducer.dispatch = dispatchReducerAction.bind(\n null,\n currentlyRenderingFiber$1,\n reducer\n );\n return [hook.memoizedState, reducer];\n },\n useRef: function (initialValue) {\n var hook = mountWorkInProgressHook();\n initialValue = { current: initialValue };\n return (hook.memoizedState = initialValue);\n },\n useState: function (initialState) {\n initialState = mountStateImpl(initialState);\n var queue = initialState.queue,\n dispatch = dispatchSetState.bind(null, currentlyRenderingFiber$1, queue);\n queue.dispatch = dispatch;\n return [initialState.memoizedState, dispatch];\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = mountWorkInProgressHook();\n return mountDeferredValueImpl(hook, value, initialValue);\n },\n useTransition: function () {\n var stateHook = mountStateImpl(!1);\n stateHook = startTransition.bind(\n null,\n currentlyRenderingFiber$1,\n stateHook.queue,\n !0,\n !1\n );\n mountWorkInProgressHook().memoizedState = stateHook;\n return [!1, stateHook];\n },\n useSyncExternalStore: function (subscribe, getSnapshot, getServerSnapshot) {\n var fiber = currentlyRenderingFiber$1,\n hook = mountWorkInProgressHook();\n if (isHydrating) {\n if (void 0 === getServerSnapshot)\n throw Error(formatProdErrorMessage(407));\n getServerSnapshot = getServerSnapshot();\n } else {\n getServerSnapshot = getSnapshot();\n if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));\n 0 !== (workInProgressRootRenderLanes & 60) ||\n pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);\n }\n hook.memoizedState = getServerSnapshot;\n var inst = { value: getServerSnapshot, getSnapshot: getSnapshot };\n hook.queue = inst;\n mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe), [\n subscribe\n ]);\n fiber.flags |= 2048;\n pushEffect(\n 9,\n updateStoreInstance.bind(\n null,\n fiber,\n inst,\n getServerSnapshot,\n getSnapshot\n ),\n { destroy: void 0 },\n null\n );\n return getServerSnapshot;\n },\n useId: function () {\n var hook = mountWorkInProgressHook(),\n identifierPrefix = workInProgressRoot.identifierPrefix;\n if (isHydrating) {\n var JSCompiler_inline_result = treeContextOverflow;\n var idWithLeadingBit = treeContextId;\n JSCompiler_inline_result =\n (\n idWithLeadingBit & ~(1 << (32 - clz32(idWithLeadingBit) - 1))\n ).toString(32) + JSCompiler_inline_result;\n identifierPrefix =\n \":\" + identifierPrefix + \"R\" + JSCompiler_inline_result;\n JSCompiler_inline_result = localIdCounter++;\n 0 < JSCompiler_inline_result &&\n (identifierPrefix += \"H\" + JSCompiler_inline_result.toString(32));\n identifierPrefix += \":\";\n } else\n (JSCompiler_inline_result = globalClientIdCounter++),\n (identifierPrefix =\n \":\" +\n identifierPrefix +\n \"r\" +\n JSCompiler_inline_result.toString(32) +\n \":\");\n return (hook.memoizedState = identifierPrefix);\n },\n useCacheRefresh: function () {\n return (mountWorkInProgressHook().memoizedState = refreshCache.bind(\n null,\n currentlyRenderingFiber$1\n ));\n }\n};\nHooksDispatcherOnMount.useMemoCache = useMemoCache;\nHooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus;\nHooksDispatcherOnMount.useFormState = mountActionState;\nHooksDispatcherOnMount.useActionState = mountActionState;\nHooksDispatcherOnMount.useOptimistic = function (passthrough) {\n var hook = mountWorkInProgressHook();\n hook.memoizedState = hook.baseState = passthrough;\n var queue = {\n pending: null,\n lanes: 0,\n dispatch: null,\n lastRenderedReducer: null,\n lastRenderedState: null\n };\n hook.queue = queue;\n hook = dispatchOptimisticSetState.bind(\n null,\n currentlyRenderingFiber$1,\n !0,\n queue\n );\n queue.dispatch = hook;\n return [passthrough, hook];\n};\nvar HooksDispatcherOnUpdate = {\n readContext: readContext,\n use: use,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: updateImperativeHandle,\n useInsertionEffect: updateInsertionEffect,\n useLayoutEffect: updateLayoutEffect,\n useMemo: updateMemo,\n useReducer: updateReducer,\n useRef: updateRef,\n useState: function () {\n return updateReducer(basicStateReducer);\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = updateWorkInProgressHook();\n return updateDeferredValueImpl(\n hook,\n currentHook.memoizedState,\n value,\n initialValue\n );\n },\n useTransition: function () {\n var booleanOrThenable = updateReducer(basicStateReducer)[0],\n start = updateWorkInProgressHook().memoizedState;\n return [\n \"boolean\" === typeof booleanOrThenable\n ? booleanOrThenable\n : useThenable(booleanOrThenable),\n start\n ];\n },\n useSyncExternalStore: updateSyncExternalStore,\n useId: updateId\n};\nHooksDispatcherOnUpdate.useCacheRefresh = updateRefresh;\nHooksDispatcherOnUpdate.useMemoCache = useMemoCache;\nHooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus;\nHooksDispatcherOnUpdate.useFormState = updateActionState;\nHooksDispatcherOnUpdate.useActionState = updateActionState;\nHooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) {\n var hook = updateWorkInProgressHook();\n return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n};\nvar HooksDispatcherOnRerender = {\n readContext: readContext,\n use: use,\n useCallback: updateCallback,\n useContext: readContext,\n useEffect: updateEffect,\n useImperativeHandle: updateImperativeHandle,\n useInsertionEffect: updateInsertionEffect,\n useLayoutEffect: updateLayoutEffect,\n useMemo: updateMemo,\n useReducer: rerenderReducer,\n useRef: updateRef,\n useState: function () {\n return rerenderReducer(basicStateReducer);\n },\n useDebugValue: mountDebugValue,\n useDeferredValue: function (value, initialValue) {\n var hook = updateWorkInProgressHook();\n return null === currentHook\n ? mountDeferredValueImpl(hook, value, initialValue)\n : updateDeferredValueImpl(\n hook,\n currentHook.memoizedState,\n value,\n initialValue\n );\n },\n useTransition: function () {\n var booleanOrThenable = rerenderReducer(basicStateReducer)[0],\n start = updateWorkInProgressHook().memoizedState;\n return [\n \"boolean\" === typeof booleanOrThenable\n ? booleanOrThenable\n : useThenable(booleanOrThenable),\n start\n ];\n },\n useSyncExternalStore: updateSyncExternalStore,\n useId: updateId\n};\nHooksDispatcherOnRerender.useCacheRefresh = updateRefresh;\nHooksDispatcherOnRerender.useMemoCache = useMemoCache;\nHooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus;\nHooksDispatcherOnRerender.useFormState = rerenderActionState;\nHooksDispatcherOnRerender.useActionState = rerenderActionState;\nHooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) {\n var hook = updateWorkInProgressHook();\n if (null !== currentHook)\n return updateOptimisticImpl(hook, currentHook, passthrough, reducer);\n hook.baseState = passthrough;\n return [passthrough, hook.queue.dispatch];\n};\nfunction applyDerivedStateFromProps(\n workInProgress,\n ctor,\n getDerivedStateFromProps,\n nextProps\n) {\n ctor = workInProgress.memoizedState;\n getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);\n getDerivedStateFromProps =\n null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps\n ? ctor\n : assign({}, ctor, getDerivedStateFromProps);\n workInProgress.memoizedState = getDerivedStateFromProps;\n 0 === workInProgress.lanes &&\n (workInProgress.updateQueue.baseState = getDerivedStateFromProps);\n}\nvar classComponentUpdater = {\n isMounted: function (component) {\n return (component = component._reactInternals)\n ? getNearestMountedFiber(component) === component\n : !1;\n },\n enqueueSetState: function (inst, payload, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n payload = enqueueUpdate(inst, update, lane);\n null !== payload &&\n (scheduleUpdateOnFiber(payload, inst, lane),\n entangleTransitions(payload, inst, lane));\n },\n enqueueReplaceState: function (inst, payload, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.tag = 1;\n update.payload = payload;\n void 0 !== callback && null !== callback && (update.callback = callback);\n payload = enqueueUpdate(inst, update, lane);\n null !== payload &&\n (scheduleUpdateOnFiber(payload, inst, lane),\n entangleTransitions(payload, inst, lane));\n },\n enqueueForceUpdate: function (inst, callback) {\n inst = inst._reactInternals;\n var lane = requestUpdateLane(),\n update = createUpdate(lane);\n update.tag = 2;\n void 0 !== callback && null !== callback && (update.callback = callback);\n callback = enqueueUpdate(inst, update, lane);\n null !== callback &&\n (scheduleUpdateOnFiber(callback, inst, lane),\n entangleTransitions(callback, inst, lane));\n }\n};\nfunction checkShouldComponentUpdate(\n workInProgress,\n ctor,\n oldProps,\n newProps,\n oldState,\n newState,\n nextContext\n) {\n workInProgress = workInProgress.stateNode;\n return \"function\" === typeof workInProgress.shouldComponentUpdate\n ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext)\n : ctor.prototype && ctor.prototype.isPureReactComponent\n ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)\n : !0;\n}\nfunction callComponentWillReceiveProps(\n workInProgress,\n instance,\n newProps,\n nextContext\n) {\n workInProgress = instance.state;\n \"function\" === typeof instance.componentWillReceiveProps &&\n instance.componentWillReceiveProps(newProps, nextContext);\n \"function\" === typeof instance.UNSAFE_componentWillReceiveProps &&\n instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);\n instance.state !== workInProgress &&\n classComponentUpdater.enqueueReplaceState(instance, instance.state, null);\n}\nfunction resolveClassComponentProps(Component, baseProps) {\n var newProps = baseProps;\n if (\"ref\" in baseProps) {\n newProps = {};\n for (var propName in baseProps)\n \"ref\" !== propName && (newProps[propName] = baseProps[propName]);\n }\n if ((Component = Component.defaultProps)) {\n newProps === baseProps && (newProps = assign({}, newProps));\n for (var propName$68 in Component)\n void 0 === newProps[propName$68] &&\n (newProps[propName$68] = Component[propName$68]);\n }\n return newProps;\n}\nvar reportGlobalError =\n \"function\" === typeof reportError\n ? reportError\n : function (error) {\n if (\n \"object\" === typeof window &&\n \"function\" === typeof window.ErrorEvent\n ) {\n var event = new window.ErrorEvent(\"error\", {\n bubbles: !0,\n cancelable: !0,\n message:\n \"object\" === typeof error &&\n null !== error &&\n \"string\" === typeof error.message\n ? String(error.message)\n : String(error),\n error: error\n });\n if (!window.dispatchEvent(event)) return;\n } else if (\n \"object\" === typeof process &&\n \"function\" === typeof process.emit\n ) {\n process.emit(\"uncaughtException\", error);\n return;\n }\n console.error(error);\n };\nfunction defaultOnUncaughtError(error) {\n reportGlobalError(error);\n}\nfunction defaultOnCaughtError(error) {\n console.error(error);\n}\nfunction defaultOnRecoverableError(error) {\n reportGlobalError(error);\n}\nfunction logUncaughtError(root, errorInfo) {\n try {\n var onUncaughtError = root.onUncaughtError;\n onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });\n } catch (e$69) {\n setTimeout(function () {\n throw e$69;\n });\n }\n}\nfunction logCaughtError(root, boundary, errorInfo) {\n try {\n var onCaughtError = root.onCaughtError;\n onCaughtError(errorInfo.value, {\n componentStack: errorInfo.stack,\n errorBoundary: 1 === boundary.tag ? boundary.stateNode : null\n });\n } catch (e$70) {\n setTimeout(function () {\n throw e$70;\n });\n }\n}\nfunction createRootErrorUpdate(root, errorInfo, lane) {\n lane = createUpdate(lane);\n lane.tag = 3;\n lane.payload = { element: null };\n lane.callback = function () {\n logUncaughtError(root, errorInfo);\n };\n return lane;\n}\nfunction createClassErrorUpdate(lane) {\n lane = createUpdate(lane);\n lane.tag = 3;\n return lane;\n}\nfunction initializeClassErrorUpdate(update, root, fiber, errorInfo) {\n var getDerivedStateFromError = fiber.type.getDerivedStateFromError;\n if (\"function\" === typeof getDerivedStateFromError) {\n var error = errorInfo.value;\n update.payload = function () {\n return getDerivedStateFromError(error);\n };\n update.callback = function () {\n logCaughtError(root, fiber, errorInfo);\n };\n }\n var inst = fiber.stateNode;\n null !== inst &&\n \"function\" === typeof inst.componentDidCatch &&\n (update.callback = function () {\n logCaughtError(root, fiber, errorInfo);\n \"function\" !== typeof getDerivedStateFromError &&\n (null === legacyErrorBoundariesThatAlreadyFailed\n ? (legacyErrorBoundariesThatAlreadyFailed = new Set([this]))\n : legacyErrorBoundariesThatAlreadyFailed.add(this));\n var stack = errorInfo.stack;\n this.componentDidCatch(errorInfo.value, {\n componentStack: null !== stack ? stack : \"\"\n });\n });\n}\nfunction throwException(\n root,\n returnFiber,\n sourceFiber,\n value,\n rootRenderLanes\n) {\n sourceFiber.flags |= 32768;\n if (\n null !== value &&\n \"object\" === typeof value &&\n \"function\" === typeof value.then\n ) {\n returnFiber = sourceFiber.alternate;\n null !== returnFiber &&\n propagateParentContextChanges(\n returnFiber,\n sourceFiber,\n rootRenderLanes,\n !0\n );\n sourceFiber = suspenseHandlerStackCursor.current;\n if (null !== sourceFiber) {\n switch (sourceFiber.tag) {\n case 13:\n return (\n null === shellBoundary\n ? renderDidSuspendDelayIfPossible()\n : null === sourceFiber.alternate &&\n 0 === workInProgressRootExitStatus &&\n (workInProgressRootExitStatus = 3),\n (sourceFiber.flags &= -257),\n (sourceFiber.flags |= 65536),\n (sourceFiber.lanes = rootRenderLanes),\n value === noopSuspenseyCommitThenable\n ? (sourceFiber.flags |= 16384)\n : ((returnFiber = sourceFiber.updateQueue),\n null === returnFiber\n ? (sourceFiber.updateQueue = new Set([value]))\n : returnFiber.add(value),\n attachPingListener(root, value, rootRenderLanes)),\n !1\n );\n case 22:\n return (\n (sourceFiber.flags |= 65536),\n value === noopSuspenseyCommitThenable\n ? (sourceFiber.flags |= 16384)\n : ((returnFiber = sourceFiber.updateQueue),\n null === returnFiber\n ? ((returnFiber = {\n transitions: null,\n markerInstances: null,\n retryQueue: new Set([value])\n }),\n (sourceFiber.updateQueue = returnFiber))\n : ((sourceFiber = returnFiber.retryQueue),\n null === sourceFiber\n ? (returnFiber.retryQueue = new Set([value]))\n : sourceFiber.add(value)),\n attachPingListener(root, value, rootRenderLanes)),\n !1\n );\n }\n throw Error(formatProdErrorMessage(435, sourceFiber.tag));\n }\n attachPingListener(root, value, rootRenderLanes);\n renderDidSuspendDelayIfPossible();\n return !1;\n }\n if (isHydrating)\n return (\n (returnFiber = suspenseHandlerStackCursor.current),\n null !== returnFiber\n ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256),\n (returnFiber.flags |= 65536),\n (returnFiber.lanes = rootRenderLanes),\n value !== HydrationMismatchException &&\n ((root = Error(formatProdErrorMessage(422), { cause: value })),\n queueHydrationError(createCapturedValueAtFiber(root, sourceFiber))))\n : (value !== HydrationMismatchException &&\n ((returnFiber = Error(formatProdErrorMessage(423), {\n cause: value\n })),\n queueHydrationError(\n createCapturedValueAtFiber(returnFiber, sourceFiber)\n )),\n (root = root.current.alternate),\n (root.flags |= 65536),\n (rootRenderLanes &= -rootRenderLanes),\n (root.lanes |= rootRenderLanes),\n (value = createCapturedValueAtFiber(value, sourceFiber)),\n (rootRenderLanes = createRootErrorUpdate(\n root.stateNode,\n value,\n rootRenderLanes\n )),\n enqueueCapturedUpdate(root, rootRenderLanes),\n 4 !== workInProgressRootExitStatus &&\n (workInProgressRootExitStatus = 2)),\n !1\n );\n var wrapperError = Error(formatProdErrorMessage(520), { cause: value });\n wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);\n null === workInProgressRootConcurrentErrors\n ? (workInProgressRootConcurrentErrors = [wrapperError])\n : workInProgressRootConcurrentErrors.push(wrapperError);\n 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);\n if (null === returnFiber) return !0;\n value = createCapturedValueAtFiber(value, sourceFiber);\n sourceFiber = returnFiber;\n do {\n switch (sourceFiber.tag) {\n case 3:\n return (\n (sourceFiber.flags |= 65536),\n (root = rootRenderLanes & -rootRenderLanes),\n (sourceFiber.lanes |= root),\n (root = createRootErrorUpdate(sourceFiber.stateNode, value, root)),\n enqueueCapturedUpdate(sourceFiber, root),\n !1\n );\n case 1:\n if (\n ((returnFiber = sourceFiber.type),\n (wrapperError = sourceFiber.stateNode),\n 0 === (sourceFiber.flags & 128) &&\n (\"function\" === typeof returnFiber.getDerivedStateFromError ||\n (null !== wrapperError &&\n \"function\" === typeof wrapperError.componentDidCatch &&\n (null === legacyErrorBoundariesThatAlreadyFailed ||\n !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError)))))\n )\n return (\n (sourceFiber.flags |= 65536),\n (rootRenderLanes &= -rootRenderLanes),\n (sourceFiber.lanes |= rootRenderLanes),\n (rootRenderLanes = createClassErrorUpdate(rootRenderLanes)),\n initializeClassErrorUpdate(\n rootRenderLanes,\n root,\n sourceFiber,\n value\n ),\n enqueueCapturedUpdate(sourceFiber, rootRenderLanes),\n !1\n );\n }\n sourceFiber = sourceFiber.return;\n } while (null !== sourceFiber);\n return !1;\n}\nvar SelectiveHydrationException = Error(formatProdErrorMessage(461)),\n didReceiveUpdate = !1;\nfunction reconcileChildren(current, workInProgress, nextChildren, renderLanes) {\n workInProgress.child =\n null === current\n ? mountChildFibers(workInProgress, null, nextChildren, renderLanes)\n : reconcileChildFibers(\n workInProgress,\n current.child,\n nextChildren,\n renderLanes\n );\n}\nfunction updateForwardRef(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n Component = Component.render;\n var ref = workInProgress.ref;\n if (\"ref\" in nextProps) {\n var propsWithoutRef = {};\n for (var key in nextProps)\n \"ref\" !== key && (propsWithoutRef[key] = nextProps[key]);\n } else propsWithoutRef = nextProps;\n prepareToReadContext(workInProgress);\n nextProps = renderWithHooks(\n current,\n workInProgress,\n Component,\n propsWithoutRef,\n ref,\n renderLanes\n );\n key = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && key && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n return workInProgress.child;\n}\nfunction updateMemoComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n if (null === current) {\n var type = Component.type;\n if (\n \"function\" === typeof type &&\n !shouldConstruct(type) &&\n void 0 === type.defaultProps &&\n null === Component.compare\n )\n return (\n (workInProgress.tag = 15),\n (workInProgress.type = type),\n updateSimpleMemoComponent(\n current,\n workInProgress,\n type,\n nextProps,\n renderLanes\n )\n );\n current = createFiberFromTypeAndProps(\n Component.type,\n null,\n nextProps,\n workInProgress,\n workInProgress.mode,\n renderLanes\n );\n current.ref = workInProgress.ref;\n current.return = workInProgress;\n return (workInProgress.child = current);\n }\n type = current.child;\n if (!checkScheduledUpdateOrContext(current, renderLanes)) {\n var prevProps = type.memoizedProps;\n Component = Component.compare;\n Component = null !== Component ? Component : shallowEqual;\n if (Component(prevProps, nextProps) && current.ref === workInProgress.ref)\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n }\n workInProgress.flags |= 1;\n current = createWorkInProgress(type, nextProps);\n current.ref = workInProgress.ref;\n current.return = workInProgress;\n return (workInProgress.child = current);\n}\nfunction updateSimpleMemoComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n if (null !== current) {\n var prevProps = current.memoizedProps;\n if (\n shallowEqual(prevProps, nextProps) &&\n current.ref === workInProgress.ref\n )\n if (\n ((didReceiveUpdate = !1),\n (workInProgress.pendingProps = nextProps = prevProps),\n checkScheduledUpdateOrContext(current, renderLanes))\n )\n 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);\n else\n return (\n (workInProgress.lanes = current.lanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n }\n return updateFunctionComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n );\n}\nfunction updateOffscreenComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n nextChildren = nextProps.children,\n nextIsDetached = 0 !== (workInProgress.stateNode._pendingVisibility & 2),\n prevState = null !== current ? current.memoizedState : null;\n markRef(current, workInProgress);\n if (\"hidden\" === nextProps.mode || nextIsDetached) {\n if (0 !== (workInProgress.flags & 128)) {\n nextProps =\n null !== prevState ? prevState.baseLanes | renderLanes : renderLanes;\n if (null !== current) {\n nextChildren = workInProgress.child = current.child;\n for (nextIsDetached = 0; null !== nextChildren; )\n (nextIsDetached =\n nextIsDetached | nextChildren.lanes | nextChildren.childLanes),\n (nextChildren = nextChildren.sibling);\n workInProgress.childLanes = nextIsDetached & ~nextProps;\n } else (workInProgress.childLanes = 0), (workInProgress.child = null);\n return deferHiddenOffscreenComponent(\n current,\n workInProgress,\n nextProps,\n renderLanes\n );\n }\n if (0 !== (renderLanes & 536870912))\n (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }),\n null !== current &&\n pushTransition(\n workInProgress,\n null !== prevState ? prevState.cachePool : null\n ),\n null !== prevState\n ? pushHiddenContext(workInProgress, prevState)\n : reuseHiddenContextOnStack(),\n pushOffscreenSuspenseHandler(workInProgress);\n else\n return (\n (workInProgress.lanes = workInProgress.childLanes = 536870912),\n deferHiddenOffscreenComponent(\n current,\n workInProgress,\n null !== prevState ? prevState.baseLanes | renderLanes : renderLanes,\n renderLanes\n )\n );\n } else\n null !== prevState\n ? (pushTransition(workInProgress, prevState.cachePool),\n pushHiddenContext(workInProgress, prevState),\n reuseSuspenseHandlerOnStack(workInProgress),\n (workInProgress.memoizedState = null))\n : (null !== current && pushTransition(workInProgress, null),\n reuseHiddenContextOnStack(),\n reuseSuspenseHandlerOnStack(workInProgress));\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\nfunction deferHiddenOffscreenComponent(\n current,\n workInProgress,\n nextBaseLanes,\n renderLanes\n) {\n var JSCompiler_inline_result = peekCacheFromPool();\n JSCompiler_inline_result =\n null === JSCompiler_inline_result\n ? null\n : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result };\n workInProgress.memoizedState = {\n baseLanes: nextBaseLanes,\n cachePool: JSCompiler_inline_result\n };\n null !== current && pushTransition(workInProgress, null);\n reuseHiddenContextOnStack();\n pushOffscreenSuspenseHandler(workInProgress);\n null !== current &&\n propagateParentContextChanges(current, workInProgress, renderLanes, !0);\n return null;\n}\nfunction markRef(current, workInProgress) {\n var ref = workInProgress.ref;\n if (null === ref)\n null !== current &&\n null !== current.ref &&\n (workInProgress.flags |= 2097664);\n else {\n if (\"function\" !== typeof ref && \"object\" !== typeof ref)\n throw Error(formatProdErrorMessage(284));\n if (null === current || current.ref !== ref)\n workInProgress.flags |= 2097664;\n }\n}\nfunction updateFunctionComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n Component = renderWithHooks(\n current,\n workInProgress,\n Component,\n nextProps,\n void 0,\n renderLanes\n );\n nextProps = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && nextProps && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, Component, renderLanes);\n return workInProgress.child;\n}\nfunction replayFunctionComponent(\n current,\n workInProgress,\n nextProps,\n Component,\n secondArg,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n workInProgress.updateQueue = null;\n nextProps = renderWithHooksAgain(\n workInProgress,\n Component,\n nextProps,\n secondArg\n );\n finishRenderingHooks(current);\n Component = checkDidRenderIdHook();\n if (null !== current && !didReceiveUpdate)\n return (\n bailoutHooks(current, workInProgress, renderLanes),\n bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes)\n );\n isHydrating && Component && pushMaterializedTreeId(workInProgress);\n workInProgress.flags |= 1;\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n return workInProgress.child;\n}\nfunction updateClassComponent(\n current,\n workInProgress,\n Component,\n nextProps,\n renderLanes\n) {\n prepareToReadContext(workInProgress);\n if (null === workInProgress.stateNode) {\n var context = emptyContextObject,\n contextType = Component.contextType;\n \"object\" === typeof contextType &&\n null !== contextType &&\n (context = readContext(contextType));\n context = new Component(nextProps, context);\n workInProgress.memoizedState =\n null !== context.state && void 0 !== context.state ? context.state : null;\n context.updater = classComponentUpdater;\n workInProgress.stateNode = context;\n context._reactInternals = workInProgress;\n context = workInProgress.stateNode;\n context.props = nextProps;\n context.state = workInProgress.memoizedState;\n context.refs = {};\n initializeUpdateQueue(workInProgress);\n contextType = Component.contextType;\n context.context =\n \"object\" === typeof contextType && null !== contextType\n ? readContext(contextType)\n : emptyContextObject;\n context.state = workInProgress.memoizedState;\n contextType = Component.getDerivedStateFromProps;\n \"function\" === typeof contextType &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n contextType,\n nextProps\n ),\n (context.state = workInProgress.memoizedState));\n \"function\" === typeof Component.getDerivedStateFromProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate ||\n (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n \"function\" !== typeof context.componentWillMount) ||\n ((contextType = context.state),\n \"function\" === typeof context.componentWillMount &&\n context.componentWillMount(),\n \"function\" === typeof context.UNSAFE_componentWillMount &&\n context.UNSAFE_componentWillMount(),\n contextType !== context.state &&\n classComponentUpdater.enqueueReplaceState(context, context.state, null),\n processUpdateQueue(workInProgress, nextProps, context, renderLanes),\n suspendIfUpdateReadFromEntangledAsyncAction(),\n (context.state = workInProgress.memoizedState));\n \"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308);\n nextProps = !0;\n } else if (null === current) {\n context = workInProgress.stateNode;\n var unresolvedOldProps = workInProgress.memoizedProps,\n oldProps = resolveClassComponentProps(Component, unresolvedOldProps);\n context.props = oldProps;\n var oldContext = context.context,\n contextType$jscomp$0 = Component.contextType;\n contextType = emptyContextObject;\n \"object\" === typeof contextType$jscomp$0 &&\n null !== contextType$jscomp$0 &&\n (contextType = readContext(contextType$jscomp$0));\n var getDerivedStateFromProps = Component.getDerivedStateFromProps;\n contextType$jscomp$0 =\n \"function\" === typeof getDerivedStateFromProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate;\n unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps;\n contextType$jscomp$0 ||\n (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof context.componentWillReceiveProps) ||\n ((unresolvedOldProps || oldContext !== contextType) &&\n callComponentWillReceiveProps(\n workInProgress,\n context,\n nextProps,\n contextType\n ));\n hasForceUpdate = !1;\n var oldState = workInProgress.memoizedState;\n context.state = oldState;\n processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n suspendIfUpdateReadFromEntangledAsyncAction();\n oldContext = workInProgress.memoizedState;\n unresolvedOldProps || oldState !== oldContext || hasForceUpdate\n ? (\"function\" === typeof getDerivedStateFromProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n getDerivedStateFromProps,\n nextProps\n ),\n (oldContext = workInProgress.memoizedState)),\n (oldProps =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n oldProps,\n nextProps,\n oldState,\n oldContext,\n contextType\n ))\n ? (contextType$jscomp$0 ||\n (\"function\" !== typeof context.UNSAFE_componentWillMount &&\n \"function\" !== typeof context.componentWillMount) ||\n (\"function\" === typeof context.componentWillMount &&\n context.componentWillMount(),\n \"function\" === typeof context.UNSAFE_componentWillMount &&\n context.UNSAFE_componentWillMount()),\n \"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308))\n : (\"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = oldContext)),\n (context.props = nextProps),\n (context.state = oldContext),\n (context.context = contextType),\n (nextProps = oldProps))\n : (\"function\" === typeof context.componentDidMount &&\n (workInProgress.flags |= 4194308),\n (nextProps = !1));\n } else {\n context = workInProgress.stateNode;\n cloneUpdateQueue(current, workInProgress);\n contextType = workInProgress.memoizedProps;\n contextType$jscomp$0 = resolveClassComponentProps(Component, contextType);\n context.props = contextType$jscomp$0;\n getDerivedStateFromProps = workInProgress.pendingProps;\n oldState = context.context;\n oldContext = Component.contextType;\n oldProps = emptyContextObject;\n \"object\" === typeof oldContext &&\n null !== oldContext &&\n (oldProps = readContext(oldContext));\n unresolvedOldProps = Component.getDerivedStateFromProps;\n (oldContext =\n \"function\" === typeof unresolvedOldProps ||\n \"function\" === typeof context.getSnapshotBeforeUpdate) ||\n (\"function\" !== typeof context.UNSAFE_componentWillReceiveProps &&\n \"function\" !== typeof context.componentWillReceiveProps) ||\n ((contextType !== getDerivedStateFromProps || oldState !== oldProps) &&\n callComponentWillReceiveProps(\n workInProgress,\n context,\n nextProps,\n oldProps\n ));\n hasForceUpdate = !1;\n oldState = workInProgress.memoizedState;\n context.state = oldState;\n processUpdateQueue(workInProgress, nextProps, context, renderLanes);\n suspendIfUpdateReadFromEntangledAsyncAction();\n var newState = workInProgress.memoizedState;\n contextType !== getDerivedStateFromProps ||\n oldState !== newState ||\n hasForceUpdate ||\n (null !== current &&\n null !== current.dependencies &&\n checkIfContextChanged(current.dependencies))\n ? (\"function\" === typeof unresolvedOldProps &&\n (applyDerivedStateFromProps(\n workInProgress,\n Component,\n unresolvedOldProps,\n nextProps\n ),\n (newState = workInProgress.memoizedState)),\n (contextType$jscomp$0 =\n hasForceUpdate ||\n checkShouldComponentUpdate(\n workInProgress,\n Component,\n contextType$jscomp$0,\n nextProps,\n oldState,\n newState,\n oldProps\n ) ||\n (null !== current &&\n null !== current.dependencies &&\n checkIfContextChanged(current.dependencies)))\n ? (oldContext ||\n (\"function\" !== typeof context.UNSAFE_componentWillUpdate &&\n \"function\" !== typeof context.componentWillUpdate) ||\n (\"function\" === typeof context.componentWillUpdate &&\n context.componentWillUpdate(nextProps, newState, oldProps),\n \"function\" === typeof context.UNSAFE_componentWillUpdate &&\n context.UNSAFE_componentWillUpdate(\n nextProps,\n newState,\n oldProps\n )),\n \"function\" === typeof context.componentDidUpdate &&\n (workInProgress.flags |= 4),\n \"function\" === typeof context.getSnapshotBeforeUpdate &&\n (workInProgress.flags |= 1024))\n : (\"function\" !== typeof context.componentDidUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 4),\n \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 1024),\n (workInProgress.memoizedProps = nextProps),\n (workInProgress.memoizedState = newState)),\n (context.props = nextProps),\n (context.state = newState),\n (context.context = oldProps),\n (nextProps = contextType$jscomp$0))\n : (\"function\" !== typeof context.componentDidUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 4),\n \"function\" !== typeof context.getSnapshotBeforeUpdate ||\n (contextType === current.memoizedProps &&\n oldState === current.memoizedState) ||\n (workInProgress.flags |= 1024),\n (nextProps = !1));\n }\n context = nextProps;\n markRef(current, workInProgress);\n nextProps = 0 !== (workInProgress.flags & 128);\n context || nextProps\n ? ((context = workInProgress.stateNode),\n (Component =\n nextProps && \"function\" !== typeof Component.getDerivedStateFromError\n ? null\n : context.render()),\n (workInProgress.flags |= 1),\n null !== current && nextProps\n ? ((workInProgress.child = reconcileChildFibers(\n workInProgress,\n current.child,\n null,\n renderLanes\n )),\n (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n Component,\n renderLanes\n )))\n : reconcileChildren(current, workInProgress, Component, renderLanes),\n (workInProgress.memoizedState = context.state),\n (current = workInProgress.child))\n : (current = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n ));\n return current;\n}\nfunction mountHostRootWithoutHydrating(\n current,\n workInProgress,\n nextChildren,\n renderLanes\n) {\n resetHydrationState();\n workInProgress.flags |= 256;\n reconcileChildren(current, workInProgress, nextChildren, renderLanes);\n return workInProgress.child;\n}\nvar SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 };\nfunction mountSuspenseOffscreenState(renderLanes) {\n return { baseLanes: renderLanes, cachePool: getSuspendedCache() };\n}\nfunction getRemainingWorkInPrimaryTree(\n current,\n primaryTreeDidDefer,\n renderLanes\n) {\n current = null !== current ? current.childLanes & ~renderLanes : 0;\n primaryTreeDidDefer && (current |= workInProgressDeferredLane);\n return current;\n}\nfunction updateSuspenseComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n showFallback = !1,\n didSuspend = 0 !== (workInProgress.flags & 128),\n JSCompiler_temp;\n (JSCompiler_temp = didSuspend) ||\n (JSCompiler_temp =\n null !== current && null === current.memoizedState\n ? !1\n : 0 !== (suspenseStackCursor.current & 2));\n JSCompiler_temp && ((showFallback = !0), (workInProgress.flags &= -129));\n JSCompiler_temp = 0 !== (workInProgress.flags & 32);\n workInProgress.flags &= -33;\n if (null === current) {\n if (isHydrating) {\n showFallback\n ? pushPrimaryTreeSuspenseHandler(workInProgress)\n : reuseSuspenseHandlerOnStack(workInProgress);\n if (isHydrating) {\n var nextInstance = nextHydratableInstance,\n JSCompiler_temp$jscomp$0;\n if ((JSCompiler_temp$jscomp$0 = nextInstance)) {\n c: {\n JSCompiler_temp$jscomp$0 = nextInstance;\n for (\n nextInstance = rootOrSingletonContext;\n 8 !== JSCompiler_temp$jscomp$0.nodeType;\n\n ) {\n if (!nextInstance) {\n nextInstance = null;\n break c;\n }\n JSCompiler_temp$jscomp$0 = getNextHydratable(\n JSCompiler_temp$jscomp$0.nextSibling\n );\n if (null === JSCompiler_temp$jscomp$0) {\n nextInstance = null;\n break c;\n }\n }\n nextInstance = JSCompiler_temp$jscomp$0;\n }\n null !== nextInstance\n ? ((workInProgress.memoizedState = {\n dehydrated: nextInstance,\n treeContext:\n null !== treeContextProvider\n ? { id: treeContextId, overflow: treeContextOverflow }\n : null,\n retryLane: 536870912\n }),\n (JSCompiler_temp$jscomp$0 = createFiberImplClass(\n 18,\n null,\n null,\n 0\n )),\n (JSCompiler_temp$jscomp$0.stateNode = nextInstance),\n (JSCompiler_temp$jscomp$0.return = workInProgress),\n (workInProgress.child = JSCompiler_temp$jscomp$0),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null),\n (JSCompiler_temp$jscomp$0 = !0))\n : (JSCompiler_temp$jscomp$0 = !1);\n }\n JSCompiler_temp$jscomp$0 || throwOnHydrationMismatch(workInProgress);\n }\n nextInstance = workInProgress.memoizedState;\n if (\n null !== nextInstance &&\n ((nextInstance = nextInstance.dehydrated), null !== nextInstance)\n )\n return (\n \"$!\" === nextInstance.data\n ? (workInProgress.lanes = 16)\n : (workInProgress.lanes = 536870912),\n null\n );\n popSuspenseHandler(workInProgress);\n }\n nextInstance = nextProps.children;\n nextProps = nextProps.fallback;\n if (showFallback)\n return (\n reuseSuspenseHandlerOnStack(workInProgress),\n (showFallback = workInProgress.mode),\n (nextInstance = mountWorkInProgressOffscreenFiber(\n { mode: \"hidden\", children: nextInstance },\n showFallback\n )),\n (nextProps = createFiberFromFragment(\n nextProps,\n showFallback,\n renderLanes,\n null\n )),\n (nextInstance.return = workInProgress),\n (nextProps.return = workInProgress),\n (nextInstance.sibling = nextProps),\n (workInProgress.child = nextInstance),\n (showFallback = workInProgress.child),\n (showFallback.memoizedState = mountSuspenseOffscreenState(renderLanes)),\n (showFallback.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n nextProps\n );\n pushPrimaryTreeSuspenseHandler(workInProgress);\n return mountSuspensePrimaryChildren(workInProgress, nextInstance);\n }\n JSCompiler_temp$jscomp$0 = current.memoizedState;\n if (\n null !== JSCompiler_temp$jscomp$0 &&\n ((nextInstance = JSCompiler_temp$jscomp$0.dehydrated),\n null !== nextInstance)\n ) {\n if (didSuspend)\n workInProgress.flags & 256\n ? (pushPrimaryTreeSuspenseHandler(workInProgress),\n (workInProgress.flags &= -257),\n (workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n )))\n : null !== workInProgress.memoizedState\n ? (reuseSuspenseHandlerOnStack(workInProgress),\n (workInProgress.child = current.child),\n (workInProgress.flags |= 128),\n (workInProgress = null))\n : (reuseSuspenseHandlerOnStack(workInProgress),\n (showFallback = nextProps.fallback),\n (nextInstance = workInProgress.mode),\n (nextProps = mountWorkInProgressOffscreenFiber(\n { mode: \"visible\", children: nextProps.children },\n nextInstance\n )),\n (showFallback = createFiberFromFragment(\n showFallback,\n nextInstance,\n renderLanes,\n null\n )),\n (showFallback.flags |= 2),\n (nextProps.return = workInProgress),\n (showFallback.return = workInProgress),\n (nextProps.sibling = showFallback),\n (workInProgress.child = nextProps),\n reconcileChildFibers(\n workInProgress,\n current.child,\n null,\n renderLanes\n ),\n (nextProps = workInProgress.child),\n (nextProps.memoizedState =\n mountSuspenseOffscreenState(renderLanes)),\n (nextProps.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n (workInProgress = showFallback));\n else if (\n (pushPrimaryTreeSuspenseHandler(workInProgress),\n \"$!\" === nextInstance.data)\n ) {\n JSCompiler_temp =\n nextInstance.nextSibling && nextInstance.nextSibling.dataset;\n if (JSCompiler_temp) var digest = JSCompiler_temp.dgst;\n JSCompiler_temp = digest;\n nextProps = Error(formatProdErrorMessage(419));\n nextProps.stack = \"\";\n nextProps.digest = JSCompiler_temp;\n queueHydrationError({ value: nextProps, source: null, stack: null });\n workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else if (\n (didReceiveUpdate ||\n propagateParentContextChanges(current, workInProgress, renderLanes, !1),\n (JSCompiler_temp = 0 !== (renderLanes & current.childLanes)),\n didReceiveUpdate || JSCompiler_temp)\n ) {\n JSCompiler_temp = workInProgressRoot;\n if (null !== JSCompiler_temp) {\n nextProps = renderLanes & -renderLanes;\n if (0 !== (nextProps & 42)) nextProps = 1;\n else\n switch (nextProps) {\n case 2:\n nextProps = 1;\n break;\n case 8:\n nextProps = 4;\n break;\n case 32:\n nextProps = 16;\n break;\n case 128:\n case 256:\n case 512:\n case 1024:\n case 2048:\n case 4096:\n case 8192:\n case 16384:\n case 32768:\n case 65536:\n case 131072:\n case 262144:\n case 524288:\n case 1048576:\n case 2097152:\n case 4194304:\n case 8388608:\n case 16777216:\n case 33554432:\n nextProps = 64;\n break;\n case 268435456:\n nextProps = 134217728;\n break;\n default:\n nextProps = 0;\n }\n nextProps =\n 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes))\n ? 0\n : nextProps;\n if (0 !== nextProps && nextProps !== JSCompiler_temp$jscomp$0.retryLane)\n throw (\n ((JSCompiler_temp$jscomp$0.retryLane = nextProps),\n enqueueConcurrentRenderForLane(current, nextProps),\n scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps),\n SelectiveHydrationException)\n );\n }\n \"$?\" === nextInstance.data || renderDidSuspendDelayIfPossible();\n workInProgress = retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n );\n } else\n \"$?\" === nextInstance.data\n ? ((workInProgress.flags |= 128),\n (workInProgress.child = current.child),\n (workInProgress = retryDehydratedSuspenseBoundary.bind(\n null,\n current\n )),\n (nextInstance._reactRetry = workInProgress),\n (workInProgress = null))\n : ((current = JSCompiler_temp$jscomp$0.treeContext),\n (nextHydratableInstance = getNextHydratable(\n nextInstance.nextSibling\n )),\n (hydrationParentFiber = workInProgress),\n (isHydrating = !0),\n (hydrationErrors = null),\n (rootOrSingletonContext = !1),\n null !== current &&\n ((idStack[idStackIndex++] = treeContextId),\n (idStack[idStackIndex++] = treeContextOverflow),\n (idStack[idStackIndex++] = treeContextProvider),\n (treeContextId = current.id),\n (treeContextOverflow = current.overflow),\n (treeContextProvider = workInProgress)),\n (workInProgress = mountSuspensePrimaryChildren(\n workInProgress,\n nextProps.children\n )),\n (workInProgress.flags |= 4096));\n return workInProgress;\n }\n if (showFallback)\n return (\n reuseSuspenseHandlerOnStack(workInProgress),\n (showFallback = nextProps.fallback),\n (nextInstance = workInProgress.mode),\n (JSCompiler_temp$jscomp$0 = current.child),\n (digest = JSCompiler_temp$jscomp$0.sibling),\n (nextProps = createWorkInProgress(JSCompiler_temp$jscomp$0, {\n mode: \"hidden\",\n children: nextProps.children\n })),\n (nextProps.subtreeFlags =\n JSCompiler_temp$jscomp$0.subtreeFlags & 31457280),\n null !== digest\n ? (showFallback = createWorkInProgress(digest, showFallback))\n : ((showFallback = createFiberFromFragment(\n showFallback,\n nextInstance,\n renderLanes,\n null\n )),\n (showFallback.flags |= 2)),\n (showFallback.return = workInProgress),\n (nextProps.return = workInProgress),\n (nextProps.sibling = showFallback),\n (workInProgress.child = nextProps),\n (nextProps = showFallback),\n (showFallback = workInProgress.child),\n (nextInstance = current.child.memoizedState),\n null === nextInstance\n ? (nextInstance = mountSuspenseOffscreenState(renderLanes))\n : ((JSCompiler_temp$jscomp$0 = nextInstance.cachePool),\n null !== JSCompiler_temp$jscomp$0\n ? ((digest = CacheContext._currentValue),\n (JSCompiler_temp$jscomp$0 =\n JSCompiler_temp$jscomp$0.parent !== digest\n ? { parent: digest, pool: digest }\n : JSCompiler_temp$jscomp$0))\n : (JSCompiler_temp$jscomp$0 = getSuspendedCache()),\n (nextInstance = {\n baseLanes: nextInstance.baseLanes | renderLanes,\n cachePool: JSCompiler_temp$jscomp$0\n })),\n (showFallback.memoizedState = nextInstance),\n (showFallback.childLanes = getRemainingWorkInPrimaryTree(\n current,\n JSCompiler_temp,\n renderLanes\n )),\n (workInProgress.memoizedState = SUSPENDED_MARKER),\n nextProps\n );\n pushPrimaryTreeSuspenseHandler(workInProgress);\n renderLanes = current.child;\n current = renderLanes.sibling;\n renderLanes = createWorkInProgress(renderLanes, {\n mode: \"visible\",\n children: nextProps.children\n });\n renderLanes.return = workInProgress;\n renderLanes.sibling = null;\n null !== current &&\n ((JSCompiler_temp = workInProgress.deletions),\n null === JSCompiler_temp\n ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16))\n : JSCompiler_temp.push(current));\n workInProgress.child = renderLanes;\n workInProgress.memoizedState = null;\n return renderLanes;\n}\nfunction mountSuspensePrimaryChildren(workInProgress, primaryChildren) {\n primaryChildren = mountWorkInProgressOffscreenFiber(\n { mode: \"visible\", children: primaryChildren },\n workInProgress.mode\n );\n primaryChildren.return = workInProgress;\n return (workInProgress.child = primaryChildren);\n}\nfunction mountWorkInProgressOffscreenFiber(offscreenProps, mode) {\n return createFiberFromOffscreen(offscreenProps, mode, 0, null);\n}\nfunction retrySuspenseComponentWithoutHydrating(\n current,\n workInProgress,\n renderLanes\n) {\n reconcileChildFibers(workInProgress, current.child, null, renderLanes);\n current = mountSuspensePrimaryChildren(\n workInProgress,\n workInProgress.pendingProps.children\n );\n current.flags |= 2;\n workInProgress.memoizedState = null;\n return current;\n}\nfunction scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {\n fiber.lanes |= renderLanes;\n var alternate = fiber.alternate;\n null !== alternate && (alternate.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);\n}\nfunction initSuspenseListRenderState(\n workInProgress,\n isBackwards,\n tail,\n lastContentRow,\n tailMode\n) {\n var renderState = workInProgress.memoizedState;\n null === renderState\n ? (workInProgress.memoizedState = {\n isBackwards: isBackwards,\n rendering: null,\n renderingStartTime: 0,\n last: lastContentRow,\n tail: tail,\n tailMode: tailMode\n })\n : ((renderState.isBackwards = isBackwards),\n (renderState.rendering = null),\n (renderState.renderingStartTime = 0),\n (renderState.last = lastContentRow),\n (renderState.tail = tail),\n (renderState.tailMode = tailMode));\n}\nfunction updateSuspenseListComponent(current, workInProgress, renderLanes) {\n var nextProps = workInProgress.pendingProps,\n revealOrder = nextProps.revealOrder,\n tailMode = nextProps.tail;\n reconcileChildren(current, workInProgress, nextProps.children, renderLanes);\n nextProps = suspenseStackCursor.current;\n if (0 !== (nextProps & 2))\n (nextProps = (nextProps & 1) | 2), (workInProgress.flags |= 128);\n else {\n if (null !== current && 0 !== (current.flags & 128))\n a: for (current = workInProgress.child; null !== current; ) {\n if (13 === current.tag)\n null !== current.memoizedState &&\n scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n else if (19 === current.tag)\n scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);\n else if (null !== current.child) {\n current.child.return = current;\n current = current.child;\n continue;\n }\n if (current === workInProgress) break a;\n for (; null === current.sibling; ) {\n if (null === current.return || current.return === workInProgress)\n break a;\n current = current.return;\n }\n current.sibling.return = current.return;\n current = current.sibling;\n }\n nextProps &= 1;\n }\n push(suspenseStackCursor, nextProps);\n switch (revealOrder) {\n case \"forwards\":\n renderLanes = workInProgress.child;\n for (revealOrder = null; null !== renderLanes; )\n (current = renderLanes.alternate),\n null !== current &&\n null === findFirstSuspended(current) &&\n (revealOrder = renderLanes),\n (renderLanes = renderLanes.sibling);\n renderLanes = revealOrder;\n null === renderLanes\n ? ((revealOrder = workInProgress.child), (workInProgress.child = null))\n : ((revealOrder = renderLanes.sibling), (renderLanes.sibling = null));\n initSuspenseListRenderState(\n workInProgress,\n !1,\n revealOrder,\n renderLanes,\n tailMode\n );\n break;\n case \"backwards\":\n renderLanes = null;\n revealOrder = workInProgress.child;\n for (workInProgress.child = null; null !== revealOrder; ) {\n current = revealOrder.alternate;\n if (null !== current && null === findFirstSuspended(current)) {\n workInProgress.child = revealOrder;\n break;\n }\n current = revealOrder.sibling;\n revealOrder.sibling = renderLanes;\n renderLanes = revealOrder;\n revealOrder = current;\n }\n initSuspenseListRenderState(\n workInProgress,\n !0,\n renderLanes,\n null,\n tailMode\n );\n break;\n case \"together\":\n initSuspenseListRenderState(workInProgress, !1, null, null, void 0);\n break;\n default:\n workInProgress.memoizedState = null;\n }\n return workInProgress.child;\n}\nfunction bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {\n null !== current && (workInProgress.dependencies = current.dependencies);\n workInProgressRootSkippedLanes |= workInProgress.lanes;\n if (0 === (renderLanes & workInProgress.childLanes))\n if (null !== current) {\n if (\n (propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n !1\n ),\n 0 === (renderLanes & workInProgress.childLanes))\n )\n return null;\n } else return null;\n if (null !== current && workInProgress.child !== current.child)\n throw Error(formatProdErrorMessage(153));\n if (null !== workInProgress.child) {\n current = workInProgress.child;\n renderLanes = createWorkInProgress(current, current.pendingProps);\n workInProgress.child = renderLanes;\n for (renderLanes.return = workInProgress; null !== current.sibling; )\n (current = current.sibling),\n (renderLanes = renderLanes.sibling =\n createWorkInProgress(current, current.pendingProps)),\n (renderLanes.return = workInProgress);\n renderLanes.sibling = null;\n }\n return workInProgress.child;\n}\nfunction checkScheduledUpdateOrContext(current, renderLanes) {\n if (0 !== (current.lanes & renderLanes)) return !0;\n current = current.dependencies;\n return null !== current && checkIfContextChanged(current) ? !0 : !1;\n}\nfunction attemptEarlyBailoutIfNoScheduledUpdate(\n current,\n workInProgress,\n renderLanes\n) {\n switch (workInProgress.tag) {\n case 3:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n resetHydrationState();\n break;\n case 27:\n case 5:\n pushHostContext(workInProgress);\n break;\n case 4:\n pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);\n break;\n case 10:\n pushProvider(\n workInProgress,\n workInProgress.type,\n workInProgress.memoizedProps.value\n );\n break;\n case 13:\n var state = workInProgress.memoizedState;\n if (null !== state) {\n if (null !== state.dehydrated)\n return (\n pushPrimaryTreeSuspenseHandler(workInProgress),\n (workInProgress.flags |= 128),\n null\n );\n if (0 !== (renderLanes & workInProgress.child.childLanes))\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n pushPrimaryTreeSuspenseHandler(workInProgress);\n current = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n );\n return null !== current ? current.sibling : null;\n }\n pushPrimaryTreeSuspenseHandler(workInProgress);\n break;\n case 19:\n var didSuspendBefore = 0 !== (current.flags & 128);\n state = 0 !== (renderLanes & workInProgress.childLanes);\n state ||\n (propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n !1\n ),\n (state = 0 !== (renderLanes & workInProgress.childLanes)));\n if (didSuspendBefore) {\n if (state)\n return updateSuspenseListComponent(\n current,\n workInProgress,\n renderLanes\n );\n workInProgress.flags |= 128;\n }\n didSuspendBefore = workInProgress.memoizedState;\n null !== didSuspendBefore &&\n ((didSuspendBefore.rendering = null),\n (didSuspendBefore.tail = null),\n (didSuspendBefore.lastEffect = null));\n push(suspenseStackCursor, suspenseStackCursor.current);\n if (state) break;\n else return null;\n case 22:\n case 23:\n return (\n (workInProgress.lanes = 0),\n updateOffscreenComponent(current, workInProgress, renderLanes)\n );\n case 24:\n pushProvider(workInProgress, CacheContext, current.memoizedState.cache);\n }\n return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);\n}\nfunction beginWork(current, workInProgress, renderLanes) {\n if (null !== current)\n if (current.memoizedProps !== workInProgress.pendingProps)\n didReceiveUpdate = !0;\n else {\n if (\n !checkScheduledUpdateOrContext(current, renderLanes) &&\n 0 === (workInProgress.flags & 128)\n )\n return (\n (didReceiveUpdate = !1),\n attemptEarlyBailoutIfNoScheduledUpdate(\n current,\n workInProgress,\n renderLanes\n )\n );\n didReceiveUpdate = 0 !== (current.flags & 131072) ? !0 : !1;\n }\n else\n (didReceiveUpdate = !1),\n isHydrating &&\n 0 !== (workInProgress.flags & 1048576) &&\n pushTreeId(workInProgress, treeForkCount, workInProgress.index);\n workInProgress.lanes = 0;\n switch (workInProgress.tag) {\n case 16:\n a: {\n current = workInProgress.pendingProps;\n var lazyComponent = workInProgress.elementType,\n init = lazyComponent._init;\n lazyComponent = init(lazyComponent._payload);\n workInProgress.type = lazyComponent;\n if (\"function\" === typeof lazyComponent)\n shouldConstruct(lazyComponent)\n ? ((current = resolveClassComponentProps(lazyComponent, current)),\n (workInProgress.tag = 1),\n (workInProgress = updateClassComponent(\n null,\n workInProgress,\n lazyComponent,\n current,\n renderLanes\n )))\n : ((workInProgress.tag = 0),\n (workInProgress = updateFunctionComponent(\n null,\n workInProgress,\n lazyComponent,\n current,\n renderLanes\n )));\n else {\n if (void 0 !== lazyComponent && null !== lazyComponent)\n if (\n ((init = lazyComponent.$$typeof), init === REACT_FORWARD_REF_TYPE)\n ) {\n workInProgress.tag = 11;\n workInProgress = updateForwardRef(\n null,\n workInProgress,\n lazyComponent,\n current,\n renderLanes\n );\n break a;\n } else if (init === REACT_MEMO_TYPE) {\n workInProgress.tag = 14;\n workInProgress = updateMemoComponent(\n null,\n workInProgress,\n lazyComponent,\n current,\n renderLanes\n );\n break a;\n }\n workInProgress =\n getComponentNameFromType(lazyComponent) || lazyComponent;\n throw Error(formatProdErrorMessage(306, workInProgress, \"\"));\n }\n }\n return workInProgress;\n case 0:\n return updateFunctionComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 1:\n return (\n (lazyComponent = workInProgress.type),\n (init = resolveClassComponentProps(\n lazyComponent,\n workInProgress.pendingProps\n )),\n updateClassComponent(\n current,\n workInProgress,\n lazyComponent,\n init,\n renderLanes\n )\n );\n case 3:\n a: {\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n );\n if (null === current) throw Error(formatProdErrorMessage(387));\n var nextProps = workInProgress.pendingProps;\n init = workInProgress.memoizedState;\n lazyComponent = init.element;\n cloneUpdateQueue(current, workInProgress);\n processUpdateQueue(workInProgress, nextProps, null, renderLanes);\n var nextState = workInProgress.memoizedState;\n nextProps = nextState.cache;\n pushProvider(workInProgress, CacheContext, nextProps);\n nextProps !== init.cache &&\n propagateContextChanges(\n workInProgress,\n [CacheContext],\n renderLanes,\n !0\n );\n suspendIfUpdateReadFromEntangledAsyncAction();\n nextProps = nextState.element;\n if (init.isDehydrated)\n if (\n ((init = {\n element: nextProps,\n isDehydrated: !1,\n cache: nextState.cache\n }),\n (workInProgress.updateQueue.baseState = init),\n (workInProgress.memoizedState = init),\n workInProgress.flags & 256)\n ) {\n workInProgress = mountHostRootWithoutHydrating(\n current,\n workInProgress,\n nextProps,\n renderLanes\n );\n break a;\n } else if (nextProps !== lazyComponent) {\n lazyComponent = createCapturedValueAtFiber(\n Error(formatProdErrorMessage(424)),\n workInProgress\n );\n queueHydrationError(lazyComponent);\n workInProgress = mountHostRootWithoutHydrating(\n current,\n workInProgress,\n nextProps,\n renderLanes\n );\n break a;\n } else\n for (\n nextHydratableInstance = getNextHydratable(\n workInProgress.stateNode.containerInfo.firstChild\n ),\n hydrationParentFiber = workInProgress,\n isHydrating = !0,\n hydrationErrors = null,\n rootOrSingletonContext = !0,\n renderLanes = mountChildFibers(\n workInProgress,\n null,\n nextProps,\n renderLanes\n ),\n workInProgress.child = renderLanes;\n renderLanes;\n\n )\n (renderLanes.flags = (renderLanes.flags & -3) | 4096),\n (renderLanes = renderLanes.sibling);\n else {\n resetHydrationState();\n if (nextProps === lazyComponent) {\n workInProgress = bailoutOnAlreadyFinishedWork(\n current,\n workInProgress,\n renderLanes\n );\n break a;\n }\n reconcileChildren(current, workInProgress, nextProps, renderLanes);\n }\n workInProgress = workInProgress.child;\n }\n return workInProgress;\n case 26:\n return (\n markRef(current, workInProgress),\n null === current\n ? (renderLanes = getResource(\n workInProgress.type,\n null,\n workInProgress.pendingProps,\n null\n ))\n ? (workInProgress.memoizedState = renderLanes)\n : isHydrating ||\n ((renderLanes = workInProgress.type),\n (current = workInProgress.pendingProps),\n (lazyComponent = getOwnerDocumentFromRootContainer(\n rootInstanceStackCursor.current\n ).createElement(renderLanes)),\n (lazyComponent[internalInstanceKey] = workInProgress),\n (lazyComponent[internalPropsKey] = current),\n setInitialProperties(lazyComponent, renderLanes, current),\n markNodeAsHoistable(lazyComponent),\n (workInProgress.stateNode = lazyComponent))\n : (workInProgress.memoizedState = getResource(\n workInProgress.type,\n current.memoizedProps,\n workInProgress.pendingProps,\n current.memoizedState\n )),\n null\n );\n case 27:\n return (\n pushHostContext(workInProgress),\n null === current &&\n isHydrating &&\n ((lazyComponent = workInProgress.stateNode =\n resolveSingletonInstance(\n workInProgress.type,\n workInProgress.pendingProps,\n rootInstanceStackCursor.current\n )),\n (hydrationParentFiber = workInProgress),\n (rootOrSingletonContext = !0),\n (nextHydratableInstance = getNextHydratable(\n lazyComponent.firstChild\n ))),\n (lazyComponent = workInProgress.pendingProps.children),\n null !== current || isHydrating\n ? reconcileChildren(\n current,\n workInProgress,\n lazyComponent,\n renderLanes\n )\n : (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n lazyComponent,\n renderLanes\n )),\n markRef(current, workInProgress),\n workInProgress.child\n );\n case 5:\n if (null === current && isHydrating) {\n if ((init = lazyComponent = nextHydratableInstance))\n (lazyComponent = canHydrateInstance(\n lazyComponent,\n workInProgress.type,\n workInProgress.pendingProps,\n rootOrSingletonContext\n )),\n null !== lazyComponent\n ? ((workInProgress.stateNode = lazyComponent),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = getNextHydratable(\n lazyComponent.firstChild\n )),\n (rootOrSingletonContext = !1),\n (init = !0))\n : (init = !1);\n init || throwOnHydrationMismatch(workInProgress);\n }\n pushHostContext(workInProgress);\n init = workInProgress.type;\n nextProps = workInProgress.pendingProps;\n nextState = null !== current ? current.memoizedProps : null;\n lazyComponent = nextProps.children;\n shouldSetTextContent(init, nextProps)\n ? (lazyComponent = null)\n : null !== nextState &&\n shouldSetTextContent(init, nextState) &&\n (workInProgress.flags |= 32);\n null !== workInProgress.memoizedState &&\n ((init = renderWithHooks(\n current,\n workInProgress,\n TransitionAwareHostComponent,\n null,\n null,\n renderLanes\n )),\n (HostTransitionContext._currentValue = init));\n markRef(current, workInProgress);\n reconcileChildren(current, workInProgress, lazyComponent, renderLanes);\n return workInProgress.child;\n case 6:\n if (null === current && isHydrating) {\n if ((current = renderLanes = nextHydratableInstance))\n (renderLanes = canHydrateTextInstance(\n renderLanes,\n workInProgress.pendingProps,\n rootOrSingletonContext\n )),\n null !== renderLanes\n ? ((workInProgress.stateNode = renderLanes),\n (hydrationParentFiber = workInProgress),\n (nextHydratableInstance = null),\n (current = !0))\n : (current = !1);\n current || throwOnHydrationMismatch(workInProgress);\n }\n return null;\n case 13:\n return updateSuspenseComponent(current, workInProgress, renderLanes);\n case 4:\n return (\n pushHostContainer(\n workInProgress,\n workInProgress.stateNode.containerInfo\n ),\n (lazyComponent = workInProgress.pendingProps),\n null === current\n ? (workInProgress.child = reconcileChildFibers(\n workInProgress,\n null,\n lazyComponent,\n renderLanes\n ))\n : reconcileChildren(\n current,\n workInProgress,\n lazyComponent,\n renderLanes\n ),\n workInProgress.child\n );\n case 11:\n return updateForwardRef(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 7:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps,\n renderLanes\n ),\n workInProgress.child\n );\n case 8:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 12:\n return (\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 10:\n return (\n (lazyComponent = workInProgress.pendingProps),\n pushProvider(workInProgress, workInProgress.type, lazyComponent.value),\n reconcileChildren(\n current,\n workInProgress,\n lazyComponent.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 9:\n return (\n (init = workInProgress.type._context),\n (lazyComponent = workInProgress.pendingProps.children),\n prepareToReadContext(workInProgress),\n (init = readContext(init)),\n (lazyComponent = lazyComponent(init)),\n (workInProgress.flags |= 1),\n reconcileChildren(current, workInProgress, lazyComponent, renderLanes),\n workInProgress.child\n );\n case 14:\n return updateMemoComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 15:\n return updateSimpleMemoComponent(\n current,\n workInProgress,\n workInProgress.type,\n workInProgress.pendingProps,\n renderLanes\n );\n case 19:\n return updateSuspenseListComponent(current, workInProgress, renderLanes);\n case 22:\n return updateOffscreenComponent(current, workInProgress, renderLanes);\n case 24:\n return (\n prepareToReadContext(workInProgress),\n (lazyComponent = readContext(CacheContext)),\n null === current\n ? ((init = peekCacheFromPool()),\n null === init &&\n ((init = workInProgressRoot),\n (nextProps = createCache()),\n (init.pooledCache = nextProps),\n nextProps.refCount++,\n null !== nextProps && (init.pooledCacheLanes |= renderLanes),\n (init = nextProps)),\n (workInProgress.memoizedState = {\n parent: lazyComponent,\n cache: init\n }),\n initializeUpdateQueue(workInProgress),\n pushProvider(workInProgress, CacheContext, init))\n : (0 !== (current.lanes & renderLanes) &&\n (cloneUpdateQueue(current, workInProgress),\n processUpdateQueue(workInProgress, null, null, renderLanes),\n suspendIfUpdateReadFromEntangledAsyncAction()),\n (init = current.memoizedState),\n (nextProps = workInProgress.memoizedState),\n init.parent !== lazyComponent\n ? ((init = { parent: lazyComponent, cache: lazyComponent }),\n (workInProgress.memoizedState = init),\n 0 === workInProgress.lanes &&\n (workInProgress.memoizedState =\n workInProgress.updateQueue.baseState =\n init),\n pushProvider(workInProgress, CacheContext, lazyComponent))\n : ((lazyComponent = nextProps.cache),\n pushProvider(workInProgress, CacheContext, lazyComponent),\n lazyComponent !== init.cache &&\n propagateContextChanges(\n workInProgress,\n [CacheContext],\n renderLanes,\n !0\n ))),\n reconcileChildren(\n current,\n workInProgress,\n workInProgress.pendingProps.children,\n renderLanes\n ),\n workInProgress.child\n );\n case 29:\n throw workInProgress.pendingProps;\n }\n throw Error(formatProdErrorMessage(156, workInProgress.tag));\n}\nvar valueCursor = createCursor(null),\n currentlyRenderingFiber = null,\n lastContextDependency = null,\n lastFullyObservedContext = null;\nfunction resetContextDependencies() {\n lastFullyObservedContext =\n lastContextDependency =\n currentlyRenderingFiber =\n null;\n}\nfunction pushProvider(providerFiber, context, nextValue) {\n push(valueCursor, context._currentValue);\n context._currentValue = nextValue;\n}\nfunction popProvider(context) {\n context._currentValue = valueCursor.current;\n pop(valueCursor);\n}\nfunction scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {\n for (; null !== parent; ) {\n var alternate = parent.alternate;\n (parent.childLanes & renderLanes) !== renderLanes\n ? ((parent.childLanes |= renderLanes),\n null !== alternate && (alternate.childLanes |= renderLanes))\n : null !== alternate &&\n (alternate.childLanes & renderLanes) !== renderLanes &&\n (alternate.childLanes |= renderLanes);\n if (parent === propagationRoot) break;\n parent = parent.return;\n }\n}\nfunction propagateContextChanges(\n workInProgress,\n contexts,\n renderLanes,\n forcePropagateEntireTree\n) {\n var fiber = workInProgress.child;\n null !== fiber && (fiber.return = workInProgress);\n for (; null !== fiber; ) {\n var list = fiber.dependencies;\n if (null !== list) {\n var nextFiber = fiber.child;\n list = list.firstContext;\n a: for (; null !== list; ) {\n var dependency = list;\n list = fiber;\n for (var i = 0; i < contexts.length; i++)\n if (dependency.context === contexts[i]) {\n list.lanes |= renderLanes;\n dependency = list.alternate;\n null !== dependency && (dependency.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(\n list.return,\n renderLanes,\n workInProgress\n );\n forcePropagateEntireTree || (nextFiber = null);\n break a;\n }\n list = dependency.next;\n }\n } else if (18 === fiber.tag) {\n nextFiber = fiber.return;\n if (null === nextFiber) throw Error(formatProdErrorMessage(341));\n nextFiber.lanes |= renderLanes;\n list = nextFiber.alternate;\n null !== list && (list.lanes |= renderLanes);\n scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress);\n nextFiber = null;\n } else nextFiber = fiber.child;\n if (null !== nextFiber) nextFiber.return = fiber;\n else\n for (nextFiber = fiber; null !== nextFiber; ) {\n if (nextFiber === workInProgress) {\n nextFiber = null;\n break;\n }\n fiber = nextFiber.sibling;\n if (null !== fiber) {\n fiber.return = nextFiber.return;\n nextFiber = fiber;\n break;\n }\n nextFiber = nextFiber.return;\n }\n fiber = nextFiber;\n }\n}\nfunction propagateParentContextChanges(\n current,\n workInProgress,\n renderLanes,\n forcePropagateEntireTree\n) {\n current = null;\n for (\n var parent = workInProgress, isInsidePropagationBailout = !1;\n null !== parent;\n\n ) {\n if (!isInsidePropagationBailout)\n if (0 !== (parent.flags & 524288)) isInsidePropagationBailout = !0;\n else if (0 !== (parent.flags & 262144)) break;\n if (10 === parent.tag) {\n var currentParent = parent.alternate;\n if (null === currentParent) throw Error(formatProdErrorMessage(387));\n currentParent = currentParent.memoizedProps;\n if (null !== currentParent) {\n var context = parent.type;\n objectIs(parent.pendingProps.value, currentParent.value) ||\n (null !== current ? current.push(context) : (current = [context]));\n }\n } else if (parent === hostTransitionProviderCursor.current) {\n currentParent = parent.alternate;\n if (null === currentParent) throw Error(formatProdErrorMessage(387));\n currentParent.memoizedState.memoizedState !==\n parent.memoizedState.memoizedState &&\n (null !== current\n ? current.push(HostTransitionContext)\n : (current = [HostTransitionContext]));\n }\n parent = parent.return;\n }\n null !== current &&\n propagateContextChanges(\n workInProgress,\n current,\n renderLanes,\n forcePropagateEntireTree\n );\n workInProgress.flags |= 262144;\n}\nfunction checkIfContextChanged(currentDependencies) {\n for (\n currentDependencies = currentDependencies.firstContext;\n null !== currentDependencies;\n\n ) {\n if (\n !objectIs(\n currentDependencies.context._currentValue,\n currentDependencies.memoizedValue\n )\n )\n return !0;\n currentDependencies = currentDependencies.next;\n }\n return !1;\n}\nfunction prepareToReadContext(workInProgress) {\n currentlyRenderingFiber = workInProgress;\n lastFullyObservedContext = lastContextDependency = null;\n workInProgress = workInProgress.dependencies;\n null !== workInProgress && (workInProgress.firstContext = null);\n}\nfunction readContext(context) {\n return readContextForConsumer(currentlyRenderingFiber, context);\n}\nfunction readContextDuringReconciliation(consumer, context) {\n null === currentlyRenderingFiber && prepareToReadContext(consumer);\n return readContextForConsumer(consumer, context);\n}\nfunction readContextForConsumer(consumer, context) {\n var value = context._currentValue;\n if (lastFullyObservedContext !== context)\n if (\n ((context = { context: context, memoizedValue: value, next: null }),\n null === lastContextDependency)\n ) {\n if (null === consumer) throw Error(formatProdErrorMessage(308));\n lastContextDependency = context;\n consumer.dependencies = { lanes: 0, firstContext: context };\n consumer.flags |= 524288;\n } else lastContextDependency = lastContextDependency.next = context;\n return value;\n}\nvar hasForceUpdate = !1;\nfunction initializeUpdateQueue(fiber) {\n fiber.updateQueue = {\n baseState: fiber.memoizedState,\n firstBaseUpdate: null,\n lastBaseUpdate: null,\n shared: { pending: null, lanes: 0, hiddenCallbacks: null },\n callbacks: null\n };\n}\nfunction cloneUpdateQueue(current, workInProgress) {\n current = current.updateQueue;\n workInProgress.updateQueue === current &&\n (workInProgress.updateQueue = {\n baseState: current.baseState,\n firstBaseUpdate: current.firstBaseUpdate,\n lastBaseUpdate: current.lastBaseUpdate,\n shared: current.shared,\n callbacks: null\n });\n}\nfunction createUpdate(lane) {\n return { lane: lane, tag: 0, payload: null, callback: null, next: null };\n}\nfunction enqueueUpdate(fiber, update, lane) {\n var updateQueue = fiber.updateQueue;\n if (null === updateQueue) return null;\n updateQueue = updateQueue.shared;\n if (0 !== (executionContext & 2)) {\n var pending = updateQueue.pending;\n null === pending\n ? (update.next = update)\n : ((update.next = pending.next), (pending.next = update));\n updateQueue.pending = update;\n update = getRootForUpdatedFiber(fiber);\n markUpdateLaneFromFiberToRoot(fiber, null, lane);\n return update;\n }\n enqueueUpdate$1(fiber, updateQueue, update, lane);\n return getRootForUpdatedFiber(fiber);\n}\nfunction entangleTransitions(root, fiber, lane) {\n fiber = fiber.updateQueue;\n if (null !== fiber && ((fiber = fiber.shared), 0 !== (lane & 4194176))) {\n var queueLanes = fiber.lanes;\n queueLanes &= root.pendingLanes;\n lane |= queueLanes;\n fiber.lanes = lane;\n markRootEntangled(root, lane);\n }\n}\nfunction enqueueCapturedUpdate(workInProgress, capturedUpdate) {\n var queue = workInProgress.updateQueue,\n current = workInProgress.alternate;\n if (\n null !== current &&\n ((current = current.updateQueue), queue === current)\n ) {\n var newFirst = null,\n newLast = null;\n queue = queue.firstBaseUpdate;\n if (null !== queue) {\n do {\n var clone = {\n lane: queue.lane,\n tag: queue.tag,\n payload: queue.payload,\n callback: null,\n next: null\n };\n null === newLast\n ? (newFirst = newLast = clone)\n : (newLast = newLast.next = clone);\n queue = queue.next;\n } while (null !== queue);\n null === newLast\n ? (newFirst = newLast = capturedUpdate)\n : (newLast = newLast.next = capturedUpdate);\n } else newFirst = newLast = capturedUpdate;\n queue = {\n baseState: current.baseState,\n firstBaseUpdate: newFirst,\n lastBaseUpdate: newLast,\n shared: current.shared,\n callbacks: current.callbacks\n };\n workInProgress.updateQueue = queue;\n return;\n }\n workInProgress = queue.lastBaseUpdate;\n null === workInProgress\n ? (queue.firstBaseUpdate = capturedUpdate)\n : (workInProgress.next = capturedUpdate);\n queue.lastBaseUpdate = capturedUpdate;\n}\nvar didReadFromEntangledAsyncAction = !1;\nfunction suspendIfUpdateReadFromEntangledAsyncAction() {\n if (didReadFromEntangledAsyncAction) {\n var entangledActionThenable = currentEntangledActionThenable;\n if (null !== entangledActionThenable) throw entangledActionThenable;\n }\n}\nfunction processUpdateQueue(\n workInProgress$jscomp$0,\n props,\n instance$jscomp$0,\n renderLanes\n) {\n didReadFromEntangledAsyncAction = !1;\n var queue = workInProgress$jscomp$0.updateQueue;\n hasForceUpdate = !1;\n var firstBaseUpdate = queue.firstBaseUpdate,\n lastBaseUpdate = queue.lastBaseUpdate,\n pendingQueue = queue.shared.pending;\n if (null !== pendingQueue) {\n queue.shared.pending = null;\n var lastPendingUpdate = pendingQueue,\n firstPendingUpdate = lastPendingUpdate.next;\n lastPendingUpdate.next = null;\n null === lastBaseUpdate\n ? (firstBaseUpdate = firstPendingUpdate)\n : (lastBaseUpdate.next = firstPendingUpdate);\n lastBaseUpdate = lastPendingUpdate;\n var current = workInProgress$jscomp$0.alternate;\n null !== current &&\n ((current = current.updateQueue),\n (pendingQueue = current.lastBaseUpdate),\n pendingQueue !== lastBaseUpdate &&\n (null === pendingQueue\n ? (current.firstBaseUpdate = firstPendingUpdate)\n : (pendingQueue.next = firstPendingUpdate),\n (current.lastBaseUpdate = lastPendingUpdate)));\n }\n if (null !== firstBaseUpdate) {\n var newState = queue.baseState;\n lastBaseUpdate = 0;\n current = firstPendingUpdate = lastPendingUpdate = null;\n pendingQueue = firstBaseUpdate;\n do {\n var updateLane = pendingQueue.lane & -536870913,\n isHiddenUpdate = updateLane !== pendingQueue.lane;\n if (\n isHiddenUpdate\n ? (workInProgressRootRenderLanes & updateLane) === updateLane\n : (renderLanes & updateLane) === updateLane\n ) {\n 0 !== updateLane &&\n updateLane === currentEntangledLane &&\n (didReadFromEntangledAsyncAction = !0);\n null !== current &&\n (current = current.next =\n {\n lane: 0,\n tag: pendingQueue.tag,\n payload: pendingQueue.payload,\n callback: null,\n next: null\n });\n a: {\n var workInProgress = workInProgress$jscomp$0,\n update = pendingQueue;\n updateLane = props;\n var instance = instance$jscomp$0;\n switch (update.tag) {\n case 1:\n workInProgress = update.payload;\n if (\"function\" === typeof workInProgress) {\n newState = workInProgress.call(instance, newState, updateLane);\n break a;\n }\n newState = workInProgress;\n break a;\n case 3:\n workInProgress.flags = (workInProgress.flags & -65537) | 128;\n case 0:\n workInProgress = update.payload;\n updateLane =\n \"function\" === typeof workInProgress\n ? workInProgress.call(instance, newState, updateLane)\n : workInProgress;\n if (null === updateLane || void 0 === updateLane) break a;\n newState = assign({}, newState, updateLane);\n break a;\n case 2:\n hasForceUpdate = !0;\n }\n }\n updateLane = pendingQueue.callback;\n null !== updateLane &&\n ((workInProgress$jscomp$0.flags |= 64),\n isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192),\n (isHiddenUpdate = queue.callbacks),\n null === isHiddenUpdate\n ? (queue.callbacks = [updateLane])\n : isHiddenUpdate.push(updateLane));\n } else\n (isHiddenUpdate = {\n lane: updateLane,\n tag: pendingQueue.tag,\n payload: pendingQueue.payload,\n callback: pendingQueue.callback,\n next: null\n }),\n null === current\n ? ((firstPendingUpdate = current = isHiddenUpdate),\n (lastPendingUpdate = newState))\n : (current = current.next = isHiddenUpdate),\n (lastBaseUpdate |= updateLane);\n pendingQueue = pendingQueue.next;\n if (null === pendingQueue)\n if (((pendingQueue = queue.shared.pending), null === pendingQueue))\n break;\n else\n (isHiddenUpdate = pendingQueue),\n (pendingQueue = isHiddenUpdate.next),\n (isHiddenUpdate.next = null),\n (queue.lastBaseUpdate = isHiddenUpdate),\n (queue.shared.pending = null);\n } while (1);\n null === current && (lastPendingUpdate = newState);\n queue.baseState = lastPendingUpdate;\n queue.firstBaseUpdate = firstPendingUpdate;\n queue.lastBaseUpdate = current;\n null === firstBaseUpdate && (queue.shared.lanes = 0);\n workInProgressRootSkippedLanes |= lastBaseUpdate;\n workInProgress$jscomp$0.lanes = lastBaseUpdate;\n workInProgress$jscomp$0.memoizedState = newState;\n }\n}\nfunction callCallback(callback, context) {\n if (\"function\" !== typeof callback)\n throw Error(formatProdErrorMessage(191, callback));\n callback.call(context);\n}\nfunction commitCallbacks(updateQueue, context) {\n var callbacks = updateQueue.callbacks;\n if (null !== callbacks)\n for (\n updateQueue.callbacks = null, updateQueue = 0;\n updateQueue < callbacks.length;\n updateQueue++\n )\n callCallback(callbacks[updateQueue], context);\n}\nfunction commitHookEffectListMount(flags, finishedWork) {\n try {\n var updateQueue = finishedWork.updateQueue,\n lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;\n if (null !== lastEffect) {\n var firstEffect = lastEffect.next;\n updateQueue = firstEffect;\n do {\n if ((updateQueue.tag & flags) === flags) {\n lastEffect = void 0;\n var create = updateQueue.create,\n inst = updateQueue.inst;\n lastEffect = create();\n inst.destroy = lastEffect;\n }\n updateQueue = updateQueue.next;\n } while (updateQueue !== firstEffect);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction commitHookEffectListUnmount(\n flags,\n finishedWork,\n nearestMountedAncestor$jscomp$0\n) {\n try {\n var updateQueue = finishedWork.updateQueue,\n lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;\n if (null !== lastEffect) {\n var firstEffect = lastEffect.next;\n updateQueue = firstEffect;\n do {\n if ((updateQueue.tag & flags) === flags) {\n var inst = updateQueue.inst,\n destroy = inst.destroy;\n if (void 0 !== destroy) {\n inst.destroy = void 0;\n lastEffect = finishedWork;\n var nearestMountedAncestor = nearestMountedAncestor$jscomp$0;\n try {\n destroy();\n } catch (error) {\n captureCommitPhaseError(\n lastEffect,\n nearestMountedAncestor,\n error\n );\n }\n }\n }\n updateQueue = updateQueue.next;\n } while (updateQueue !== firstEffect);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction commitClassCallbacks(finishedWork) {\n var updateQueue = finishedWork.updateQueue;\n if (null !== updateQueue) {\n var instance = finishedWork.stateNode;\n try {\n commitCallbacks(updateQueue, instance);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n}\nfunction safelyCallComponentWillUnmount(\n current,\n nearestMountedAncestor,\n instance\n) {\n instance.props = resolveClassComponentProps(\n current.type,\n current.memoizedProps\n );\n instance.state = current.memoizedState;\n try {\n instance.componentWillUnmount();\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n}\nfunction safelyAttachRef(current, nearestMountedAncestor) {\n try {\n var ref = current.ref;\n if (null !== ref) {\n var instance = current.stateNode;\n switch (current.tag) {\n case 26:\n case 27:\n case 5:\n var instanceToUse = instance;\n break;\n default:\n instanceToUse = instance;\n }\n \"function\" === typeof ref\n ? (current.refCleanup = ref(instanceToUse))\n : (ref.current = instanceToUse);\n }\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n }\n}\nfunction safelyDetachRef(current, nearestMountedAncestor) {\n var ref = current.ref,\n refCleanup = current.refCleanup;\n if (null !== ref)\n if (\"function\" === typeof refCleanup)\n try {\n refCleanup();\n } catch (error) {\n captureCommitPhaseError(current, nearestMountedAncestor, error);\n } finally {\n (current.refCleanup = null),\n (current = current.alternate),\n null != current && (current.refCleanup = null);\n }\n else if (\"function\" === typeof ref)\n try {\n ref(null);\n } catch (error$113) {\n captureCommitPhaseError(current, nearestMountedAncestor, error$113);\n }\n else ref.current = null;\n}\nfunction commitHostMount(finishedWork) {\n var type = finishedWork.type,\n props = finishedWork.memoizedProps,\n instance = finishedWork.stateNode;\n try {\n a: switch (type) {\n case \"button\":\n case \"input\":\n case \"select\":\n case \"textarea\":\n props.autoFocus && instance.focus();\n break a;\n case \"img\":\n props.src\n ? (instance.src = props.src)\n : props.srcSet && (instance.srcset = props.srcSet);\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction commitHostUpdate(finishedWork, newProps, oldProps) {\n try {\n var domElement = finishedWork.stateNode;\n updateProperties(domElement, finishedWork.type, oldProps, newProps);\n domElement[internalPropsKey] = newProps;\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction isHostParent(fiber) {\n return (\n 5 === fiber.tag ||\n 3 === fiber.tag ||\n 26 === fiber.tag ||\n 27 === fiber.tag ||\n 4 === fiber.tag\n );\n}\nfunction getHostSibling(fiber) {\n a: for (;;) {\n for (; null === fiber.sibling; ) {\n if (null === fiber.return || isHostParent(fiber.return)) return null;\n fiber = fiber.return;\n }\n fiber.sibling.return = fiber.return;\n for (\n fiber = fiber.sibling;\n 5 !== fiber.tag &&\n 6 !== fiber.tag &&\n 27 !== fiber.tag &&\n 18 !== fiber.tag;\n\n ) {\n if (fiber.flags & 2) continue a;\n if (null === fiber.child || 4 === fiber.tag) continue a;\n else (fiber.child.return = fiber), (fiber = fiber.child);\n }\n if (!(fiber.flags & 2)) return fiber.stateNode;\n }\n}\nfunction insertOrAppendPlacementNodeIntoContainer(node, before, parent) {\n var tag = node.tag;\n if (5 === tag || 6 === tag)\n (node = node.stateNode),\n before\n ? 8 === parent.nodeType\n ? parent.parentNode.insertBefore(node, before)\n : parent.insertBefore(node, before)\n : (8 === parent.nodeType\n ? ((before = parent.parentNode), before.insertBefore(node, parent))\n : ((before = parent), before.appendChild(node)),\n (parent = parent._reactRootContainer),\n (null !== parent && void 0 !== parent) ||\n null !== before.onclick ||\n (before.onclick = noop$1));\n else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node))\n for (\n insertOrAppendPlacementNodeIntoContainer(node, before, parent),\n node = node.sibling;\n null !== node;\n\n )\n insertOrAppendPlacementNodeIntoContainer(node, before, parent),\n (node = node.sibling);\n}\nfunction insertOrAppendPlacementNode(node, before, parent) {\n var tag = node.tag;\n if (5 === tag || 6 === tag)\n (node = node.stateNode),\n before ? parent.insertBefore(node, before) : parent.appendChild(node);\n else if (4 !== tag && 27 !== tag && ((node = node.child), null !== node))\n for (\n insertOrAppendPlacementNode(node, before, parent), node = node.sibling;\n null !== node;\n\n )\n insertOrAppendPlacementNode(node, before, parent), (node = node.sibling);\n}\nvar offscreenSubtreeIsHidden = !1,\n offscreenSubtreeWasHidden = !1,\n needsFormReset = !1,\n PossiblyWeakSet = \"function\" === typeof WeakSet ? WeakSet : Set,\n nextEffect = null,\n shouldFireAfterActiveInstanceBlur = !1;\nfunction commitBeforeMutationEffects(root, firstChild) {\n root = root.containerInfo;\n eventsEnabled = _enabled;\n root = getActiveElementDeep(root);\n if (hasSelectionCapabilities(root)) {\n if (\"selectionStart\" in root)\n var JSCompiler_temp = {\n start: root.selectionStart,\n end: root.selectionEnd\n };\n else\n a: {\n JSCompiler_temp =\n ((JSCompiler_temp = root.ownerDocument) &&\n JSCompiler_temp.defaultView) ||\n window;\n var selection =\n JSCompiler_temp.getSelection && JSCompiler_temp.getSelection();\n if (selection && 0 !== selection.rangeCount) {\n JSCompiler_temp = selection.anchorNode;\n var anchorOffset = selection.anchorOffset,\n focusNode = selection.focusNode;\n selection = selection.focusOffset;\n try {\n JSCompiler_temp.nodeType, focusNode.nodeType;\n } catch (e$21) {\n JSCompiler_temp = null;\n break a;\n }\n var length = 0,\n start = -1,\n end = -1,\n indexWithinAnchor = 0,\n indexWithinFocus = 0,\n node = root,\n parentNode = null;\n b: for (;;) {\n for (var next; ; ) {\n node !== JSCompiler_temp ||\n (0 !== anchorOffset && 3 !== node.nodeType) ||\n (start = length + anchorOffset);\n node !== focusNode ||\n (0 !== selection && 3 !== node.nodeType) ||\n (end = length + selection);\n 3 === node.nodeType && (length += node.nodeValue.length);\n if (null === (next = node.firstChild)) break;\n parentNode = node;\n node = next;\n }\n for (;;) {\n if (node === root) break b;\n parentNode === JSCompiler_temp &&\n ++indexWithinAnchor === anchorOffset &&\n (start = length);\n parentNode === focusNode &&\n ++indexWithinFocus === selection &&\n (end = length);\n if (null !== (next = node.nextSibling)) break;\n node = parentNode;\n parentNode = node.parentNode;\n }\n node = next;\n }\n JSCompiler_temp =\n -1 === start || -1 === end ? null : { start: start, end: end };\n } else JSCompiler_temp = null;\n }\n JSCompiler_temp = JSCompiler_temp || { start: 0, end: 0 };\n } else JSCompiler_temp = null;\n selectionInformation = { focusedElem: root, selectionRange: JSCompiler_temp };\n _enabled = !1;\n for (nextEffect = firstChild; null !== nextEffect; )\n if (\n ((firstChild = nextEffect),\n (root = firstChild.child),\n 0 !== (firstChild.subtreeFlags & 1028) && null !== root)\n )\n (root.return = firstChild), (nextEffect = root);\n else\n for (; null !== nextEffect; ) {\n firstChild = nextEffect;\n focusNode = firstChild.alternate;\n root = firstChild.flags;\n switch (firstChild.tag) {\n case 0:\n break;\n case 11:\n case 15:\n break;\n case 1:\n if (0 !== (root & 1024) && null !== focusNode) {\n root = void 0;\n JSCompiler_temp = firstChild;\n anchorOffset = focusNode.memoizedProps;\n focusNode = focusNode.memoizedState;\n selection = JSCompiler_temp.stateNode;\n try {\n var resolvedPrevProps = resolveClassComponentProps(\n JSCompiler_temp.type,\n anchorOffset,\n JSCompiler_temp.elementType === JSCompiler_temp.type\n );\n root = selection.getSnapshotBeforeUpdate(\n resolvedPrevProps,\n focusNode\n );\n selection.__reactInternalSnapshotBeforeUpdate = root;\n } catch (error) {\n captureCommitPhaseError(\n JSCompiler_temp,\n JSCompiler_temp.return,\n error\n );\n }\n }\n break;\n case 3:\n if (0 !== (root & 1024))\n if (\n ((root = firstChild.stateNode.containerInfo),\n (JSCompiler_temp = root.nodeType),\n 9 === JSCompiler_temp)\n )\n clearContainerSparingly(root);\n else if (1 === JSCompiler_temp)\n switch (root.nodeName) {\n case \"HEAD\":\n case \"HTML\":\n case \"BODY\":\n clearContainerSparingly(root);\n break;\n default:\n root.textContent = \"\";\n }\n break;\n case 5:\n case 26:\n case 27:\n case 6:\n case 4:\n case 17:\n break;\n default:\n if (0 !== (root & 1024)) throw Error(formatProdErrorMessage(163));\n }\n root = firstChild.sibling;\n if (null !== root) {\n root.return = firstChild.return;\n nextEffect = root;\n break;\n }\n nextEffect = firstChild.return;\n }\n resolvedPrevProps = shouldFireAfterActiveInstanceBlur;\n shouldFireAfterActiveInstanceBlur = !1;\n return resolvedPrevProps;\n}\nfunction commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {\n var flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n flags & 4 && commitHookEffectListMount(5, finishedWork);\n break;\n case 1:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n if (flags & 4)\n if (((finishedRoot = finishedWork.stateNode), null === current))\n try {\n finishedRoot.componentDidMount();\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n else {\n var prevProps = resolveClassComponentProps(\n finishedWork.type,\n current.memoizedProps\n );\n current = current.memoizedState;\n try {\n finishedRoot.componentDidUpdate(\n prevProps,\n current,\n finishedRoot.__reactInternalSnapshotBeforeUpdate\n );\n } catch (error$112) {\n captureCommitPhaseError(\n finishedWork,\n finishedWork.return,\n error$112\n );\n }\n }\n flags & 64 && commitClassCallbacks(finishedWork);\n flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 3:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n if (flags & 64 && ((flags = finishedWork.updateQueue), null !== flags)) {\n finishedRoot = null;\n if (null !== finishedWork.child)\n switch (finishedWork.child.tag) {\n case 27:\n case 5:\n finishedRoot = finishedWork.child.stateNode;\n break;\n case 1:\n finishedRoot = finishedWork.child.stateNode;\n }\n try {\n commitCallbacks(flags, finishedRoot);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n break;\n case 26:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 27:\n case 5:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n null === current && flags & 4 && commitHostMount(finishedWork);\n flags & 512 && safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 12:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n break;\n case 13:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n break;\n case 22:\n prevProps =\n null !== finishedWork.memoizedState || offscreenSubtreeIsHidden;\n if (!prevProps) {\n current =\n (null !== current && null !== current.memoizedState) ||\n offscreenSubtreeWasHidden;\n var prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden,\n prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;\n offscreenSubtreeIsHidden = prevProps;\n (offscreenSubtreeWasHidden = current) && !prevOffscreenSubtreeWasHidden\n ? recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n 0 !== (finishedWork.subtreeFlags & 8772)\n )\n : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;\n offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;\n }\n flags & 512 &&\n (\"manual\" === finishedWork.memoizedProps.mode\n ? safelyAttachRef(finishedWork, finishedWork.return)\n : safelyDetachRef(finishedWork, finishedWork.return));\n break;\n default:\n recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);\n }\n}\nfunction detachFiberAfterEffects(fiber) {\n var alternate = fiber.alternate;\n null !== alternate &&\n ((fiber.alternate = null), detachFiberAfterEffects(alternate));\n fiber.child = null;\n fiber.deletions = null;\n fiber.sibling = null;\n 5 === fiber.tag &&\n ((alternate = fiber.stateNode),\n null !== alternate && detachDeletedInstance(alternate));\n fiber.stateNode = null;\n fiber.return = null;\n fiber.dependencies = null;\n fiber.memoizedProps = null;\n fiber.memoizedState = null;\n fiber.pendingProps = null;\n fiber.stateNode = null;\n fiber.updateQueue = null;\n}\nvar hostParent = null,\n hostParentIsContainer = !1;\nfunction recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n parent\n) {\n for (parent = parent.child; null !== parent; )\n commitDeletionEffectsOnFiber(finishedRoot, nearestMountedAncestor, parent),\n (parent = parent.sibling);\n}\nfunction commitDeletionEffectsOnFiber(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n) {\n if (injectedHook && \"function\" === typeof injectedHook.onCommitFiberUnmount)\n try {\n injectedHook.onCommitFiberUnmount(rendererID, deletedFiber);\n } catch (err) {}\n switch (deletedFiber.tag) {\n case 26:\n offscreenSubtreeWasHidden ||\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n deletedFiber.memoizedState\n ? deletedFiber.memoizedState.count--\n : deletedFiber.stateNode &&\n ((deletedFiber = deletedFiber.stateNode),\n deletedFiber.parentNode.removeChild(deletedFiber));\n break;\n case 27:\n offscreenSubtreeWasHidden ||\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n var prevHostParent = hostParent,\n prevHostParentIsContainer = hostParentIsContainer;\n hostParent = deletedFiber.stateNode;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n deletedFiber = deletedFiber.stateNode;\n for (\n nearestMountedAncestor = deletedFiber.attributes;\n nearestMountedAncestor.length;\n\n )\n deletedFiber.removeAttributeNode(nearestMountedAncestor[0]);\n detachDeletedInstance(deletedFiber);\n hostParent = prevHostParent;\n hostParentIsContainer = prevHostParentIsContainer;\n break;\n case 5:\n offscreenSubtreeWasHidden ||\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n case 6:\n prevHostParentIsContainer = hostParent;\n var prevHostParentIsContainer$120 = hostParentIsContainer;\n hostParent = null;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n hostParent = prevHostParentIsContainer;\n hostParentIsContainer = prevHostParentIsContainer$120;\n if (null !== hostParent)\n if (hostParentIsContainer)\n try {\n (finishedRoot = hostParent),\n (prevHostParent = deletedFiber.stateNode),\n 8 === finishedRoot.nodeType\n ? finishedRoot.parentNode.removeChild(prevHostParent)\n : finishedRoot.removeChild(prevHostParent);\n } catch (error) {\n captureCommitPhaseError(\n deletedFiber,\n nearestMountedAncestor,\n error\n );\n }\n else\n try {\n hostParent.removeChild(deletedFiber.stateNode);\n } catch (error) {\n captureCommitPhaseError(\n deletedFiber,\n nearestMountedAncestor,\n error\n );\n }\n break;\n case 18:\n null !== hostParent &&\n (hostParentIsContainer\n ? ((nearestMountedAncestor = hostParent),\n (deletedFiber = deletedFiber.stateNode),\n 8 === nearestMountedAncestor.nodeType\n ? clearSuspenseBoundary(\n nearestMountedAncestor.parentNode,\n deletedFiber\n )\n : 1 === nearestMountedAncestor.nodeType &&\n clearSuspenseBoundary(nearestMountedAncestor, deletedFiber),\n retryIfBlockedOn(nearestMountedAncestor))\n : clearSuspenseBoundary(hostParent, deletedFiber.stateNode));\n break;\n case 4:\n prevHostParent = hostParent;\n prevHostParentIsContainer = hostParentIsContainer;\n hostParent = deletedFiber.stateNode.containerInfo;\n hostParentIsContainer = !0;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n hostParent = prevHostParent;\n hostParentIsContainer = prevHostParentIsContainer;\n break;\n case 0:\n case 11:\n case 14:\n case 15:\n offscreenSubtreeWasHidden ||\n commitHookEffectListUnmount(2, deletedFiber, nearestMountedAncestor);\n offscreenSubtreeWasHidden ||\n commitHookEffectListUnmount(4, deletedFiber, nearestMountedAncestor);\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n break;\n case 1:\n offscreenSubtreeWasHidden ||\n (safelyDetachRef(deletedFiber, nearestMountedAncestor),\n (prevHostParent = deletedFiber.stateNode),\n \"function\" === typeof prevHostParent.componentWillUnmount &&\n safelyCallComponentWillUnmount(\n deletedFiber,\n nearestMountedAncestor,\n prevHostParent\n ));\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n break;\n case 21:\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n break;\n case 22:\n safelyDetachRef(deletedFiber, nearestMountedAncestor);\n offscreenSubtreeWasHidden =\n (prevHostParent = offscreenSubtreeWasHidden) ||\n null !== deletedFiber.memoizedState;\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n offscreenSubtreeWasHidden = prevHostParent;\n break;\n default:\n recursivelyTraverseDeletionEffects(\n finishedRoot,\n nearestMountedAncestor,\n deletedFiber\n );\n }\n}\nfunction commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {\n if (\n null === finishedWork.memoizedState &&\n ((finishedRoot = finishedWork.alternate),\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.memoizedState),\n null !== finishedRoot &&\n ((finishedRoot = finishedRoot.dehydrated), null !== finishedRoot)))\n )\n try {\n retryIfBlockedOn(finishedRoot);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n}\nfunction getRetryCache(finishedWork) {\n switch (finishedWork.tag) {\n case 13:\n case 19:\n var retryCache = finishedWork.stateNode;\n null === retryCache &&\n (retryCache = finishedWork.stateNode = new PossiblyWeakSet());\n return retryCache;\n case 22:\n return (\n (finishedWork = finishedWork.stateNode),\n (retryCache = finishedWork._retryCache),\n null === retryCache &&\n (retryCache = finishedWork._retryCache = new PossiblyWeakSet()),\n retryCache\n );\n default:\n throw Error(formatProdErrorMessage(435, finishedWork.tag));\n }\n}\nfunction attachSuspenseRetryListeners(finishedWork, wakeables) {\n var retryCache = getRetryCache(finishedWork);\n wakeables.forEach(function (wakeable) {\n var retry = resolveRetryWakeable.bind(null, finishedWork, wakeable);\n retryCache.has(wakeable) ||\n (retryCache.add(wakeable), wakeable.then(retry, retry));\n });\n}\nfunction recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {\n var deletions = parentFiber.deletions;\n if (null !== deletions)\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i],\n root = root$jscomp$0,\n returnFiber = parentFiber,\n parent = returnFiber;\n a: for (; null !== parent; ) {\n switch (parent.tag) {\n case 27:\n case 5:\n hostParent = parent.stateNode;\n hostParentIsContainer = !1;\n break a;\n case 3:\n hostParent = parent.stateNode.containerInfo;\n hostParentIsContainer = !0;\n break a;\n case 4:\n hostParent = parent.stateNode.containerInfo;\n hostParentIsContainer = !0;\n break a;\n }\n parent = parent.return;\n }\n if (null === hostParent) throw Error(formatProdErrorMessage(160));\n commitDeletionEffectsOnFiber(root, returnFiber, childToDelete);\n hostParent = null;\n hostParentIsContainer = !1;\n root = childToDelete.alternate;\n null !== root && (root.return = null);\n childToDelete.return = null;\n }\n if (parentFiber.subtreeFlags & 13878)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitMutationEffectsOnFiber(parentFiber, root$jscomp$0),\n (parentFiber = parentFiber.sibling);\n}\nvar currentHoistableRoot = null;\nfunction commitMutationEffectsOnFiber(finishedWork, root) {\n var current = finishedWork.alternate,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 4 &&\n (commitHookEffectListUnmount(3, finishedWork, finishedWork.return),\n commitHookEffectListMount(3, finishedWork),\n commitHookEffectListUnmount(5, finishedWork, finishedWork.return));\n break;\n case 1:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n null !== current &&\n safelyDetachRef(current, current.return);\n flags & 64 &&\n offscreenSubtreeIsHidden &&\n ((finishedWork = finishedWork.updateQueue),\n null !== finishedWork &&\n ((flags = finishedWork.callbacks),\n null !== flags &&\n ((current = finishedWork.shared.hiddenCallbacks),\n (finishedWork.shared.hiddenCallbacks =\n null === current ? flags : current.concat(flags)))));\n break;\n case 26:\n var hoistableRoot = currentHoistableRoot;\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n null !== current &&\n safelyDetachRef(current, current.return);\n if (flags & 4) {\n var currentResource = null !== current ? current.memoizedState : null;\n flags = finishedWork.memoizedState;\n if (null === current)\n if (null === flags)\n if (null === finishedWork.stateNode) {\n a: {\n flags = finishedWork.type;\n current = finishedWork.memoizedProps;\n hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;\n b: switch (flags) {\n case \"title\":\n currentResource =\n hoistableRoot.getElementsByTagName(\"title\")[0];\n if (\n !currentResource ||\n currentResource[internalHoistableMarker] ||\n currentResource[internalInstanceKey] ||\n \"http://www.w3.org/2000/svg\" ===\n currentResource.namespaceURI ||\n currentResource.hasAttribute(\"itemprop\")\n )\n (currentResource = hoistableRoot.createElement(flags)),\n hoistableRoot.head.insertBefore(\n currentResource,\n hoistableRoot.querySelector(\"head > title\")\n );\n setInitialProperties(currentResource, flags, current);\n currentResource[internalInstanceKey] = finishedWork;\n markNodeAsHoistable(currentResource);\n flags = currentResource;\n break a;\n case \"link\":\n var maybeNodes = getHydratableHoistableCache(\n \"link\",\n \"href\",\n hoistableRoot\n ).get(flags + (current.href || \"\"));\n if (maybeNodes)\n for (var i = 0; i < maybeNodes.length; i++)\n if (\n ((currentResource = maybeNodes[i]),\n currentResource.getAttribute(\"href\") ===\n (null == current.href ? null : current.href) &&\n currentResource.getAttribute(\"rel\") ===\n (null == current.rel ? null : current.rel) &&\n currentResource.getAttribute(\"title\") ===\n (null == current.title ? null : current.title) &&\n currentResource.getAttribute(\"crossorigin\") ===\n (null == current.crossOrigin\n ? null\n : current.crossOrigin))\n ) {\n maybeNodes.splice(i, 1);\n break b;\n }\n currentResource = hoistableRoot.createElement(flags);\n setInitialProperties(currentResource, flags, current);\n hoistableRoot.head.appendChild(currentResource);\n break;\n case \"meta\":\n if (\n (maybeNodes = getHydratableHoistableCache(\n \"meta\",\n \"content\",\n hoistableRoot\n ).get(flags + (current.content || \"\")))\n )\n for (i = 0; i < maybeNodes.length; i++)\n if (\n ((currentResource = maybeNodes[i]),\n currentResource.getAttribute(\"content\") ===\n (null == current.content\n ? null\n : \"\" + current.content) &&\n currentResource.getAttribute(\"name\") ===\n (null == current.name ? null : current.name) &&\n currentResource.getAttribute(\"property\") ===\n (null == current.property\n ? null\n : current.property) &&\n currentResource.getAttribute(\"http-equiv\") ===\n (null == current.httpEquiv\n ? null\n : current.httpEquiv) &&\n currentResource.getAttribute(\"charset\") ===\n (null == current.charSet\n ? null\n : current.charSet))\n ) {\n maybeNodes.splice(i, 1);\n break b;\n }\n currentResource = hoistableRoot.createElement(flags);\n setInitialProperties(currentResource, flags, current);\n hoistableRoot.head.appendChild(currentResource);\n break;\n default:\n throw Error(formatProdErrorMessage(468, flags));\n }\n currentResource[internalInstanceKey] = finishedWork;\n markNodeAsHoistable(currentResource);\n flags = currentResource;\n }\n finishedWork.stateNode = flags;\n } else\n mountHoistable(\n hoistableRoot,\n finishedWork.type,\n finishedWork.stateNode\n );\n else\n finishedWork.stateNode = acquireResource(\n hoistableRoot,\n flags,\n finishedWork.memoizedProps\n );\n else\n currentResource !== flags\n ? (null === currentResource\n ? null !== current.stateNode &&\n ((current = current.stateNode),\n current.parentNode.removeChild(current))\n : currentResource.count--,\n null === flags\n ? mountHoistable(\n hoistableRoot,\n finishedWork.type,\n finishedWork.stateNode\n )\n : acquireResource(\n hoistableRoot,\n flags,\n finishedWork.memoizedProps\n ))\n : null === flags &&\n null !== finishedWork.stateNode &&\n commitHostUpdate(\n finishedWork,\n finishedWork.memoizedProps,\n current.memoizedProps\n );\n }\n break;\n case 27:\n if (flags & 4 && null === finishedWork.alternate) {\n hoistableRoot = finishedWork.stateNode;\n currentResource = finishedWork.memoizedProps;\n try {\n for (var node = hoistableRoot.firstChild; node; ) {\n var nextNode = node.nextSibling,\n nodeName = node.nodeName;\n node[internalHoistableMarker] ||\n \"HEAD\" === nodeName ||\n \"BODY\" === nodeName ||\n \"SCRIPT\" === nodeName ||\n \"STYLE\" === nodeName ||\n (\"LINK\" === nodeName &&\n \"stylesheet\" === node.rel.toLowerCase()) ||\n hoistableRoot.removeChild(node);\n node = nextNode;\n }\n for (\n var type = finishedWork.type, attributes = hoistableRoot.attributes;\n attributes.length;\n\n )\n hoistableRoot.removeAttributeNode(attributes[0]);\n setInitialProperties(hoistableRoot, type, currentResource);\n hoistableRoot[internalInstanceKey] = finishedWork;\n hoistableRoot[internalPropsKey] = currentResource;\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n case 5:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 512 &&\n null !== current &&\n safelyDetachRef(current, current.return);\n if (finishedWork.flags & 32) {\n hoistableRoot = finishedWork.stateNode;\n try {\n setTextContent(hoistableRoot, \"\");\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n flags & 4 &&\n null != finishedWork.stateNode &&\n ((hoistableRoot = finishedWork.memoizedProps),\n commitHostUpdate(\n finishedWork,\n hoistableRoot,\n null !== current ? current.memoizedProps : hoistableRoot\n ));\n flags & 1024 && (needsFormReset = !0);\n break;\n case 6:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n if (flags & 4) {\n if (null === finishedWork.stateNode)\n throw Error(formatProdErrorMessage(162));\n flags = finishedWork.memoizedProps;\n current = finishedWork.stateNode;\n try {\n current.nodeValue = flags;\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n }\n break;\n case 3:\n tagCaches = null;\n hoistableRoot = currentHoistableRoot;\n currentHoistableRoot = getHoistableRoot(root.containerInfo);\n recursivelyTraverseMutationEffects(root, finishedWork);\n currentHoistableRoot = hoistableRoot;\n commitReconciliationEffects(finishedWork);\n if (flags & 4 && null !== current && current.memoizedState.isDehydrated)\n try {\n retryIfBlockedOn(root.containerInfo);\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n needsFormReset &&\n ((needsFormReset = !1), recursivelyResetForms(finishedWork));\n break;\n case 4:\n flags = currentHoistableRoot;\n currentHoistableRoot = getHoistableRoot(\n finishedWork.stateNode.containerInfo\n );\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n currentHoistableRoot = flags;\n break;\n case 12:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n break;\n case 13:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n finishedWork.child.flags & 8192 &&\n (null !== finishedWork.memoizedState) !==\n (null !== current && null !== current.memoizedState) &&\n (globalMostRecentFallbackTime = now());\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((finishedWork.updateQueue = null),\n attachSuspenseRetryListeners(finishedWork, flags)));\n break;\n case 22:\n flags & 512 &&\n null !== current &&\n safelyDetachRef(current, current.return);\n node = null !== finishedWork.memoizedState;\n nextNode = null !== current && null !== current.memoizedState;\n nodeName = offscreenSubtreeIsHidden;\n type = offscreenSubtreeWasHidden;\n offscreenSubtreeIsHidden = nodeName || node;\n offscreenSubtreeWasHidden = type || nextNode;\n recursivelyTraverseMutationEffects(root, finishedWork);\n offscreenSubtreeWasHidden = type;\n offscreenSubtreeIsHidden = nodeName;\n commitReconciliationEffects(finishedWork);\n root = finishedWork.stateNode;\n root._current = finishedWork;\n root._visibility &= -3;\n root._visibility |= root._pendingVisibility & 2;\n if (\n flags & 8192 &&\n ((root._visibility = node\n ? root._visibility & -2\n : root._visibility | 1),\n node &&\n ((root = offscreenSubtreeIsHidden || offscreenSubtreeWasHidden),\n null === current ||\n nextNode ||\n root ||\n recursivelyTraverseDisappearLayoutEffects(finishedWork)),\n null === finishedWork.memoizedProps ||\n \"manual\" !== finishedWork.memoizedProps.mode)\n )\n a: for (current = null, root = finishedWork; ; ) {\n if (5 === root.tag || 26 === root.tag || 27 === root.tag) {\n if (null === current) {\n nextNode = current = root;\n try {\n if (((hoistableRoot = nextNode.stateNode), node))\n (currentResource = hoistableRoot.style),\n \"function\" === typeof currentResource.setProperty\n ? currentResource.setProperty(\n \"display\",\n \"none\",\n \"important\"\n )\n : (currentResource.display = \"none\");\n else {\n maybeNodes = nextNode.stateNode;\n i = nextNode.memoizedProps.style;\n var display =\n void 0 !== i && null !== i && i.hasOwnProperty(\"display\")\n ? i.display\n : null;\n maybeNodes.style.display =\n null == display || \"boolean\" === typeof display\n ? \"\"\n : (\"\" + display).trim();\n }\n } catch (error) {\n captureCommitPhaseError(nextNode, nextNode.return, error);\n }\n }\n } else if (6 === root.tag) {\n if (null === current) {\n nextNode = root;\n try {\n nextNode.stateNode.nodeValue = node\n ? \"\"\n : nextNode.memoizedProps;\n } catch (error) {\n captureCommitPhaseError(nextNode, nextNode.return, error);\n }\n }\n } else if (\n ((22 !== root.tag && 23 !== root.tag) ||\n null === root.memoizedState ||\n root === finishedWork) &&\n null !== root.child\n ) {\n root.child.return = root;\n root = root.child;\n continue;\n }\n if (root === finishedWork) break a;\n for (; null === root.sibling; ) {\n if (null === root.return || root.return === finishedWork) break a;\n current === root && (current = null);\n root = root.return;\n }\n current === root && (current = null);\n root.sibling.return = root.return;\n root = root.sibling;\n }\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((current = flags.retryQueue),\n null !== current &&\n ((flags.retryQueue = null),\n attachSuspenseRetryListeners(finishedWork, current))));\n break;\n case 19:\n recursivelyTraverseMutationEffects(root, finishedWork);\n commitReconciliationEffects(finishedWork);\n flags & 4 &&\n ((flags = finishedWork.updateQueue),\n null !== flags &&\n ((finishedWork.updateQueue = null),\n attachSuspenseRetryListeners(finishedWork, flags)));\n break;\n case 21:\n break;\n default:\n recursivelyTraverseMutationEffects(root, finishedWork),\n commitReconciliationEffects(finishedWork);\n }\n}\nfunction commitReconciliationEffects(finishedWork) {\n var flags = finishedWork.flags;\n if (flags & 2) {\n try {\n if (27 !== finishedWork.tag) {\n a: {\n for (var parent = finishedWork.return; null !== parent; ) {\n if (isHostParent(parent)) {\n var JSCompiler_inline_result = parent;\n break a;\n }\n parent = parent.return;\n }\n throw Error(formatProdErrorMessage(160));\n }\n switch (JSCompiler_inline_result.tag) {\n case 27:\n var parent$jscomp$0 = JSCompiler_inline_result.stateNode,\n before = getHostSibling(finishedWork);\n insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0);\n break;\n case 5:\n var parent$114 = JSCompiler_inline_result.stateNode;\n JSCompiler_inline_result.flags & 32 &&\n (setTextContent(parent$114, \"\"),\n (JSCompiler_inline_result.flags &= -33));\n var before$115 = getHostSibling(finishedWork);\n insertOrAppendPlacementNode(finishedWork, before$115, parent$114);\n break;\n case 3:\n case 4:\n var parent$116 = JSCompiler_inline_result.stateNode.containerInfo,\n before$117 = getHostSibling(finishedWork);\n insertOrAppendPlacementNodeIntoContainer(\n finishedWork,\n before$117,\n parent$116\n );\n break;\n default:\n throw Error(formatProdErrorMessage(161));\n }\n }\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n finishedWork.flags &= -3;\n }\n flags & 4096 && (finishedWork.flags &= -4097);\n}\nfunction recursivelyResetForms(parentFiber) {\n if (parentFiber.subtreeFlags & 1024)\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var fiber = parentFiber;\n recursivelyResetForms(fiber);\n 5 === fiber.tag && fiber.flags & 1024 && fiber.stateNode.reset();\n parentFiber = parentFiber.sibling;\n }\n}\nfunction recursivelyTraverseLayoutEffects(root, parentFiber) {\n if (parentFiber.subtreeFlags & 8772)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber),\n (parentFiber = parentFiber.sibling);\n}\nfunction recursivelyTraverseDisappearLayoutEffects(parentFiber) {\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var finishedWork = parentFiber;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 14:\n case 15:\n commitHookEffectListUnmount(4, finishedWork, finishedWork.return);\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 1:\n safelyDetachRef(finishedWork, finishedWork.return);\n var instance = finishedWork.stateNode;\n \"function\" === typeof instance.componentWillUnmount &&\n safelyCallComponentWillUnmount(\n finishedWork,\n finishedWork.return,\n instance\n );\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 26:\n case 27:\n case 5:\n safelyDetachRef(finishedWork, finishedWork.return);\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n case 22:\n safelyDetachRef(finishedWork, finishedWork.return);\n null === finishedWork.memoizedState &&\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n break;\n default:\n recursivelyTraverseDisappearLayoutEffects(finishedWork);\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction recursivelyTraverseReappearLayoutEffects(\n finishedRoot$jscomp$0,\n parentFiber,\n includeWorkInProgressEffects\n) {\n includeWorkInProgressEffects =\n includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772);\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var current = parentFiber.alternate,\n finishedRoot = finishedRoot$jscomp$0,\n finishedWork = parentFiber,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n commitHookEffectListMount(4, finishedWork);\n break;\n case 1:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n current = finishedWork;\n finishedRoot = current.stateNode;\n if (\"function\" === typeof finishedRoot.componentDidMount)\n try {\n finishedRoot.componentDidMount();\n } catch (error) {\n captureCommitPhaseError(current, current.return, error);\n }\n current = finishedWork;\n finishedRoot = current.updateQueue;\n if (null !== finishedRoot) {\n var instance = current.stateNode;\n try {\n var hiddenCallbacks = finishedRoot.shared.hiddenCallbacks;\n if (null !== hiddenCallbacks)\n for (\n finishedRoot.shared.hiddenCallbacks = null, finishedRoot = 0;\n finishedRoot < hiddenCallbacks.length;\n finishedRoot++\n )\n callCallback(hiddenCallbacks[finishedRoot], instance);\n } catch (error) {\n captureCommitPhaseError(current, current.return, error);\n }\n }\n includeWorkInProgressEffects &&\n flags & 64 &&\n commitClassCallbacks(finishedWork);\n safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 26:\n case 27:\n case 5:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n null === current &&\n flags & 4 &&\n commitHostMount(finishedWork);\n safelyAttachRef(finishedWork, finishedWork.return);\n break;\n case 12:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n break;\n case 13:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n flags & 4 &&\n commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);\n break;\n case 22:\n null === finishedWork.memoizedState &&\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n safelyAttachRef(finishedWork, finishedWork.return);\n break;\n default:\n recursivelyTraverseReappearLayoutEffects(\n finishedRoot,\n finishedWork,\n includeWorkInProgressEffects\n );\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction commitOffscreenPassiveMountEffects(current, finishedWork) {\n var previousCache = null;\n null !== current &&\n null !== current.memoizedState &&\n null !== current.memoizedState.cachePool &&\n (previousCache = current.memoizedState.cachePool.pool);\n current = null;\n null !== finishedWork.memoizedState &&\n null !== finishedWork.memoizedState.cachePool &&\n (current = finishedWork.memoizedState.cachePool.pool);\n current !== previousCache &&\n (null != current && current.refCount++,\n null != previousCache && releaseCache(previousCache));\n}\nfunction commitCachePassiveMountEffect(current, finishedWork) {\n current = null;\n null !== finishedWork.alternate &&\n (current = finishedWork.alternate.memoizedState.cache);\n finishedWork = finishedWork.memoizedState.cache;\n finishedWork !== current &&\n (finishedWork.refCount++, null != current && releaseCache(current));\n}\nfunction recursivelyTraversePassiveMountEffects(\n root,\n parentFiber,\n committedLanes,\n committedTransitions\n) {\n if (parentFiber.subtreeFlags & 10256)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitPassiveMountOnFiber(\n root,\n parentFiber,\n committedLanes,\n committedTransitions\n ),\n (parentFiber = parentFiber.sibling);\n}\nfunction commitPassiveMountOnFiber(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n) {\n var flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n flags & 2048 && commitHookEffectListMount(9, finishedWork);\n break;\n case 3:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n flags & 2048 &&\n ((finishedRoot = null),\n null !== finishedWork.alternate &&\n (finishedRoot = finishedWork.alternate.memoizedState.cache),\n (finishedWork = finishedWork.memoizedState.cache),\n finishedWork !== finishedRoot &&\n (finishedWork.refCount++,\n null != finishedRoot && releaseCache(finishedRoot)));\n break;\n case 12:\n if (flags & 2048) {\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n finishedRoot = finishedWork.stateNode;\n try {\n var _finishedWork$memoize2 = finishedWork.memoizedProps,\n id = _finishedWork$memoize2.id,\n onPostCommit = _finishedWork$memoize2.onPostCommit;\n \"function\" === typeof onPostCommit &&\n onPostCommit(\n id,\n null === finishedWork.alternate ? \"mount\" : \"update\",\n finishedRoot.passiveEffectDuration,\n -0\n );\n } catch (error) {\n captureCommitPhaseError(finishedWork, finishedWork.return, error);\n }\n } else\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n break;\n case 23:\n break;\n case 22:\n _finishedWork$memoize2 = finishedWork.stateNode;\n null !== finishedWork.memoizedState\n ? _finishedWork$memoize2._visibility & 4\n ? recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n )\n : recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork)\n : _finishedWork$memoize2._visibility & 4\n ? recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n )\n : ((_finishedWork$memoize2._visibility |= 4),\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n 0 !== (finishedWork.subtreeFlags & 10256)\n ));\n flags & 2048 &&\n commitOffscreenPassiveMountEffects(\n finishedWork.alternate,\n finishedWork\n );\n break;\n case 24:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n flags & 2048 &&\n commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n break;\n default:\n recursivelyTraversePassiveMountEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions\n );\n }\n}\nfunction recursivelyTraverseReconnectPassiveEffects(\n finishedRoot$jscomp$0,\n parentFiber,\n committedLanes$jscomp$0,\n committedTransitions$jscomp$0,\n includeWorkInProgressEffects\n) {\n includeWorkInProgressEffects =\n includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 10256);\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var finishedRoot = finishedRoot$jscomp$0,\n finishedWork = parentFiber,\n committedLanes = committedLanes$jscomp$0,\n committedTransitions = committedTransitions$jscomp$0,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n );\n commitHookEffectListMount(8, finishedWork);\n break;\n case 23:\n break;\n case 22:\n var instance = finishedWork.stateNode;\n null !== finishedWork.memoizedState\n ? instance._visibility & 4\n ? recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n )\n : recursivelyTraverseAtomicPassiveEffects(\n finishedRoot,\n finishedWork\n )\n : ((instance._visibility |= 4),\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n ));\n includeWorkInProgressEffects &&\n flags & 2048 &&\n commitOffscreenPassiveMountEffects(\n finishedWork.alternate,\n finishedWork\n );\n break;\n case 24:\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n );\n includeWorkInProgressEffects &&\n flags & 2048 &&\n commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n break;\n default:\n recursivelyTraverseReconnectPassiveEffects(\n finishedRoot,\n finishedWork,\n committedLanes,\n committedTransitions,\n includeWorkInProgressEffects\n );\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction recursivelyTraverseAtomicPassiveEffects(\n finishedRoot$jscomp$0,\n parentFiber\n) {\n if (parentFiber.subtreeFlags & 10256)\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n var finishedRoot = finishedRoot$jscomp$0,\n finishedWork = parentFiber,\n flags = finishedWork.flags;\n switch (finishedWork.tag) {\n case 22:\n recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n flags & 2048 &&\n commitOffscreenPassiveMountEffects(\n finishedWork.alternate,\n finishedWork\n );\n break;\n case 24:\n recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n flags & 2048 &&\n commitCachePassiveMountEffect(finishedWork.alternate, finishedWork);\n break;\n default:\n recursivelyTraverseAtomicPassiveEffects(finishedRoot, finishedWork);\n }\n parentFiber = parentFiber.sibling;\n }\n}\nvar suspenseyCommitFlag = 8192;\nfunction recursivelyAccumulateSuspenseyCommit(parentFiber) {\n if (parentFiber.subtreeFlags & suspenseyCommitFlag)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n accumulateSuspenseyCommitOnFiber(parentFiber),\n (parentFiber = parentFiber.sibling);\n}\nfunction accumulateSuspenseyCommitOnFiber(fiber) {\n switch (fiber.tag) {\n case 26:\n recursivelyAccumulateSuspenseyCommit(fiber);\n fiber.flags & suspenseyCommitFlag &&\n null !== fiber.memoizedState &&\n suspendResource(\n currentHoistableRoot,\n fiber.memoizedState,\n fiber.memoizedProps\n );\n break;\n case 5:\n recursivelyAccumulateSuspenseyCommit(fiber);\n break;\n case 3:\n case 4:\n var previousHoistableRoot = currentHoistableRoot;\n currentHoistableRoot = getHoistableRoot(fiber.stateNode.containerInfo);\n recursivelyAccumulateSuspenseyCommit(fiber);\n currentHoistableRoot = previousHoistableRoot;\n break;\n case 22:\n null === fiber.memoizedState &&\n ((previousHoistableRoot = fiber.alternate),\n null !== previousHoistableRoot &&\n null !== previousHoistableRoot.memoizedState\n ? ((previousHoistableRoot = suspenseyCommitFlag),\n (suspenseyCommitFlag = 16777216),\n recursivelyAccumulateSuspenseyCommit(fiber),\n (suspenseyCommitFlag = previousHoistableRoot))\n : recursivelyAccumulateSuspenseyCommit(fiber));\n break;\n default:\n recursivelyAccumulateSuspenseyCommit(fiber);\n }\n}\nfunction detachAlternateSiblings(parentFiber) {\n var previousFiber = parentFiber.alternate;\n if (\n null !== previousFiber &&\n ((parentFiber = previousFiber.child), null !== parentFiber)\n ) {\n previousFiber.child = null;\n do\n (previousFiber = parentFiber.sibling),\n (parentFiber.sibling = null),\n (parentFiber = previousFiber);\n while (null !== parentFiber);\n }\n}\nfunction recursivelyTraversePassiveUnmountEffects(parentFiber) {\n var deletions = parentFiber.deletions;\n if (0 !== (parentFiber.flags & 16)) {\n if (null !== deletions)\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i];\n nextEffect = childToDelete;\n commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n childToDelete,\n parentFiber\n );\n }\n detachAlternateSiblings(parentFiber);\n }\n if (parentFiber.subtreeFlags & 10256)\n for (parentFiber = parentFiber.child; null !== parentFiber; )\n commitPassiveUnmountOnFiber(parentFiber),\n (parentFiber = parentFiber.sibling);\n}\nfunction commitPassiveUnmountOnFiber(finishedWork) {\n switch (finishedWork.tag) {\n case 0:\n case 11:\n case 15:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n finishedWork.flags & 2048 &&\n commitHookEffectListUnmount(9, finishedWork, finishedWork.return);\n break;\n case 3:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n break;\n case 12:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n break;\n case 22:\n var instance = finishedWork.stateNode;\n null !== finishedWork.memoizedState &&\n instance._visibility & 4 &&\n (null === finishedWork.return || 13 !== finishedWork.return.tag)\n ? ((instance._visibility &= -5),\n recursivelyTraverseDisconnectPassiveEffects(finishedWork))\n : recursivelyTraversePassiveUnmountEffects(finishedWork);\n break;\n default:\n recursivelyTraversePassiveUnmountEffects(finishedWork);\n }\n}\nfunction recursivelyTraverseDisconnectPassiveEffects(parentFiber) {\n var deletions = parentFiber.deletions;\n if (0 !== (parentFiber.flags & 16)) {\n if (null !== deletions)\n for (var i = 0; i < deletions.length; i++) {\n var childToDelete = deletions[i];\n nextEffect = childToDelete;\n commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n childToDelete,\n parentFiber\n );\n }\n detachAlternateSiblings(parentFiber);\n }\n for (parentFiber = parentFiber.child; null !== parentFiber; ) {\n deletions = parentFiber;\n switch (deletions.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectListUnmount(8, deletions, deletions.return);\n recursivelyTraverseDisconnectPassiveEffects(deletions);\n break;\n case 22:\n i = deletions.stateNode;\n i._visibility & 4 &&\n ((i._visibility &= -5),\n recursivelyTraverseDisconnectPassiveEffects(deletions));\n break;\n default:\n recursivelyTraverseDisconnectPassiveEffects(deletions);\n }\n parentFiber = parentFiber.sibling;\n }\n}\nfunction commitPassiveUnmountEffectsInsideOfDeletedTree_begin(\n deletedSubtreeRoot,\n nearestMountedAncestor\n) {\n for (; null !== nextEffect; ) {\n var fiber = nextEffect;\n switch (fiber.tag) {\n case 0:\n case 11:\n case 15:\n commitHookEffectListUnmount(8, fiber, nearestMountedAncestor);\n break;\n case 23:\n case 22:\n if (\n null !== fiber.memoizedState &&\n null !== fiber.memoizedState.cachePool\n ) {\n var cache = fiber.memoizedState.cachePool.pool;\n null != cache && cache.refCount++;\n }\n break;\n case 24:\n releaseCache(fiber.memoizedState.cache);\n }\n cache = fiber.child;\n if (null !== cache) (cache.return = fiber), (nextEffect = cache);\n else\n a: for (fiber = deletedSubtreeRoot; null !== nextEffect; ) {\n cache = nextEffect;\n var sibling = cache.sibling,\n returnFiber = cache.return;\n detachFiberAfterEffects(cache);\n if (cache === fiber) {\n nextEffect = null;\n break a;\n }\n if (null !== sibling) {\n sibling.return = returnFiber;\n nextEffect = sibling;\n break a;\n }\n nextEffect = returnFiber;\n }\n }\n}\nfunction FiberNode(tag, pendingProps, key, mode) {\n this.tag = tag;\n this.key = key;\n this.sibling =\n this.child =\n this.return =\n this.stateNode =\n this.type =\n this.elementType =\n null;\n this.index = 0;\n this.refCleanup = this.ref = null;\n this.pendingProps = pendingProps;\n this.dependencies =\n this.memoizedState =\n this.updateQueue =\n this.memoizedProps =\n null;\n this.mode = mode;\n this.subtreeFlags = this.flags = 0;\n this.deletions = null;\n this.childLanes = this.lanes = 0;\n this.alternate = null;\n}\nfunction createFiberImplClass(tag, pendingProps, key, mode) {\n return new FiberNode(tag, pendingProps, key, mode);\n}\nfunction shouldConstruct(Component) {\n Component = Component.prototype;\n return !(!Component || !Component.isReactComponent);\n}\nfunction createWorkInProgress(current, pendingProps) {\n var workInProgress = current.alternate;\n null === workInProgress\n ? ((workInProgress = createFiberImplClass(\n current.tag,\n pendingProps,\n current.key,\n current.mode\n )),\n (workInProgress.elementType = current.elementType),\n (workInProgress.type = current.type),\n (workInProgress.stateNode = current.stateNode),\n (workInProgress.alternate = current),\n (current.alternate = workInProgress))\n : ((workInProgress.pendingProps = pendingProps),\n (workInProgress.type = current.type),\n (workInProgress.flags = 0),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.deletions = null));\n workInProgress.flags = current.flags & 31457280;\n workInProgress.childLanes = current.childLanes;\n workInProgress.lanes = current.lanes;\n workInProgress.child = current.child;\n workInProgress.memoizedProps = current.memoizedProps;\n workInProgress.memoizedState = current.memoizedState;\n workInProgress.updateQueue = current.updateQueue;\n pendingProps = current.dependencies;\n workInProgress.dependencies =\n null === pendingProps\n ? null\n : { lanes: pendingProps.lanes, firstContext: pendingProps.firstContext };\n workInProgress.sibling = current.sibling;\n workInProgress.index = current.index;\n workInProgress.ref = current.ref;\n workInProgress.refCleanup = current.refCleanup;\n return workInProgress;\n}\nfunction resetWorkInProgress(workInProgress, renderLanes) {\n workInProgress.flags &= 31457282;\n var current = workInProgress.alternate;\n null === current\n ? ((workInProgress.childLanes = 0),\n (workInProgress.lanes = renderLanes),\n (workInProgress.child = null),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.memoizedProps = null),\n (workInProgress.memoizedState = null),\n (workInProgress.updateQueue = null),\n (workInProgress.dependencies = null),\n (workInProgress.stateNode = null))\n : ((workInProgress.childLanes = current.childLanes),\n (workInProgress.lanes = current.lanes),\n (workInProgress.child = current.child),\n (workInProgress.subtreeFlags = 0),\n (workInProgress.deletions = null),\n (workInProgress.memoizedProps = current.memoizedProps),\n (workInProgress.memoizedState = current.memoizedState),\n (workInProgress.updateQueue = current.updateQueue),\n (workInProgress.type = current.type),\n (renderLanes = current.dependencies),\n (workInProgress.dependencies =\n null === renderLanes\n ? null\n : {\n lanes: renderLanes.lanes,\n firstContext: renderLanes.firstContext\n }));\n return workInProgress;\n}\nfunction createFiberFromTypeAndProps(\n type,\n key,\n pendingProps,\n owner,\n mode,\n lanes\n) {\n var fiberTag = 0;\n owner = type;\n if (\"function\" === typeof type) shouldConstruct(type) && (fiberTag = 1);\n else if (\"string\" === typeof type)\n fiberTag = isHostHoistableType(\n type,\n pendingProps,\n contextStackCursor.current\n )\n ? 26\n : \"html\" === type || \"head\" === type || \"body\" === type\n ? 27\n : 5;\n else\n a: switch (type) {\n case REACT_FRAGMENT_TYPE:\n return createFiberFromFragment(pendingProps.children, mode, lanes, key);\n case REACT_STRICT_MODE_TYPE:\n fiberTag = 8;\n mode |= 24;\n break;\n case REACT_PROFILER_TYPE:\n return (\n (type = createFiberImplClass(12, pendingProps, key, mode | 2)),\n (type.elementType = REACT_PROFILER_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_SUSPENSE_TYPE:\n return (\n (type = createFiberImplClass(13, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_SUSPENSE_LIST_TYPE:\n return (\n (type = createFiberImplClass(19, pendingProps, key, mode)),\n (type.elementType = REACT_SUSPENSE_LIST_TYPE),\n (type.lanes = lanes),\n type\n );\n case REACT_OFFSCREEN_TYPE:\n return createFiberFromOffscreen(pendingProps, mode, lanes, key);\n default:\n if (\"object\" === typeof type && null !== type)\n switch (type.$$typeof) {\n case REACT_PROVIDER_TYPE:\n case REACT_CONTEXT_TYPE:\n fiberTag = 10;\n break a;\n case REACT_CONSUMER_TYPE:\n fiberTag = 9;\n break a;\n case REACT_FORWARD_REF_TYPE:\n fiberTag = 11;\n break a;\n case REACT_MEMO_TYPE:\n fiberTag = 14;\n break a;\n case REACT_LAZY_TYPE:\n fiberTag = 16;\n owner = null;\n break a;\n }\n fiberTag = 29;\n pendingProps = Error(\n formatProdErrorMessage(130, null === type ? \"null\" : typeof type, \"\")\n );\n owner = null;\n }\n key = createFiberImplClass(fiberTag, pendingProps, key, mode);\n key.elementType = type;\n key.type = owner;\n key.lanes = lanes;\n return key;\n}\nfunction createFiberFromFragment(elements, mode, lanes, key) {\n elements = createFiberImplClass(7, elements, key, mode);\n elements.lanes = lanes;\n return elements;\n}\nfunction createFiberFromOffscreen(pendingProps, mode, lanes, key) {\n pendingProps = createFiberImplClass(22, pendingProps, key, mode);\n pendingProps.elementType = REACT_OFFSCREEN_TYPE;\n pendingProps.lanes = lanes;\n var primaryChildInstance = {\n _visibility: 1,\n _pendingVisibility: 1,\n _pendingMarkers: null,\n _retryCache: null,\n _transitions: null,\n _current: null,\n detach: function () {\n var fiber = primaryChildInstance._current;\n if (null === fiber) throw Error(formatProdErrorMessage(456));\n if (0 === (primaryChildInstance._pendingVisibility & 2)) {\n var root = enqueueConcurrentRenderForLane(fiber, 2);\n null !== root &&\n ((primaryChildInstance._pendingVisibility |= 2),\n scheduleUpdateOnFiber(root, fiber, 2));\n }\n },\n attach: function () {\n var fiber = primaryChildInstance._current;\n if (null === fiber) throw Error(formatProdErrorMessage(456));\n if (0 !== (primaryChildInstance._pendingVisibility & 2)) {\n var root = enqueueConcurrentRenderForLane(fiber, 2);\n null !== root &&\n ((primaryChildInstance._pendingVisibility &= -3),\n scheduleUpdateOnFiber(root, fiber, 2));\n }\n }\n };\n pendingProps.stateNode = primaryChildInstance;\n return pendingProps;\n}\nfunction createFiberFromText(content, mode, lanes) {\n content = createFiberImplClass(6, content, null, mode);\n content.lanes = lanes;\n return content;\n}\nfunction createFiberFromPortal(portal, mode, lanes) {\n mode = createFiberImplClass(\n 4,\n null !== portal.children ? portal.children : [],\n portal.key,\n mode\n );\n mode.lanes = lanes;\n mode.stateNode = {\n containerInfo: portal.containerInfo,\n pendingChildren: null,\n implementation: portal.implementation\n };\n return mode;\n}\nfunction markUpdate(workInProgress) {\n workInProgress.flags |= 4;\n}\nfunction preloadResourceAndSuspendIfNeeded(workInProgress, resource) {\n if (\"stylesheet\" !== resource.type || 0 !== (resource.state.loading & 4))\n workInProgress.flags &= -16777217;\n else if (((workInProgress.flags |= 16777216), !preloadResource(resource)))\n if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;\n else\n throw (\n ((suspendedThenable = noopSuspenseyCommitThenable),\n SuspenseyCommitException)\n );\n}\nfunction scheduleRetryEffect(workInProgress, retryQueue) {\n null !== retryQueue && (workInProgress.flags |= 4);\n workInProgress.flags & 16384 &&\n ((retryQueue =\n 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),\n (workInProgress.lanes |= retryQueue),\n (workInProgressSuspendedRetryLanes |= retryQueue));\n}\nfunction cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {\n if (!isHydrating)\n switch (renderState.tailMode) {\n case \"hidden\":\n hasRenderedATailFallback = renderState.tail;\n for (var lastTailNode = null; null !== hasRenderedATailFallback; )\n null !== hasRenderedATailFallback.alternate &&\n (lastTailNode = hasRenderedATailFallback),\n (hasRenderedATailFallback = hasRenderedATailFallback.sibling);\n null === lastTailNode\n ? (renderState.tail = null)\n : (lastTailNode.sibling = null);\n break;\n case \"collapsed\":\n lastTailNode = renderState.tail;\n for (var lastTailNode$132 = null; null !== lastTailNode; )\n null !== lastTailNode.alternate && (lastTailNode$132 = lastTailNode),\n (lastTailNode = lastTailNode.sibling);\n null === lastTailNode$132\n ? hasRenderedATailFallback || null === renderState.tail\n ? (renderState.tail = null)\n : (renderState.tail.sibling = null)\n : (lastTailNode$132.sibling = null);\n }\n}\nfunction bubbleProperties(completedWork) {\n var didBailout =\n null !== completedWork.alternate &&\n completedWork.alternate.child === completedWork.child,\n newChildLanes = 0,\n subtreeFlags = 0;\n if (didBailout)\n for (var child$133 = completedWork.child; null !== child$133; )\n (newChildLanes |= child$133.lanes | child$133.childLanes),\n (subtreeFlags |= child$133.subtreeFlags & 31457280),\n (subtreeFlags |= child$133.flags & 31457280),\n (child$133.return = completedWork),\n (child$133 = child$133.sibling);\n else\n for (child$133 = completedWork.child; null !== child$133; )\n (newChildLanes |= child$133.lanes | child$133.childLanes),\n (subtreeFlags |= child$133.subtreeFlags),\n (subtreeFlags |= child$133.flags),\n (child$133.return = completedWork),\n (child$133 = child$133.sibling);\n completedWork.subtreeFlags |= subtreeFlags;\n completedWork.childLanes = newChildLanes;\n return didBailout;\n}\nfunction completeWork(current, workInProgress, renderLanes) {\n var newProps = workInProgress.pendingProps;\n popTreeContext(workInProgress);\n switch (workInProgress.tag) {\n case 16:\n case 15:\n case 0:\n case 11:\n case 7:\n case 8:\n case 12:\n case 9:\n case 14:\n return bubbleProperties(workInProgress), null;\n case 1:\n return bubbleProperties(workInProgress), null;\n case 3:\n renderLanes = workInProgress.stateNode;\n newProps = null;\n null !== current && (newProps = current.memoizedState.cache);\n workInProgress.memoizedState.cache !== newProps &&\n (workInProgress.flags |= 2048);\n popProvider(CacheContext);\n popHostContainer();\n renderLanes.pendingContext &&\n ((renderLanes.context = renderLanes.pendingContext),\n (renderLanes.pendingContext = null));\n if (null === current || null === current.child)\n popHydrationState(workInProgress)\n ? markUpdate(workInProgress)\n : null === current ||\n (current.memoizedState.isDehydrated &&\n 0 === (workInProgress.flags & 256)) ||\n ((workInProgress.flags |= 1024),\n null !== hydrationErrors &&\n (queueRecoverableErrors(hydrationErrors),\n (hydrationErrors = null)));\n bubbleProperties(workInProgress);\n return null;\n case 26:\n return (\n (renderLanes = workInProgress.memoizedState),\n null === current\n ? (markUpdate(workInProgress),\n null !== renderLanes\n ? (bubbleProperties(workInProgress),\n preloadResourceAndSuspendIfNeeded(workInProgress, renderLanes))\n : (bubbleProperties(workInProgress),\n (workInProgress.flags &= -16777217)))\n : renderLanes\n ? renderLanes !== current.memoizedState\n ? (markUpdate(workInProgress),\n bubbleProperties(workInProgress),\n preloadResourceAndSuspendIfNeeded(workInProgress, renderLanes))\n : (bubbleProperties(workInProgress),\n (workInProgress.flags &= -16777217))\n : (current.memoizedProps !== newProps && markUpdate(workInProgress),\n bubbleProperties(workInProgress),\n (workInProgress.flags &= -16777217)),\n null\n );\n case 27:\n popHostContext(workInProgress);\n renderLanes = rootInstanceStackCursor.current;\n var type = workInProgress.type;\n if (null !== current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (!newProps) {\n if (null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n bubbleProperties(workInProgress);\n return null;\n }\n current = contextStackCursor.current;\n popHydrationState(workInProgress)\n ? prepareToHydrateHostInstance(workInProgress, current)\n : ((current = resolveSingletonInstance(type, newProps, renderLanes)),\n (workInProgress.stateNode = current),\n markUpdate(workInProgress));\n }\n bubbleProperties(workInProgress);\n return null;\n case 5:\n popHostContext(workInProgress);\n renderLanes = workInProgress.type;\n if (null !== current && null != workInProgress.stateNode)\n current.memoizedProps !== newProps && markUpdate(workInProgress);\n else {\n if (!newProps) {\n if (null === workInProgress.stateNode)\n throw Error(formatProdErrorMessage(166));\n bubbleProperties(workInProgress);\n return null;\n }\n current = contextStackCursor.current;\n if (popHydrationState(workInProgress))\n prepareToHydrateHostInstance(workInProgress, current);\n else {\n type = getOwnerDocumentFromRootContainer(\n rootInstanceStackCursor.current\n );\n switch (current) {\n case 1:\n current = type.createElementNS(\n \"http://www.w3.org/2000/svg\",\n renderLanes\n );\n break;\n case 2:\n current = type.createElementNS(\n \"http://www.w3.org/1998/Math/MathML\",\n renderLanes\n );\n break;\n default:\n switch (renderLanes) {\n case \"svg\":\n current = type.createElementNS(\n \"http://www.w3.org/2000/svg\",\n renderLanes\n );\n break;\n case \"math\":\n current = type.createElementNS(\n \"http://www.w3.org/1998/Math/MathML\",\n renderLanes\n );\n break;\n case \"script\":\n current = type.createElement(\"div\");\n current.innerHTML = \"