diff --git a/striker-ui/.eslintrc.json b/striker-ui/.eslintrc.json
index 33570d35..8a8bc3cf 100644
--- a/striker-ui/.eslintrc.json
+++ b/striker-ui/.eslintrc.json
@@ -52,7 +52,7 @@
"react/prop-types": "off",
// Importing React is not required in Next.js
"react/react-in-jsx-scope": "off",
-
+ "react/jsx-curly-newline": "off",
"camelcase": "off",
"@typescript-eslint/camelcase": "off"
},
diff --git a/striker-ui/.gitignore b/striker-ui/.gitignore
index 9aa0ad3b..c5887cab 100644
--- a/striker-ui/.gitignore
+++ b/striker-ui/.gitignore
@@ -15,6 +15,7 @@
/build
/out/*
!/out/index.html
+!/out/server.html
!/out/_next
# misc
diff --git a/striker-ui/Makefile.am b/striker-ui/Makefile.am
index 3baee2eb..ebc80925 100644
--- a/striker-ui/Makefile.am
+++ b/striker-ui/Makefile.am
@@ -7,7 +7,8 @@ nextbuilddir = .next
# List of paths relative to the build output directory.
#
-outindexfile = index.html
+outindexpage = index.html
+outserverpage = server.html
outjsmodulesdir = _next
outimagesdir = pngs
@@ -88,13 +89,19 @@ build: $(nodemodulesdir)
install-data-hook:
-@echo "Place build output files."
- cp -r --no-preserve=mode $(srcdir)/$(nextoutdir)/$(outindexfile) $(srcdir)/$(nextoutdir)/$(outjsmodulesdir) $(DESTDIR)/$(htmldir)/
+ (cd $(srcdir)/$(nextoutdir); \
+ cp -r --no-preserve=mode \
+ $(outindexpage) $(outserverpage) $(outjsmodulesdir) \
+ $(DESTDIR)/$(htmldir)/ \
+ )
-@echo "Create symlink to images to enable borrowing icon etc. without duplicating."
(cd $(DESTDIR)/$(htmldir); $(LN_S) skins/alteeve/images $(outimagesdir))
uninstall-hook:
-@echo "Remove all installed files of the current module."
- (cd $(DESTDIR)/$(htmldir); rm -rf $(outindexfile) $(outjsmodulesdir) $(outimagesdir))
+ (cd $(DESTDIR)/$(htmldir); \
+ rm -rf $(outindexpage) $(outserverpage) $(outjsmodulesdir) $(outimagesdir) \
+ )
clean-local:
-@echo "Clean up node modules."
diff --git a/striker-ui/components/AnvilDrawer.tsx b/striker-ui/components/AnvilDrawer.tsx
index c6470c99..34bc7615 100644
--- a/striker-ui/components/AnvilDrawer.tsx
+++ b/striker-ui/components/AnvilDrawer.tsx
@@ -1,9 +1,10 @@
import { Divider, Drawer, List, ListItem, Box } from '@material-ui/core';
import { makeStyles, createStyles } from '@material-ui/core/styles';
+import DashboardIcon from '@material-ui/icons/Dashboard';
import { Dispatch, SetStateAction } from 'react';
import { BodyText, HeaderText } from './Text';
import { ICONS, ICON_SIZE } from '../lib/consts/ICONS';
-import { DIVIDER } from '../lib/consts/DEFAULT_THEME';
+import { DIVIDER, GREY } from '../lib/consts/DEFAULT_THEME';
interface DrawerProps {
open: boolean;
@@ -22,6 +23,13 @@ const useStyles = makeStyles(() =>
paddingTop: '.5em',
paddingLeft: '1.5em',
},
+ dashboardButton: {
+ paddingLeft: '.1em',
+ },
+ dashboardIcon: {
+ fontSize: '2.3em',
+ color: GREY,
+ },
}),
);
@@ -41,6 +49,16 @@ const AnvilDrawer = ({ open, setOpen }: DrawerProps): JSX.Element => {
+
+
+
+
+
+
+
+
+
+
{ICONS.map(
(icon): JSX.Element => (
({
width: '100%',
overflow: 'auto',
height: '30vh',
- [theme.breakpoints.down('md')]: {
+ paddingRight: '.3em',
+ [theme.breakpoints.down(LARGE_MOBILE_BREAKPOINT)]: {
height: '100%',
overflow: 'hidden',
},
diff --git a/striker-ui/components/Anvils/SelectedAnvil.tsx b/striker-ui/components/Anvils/SelectedAnvil.tsx
index 7c1130fb..7314ba9e 100644
--- a/striker-ui/components/Anvils/SelectedAnvil.tsx
+++ b/striker-ui/components/Anvils/SelectedAnvil.tsx
@@ -6,7 +6,7 @@ import { SELECTED_ANVIL } from '../../lib/consts/DEFAULT_THEME';
import anvilState from '../../lib/consts/ANVILS';
import { AnvilContext } from '../AnvilContext';
import Decorator, { Colours } from '../Decorator';
-import putJSON from '../../lib/fetchers/putJSON';
+import putFetch from '../../lib/fetchers/putFetch';
const useStyles = makeStyles(() => ({
root: {
@@ -67,7 +67,7 @@ const SelectedAnvil = ({ list }: { list: AnvilListItem[] }): JSX.Element => {
- putJSON('/set_power', {
+ putFetch(`${process.env.NEXT_PUBLIC_API_URL}/set_power`, {
anvil_uuid: list[index].anvil_uuid,
is_on: !isAnvilOn(list[index]),
})
diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx
new file mode 100644
index 00000000..39f92c4c
--- /dev/null
+++ b/striker-ui/components/Display/FullSize.tsx
@@ -0,0 +1,239 @@
+import { useState, useRef, useEffect, Dispatch, SetStateAction } from 'react';
+import dynamic from 'next/dynamic';
+import { Box, Menu, MenuItem, Typography, Button } from '@material-ui/core';
+import { makeStyles } from '@material-ui/core/styles';
+import CloseIcon from '@material-ui/icons/Close';
+import KeyboardIcon from '@material-ui/icons/Keyboard';
+import IconButton from '@material-ui/core/IconButton';
+import RFB from '@novnc/novnc/core/rfb';
+import { Panel } from '../Panels';
+import { BLACK, RED, TEXT } from '../../lib/consts/DEFAULT_THEME';
+import keyCombinations from './keyCombinations';
+import putFetch from '../../lib/fetchers/putFetch';
+import putFetchWithTimeout from '../../lib/fetchers/putFetchWithTimeout';
+import { HeaderText } from '../Text';
+import Spinner from '../Spinner';
+
+const VncDisplay = dynamic(() => import('./VncDisplay'), { ssr: false });
+
+const useStyles = makeStyles(() => ({
+ displayBox: {
+ width: '75vw',
+ height: '75vh',
+ paddingTop: '1em',
+ paddingBottom: 0,
+ paddingLeft: 0,
+ paddingRight: 0,
+ },
+ spinnerBox: {
+ flexDirection: 'column',
+ width: '75vw',
+ height: '75vh',
+ alignItems: 'center',
+ justifyContent: 'center',
+ },
+ closeButton: {
+ borderRadius: 8,
+ backgroundColor: RED,
+ '&:hover': {
+ backgroundColor: RED,
+ },
+ },
+ keyboardButton: {
+ borderRadius: 8,
+ backgroundColor: TEXT,
+ '&:hover': {
+ backgroundColor: TEXT,
+ },
+ },
+ closeBox: {
+ paddingBottom: '1em',
+ paddingLeft: '.7em',
+ paddingRight: 0,
+ },
+ buttonsBox: {
+ paddingTop: 0,
+ },
+ keysItem: {
+ backgroundColor: TEXT,
+ paddingRight: '3em',
+ '&:hover': {
+ backgroundColor: TEXT,
+ },
+ },
+ buttonText: {
+ color: BLACK,
+ },
+}));
+
+interface PreviewProps {
+ setMode: Dispatch>;
+ uuid: string;
+ serverName: string | string[] | undefined;
+}
+
+interface VncConnectionProps {
+ protocol: string;
+ forward_port: number;
+}
+
+const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => {
+ const [anchorEl, setAnchorEl] = useState(null);
+ const rfb = useRef();
+ const hostname = useRef(undefined);
+ const [vncConnection, setVncConnection] = useState<
+ VncConnectionProps | undefined
+ >(undefined);
+ const [isError, setIsError] = useState(false);
+ const classes = useStyles();
+
+ useEffect(() => {
+ if (typeof window !== 'undefined') {
+ hostname.current = window.location.hostname;
+ }
+
+ if (!vncConnection)
+ (async () => {
+ try {
+ const res = await putFetchWithTimeout(
+ `${process.env.NEXT_PUBLIC_API_URL}/manage_vnc_pipes`,
+ {
+ server_uuid: uuid,
+ is_open: true,
+ },
+ 120000,
+ );
+ setVncConnection(await res.json());
+ } catch {
+ setIsError(true);
+ }
+ })();
+ }, [uuid, vncConnection, isError]);
+
+ const handleClick = (event: React.MouseEvent): void => {
+ setAnchorEl(event.currentTarget);
+ };
+
+ const handleClickClose = async () => {
+ await putFetch(`${process.env.NEXT_PUBLIC_API_URL}/manage_vnc_pipes`, {
+ server_uuid: uuid,
+ is_open: false,
+ });
+ };
+
+ const handleSendKeys = (scans: string[]) => {
+ if (rfb.current) {
+ if (!scans.length) rfb.current.sendCtrlAltDel();
+ else {
+ // Send pressing keys
+ for (let i = 0; i <= scans.length - 1; i += 1) {
+ rfb.current.sendKey(scans[i], 1);
+ }
+
+ // Send releasing keys in reverse order
+ for (let i = scans.length - 1; i >= 0; i -= 1) {
+ rfb.current.sendKey(scans[i], 0);
+ }
+ }
+ setAnchorEl(null);
+ }
+ };
+
+ return (
+
+
+
+
+ {vncConnection ? (
+
+
+
+
+ {
+ handleClickClose();
+ setMode(true);
+ }}
+ >
+
+
+
+
+
+
+
+
+
+
+
+ ) : (
+
+ {!isError ? (
+ <>
+
+
+
+ >
+ ) : (
+ <>
+
+
+
+
+ >
+ )}
+
+ )}
+
+ );
+};
+
+export default FullSize;
diff --git a/striker-ui/components/Display/Preview.tsx b/striker-ui/components/Display/Preview.tsx
new file mode 100644
index 00000000..6167d7ac
--- /dev/null
+++ b/striker-ui/components/Display/Preview.tsx
@@ -0,0 +1,79 @@
+import { Dispatch, SetStateAction } from 'react';
+import { Box } from '@material-ui/core';
+import { makeStyles } from '@material-ui/core/styles';
+import IconButton from '@material-ui/core/IconButton';
+import DesktopWindowsIcon from '@material-ui/icons/DesktopWindows';
+import CropOriginal from '@material-ui/icons/Image';
+import { Panel } from '../Panels';
+import { BLACK, GREY, TEXT } from '../../lib/consts/DEFAULT_THEME';
+import { HeaderText } from '../Text';
+
+interface PreviewProps {
+ setMode: Dispatch>;
+ serverName: string | string[] | undefined;
+}
+
+const useStyles = makeStyles(() => ({
+ displayBox: {
+ padding: 0,
+ paddingTop: '.7em',
+ width: '100%',
+ },
+ fullScreenButton: {
+ borderRadius: 8,
+ backgroundColor: TEXT,
+ '&:hover': {
+ backgroundColor: TEXT,
+ },
+ },
+ fullScreenBox: {
+ paddingLeft: '1em',
+ padding: 0,
+ },
+ imageButton: {
+ padding: 0,
+ color: TEXT,
+ },
+ imageIcon: {
+ borderRadius: 8,
+ padding: 0,
+ backgroundColor: GREY,
+ fontSize: '8em',
+ },
+}));
+
+const Preview = ({ setMode, serverName }: PreviewProps): JSX.Element => {
+ const classes = useStyles();
+
+ return (
+
+
+
+
+
+
+ setMode(false)}
+ >
+
+
+
+
+ setMode(false)}
+ >
+
+
+
+
+
+ );
+};
+
+export default Preview;
diff --git a/striker-ui/components/Display/VncDisplay.tsx b/striker-ui/components/Display/VncDisplay.tsx
new file mode 100644
index 00000000..9afb222e
--- /dev/null
+++ b/striker-ui/components/Display/VncDisplay.tsx
@@ -0,0 +1,96 @@
+import { useEffect, useRef, MutableRefObject, memo } from 'react';
+import RFB from '@novnc/novnc/core/rfb';
+
+type Props = {
+ rfb: MutableRefObject;
+ url: string;
+ viewOnly: boolean;
+ focusOnClick: boolean;
+ clipViewport: boolean;
+ dragViewport: boolean;
+ scaleViewport: boolean;
+ resizeSession: boolean;
+ showDotCursor: boolean;
+ background: string;
+ qualityLevel: number;
+ compressionLevel: number;
+};
+
+const VncDisplay = (props: Props): JSX.Element => {
+ const screen = useRef(null);
+
+ const {
+ rfb,
+ url,
+ viewOnly,
+ focusOnClick,
+ clipViewport,
+ dragViewport,
+ scaleViewport,
+ resizeSession,
+ showDotCursor,
+ background,
+ qualityLevel,
+ compressionLevel,
+ } = props;
+
+ useEffect(() => {
+ if (!screen.current) {
+ return (): void => {
+ if (rfb.current) {
+ rfb?.current.disconnect();
+ rfb.current = undefined;
+ }
+ };
+ }
+
+ if (!rfb.current) {
+ screen.current.innerHTML = '';
+
+ rfb.current = new RFB(screen.current, url);
+
+ rfb.current.viewOnly = viewOnly;
+ rfb.current.focusOnClick = focusOnClick;
+ rfb.current.clipViewport = clipViewport;
+ rfb.current.dragViewport = dragViewport;
+ rfb.current.resizeSession = resizeSession;
+ rfb.current.scaleViewport = scaleViewport;
+ rfb.current.showDotCursor = showDotCursor;
+ rfb.current.background = background;
+ rfb.current.qualityLevel = qualityLevel;
+ rfb.current.compressionLevel = compressionLevel;
+ }
+
+ /* eslint-disable consistent-return */
+ if (!rfb.current) return;
+
+ return (): void => {
+ if (rfb.current) {
+ rfb.current.disconnect();
+ rfb.current = undefined;
+ }
+ };
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [rfb]);
+
+ const handleMouseEnter = () => {
+ if (
+ document.activeElement &&
+ document.activeElement instanceof HTMLElement
+ ) {
+ document.activeElement.blur();
+ }
+
+ if (rfb?.current) rfb.current.focus();
+ };
+
+ return (
+
+ );
+};
+
+export default memo(VncDisplay);
diff --git a/striker-ui/components/Display/index.tsx b/striker-ui/components/Display/index.tsx
new file mode 100644
index 00000000..7a7326da
--- /dev/null
+++ b/striker-ui/components/Display/index.tsx
@@ -0,0 +1,4 @@
+import FullSize from './FullSize';
+import Preview from './Preview';
+
+export { FullSize, Preview };
diff --git a/striker-ui/components/Display/keyCombinations.ts b/striker-ui/components/Display/keyCombinations.ts
new file mode 100644
index 00000000..c06ad388
--- /dev/null
+++ b/striker-ui/components/Display/keyCombinations.ts
@@ -0,0 +1,27 @@
+const ControlL = '0xffe3';
+const AltL = '0xffe9';
+
+const F1 = '0xffbe';
+const F2 = '0xffbf';
+const F3 = '0xffc0';
+const F4 = '0xffc1';
+const F5 = '0xffc2';
+const F6 = '0xffc3';
+const F7 = '0xffc4';
+const F8 = '0xffc5';
+const F9 = '0xffc6';
+
+const keyCombinations: Array<{ keys: string; scans: string[] }> = [
+ { keys: 'Ctrl + Alt + Delete', scans: [] },
+ { keys: 'Ctrl + Alt + F1', scans: [ControlL, AltL, F1] },
+ { keys: 'Ctrl + Alt + F2', scans: [ControlL, AltL, F2] },
+ { keys: 'Ctrl + Alt + F3', scans: [ControlL, AltL, F3] },
+ { keys: 'Ctrl + Alt + F4', scans: [ControlL, AltL, F4] },
+ { keys: 'Ctrl + Alt + F5', scans: [ControlL, AltL, F5] },
+ { keys: 'Ctrl + Alt + F6', scans: [ControlL, AltL, F6] },
+ { keys: 'Ctrl + Alt + F7', scans: [ControlL, AltL, F7] },
+ { keys: 'Ctrl + Alt + F8', scans: [ControlL, AltL, F8] },
+ { keys: 'Ctrl + Alt + F9', scans: [ControlL, AltL, F9] },
+];
+
+export default keyCombinations;
diff --git a/striker-ui/components/Domain.tsx b/striker-ui/components/Domain.tsx
new file mode 100644
index 00000000..c25ff26e
--- /dev/null
+++ b/striker-ui/components/Domain.tsx
@@ -0,0 +1,12 @@
+import { Panel } from './Panels';
+import { HeaderText } from './Text';
+
+const Domain = (): JSX.Element => {
+ return (
+
+
+
+ );
+};
+
+export default Domain;
diff --git a/striker-ui/components/FileSystem/FileSystems.tsx b/striker-ui/components/FileSystem/FileSystems.tsx
index aed6b43f..b41407a0 100644
--- a/striker-ui/components/FileSystem/FileSystems.tsx
+++ b/striker-ui/components/FileSystem/FileSystems.tsx
@@ -8,6 +8,7 @@ import SharedStorageHost from './FileSystemsHost';
import PeriodicFetch from '../../lib/fetchers/periodicFetch';
import { AnvilContext } from '../AnvilContext';
import Spinner from '../Spinner';
+import { LARGE_MOBILE_BREAKPOINT } from '../../lib/consts/DEFAULT_THEME';
const useStyles = makeStyles((theme) => ({
header: {
@@ -18,7 +19,7 @@ const useStyles = makeStyles((theme) => ({
overflow: 'auto',
height: '78vh',
paddingLeft: '.3em',
- [theme.breakpoints.down('md')]: {
+ [theme.breakpoints.down(LARGE_MOBILE_BREAKPOINT)]: {
height: '100%',
},
},
diff --git a/striker-ui/components/Header.tsx b/striker-ui/components/Header.tsx
index 436b1138..28786aad 100644
--- a/striker-ui/components/Header.tsx
+++ b/striker-ui/components/Header.tsx
@@ -1,43 +1,45 @@
import { useState } from 'react';
import AppBar from '@material-ui/core/AppBar';
-import { makeStyles, createStyles } from '@material-ui/core/styles';
+import { makeStyles } from '@material-ui/core/styles';
import { Box, Button } from '@material-ui/core';
import { ICONS, ICON_SIZE } from '../lib/consts/ICONS';
import { BORDER_RADIUS, RED } from '../lib/consts/DEFAULT_THEME';
import AnvilDrawer from './AnvilDrawer';
-const useStyles = makeStyles((theme) =>
- createStyles({
- appBar: {
- paddingTop: theme.spacing(0.5),
- paddingBottom: theme.spacing(0.5),
- paddingLeft: theme.spacing(3),
- paddingRight: theme.spacing(3),
- borderBottom: 'solid 1px',
- borderBottomColor: RED,
+const useStyles = makeStyles((theme) => ({
+ appBar: {
+ paddingTop: theme.spacing(0.5),
+ paddingBottom: theme.spacing(0.5),
+ paddingLeft: theme.spacing(3),
+ paddingRight: theme.spacing(3),
+ borderBottom: 'solid 1px',
+ borderBottomColor: RED,
+ },
+ input: {
+ height: '2.8em',
+ width: '30vw',
+ backgroundColor: theme.palette.secondary.main,
+ borderRadius: BORDER_RADIUS,
+ },
+ barElement: {
+ padding: 0,
+ },
+ iconBox: {
+ [theme.breakpoints.down('sm')]: {
+ display: 'none',
},
- input: {
- height: '2.8em',
- width: '30vw',
- backgroundColor: theme.palette.secondary.main,
- borderRadius: BORDER_RADIUS,
+ },
+ searchBar: {
+ [theme.breakpoints.down('sm')]: {
+ flexGrow: 1,
+ paddingLeft: '15vw',
},
- barElement: {
- padding: 0,
- },
- icons: {
- [theme.breakpoints.down('sm')]: {
- display: 'none',
- },
- },
- searchBar: {
- [theme.breakpoints.down('sm')]: {
- flexGrow: 1,
- paddingLeft: '15vw',
- },
- },
- }),
-);
+ },
+ icons: {
+ paddingLeft: '.1em',
+ paddingRight: '.1em',
+ },
+}));
const Header = (): JSX.Element => {
const classes = useStyles();
@@ -46,40 +48,39 @@ const Header = (): JSX.Element => {
const toggleDrawer = (): void => setOpen(!open);
return (
- <>
-
-
-
-
-
-
- {ICONS.map(
- (icon): JSX.Element => (
-
-
-
- ),
- )}
-
+
+
+
+
-
+
+ {ICONS.map(
+ (icon): JSX.Element => (
+
+
+
+ ),
+ )}
+
+
- >
+
);
};
diff --git a/striker-ui/components/Hosts/AnvilHost.tsx b/striker-ui/components/Hosts/AnvilHost.tsx
index 068a97ac..1d013707 100644
--- a/striker-ui/components/Hosts/AnvilHost.tsx
+++ b/striker-ui/components/Hosts/AnvilHost.tsx
@@ -6,14 +6,16 @@ import { BodyText } from '../Text';
import Decorator, { Colours } from '../Decorator';
import HOST_STATUS from '../../lib/consts/NODES';
-import putJSON from '../../lib/fetchers/putJSON';
+import putFetch from '../../lib/fetchers/putFetch';
+import { LARGE_MOBILE_BREAKPOINT } from '../../lib/consts/DEFAULT_THEME';
const useStyles = makeStyles((theme) => ({
root: {
overflow: 'auto',
height: '28vh',
paddingLeft: '.3em',
- [theme.breakpoints.down('md')]: {
+ paddingRight: '.3em',
+ [theme.breakpoints.down(LARGE_MOBILE_BREAKPOINT)]: {
height: '100%',
overflow: 'hidden',
},
@@ -102,10 +104,13 @@ const AnvilHost = ({
- putJSON('/set_power', {
- host_uuid: host.host_uuid,
- is_on: !(host.state === 'online'),
- })
+ putFetch(
+ `${process.env.NEXT_PUBLIC_API_URL}/set_power`,
+ {
+ host_uuid: host.host_uuid,
+ is_on: !(host.state === 'online'),
+ },
+ )
}
/>
@@ -117,10 +122,13 @@ const AnvilHost = ({
checked={host.state === 'online'}
disabled={!(host.state === 'online')}
onChange={() =>
- putJSON('/set_membership', {
- host_uuid: host.host_uuid,
- is_member: !(host.state === 'online'),
- })
+ putFetch(
+ `${process.env.NEXT_PUBLIC_API_URL}/set_membership`,
+ {
+ host_uuid: host.host_uuid,
+ is_member: !(host.state === 'online'),
+ },
+ )
}
/>
diff --git a/striker-ui/components/Network/Network.tsx b/striker-ui/components/Network/Network.tsx
index 064233bd..13c58278 100644
--- a/striker-ui/components/Network/Network.tsx
+++ b/striker-ui/components/Network/Network.tsx
@@ -4,7 +4,10 @@ import { makeStyles } from '@material-ui/core/styles';
import { Panel } from '../Panels';
import { HeaderText, BodyText } from '../Text';
import PeriodicFetch from '../../lib/fetchers/periodicFetch';
-import { DIVIDER } from '../../lib/consts/DEFAULT_THEME';
+import {
+ DIVIDER,
+ LARGE_MOBILE_BREAKPOINT,
+} from '../../lib/consts/DEFAULT_THEME';
import processNetworkData from './processNetwork';
import { AnvilContext } from '../AnvilContext';
import Decorator, { Colours } from '../Decorator';
@@ -15,7 +18,8 @@ const useStyles = makeStyles((theme) => ({
width: '100%',
overflow: 'auto',
height: '32vh',
- [theme.breakpoints.down('md')]: {
+ paddingRight: '.3em',
+ [theme.breakpoints.down(LARGE_MOBILE_BREAKPOINT)]: {
height: '100%',
overflow: 'hidden',
},
diff --git a/striker-ui/components/Panels/InnerPanel.tsx b/striker-ui/components/Panels/InnerPanel.tsx
index 22c22274..0b55ec44 100644
--- a/striker-ui/components/Panels/InnerPanel.tsx
+++ b/striker-ui/components/Panels/InnerPanel.tsx
@@ -15,7 +15,7 @@ const useStyles = makeStyles(() => ({
borderColor: DIVIDER,
marginTop: '1.4em',
marginBottom: '1.4em',
- paddingBottom: '.7em',
+ paddingBottom: 0,
position: 'relative',
},
}));
diff --git a/striker-ui/components/Panels/Panel.tsx b/striker-ui/components/Panels/Panel.tsx
index 33fee228..8f379734 100644
--- a/striker-ui/components/Panels/Panel.tsx
+++ b/striker-ui/components/Panels/Panel.tsx
@@ -42,6 +42,19 @@ const useStyles = makeStyles(() => ({
bottom: '-.3em',
right: '-.3em',
},
+ '@global': {
+ '*::-webkit-scrollbar': {
+ width: '.6em',
+ },
+ '*::-webkit-scrollbar-track': {
+ backgroundColor: PANEL_BACKGROUND,
+ },
+ '*::-webkit-scrollbar-thumb': {
+ backgroundColor: TEXT,
+ outline: '1px solid transparent',
+ borderRadius: BORDER_RADIUS,
+ },
+ },
}));
const Panel = ({ children }: Props): JSX.Element => {
diff --git a/striker-ui/components/Resource/ResourceVolumes.tsx b/striker-ui/components/Resource/ResourceVolumes.tsx
new file mode 100644
index 00000000..a7ee79b4
--- /dev/null
+++ b/striker-ui/components/Resource/ResourceVolumes.tsx
@@ -0,0 +1,131 @@
+import * as prettyBytes from 'pretty-bytes';
+import { makeStyles, Box, Divider } from '@material-ui/core';
+import InsertLinkIcon from '@material-ui/icons/InsertLink';
+import { InnerPanel, PanelHeader } from '../Panels';
+import { BodyText } from '../Text';
+import Decorator, { Colours } from '../Decorator';
+import { DIVIDER } from '../../lib/consts/DEFAULT_THEME';
+
+const useStyles = makeStyles((theme) => ({
+ root: {
+ overflow: 'auto',
+ height: '100%',
+ paddingLeft: '.3em',
+ [theme.breakpoints.down('md')]: {
+ overflow: 'hidden',
+ },
+ },
+ connection: {
+ paddingLeft: '.7em',
+ paddingRight: '.7em',
+ paddingTop: '1em',
+ paddingBottom: '.7em',
+ },
+ bar: {
+ paddingLeft: '.7em',
+ paddingRight: '.7em',
+ },
+ header: {
+ paddingTop: '.3em',
+ paddingRight: '.7em',
+ },
+ label: {
+ paddingTop: '.3em',
+ },
+ decoratorBox: {
+ paddingRight: '.3em',
+ },
+ divider: {
+ background: DIVIDER,
+ },
+}));
+
+const selectDecorator = (state: string): Colours => {
+ switch (state) {
+ case 'connected':
+ return 'ok';
+ case 'connecting':
+ return 'warning';
+ default:
+ return 'error';
+ }
+};
+
+const ResourceVolumes = ({
+ resource,
+}: {
+ resource: AnvilReplicatedStorage;
+}): JSX.Element => {
+ const classes = useStyles();
+
+ return (
+
+ {resource &&
+ resource.volumes.map((volume) => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ {volume.connections.map(
+ (connection, index): JSX.Element => {
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {volume.connections.length - 1 !== index ? (
+
+ ) : null}
+ >
+ );
+ },
+ )}
+
+ );
+ })}
+
+ );
+};
+
+export default ResourceVolumes;
diff --git a/striker-ui/components/Resource/index.tsx b/striker-ui/components/Resource/index.tsx
new file mode 100644
index 00000000..2865d4be
--- /dev/null
+++ b/striker-ui/components/Resource/index.tsx
@@ -0,0 +1,18 @@
+import { Panel } from '../Panels';
+import { HeaderText } from '../Text';
+import ResourceVolumes from './ResourceVolumes';
+
+const Resource = ({
+ resource,
+}: {
+ resource: AnvilReplicatedStorage;
+}): JSX.Element => {
+ return (
+
+
+
+
+ );
+};
+
+export default Resource;
diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx
index e781a4b5..4ffd8ee1 100644
--- a/striker-ui/components/Servers.tsx
+++ b/striker-ui/components/Servers.tsx
@@ -26,6 +26,7 @@ import {
RED,
GREY,
BLACK,
+ LARGE_MOBILE_BREAKPOINT,
} from '../lib/consts/DEFAULT_THEME';
import { AnvilContext } from './AnvilContext';
import serverState from '../lib/consts/SERVERS';
@@ -33,15 +34,17 @@ import Decorator, { Colours } from './Decorator';
import Spinner from './Spinner';
import hostsSanitizer from '../lib/sanitizers/hostsSanitizer';
-import putJSON from '../lib/fetchers/putJSON';
+import putFetch from '../lib/fetchers/putFetch';
const useStyles = makeStyles((theme) => ({
root: {
width: '100%',
overflow: 'auto',
height: '78vh',
- [theme.breakpoints.down('md')]: {
+ paddingRight: '.3em',
+ [theme.breakpoints.down(LARGE_MOBILE_BREAKPOINT)]: {
height: '100%',
+ overflow: 'hidden',
},
},
divider: {
@@ -142,7 +145,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
const handlePower = (label: ButtonLabels) => {
setAnchorEl(null);
if (selected.length) {
- putJSON('/set_power', {
+ putFetch(`${process.env.NEXT_PUBLIC_API_URL}/set_power`, {
server_uuid_list: selected,
is_on: label === 'on',
});
@@ -253,6 +256,8 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => {
button
className={classes.button}
key={server.server_uuid}
+ component="a"
+ href={`/server?uuid=${server.server_uuid}&server_name=${server.server_name}`}
>
{showCheckbox && (
diff --git a/striker-ui/components/SharedStorage/SharedStorage.tsx b/striker-ui/components/SharedStorage/SharedStorage.tsx
index 5011ef5b..15cabeed 100644
--- a/striker-ui/components/SharedStorage/SharedStorage.tsx
+++ b/striker-ui/components/SharedStorage/SharedStorage.tsx
@@ -8,6 +8,7 @@ import SharedStorageHost from './SharedStorageHost';
import PeriodicFetch from '../../lib/fetchers/periodicFetch';
import { AnvilContext } from '../AnvilContext';
import Spinner from '../Spinner';
+import { LARGE_MOBILE_BREAKPOINT } from '../../lib/consts/DEFAULT_THEME';
const useStyles = makeStyles((theme) => ({
header: {
@@ -18,7 +19,8 @@ const useStyles = makeStyles((theme) => ({
overflow: 'auto',
height: '78vh',
paddingLeft: '.3em',
- [theme.breakpoints.down('md')]: {
+ paddingRight: '.3em',
+ [theme.breakpoints.down(LARGE_MOBILE_BREAKPOINT)]: {
height: '100%',
},
},
diff --git a/striker-ui/hooks/useWindowDimenions.ts b/striker-ui/hooks/useWindowDimenions.ts
new file mode 100644
index 00000000..701ab917
--- /dev/null
+++ b/striker-ui/hooks/useWindowDimenions.ts
@@ -0,0 +1,19 @@
+import { useEffect, useState } from 'react';
+
+const useWindowDimensions = (): number | undefined => {
+ const [windowDimensions, setWindowDimensions] = useState(
+ undefined,
+ );
+ useEffect(() => {
+ const handleResize = (): void => {
+ setWindowDimensions(window.innerWidth);
+ };
+ handleResize();
+ window.addEventListener('resize', handleResize);
+ return (): void => window.removeEventListener('resize', handleResize);
+ }, []); // Empty array ensures that effect is only run on mount
+
+ return windowDimensions;
+};
+
+export default useWindowDimensions;
diff --git a/striker-ui/lib/consts/DEFAULT_THEME.ts b/striker-ui/lib/consts/DEFAULT_THEME.ts
index 2419d4ce..719f54c4 100644
--- a/striker-ui/lib/consts/DEFAULT_THEME.ts
+++ b/striker-ui/lib/consts/DEFAULT_THEME.ts
@@ -15,3 +15,4 @@ export const DISABLED = '#AAA';
export const BLACK = '#343434';
export const BORDER_RADIUS = '3px';
+export const LARGE_MOBILE_BREAKPOINT = 1800;
diff --git a/striker-ui/lib/consts/ICONS.ts b/striker-ui/lib/consts/ICONS.ts
index 9b807830..b1567aef 100644
--- a/striker-ui/lib/consts/ICONS.ts
+++ b/striker-ui/lib/consts/ICONS.ts
@@ -29,6 +29,11 @@ export const ICONS = [
image: '/pngs/email_on.png',
uri: '/striker?email=true',
},
+ {
+ text: 'Logout',
+ image: '/pngs/users_icon_on.png',
+ uri: '/striker?logout=true',
+ },
{
text: 'Help',
image: '/pngs/help_icon_on.png',
diff --git a/striker-ui/lib/fetchers/putFetch.ts b/striker-ui/lib/fetchers/putFetch.ts
new file mode 100644
index 00000000..d9c52eef
--- /dev/null
+++ b/striker-ui/lib/fetchers/putFetch.ts
@@ -0,0 +1,12 @@
+/* eslint-disable @typescript-eslint/no-explicit-any */
+const putFetch = (uri: string, data: T): Promise => {
+ return fetch(uri, {
+ method: 'PUT',
+ headers: {
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify(data),
+ });
+};
+
+export default putFetch;
diff --git a/striker-ui/lib/fetchers/putFetchWithTimeout.ts b/striker-ui/lib/fetchers/putFetchWithTimeout.ts
new file mode 100644
index 00000000..6f58d034
--- /dev/null
+++ b/striker-ui/lib/fetchers/putFetchWithTimeout.ts
@@ -0,0 +1,25 @@
+/* eslint-disable @typescript-eslint/no-explicit-any */
+const putFetchTimeout = async (
+ uri: string,
+ data: T,
+ timeout: number,
+): Promise => {
+ const controller = new AbortController();
+
+ const id = setTimeout(() => controller.abort(), timeout);
+
+ const res = await fetch(uri, {
+ method: 'PUT',
+ headers: {
+ 'Content-Type': 'application/json',
+ 'Keep-Alive': 'timeout=120',
+ },
+ signal: controller.signal,
+ body: JSON.stringify(data),
+ });
+ clearTimeout(id);
+
+ return res;
+};
+
+export default putFetchTimeout;
diff --git a/striker-ui/lib/fetchers/putJSON.ts b/striker-ui/lib/fetchers/putJSON.ts
deleted file mode 100644
index 472f9ded..00000000
--- a/striker-ui/lib/fetchers/putJSON.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-const putJSON = (uri: string, data: T): void => {
- fetch(`${process.env.NEXT_PUBLIC_API_URL}${uri}`, {
- method: 'PUT',
- headers: {
- 'Content-Type': 'application/json',
- },
- body: JSON.stringify(data),
- });
-};
-
-export default putJSON;
diff --git a/striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_buildManifest.js b/striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_buildManifest.js
deleted file mode 100644
index da25b994..00000000
--- a/striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_buildManifest.js
+++ /dev/null
@@ -1 +0,0 @@
-self.__BUILD_MANIFEST={__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":["static/chunks/642-0e4040fe0a744c110cab.js","static/chunks/pages/index-ca8a2930d2c5ccf8a7f5.js"],"/_error":["static/chunks/pages/_error-a9f53acb468cbab8a6cb.js"],sortedPages:["/","/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/WegM9eT5kchrLUpg3bXOi/_buildManifest.js b/striker-ui/out/_next/static/WegM9eT5kchrLUpg3bXOi/_buildManifest.js
new file mode 100644
index 00000000..93a3e395
--- /dev/null
+++ b/striker-ui/out/_next/static/WegM9eT5kchrLUpg3bXOi/_buildManifest.js
@@ -0,0 +1 @@
+self.__BUILD_MANIFEST=function(e){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[e,"static/chunks/254-408dda06d3f8a3c7f26d.js","static/chunks/pages/index-c61930195d75a6c617a7.js"],"/_error":["static/chunks/pages/_error-a9f53acb468cbab8a6cb.js"],"/server":[e,"static/chunks/643-8d1f5368d89a6ae0ce2a.js","static/chunks/pages/server-70802da45b05d679f5bd.js"],sortedPages:["/","/_app","/_error","/server"]}}("static/chunks/642-ebd3de567e50b02b8111.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_ssgManifest.js b/striker-ui/out/_next/static/WegM9eT5kchrLUpg3bXOi/_ssgManifest.js
similarity index 100%
rename from striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_ssgManifest.js
rename to striker-ui/out/_next/static/WegM9eT5kchrLUpg3bXOi/_ssgManifest.js
diff --git a/striker-ui/out/_next/static/chunks/204.04ef0f70c11fb4c25e5c.js b/striker-ui/out/_next/static/chunks/204.04ef0f70c11fb4c25e5c.js
new file mode 100644
index 00000000..8351604f
--- /dev/null
+++ b/striker-ui/out/_next/static/chunks/204.04ef0f70c11fb4c25e5c.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[204],{8753:function(t,e,s){"use strict";function i(t){return 0|t}s.d(e,{Z:function(){return Sa}});let n="warn",r=()=>{},a=()=>{},h=()=>{},o=()=>{};function l(t,e=!1){try{return decodeURIComponent(escape(t))}catch(Ur){if(Ur instanceof URIError&&e)return t;throw Ur}}function c(t){return unescape(encodeURIComponent(t))}!function(t){if("undefined"===typeof t?t=n:n=t,r=a=h=o=()=>{},"undefined"!==typeof window.console)switch(t){case"debug":r=console.debug.bind(window.console);case"info":a=console.info.bind(window.console);case"warn":h=console.warn.bind(window.console);case"error":o=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+t+"'")}}();let d="ontouchstart"in document.documentElement||void 0!==document.ontouchstart||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.addEventListener("touchstart",(function t(){d=!0,window.removeEventListener("touchstart",t,!1)}),!1);let u=10*(window.devicePixelRatio||1),_=!1;try{const t=document.createElement("canvas");t.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',0===t.style.cursor.indexOf("url")?(a("Data URI scheme cursor supported"),_=!0):h("Data URI scheme cursor not supported")}catch(Qa){o("Data URI scheme cursor test exception: "+Qa)}const f=_;let p=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),p=!0}catch(Aa){}const g=p;let m=!0;try{const t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);const e=document.createElement("div");t.appendChild(e);const s=t.offsetWidth-e.offsetWidth;t.parentNode.removeChild(t),m=0!=s}catch(Qa){o("Scrollbar test exception: "+Qa)}function w(){return navigator&&!!/mac/i.exec(navigator.platform)}function b(){return navigator&&!!/win/i.exec(navigator.platform)}function v(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function k(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function y(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function C(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}function x(t,e,s){const i=s.getBoundingClientRect();let n={x:0,y:0};return t=i.right?n.x=i.width-1:n.x=t-i.left,e=i.bottom?n.y=i.height-1:n.y=e-i.top,n}function S(t){t.stopPropagation(),t.preventDefault()}let Q=!1,A=null;function E(t){if(Q)return;const e=new t.constructor(t.type,t);Q=!0,document.captureElement?document.captureElement.dispatchEvent(e):A.dispatchEvent(e),Q=!1,t.stopPropagation(),e.defaultPrevented&&t.preventDefault(),"mouseup"===t.type&&F()}function M(){document.getElementById("noVNC_mouse_capture_elem").style.cursor=window.getComputedStyle(document.captureElement).cursor}document.captureElement=null;const T=new MutationObserver(M);function F(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;A=document.captureElement,document.captureElement=null,T.disconnect();document.getElementById("noVNC_mouse_capture_elem").style.display="none",window.removeEventListener("mousemove",E),window.removeEventListener("mouseup",E)}}var L={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode(t){let e="";const s=t.length,i=s%3;for(let r=0;r>2],e+=this.toBase64Table[((3&t[r])<<4)+(t[r+1]>>4)],e+=this.toBase64Table[((15&t[r+1])<<2)+(t[r+2]>>6)],e+=this.toBase64Table[63&t[r+2]];const n=s-i;return 2===i?(e+=this.toBase64Table[t[n]>>2],e+=this.toBase64Table[((3&t[n])<<4)+(t[n+1]>>4)],e+=this.toBase64Table[(15&t[n+1])<<2],e+=this.toBase64Table[64]):1===i&&(e+=this.toBase64Table[t[n]>>2],e+=this.toBase64Table[(3&t[n])<<4],e+=this.toBase64Table[64],e+=this.toBase64Table[64]),e},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode(t,e=0){let s=t.indexOf("=")-e;s<0&&(s=t.length-e);const i=3*(s>>2)+Math.floor(s%4/1.5),n=new Array(i);let r=0,a=0;for(let h=0,l=e;l=8&&(r-=8,s||(n[h++]=a>>r&255),a&=(1<> Display.constructor"),this._target=t,!this._target)throw new Error("Target must be set");if("string"===typeof this._target)throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},r("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),r("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=()=>{}}get scale(){return this._scale}set scale(t){this._rescale(t)}get clipViewport(){return this._clipViewport}set clipViewport(t){this._clipViewport=t;const e=this._viewportLoc;this.viewportChangeSize(e.w,e.h),this.viewportChangePos(0,0)}get width(){return this._fbWidth}get height(){return this._fbHeight}viewportChangePos(t,e){const s=this._viewportLoc;t=Math.floor(t),e=Math.floor(e),this._clipViewport||(t=-s.w,e=-s.h);const i=s.x+s.w-1,n=s.y+s.h-1;t<0&&s.x+t<0&&(t=-s.x),i+t>=this._fbWidth&&(t-=i+t-this._fbWidth+1),s.y+e<0&&(e=-s.y),n+e>=this._fbHeight&&(e-=n+e-this._fbHeight+1),0===t&&0===e||(r("viewportChange deltaX: "+t+", deltaY: "+e),s.x+=t,s.y+=e,this._damage(s.x,s.y,s.w,s.h),this.flip())}viewportChangeSize(t,e){this._clipViewport&&"undefined"!==typeof t&&"undefined"!==typeof e||(r("Setting viewport to full display region"),t=this._fbWidth,e=this._fbHeight),t=Math.floor(t),e=Math.floor(e),t>this._fbWidth&&(t=this._fbWidth),e>this._fbHeight&&(e=this._fbHeight);const s=this._viewportLoc;if(s.w!==t||s.h!==e){s.w=t,s.h=e;const i=this._target;i.width=t,i.height=e,this.viewportChangePos(0,0),this._damage(s.x,s.y,s.w,s.h),this.flip(),this._rescale(this._scale)}}absX(t){return 0===this._scale?0:i(t/this._scale+this._viewportLoc.x)}absY(t){return 0===this._scale?0:i(t/this._scale+this._viewportLoc.y)}resize(t,e){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=e;const s=this._backbuffer;if(s.width!==t||s.height!==e){let i=null;s.width>0&&s.height>0&&(i=this._drawCtx.getImageData(0,0,s.width,s.height)),s.width!==t&&(s.width=t),s.height!==e&&(s.height=e),i&&this._drawCtx.putImageData(i,0,0)}const i=this._viewportLoc;this.viewportChangeSize(i.w,i.h),this.viewportChangePos(0,0)}_damage(t,e,s,i){tthis._damageBounds.right&&(this._damageBounds.right=t+s),e+i>this._damageBounds.bottom&&(this._damageBounds.bottom=e+i)}flip(t){if(0===this._renderQ.length||t){let t=this._damageBounds.left,e=this._damageBounds.top,s=this._damageBounds.right-t,i=this._damageBounds.bottom-e,n=t-this._viewportLoc.x,r=e-this._viewportLoc.y;n<0&&(s+=n,t-=n,n=0),r<0&&(i+=r,e-=r,r=0),n+s>this._viewportLoc.w&&(s=this._viewportLoc.w-n),r+i>this._viewportLoc.h&&(i=this._viewportLoc.h-r),s>0&&i>0&&this._targetCtx.drawImage(this._backbuffer,t,e,s,i,n,r,s,i),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}else this._renderQPush({type:"flip"})}pending(){return this._renderQ.length>0}flush(){0===this._renderQ.length?this.onflush():this._flushing=!0}fillRect(t,e,s,i,n,r){0===this._renderQ.length||r?(this._setFillColor(n),this._drawCtx.fillRect(t,e,s,i),this._damage(t,e,s,i)):this._renderQPush({type:"fill",x:t,y:e,width:s,height:i,color:n})}copyImage(t,e,s,i,n,r,a){0===this._renderQ.length||a?(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,t,e,n,r,s,i,n,r),this._damage(s,i,n,r)):this._renderQPush({type:"copy",oldX:t,oldY:e,x:s,y:i,width:n,height:r})}imageRect(t,e,s,i,n,r){if(0===s||0===i)return;const a=new Image;a.src="data: "+n+";base64,"+L.encode(r),this._renderQPush({type:"img",img:a,x:t,y:e,width:s,height:i})}startTile(t,e,s,i,n){this._tileX=t,this._tileY=e,this._tile=16===s&&16===i?this._tile16x16:this._drawCtx.createImageData(s,i);const r=n[2],a=n[1],h=n[0],o=this._tile.data;for(let l=0;l=n?t/i.w:e/i.h}this._rescale(s)}_rescale(t){this._scale=t;const e=this._viewportLoc,s=t*e.w+"px",i=t*e.h+"px";this._target.style.width===s&&this._target.style.height===i||(this._target.style.width=s,this._target.style.height=i)}_setFillColor(t){const e="rgb("+t[2]+","+t[1]+","+t[0]+")";e!==this._prevDrawStyle&&(this._drawCtx.fillStyle=e,this._prevDrawStyle=e)}_rgbImageData(t,e,s,i,n,r){const a=this._drawCtx.createImageData(s,i),h=a.data;for(let o=0,l=r;o0;){const e=this._renderQ[0];switch(e.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(e.oldX,e.oldY,e.x,e.y,e.width,e.height,!0);break;case"fill":this.fillRect(e.x,e.y,e.width,e.height,e.color,!0);break;case"blit":this.blitImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"blitRgb":this.blitRgbImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"img":if(e.img.complete&&0!==e.img.width&&0!==e.img.height){if(e.img.width!==e.width||e.img.height!==e.height)return void o("Decoded image has incorrect dimensions. Got "+e.img.width+"x"+e.img.height+". Expected "+e.width+"x"+e.height+".");this.drawImage(e.img,e.x,e.y)}else e.img._noVNCDisplay=this,e.img.addEventListener("load",this._resumeRenderQ),t=!1}t&&this._renderQ.shift()}0===this._renderQ.length&&this._flushing&&(this._flushing=!1,this.onflush())}}function B(t,e,s,i,n){if(e.subarray&&t.subarray)t.set(e.subarray(s,s+i),n);else for(var r=0;r>>16&65535|0,a=0;0!==s;){s-=a=s>2e3?2e3:s;do{r=r+(n=n+e[i++]|0)|0}while(--a);n%=65521,r%=65521}return n|r<<16|0}function N(){for(var t,e=[],s=0;s<256;s++){t=s;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[s]=t}return e}N();function P(t,e){var s,i,n,r,a,h,o,l,c,d,u,_,f,p,g,m,w,b,v,k,y,C,x,S,Q;s=t.state,i=t.next_in,S=t.input,n=i+(t.avail_in-5),r=t.next_out,Q=t.output,a=r-(e-t.avail_out),h=r+(t.avail_out-257),o=s.dmax,l=s.wsize,c=s.whave,d=s.wnext,u=s.window,_=s.hold,f=s.bits,p=s.lencode,g=s.distcode,m=(1<>>=v=b>>>24,f-=v,0===(v=b>>>16&255))Q[r++]=65535&b;else{if(!(16&v)){if(0===(64&v)){b=p[(65535&b)+(_&(1<>>=v,f-=v),f<15&&(_+=S[i++]<>>=v=b>>>24,f-=v,!(16&(v=b>>>16&255))){if(0===(64&v)){b=g[(65535&b)+(_&(1<o){t.msg="invalid distance too far back",s.mode=30;break t}if(_>>>=v,f-=v,y>(v=r-a)){if((v=y-v)>c&&s.sane){t.msg="invalid distance too far back",s.mode=30;break t}if(C=0,x=u,0===d){if(C+=l-v,v2;)Q[r++]=x[C++],Q[r++]=x[C++],Q[r++]=x[C++],k-=3;k&&(Q[r++]=x[C++],k>1&&(Q[r++]=x[C++]))}else{C=r-y;do{Q[r++]=Q[C++],Q[r++]=Q[C++],Q[r++]=Q[C++],k-=3}while(k>2);k&&(Q[r++]=Q[C++],k>1&&(Q[r++]=Q[C++]))}break}}break}}while(i>3,_&=(1<<(f-=k<<3))-1,t.next_in=i,t.next_out=r,t.avail_in=i=1&&0===T[k];k--);if(y>k&&(y=k),0===k)return n[r++]=20971520,n[r++]=20971520,h.bits=1,0;for(v=1;v0&&(0===t||1!==k))return-1;for(F[1]=0,w=1;w852||2===t&&Q>592)return 1;for(;;){f=w-x,a[b]<_?(p=0,g=a[b]):a[b]>_?(p=L[D+a[b]],g=E[M+a[b]]):(p=96,g=0),o=1<>x)+(l-=o)]=f<<24|p<<16|g|0}while(0!==l);for(o=1<>=1;if(0!==o?(A&=o-1,A+=o):A=0,b++,0===--T[w]){if(w===k)break;w=e[s+a[b]]}if(w>y&&(A&d)!==c){for(0===x&&(x=y),u+=v,S=1<<(C=w-x);C+x852||2===t&&Q>592)return 1;n[c=A&d]=y<<24|C<<16|u-r|0}}return 0!==A&&(n[u+A]=w-x<<24|64<<16|0),h.bits=y,0}const G=-2;var W=12,q=30;function j(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function Z(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new U(320),this.work=new U(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function J(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,function(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new I(852),e.distcode=e.distdyn=new I(592),e.sane=1,e.back=-1,0):G}(t)):G}function $(t,e){var s,i;return t?(i=new Z,t.state=i,i.window=null,0!==(s=function(t,e){var s,i;return t&&t.state?(i=t.state,e<0?(s=0,e=-e):(s=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?G:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=s,i.wbits=e,J(t))):G}(t,e))&&(t.state=null),s):G}var tt,et,st=!0;function it(t){if(st){var e;for(tt=new I(512),et=new I(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(Y(1,t.lens,0,288,tt,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;Y(2,t.lens,0,32,et,0,t.work,{bits:5}),st=!1}t.lencode=tt,t.lenbits=9,t.distcode=et,t.distbits=5}function nt(t,e,s,i){var n,r=t.state;return null===r.window&&(r.wsize=1<=r.wsize?(B(r.window,e,s-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):((n=r.wsize-r.wnext)>i&&(n=i),B(r.window,e,s-i,n,r.wnext),(i-=n)?(B(r.window,e,s-i,i,0),r.wnext=i,r.whave=r.wsize):(r.wnext+=n,r.wnext===r.wsize&&(r.wnext=0),r.whavethis.chunkSize&&(this.chunkSize=t,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=t,function(t,e){var s,i,n,r,a,h,o,l,c,d,u,_,f,p,g,m,w,b,v,k,y,C,x,S,Q=0,A=new z(4),E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return G;(s=t.state).mode===W&&(s.mode=13),a=t.next_out,n=t.output,o=t.avail_out,r=t.next_in,i=t.input,h=t.avail_in,l=s.hold,c=s.bits,d=h,u=o,C=0;t:for(;;)switch(s.mode){case 1:if(0===s.wrap){s.mode=13;break}for(;c<16;){if(0===h)break t;h--,l+=i[r++]<>>8&255,s.check=N(s.check),l=0,c=0,s.mode=2;break}if(s.flags=0,s.head&&(s.head.done=!1),!(1&s.wrap)||(((255&l)<<8)+(l>>8))%31){t.msg="incorrect header check",s.mode=q;break}if(8!==(15&l)){t.msg="unknown compression method",s.mode=q;break}if(c-=4,y=8+(15&(l>>>=4)),0===s.wbits)s.wbits=y;else if(y>s.wbits){t.msg="invalid window size",s.mode=q;break}s.dmax=1<>8&1),512&s.flags&&(A[0]=255&l,A[1]=l>>>8&255,s.check=N(s.check)),l=0,c=0,s.mode=3;case 3:for(;c<32;){if(0===h)break t;h--,l+=i[r++]<>>8&255,A[2]=l>>>16&255,A[3]=l>>>24&255,s.check=N(s.check)),l=0,c=0,s.mode=4;case 4:for(;c<16;){if(0===h)break t;h--,l+=i[r++]<>8),512&s.flags&&(A[0]=255&l,A[1]=l>>>8&255,s.check=N(s.check)),l=0,c=0,s.mode=5;case 5:if(1024&s.flags){for(;c<16;){if(0===h)break t;h--,l+=i[r++]<>>8&255,s.check=N(s.check)),l=0,c=0}else s.head&&(s.head.extra=null);s.mode=6;case 6:if(1024&s.flags&&((_=s.length)>h&&(_=h),_&&(s.head&&(y=s.head.extra_len-s.length,s.head.extra||(s.head.extra=new Array(s.head.extra_len)),B(s.head.extra,i,r,_,y)),512&s.flags&&(s.check=N(s.check)),h-=_,r+=_,s.length-=_),s.length))break t;s.length=0,s.mode=7;case 7:if(2048&s.flags){if(0===h)break t;_=0;do{y=i[r+_++],s.head&&y&&s.length<65536&&(s.head.name+=String.fromCharCode(y))}while(y&&_>9&1,s.head.done=!0),t.adler=s.check=0,s.mode=W;break;case 10:for(;c<32;){if(0===h)break t;h--,l+=i[r++]<>>=7&c,c-=7&c,s.mode=27;break}for(;c<3;){if(0===h)break t;h--,l+=i[r++]<>>=1)){case 0:s.mode=14;break;case 1:if(it(s),s.mode=20,6===e){l>>>=2,c-=2;break t}break;case 2:s.mode=17;break;case 3:t.msg="invalid block type",s.mode=q}l>>>=2,c-=2;break;case 14:for(l>>>=7&c,c-=7&c;c<32;){if(0===h)break t;h--,l+=i[r++]<>>16^65535)){t.msg="invalid stored block lengths",s.mode=q;break}if(s.length=65535&l,l=0,c=0,s.mode=15,6===e)break t;case 15:s.mode=16;case 16:if(_=s.length){if(_>h&&(_=h),_>o&&(_=o),0===_)break t;B(n,i,r,_,a),h-=_,r+=_,o-=_,a+=_,s.length-=_;break}s.mode=W;break;case 17:for(;c<14;){if(0===h)break t;h--,l+=i[r++]<>>=5,c-=5,s.ndist=1+(31&l),l>>>=5,c-=5,s.ncode=4+(15&l),l>>>=4,c-=4,s.nlen>286||s.ndist>30){t.msg="too many length or distance symbols",s.mode=q;break}s.have=0,s.mode=18;case 18:for(;s.have>>=3,c-=3}for(;s.have<19;)s.lens[E[s.have++]]=0;if(s.lencode=s.lendyn,s.lenbits=7,x={bits:s.lenbits},C=Y(0,s.lens,0,19,s.lencode,0,s.work,x),s.lenbits=x.bits,C){t.msg="invalid code lengths set",s.mode=q;break}s.have=0,s.mode=19;case 19:for(;s.have>>16&255,w=65535&Q,!((g=Q>>>24)<=c);){if(0===h)break t;h--,l+=i[r++]<>>=g,c-=g,s.lens[s.have++]=w;else{if(16===w){for(S=g+2;c>>=g,c-=g,0===s.have){t.msg="invalid bit length repeat",s.mode=q;break}y=s.lens[s.have-1],_=3+(3&l),l>>>=2,c-=2}else if(17===w){for(S=g+3;c>>=g)),l>>>=3,c-=3}else{for(S=g+7;c>>=g)),l>>>=7,c-=7}if(s.have+_>s.nlen+s.ndist){t.msg="invalid bit length repeat",s.mode=q;break}for(;_--;)s.lens[s.have++]=y}}if(s.mode===q)break;if(0===s.lens[256]){t.msg="invalid code -- missing end-of-block",s.mode=q;break}if(s.lenbits=9,x={bits:s.lenbits},C=Y(1,s.lens,0,s.nlen,s.lencode,0,s.work,x),s.lenbits=x.bits,C){t.msg="invalid literal/lengths set",s.mode=q;break}if(s.distbits=6,s.distcode=s.distdyn,x={bits:s.distbits},C=Y(2,s.lens,s.nlen,s.ndist,s.distcode,0,s.work,x),s.distbits=x.bits,C){t.msg="invalid distances set",s.mode=q;break}if(s.mode=20,6===e)break t;case 20:s.mode=21;case 21:if(h>=6&&o>=258){t.next_out=a,t.avail_out=o,t.next_in=r,t.avail_in=h,s.hold=l,s.bits=c,P(t,u),a=t.next_out,n=t.output,o=t.avail_out,r=t.next_in,i=t.input,h=t.avail_in,l=s.hold,c=s.bits,s.mode===W&&(s.back=-1);break}for(s.back=0;m=(Q=s.lencode[l&(1<>>16&255,w=65535&Q,!((g=Q>>>24)<=c);){if(0===h)break t;h--,l+=i[r++]<>b)])>>>16&255,w=65535&Q,!(b+(g=Q>>>24)<=c);){if(0===h)break t;h--,l+=i[r++]<>>=b,c-=b,s.back+=b}if(l>>>=g,c-=g,s.back+=g,s.length=w,0===m){s.mode=26;break}if(32&m){s.back=-1,s.mode=W;break}if(64&m){t.msg="invalid literal/length code",s.mode=q;break}s.extra=15&m,s.mode=22;case 22:if(s.extra){for(S=s.extra;c>>=s.extra,c-=s.extra,s.back+=s.extra}s.was=s.length,s.mode=23;case 23:for(;m=(Q=s.distcode[l&(1<>>16&255,w=65535&Q,!((g=Q>>>24)<=c);){if(0===h)break t;h--,l+=i[r++]<>b)])>>>16&255,w=65535&Q,!(b+(g=Q>>>24)<=c);){if(0===h)break t;h--,l+=i[r++]<>>=b,c-=b,s.back+=b}if(l>>>=g,c-=g,s.back+=g,64&m){t.msg="invalid distance code",s.mode=q;break}s.offset=w,s.extra=15&m,s.mode=24;case 24:if(s.extra){for(S=s.extra;c>>=s.extra,c-=s.extra,s.back+=s.extra}if(s.offset>s.dmax){t.msg="invalid distance too far back",s.mode=q;break}s.mode=25;case 25:if(0===o)break t;if(_=u-o,s.offset>_){if((_=s.offset-_)>s.whave&&s.sane){t.msg="invalid distance too far back",s.mode=q;break}_>s.wnext?(_-=s.wnext,f=s.wsize-_):f=s.wnext-_,_>s.length&&(_=s.length),p=s.window}else p=n,f=a-s.offset,_=s.length;_>o&&(_=o),o-=_,s.length-=_;do{n[a++]=p[f++]}while(--_);0===s.length&&(s.mode=21);break;case 26:if(0===o)break t;n[a++]=s.length,o--,s.mode=21;break;case 27:if(s.wrap){for(;c<32;){if(0===h)break t;h--,l|=i[r++]<=0;)t[e]=0}var ot=256,lt=286,ct=30,dt=15,ut=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],_t=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ft=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],gt=new Array(576);ht(gt);var mt=new Array(60);ht(mt);var wt=new Array(512);ht(wt);var bt=new Array(256);ht(bt);var vt=new Array(29);ht(vt);var kt,yt,Ct,xt=new Array(ct);function St(t,e,s,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=s,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}function Qt(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function At(t){return t<256?wt[t]:wt[256+(t>>>7)]}function Et(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function Mt(t,e,s){t.bi_valid>16-s?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=s-16):(t.bi_buf|=e<>>=1,s<<=1}while(--e>0);return s>>>1}function Lt(t,e,s){var i,n,r=new Array(16),a=0;for(i=1;i<=dt;i++)r[i]=a=a+s[i-1]<<1;for(n=0;n<=e;n++){var h=t[2*n+1];0!==h&&(t[2*n]=Ft(r[h]++,h))}}function Dt(t){var e;for(e=0;e8?Et(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function zt(t,e,s,i){var n=2*e,r=2*s;return t[n]>1;s>=1;s--)Ut(t,r,s);n=o;do{s=t.heap[1],t.heap[1]=t.heap[t.heap_len--],Ut(t,r,1),i=t.heap[1],t.heap[--t.heap_max]=s,t.heap[--t.heap_max]=i,r[2*n]=r[2*s]+r[2*i],t.depth[n]=(t.depth[s]>=t.depth[i]?t.depth[s]:t.depth[i])+1,r[2*s+1]=r[2*i+1]=n,t.heap[1]=n++,Ut(t,r,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var s,i,n,r,a,h,o=e.dyn_tree,l=e.max_code,c=e.stat_desc.static_tree,d=e.stat_desc.has_stree,u=e.stat_desc.extra_bits,_=e.stat_desc.extra_base,f=e.stat_desc.max_length,p=0;for(r=0;r<=dt;r++)t.bl_count[r]=0;for(o[2*t.heap[t.heap_max]+1]=0,s=t.heap_max+1;s<573;s++)(r=o[2*o[2*(i=t.heap[s])+1]+1]+1)>f&&(r=f,p++),o[2*i+1]=r,i>l||(t.bl_count[r]++,a=0,i>=_&&(a=u[i-_]),h=o[2*i],t.opt_len+=h*(r+a),d&&(t.static_len+=h*(c[2*i+1]+a)));if(0!==p){do{for(r=f-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[f]--,p-=2}while(p>0);for(r=f;0!==r;r--)for(i=t.bl_count[r];0!==i;)(n=t.heap[--s])>l||(o[2*n+1]!==r&&(t.opt_len+=(r-o[2*n+1])*o[2*n],o[2*n+1]=r),i--)}}(t,e),Lt(r,l,t.bl_count)}function Nt(t,e,s){var i,n,r=-1,a=e[1],h=0,o=7,l=4;for(0===a&&(o=138,l=3),e[2*(s+1)+1]=65535,i=0;i<=s;i++)n=a,a=e[2*(i+1)+1],++h>=7;i=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}function Ot(t,e,s,i){var n,r,a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,s=4093624447;for(e=0;e<=31;e++,s>>>=1)if(1&s&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e=3&&0===t.bl_tree[2*pt[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),n=t.opt_len+3+7>>>3,(r=t.static_len+3+7>>>3)<=n&&(n=r)):n=r=s+5,s+4<=n&&-1!==e?Kt(t,e,s,i):4===t.strategy||r===n?(Mt(t,2+(i?1:0),3),It(t,gt,mt)):(Mt(t,4+(i?1:0),3),function(t,e,s,i){var n;for(Mt(t,e-257,5),Mt(t,s-1,5),Mt(t,i-4,4),n=0;n>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&s,t.last_lit++,0===e?t.dyn_ltree[2*s]++:(t.matches++,e--,t.dyn_ltree[2*(bt[s]+ot+1)]++,t.dyn_dtree[2*At(e)]++),t.last_lit===t.lit_bufsize-1}var Gt={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};const Wt=-2;var qt,jt=258,Zt=262,Jt=103,$t=113,te=666;function ee(t,e){return t.msg=Gt[e],e}function se(t){return(t<<1)-(t>4?9:0)}function ie(t){for(var e=t.length;--e>=0;)t[e]=0}function ne(t){var e=t.state,s=e.pending;s>t.avail_out&&(s=t.avail_out),0!==s&&(B(t.output,e.pending_buf,e.pending_out,s,t.next_out),t.next_out+=s,e.pending_out+=s,t.total_out+=s,t.avail_out-=s,e.pending-=s,0===e.pending&&(e.pending_out=0))}function re(t,e){Ot(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ne(t.strm)}function ae(t,e){t.pending_buf[t.pending++]=e}function he(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function oe(t,e,s,i){var n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,B(e,t.input,t.next_in,n,s),1===t.state.wrap?t.adler=R(t.adler,e,n,s):2===t.state.wrap&&(t.adler=N(t.adler)),t.next_in+=n,t.total_in+=n,n)}function le(t,e){var s,i,n=t.max_chain_length,r=t.strstart,a=t.prev_length,h=t.nice_match,o=t.strstart>t.w_size-Zt?t.strstart-(t.w_size-Zt):0,l=t.window,c=t.w_mask,d=t.prev,u=t.strstart+jt,_=l[r+a-1],f=l[r+a];t.prev_length>=t.good_match&&(n>>=2),h>t.lookahead&&(h=t.lookahead);do{if(l[(s=e)+a]===f&&l[s+a-1]===_&&l[s]===l[r]&&l[++s]===l[r+1]){r+=2,s++;do{}while(l[++r]===l[++s]&&l[++r]===l[++s]&&l[++r]===l[++s]&&l[++r]===l[++s]&&l[++r]===l[++s]&&l[++r]===l[++s]&&l[++r]===l[++s]&&l[++r]===l[++s]&&ra){if(t.match_start=e,a=i,i>=h)break;_=l[r+a-1],f=l[r+a]}}}while((e=d[e&c])>o&&0!==--n);return a<=t.lookahead?a:t.lookahead}function ce(t){var e,s,i,n,r,a=t.w_size;do{if(n=t.window_size-t.lookahead-t.strstart,t.strstart>=a+(a-Zt)){B(t.window,t.window,a,a,0),t.match_start-=a,t.strstart-=a,t.block_start-=a,e=s=t.hash_size;do{i=t.head[--e],t.head[e]=i>=a?i-a:0}while(--s);e=s=a;do{i=t.prev[--e],t.prev[e]=i>=a?i-a:0}while(--s);n+=a}if(0===t.strm.avail_in)break;if(s=oe(t.strm,t.window,t.strstart+t.lookahead,n),t.lookahead+=s,t.lookahead+t.insert>=3)for(r=t.strstart-t.insert,t.ins_h=t.window[r],t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<=3)if(i=Yt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<=3&&(t.ins_h=(t.ins_h<4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=Yt(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=(t.ins_h<15&&(a=2,i-=16),n<1||n>9||8!==s||i<8||i>15||e<0||e>9||r<0||r>4)return ee(t,Wt);8===i&&(i=9);var h=new fe;return t.state=h,h.strm=t,h.wrap=a,h.gzhead=null,h.w_bits=i,h.w_size=1<5||e<0)return t?ee(t,Wt):Wt;if(i=t.state,!t.output||!t.input&&0!==t.avail_in||i.status===te&&4!==e)return ee(t,0===t.avail_out?-5:Wt);if(i.strm=t,s=i.last_flush,i.last_flush=e,42===i.status)if(2===i.wrap)t.adler=0,ae(i,31),ae(i,139),ae(i,8),i.gzhead?(ae(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),ae(i,255&i.gzhead.time),ae(i,i.gzhead.time>>8&255),ae(i,i.gzhead.time>>16&255),ae(i,i.gzhead.time>>24&255),ae(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),ae(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(ae(i,255&i.gzhead.extra.length),ae(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=N(t.adler,i.pending_buf,i.pending)),i.gzindex=0,i.status=69):(ae(i,0),ae(i,0),ae(i,0),ae(i,0),ae(i,0),ae(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),ae(i,3),i.status=$t);else{var a=8+(i.w_bits-8<<4)<<8;a|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(a|=32),a+=31-a%31,i.status=$t,he(i,a),0!==i.strstart&&(he(i,t.adler>>>16),he(i,65535&t.adler)),t.adler=1}if(69===i.status)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(t.adler=N(t.adler,i.pending_buf,i.pending)),ne(t),n=i.pending,i.pending!==i.pending_buf_size));)ae(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(t.adler=N(t.adler,i.pending_buf,i.pending)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=N(t.adler,i.pending_buf,i.pending)),ne(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindexn&&(t.adler=N(t.adler,i.pending_buf,i.pending)),0===r&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(t.adler=N(t.adler,i.pending_buf,i.pending)),ne(t),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindexn&&(t.adler=N(t.adler,i.pending_buf,i.pending)),0===r&&(i.status=Jt)}else i.status=Jt;if(i.status===Jt&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ne(t),i.pending+2<=i.pending_buf_size&&(ae(i,255&t.adler),ae(i,t.adler>>8&255),t.adler=0,i.status=$t)):i.status=$t),0!==i.pending){if(ne(t),0===t.avail_out)return i.last_flush=-1,0}else if(0===t.avail_in&&se(e)<=se(s)&&4!==e)return ee(t,-5);if(i.status===te&&0!==t.avail_in)return ee(t,-5);if(0!==t.avail_in||0!==i.lookahead||0!==e&&i.status!==te){var h=2===i.strategy?function(t,e){for(var s;;){if(0===t.lookahead&&(ce(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,s=Yt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,s&&(re(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(re(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(re(t,!1),0===t.strm.avail_out)?1:2}(i,e):3===i.strategy?function(t,e){for(var s,i,n,r,a=t.window;;){if(t.lookahead<=jt){if(ce(t),t.lookahead<=jt&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(i=a[n=t.strstart-1])===a[++n]&&i===a[++n]&&i===a[++n]){r=t.strstart+jt;do{}while(i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&i===a[++n]&&nt.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(s=Yt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(s=Yt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),s&&(re(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(re(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(re(t,!1),0===t.strm.avail_out)?1:2}(i,e):qt[i.level].func(i,e);if(3!==h&&4!==h||(i.status=te),1===h||3===h)return 0===t.avail_out&&(i.last_flush=-1),0;if(2===h&&(1===e?Xt(i):5!==e&&(Kt(i,0,0,!1),3===e&&(ie(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ne(t),0===t.avail_out))return i.last_flush=-1,0}return 4!==e?0:i.wrap<=0?1:(2===i.wrap?(ae(i,255&t.adler),ae(i,t.adler>>8&255),ae(i,t.adler>>16&255),ae(i,t.adler>>24&255),ae(i,255&t.total_in),ae(i,t.total_in>>8&255),ae(i,t.total_in>>16&255),ae(i,t.total_in>>24&255)):(he(i,t.adler>>>16),he(i,65535&t.adler)),ne(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)}qt=[new _e(0,0,0,0,(function(t,e){var s=65535;for(s>t.pending_buf_size-5&&(s=t.pending_buf_size-5);;){if(t.lookahead<=1){if(ce(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+s;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,re(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-Zt&&(re(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(re(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(re(t,!1),t.strm.avail_out),1)})),new _e(4,4,8,4,de),new _e(4,5,16,8,de),new _e(4,6,32,32,de),new _e(4,4,16,16,ue),new _e(8,16,32,32,ue),new _e(8,16,128,128,ue),new _e(8,32,128,256,ue),new _e(32,128,258,1024,ue),new _e(32,258,258,4096,ue)];class we{constructor(){this.strm=new rt,this.chunkSize=102400,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,ge(this.strm,this.windowBits)}deflate(t){this.strm.input=t,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;let e=me(this.strm,3),s=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(e<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){let t=[s],i=s.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,e=me(this.strm,3),e<0)throw new Error("zlib deflate failed");let s=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);i+=s.length,t.push(s)}while(this.strm.avail_in>0);let n=new Uint8Array(i),r=0;for(let e=0;e=32&&t<=255)return t;const e=dr[t];return void 0!==e?e:16777216|t}},_r={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"},fr={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};const pr={};function gr(t,e){if(void 0===e)throw new Error('Undefined keysym for key "'+t+'"');if(t in pr)throw new Error('Duplicate entry for key "'+t+'"');pr[t]=[e,e,e,e]}function mr(t,e,s){if(void 0===e)throw new Error('Undefined keysym for key "'+t+'"');if(void 0===s)throw new Error('Undefined keysym for key "'+t+'"');if(t in pr)throw new Error('Duplicate entry for key "'+t+'"');pr[t]=[e,e,s,e]}function wr(t,e,s){if(void 0===e)throw new Error('Undefined keysym for key "'+t+'"');if(void 0===s)throw new Error('Undefined keysym for key "'+t+'"');if(t in pr)throw new Error('Duplicate entry for key "'+t+'"');pr[t]=[e,e,e,s]}mr("Alt",Mi,Ti),gr("AltGraph",Di),gr("CapsLock",Qi),mr("Control",xi,Si),mr("Meta",Fi,Li),gr("NumLock",cs),gr("ScrollLock",xe),mr("Shift",yi,Ci),wr("Enter",ye,us),gr("Tab",ve),wr(" ",Ri,ds),wr("ArrowDown",qe,ms),wr("ArrowUp",Ge,ps),wr("ArrowLeft",Ye,fs),wr("ArrowRight",We,gs),wr("End",Je,vs),wr("Home",Oe,_s),wr("PageDown",Ze,bs),wr("PageUp",je,ws),gr("Backspace",be),wr("Clear",ke,ks),gr("Copy",Nn),gr("Cut",Pn),wr("Delete",Qe,Cs),wr("Insert",ss,ys),gr("Paste",On),gr("Redo",ns),gr("Undo",is),gr("Cancel",hs),gr("ContextMenu",rs),gr("Escape",Se),gr("Execute",es),gr("Find",as),gr("Help",os),gr("Pause",Ce),gr("Select",$e),gr("ZoomIn",$n),gr("ZoomOut",tr),gr("BrightnessDown",hn),gr("BrightnessUp",an),gr("Eject",Mn),gr("LogOff",Hn),gr("Power",An),gr("PowerOff",yn),gr("PrintScreen",ts),gr("Hibernate",or),gr("Standby",on),gr("WakeUp",En),gr("AllCandidates",Te),gr("Alphanumeric",Ke),gr("CodeInput",Ee),gr("Compose",Ae),gr("Convert",Be),gr("GroupFirst",Ui),gr("GroupLast",Ii),gr("GroupNext",Bi),gr("GroupPrevious",zi),gr("NonConvert",De),gr("PreviousCandidate",Fe),gr("SingleCandidate",Me),gr("HangulMode",sn),gr("HanjaMode",nn),gr("JunjuaMode",rn),gr("Eisu",Xe),gr("Hankaku",Pe),gr("Hiragana",Ue),gr("HiraganaKatakana",Re),gr("KanaMode",He),gr("KanjiMode",Le),gr("Katakana",Ie),gr("Romaji",ze),gr("Zenkaku",Ne),gr("ZenkakuHanaku",Ve),gr("F1",Vs),gr("F2",Hs),gr("F3",Ks),gr("F4",Xs),gr("F5",Os),gr("F6",Ys),gr("F7",Gs),gr("F8",Ws),gr("F9",qs),gr("F10",js),gr("F11",Zs),gr("F12",Js),gr("F13",$s),gr("F14",ti),gr("F15",ei),gr("F16",si),gr("F17",ii),gr("F18",ni),gr("F19",ri),gr("F20",ai),gr("F21",hi),gr("F22",oi),gr("F23",li),gr("F24",ci),gr("F25",di),gr("F26",ui),gr("F27",_i),gr("F28",fi),gr("F29",pi),gr("F30",gi),gr("F31",mi),gr("F32",wi),gr("F33",bi),gr("F34",vi),gr("F35",ki),gr("Close",Rn),gr("MailForward",sr),gr("MailReply",Gn),gr("MailSend",qn),gr("MediaFastForward",nr),gr("MediaPause",Dn),gr("MediaPlay",un),gr("MediaRecord",bn),gr("MediaRewind",In),gr("MediaStop",_n),gr("MediaTrackNext",pn),gr("MediaTrackPrevious",fn),gr("New",Kn),gr("Open",Xn),gr("Print",ts),gr("Save",Wn),gr("SpellCheck",jn),gr("AudioVolumeDown",ln),gr("AudioVolumeUp",dn),gr("AudioVolumeMute",cn),gr("MicrophoneVolumeMute",lr),gr("LaunchApplication1",zn),gr("LaunchApplication2",vn),gr("LaunchCalendar",kn),gr("LaunchMail",mn),gr("LaunchMediaPlayer",Bn),gr("LaunchMusicPlayer",ir),gr("LaunchPhone",Yn),gr("LaunchScreenSaver",Tn),gr("LaunchSpreadsheet",Vn),gr("LaunchWebBrowser",Fn),gr("LaunchWebCam",er),gr("LaunchWordProcessor",Jn),gr("BrowserBack",Cn),gr("BrowserFavorites",Ln),gr("BrowserForward",xn),gr("BrowserHome",gn),gr("BrowserRefresh",Qn),gr("BrowserSearch",wn),gr("BrowserStop",Sn),gr("Dimmer",Un),gr("MediaAudioTrack",hr),gr("RandomToggle",rr),gr("SplitScreenToggle",Zn),gr("Subtitle",ar),gr("VideoModeNext",cr),wr("=",en,xs),wr("+",Pi,Qs),wr("-",Hi,Es),wr("*",Ni,Ss),wr("/",Xi,Ts),wr(".",Ki,Ms),wr(",",Vi,As),wr("0",Oi,Fs),wr("1",Yi,Ls),wr("2",Gi,Ds),wr("3",Wi,Bs),wr("4",qi,zs),wr("5",ji,Us),wr("6",Zi,Is),wr("7",Ji,Rs),wr("8",$i,Ns),wr("9",tn,Ps);var br=pr;function vr(t){if(t.code){switch(t.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return t.code}if("keypress"!==t.type&&t.keyCode in _r){let e=_r[t.keyCode];if(w()&&"ContextMenu"===e&&(e="MetaRight"),2===t.location)switch(e){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(3===t.location)switch(e){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return e}return"Unidentified"}function kr(t){const e=function(t){if(void 0!==t.key){switch(t.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return t.char}switch(t.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(t.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if("\0"===t.key&&"NumpadDecimal"===t.code)return"Delete";if(!k()&&!y())return t.key;if(1!==t.key.length&&"Unidentified"!==t.key)return t.key}const e=vr(t);return e in fr?fr[e]:t.charCode?String.fromCharCode(t.charCode):"Unidentified"}(t);if("Unidentified"===e)return null;if(e in br){let s=t.location;if("Meta"===e&&0===s&&(s=2),"Clear"===e&&3===s){"NumLock"===vr(t)&&(s=0)}if((void 0===s||s>3)&&(s=0),"Meta"===e){let e=vr(t);if("AltLeft"===e)return Ai;if("AltRight"===e)return Ei}if("Clear"===e){if("NumLock"===vr(t))return cs}return br[e][s]}if(1!==e.length)return null;const s=e.charCodeAt();return s?ur.lookup(s):null}class yr{constructor(t){this._target=t||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=()=>{}}_sendKeyEvent(t,e,s){if(s)this._keyDownList[e]=t;else{if(!(e in this._keyDownList))return;delete this._keyDownList[e]}r("onkeyevent "+(s?"down":"up")+", keysym: "+t,", code: "+e),this.onkeyevent(t,e,s)}_getKeyCode(t){const e=vr(t);if("Unidentified"!==e)return e;if(t.keyCode&&"keypress"!==t.type&&229!==t.keyCode)return"Platform"+t.keyCode;if(t.keyIdentifier){if("U+"!==t.keyIdentifier.substr(0,2))return t.keyIdentifier;const e=parseInt(t.keyIdentifier.substr(2),16);return"Platform"+String.fromCharCode(e).toUpperCase().charCodeAt()}return"Unidentified"}_handleKeyDown(t){const e=this._getKeyCode(t);let s=kr(t);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),"AltRight"===e&&t.timeStamp-this._altGrCtrlTime<50?s=Di:this._sendKeyEvent(xi,"ControlLeft",!0)),"Unidentified"===e)return s&&(this._sendKeyEvent(s,e,!0),this._sendKeyEvent(s,e,!1)),void S(t);if(w()||v())switch(s){case Fi:s=Mi;break;case Li:s=Fi;break;case Mi:s=ls;break;case Ti:s=Di}return e in this._keyDownList&&(s=this._keyDownList[e]),(w()||v())&&"CapsLock"===e?(this._sendKeyEvent(Qi,"CapsLock",!0),this._sendKeyEvent(Qi,"CapsLock",!1),void S(t)):s||t.key&&!k()&&!y()?(this._pendingKey=null,S(t),"ControlLeft"===e&&b()&&!("ControlLeft"in this._keyDownList)?(this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),void(this._altGrCtrlTime=t.timeStamp)):void this._sendKeyEvent(s,e,!0)):(this._pendingKey=e,void setTimeout(this._handleKeyPressTimeout.bind(this),10,t))}_handleKeyPress(t){if(S(t),null===this._pendingKey)return;let e=this._getKeyCode(t);const s=kr(t);"Unidentified"!==e&&e!=this._pendingKey||(e=this._pendingKey,this._pendingKey=null,s?this._sendKeyEvent(s,e,!0):a("keypress with no keysym:",t))}_handleKeyPressTimeout(t){if(null===this._pendingKey)return;let e;const s=this._pendingKey;if(this._pendingKey=null,t.keyCode>=48&&t.keyCode<=57)e=t.keyCode;else if(t.keyCode>=65&&t.keyCode<=90){let s=String.fromCharCode(t.keyCode);s=t.shiftKey?s.toUpperCase():s.toLowerCase(),e=s.charCodeAt()}else e=0;this._sendKeyEvent(e,s,!0)}_handleKeyUp(t){S(t);const e=this._getKeyCode(t);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(xi,"ControlLeft",!0)),(w()||v())&&"CapsLock"===e)return this._sendKeyEvent(Qi,"CapsLock",!0),void this._sendKeyEvent(Qi,"CapsLock",!1);this._sendKeyEvent(this._keyDownList[e],e,!1),!b()||"ShiftLeft"!==e&&"ShiftRight"!==e||("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}_handleAltGrTimeout(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(xi,"ControlLeft",!0)}_allKeysUp(){r(">> Keyboard.allKeysUp");for(let t in this._keyDownList)this._sendKeyEvent(this._keyDownList[t],t,!1);r("<< Keyboard.allKeysUp")}_checkAlt(t){if(t.skipCheckAlt)return;if(t.altKey)return;const e=this._target,s=this._keyDownList;["AltLeft","AltRight"].forEach((t=>{if(!(t in s))return;const i=new KeyboardEvent("keyup",{key:s[t],code:t});i.skipCheckAlt=!0,e.dispatchEvent(i)}))}grab(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),b()&&C()){const t=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach((e=>document.addEventListener(e,t,{capture:!0,passive:!0})))}}ungrab(){if(b()&&C()){const t=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach((e=>document.removeEventListener(e,t)))}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}const Cr=32,xr=64;class Sr{constructor(){this._target=null,this._state=127,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}attach(t){this.detach(),this._target=t,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}detach(){this._target&&(this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null)}_eventHandler(t){let e;switch(t.stopPropagation(),t.preventDefault(),t.type){case"touchstart":e=this._touchStart;break;case"touchmove":e=this._touchMove;break;case"touchend":case"touchcancel":e=this._touchEnd}for(let s=0;s0&&Date.now()-this._tracked[0].started>250)return this._state=0,void this._ignored.push(t);if(this._waitingRelease)return this._state=0,void this._ignored.push(t);switch(this._tracked.push({id:t,started:Date.now(),active:!0,firstX:e,firstY:s,lastX:e,lastY:s,angle:0}),this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=-26,this._stopLongpressTimeout();break;case 3:this._state&=-99;break;default:this._state=0}}}_touchMove(t,e,s){let i=this._tracked.find((e=>e.id===t));if(void 0===i)return;i.lastX=e,i.lastY=s;let n=e-i.firstX,r=s-i.firstY;if(i.firstX===i.lastX&&i.firstY===i.lastY||(i.angle=180*Math.atan2(r,n)/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(n,r)<50)return;if(this._state&=-24,this._stopLongpressTimeout(),1!==this._tracked.length&&(this._state&=-9),2!==this._tracked.length&&(this._state&=-97),2===this._tracked.length){let e=this._tracked.find((e=>e.id!==t));if(Math.hypot(e.firstX-e.lastX,e.firstY-e.lastY)>50){let t=Math.abs(i.angle-e.angle);t=Math.abs((t+180)%360-180),this._state&=t>90?-33:-65,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}_touchEnd(t,e,s){if(-1!==this._ignored.indexOf(t))return this._ignored.splice(this._ignored.indexOf(t),1),void(0===this._ignored.length&&0===this._tracked.length&&(this._state=127,this._waitingRelease=!1));if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=0),!this._hasDetectedGesture()&&(this._state&=-105,this._state&=-17,this._stopLongpressTimeout(),!this._waitingRelease))switch(this._releaseStart=Date.now(),this._waitingRelease=!0,this._tracked.length){case 1:this._state&=-7;break;case 2:this._state&=-6}if(this._waitingRelease){if(Date.now()-this._releaseStart>250&&(this._state=0),this._tracked.some((t=>Date.now()-t.started>1e3))&&(this._state=0),this._tracked.find((e=>e.id===t)).active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(0!==this._state)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(let i=0;it.active))))}_startLongpressTimeout(){this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout((()=>this._longpressTimeout()),1e3)}_stopLongpressTimeout(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}_longpressTimeout(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=16,this._pushEvent("gesturestart")}_startTwoTouchTimeout(){this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout((()=>this._twoTouchTimeout()),50)}_stopTwoTouchTimeout(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}_isTwoTouchTimeoutRunning(){return null!==this._twoTouchTimeoutId}_twoTouchTimeout(){if(0===this._tracked.length)throw new Error("A pinch or two drag gesture failed, no tracked touches");let t=this._getAverageMovement(),e=Math.abs(t.x),s=Math.abs(t.y),i=this._getAverageDistance(),n=Math.abs(Math.hypot(i.first.x,i.first.y)-Math.hypot(i.last.x,i.last.y));this._state=s{this._target&&(e=document.elementFromPoint(t.clientX,t.clientY),this._updateVisibility(e))}),0)}_showCursor(){"hidden"===this._canvas.style.visibility&&(this._canvas.style.visibility="")}_hideCursor(){"hidden"!==this._canvas.style.visibility&&(this._canvas.style.visibility="hidden")}_shouldShowCursor(t){return!!t&&(t===this._target||!!this._target.contains(t)&&"none"===window.getComputedStyle(t).cursor)}_updateVisibility(t){this._captureIsActive()&&(t=document.captureElement),this._shouldShowCursor(t)?this._showCursor():this._hideCursor()}_updatePosition(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}_captureIsActive(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}const Er=41943040;class Mr{constructor(){this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=4194304,this._rQ=null,this._sQbufferSize=10240,this._sQlen=0,this._sQ=null,this._eventHandlers={message:()=>{},open:()=>{},close:()=>{},error:()=>{}}}get sQ(){return this._sQ}get rQ(){return this._rQ}get rQi(){return this._rQi}set rQi(t){this._rQi=t}get rQlen(){return this._rQlen-this._rQi}rQpeek8(){return this._rQ[this._rQi]}rQskipBytes(t){this._rQi+=t}rQshift8(){return this._rQshift(1)}rQshift16(){return this._rQshift(2)}rQshift32(){return this._rQshift(4)}_rQshift(t){let e=0;for(let s=t-1;s>=0;s--)e+=this._rQ[this._rQi++]<<8*s;return e}rQshiftStr(t){"undefined"===typeof t&&(t=this.rQlen);let e="";for(let s=0;s0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}send(t){this._sQ.set(t,this._sQlen),this._sQlen+=t.length,this.flush()}sendString(t){this.send(t.split("").map((t=>t.charCodeAt(0))))}off(t){this._eventHandlers[t]=()=>{}}on(t,e){this._eventHandlers[t]=e}_allocateBuffers(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}init(){this._allocateBuffers(),this._rQi=0,this._websocket=null}open(t,e){this.init(),this._websocket=new WebSocket(t,e),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=()=>{r(">> WebSock.onopen"),this._websocket.protocol&&a("Server choose sub-protocol: "+this._websocket.protocol),this._eventHandlers.open(),r("<< WebSock.onopen")},this._websocket.onclose=t=>{r(">> WebSock.onclose"),this._eventHandlers.close(t),r("<< WebSock.onclose")},this._websocket.onerror=t=>{r(">> WebSock.onerror: "+t),this._eventHandlers.error(t),r("<< WebSock.onerror: "+t)}}close(){this._websocket&&(this._websocket.readyState!==WebSocket.OPEN&&this._websocket.readyState!==WebSocket.CONNECTING||(a("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=()=>{})}_encodeMessage(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}_expandCompactRQ(t){const e=8*(this._rQlen-this._rQi+t),s=this._rQbufferSizeEr&&(this._rQbufferSize=Er,this._rQbufferSize-this.rQlenthis._rQbufferSize-this._rQlen&&this._expandCompactRQ(e.length),this._rQ.set(e,this._rQlen),this._rQlen+=e.length}_recvMessage(t){this._DecodeMessage(t.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):r("Ignoring empty message")}}const Tr=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],Fr=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];let Lr,Dr,Br,zr,Ur,Ir;Lr=65536,Dr=1<<24,Br=Lr|Dr,zr=4,Ur=1024,Ir=zr|Ur;const Rr=[Br|Ur,0,0|Lr,Br|Ir,Br|zr,Lr|Ir,0|zr,0|Lr,0|Ur,Br|Ur,Br|Ir,0|Ur,Dr|Ir,Br|zr,0|Dr,0|zr,0|Ir,Dr|Ur,Dr|Ur,Lr|Ur,Lr|Ur,0|Br,0|Br,Dr|Ir,Lr|zr,Dr|zr,Dr|zr,Lr|zr,0,0|Ir,Lr|Ir,0|Dr,0|Lr,Br|Ir,0|zr,0|Br,Br|Ur,0|Dr,0|Dr,0|Ur,Br|zr,0|Lr,Lr|Ur,Dr|zr,0|Ur,0|zr,Dr|Ir,Lr|Ir,Br|Ir,Lr|zr,0|Br,Dr|Ir,Dr|zr,0|Ir,Lr|Ir,Br|Ur,0|Ir,Dr|Ur,Dr|Ur,0,Lr|zr,Lr|Ur,0,Br|zr];Lr=1<<20,Dr=1<<31,Br=Lr|Dr,zr=32,Ur=32768,Ir=zr|Ur;const Nr=[Br|Ir,Dr|Ur,0|Ur,Lr|Ir,0|Lr,0|zr,Br|zr,Dr|Ir,Dr|zr,Br|Ir,Br|Ur,0|Dr,Dr|Ur,0|Lr,0|zr,Br|zr,Lr|Ur,Lr|zr,Dr|Ir,0,0|Dr,0|Ur,Lr|Ir,0|Br,Lr|zr,Dr|zr,0,Lr|Ur,0|Ir,Br|Ur,0|Br,0|Ir,0,Lr|Ir,Br|zr,0|Lr,Dr|Ir,0|Br,Br|Ur,0|Ur,0|Br,Dr|Ur,0|zr,Br|Ir,Lr|Ir,0|zr,0|Ur,0|Dr,0|Ir,Br|Ur,0|Lr,Dr|zr,Lr|zr,Dr|Ir,Dr|zr,Lr|zr,Lr|Ur,0,Dr|Ur,0|Ir,0|Dr,Br|zr,Br|Ir,Lr|Ur];Lr=1<<17,Dr=1<<27,Br=Lr|Dr,zr=8,Ur=512,Ir=zr|Ur;const Pr=[0|Ir,Br|Ur,0,Br|zr,Dr|Ur,0,Lr|Ir,Dr|Ur,Lr|zr,Dr|zr,Dr|zr,0|Lr,Br|Ir,Lr|zr,0|Br,0|Ir,0|Dr,0|zr,Br|Ur,0|Ur,Lr|Ur,0|Br,Br|zr,Lr|Ir,Dr|Ir,Lr|Ur,0|Lr,Dr|Ir,0|zr,Br|Ir,0|Ur,0|Dr,Br|Ur,0|Dr,Lr|zr,0|Ir,0|Lr,Br|Ur,Dr|Ur,0,0|Ur,Lr|zr,Br|Ir,Dr|Ur,Dr|zr,0|Ur,0,Br|zr,Dr|Ir,0|Lr,0|Dr,Br|Ir,0|zr,Lr|Ir,Lr|Ur,Dr|zr,0|Br,Dr|Ir,0|Ir,0|Br,Lr|Ir,0|zr,Br|zr,Lr|Ur];Lr=8192,Dr=1<<23,Br=Lr|Dr,zr=1,Ur=128,Ir=zr|Ur;const Vr=[Br|zr,Lr|Ir,Lr|Ir,0|Ur,Br|Ur,Dr|Ir,Dr|zr,Lr|zr,0,0|Br,0|Br,Br|Ir,0|Ir,0,Dr|Ur,Dr|zr,0|zr,0|Lr,0|Dr,Br|zr,0|Ur,0|Dr,Lr|zr,Lr|Ur,Dr|Ir,0|zr,Lr|Ur,Dr|Ur,0|Lr,Br|Ur,Br|Ir,0|Ir,Dr|Ur,Dr|zr,0|Br,Br|Ir,0|Ir,0,0,0|Br,Lr|Ur,Dr|Ur,Dr|Ir,0|zr,Br|zr,Lr|Ir,Lr|Ir,0|Ur,Br|Ir,0|Ir,0|zr,0|Lr,Dr|zr,Lr|zr,Br|Ur,Dr|Ir,Lr|zr,Lr|Ur,0|Dr,Br|zr,0|Ur,0|Dr,0|Lr,Br|Ur];Lr=1<<25,Dr=1<<30,Br=Lr|Dr,zr=256,Ur=1<<19,Ir=zr|Ur;const Hr=[0|zr,Lr|Ir,Lr|Ur,Br|zr,0|Ur,0|zr,0|Dr,Lr|Ur,Dr|Ir,0|Ur,Lr|zr,Dr|Ir,Br|zr,Br|Ur,0|Ir,0|Dr,0|Lr,Dr|Ur,Dr|Ur,0,Dr|zr,Br|Ir,Br|Ir,Lr|zr,Br|Ur,Dr|zr,0,0|Br,Lr|Ir,0|Lr,0|Br,0|Ir,0|Ur,Br|zr,0|zr,0|Lr,0|Dr,Lr|Ur,Br|zr,Dr|Ir,Lr|zr,0|Dr,Br|Ur,Lr|Ir,Dr|Ir,0|zr,0|Lr,Br|Ur,Br|Ir,0|Ir,0|Br,Br|Ir,Lr|Ur,0,Dr|Ur,0|Br,0|Ir,Lr|zr,Dr|zr,0|Ur,0,Dr|Ur,Lr|Ir,Dr|zr];Lr=1<<22,Dr=1<<29,Br=Lr|Dr,zr=16,Ur=16384,Ir=zr|Ur;const Kr=[Dr|zr,0|Br,0|Ur,Br|Ir,0|Br,0|zr,Br|Ir,0|Lr,Dr|Ur,Lr|Ir,0|Lr,Dr|zr,Lr|zr,Dr|Ur,0|Dr,0|Ir,0,Lr|zr,Dr|Ir,0|Ur,Lr|Ur,Dr|Ir,0|zr,Br|zr,Br|zr,0,Lr|Ir,Br|Ur,0|Ir,Lr|Ur,Br|Ur,0|Dr,Dr|Ur,0|zr,Br|zr,Lr|Ur,Br|Ir,0|Lr,0|Ir,Dr|zr,0|Lr,Dr|Ur,0|Dr,0|Ir,Dr|zr,Br|Ir,Lr|Ur,0|Br,Lr|Ir,Br|Ur,0,Br|zr,0|zr,0|Ur,0|Br,Lr|Ir,0|Ur,Lr|zr,Dr|Ir,0,Br|Ur,0|Dr,Lr|zr,Dr|Ir];Lr=1<<21,Dr=1<<26,Br=Lr|Dr,zr=2,Ur=2048,Ir=zr|Ur;const Xr=[0|Lr,Br|zr,Dr|Ir,0,0|Ur,Dr|Ir,Lr|Ir,Br|Ur,Br|Ir,0|Lr,0,Dr|zr,0|zr,0|Dr,Br|zr,0|Ir,Dr|Ur,Lr|Ir,Lr|zr,Dr|Ur,Dr|zr,0|Br,Br|Ur,Lr|zr,0|Br,0|Ur,0|Ir,Br|Ir,Lr|Ur,0|zr,0|Dr,Lr|Ur,0|Dr,Lr|Ur,0|Lr,Dr|Ir,Dr|Ir,Br|zr,Br|zr,0|zr,Lr|zr,0|Dr,Dr|Ur,0|Lr,Br|Ur,0|Ir,Lr|Ir,Br|Ur,0|Ir,Dr|zr,Br|Ir,0|Br,Lr|Ur,0,0|zr,Br|Ir,0,Lr|Ir,0|Br,0|Ur,Dr|zr,Dr|Ur,0|Ur,Lr|zr];Lr=1<<18,Dr=1<<28,Br=Lr|Dr,zr=64,Ur=4096,Ir=zr|Ur;const Or=[Dr|Ir,0|Ur,0|Lr,Br|Ir,0|Dr,Dr|Ir,0|zr,0|Dr,Lr|zr,0|Br,Br|Ir,Lr|Ur,Br|Ur,Lr|Ir,0|Ur,0|zr,0|Br,Dr|zr,Dr|Ur,0|Ir,Lr|Ur,Lr|zr,Br|zr,Br|Ur,0|Ir,0,0,Br|zr,Dr|zr,Dr|Ur,Lr|Ir,0|Lr,Lr|Ir,0|Lr,Br|Ur,0|Ur,0|zr,Br|zr,0|Ur,Lr|Ir,Dr|Ur,0|zr,Dr|zr,0|Br,Br|zr,0|Dr,0|Lr,Dr|Ir,0,Br|Ir,Lr|zr,Dr|zr,0|Br,Dr|Ur,Dr|Ir,0,Br|Ir,Lr|Ur,Lr|Ur,0|Ir,0|Ir,Lr|zr,0|Dr,Br|Ur];class Yr{constructor(t){this.keys=[];const e=[],s=[],i=[];for(let n=0,r=56;n<56;++n,r-=8){r+=r<-5?65:r<-3?31:r<-1?63:27===r?35:0;const s=7&r;e[n]=0!==(t[r>>>3]&1<>>10,this.keys[a]|=(4032&e)>>>6,++a,this.keys[a]=(258048&t)<<12,this.keys[a]|=(63&t)<<16,this.keys[a]|=(258048&e)>>>4,this.keys[a]|=63&e,++a}}enc8(t){const e=t.slice();let s,i,n,r=0;s=e[r++]<<24|e[r++]<<16|e[r++]<<8|e[r++],i=e[r++]<<24|e[r++]<<16|e[r++]<<8|e[r++],n=252645135&(s>>>4^i),i^=n,s^=n<<4,n=65535&(s>>>16^i),i^=n,s^=n<<16,n=858993459&(i>>>2^s),s^=n,i^=n<<2,n=16711935&(i>>>8^s),s^=n,i^=n<<8,i=i<<1|i>>>31&1,n=2863311530&(s^i),s^=n,i^=n,s=s<<1|s>>>31&1;for(let a=0,h=0;a<8;++a){n=i<<28|i>>>4,n^=this.keys[h++];let t=Xr[63&n];t|=Hr[n>>>8&63],t|=Pr[n>>>16&63],t|=Rr[n>>>24&63],n=i^this.keys[h++],t|=Or[63&n],t|=Kr[n>>>8&63],t|=Vr[n>>>16&63],t|=Nr[n>>>24&63],s^=t,n=s<<28|s>>>4,n^=this.keys[h++],t=Xr[63&n],t|=Hr[n>>>8&63],t|=Pr[n>>>16&63],t|=Rr[n>>>24&63],n=s^this.keys[h++],t|=Or[63&n],t|=Kr[n>>>8&63],t|=Vr[n>>>16&63],t|=Nr[n>>>24&63],i^=t}for(i=i<<31|i>>>1,n=2863311530&(s^i),s^=n,i^=n,s=s<<31|s>>>1,n=16711935&(s>>>8^i),i^=n,s^=n<<8,n=858993459&(s>>>2^i),i^=n,s^=n<<2,n=65535&(i>>>16^s),s^=n,i^=n<<16,n=252645135&(i>>>4^s),s^=n,i^=n<<4,n=[i,s],r=0;r<8;r++)e[r]=(n[r>>>2]>>>8*(3-r%4))%256,e[r]<0&&(e[r]+=256);return e}encrypt(t){return this.enc8(t.slice(0,8)).concat(this.enc8(t.slice(8,16)))}}var Gr={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};const Wr=0,qr=1,jr=2,Zr=5,Jr=7,$r=-260,ta=-32,ea=-223,sa=-224,ia=-239,na=-258,ra=-307,aa=-308,ha=-309,oa=-312,la=-313,ca=-256,da=1464686180,ua=3231835598;s(2203);class _a{constructor(){this._lines=0}decodeRect(t,e,s,i,n,r,a){0===this._lines&&(this._lines=i);const h=s*(8==a?1:4);if(n.rQwait("RAW",h))return!1;const o=e+(i-this._lines),l=Math.min(this._lines,Math.floor(n.rQlen/h));let c=n.rQ,d=n.rQi;if(8==a){const t=s*l,e=new Uint8Array(4*t);for(let s=0;s>0&3)/3,e[4*s+1]=255*(c[d+s]>>2&3)/3,e[4*s+2]=255*(c[d+s]>>4&3)/3,e[4*s+4]=0;c=e,d=0}return r.blitImage(t,o,s,l,c,d),n.rQskipBytes(l*h),this._lines-=l,!(this._lines>0)}}class fa{decodeRect(t,e,s,i,n,r,a){if(n.rQwait("COPYRECT",4))return!1;let h=n.rQshift16(),o=n.rQshift16();return r.copyImage(h,o,t,e,s,i),!0}}class pa{constructor(){this._subrects=0}decodeRect(t,e,s,i,n,r,a){if(0===this._subrects){if(n.rQwait("RRE",8))return!1;this._subrects=n.rQshift32();let a=n.rQshiftBytes(4);r.fillRect(t,e,s,i,a)}for(;this._subrects>0;){if(n.rQwait("RRE",12))return!1;let s=n.rQshiftBytes(4),i=n.rQshift16(),a=n.rQshift16(),h=n.rQshift16(),o=n.rQshift16();r.fillRect(t+i,e+a,h,o,s),this._subrects--}return!0}}class ga{constructor(){this._tiles=0,this._lastsubencoding=0}decodeRect(t,e,s,i,n,a,h){for(0===this._tiles&&(this._tilesX=Math.ceil(s/16),this._tilesY=Math.ceil(i/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){let h=1;if(n.rQwait("HEXTILE",h))return!1;let o=n.rQ,l=n.rQi,c=o[l];if(c>30)throw new Error("Illegal hextile subencoding (subencoding: "+c+")");const d=this._totalTiles-this._tiles,u=t+16*(d%this._tilesX),_=e+16*Math.floor(d/this._tilesX),f=Math.min(16,t+s-u),p=Math.min(16,e+i-_);if(1&c)h+=f*p*4;else if(2&c&&(h+=4),4&c&&(h+=4),8&c){if(h++,n.rQwait("HEXTILE",h))return!1;let t=o[l+h-1];h+=16&c?6*t:2*t}if(n.rQwait("HEXTILE",h))return!1;if(l++,0===c)1&this._lastsubencoding?r(" Ignoring blank after RAW"):a.fillRect(u,_,f,p,this._background);else if(1&c)a.blitImage(u,_,f,p,o,l),l+=h-1;else{if(2&c&&(this._background=[o[l],o[l+1],o[l+2],o[l+3]],l+=4),4&c&&(this._foreground=[o[l],o[l+1],o[l+2],o[l+3]],l+=4),a.startTile(u,_,f,p,this._background),8&c){let t=o[l];l++;for(let e=0;e>4,i=15&e,n=o[l];l++;const r=1+(n>>4),h=1+(15&n);a.subTile(s,i,r,h,t)}}a.finishTile()}n.rQi=l,this._lastsubencoding=c,this._tiles--}return!0}}class ma{constructor(){this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(let t=0;t<4;t++)this._zlibs[t]=new at}decodeRect(t,e,s,i,n,r,h){if(null===this._ctl){if(n.rQwait("TIGHT compression-control",1))return!1;this._ctl=n.rQshift8();for(let t=0;t<4;t++)this._ctl>>t&1&&(this._zlibs[t].reset(),a("Reset zlib stream "+t));this._ctl=this._ctl>>4}let o;if(8===this._ctl)o=this._fillRect(t,e,s,i,n,r,h);else if(9===this._ctl)o=this._jpegRect(t,e,s,i,n,r,h);else if(10===this._ctl)o=this._pngRect(t,e,s,i,n,r,h);else{if(0!=(128&this._ctl))throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");o=this._basicRect(this._ctl,t,e,s,i,n,r,h)}return o&&(this._ctl=null),o}_fillRect(t,e,s,i,n,r,a){if(n.rQwait("TIGHT",3))return!1;const h=n.rQi,o=n.rQ;return r.fillRect(t,e,s,i,[o[h+2],o[h+1],o[h]],!1),n.rQskipBytes(3),!0}_jpegRect(t,e,s,i,n,r,a){let h=this._readData(n);return null!==h&&(r.imageRect(t,e,s,i,"image/jpeg",h),!0)}_pngRect(t,e,s,i,n,r,a){throw new Error("PNG received in standard Tight rect")}_basicRect(t,e,s,i,n,r,a,h){if(null===this._filter)if(4&t){if(r.rQwait("TIGHT",1))return!1;this._filter=r.rQshift8()}else this._filter=0;let o,l=3&t;switch(this._filter){case 0:o=this._copyFilter(l,e,s,i,n,r,a,h);break;case 1:o=this._paletteFilter(l,e,s,i,n,r,a,h);break;case 2:o=this._gradientFilter(l,e,s,i,n,r,a,h);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return o&&(this._filter=null),o}_copyFilter(t,e,s,i,n,r,a,h){const o=i*n*3;let l;if(o<12){if(r.rQwait("TIGHT",o))return!1;l=r.rQshiftBytes(o)}else{if(l=this._readData(r),null===l)return!1;this._zlibs[t].setInput(l),l=this._zlibs[t].inflate(o),this._zlibs[t].setInput(null)}return a.blitRgbImage(e,s,i,n,l,0,!1),!0}_paletteFilter(t,e,s,i,n,r,a,h){if(0===this._numColors){if(r.rQwait("TIGHT palette",1))return!1;const t=r.rQpeek8()+1,e=3*t;if(r.rQwait("TIGHT palette",1+e))return!1;this._numColors=t,r.rQskipBytes(1),r.rQshiftTo(this._palette,e)}const o=this._numColors<=2?1:8,l=Math.floor((i*o+7)/8)*n;let c;if(l<12){if(r.rQwait("TIGHT",l))return!1;c=r.rQshiftBytes(l)}else{if(c=this._readData(r),null===c)return!1;this._zlibs[t].setInput(c),c=this._zlibs[t].inflate(l),this._zlibs[t].setInput(null)}return 2==this._numColors?this._monoRect(e,s,i,n,c,this._palette,a):this._paletteRect(e,s,i,n,c,this._palette,a),this._numColors=0,!0}_monoRect(t,e,s,i,n,r,a){const h=this._getScratchBuffer(s*i*4),o=Math.floor((s+7)/8),l=Math.floor(s/8);for(let c=0;c=0;a--)t=4*(c*s+8*i+7-a),e=3*(n[c*o+i]>>a&1),h[t]=r[e],h[t+1]=r[e+1],h[t+2]=r[e+2],h[t+3]=255;for(let a=7;a>=8-s%8;a--)t=4*(c*s+8*i+7-a),e=3*(n[c*o+i]>>a&1),h[t]=r[e],h[t+1]=r[e+1],h[t+2]=r[e+2],h[t+3]=255}a.blitRgbxImage(t,e,s,i,h,0,!1)}_paletteRect(t,e,s,i,n,r,a){const h=this._getScratchBuffer(s*i*4),o=s*i*4;for(let l=0,c=0;le.call(this,t))),!t.defaultPrevented)}}{constructor(t,e,s){if(!t)throw new Error("Must specify target");if(!e)throw new Error("Must specify URL");super(),this._target=t,this._url=e,s=s||{},this._rfbCredentials=s.credentials||{},this._shared=!("shared"in s)||!!s.shared,this._repeaterID=s.repeaterID||"",this._wsProtocols=s.wsProtocols||[],this._rfbConnectionState="",this._rfbInitState="",this._rfbAuthScheme=-1,this._rfbCleanDisconnect=!0,this._rfbVersion=0,this._rfbMaxVersion=3.8,this._rfbTightVNC=!1,this._rfbVeNCryptState=0,this._rfbXvpVer=0,this._fbWidth=0,this._fbHeight=0,this._fbName="",this._capabilities={power:!1},this._supportsFence=!1,this._supportsContinuousUpdates=!1,this._enabledContinuousUpdates=!1,this._supportsSetDesktopSize=!1,this._screenID=0,this._screenFlags=0,this._qemuExtKeyEventSupported=!1,this._clipboardText=null,this._clipboardServerCapabilitiesActions={},this._clipboardServerCapabilitiesFormats={},this._sock=null,this._display=null,this._flushing=!1,this._keyboard=null,this._gestures=null,this._disconnTimer=null,this._resizeTimeout=null,this._mouseMoveTimer=null,this._decoders={},this._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},this._mousePos={},this._mouseButtonMask=0,this._mouseLastMoveTime=0,this._viewportDragging=!1,this._viewportDragPos={},this._viewportHasMoved=!1,this._accumulatedWheelDeltaX=0,this._accumulatedWheelDeltaY=0,this._gestureLastTapTime=null,this._gestureFirstDoubleTapEv=null,this._gestureLastMagnitudeX=0,this._gestureLastMagnitudeY=0,this._eventHandlers={focusCanvas:this._focusCanvas.bind(this),windowResize:this._windowResize.bind(this),handleMouse:this._handleMouse.bind(this),handleWheel:this._handleWheel.bind(this),handleGesture:this._handleGesture.bind(this)},r(">> RFB.constructor"),this._screen=document.createElement("div"),this._screen.style.display="flex",this._screen.style.width="100%",this._screen.style.height="100%",this._screen.style.overflow="auto",this._screen.style.background="rgb(40, 40, 40)",this._canvas=document.createElement("canvas"),this._canvas.style.margin="auto",this._canvas.style.outline="none",this._canvas.style.flexShrink="0",this._canvas.width=0,this._canvas.height=0,this._canvas.tabIndex=-1,this._screen.appendChild(this._canvas),this._cursor=new Ar,this._cursorImage=Sa.cursors.none,this._decoders[Wr]=new _a,this._decoders[qr]=new fa,this._decoders[jr]=new pa,this._decoders[Zr]=new ga,this._decoders[Jr]=new ma,this._decoders[$r]=new wa;try{this._display=new D(this._canvas)}catch(Qa){throw o("Display exception: "+Qa),Qa}this._display.onflush=this._onFlush.bind(this),this._keyboard=new yr(this._canvas),this._keyboard.onkeyevent=this._handleKeyEvent.bind(this),this._gestures=new Sr,this._sock=new Mr,this._sock.on("message",(()=>{this._handleMessage()})),this._sock.on("open",(()=>{"connecting"===this._rfbConnectionState&&""===this._rfbInitState?(this._rfbInitState="ProtocolVersion",r("Starting VNC handshake")):this._fail("Unexpected server connection while "+this._rfbConnectionState)})),this._sock.on("close",(t=>{r("WebSocket on-close event");let e="";switch(t.code&&(e="(code: "+t.code,t.reason&&(e+=", reason: "+t.reason),e+=")"),this._rfbConnectionState){case"connecting":this._fail("Connection closed "+e);break;case"connected":this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected");break;case"disconnecting":this._updateConnectionState("disconnected");break;case"disconnected":this._fail("Unexpected server disconnect when already disconnected "+e);break;default:this._fail("Unexpected server disconnect before connecting "+e)}this._sock.off("close")})),this._sock.on("error",(t=>h("WebSocket on-error event"))),setTimeout(this._updateConnectionState.bind(this,"connecting")),r("<< RFB.constructor"),this.dragViewport=!1,this.focusOnClick=!0,this._viewOnly=!1,this._clipViewport=!1,this._scaleViewport=!1,this._resizeSession=!1,this._showDotCursor=!1,void 0!==s.showDotCursor&&(h("Specifying showDotCursor as a RFB constructor argument is deprecated"),this._showDotCursor=s.showDotCursor),this._qualityLevel=6,this._compressionLevel=2}get viewOnly(){return this._viewOnly}set viewOnly(t){this._viewOnly=t,"connecting"!==this._rfbConnectionState&&"connected"!==this._rfbConnectionState||(t?this._keyboard.ungrab():this._keyboard.grab())}get capabilities(){return this._capabilities}get touchButton(){return 0}set touchButton(t){h("Using old API!")}get clipViewport(){return this._clipViewport}set clipViewport(t){this._clipViewport=t,this._updateClip()}get scaleViewport(){return this._scaleViewport}set scaleViewport(t){this._scaleViewport=t,t&&this._clipViewport&&this._updateClip(),this._updateScale(),!t&&this._clipViewport&&this._updateClip()}get resizeSession(){return this._resizeSession}set resizeSession(t){this._resizeSession=t,t&&this._requestRemoteResize()}get showDotCursor(){return this._showDotCursor}set showDotCursor(t){this._showDotCursor=t,this._refreshCursor()}get background(){return this._screen.style.background}set background(t){this._screen.style.background=t}get qualityLevel(){return this._qualityLevel}set qualityLevel(t){!Number.isInteger(t)||t<0||t>9?o("qualityLevel must be an integer between 0 and 9"):this._qualityLevel!==t&&(this._qualityLevel=t,"connected"===this._rfbConnectionState&&this._sendEncodings())}get compressionLevel(){return this._compressionLevel}set compressionLevel(t){!Number.isInteger(t)||t<0||t>9?o("compressionLevel must be an integer between 0 and 9"):this._compressionLevel!==t&&(this._compressionLevel=t,"connected"===this._rfbConnectionState&&this._sendEncodings())}disconnect(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}sendCredentials(t){this._rfbCredentials=t,setTimeout(this._initMsg.bind(this),0)}sendCtrlAltDel(){"connected"!==this._rfbConnectionState||this._viewOnly||(a("Sending Ctrl-Alt-Del"),this.sendKey(xi,"ControlLeft",!0),this.sendKey(Mi,"AltLeft",!0),this.sendKey(Qe,"Delete",!0),this.sendKey(Qe,"Delete",!1),this.sendKey(Mi,"AltLeft",!1),this.sendKey(xi,"ControlLeft",!1))}machineShutdown(){this._xvpOp(1,2)}machineReboot(){this._xvpOp(1,3)}machineReset(){this._xvpOp(1,4)}sendKey(t,e,s){if("connected"!==this._rfbConnectionState||this._viewOnly)return;if(void 0===s)return this.sendKey(t,e,!0),void this.sendKey(t,e,!1);const i=Gr[e];if(this._qemuExtKeyEventSupported&&i)a("Sending key ("+(s?"down":"up")+"): keysym "+(t=t||0)+", scancode "+i),Sa.messages.QEMUExtendedKeyEvent(this._sock,t,s,i);else{if(!t)return;a("Sending keysym ("+(s?"down":"up")+"): "+t),Sa.messages.keyEvent(this._sock,t,s?1:0)}}focus(){this._canvas.focus()}blur(){this._canvas.blur()}clipboardPasteFrom(t){if("connected"===this._rfbConnectionState&&!this._viewOnly)if(this._clipboardServerCapabilitiesFormats[1]&&this._clipboardServerCapabilitiesActions[134217728])this._clipboardText=t,Sa.messages.extendedClipboardNotify(this._sock,[1]);else{let e=new Uint8Array(t.length);for(let s=0;s> RFB.connect"),a("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(Ur){"SyntaxError"===Ur.name?this._fail("Invalid host or port ("+Ur+")"):this._fail("Error when opening socket ("+Ur+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),r("<< RFB.connect")}_disconnect(){r(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(Ur){if("NotFoundError"!==Ur.name)throw Ur}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),r("<< RFB.disconnect")}_focusCanvas(t){this.focusOnClick&&this.focus()}_setDesktopName(t){this._fbName=t,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}_windowResize(t){window.requestAnimationFrame((()=>{this._updateClip(),this._updateScale()})),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}_updateClip(){const t=this._display.clipViewport;let e=this._clipViewport;if(this._scaleViewport&&(e=!1),t!==e&&(this._display.clipViewport=e),e){const t=this._screenSize();this._display.viewportChangeSize(t.w,t.h),this._fixScrollbars()}}_updateScale(){if(this._scaleViewport){const t=this._screenSize();this._display.autoscale(t.w,t.h)}else this._display.scale=1;this._fixScrollbars()}_requestRemoteResize(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;const t=this._screenSize();Sa.messages.setDesktopSize(this._sock,Math.floor(t.w),Math.floor(t.h),this._screenID,this._screenFlags),r("Requested new desktop size: "+t.w+"x"+t.h)}_screenSize(){let t=this._screen.getBoundingClientRect();return{w:t.width,h:t.height}}_fixScrollbars(){const t=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=t}_updateConnectionState(t){const e=this._rfbConnectionState;if(t!==e)if("disconnected"!==e){switch(t){case"connected":if("connecting"!==e)return void o("Bad transition to connected state, previous connection state: "+e);break;case"disconnected":if("disconnecting"!==e)return void o("Bad transition to disconnected state, previous connection state: "+e);break;case"connecting":if(""!==e)return void o("Bad transition to connecting state, previous connection state: "+e);break;case"disconnecting":if("connected"!==e&&"connecting"!==e)return void o("Bad transition to disconnecting state, previous connection state: "+e);break;default:return void o("Unknown connection state: "+t)}switch(this._rfbConnectionState=t,r("New state '"+t+"', was '"+e+"'."),this._disconnTimer&&"disconnecting"!==t&&(r("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close")),t){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout((()=>{o("Disconnection timed out."),this._updateConnectionState("disconnected")}),3e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}))}}else o("Tried changing state of a disconnected RFB object");else r("Already in state '"+t+"', ignoring")}_fail(t){switch(this._rfbConnectionState){case"disconnecting":o("Failed when disconnecting: "+t);break;case"connected":o("Failed while connected: "+t);break;case"connecting":o("Failed when connecting: "+t);break;default:o("RFB failure: "+t)}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}_setCapability(t,e){this._capabilities[t]=e,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}_handleMessage(){if(0!==this._sock.rQlen)switch(this._rfbConnectionState){case"disconnected":o("Got data while disconnected");break;case"connected":for(;!this._flushing&&this._normalMsg()&&0!==this._sock.rQlen;);break;default:this._initMsg()}else h("handleMessage called on an empty receive queue")}_handleKeyEvent(t,e,s){this.sendKey(t,e,s)}_handleMouse(t){if("click"===t.type&&t.target!==this._canvas)return;if(t.stopPropagation(),t.preventDefault(),"click"===t.type||"contextmenu"===t.type)return;let e=x(t.clientX,t.clientY,this._canvas);switch(t.type){case"mousedown":!function(t){if(t.setCapture)t.setCapture(),document.captureElement=t,t.addEventListener("mouseup",F);else{F();let e=document.getElementById("noVNC_mouse_capture_elem");null===e&&(e=document.createElement("div"),e.id="noVNC_mouse_capture_elem",e.style.position="fixed",e.style.top="0px",e.style.left="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1e4,e.style.display="none",document.body.appendChild(e),e.addEventListener("contextmenu",E),e.addEventListener("mousemove",E),e.addEventListener("mouseup",E)),document.captureElement=t,T.observe(t,{attributes:!0}),M(),e.style.display="",window.addEventListener("mousemove",E),window.addEventListener("mouseup",E)}}(this._canvas),this._handleMouseButton(e.x,e.y,!0,1<u||Math.abs(i)>u)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:t,y:e},this._display.viewportChangePos(s,i))}else if(this._mousePos={x:t,y:e},null==this._mouseMoveTimer){const s=Date.now()-this._mouseLastMoveTime;s>17?(this._sendMouse(t,e,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout((()=>{this._handleDelayedMouseMove()}),17-s)}}_handleDelayedMouseMove(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}_sendMouse(t,e,s){"connected"===this._rfbConnectionState&&(this._viewOnly||Sa.messages.pointerEvent(this._sock,this._display.absX(t),this._display.absY(e),s))}_handleWheel(t){if("connected"!==this._rfbConnectionState)return;if(this._viewOnly)return;t.stopPropagation(),t.preventDefault();let e=x(t.clientX,t.clientY,this._canvas),s=t.deltaX,i=t.deltaY;0!==t.deltaMode&&(s*=19,i*=19),this._accumulatedWheelDeltaX+=s,this._accumulatedWheelDeltaY+=i,Math.abs(this._accumulatedWheelDeltaX)>=50&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(e.x,e.y,!0,32),this._handleMouseButton(e.x,e.y,!1,32)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(e.x,e.y,!0,64),this._handleMouseButton(e.x,e.y,!1,64)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=50&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(e.x,e.y,!0,8),this._handleMouseButton(e.x,e.y,!1,8)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(e.x,e.y,!0,16),this._handleMouseButton(e.x,e.y,!1,16)),this._accumulatedWheelDeltaY=0)}_fakeMouseMove(t,e,s){this._handleMouseMove(e,s),this._cursor.move(t.detail.clientX,t.detail.clientY)}_handleTapEvent(t,e){let s=x(t.detail.clientX,t.detail.clientY,this._canvas);if(null!==this._gestureLastTapTime&&Date.now()-this._gestureLastTapTime<1e3&&this._gestureFirstDoubleTapEv.detail.type===t.detail.type){let e=this._gestureFirstDoubleTapEv.detail.clientX-t.detail.clientX,i=this._gestureFirstDoubleTapEv.detail.clientY-t.detail.clientY;Math.hypot(e,i)<50?s=x(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=t}else this._gestureFirstDoubleTapEv=t;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,s.x,s.y),this._handleMouseButton(s.x,s.y,!0,e),this._handleMouseButton(s.x,s.y,!1,e)}_handleGesture(t){let e,s=x(t.detail.clientX,t.detail.clientY,this._canvas);switch(t.type){case"gesturestart":switch(t.detail.type){case"onetap":this._handleTapEvent(t,1);break;case"twotap":this._handleTapEvent(t,4);break;case"threetap":this._handleTapEvent(t,2);break;case"drag":this._fakeMouseMove(t,s.x,s.y),this._handleMouseButton(s.x,s.y,!0,1);break;case"longpress":this._fakeMouseMove(t,s.x,s.y),this._handleMouseButton(s.x,s.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=t.detail.magnitudeX,this._gestureLastMagnitudeY=t.detail.magnitudeY,this._fakeMouseMove(t,s.x,s.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(t.detail.magnitudeX,t.detail.magnitudeY),this._fakeMouseMove(t,s.x,s.y)}break;case"gesturemove":switch(t.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(t,s.x,s.y);break;case"twodrag":for(this._fakeMouseMove(t,s.x,s.y);t.detail.magnitudeY-this._gestureLastMagnitudeY>ba;)this._handleMouseButton(s.x,s.y,!0,8),this._handleMouseButton(s.x,s.y,!1,8),this._gestureLastMagnitudeY+=ba;for(;t.detail.magnitudeY-this._gestureLastMagnitudeY<-50;)this._handleMouseButton(s.x,s.y,!0,16),this._handleMouseButton(s.x,s.y,!1,16),this._gestureLastMagnitudeY-=ba;for(;t.detail.magnitudeX-this._gestureLastMagnitudeX>ba;)this._handleMouseButton(s.x,s.y,!0,32),this._handleMouseButton(s.x,s.y,!1,32),this._gestureLastMagnitudeX+=ba;for(;t.detail.magnitudeX-this._gestureLastMagnitudeX<-50;)this._handleMouseButton(s.x,s.y,!0,64),this._handleMouseButton(s.x,s.y,!1,64),this._gestureLastMagnitudeX-=ba;break;case"pinch":if(this._fakeMouseMove(t,s.x,s.y),e=Math.hypot(t.detail.magnitudeX,t.detail.magnitudeY),Math.abs(e-this._gestureLastMagnitudeX)>75){for(this._handleKeyEvent(xi,"ControlLeft",!0);e-this._gestureLastMagnitudeX>75;)this._handleMouseButton(s.x,s.y,!0,8),this._handleMouseButton(s.x,s.y,!1,8),this._gestureLastMagnitudeX+=75;for(;e-this._gestureLastMagnitudeX<-75;)this._handleMouseButton(s.x,s.y,!0,16),this._handleMouseButton(s.x,s.y,!1,16),this._gestureLastMagnitudeX-=75}this._handleKeyEvent(xi,"ControlLeft",!1)}break;case"gestureend":switch(t.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(t,s.x,s.y),this._handleMouseButton(s.x,s.y,!1,1);break;case"longpress":this._fakeMouseMove(t,s.x,s.y),this._handleMouseButton(s.x,s.y,!1,4)}}}_negotiateProtocolVersion(){if(this._sock.rQwait("version",12))return!1;const t=this._sock.rQshiftStr(12).substr(4,7);a("Server ProtocolVersion: "+t);let e=0;switch(t){case"000.000":e=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+t)}if(e){let t="ID:"+this._repeaterID;for(;t.length<250;)t+="\0";return this._sock.sendString(t),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);const s="00"+parseInt(this._rfbVersion,10)+".00"+10*this._rfbVersion%10;this._sock.sendString("RFB "+s+"\n"),r("Sent ProtocolVersion: "+s),this._rfbInitState="Security"}_negotiateSecurity(){function t(t,e){for(let s=0;s=3.7){const e=this._sock.rQshift8();if(this._sock.rQwait("security type",e,1))return!1;if(0===e)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();const s=this._sock.rQshiftBytes(e);if(r("Server security types: "+s),t(1,s))this._rfbAuthScheme=1;else if(t(22,s))this._rfbAuthScheme=22;else if(t(16,s))this._rfbAuthScheme=16;else if(t(2,s))this._rfbAuthScheme=2;else{if(!t(19,s))return this._fail("Unsupported security types (types: "+s+")");this._rfbAuthScheme=19}this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),0==this._rfbAuthScheme)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",r("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}_handleSecurityReason(){if(this._sock.rQwait("reason length",4))return!1;const t=this._sock.rQshift32();let e="";if(t>0){if(this._sock.rQwait("reason",t,4))return!1;e=this._sock.rQshiftStr(t)}return""!==e?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:e}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+e+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}_negotiateXvpAuth(){if(void 0===this._rfbCredentials.username||void 0===this._rfbCredentials.password||void 0===this._rfbCredentials.target)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;const t=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(t),this._rfbAuthScheme=2,this._negotiateAuthentication()}_negotiateVeNCryptAuth(){if(0==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt version",2))return!1;const t=this._sock.rQshift8(),e=this._sock.rQshift8();if(0!=t||2!=e)return this._fail("Unsupported VeNCrypt version "+t+"."+e);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(1==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt ack",1))return!1;const t=this._sock.rQshift8();if(0!=t)return this._fail("VeNCrypt failure "+t);this._rfbVeNCryptState=2}if(2==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;const t=this._sock.rQshift8();if(t<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=t,this._rfbVeNCryptState=3}if(3==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;const t=[];for(let e=0;e0&&this._sock.rQwait("tunnel capabilities",16*t,4))return!1;if(this._rfbTightVNC=!0,t>0)return this._negotiateTightTunnels(t),!1}if(this._sock.rQwait("sub auth count",4))return!1;const t=this._sock.rQshift32();if(0===t)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*t,4))return!1;const e={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},s=[];for(let i=0;i=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}_handleSecurityResult(){if(this._sock.rQwait("VNC auth response ",4))return!1;const t=this._sock.rQshift32();return 0===t?(this._rfbInitState="ClientInitialisation",r("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=t,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:t}})),this._fail("Security handshake failed"))}_negotiateServerInit(){if(this._sock.rQwait("server initialization",24))return!1;const t=this._sock.rQshift16(),e=this._sock.rQshift16(),s=this._sock.rQshift8(),i=this._sock.rQshift8(),n=this._sock.rQshift8(),r=this._sock.rQshift8(),o=this._sock.rQshift16(),c=this._sock.rQshift16(),d=this._sock.rQshift16(),u=this._sock.rQshift8(),_=this._sock.rQshift8(),f=this._sock.rQshift8();this._sock.rQskipBytes(3);const p=this._sock.rQshift32();if(this._sock.rQwait("server init name",p,24))return!1;let g=this._sock.rQshiftStr(p);if(g=l(g,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+p))return!1;const t=this._sock.rQshift16(),e=this._sock.rQshift16(),s=this._sock.rQshift16();this._sock.rQskipBytes(2);const i=16*(t+e+s);if(this._sock.rQwait("TightVNC extended server init header",i,32+p))return!1;this._sock.rQskipBytes(16*t),this._sock.rQskipBytes(16*e),this._sock.rQskipBytes(16*s)}return a("Screen: "+t+"x"+e+", bpp: "+s+", depth: "+i+", bigEndian: "+n+", trueColor: "+r+", redMax: "+o+", greenMax: "+c+", blueMax: "+d+", redShift: "+u+", greenShift: "+_+", blueShift: "+f),this._setDesktopName(g),this._resize(t,e),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,"Intel(r) AMT KVM"===this._fbName&&(h("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Sa.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Sa.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}_sendEncodings(){const t=[];t.push(qr),24==this._fbDepth&&(t.push(Jr),t.push($r),t.push(Zr),t.push(jr)),t.push(Wr),t.push(ta+this._qualityLevel),t.push(ca+this._compressionLevel),t.push(ea),t.push(sa),t.push(na),t.push(aa),t.push(ha),t.push(oa),t.push(la),t.push(ra),t.push(ua),24==this._fbDepth&&(t.push(da),t.push(ia)),Sa.messages.clientEncodings(this._sock,t)}_initMsg(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}_handleSetColourMapMsg(){return r("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}_handleServerCutText(){if(r("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);let t=this._sock.rQshift32();if(t=i(t),this._sock.rQwait("ServerCutText content",Math.abs(t),8))return!1;if(t>=0){const e=this._sock.rQshiftStr(t);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:e}}))}else{t=Math.abs(t);const e=this._sock.rQshift32();let s=65535&e,i=4278190080&e;if(!!(i&va)){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(let e=0;e<=15;e++){let t=1<0&&"\0"===n.charAt(n.length-1)&&(n=n.slice(0,-1)),n=n.replace("\r\n","\n"),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:n}}))}}}}return!0}_handleServerFenceMsg(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);let t=this._sock.rQshift32(),e=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",e,9))return!1;e>64&&(h("Bad payload length ("+e+") in fence response"),e=64);const s=this._sock.rQshiftStr(e);return this._supportsFence=!0,t&1<<31?(t&=3,Sa.messages.clientFence(this._sock,t,s),!0):this._fail("Unexpected fence response")}_handleXvpMsg(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);const t=this._sock.rQshift8(),e=this._sock.rQshift8();switch(e){case 0:o("XVP Operation Failed");break;case 1:this._rfbXvpVer=t,a("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+e+")")}return!0}_normalMsg(){let t,e,s;switch(t=this._FBU.rects>0?0:this._sock.rQshift8(),t){case 0:return s=this._framebufferUpdate(),s&&!this._enabledContinuousUpdates&&Sa.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),s;case 1:return this._handleSetColourMapMsg();case 2:return r("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return e=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,e&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),a("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+t+")"),r("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}_onFlush(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}_framebufferUpdate(){if(0===this._FBU.rects){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(null===this._FBU.encoding){if(this._sock.rQwait("rect header",12))return!1;const t=this._sock.rQshiftBytes(12);this._FBU.x=(t[0]<<8)+t[1],this._FBU.y=(t[2]<<8)+t[3],this._FBU.width=(t[4]<<8)+t[5],this._FBU.height=(t[6]<<8)+t[7],this._FBU.encoding=parseInt((t[8]<<24)+(t[9]<<16)+(t[10]<<8)+t[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}_handleRect(){switch(this._FBU.encoding){case sa:return this._FBU.rects=1,!0;case da:return this._handleVMwareCursor();case ia:return this._handleCursor();case na:try{void 0!==document.createEvent("keyboardEvent").code&&(this._qemuExtKeyEventSupported=!0)}catch(ee){}return!0;case ra:return this._handleDesktopName();case ea:return this._resize(this._FBU.width,this._FBU.height),!0;case aa:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}_handleVMwareCursor(){const t=this._FBU.x,e=this._FBU.y,s=this._FBU.width,i=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;const n=this._sock.rQshift8();let r;this._sock.rQshift8();if(0==n){const t=-256;if(r=new Array(s*i*4),this._sock.rQwait("VMware cursor classic encoding",s*i*4*2,2))return!1;let e=new Array(s*i);for(let r=0;r>8&255,s=t>>16&255,i=t>>24&255;r[4*a]=e,r[4*a+1]=s,r[4*a+2]=i,r[4*a+3]=255}else(e[a]&t)==t?0==n[a]?(r[4*a]=0,r[4*a+1]=0,r[4*a+2]=0,r[4*a+3]=0):(n[a],r[4*a]=0,r[4*a+1]=0,r[4*a+2]=0,r[4*a+3]=255):(r[4*a]=0,r[4*a+1]=0,r[4*a+2]=0,r[4*a+3]=255)}else{if(1!=n)return h("The given cursor type is not supported: "+n+" given."),!1;if(this._sock.rQwait("VMware cursor alpha encoding",s*i*4,2))return!1;r=new Array(s*i*4);for(let t=0;t>24&255,r[4*t+1]=e>>16&255,r[4*t+2]=e>>8&255,r[4*t+3]=255&e}}return this._updateCursor(r,t,e,s,i),!0}_handleCursor(){const t=this._FBU.x,e=this._FBU.y,s=this._FBU.width,i=this._FBU.height,n=s*i*4,r=Math.ceil(s/8)*i;let a=n+r;if(this._sock.rQwait("cursor encoding",a))return!1;const h=this._sock.rQshiftBytes(n),o=this._sock.rQshiftBytes(r);let l=new Uint8Array(s*i*4),c=0;for(let d=0;dt.charCodeAt(0)));return new Yr(s).encrypt(e)}}Sa.messages={keyEvent(t,e,s){const i=t._sQ,n=t._sQlen;i[n]=4,i[n+1]=s,i[n+2]=0,i[n+3]=0,i[n+4]=e>>24,i[n+5]=e>>16,i[n+6]=e>>8,i[n+7]=e,t._sQlen+=8,t.flush()},QEMUExtendedKeyEvent(t,e,s,i){const n=t._sQ,r=t._sQlen;n[r]=255,n[r+1]=0,n[r+2]=s>>8,n[r+3]=s,n[r+4]=e>>24,n[r+5]=e>>16,n[r+6]=e>>8,n[r+7]=e;const a=function(t){const e=255&i;return 224===i>>8&&e<127?128|e:t}(i);n[r+8]=a>>24,n[r+9]=a>>16,n[r+10]=a>>8,n[r+11]=a,t._sQlen+=12,t.flush()},pointerEvent(t,e,s,i){const n=t._sQ,r=t._sQlen;n[r]=5,n[r+1]=i,n[r+2]=e>>8,n[r+3]=e,n[r+4]=s>>8,n[r+5]=s,t._sQlen+=6,t.flush()},_buildExtendedClipboardFlags(t,e){let s=new Uint8Array(4),i=0,n=0;for(let r=0;r>24,s[1]=0,s[2]=0,s[3]=i,s},extendedClipboardProvide(t,e,s){let i=new we,n=[];for(let h=0;h>24&255,t.length>>16&255,t.length>>8&255,255&t.length);for(let e=0;eparseInt(t))),i.sort(((t,e)=>t-e)),n.set(Sa.messages._buildExtendedClipboardFlags(e,[]));let r=4;for(let a=0;a>24,n[r+1]=s[i[a]]>>16,n[r+2]=s[i[a]]>>8,n[r+3]=s[i[a]]>>0,r+=4,n[3]|=1<>>0:e.length,i[n+4]=r>>24,i[n+5]=r>>16,i[n+6]=r>>8,i[n+7]=r,t._sQlen+=8;let a=0,h=e.length;for(;h>0;){let s=Math.min(h,t._sQbufferSize-t._sQlen);for(let n=0;n>8,r[a+3]=e,r[a+4]=s>>8,r[a+5]=s,r[a+6]=1,r[a+7]=0,r[a+8]=i>>24,r[a+9]=i>>16,r[a+10]=i>>8,r[a+11]=i,r[a+12]=0,r[a+13]=0,r[a+14]=0,r[a+15]=0,r[a+16]=e>>8,r[a+17]=e,r[a+18]=s>>8,r[a+19]=s,r[a+20]=n>>24,r[a+21]=n>>16,r[a+22]=n>>8,r[a+23]=n,t._sQlen+=24,t.flush()},clientFence(t,e,s){const i=t._sQ,n=t._sQlen;i[n]=248,i[n+1]=0,i[n+2]=0,i[n+3]=0,i[n+4]=e>>24,i[n+5]=e>>16,i[n+6]=e>>8,i[n+7]=e;const r=s.length;i[n+8]=r;for(let a=0;a>8,a[h+3]=s,a[h+4]=i>>8,a[h+5]=i,a[h+6]=n>>8,a[h+7]=n,a[h+8]=r>>8,a[h+9]=r,t._sQlen+=10,t.flush()},pixelFormat(t,e,s){const i=t._sQ,n=t._sQlen;let r;r=e>16?32:e>8?16:8;const a=Math.floor(e/3);i[n]=0,i[n+1]=0,i[n+2]=0,i[n+3]=0,i[n+4]=r,i[n+5]=e,i[n+6]=0,i[n+7]=s?1:0,i[n+8]=0,i[n+9]=(1<>8,s[i+3]=e.length;let n=i+4;for(let r=0;r>24,s[n+1]=t>>16,s[n+2]=t>>8,s[n+3]=t,n+=4}t._sQlen+=n-i,t.flush()},fbUpdateRequest(t,e,s,i,n,r){const a=t._sQ,h=t._sQlen;"undefined"===typeof s&&(s=0),"undefined"===typeof i&&(i=0),a[h]=3,a[h+1]=e?1:0,a[h+2]=s>>8&255,a[h+3]=255&s,a[h+4]=i>>8&255,a[h+5]=255&i,a[h+6]=n>>8&255,a[h+7]=255&n,a[h+8]=r>>8&255,a[h+9]=255&r,t._sQlen+=10,t.flush()},xvpOp(t,e,s){const i=t._sQ,n=t._sQlen;i[n]=250,i[n+1]=0,i[n+2]=e,i[n+3]=s,t._sQlen+=4,t.flush()}},Sa.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},2203:function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");const s=Object(t);for(let i=1;i{function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),s}t.prototype=window.Event.prototype,"function"!==typeof window.CustomEvent&&(window.CustomEvent=t)})(),Number.isInteger=Number.isInteger||function(t){return"number"===typeof t&&isFinite(t)&&Math.floor(t)===t}}}]);
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/chunks/254-408dda06d3f8a3c7f26d.js b/striker-ui/out/_next/static/chunks/254-408dda06d3f8a3c7f26d.js
new file mode 100644
index 00000000..6f4bc8ae
--- /dev/null
+++ b/striker-ui/out/_next/static/chunks/254-408dda06d3f8a3c7f26d.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[254],{3258:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(2122),i=r(2949),o=r(7294),a=(r(5697),r(6010)),c=r(130),u=r(5209),s=(0,u.Z)(o.createElement("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"),l=(0,u.Z)(o.createElement("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"),d=r(9693),f=(0,u.Z)(o.createElement("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"),p=r(8025),h=r(4670),m=o.createElement(l,null),b=o.createElement(s,null),v=o.createElement(f,null),y=o.forwardRef((function(e,t){var r=e.checkedIcon,u=void 0===r?m:r,s=e.classes,l=e.color,d=void 0===l?"secondary":l,f=e.icon,h=void 0===f?b:f,y=e.indeterminate,g=void 0!==y&&y,k=e.indeterminateIcon,w=void 0===k?v:k,x=e.inputProps,C=e.size,Z=void 0===C?"medium":C,E=(0,i.Z)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),O=g?w:h,S=g?w:u;return o.createElement(c.Z,(0,n.Z)({type:"checkbox",classes:{root:(0,a.Z)(s.root,s["color".concat((0,p.Z)(d))],g&&s.indeterminate),checked:s.checked,disabled:s.disabled},color:d,inputProps:(0,n.Z)({"data-indeterminate":g},x),icon:o.cloneElement(O,{fontSize:void 0===O.props.fontSize&&"small"===Z?Z:O.props.fontSize}),checkedIcon:o.cloneElement(S,{fontSize:void 0===S.props.fontSize&&"small"===Z?Z:S.props.fontSize}),ref:t},E))})),g=(0,h.Z)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,d.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,d.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(y)},3681:function(e,t,r){"use strict";var n=r(2122),i=r(2949),o=r(7294),a=(r(5697),r(6010)),c=r(8025),u=r(4670),s=r(9693),l=r(8920),d=o.forwardRef((function(e,t){var r=e.classes,u=e.className,s=e.color,d=void 0===s?"primary":s,f=e.value,p=e.valueBuffer,h=e.variant,m=void 0===h?"indeterminate":h,b=(0,i.Z)(e,["classes","className","color","value","valueBuffer","variant"]),v=(0,l.Z)(),y={},g={bar1:{},bar2:{}};if("determinate"===m||"buffer"===m)if(void 0!==f){y["aria-valuenow"]=Math.round(f),y["aria-valuemin"]=0,y["aria-valuemax"]=100;var k=f-100;"rtl"===v.direction&&(k=-k),g.bar1.transform="translateX(".concat(k,"%)")}else 0;if("buffer"===m)if(void 0!==p){var w=(p||0)-100;"rtl"===v.direction&&(w=-w),g.bar2.transform="translateX(".concat(w,"%)")}else 0;return o.createElement("div",(0,n.Z)({className:(0,a.Z)(r.root,r["color".concat((0,c.Z)(d))],u,{determinate:r.determinate,indeterminate:r.indeterminate,buffer:r.buffer,query:r.query}[m]),role:"progressbar"},y,{ref:t},b),"buffer"===m?o.createElement("div",{className:(0,a.Z)(r.dashed,r["dashedColor".concat((0,c.Z)(d))])}):null,o.createElement("div",{className:(0,a.Z)(r.bar,r["barColor".concat((0,c.Z)(d))],("indeterminate"===m||"query"===m)&&r.bar1Indeterminate,{determinate:r.bar1Determinate,buffer:r.bar1Buffer}[m]),style:g.bar1}),"determinate"===m?null:o.createElement("div",{className:(0,a.Z)(r.bar,("indeterminate"===m||"query"===m)&&r.bar2Indeterminate,"buffer"===m?[r["color".concat((0,c.Z)(d))],r.bar2Buffer]:r["barColor".concat((0,c.Z)(d))]),style:g.bar2}))}));t.Z=(0,u.Z)((function(e){var t=function(t){return"light"===e.palette.type?(0,s.$n)(t,.62):(0,s._j)(t,.5)},r=t(e.palette.primary.main),n=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:r},colorSecondary:{backgroundColor:n},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(d)},9570:function(e,t,r){"use strict";var n=r(2122),i=r(2949),o=r(7294),a=(r(5697),r(6010)),c=r(4670),u=r(9693),s=r(8025),l=r(130),d=o.forwardRef((function(e,t){var r=e.classes,c=e.className,u=e.color,d=void 0===u?"secondary":u,f=e.edge,p=void 0!==f&&f,h=e.size,m=void 0===h?"medium":h,b=(0,i.Z)(e,["classes","className","color","edge","size"]),v=o.createElement("span",{className:r.thumb});return o.createElement("span",{className:(0,a.Z)(r.root,c,{start:r.edgeStart,end:r.edgeEnd}[p],"small"===m&&r["size".concat((0,s.Z)(m))])},o.createElement(l.Z,(0,n.Z)({type:"checkbox",icon:v,checkedIcon:v,classes:{root:(0,a.Z)(r.switchBase,r["color".concat((0,s.Z)(d))]),input:r.input,checked:r.checked,disabled:r.disabled},ref:t},b)),o.createElement("span",{className:r.track}))}));t.Z=(0,c.Z)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,u.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,u.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(d)},130:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(2122),i=r(4699),o=r(2949),a=r(7294),c=(r(5697),r(6010)),u=r(2775),s=a.createContext();var l=s;var d=r(4670),f=r(7812),p=a.forwardRef((function(e,t){var r=e.autoFocus,s=e.checked,d=e.checkedIcon,p=e.classes,h=e.className,m=e.defaultChecked,b=e.disabled,v=e.icon,y=e.id,g=e.inputProps,k=e.inputRef,w=e.name,x=e.onBlur,C=e.onChange,Z=e.onFocus,E=e.readOnly,O=e.required,S=e.tabIndex,z=e.type,B=e.value,I=(0,o.Z)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),P=(0,u.Z)({controlled:s,default:Boolean(m),name:"SwitchBase",state:"checked"}),$=(0,i.Z)(P,2),M=$[0],R=$[1],T=a.useContext(l),V=b;T&&"undefined"===typeof V&&(V=T.disabled);var F="checkbox"===z||"radio"===z;return a.createElement(f.Z,(0,n.Z)({component:"span",className:(0,c.Z)(p.root,h,M&&p.checked,V&&p.disabled),disabled:V,tabIndex:null,role:void 0,onFocus:function(e){Z&&Z(e),T&&T.onFocus&&T.onFocus(e)},onBlur:function(e){x&&x(e),T&&T.onBlur&&T.onBlur(e)},ref:t},I),a.createElement("input",(0,n.Z)({autoFocus:r,checked:s,defaultChecked:m,className:p.input,disabled:V,id:F&&y,name:w,onChange:function(e){var t=e.target.checked;R(t),C&&C(e,t)},readOnly:E,ref:k,required:O,tabIndex:S,type:z,value:B},g)),M?d:v)})),h=(0,d.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(p)},1959:function(e,t,r){"use strict";var n=r(5318),i=r(862);t.Z=void 0;var o=i(r(7294)),a=(0,n(r(4260)).default)(o.createElement("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.Z=a},9067:function(e,t,r){"use strict";var n=r(5318),i=r(862);t.Z=void 0;var o=i(r(7294)),a=(0,n(r(4260)).default)(o.createElement("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.Z=a},8513:function(e,t,r){"use strict";var n=r(5318),i=r(862);t.Z=void 0;var o=i(r(7294)),a=(0,n(r(4260)).default)(o.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.Z=a},1385:function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r{let n=e;return"string"===typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):!0!==t&&void 0===r||(n=e.toLocaleString(void 0,r)),n};e.exports=(e,a)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const c=(a=Object.assign({bits:!1,binary:!1},a)).bits?a.binary?i:n:a.binary?r:t;if(a.signed&&0===e)return` 0 ${c[0]}`;const u=e<0,s=u?"-":a.signed?"+":"";let l;if(u&&(e=-e),void 0!==a.minimumFractionDigits&&(l={minimumFractionDigits:a.minimumFractionDigits}),void 0!==a.maximumFractionDigits&&(l=Object.assign({maximumFractionDigits:a.maximumFractionDigits},l)),e<1){return s+o(e,a.locale,l)+" "+c[0]}const d=Math.min(Math.floor(a.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),c.length-1);e/=Math.pow(a.binary?1024:1e3,d),l||(e=e.toPrecision(3));return s+o(Number(e),a.locale,l)+" "+c[d]}},5723:function(e,t,r){"use strict";r.d(t,{ZP:function(){return M}});var n=r(7294),i=Object.prototype.hasOwnProperty;var o=new WeakMap,a=0;var c=function(){function e(e){void 0===e&&(e={}),this.cache=new Map(Object.entries(e)),this.subs=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.cache.get(t)},e.prototype.set=function(e,t){var r=this.serializeKey(e)[0];this.cache.set(r,t),this.notify()},e.prototype.keys=function(){return Array.from(this.cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.cache.has(t)},e.prototype.clear=function(){this.cache.clear(),this.notify()},e.prototype.delete=function(e){var t=this.serializeKey(e)[0];this.cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"===typeof e)try{e=e()}catch(r){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",r=0;r-1&&(t.subs[n]=t.subs[t.subs.length-1],t.subs.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.subs;er.errorRetryCount)){var o=Math.min(i.retryCount,8),a=~~((Math.random()+.5)*(1<0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0));return Promise.all(l).then((function(){return d.get(n)}))}return Promise.resolve(d.get(n))},P=function(e,t,r,n){var i=E[e];if(e&&i)for(var o=0;o0));return[2,Promise.all(m).then((function(){if(s)throw s;return d.get(i)}))]}if(s)throw s;return[2,u]}}))}))};Object.defineProperty(y.Provider,"default",{value:p});y.Provider;var M=function(){for(var e=this,t=[],r=0;r2?t[2]:2===t.length&&"object"===typeof t[1]?t[1]:{}),a=t.length>2||2===t.length&&"function"===typeof t[1]||null===t[1]?t[1]:o.fetcher,c=d.serializeKey(i),u=c[0],s=c[1],l=c[2],f=c[3],v=(0,n.useRef)(o);b((function(){v.current=o}));var B=function(){return o.revalidateOnMount||!o.initialData&&void 0===o.revalidateOnMount},I=function(){var e=d.get(u);return"undefined"===typeof e?o.initialData:e},M=function(){return!!d.get(f)||u&&B()},R=I(),T=d.get(l),V=M(),F=(0,n.useRef)({data:!1,error:!1,isValidating:!1}),j=(0,n.useRef)({data:R,error:T,isValidating:V});(0,n.useDebugValue)(j.current.data);var D,L,N=(0,n.useState)({})[1],A=(0,n.useCallback)((function(e){var t=!1;for(var r in e)j.current[r]!==e[r]&&(j.current[r]=e[r],F.current[r]&&(t=!0));if(t){if(q.current||!K.current)return;N({})}}),[]),q=(0,n.useRef)(!1),H=(0,n.useRef)(u),K=(0,n.useRef)(!1),W=(0,n.useCallback)((function(e){for(var t,r=[],n=1;n=0&&(r[n]=r[r.length-1],r.pop())}},_=(0,n.useCallback)((function(t){return void 0===t&&(t={}),g(e,void 0,void 0,(function(){var e,r,n,i,c,p,h,m,b,y;return k(this,(function(g){switch(g.label){case 0:if(!u||!a)return[2,!1];if(q.current)return[2,!1];if(v.current.isPaused())return[2,!1];e=t.retryCount,r=void 0===e?0:e,n=t.dedupe,i=void 0!==n&&n,c=!0,p="undefined"!==typeof w[u]&&i,g.label=1;case 1:return g.trys.push([1,6,,7]),A({isValidating:!0}),d.set(f,!0),p||P(u,j.current.data,j.current.error,!0),h=void 0,m=void 0,p?(m=x[u],[4,w[u]]):[3,3];case 2:return h=g.sent(),[3,5];case 3:return o.loadingTimeout&&!d.get(u)&&setTimeout((function(){c&&W("onLoadingSlow",u,o)}),o.loadingTimeout),w[u]=null!==s?a.apply(void 0,s):a(u),x[u]=m=z(),[4,w[u]];case 4:h=g.sent(),setTimeout((function(){delete w[u],delete x[u]}),o.dedupingInterval),W("onSuccess",h,u,o),g.label=5;case 5:return x[u]>m?[2,!1]:O[u]&&(m<=O[u]||m<=S[u]||0===S[u])?(A({isValidating:!1}),[2,!1]):(d.set(l,void 0),d.set(f,!1),b={isValidating:!1},"undefined"!==typeof j.current.error&&(b.error=void 0),o.compare(j.current.data,h)||(b.data=h),o.compare(d.get(u),h)||d.set(u,h),A(b),p||P(u,h,b.error,!1),[3,7]);case 6:return y=g.sent(),delete w[u],delete x[u],v.current.isPaused()?(A({isValidating:!1}),[2,!1]):(d.set(l,y),j.current.error!==y&&(A({isValidating:!1,error:y}),p||P(u,void 0,y,!1)),W("onError",y,u,o),o.shouldRetryOnError&&W("onErrorRetry",y,u,o,_,{retryCount:r+1,dedupe:!0}),[3,7]);case 7:return c=!1,[2,!0]}}))}))}),[u]);if(b((function(){if(u){q.current=!1;var e=K.current;K.current=!0;var t=j.current.data,r=I();H.current=u,o.compare(t,r)||A({data:r});var n=function(){return _({dedupe:!0})};(e||B())&&("undefined"===typeof r||h?n():m(n));var i=!1,a=U(C,(function(){!i&&v.current.revalidateOnFocus&&(i=!0,n(),setTimeout((function(){return i=!1}),v.current.focusThrottleInterval))})),c=U(Z,(function(){v.current.revalidateOnReconnect&&n()})),s=U(E,(function(e,t,r,i,a){void 0===e&&(e=!0),void 0===a&&(a=!0);var c={},u=!1;return"undefined"===typeof t||o.compare(j.current.data,t)||(c.data=t,u=!0),j.current.error!==r&&(c.error=r,u=!0),"undefined"!==typeof i&&j.current.isValidating!==i&&(c.isValidating=i,u=!0),u&&A(c),!!e&&(a?n():_())}));return function(){A=function(){return null},q.current=!0,a(),c(),s()}}}),[u,_]),b((function(){var t=null,r=function(){return g(e,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return j.current.error||!v.current.refreshWhenHidden&&!v.current.isDocumentVisible()||!v.current.refreshWhenOffline&&!v.current.isOnline()?[3,2]:[4,_({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return v.current.refreshInterval&&t&&(t=setTimeout(r,v.current.refreshInterval)),[2]}}))}))};return v.current.refreshInterval&&(t=setTimeout(r,v.current.refreshInterval)),function(){t&&(clearTimeout(t),t=null)}}),[o.refreshInterval,o.refreshWhenHidden,o.refreshWhenOffline,_]),o.suspense){if(D=d.get(u),L=d.get(l),"undefined"===typeof D&&(D=R),"undefined"===typeof L&&(L=T),"undefined"===typeof D&&"undefined"===typeof L){if(w[u]||_(),w[u]&&"function"===typeof w[u].then)throw w[u];D=w[u]}if("undefined"===typeof D&&L)throw L}var X=(0,n.useMemo)((function(){var e={revalidate:_,mutate:G};return Object.defineProperties(e,{error:{get:function(){return F.current.error=!0,o.suspense?L:H.current===u?j.current.error:T},enumerable:!0},data:{get:function(){return F.current.data=!0,o.suspense?D:H.current===u?j.current.data:R},enumerable:!0},isValidating:{get:function(){return F.current.isValidating=!0,!!u&&j.current.isValidating},enumerable:!0}}),e}),[_,R,T,G,u,o.suspense,L,D]);return X}}}]);
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/chunks/340.717e8436d6d29df37ce9.js b/striker-ui/out/_next/static/chunks/340.717e8436d6d29df37ce9.js
new file mode 100644
index 00000000..236b93df
--- /dev/null
+++ b/striker-ui/out/_next/static/chunks/340.717e8436d6d29df37ce9.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[340],{340:function(e,r,n){"use strict";n.r(r);var t=n(5893),c=n(7294),u=n(8753),o=function(e){var r=(0,c.useRef)(null),n=e.rfb,o=e.url,i=e.viewOnly,s=e.focusOnClick,l=e.clipViewport,f=e.dragViewport,v=e.scaleViewport,a=e.resizeSession,d=e.showDotCursor,w=e.background,p=e.qualityLevel,m=e.compressionLevel;(0,c.useEffect)((function(){return r.current?(n.current||(r.current.innerHTML="",n.current=new u.Z(r.current,o),n.current.viewOnly=i,n.current.focusOnClick=s,n.current.clipViewport=l,n.current.dragViewport=f,n.current.resizeSession=a,n.current.scaleViewport=v,n.current.showDotCursor=d,n.current.background=w,n.current.qualityLevel=p,n.current.compressionLevel=m),n.current?function(){n.current&&(n.current.disconnect(),n.current=void 0)}:void 0):function(){n.current&&(null===n||void 0===n||n.current.disconnect(),n.current=void 0)}}),[n]);return(0,t.jsx)("div",{style:{width:"100%",height:"75vh"},ref:r,onMouseEnter:function(){document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),null!==n&&void 0!==n&&n.current&&n.current.focus()}})};r.default=(0,c.memo)(o)}}]);
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/chunks/642-0e4040fe0a744c110cab.js b/striker-ui/out/_next/static/chunks/642-0e4040fe0a744c110cab.js
deleted file mode 100644
index 6b5bba9b..00000000
--- a/striker-ui/out/_next/static/chunks/642-0e4040fe0a744c110cab.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[642],{3349:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5991:function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},9756:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},862:function(e,t,n){var r=n(8).default;function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var c=a?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o},e.exports.default=e.exports,e.exports.__esModule=!0},8:function(e){function t(n){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},5258:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(3871),u=n(9895),l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,d=void 0===l?"primary":l,f=e.position,p=void 0===f?"fixed":f,h=(0,i.Z)(e,["classes","className","color","position"]);return o.createElement(u.Z,(0,r.Z)({square:!0,component:"header",elevation:4,className:(0,a.Z)(n.root,n["position".concat((0,c.Z)(p))],n["color".concat((0,c.Z)(d))],s,"fixed"===p&&"mui-fixed"),ref:t},h))}));t.Z=(0,s.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(l)},6049:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}});var r=n(119),i=n(5680),o=n(9424),a=n(962),s=n(3633),c=n(6427),u=n(3939),l=n(5164),d=n(958),f=n(6801),p=n(8681),h=n(9560),m=n(2122),v=n(2949),y=n(7294),g=n(6010),b=(n(5697),n(8679)),x=n.n(b),k=n(3746);function Z(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var w=n(1947),E=function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=(0,v.Z)(r,["name"]),a=i,s="function"===typeof t?function(e){return{root:function(n){return t((0,m.Z)({theme:e},n))}}}:{root:t},c=(0,k.Z)(s,(0,m.Z)({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=y.forwardRef((function(t,r){var i=t.children,o=t.className,a=t.clone,s=t.component,u=(0,v.Z)(t,["children","className","clone","component"]),l=c(t),d=(0,g.Z)(l.root,o),f=u;if(n&&(f=Z(f,n)),a)return y.cloneElement(i,(0,m.Z)({className:(0,g.Z)(i.props.className,d)},f));if("function"===typeof i)return i((0,m.Z)({className:d},f));var p=s||e;return y.createElement(p,(0,m.Z)({ref:r,className:d},f),i)}));return x()(u,e),u}}(e);return function(e,n){return t(e,(0,m.Z)({defaultTheme:w.Z},n))}},S=(0,r.Z)((0,i.Z)(o.ZP,a.ZP,s.ZP,c.ZP,u.ZP,l.ZP,d.Z,f.ZP,p.Z,h.ZP)),C=E("div")(S,{name:"MuiBox"})},282:function(e,t,n){"use strict";var r=n(2949),i=n(2122),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),u=n(4720),l=n(3871),d=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,d=e.color,f=void 0===d?"default":d,p=e.component,h=void 0===p?"button":p,m=e.disabled,v=void 0!==m&&m,y=e.disableElevation,g=void 0!==y&&y,b=e.disableFocusRipple,x=void 0!==b&&b,k=e.endIcon,Z=e.focusVisibleClassName,w=e.fullWidth,E=void 0!==w&&w,S=e.size,C=void 0===S?"medium":S,R=e.startIcon,P=e.type,O=void 0===P?"button":P,T=e.variant,M=void 0===T?"text":T,N=(0,r.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),I=R&&o.createElement("span",{className:(0,a.Z)(s.startIcon,s["iconSize".concat((0,l.Z)(C))])},R),A=k&&o.createElement("span",{className:(0,a.Z)(s.endIcon,s["iconSize".concat((0,l.Z)(C))])},k);return o.createElement(u.Z,(0,i.Z)({className:(0,a.Z)(s.root,s[M],c,"inherit"===f?s.colorInherit:"default"!==f&&s["".concat(M).concat((0,l.Z)(f))],"medium"!==C&&[s["".concat(M,"Size").concat((0,l.Z)(C))],s["size".concat((0,l.Z)(C))]],g&&s.disableElevation,v&&s.disabled,E&&s.fullWidth),component:h,disabled:v,focusRipple:!x,focusVisibleClassName:(0,a.Z)(s.focusVisible,Z),ref:t,type:O},N),o.createElement("span",{className:s.label},I,n,A))}));t.Z=(0,s.Z)((function(e){return{root:(0,i.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,c.U1)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,c.U1)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,c.U1)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(d)},4720:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(3935)),s=n(6010),c=n(3834),u=n(5192),l=n(4670),d=n(4896),f=n(7329),p=n(9756),h=n(3349),m=n(3552),v=n(220);function y(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function b(e,t,n){var r=y(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var c in t){if(i[c])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,c=t.fakeElement,u=void 0!==c&&c;if("mousedown"===e.type&&y.current)y.current=!1;else{"touchstart"===e.type&&(y.current=!0);var l,d,f,p=u?null:x.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,v=m.clientX,Z=m.clientY;l=Math.round(v-h.left),d=Math.round(Z-h.top)}if(s)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var w=2*Math.max(Math.abs((p?p.clientWidth:0)-l),l)+2,E=2*Math.max(Math.abs((p?p.clientHeight:0)-d),d)+2;f=Math.sqrt(Math.pow(w,2)+Math.pow(E,2))}e.touches?null===b.current&&(b.current=function(){k({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})},g.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):k({pulsate:i,rippleX:l,rippleY:d,rippleSize:f,cb:n})}}),[a,k]),S=o.useCallback((function(){w({},{pulsate:!0})}),[w]),C=o.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(g.current=setTimeout((function(){C(e,t)})));b.current=null,h((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:S,start:w,stop:C}}),[S,w,C]),o.createElement("span",(0,r.Z)({className:(0,s.Z)(c.root,u),ref:x},l),o.createElement(Z,{component:null,exit:!0},p))})),C=(0,l.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(S)),R=o.forwardRef((function(e,t){var n=e.action,l=e.buttonRef,f=e.centerRipple,p=void 0!==f&&f,h=e.children,m=e.classes,v=e.className,y=e.component,g=void 0===y?"button":y,b=e.disabled,x=void 0!==b&&b,k=e.disableRipple,Z=void 0!==k&&k,w=e.disableTouchRipple,E=void 0!==w&&w,S=e.focusRipple,R=void 0!==S&&S,P=e.focusVisibleClassName,O=e.onBlur,T=e.onClick,M=e.onFocus,N=e.onFocusVisible,I=e.onKeyDown,A=e.onKeyUp,z=e.onMouseDown,D=e.onMouseLeave,j=e.onMouseUp,B=e.onTouchEnd,L=e.onTouchMove,F=e.onTouchStart,$=e.onDragLeave,V=e.tabIndex,W=void 0===V?0:V,H=e.TouchRippleProps,U=e.type,q=void 0===U?"button":U,K=(0,i.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),_=o.useRef(null);var G=o.useRef(null),X=o.useState(!1),Y=X[0],J=X[1];x&&Y&&J(!1);var Q=(0,d.Z)(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return(0,u.Z)((function(r){return t&&t(r),!n&&G.current&&G.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),_.current.focus()}}}),[]),o.useEffect((function(){Y&&R&&!Z&&G.current.pulsate()}),[Z,R,Y]);var ie=re("start",z),oe=re("stop",$),ae=re("stop",j),se=re("stop",(function(e){Y&&e.preventDefault(),D&&D(e)})),ce=re("start",F),ue=re("stop",B),le=re("stop",L),de=re("stop",(function(e){Y&&(te(e),J(!1)),O&&O(e)}),!1),fe=(0,u.Z)((function(e){_.current||(_.current=e.currentTarget),ee(e)&&(J(!0),N&&N(e)),M&&M(e)})),pe=function(){var e=a.findDOMNode(_.current);return g&&"button"!==g&&!("A"===e.tagName&&e.href)},he=o.useRef(!1),me=(0,u.Z)((function(e){R&&!he.current&&Y&&G.current&&" "===e.key&&(he.current=!0,e.persist(),G.current.stop(e,(function(){G.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!x&&(e.preventDefault(),T&&T(e))})),ve=(0,u.Z)((function(e){R&&" "===e.key&&G.current&&Y&&!e.defaultPrevented&&(he.current=!1,e.persist(),G.current.stop(e,(function(){G.current.pulsate(e)}))),A&&A(e),T&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&T(e)})),ye=g;"button"===ye&&K.href&&(ye="a");var ge={};"button"===ye?(ge.type=q,ge.disabled=x):("a"===ye&&K.href||(ge.role="button"),ge["aria-disabled"]=x);var be=(0,c.Z)(l,t),xe=(0,c.Z)(ne,_),ke=(0,c.Z)(be,xe),Ze=o.useState(!1),we=Ze[0],Ee=Ze[1];o.useEffect((function(){Ee(!0)}),[]);var Se=we&&!Z&&!x;return o.createElement(ye,(0,r.Z)({className:(0,s.Z)(m.root,v,Y&&[m.focusVisible,P],x&&m.disabled),onBlur:de,onClick:T,onFocus:fe,onKeyDown:me,onKeyUp:ve,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ue,onTouchMove:le,onTouchStart:ce,ref:ke,tabIndex:x?-1:W},ge,K),h,Se?o.createElement(C,(0,r.Z)({ref:G,center:p},H)):null)})),P=(0,l.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(R)},3258:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(130),c=n(5209),u=(0,c.Z)(o.createElement("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"),l=(0,c.Z)(o.createElement("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"),d=n(9693),f=(0,c.Z)(o.createElement("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"),p=n(3871),h=n(4670),m=o.createElement(l,null),v=o.createElement(u,null),y=o.createElement(f,null),g=o.forwardRef((function(e,t){var n=e.checkedIcon,c=void 0===n?m:n,u=e.classes,l=e.color,d=void 0===l?"secondary":l,f=e.icon,h=void 0===f?v:f,g=e.indeterminate,b=void 0!==g&&g,x=e.indeterminateIcon,k=void 0===x?y:x,Z=e.inputProps,w=e.size,E=void 0===w?"medium":w,S=(0,i.Z)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),C=b?k:h,R=b?k:c;return o.createElement(s.Z,(0,r.Z)({type:"checkbox",classes:{root:(0,a.Z)(u.root,u["color".concat((0,p.Z)(d))],b&&u.indeterminate),checked:u.checked,disabled:u.disabled},color:d,inputProps:(0,r.Z)({"data-indeterminate":b},Z),icon:o.cloneElement(C,{fontSize:void 0===C.props.fontSize&&"small"===E?E:C.props.fontSize}),checkedIcon:o.cloneElement(R,{fontSize:void 0===R.props.fontSize&&"small"===E?E:R.props.fontSize}),ref:t},S))})),b=(0,h.Z)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,d.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,d.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(g)},5477:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(3871),u=44,l=o.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,d=void 0===l?"primary":l,f=e.disableShrink,p=void 0!==f&&f,h=e.size,m=void 0===h?40:h,v=e.style,y=e.thickness,g=void 0===y?3.6:y,b=e.value,x=void 0===b?0:b,k=e.variant,Z=void 0===k?"indeterminate":k,w=(0,i.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),E={},S={},C={};if("determinate"===Z||"static"===Z){var R=2*Math.PI*((u-g)/2);E.strokeDasharray=R.toFixed(3),C["aria-valuenow"]=Math.round(x),E.strokeDashoffset="".concat(((100-x)/100*R).toFixed(3),"px"),S.transform="rotate(-90deg)"}return o.createElement("div",(0,r.Z)({className:(0,a.Z)(n.root,s,"inherit"!==d&&n["color".concat((0,c.Z)(d))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[Z]),style:(0,r.Z)({width:m,height:m},S,v),ref:t,role:"progressbar"},C,w),o.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(u," ").concat(u)},o.createElement("circle",{className:(0,a.Z)(n.circle,p&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[Z]),style:E,cx:u,cy:u,r:(u-g)/2,fill:"none",strokeWidth:g})))}));t.Z=(0,s.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(l)},5517:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),u=o.forwardRef((function(e,t){var n=e.absolute,s=void 0!==n&&n,c=e.classes,u=e.className,l=e.component,d=void 0===l?"hr":l,f=e.flexItem,p=void 0!==f&&f,h=e.light,m=void 0!==h&&h,v=e.orientation,y=void 0===v?"horizontal":v,g=e.role,b=void 0===g?"hr"!==d?"separator":void 0:g,x=e.variant,k=void 0===x?"fullWidth":x,Z=(0,i.Z)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return o.createElement(d,(0,r.Z)({className:(0,a.Z)(c.root,u,"fullWidth"!==k&&c[k],s&&c.absolute,p&&c.flexItem,m&&c.light,"vertical"===y&&c.vertical),role:b,ref:t},Z))}));t.Z=(0,s.Z)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,c.U1)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(u)},7159:function(e,t,n){"use strict";n.d(t,{ZP:function(){return T}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(9597),c=n(4670),u=n(4699),l=n(2666),d=n(3366),f=n(8920),p=n(5653),h=n(3834),m={entering:{opacity:1},entered:{opacity:1}},v={enter:d.x9.enteringScreen,exit:d.x9.leavingScreen},y=o.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,c=e.in,d=e.onEnter,y=e.onEntered,g=e.onEntering,b=e.onExit,x=e.onExited,k=e.onExiting,Z=e.style,w=e.TransitionComponent,E=void 0===w?l.ZP:w,S=e.timeout,C=void 0===S?v:S,R=(0,i.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),P=(0,f.Z)(),O=P.unstable_strictMode&&!s,T=o.useRef(null),M=(0,h.Z)(n.ref,t),N=(0,h.Z)(O?T:void 0,M),I=function(e){return function(t,n){if(e){var r=O?[T.current,t]:[t,n],i=(0,u.Z)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},A=I(g),z=I((function(e,t){(0,p.n)(e);var n=(0,p.C)({style:Z,timeout:C},{mode:"enter"});e.style.webkitTransition=P.transitions.create("opacity",n),e.style.transition=P.transitions.create("opacity",n),d&&d(e,t)})),D=I(y),j=I(k),B=I((function(e){var t=(0,p.C)({style:Z,timeout:C},{mode:"exit"});e.style.webkitTransition=P.transitions.create("opacity",t),e.style.transition=P.transitions.create("opacity",t),b&&b(e)})),L=I(x);return o.createElement(E,(0,r.Z)({appear:!0,in:c,nodeRef:O?T:void 0,onEnter:z,onEntered:D,onEntering:A,onExit:B,onExited:L,onExiting:j,timeout:C},R),(function(e,t){return o.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},m[e],Z,n.props.style),ref:N},t))}))})),g=o.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.invisible,l=void 0!==u&&u,d=e.open,f=e.transitionDuration,p=e.TransitionComponent,h=void 0===p?y:p,m=(0,i.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(h,(0,r.Z)({in:d,timeout:f},m),o.createElement("div",{className:(0,a.Z)(s.root,c,l&&s.invisible),"aria-hidden":!0,ref:t},n))})),b=(0,c.Z)({root:{zIndex:-1,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"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(g),x=n(3935),k=n(9437);function Z(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var i=window.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var w={enter:d.x9.enteringScreen,exit:d.x9.leavingScreen},E=o.forwardRef((function(e,t){var n=e.children,a=e.direction,s=void 0===a?"down":a,c=e.in,u=e.onEnter,d=e.onEntered,m=e.onEntering,v=e.onExit,y=e.onExited,g=e.onExiting,b=e.style,E=e.timeout,S=void 0===E?w:E,C=e.TransitionComponent,R=void 0===C?l.ZP:C,P=(0,i.Z)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),O=(0,f.Z)(),T=o.useRef(null),M=o.useCallback((function(e){T.current=x.findDOMNode(e)}),[]),N=(0,h.Z)(n.ref,M),I=(0,h.Z)(N,t),A=function(e){return function(t){e&&(void 0===t?e(T.current):e(T.current,t))}},z=A((function(e,t){Z(s,e),(0,p.n)(e),u&&u(e,t)})),D=A((function(e,t){var n=(0,p.C)({timeout:S,style:b},{mode:"enter"});e.style.webkitTransition=O.transitions.create("-webkit-transform",(0,r.Z)({},n,{easing:O.transitions.easing.easeOut})),e.style.transition=O.transitions.create("transform",(0,r.Z)({},n,{easing:O.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),j=A(d),B=A(g),L=A((function(e){var t=(0,p.C)({timeout:S,style:b},{mode:"exit"});e.style.webkitTransition=O.transitions.create("-webkit-transform",(0,r.Z)({},t,{easing:O.transitions.easing.sharp})),e.style.transition=O.transitions.create("transform",(0,r.Z)({},t,{easing:O.transitions.easing.sharp})),Z(s,e),v&&v(e)})),F=A((function(e){e.style.webkitTransition="",e.style.transition="",y&&y(e)})),$=o.useCallback((function(){T.current&&Z(s,T.current)}),[s]);return o.useEffect((function(){if(!c&&"down"!==s&&"right"!==s){var e=(0,k.Z)((function(){T.current&&Z(s,T.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[s,c]),o.useEffect((function(){c||$()}),[c,$]),o.createElement(R,(0,r.Z)({nodeRef:T,onEnter:z,onEntered:j,onEntering:D,onExit:L,onExited:F,onExiting:B,appear:!0,in:c,timeout:S},P),(function(e,t){return o.cloneElement(n,(0,r.Z)({ref:I,style:(0,r.Z)({visibility:"exited"!==e||c?void 0:"hidden"},b,n.props.style)},t))}))})),S=n(9895),C=n(3871),R={left:"right",right:"left",top:"down",bottom:"up"};var P={enter:d.x9.enteringScreen,exit:d.x9.leavingScreen},O=o.forwardRef((function(e,t){var n=e.anchor,c=void 0===n?"left":n,u=e.BackdropProps,l=e.children,d=e.classes,p=e.className,h=e.elevation,m=void 0===h?16:h,v=e.ModalProps,y=(v=void 0===v?{}:v).BackdropProps,g=(0,i.Z)(v,["BackdropProps"]),x=e.onClose,k=e.open,Z=void 0!==k&&k,w=e.PaperProps,O=void 0===w?{}:w,T=e.SlideProps,M=e.TransitionComponent,N=void 0===M?E:M,I=e.transitionDuration,A=void 0===I?P:I,z=e.variant,D=void 0===z?"temporary":z,j=(0,i.Z)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),B=(0,f.Z)(),L=o.useRef(!1);o.useEffect((function(){L.current=!0}),[]);var F=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?R[t]:t}(B,c),$=o.createElement(S.Z,(0,r.Z)({elevation:"temporary"===D?m:0,square:!0},O,{className:(0,a.Z)(d.paper,d["paperAnchor".concat((0,C.Z)(F))],O.className,"temporary"!==D&&d["paperAnchorDocked".concat((0,C.Z)(F))])}),l);if("permanent"===D)return o.createElement("div",(0,r.Z)({className:(0,a.Z)(d.root,d.docked,p),ref:t},j),$);var V=o.createElement(N,(0,r.Z)({in:Z,direction:R[F],timeout:A,appear:L.current},T),$);return"persistent"===D?o.createElement("div",(0,r.Z)({className:(0,a.Z)(d.root,d.docked,p),ref:t},j),V):o.createElement(s.Z,(0,r.Z)({BackdropProps:(0,r.Z)({},u,y,{transitionDuration:A}),BackdropComponent:b,className:(0,a.Z)(d.root,d.modal,p),open:Z,onClose:x,ref:t},j,g),V)})),T=(0,c.Z)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(O)},7812:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),u=n(4720),l=n(3871),d=o.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,c=e.children,d=e.classes,f=e.className,p=e.color,h=void 0===p?"default":p,m=e.disabled,v=void 0!==m&&m,y=e.disableFocusRipple,g=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,k=(0,i.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return o.createElement(u.Z,(0,r.Z)({className:(0,a.Z)(d.root,f,"default"!==h&&d["color".concat((0,l.Z)(h))],v&&d.disabled,"small"===x&&d["size".concat((0,l.Z)(x))],{start:d.edgeStart,end:d.edgeEnd}[s]),centerRipple:!0,focusRipple:!g,disabled:v,ref:t},k),o.createElement("span",{className:d.label},c))}));t.Z=(0,s.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,c.U1)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(d)},3681:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(3871),c=n(4670),u=n(9693),l=n(8920),d=o.forwardRef((function(e,t){var n=e.classes,c=e.className,u=e.color,d=void 0===u?"primary":u,f=e.value,p=e.valueBuffer,h=e.variant,m=void 0===h?"indeterminate":h,v=(0,i.Z)(e,["classes","className","color","value","valueBuffer","variant"]),y=(0,l.Z)(),g={},b={bar1:{},bar2:{}};if("determinate"===m||"buffer"===m)if(void 0!==f){g["aria-valuenow"]=Math.round(f),g["aria-valuemin"]=0,g["aria-valuemax"]=100;var x=f-100;"rtl"===y.direction&&(x=-x),b.bar1.transform="translateX(".concat(x,"%)")}else 0;if("buffer"===m)if(void 0!==p){var k=(p||0)-100;"rtl"===y.direction&&(k=-k),b.bar2.transform="translateX(".concat(k,"%)")}else 0;return o.createElement("div",(0,r.Z)({className:(0,a.Z)(n.root,n["color".concat((0,s.Z)(d))],c,{determinate:n.determinate,indeterminate:n.indeterminate,buffer:n.buffer,query:n.query}[m]),role:"progressbar"},g,{ref:t},v),"buffer"===m?o.createElement("div",{className:(0,a.Z)(n.dashed,n["dashedColor".concat((0,s.Z)(d))])}):null,o.createElement("div",{className:(0,a.Z)(n.bar,n["barColor".concat((0,s.Z)(d))],("indeterminate"===m||"query"===m)&&n.bar1Indeterminate,{determinate:n.bar1Determinate,buffer:n.bar1Buffer}[m]),style:b.bar1}),"determinate"===m?null:o.createElement("div",{className:(0,a.Z)(n.bar,("indeterminate"===m||"query"===m)&&n.bar2Indeterminate,"buffer"===m?[n["color".concat((0,s.Z)(d))],n.bar2Buffer]:n["barColor".concat((0,s.Z)(d))]),style:b.bar2}))}));t.Z=(0,c.Z)((function(e){var t=function(t){return"light"===e.palette.type?(0,u.$n)(t,.62):(0,u._j)(t,.5)},n=t(e.palette.primary.main),r=t(e.palette.secondary.main);return{root:{position:"relative",overflow:"hidden",height:4,"@media print":{colorAdjust:"exact"}},colorPrimary:{backgroundColor:n},colorSecondary:{backgroundColor:r},determinate:{},indeterminate:{},buffer:{backgroundColor:"transparent"},query:{transform:"rotate(180deg)"},dashed:{position:"absolute",marginTop:0,height:"100%",width:"100%",animation:"$buffer 3s infinite linear"},dashedColorPrimary:{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},dashedColorSecondary:{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"},bar:{width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},barColorPrimary:{backgroundColor:e.palette.primary.main},barColorSecondary:{backgroundColor:e.palette.secondary.main},bar1Indeterminate:{width:"auto",animation:"$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite"},bar1Determinate:{transition:"transform .".concat(4,"s linear")},bar1Buffer:{zIndex:1,transition:"transform .".concat(4,"s linear")},bar2Indeterminate:{width:"auto",animation:"$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite"},bar2Buffer:{transition:"transform .".concat(4,"s linear")},"@keyframes indeterminate1":{"0%":{left:"-35%",right:"100%"},"60%":{left:"100%",right:"-90%"},"100%":{left:"100%",right:"-90%"}},"@keyframes indeterminate2":{"0%":{left:"-200%",right:"100%"},"60%":{left:"107%",right:"-8%"},"100%":{left:"107%",right:"-8%"}},"@keyframes buffer":{"0%":{opacity:1,backgroundPosition:"0 -23px"},"50%":{opacity:0,backgroundPosition:"0 -23px"},"100%":{opacity:1,backgroundPosition:"-200px -23px"}}}}),{name:"MuiLinearProgress"})(d)},2822:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(6987),u=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,l=e.component,d=void 0===l?"ul":l,f=e.dense,p=void 0!==f&&f,h=e.disablePadding,m=void 0!==h&&h,v=e.subheader,y=(0,i.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=o.useMemo((function(){return{dense:p}}),[p]);return o.createElement(c.Z.Provider,{value:g},o.createElement(d,(0,r.Z)({className:(0,a.Z)(s.root,u,p&&s.dense,!m&&s.padding,v&&s.subheader),ref:t},y),v,n))}));t.Z=(0,s.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(u)},6987:function(e,t,n){"use strict";var r=n(7294).createContext({});t.Z=r},998:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(4720),u=n(3711),l=n(3834),d=n(6987),f=n(3935),p="undefined"===typeof window?o.useEffect:o.useLayoutEffect,h=o.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,h=e.autoFocus,m=void 0!==h&&h,v=e.button,y=void 0!==v&&v,g=e.children,b=e.classes,x=e.className,k=e.component,Z=e.ContainerComponent,w=void 0===Z?"li":Z,E=e.ContainerProps,S=(E=void 0===E?{}:E).className,C=(0,i.Z)(E,["className"]),R=e.dense,P=void 0!==R&&R,O=e.disabled,T=void 0!==O&&O,M=e.disableGutters,N=void 0!==M&&M,I=e.divider,A=void 0!==I&&I,z=e.focusVisibleClassName,D=e.selected,j=void 0!==D&&D,B=(0,i.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),L=o.useContext(d.Z),F={dense:P||L.dense||!1,alignItems:s},$=o.useRef(null);p((function(){m&&$.current&&$.current.focus()}),[m]);var V=o.Children.toArray(g),W=V.length&&(0,u.Z)(V[V.length-1],["ListItemSecondaryAction"]),H=o.useCallback((function(e){$.current=f.findDOMNode(e)}),[]),U=(0,l.Z)(H,t),q=(0,r.Z)({className:(0,a.Z)(b.root,x,F.dense&&b.dense,!N&&b.gutters,A&&b.divider,T&&b.disabled,y&&b.button,"center"!==s&&b.alignItemsFlexStart,W&&b.secondaryAction,j&&b.selected),disabled:T},B),K=k||"li";return y&&(q.component=k||"div",q.focusVisibleClassName=(0,a.Z)(b.focusVisible,z),K=c.Z),W?(K=q.component||k?K:"div","li"===w&&("li"===K?K="div":"li"===q.component&&(q.component="div")),o.createElement(d.Z.Provider,{value:F},o.createElement(w,(0,r.Z)({className:(0,a.Z)(b.container,S),ref:U},C),o.createElement(K,q,V),V.pop()))):o.createElement(d.Z.Provider,{value:F},o.createElement(K,(0,r.Z)({ref:U},q),V))}));t.Z=(0,s.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(h)},5675:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(2122),i=n(2949),o=n(7294),a=(n(9864),n(5697),n(6010)),s=n(4670),c=n(3935),u=n(9437),l=n(626),d=n(713),f=n(2568),p=n(9597),h=n(4699),m=n(2666),v=n(8920),y=n(5653),g=n(3834);function b(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var x={entering:{opacity:1,transform:b(1)},entered:{opacity:1,transform:"none"}},k=o.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,c=e.in,u=e.onEnter,l=e.onEntered,d=e.onEntering,f=e.onExit,p=e.onExited,k=e.onExiting,Z=e.style,w=e.timeout,E=void 0===w?"auto":w,S=e.TransitionComponent,C=void 0===S?m.ZP:S,R=(0,i.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),P=o.useRef(),O=o.useRef(),T=(0,v.Z)(),M=T.unstable_strictMode&&!s,N=o.useRef(null),I=(0,g.Z)(n.ref,t),A=(0,g.Z)(M?N:void 0,I),z=function(e){return function(t,n){if(e){var r=M?[N.current,t]:[t,n],i=(0,h.Z)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},D=z(d),j=z((function(e,t){(0,y.n)(e);var n,r=(0,y.C)({style:Z,timeout:E},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===E?(n=T.transitions.getAutoHeightDuration(e.clientHeight),O.current=n):n=i,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:o}),T.transitions.create("transform",{duration:.666*n,delay:o})].join(","),u&&u(e,t)})),B=z(l),L=z(k),F=z((function(e){var t,n=(0,y.C)({style:Z,timeout:E},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===E?(t=T.transitions.getAutoHeightDuration(e.clientHeight),O.current=t):t=r,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:i}),T.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=b(.75),f&&f(e)})),$=z(p);return o.useEffect((function(){return function(){clearTimeout(P.current)}}),[]),o.createElement(C,(0,r.Z)({appear:!0,in:c,nodeRef:M?N:void 0,onEnter:j,onEntered:B,onEntering:D,onExit:F,onExited:$,onExiting:L,addEndListener:function(e,t){var n=M?e:t;"auto"===E&&(P.current=setTimeout(n,O.current||0))},timeout:"auto"===E?null:E},R),(function(e,t){return o.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:b(.75),visibility:"exited"!==e||c?void 0:"hidden"},x[e],Z,n.props.style),ref:A},t))}))}));k.muiSupportAuto=!0;var Z=k,w=n(9895);function E(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function S(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function C(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function R(e){return"function"===typeof e?e():e}var P=o.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,h=e.anchorOrigin,m=void 0===h?{vertical:"top",horizontal:"left"}:h,v=e.anchorPosition,y=e.anchorReference,g=void 0===y?"anchorEl":y,b=e.children,x=e.classes,k=e.className,P=e.container,O=e.elevation,T=void 0===O?8:O,M=e.getContentAnchorEl,N=e.marginThreshold,I=void 0===N?16:N,A=e.onEnter,z=e.onEntered,D=e.onEntering,j=e.onExit,B=e.onExited,L=e.onExiting,F=e.open,$=e.PaperProps,V=void 0===$?{}:$,W=e.transformOrigin,H=void 0===W?{vertical:"top",horizontal:"left"}:W,U=e.TransitionComponent,q=void 0===U?Z:U,K=e.transitionDuration,_=void 0===K?"auto":K,G=e.TransitionProps,X=void 0===G?{}:G,Y=(0,i.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=o.useRef(),Q=o.useCallback((function(e){if("anchorPosition"===g)return v;var t=R(s),n=(t&&1===t.nodeType?t:(0,l.Z)(J.current).body).getBoundingClientRect(),r=0===e?m.vertical:"center";return{top:n.top+E(n,r),left:n.left+S(n,m.horizontal)}}),[s,m.horizontal,m.vertical,v,g]),ee=o.useCallback((function(e){var t=0;if(M&&"anchorEl"===g){var n=M(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[m.vertical,g,M]),te=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:E(e,H.vertical)+t,horizontal:S(e,H.horizontal)}}),[H.horizontal,H.vertical]),ne=o.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===g)return{top:null,left:null,transformOrigin:C(r)};var i=Q(t),o=i.top-r.vertical,a=i.left-r.horizontal,c=o+n.height,u=a+n.width,l=(0,d.Z)(R(s)),f=l.innerHeight-I,p=l.innerWidth-I;if(of){var m=c-f;o-=m,r.vertical+=m}if(ap){var y=u-p;a-=y,r.horizontal+=y}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:C(r)}}),[s,g,Q,ee,te,I]),re=o.useCallback((function(){var e=J.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=o.useCallback((function(e){J.current=c.findDOMNode(e)}),[]);o.useEffect((function(){F&&re()})),o.useImperativeHandle(n,(function(){return F?{updatePosition:function(){re()}}:null}),[F,re]),o.useEffect((function(){if(F){var e=(0,u.Z)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[F,re]);var oe=_;"auto"!==_||q.muiSupportAuto||(oe=void 0);var ae=P||(s?(0,l.Z)(R(s)).body:void 0);return o.createElement(p.Z,(0,r.Z)({container:ae,open:F,ref:t,BackdropProps:{invisible:!0},className:(0,a.Z)(x.root,k)},Y),o.createElement(q,(0,r.Z)({appear:!0,in:F,onEnter:A,onEntered:z,onExit:j,onExited:B,onExiting:L,timeout:oe},X,{onEntering:(0,f.Z)((function(e,t){D&&D(e,t),re()}),X.onEntering)}),o.createElement(w.Z,(0,r.Z)({elevation:T,ref:ie},V,{className:(0,a.Z)(x.paper,V.className)}),b)))})),O=(0,s.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(P),T=n(2822),M=n(5840);function N(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function I(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function A(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function z(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var c=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&A(s,o)&&!c)return void s.focus();s=i(e,s,n)}}var D="undefined"===typeof window?o.useEffect:o.useLayoutEffect,j=o.forwardRef((function(e,t){var n=e.actions,a=e.autoFocus,s=void 0!==a&&a,u=e.autoFocusItem,d=void 0!==u&&u,f=e.children,p=e.className,h=e.disabledItemsFocusable,m=void 0!==h&&h,v=e.disableListWrap,y=void 0!==v&&v,b=e.onKeyDown,x=e.variant,k=void 0===x?"selectedMenu":x,Z=(0,i.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=o.useRef(null),E=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});D((function(){s&&w.current.focus()}),[s]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&A(r,i);i.previousKeyMatched&&(s||z(t,r,!1,m,N,i))?e.preventDefault():i.previousKeyMatched=!1}b&&b(e)},tabIndex:s?0:-1},Z),P)})),B=n(4236),L={vertical:"top",horizontal:"right"},F={vertical:"top",horizontal:"left"},$=o.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,u=e.children,l=e.classes,d=e.disableAutoFocusItem,f=void 0!==d&&d,p=e.MenuListProps,h=void 0===p?{}:p,m=e.onClose,y=e.onEntering,g=e.open,b=e.PaperProps,x=void 0===b?{}:b,k=e.PopoverClasses,Z=e.transitionDuration,w=void 0===Z?"auto":Z,E=e.variant,S=void 0===E?"selectedMenu":E,C=(0,i.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),R=(0,v.Z)(),P=s&&!f&&g,T=o.useRef(null),M=o.useRef(null),N=-1;o.Children.map(u,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==S&&e.props.selected||-1===N)&&(N=t))}));var I=o.Children.map(u,(function(e,t){return t===N?o.cloneElement(e,{ref:function(t){M.current=c.findDOMNode(t),(0,B.Z)(e.ref,t)}}):e}));return o.createElement(O,(0,r.Z)({getContentAnchorEl:function(){return M.current},classes:k,onClose:m,onEntering:function(e,t){T.current&&T.current.adjustStyleForScrollbar(e,R),y&&y(e,t)},anchorOrigin:"rtl"===R.direction?L:F,transformOrigin:"rtl"===R.direction?L:F,PaperProps:(0,r.Z)({},x,{classes:(0,r.Z)({},x.classes,{root:l.paper})}),open:g,ref:t,transitionDuration:w},C),o.createElement(j,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:T,autoFocus:s&&(-1===N||f),autoFocusItem:P,variant:S},h,{className:(0,a.Z)(l.list,h.className)}),I))})),V=(0,s.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})($)},5639:function(e,t,n){"use strict";var r=n(2949),i=n(6156),o=n(2122),a=n(7294),s=(n(5697),n(6010)),c=n(4670),u=n(998),l=a.forwardRef((function(e,t){var n,i=e.classes,c=e.className,l=e.component,d=void 0===l?"li":l,f=e.disableGutters,p=void 0!==f&&f,h=e.ListItemClasses,m=e.role,v=void 0===m?"menuitem":m,y=e.selected,g=e.tabIndex,b=(0,r.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==g?g:-1),a.createElement(u.Z,(0,o.Z)({button:!0,role:v,tabIndex:n,component:d,selected:y,disableGutters:p,classes:(0,o.Z)({dense:i.dense},h),className:(0,s.Z)(i.root,c,y&&i.selected,!p&&i.gutters),ref:t},b))}));t.Z=(0,c.Z)((function(e){return{root:(0,o.Z)({},e.typography.body1,(0,i.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,o.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(l)},9597:function(e,t,n){"use strict";n.d(t,{Z:function(){return M}});var r=n(2949),i=n(2122),o=n(7294),a=n(3935),s=(n(5697),n(159)),c=n(3869),u=n(626),l=n(4236),d=n(3834);var f="undefined"!==typeof window?o.useLayoutEffect:o.useEffect;var p=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,s=void 0!==i&&i,c=e.onRendered,u=o.useState(null),p=u[0],h=u[1],m=(0,d.Z)(o.isValidElement(n)?n.ref:null,t);return f((function(){s||h(function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(r)||document.body)}),[r,s]),f((function(){if(p&&!s)return(0,l.Z)(t,p),function(){(0,l.Z)(t,null)}}),[t,p,s]),f((function(){c&&(p||s)&&c()}),[c,p,s]),s?o.isValidElement(n)?o.cloneElement(n,{ref:m}):n:p?a.createPortal(n,p):p})),h=n(2568),m=n(5192),v=n(2781);var y=n(5991),g=n(7329),b=n(5840),x=n(713);function k(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Z(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function w(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat((0,g.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&k(e,i)}))}function E(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function S(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,u.Z)(e);return t.body===e?(0,x.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=(0,b.Z)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(Z(o)+a,"px"),n=(0,u.Z)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(Z(e)+a,"px")}))}var s=o.parentElement,c="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return(0,y.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&k(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);w(t,e.mountNode,e.modalRef,r,!0);var i=E(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=S(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=E(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&k(e.modalRef,!0),w(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&k(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var R=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,s=void 0!==i&&i,c=e.disableRestoreFocus,l=void 0!==c&&c,f=e.getDoc,p=e.isEnabled,h=e.open,m=o.useRef(),v=o.useRef(null),y=o.useRef(null),g=o.useRef(),b=o.useRef(null),x=o.useCallback((function(e){b.current=a.findDOMNode(e)}),[]),k=(0,d.Z)(t.ref,x),Z=o.useRef();return o.useEffect((function(){Z.current=h}),[h]),!Z.current&&h&&"undefined"!==typeof window&&(g.current=f().activeElement),o.useEffect((function(){if(h){var e=(0,u.Z)(b.current);r||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!s&&p()&&!m.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():m.current=!1)},n=function(t){!s&&p()&&9===t.keyCode&&e.activeElement===b.current&&(m.current=!0,t.shiftKey?y.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,s,l,p,h]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:k}),o.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelEnd"}))},P={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},O=o.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,c=(0,r.Z)(e,["invisible","open"]);return s?o.createElement("div",(0,i.Z)({"aria-hidden":!0,ref:t},c,{style:(0,i.Z)({},P.root,a?P.invisible:{},c.style)})):null}));var T=new C,M=o.forwardRef((function(e,t){var n=(0,s.Z)(),l=(0,c.Z)({name:"MuiModal",props:(0,i.Z)({},e),theme:n}),f=l.BackdropComponent,y=void 0===f?O:f,g=l.BackdropProps,b=l.children,x=l.closeAfterTransition,Z=void 0!==x&&x,w=l.container,E=l.disableAutoFocus,S=void 0!==E&&E,C=l.disableBackdropClick,P=void 0!==C&&C,M=l.disableEnforceFocus,N=void 0!==M&&M,I=l.disableEscapeKeyDown,A=void 0!==I&&I,z=l.disablePortal,D=void 0!==z&&z,j=l.disableRestoreFocus,B=void 0!==j&&j,L=l.disableScrollLock,F=void 0!==L&&L,$=l.hideBackdrop,V=void 0!==$&&$,W=l.keepMounted,H=void 0!==W&&W,U=l.manager,q=void 0===U?T:U,K=l.onBackdropClick,_=l.onClose,G=l.onEscapeKeyDown,X=l.onRendered,Y=l.open,J=(0,r.Z)(l,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=o.useState(!0),ee=Q[0],te=Q[1],ne=o.useRef({}),re=o.useRef(null),ie=o.useRef(null),oe=(0,d.Z)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(l),se=function(){return(0,u.Z)(re.current)},ce=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},ue=function(){q.mount(ce(),{disableScrollLock:F}),ie.current.scrollTop=0},le=(0,m.Z)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(w)||se().body;q.add(ce(),e),ie.current&&ue()})),de=o.useCallback((function(){return q.isTopModal(ce())}),[q]),fe=(0,m.Z)((function(e){re.current=e,e&&(X&&X(),Y&&de()?ue():k(ie.current,!0))})),pe=o.useCallback((function(){q.remove(ce())}),[q]);if(o.useEffect((function(){return function(){pe()}}),[pe]),o.useEffect((function(){Y?le():ae&&Z||pe()}),[Y,pe,ae,Z,le]),!H&&!Y&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:v.Z}),me={};return void 0===b.props.tabIndex&&(me.tabIndex=b.props.tabIndex||"-1"),ae&&(me.onEnter=(0,h.Z)((function(){te(!1)}),b.props.onEnter),me.onExited=(0,h.Z)((function(){te(!0),Z&&pe()}),b.props.onExited)),o.createElement(p,{ref:fe,container:w,disablePortal:D},o.createElement("div",(0,i.Z)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&de()&&(G&&G(e),A||(e.stopPropagation(),_&&_(e,"escapeKeyDown")))},role:"presentation"},J,{style:(0,i.Z)({},he.root,!Y&&ee?he.hidden:{},J.style)}),V?null:o.createElement(y,(0,i.Z)({open:Y,onClick:function(e){e.target===e.currentTarget&&(K&&K(e),!P&&_&&_(e,"backdropClick"))}},g)),o.createElement(R,{disableEnforceFocus:N,disableAutoFocus:S,disableRestoreFocus:B,getDoc:se,isEnabled:de,open:Y},o.cloneElement(b,me))))}))},9895:function(e,t,n){"use strict";var r=n(2949),i=n(2122),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,u=void 0===c?"div":c,l=e.square,d=void 0!==l&&l,f=e.elevation,p=void 0===f?1:f,h=e.variant,m=void 0===h?"elevation":h,v=(0,r.Z)(e,["classes","className","component","square","elevation","variant"]);return o.createElement(u,(0,i.Z)({className:(0,a.Z)(n.root,s,"outlined"===m?n.outlined:n["elevation".concat(p)],!d&&n.rounded),ref:t},v))}));t.Z=(0,s.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,i.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(c)},9570:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(9693),u=n(3871),l=n(130),d=o.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.color,d=void 0===c?"secondary":c,f=e.edge,p=void 0!==f&&f,h=e.size,m=void 0===h?"medium":h,v=(0,i.Z)(e,["classes","className","color","edge","size"]),y=o.createElement("span",{className:n.thumb});return o.createElement("span",{className:(0,a.Z)(n.root,s,{start:n.edgeStart,end:n.edgeEnd}[p],"small"===m&&n["size".concat((0,u.Z)(m))])},o.createElement(l.Z,(0,r.Z)({type:"checkbox",icon:y,checkedIcon:y,classes:{root:(0,a.Z)(n.switchBase,n["color".concat((0,u.Z)(d))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},v)),o.createElement("span",{className:n.track}))}));t.Z=(0,s.Z)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,c.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(d)},2318:function(e,t,n){"use strict";var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(6010)),s=n(4670),c=n(3871),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},l=o.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,l=e.classes,d=e.className,f=e.color,p=void 0===f?"initial":f,h=e.component,m=e.display,v=void 0===m?"initial":m,y=e.gutterBottom,g=void 0!==y&&y,b=e.noWrap,x=void 0!==b&&b,k=e.paragraph,Z=void 0!==k&&k,w=e.variant,E=void 0===w?"body1":w,S=e.variantMapping,C=void 0===S?u:S,R=(0,i.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),P=h||(Z?"p":C[E]||u[E])||"span";return o.createElement(P,(0,r.Z)({className:(0,a.Z)(l.root,d,"inherit"!==E&&l[E],"initial"!==p&&l["color".concat((0,c.Z)(p))],x&&l.noWrap,g&&l.gutterBottom,Z&&l.paragraph,"inherit"!==s&&l["align".concat((0,c.Z)(s))],"initial"!==v&&l["display".concat((0,c.Z)(v))]),ref:t},R))}));t.Z=(0,s.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(l)},130:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(2122),i=n(4699),o=n(2949),a=n(7294),s=(n(5697),n(6010)),c=n(2775),u=a.createContext();var l=u;var d=n(4670),f=n(7812),p=a.forwardRef((function(e,t){var n=e.autoFocus,u=e.checked,d=e.checkedIcon,p=e.classes,h=e.className,m=e.defaultChecked,v=e.disabled,y=e.icon,g=e.id,b=e.inputProps,x=e.inputRef,k=e.name,Z=e.onBlur,w=e.onChange,E=e.onFocus,S=e.readOnly,C=e.required,R=e.tabIndex,P=e.type,O=e.value,T=(0,o.Z)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),M=(0,c.Z)({controlled:u,default:Boolean(m),name:"SwitchBase",state:"checked"}),N=(0,i.Z)(M,2),I=N[0],A=N[1],z=a.useContext(l),D=v;z&&"undefined"===typeof D&&(D=z.disabled);var j="checkbox"===P||"radio"===P;return a.createElement(f.Z,(0,r.Z)({component:"span",className:(0,s.Z)(p.root,h,I&&p.checked,D&&p.disabled),disabled:D,tabIndex:null,role:void 0,onFocus:function(e){E&&E(e),z&&z.onFocus&&z.onFocus(e)},onBlur:function(e){Z&&Z(e),z&&z.onBlur&&z.onBlur(e)},ref:t},T),a.createElement("input",(0,r.Z)({autoFocus:n,checked:u,defaultChecked:m,className:p.input,disabled:D,id:j&&g,name:k,onChange:function(e){var t=e.target.checked;A(t),w&&w(e,t)},readOnly:S,ref:x,required:C,tabIndex:R,type:P,value:O},b)),I?d:y)})),h=(0,d.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(p)},9693:function(e,t,n){"use strict";n.d(t,{mi:function(){return s},U1:function(){return u},_j:function(){return l},$n:function(){return d}});var r=n(288);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",l=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(u+="a",l.push(t[3])),a({type:u,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function l(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},7623:function(e,t,n){"use strict";function r(e){return e}n.d(t,{Z:function(){return r}})},1947:function(e,t,n){"use strict";n.d(t,{Z:function(){return z}});var r=n(2949),i=n(5953),o=n(2122),a=["xs","sm","md","lg","xl"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,i=e.unit,s=void 0===i?"px":i,c=e.step,u=void 0===c?5:c,l=(0,r.Z)(e,["values","unit","step"]);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[a[r+1]]?n[a[r+1]]:t)-u/100).concat(s,")")}return(0,o.Z)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-u/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},l)}var c=n(6156);function u(e,t,n){var r;return(0,o.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,c.Z)({},e.up("sm"),(0,o.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,c.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,c.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var l=n(288),d={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},h={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},m={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"},v={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"},y={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"},g={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"},b=n(9693),x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:d.white,default:f[50]},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}},k={text:{primary:d.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:d.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 Z(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,i):"dark"===t&&(e.dark=(0,b._j)(e.main,o)))}function w(e){var t=e.primary,n=void 0===t?{light:p[300],main:p[500],dark:p[700]}:t,a=e.secondary,s=void 0===a?{light:h.A200,main:h.A400,dark:h.A700}:a,c=e.error,u=void 0===c?{light:m[300],main:m[500],dark:m[700]}:c,w=e.warning,E=void 0===w?{light:v[300],main:v[500],dark:v[700]}:w,S=e.info,C=void 0===S?{light:y[300],main:y[500],dark:y[700]}:S,R=e.success,P=void 0===R?{light:g[300],main:g[500],dark:g[700]}:R,O=e.type,T=void 0===O?"light":O,M=e.contrastThreshold,N=void 0===M?3:M,I=e.tonalOffset,A=void 0===I?.2:I,z=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(e){return(0,b.mi)(e,k.text.primary)>=N?k.text.primary:x.text.primary}var j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,o.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,l.Z)(4,t));if("string"!==typeof e.main)throw new Error((0,l.Z)(5,JSON.stringify(e.main)));return Z(e,"light",n,A),Z(e,"dark",r,A),e.contrastText||(e.contrastText=D(e.main)),e},B={dark:k,light:x};return(0,i.Z)((0,o.Z)({common:d,type:T,primary:j(n),secondary:j(s,"A400","A200","A700"),error:j(u),warning:j(E),info:j(C),success:j(P),grey:f,contrastThreshold:N,getContrastText:D,augmentColor:j,tonalOffset:A},B[T]),z)}function E(e){return Math.round(1e5*e)/1e5}var S={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function R(e,t){var n="function"===typeof t?t(e):t,a=n.fontFamily,s=void 0===a?C:a,c=n.fontSize,u=void 0===c?14:c,l=n.fontWeightLight,d=void 0===l?300:l,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,m=void 0===h?500:h,v=n.fontWeightBold,y=void 0===v?700:v,g=n.htmlFontSize,b=void 0===g?16:g,x=n.allVariants,k=n.pxToRem,Z=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var w=u/14,R=k||function(e){return"".concat(e/b*w,"rem")},P=function(e,t,n,r,i){return(0,o.Z)({fontFamily:s,fontWeight:e,fontSize:R(t),lineHeight:n},s===C?{letterSpacing:"".concat(E(r/t),"em")}:{},i,x)},O={h1:P(d,96,1.167,-1.5),h2:P(d,60,1.2,-.5),h3:P(p,48,1.167,0),h4:P(p,34,1.235,.25),h5:P(p,24,1.334,0),h6:P(m,20,1.6,.15),subtitle1:P(p,16,1.75,.15),subtitle2:P(m,14,1.57,.1),body1:P(p,16,1.5,.15),body2:P(p,14,1.43,.15),button:P(m,14,1.75,.4,S),caption:P(p,12,1.66,.4),overline:P(p,12,2.66,1,S)};return(0,i.Z)((0,o.Z)({htmlFontSize:b,pxToRem:R,round:E,fontFamily:s,fontSize:u,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:m,fontWeightBold:y},O),Z,{clone:!1})}function P(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var O=["none",P(0,2,1,-1,0,1,1,0,0,1,3,0),P(0,3,1,-2,0,2,2,0,0,1,5,0),P(0,3,3,-2,0,3,4,0,0,1,8,0),P(0,2,4,-1,0,4,5,0,0,1,10,0),P(0,3,5,-1,0,5,8,0,0,1,14,0),P(0,3,5,-1,0,6,10,0,0,1,18,0),P(0,4,5,-2,0,7,10,1,0,2,16,1),P(0,5,5,-3,0,8,10,1,0,3,14,2),P(0,5,6,-3,0,9,12,1,0,3,16,2),P(0,6,6,-3,0,10,14,1,0,4,18,3),P(0,6,7,-4,0,11,15,1,0,4,20,3),P(0,7,8,-4,0,12,17,2,0,5,22,4),P(0,7,8,-4,0,13,19,2,0,5,24,4),P(0,7,9,-4,0,14,21,2,0,5,26,4),P(0,8,9,-5,0,15,22,2,0,6,28,5),P(0,8,10,-5,0,16,24,2,0,6,30,5),P(0,8,11,-5,0,17,26,2,0,6,32,5),P(0,9,11,-5,0,18,28,2,0,7,34,6),P(0,9,12,-6,0,19,29,2,0,7,36,6),P(0,10,13,-6,0,20,31,3,0,8,38,7),P(0,10,13,-6,0,21,33,3,0,8,40,7),P(0,10,14,-6,0,22,35,3,0,8,42,7),P(0,11,14,-7,0,23,36,3,0,9,44,8),P(0,11,15,-7,0,24,38,3,0,9,46,8)],T={borderRadius:4},M=n(8681);function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,M.h)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,o=e.mixins,a=void 0===o?{}:o,c=e.palette,l=void 0===c?{}:c,d=e.spacing,f=e.typography,p=void 0===f?{}:f,h=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),m=w(l),v=s(n),y=N(d),g=(0,i.Z)({breakpoints:v,direction:"ltr",mixins:u(v,y,a),overrides:{},palette:m,props:{},shadows:O,typography:R(m,p),spacing:y,shape:T,transitions:I.ZP,zIndex:A.Z},h),b=arguments.length,x=new Array(b>1?b-1:0),k=1;k1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.Z)(e,(0,r.Z)({defaultTheme:o.Z},t))}},3366:function(e,t,n){"use strict";n.d(t,{x9:function(){return o}});var r=n(2949),i={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)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.ZP={easing:i,duration:o,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?o.standard:n,c=t.easing,u=void 0===c?i.easeInOut:c,l=t.delay,d=void 0===l?0:l;(0,r.Z)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:a(s)," ").concat(u," ").concat("string"===typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},8920:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(159),i=(n(7294),n(1947));function o(){return(0,r.Z)()||i.Z}},4670:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(2122),i=n(2949),o=n(7294),a=(n(5697),n(8679)),s=n.n(a),c=n(3746),u=n(3869),l=n(159),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,f=void 0!==d&&d,p=t.name,h=(0,i.Z)(t,["defaultTheme","withTheme","name"]);var m=p,v=(0,c.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:p||n.displayName,classNamePrefix:m},h)),y=o.forwardRef((function(e,t){e.classes;var s,c=e.innerRef,d=(0,i.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=d;return("string"===typeof p||f)&&(s=(0,l.Z)()||a,p&&(m=(0,u.Z)({theme:s,name:p,props:d})),f&&!m.theme&&(m.theme=s)),o.createElement(n,(0,r.Z)({ref:c||t,classes:h},m))}));return s()(y,n),y}},f=n(1947);var p=function(e,t){return d(e,(0,r.Z)({defaultTheme:f.Z},t))}},2781:function(e,t){"use strict";t.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},5653:function(e,t,n){"use strict";n.d(t,{n:function(){return r},C:function(){return i}});var r=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},3871:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(288);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2568:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,k=function(e){return x?x(e):e.replace(b,"\\$1")},Z=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var c=this.options.sheet;return c&&c.attached,this},e}(),w=function(e){function t(t,n,r){var i;(i=e.call(this,t,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=r.selector,a=r.scoped,s=r.sheet,c=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=c((0,l.Z)((0,l.Z)(i)),s),i.selectorText="."+k(i.id)),i}(0,u.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=v(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,i.Z)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},(0,c.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Z),E={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new w(e,t,n)}},S={indent:1,children:!0},C=/@([\w-]+)/,R=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(C);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new X((0,i.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=S),null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),P=/@media|@supports\s+/,O={onCreateRule:function(e,t,n){return P.test(e)?new R(e,t,n):null}},T={indent:1,children:!0},M=/@keyframes\s+([\w-]+)/,N=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(M);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var c in this.id=!1===o?this.name:k(s(this,a)),this.rules=new X((0,i.Z)({},n,{parent:this})),t)this.rules.add(c,t[c],(0,i.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=T),null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),I=/@keyframes\s+/,A=/\$([\w-]+)/g,z=function(e,t){return"string"===typeof e?e.replace(A,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],i=z(r,n);i!==r&&(e[t]=i)},j={onCreateRule:function(e,t,n){return"string"===typeof e&&I.test(e)?new N(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return z(e,r.keyframes);default:return e}}},B=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.Z)(t,["attached"]),i="",o=0;o0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=ue(),n=0;nn?n:t},he=function(){function e(e){this.getPropertyValue=oe,this.setProperty=ae,this.removeProperty=se,this.setSelector=ce,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=de();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=le(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else ue().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=(0,i.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var ke={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Ze=n(159),we=(n(5697),n(7076)),Ee=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Se=Date.now(),Ce="fnValues"+Se,Re="fnStyle"+ ++Se,Pe=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=h(e,{},n);return r[Re]=t,r},onProcessStyle:function(e,t){if(Ce in t||Re in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[Ce]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[Re];o&&(i.style=o(e)||{});var a=i[Ce];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},Oe="@global",Te="@global ",Me=function(){function e(e,t,n){for(var r in this.type="global",this.at=Oe,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new X((0,i.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Ne=function(){function e(e,t,n){this.type="global",this.at=Oe,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(Te.length);this.rule=n.jss.createRule(r,t,(0,i.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ie=/\s*,\s*/g;function Ae(e,t){for(var n=e.split(Ie),r="",i=0;i-1){var i=zt[e];if(!Array.isArray(i))return ut+bt(i)in t&<+i;if(!r)return!1;for(var o=0;ot?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),c=0,u=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ee.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[we.Z]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}(),jss:Qt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},tn=o.createContext(en);var nn=-1e9;function rn(){return nn+=1}var on=n(5953);function an(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(c){throw c}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=(0,i.Z)({},o);return Object.keys(a).forEach((function(e){s[e]=(0,on.Z)(s[e],a[e])})),s},options:{}}}var sn={};function cn(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=xe({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function un(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var c=ke.get(o.sheetsManager,a,r);c||(c={refs:0,staticSheet:null,dynamicStyles:null},ke.set(o.sheetsManager,a,r,c));var u=(0,i.Z)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var l=o.sheetsRegistry;if(0===c.refs){var d;o.sheetsCache&&(d=ke.get(o.sheetsCache,a,r));var f=a.create(r,s);d||((d=o.jss.createStyleSheet(f,(0,i.Z)({link:!1},u))).attach(),o.sheetsCache&&ke.set(o.sheetsCache,a,r,d)),l&&l.add(d),c.staticSheet=d,c.dynamicStyles=ye(f)}if(c.dynamicStyles){var p=o.jss.createStyleSheet(c.dynamicStyles,(0,i.Z)({link:!0},u));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=xe({baseClasses:c.staticSheet.classes,newClasses:p.classes}),l&&l.add(p)}else n.classes=c.staticSheet.classes;c.refs+=1}}function ln(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function dn(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=ke.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(ke.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function fn(e,t){var n,r=o.useRef([]),i=o.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.useEffect((function(){return function(){n&&n()}}),[i])}function pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,c=t.defaultTheme,u=void 0===c?sn:c,l=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),d=an(e),f=n||a||"makeStyles";d.options={index:rn(),name:n,meta:f,classNamePrefix:f};var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Ze.Z)()||u,r=(0,i.Z)({},o.useContext(tn),l),a=o.useRef(),c=o.useRef();fn((function(){var i={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return un(i,e),c.current=!1,a.current=i,function(){dn(i)}}),[t,d]),o.useEffect((function(){c.current&&ln(a.current,e),c.current=!0}));var f=cn(a.current,e.classes,s);return f};return p}},6010:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n{let r=e;return"string"===typeof t||Array.isArray(t)?r=e.toLocaleString(t,n):!0!==t&&void 0===n||(r=e.toLocaleString(void 0,n)),r};e.exports=(e,a)=>{if(!Number.isFinite(e))throw new TypeError(`Expected a finite number, got ${typeof e}: ${e}`);const s=(a=Object.assign({bits:!1,binary:!1},a)).bits?a.binary?i:r:a.binary?n:t;if(a.signed&&0===e)return` 0 ${s[0]}`;const c=e<0,u=c?"-":a.signed?"+":"";let l;if(c&&(e=-e),void 0!==a.minimumFractionDigits&&(l={minimumFractionDigits:a.minimumFractionDigits}),void 0!==a.maximumFractionDigits&&(l=Object.assign({maximumFractionDigits:a.maximumFractionDigits},l)),e<1){return u+o(e,a.locale,l)+" "+s[0]}const d=Math.min(Math.floor(a.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),s.length-1);e/=Math.pow(a.binary?1024:1e3,d),l||(e=e.toPrecision(3));return u+o(Number(e),a.locale,l)+" "+s[d]}},2666:function(e,t,n){"use strict";n.d(t,{ZP:function(){return v}});var r=n(9756),i=n(3552),o=(n(5697),n(7294)),a=n(3935),s=!1,c=n(220),u="unmounted",l="exited",d="entering",f="entered",p="exiting",h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=l,r.appearStatus=d):i=f:i=t.unmountOnExit||t.mountOnEnter?u:l,r.state={status:i},r.nextCallback=null,r}(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:l}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==f&&(t=d):n!==d&&n!==f||(t=p)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===d?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===l&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[a.findDOMNode(this),r],o=i[0],c=i[1],u=this.getTimeouts(),l=r?u.appear:u.enter;!e&&!n||s?this.safeSetState({status:f},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,c),this.safeSetState({status:d},(function(){t.props.onEntering(o,c),t.onTransitionEnd(l,(function(){t.safeSetState({status:f},(function(){t.props.onEntered(o,c)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:a.findDOMNode(this);t&&!s?(this.props.onExit(r),this.safeSetState({status:p},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:l},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:l},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.createElement(c.Z.Provider,{value:null},"function"===typeof n?n(e,i):o.cloneElement(o.Children.only(n),i))},t}(o.Component);function m(){}h.contextType=c.Z,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},h.UNMOUNTED=u,h.EXITED=l,h.ENTERING=d,h.ENTERED=f,h.EXITING=p;var v=h},220:function(e,t,n){"use strict";var r=n(7294);t.Z=r.createContext(null)},5723:function(e,t,n){"use strict";n.d(t,{ZP:function(){return I}});var r=n(7294),i=Object.prototype.hasOwnProperty;var o=new WeakMap,a=0;var s=function(){function e(e){void 0===e&&(e={}),this.cache=new Map(Object.entries(e)),this.subs=[]}return e.prototype.get=function(e){var t=this.serializeKey(e)[0];return this.cache.get(t)},e.prototype.set=function(e,t){var n=this.serializeKey(e)[0];this.cache.set(n,t),this.notify()},e.prototype.keys=function(){return Array.from(this.cache.keys())},e.prototype.has=function(e){var t=this.serializeKey(e)[0];return this.cache.has(t)},e.prototype.clear=function(){this.cache.clear(),this.notify()},e.prototype.delete=function(e){var t=this.serializeKey(e)[0];this.cache.delete(t),this.notify()},e.prototype.serializeKey=function(e){var t=null;if("function"===typeof e)try{e=e()}catch(n){e=""}return Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";for(var t="arg",n=0;n-1&&(t.subs[r]=t.subs[t.subs.length-1],t.subs.length--)}}},e.prototype.notify=function(){for(var e=0,t=this.subs;en.errorRetryCount)){var o=Math.min(i.retryCount,8),a=~~((Math.random()+.5)*(1<0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0));return Promise.all(l).then((function(){return d.get(r)}))}return Promise.resolve(d.get(r))},M=function(e,t,n,r){var i=S[e];if(e&&i)for(var o=0;o0));return[2,Promise.all(m).then((function(){if(u)throw u;return d.get(i)}))]}if(u)throw u;return[2,c]}}))}))};Object.defineProperty(g.Provider,"default",{value:p});g.Provider;var I=function(){for(var e=this,t=[],n=0;n2?t[2]:2===t.length&&"object"===typeof t[1]?t[1]:{}),a=t.length>2||2===t.length&&"function"===typeof t[1]||null===t[1]?t[1]:o.fetcher,s=d.serializeKey(i),c=s[0],u=s[1],l=s[2],f=s[3],y=(0,r.useRef)(o);v((function(){y.current=o}));var O=function(){return o.revalidateOnMount||!o.initialData&&void 0===o.revalidateOnMount},T=function(){var e=d.get(c);return"undefined"===typeof e?o.initialData:e},I=function(){return!!d.get(f)||c&&O()},A=T(),z=d.get(l),D=I(),j=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),B=(0,r.useRef)({data:A,error:z,isValidating:D});(0,r.useDebugValue)(B.current.data);var L,F,$=(0,r.useState)({})[1],V=(0,r.useCallback)((function(e){var t=!1;for(var n in e)B.current[n]!==e[n]&&(B.current[n]=e[n],j.current[n]&&(t=!0));if(t){if(W.current||!U.current)return;$({})}}),[]),W=(0,r.useRef)(!1),H=(0,r.useRef)(c),U=(0,r.useRef)(!1),q=(0,r.useCallback)((function(e){for(var t,n=[],r=1;r=0&&(n[r]=n[n.length-1],n.pop())}},G=(0,r.useCallback)((function(t){return void 0===t&&(t={}),b(e,void 0,void 0,(function(){var e,n,r,i,s,p,h,m,v,g;return x(this,(function(b){switch(b.label){case 0:if(!c||!a)return[2,!1];if(W.current)return[2,!1];if(y.current.isPaused())return[2,!1];e=t.retryCount,n=void 0===e?0:e,r=t.dedupe,i=void 0!==r&&r,s=!0,p="undefined"!==typeof k[c]&&i,b.label=1;case 1:return b.trys.push([1,6,,7]),V({isValidating:!0}),d.set(f,!0),p||M(c,B.current.data,B.current.error,!0),h=void 0,m=void 0,p?(m=Z[c],[4,k[c]]):[3,3];case 2:return h=b.sent(),[3,5];case 3:return o.loadingTimeout&&!d.get(c)&&setTimeout((function(){s&&q("onLoadingSlow",c,o)}),o.loadingTimeout),k[c]=null!==u?a.apply(void 0,u):a(c),Z[c]=m=P(),[4,k[c]];case 4:h=b.sent(),setTimeout((function(){delete k[c],delete Z[c]}),o.dedupingInterval),q("onSuccess",h,c,o),b.label=5;case 5:return Z[c]>m?[2,!1]:C[c]&&(m<=C[c]||m<=R[c]||0===R[c])?(V({isValidating:!1}),[2,!1]):(d.set(l,void 0),d.set(f,!1),v={isValidating:!1},"undefined"!==typeof B.current.error&&(v.error=void 0),o.compare(B.current.data,h)||(v.data=h),o.compare(d.get(c),h)||d.set(c,h),V(v),p||M(c,h,v.error,!1),[3,7]);case 6:return g=b.sent(),delete k[c],delete Z[c],y.current.isPaused()?(V({isValidating:!1}),[2,!1]):(d.set(l,g),B.current.error!==g&&(V({isValidating:!1,error:g}),p||M(c,void 0,g,!1)),q("onError",g,c,o),o.shouldRetryOnError&&q("onErrorRetry",g,c,o,G,{retryCount:n+1,dedupe:!0}),[3,7]);case 7:return s=!1,[2,!0]}}))}))}),[c]);if(v((function(){if(c){W.current=!1;var e=U.current;U.current=!0;var t=B.current.data,n=T();H.current=c,o.compare(t,n)||V({data:n});var r=function(){return G({dedupe:!0})};(e||O())&&("undefined"===typeof n||h?r():m(r));var i=!1,a=_(w,(function(){!i&&y.current.revalidateOnFocus&&(i=!0,r(),setTimeout((function(){return i=!1}),y.current.focusThrottleInterval))})),s=_(E,(function(){y.current.revalidateOnReconnect&&r()})),u=_(S,(function(e,t,n,i,a){void 0===e&&(e=!0),void 0===a&&(a=!0);var s={},c=!1;return"undefined"===typeof t||o.compare(B.current.data,t)||(s.data=t,c=!0),B.current.error!==n&&(s.error=n,c=!0),"undefined"!==typeof i&&B.current.isValidating!==i&&(s.isValidating=i,c=!0),c&&V(s),!!e&&(a?r():G())}));return function(){V=function(){return null},W.current=!0,a(),s(),u()}}}),[c,G]),v((function(){var t=null,n=function(){return b(e,void 0,void 0,(function(){return x(this,(function(e){switch(e.label){case 0:return B.current.error||!y.current.refreshWhenHidden&&!y.current.isDocumentVisible()||!y.current.refreshWhenOffline&&!y.current.isOnline()?[3,2]:[4,G({dedupe:!0})];case 1:e.sent(),e.label=2;case 2:return y.current.refreshInterval&&t&&(t=setTimeout(n,y.current.refreshInterval)),[2]}}))}))};return y.current.refreshInterval&&(t=setTimeout(n,y.current.refreshInterval)),function(){t&&(clearTimeout(t),t=null)}}),[o.refreshInterval,o.refreshWhenHidden,o.refreshWhenOffline,G]),o.suspense){if(L=d.get(c),F=d.get(l),"undefined"===typeof L&&(L=A),"undefined"===typeof F&&(F=z),"undefined"===typeof L&&"undefined"===typeof F){if(k[c]||G(),k[c]&&"function"===typeof k[c].then)throw k[c];L=k[c]}if("undefined"===typeof L&&F)throw F}var X=(0,r.useMemo)((function(){var e={revalidate:G,mutate:K};return Object.defineProperties(e,{error:{get:function(){return j.current.error=!0,o.suspense?F:H.current===c?B.current.error:z},enumerable:!0},data:{get:function(){return j.current.data=!0,o.suspense?L:H.current===c?B.current.data:A},enumerable:!0},isValidating:{get:function(){return j.current.isValidating=!0,!!c&&B.current.isValidating},enumerable:!0}}),e}),[G,A,z,K,c,o.suspense,F,L]);return X}}}]);
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/chunks/642-ebd3de567e50b02b8111.js b/striker-ui/out/_next/static/chunks/642-ebd3de567e50b02b8111.js
new file mode 100644
index 00000000..70d603cf
--- /dev/null
+++ b/striker-ui/out/_next/static/chunks/642-ebd3de567e50b02b8111.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[642],{3349:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},5991:function(e,t,n){"use strict";function r(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,a=(0,T.Z)(r,["name"]),s=i,l="function"===typeof t?function(e){return{root:function(n){return t((0,o.Z)({theme:e},n))}}}:{root:t},u=(0,D.Z)(l,(0,o.Z)({Component:e,name:i||e.displayName,classNamePrefix:s},a));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=O.forwardRef((function(t,r){var i=t.children,a=t.className,s=t.clone,l=t.component,c=(0,T.Z)(t,["children","className","clone","component"]),d=u(t),p=(0,N.Z)(d.root,a),f=c;if(n&&(f=z(f,n)),s)return O.cloneElement(i,(0,o.Z)({className:(0,N.Z)(i.props.className,p)},f));if("function"===typeof i)return i((0,o.Z)({className:p},f));var h=l||e;return O.createElement(h,(0,o.Z)({ref:r,className:p},f),i)}));return A()(c,e),c}}(e);return function(e,n){return t(e,(0,o.Z)({defaultTheme:j.Z},n))}},F=a(s(f,h,m,v,y,g,b,R,M.Z,P)),$=L("div")(F,{name:"MuiBox"})},282:function(e,t,n){"use strict";var r=n(2949),o=n(2122),i=n(7294),a=(n(5697),n(6010)),s=n(4670),l=n(9693),u=n(4720),c=n(8025),d=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,d=e.color,p=void 0===d?"default":d,f=e.component,h=void 0===f?"button":f,m=e.disabled,v=void 0!==m&&m,y=e.disableElevation,g=void 0!==y&&y,b=e.disableFocusRipple,x=void 0!==b&&b,k=e.endIcon,E=e.focusVisibleClassName,w=e.fullWidth,S=void 0!==w&&w,Z=e.size,C=void 0===Z?"medium":Z,R=e.startIcon,P=e.type,M=void 0===P?"button":P,T=e.variant,O=void 0===T?"text":T,N=(0,r.Z)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),I=R&&i.createElement("span",{className:(0,a.Z)(s.startIcon,s["iconSize".concat((0,c.Z)(C))])},R),A=k&&i.createElement("span",{className:(0,a.Z)(s.endIcon,s["iconSize".concat((0,c.Z)(C))])},k);return i.createElement(u.Z,(0,o.Z)({className:(0,a.Z)(s.root,s[O],l,"inherit"===p?s.colorInherit:"default"!==p&&s["".concat(O).concat((0,c.Z)(p))],"medium"!==C&&[s["".concat(O,"Size").concat((0,c.Z)(C))],s["size".concat((0,c.Z)(C))]],g&&s.disableElevation,v&&s.disabled,S&&s.fullWidth),component:h,disabled:v,focusRipple:!x,focusVisibleClassName:(0,a.Z)(s.focusVisible,E),ref:t,type:M},N),i.createElement("span",{className:s.label},I,n,A))}));t.Z=(0,s.Z)((function(e){return{root:(0,o.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:(0,l.U1)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat((0,l.U1)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:(0,l.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat((0,l.U1)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:(0,l.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(d)},4720:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(2122),o=n(2949),i=n(7294),a=(n(5697),n(3935)),s=n(6010),l=n(3834),u=n(5192),c=n(4670),d=n(4896),p=n(7329),f=n(9756),h=n(3349),m=n(3552),v=n(220);function y(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function b(e,t,n){var r=y(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,s=void 0===i?a||t.pulsate:i,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&y.current)y.current=!1;else{"touchstart"===e.type&&(y.current=!0);var c,d,p,f=u?null:x.current,h=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(h.width/2),d=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,v=m.clientX,E=m.clientY;c=Math.round(v-h.left),d=Math.round(E-h.top)}if(s)(p=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(p+=1);else{var w=2*Math.max(Math.abs((f?f.clientWidth:0)-c),c)+2,S=2*Math.max(Math.abs((f?f.clientHeight:0)-d),d)+2;p=Math.sqrt(Math.pow(w,2)+Math.pow(S,2))}e.touches?null===b.current&&(b.current=function(){k({pulsate:o,rippleX:c,rippleY:d,rippleSize:p,cb:n})},g.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):k({pulsate:o,rippleX:c,rippleY:d,rippleSize:p,cb:n})}}),[a,k]),Z=i.useCallback((function(){w({},{pulsate:!0})}),[w]),C=i.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(g.current=setTimeout((function(){C(e,t)})));b.current=null,h((function(e){return e.length>0?e.slice(1):e})),v.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:Z,start:w,stop:C}}),[Z,w,C]),i.createElement("span",(0,r.Z)({className:(0,s.Z)(l.root,u),ref:x},c),i.createElement(E,{component:null,exit:!0},f))})),C=(0,c.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(Z)),R=i.forwardRef((function(e,t){var n=e.action,c=e.buttonRef,p=e.centerRipple,f=void 0!==p&&p,h=e.children,m=e.classes,v=e.className,y=e.component,g=void 0===y?"button":y,b=e.disabled,x=void 0!==b&&b,k=e.disableRipple,E=void 0!==k&&k,w=e.disableTouchRipple,S=void 0!==w&&w,Z=e.focusRipple,R=void 0!==Z&&Z,P=e.focusVisibleClassName,M=e.onBlur,T=e.onClick,O=e.onFocus,N=e.onFocusVisible,I=e.onKeyDown,A=e.onKeyUp,D=e.onMouseDown,z=e.onMouseLeave,j=e.onMouseUp,L=e.onTouchEnd,F=e.onTouchMove,$=e.onTouchStart,B=e.onDragLeave,V=e.tabIndex,_=void 0===V?0:V,W=e.TouchRippleProps,H=e.type,K=void 0===H?"button":H,U=(0,o.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),q=i.useRef(null);var G=i.useRef(null),X=i.useState(!1),Y=X[0],J=X[1];x&&Y&&J(!1);var Q=(0,d.Z)(),ee=Q.isFocusVisible,te=Q.onBlurVisible,ne=Q.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return(0,u.Z)((function(r){return t&&t(r),!n&&G.current&&G.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),q.current.focus()}}}),[]),i.useEffect((function(){Y&&R&&!E&&G.current.pulsate()}),[E,R,Y]);var oe=re("start",D),ie=re("stop",B),ae=re("stop",j),se=re("stop",(function(e){Y&&e.preventDefault(),z&&z(e)})),le=re("start",$),ue=re("stop",L),ce=re("stop",F),de=re("stop",(function(e){Y&&(te(e),J(!1)),M&&M(e)}),!1),pe=(0,u.Z)((function(e){q.current||(q.current=e.currentTarget),ee(e)&&(J(!0),N&&N(e)),O&&O(e)})),fe=function(){var e=a.findDOMNode(q.current);return g&&"button"!==g&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),me=(0,u.Z)((function(e){R&&!he.current&&Y&&G.current&&" "===e.key&&(he.current=!0,e.persist(),G.current.stop(e,(function(){G.current.start(e)}))),e.target===e.currentTarget&&fe()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&fe()&&"Enter"===e.key&&!x&&(e.preventDefault(),T&&T(e))})),ve=(0,u.Z)((function(e){R&&" "===e.key&&G.current&&Y&&!e.defaultPrevented&&(he.current=!1,e.persist(),G.current.stop(e,(function(){G.current.pulsate(e)}))),A&&A(e),T&&e.target===e.currentTarget&&fe()&&" "===e.key&&!e.defaultPrevented&&T(e)})),ye=g;"button"===ye&&U.href&&(ye="a");var ge={};"button"===ye?(ge.type=K,ge.disabled=x):("a"===ye&&U.href||(ge.role="button"),ge["aria-disabled"]=x);var be=(0,l.Z)(c,t),xe=(0,l.Z)(ne,q),ke=(0,l.Z)(be,xe),Ee=i.useState(!1),we=Ee[0],Se=Ee[1];i.useEffect((function(){Se(!0)}),[]);var Ze=we&&!E&&!x;return i.createElement(ye,(0,r.Z)({className:(0,s.Z)(m.root,v,Y&&[m.focusVisible,P],x&&m.disabled),onBlur:de,onClick:T,onFocus:pe,onKeyDown:me,onKeyUp:ve,onMouseDown:oe,onMouseLeave:se,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ue,onTouchMove:ce,onTouchStart:le,ref:ke,tabIndex:x?-1:_},ge,U),h,Ze?i.createElement(C,(0,r.Z)({ref:G,center:f},W)):null)})),P=(0,c.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(R)},5477:function(e,t,n){"use strict";var r=n(2122),o=n(2949),i=n(7294),a=(n(5697),n(6010)),s=n(4670),l=n(8025),u=44,c=i.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.color,d=void 0===c?"primary":c,p=e.disableShrink,f=void 0!==p&&p,h=e.size,m=void 0===h?40:h,v=e.style,y=e.thickness,g=void 0===y?3.6:y,b=e.value,x=void 0===b?0:b,k=e.variant,E=void 0===k?"indeterminate":k,w=(0,o.Z)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),S={},Z={},C={};if("determinate"===E||"static"===E){var R=2*Math.PI*((u-g)/2);S.strokeDasharray=R.toFixed(3),C["aria-valuenow"]=Math.round(x),S.strokeDashoffset="".concat(((100-x)/100*R).toFixed(3),"px"),Z.transform="rotate(-90deg)"}return i.createElement("div",(0,r.Z)({className:(0,a.Z)(n.root,s,"inherit"!==d&&n["color".concat((0,l.Z)(d))],{determinate:n.determinate,indeterminate:n.indeterminate,static:n.static}[E]),style:(0,r.Z)({width:m,height:m},Z,v),ref:t,role:"progressbar"},C,w),i.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(u," ").concat(u)},i.createElement("circle",{className:(0,a.Z)(n.circle,f&&n.circleDisableShrink,{determinate:n.circleDeterminate,indeterminate:n.circleIndeterminate,static:n.circleStatic}[E]),style:S,cx:u,cy:u,r:(u-g)/2,fill:"none",strokeWidth:g})))}));t.Z=(0,s.Z)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},determinate:{transition:e.transitions.create("transform")},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},circleDeterminate:{transition:e.transitions.create("stroke-dashoffset")},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(c)},5517:function(e,t,n){"use strict";var r=n(2122),o=n(2949),i=n(7294),a=(n(5697),n(6010)),s=n(4670),l=n(9693),u=i.forwardRef((function(e,t){var n=e.absolute,s=void 0!==n&&n,l=e.classes,u=e.className,c=e.component,d=void 0===c?"hr":c,p=e.flexItem,f=void 0!==p&&p,h=e.light,m=void 0!==h&&h,v=e.orientation,y=void 0===v?"horizontal":v,g=e.role,b=void 0===g?"hr"!==d?"separator":void 0:g,x=e.variant,k=void 0===x?"fullWidth":x,E=(0,o.Z)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return i.createElement(d,(0,r.Z)({className:(0,a.Z)(l.root,u,"fullWidth"!==k&&l[k],s&&l.absolute,f&&l.flexItem,m&&l.light,"vertical"===y&&l.vertical),role:b,ref:t},E))}));t.Z=(0,s.Z)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:(0,l.U1)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(u)},7159:function(e,t,n){"use strict";n.d(t,{ZP:function(){return T}});var r=n(2122),o=n(2949),i=n(7294),a=(n(5697),n(6010)),s=n(9597),l=n(4670),u=n(4699),c=n(2666),d=n(3366),p=n(8920),f=n(5653),h=n(3834),m={entering:{opacity:1},entered:{opacity:1}},v={enter:d.x9.enteringScreen,exit:d.x9.leavingScreen},y=i.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,l=e.in,d=e.onEnter,y=e.onEntered,g=e.onEntering,b=e.onExit,x=e.onExited,k=e.onExiting,E=e.style,w=e.TransitionComponent,S=void 0===w?c.ZP:w,Z=e.timeout,C=void 0===Z?v:Z,R=(0,o.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),P=(0,p.Z)(),M=P.unstable_strictMode&&!s,T=i.useRef(null),O=(0,h.Z)(n.ref,t),N=(0,h.Z)(M?T:void 0,O),I=function(e){return function(t,n){if(e){var r=M?[T.current,t]:[t,n],o=(0,u.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},A=I(g),D=I((function(e,t){(0,f.n)(e);var n=(0,f.C)({style:E,timeout:C},{mode:"enter"});e.style.webkitTransition=P.transitions.create("opacity",n),e.style.transition=P.transitions.create("opacity",n),d&&d(e,t)})),z=I(y),j=I(k),L=I((function(e){var t=(0,f.C)({style:E,timeout:C},{mode:"exit"});e.style.webkitTransition=P.transitions.create("opacity",t),e.style.transition=P.transitions.create("opacity",t),b&&b(e)})),F=I(x);return i.createElement(S,(0,r.Z)({appear:!0,in:l,nodeRef:M?T:void 0,onEnter:D,onEntered:z,onEntering:A,onExit:L,onExited:F,onExiting:j,timeout:C},R),(function(e,t){return i.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},m[e],E,n.props.style),ref:N},t))}))})),g=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,u=e.invisible,c=void 0!==u&&u,d=e.open,p=e.transitionDuration,f=e.TransitionComponent,h=void 0===f?y:f,m=(0,o.Z)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return i.createElement(h,(0,r.Z)({in:d,timeout:p},m),i.createElement("div",{className:(0,a.Z)(s.root,l,c&&s.invisible),"aria-hidden":!0,ref:t},n))})),b=(0,l.Z)({root:{zIndex:-1,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"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(g),x=n(3935),k=n(9437);function E(e,t){var n=function(e,t){var n,r=t.getBoundingClientRect();if(t.fakeTransform)n=t.fakeTransform;else{var o=window.getComputedStyle(t);n=o.getPropertyValue("-webkit-transform")||o.getPropertyValue("transform")}var i=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");i=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===e?"translateX(".concat(window.innerWidth,"px) translateX(").concat(i-r.left,"px)"):"right"===e?"translateX(-".concat(r.left+r.width-i,"px)"):"up"===e?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}var w={enter:d.x9.enteringScreen,exit:d.x9.leavingScreen},S=i.forwardRef((function(e,t){var n=e.children,a=e.direction,s=void 0===a?"down":a,l=e.in,u=e.onEnter,d=e.onEntered,m=e.onEntering,v=e.onExit,y=e.onExited,g=e.onExiting,b=e.style,S=e.timeout,Z=void 0===S?w:S,C=e.TransitionComponent,R=void 0===C?c.ZP:C,P=(0,o.Z)(e,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),M=(0,p.Z)(),T=i.useRef(null),O=i.useCallback((function(e){T.current=x.findDOMNode(e)}),[]),N=(0,h.Z)(n.ref,O),I=(0,h.Z)(N,t),A=function(e){return function(t){e&&(void 0===t?e(T.current):e(T.current,t))}},D=A((function(e,t){E(s,e),(0,f.n)(e),u&&u(e,t)})),z=A((function(e,t){var n=(0,f.C)({timeout:Z,style:b},{mode:"enter"});e.style.webkitTransition=M.transitions.create("-webkit-transform",(0,r.Z)({},n,{easing:M.transitions.easing.easeOut})),e.style.transition=M.transitions.create("transform",(0,r.Z)({},n,{easing:M.transitions.easing.easeOut})),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)})),j=A(d),L=A(g),F=A((function(e){var t=(0,f.C)({timeout:Z,style:b},{mode:"exit"});e.style.webkitTransition=M.transitions.create("-webkit-transform",(0,r.Z)({},t,{easing:M.transitions.easing.sharp})),e.style.transition=M.transitions.create("transform",(0,r.Z)({},t,{easing:M.transitions.easing.sharp})),E(s,e),v&&v(e)})),$=A((function(e){e.style.webkitTransition="",e.style.transition="",y&&y(e)})),B=i.useCallback((function(){T.current&&E(s,T.current)}),[s]);return i.useEffect((function(){if(!l&&"down"!==s&&"right"!==s){var e=(0,k.Z)((function(){T.current&&E(s,T.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[s,l]),i.useEffect((function(){l||B()}),[l,B]),i.createElement(R,(0,r.Z)({nodeRef:T,onEnter:D,onEntered:j,onEntering:z,onExit:F,onExited:$,onExiting:L,appear:!0,in:l,timeout:Z},P),(function(e,t){return i.cloneElement(n,(0,r.Z)({ref:I,style:(0,r.Z)({visibility:"exited"!==e||l?void 0:"hidden"},b,n.props.style)},t))}))})),Z=n(9895),C=n(8025),R={left:"right",right:"left",top:"down",bottom:"up"};var P={enter:d.x9.enteringScreen,exit:d.x9.leavingScreen},M=i.forwardRef((function(e,t){var n=e.anchor,l=void 0===n?"left":n,u=e.BackdropProps,c=e.children,d=e.classes,f=e.className,h=e.elevation,m=void 0===h?16:h,v=e.ModalProps,y=(v=void 0===v?{}:v).BackdropProps,g=(0,o.Z)(v,["BackdropProps"]),x=e.onClose,k=e.open,E=void 0!==k&&k,w=e.PaperProps,M=void 0===w?{}:w,T=e.SlideProps,O=e.TransitionComponent,N=void 0===O?S:O,I=e.transitionDuration,A=void 0===I?P:I,D=e.variant,z=void 0===D?"temporary":D,j=(0,o.Z)(e,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),L=(0,p.Z)(),F=i.useRef(!1);i.useEffect((function(){F.current=!0}),[]);var $=function(e,t){return"rtl"===e.direction&&function(e){return-1!==["left","right"].indexOf(e)}(t)?R[t]:t}(L,l),B=i.createElement(Z.Z,(0,r.Z)({elevation:"temporary"===z?m:0,square:!0},M,{className:(0,a.Z)(d.paper,d["paperAnchor".concat((0,C.Z)($))],M.className,"temporary"!==z&&d["paperAnchorDocked".concat((0,C.Z)($))])}),c);if("permanent"===z)return i.createElement("div",(0,r.Z)({className:(0,a.Z)(d.root,d.docked,f),ref:t},j),B);var V=i.createElement(N,(0,r.Z)({in:E,direction:R[$],timeout:A,appear:F.current},T),B);return"persistent"===z?i.createElement("div",(0,r.Z)({className:(0,a.Z)(d.root,d.docked,f),ref:t},j),V):i.createElement(s.Z,(0,r.Z)({BackdropProps:(0,r.Z)({},u,y,{transitionDuration:A}),BackdropComponent:b,className:(0,a.Z)(d.root,d.modal,f),open:E,onClose:x,ref:t},j,g),V)})),T=(0,l.Z)((function(e){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:e.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(e.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(e.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(e.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(e.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(M)},7812:function(e,t,n){"use strict";var r=n(2122),o=n(2949),i=n(7294),a=(n(5697),n(6010)),s=n(4670),l=n(9693),u=n(4720),c=n(8025),d=i.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,l=e.children,d=e.classes,p=e.className,f=e.color,h=void 0===f?"default":f,m=e.disabled,v=void 0!==m&&m,y=e.disableFocusRipple,g=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,k=(0,o.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(u.Z,(0,r.Z)({className:(0,a.Z)(d.root,p,"default"!==h&&d["color".concat((0,c.Z)(h))],v&&d.disabled,"small"===x&&d["size".concat((0,c.Z)(x))],{start:d.edgeStart,end:d.edgeEnd}[s]),centerRipple:!0,focusRipple:!g,disabled:v,ref:t},k),i.createElement("span",{className:d.label},l))}));t.Z=(0,s.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,l.U1)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,l.U1)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,l.U1)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(d)},2822:function(e,t,n){"use strict";var r=n(2122),o=n(2949),i=n(7294),a=(n(5697),n(6010)),s=n(4670),l=n(6987),u=i.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,c=e.component,d=void 0===c?"ul":c,p=e.dense,f=void 0!==p&&p,h=e.disablePadding,m=void 0!==h&&h,v=e.subheader,y=(0,o.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=i.useMemo((function(){return{dense:f}}),[f]);return i.createElement(l.Z.Provider,{value:g},i.createElement(d,(0,r.Z)({className:(0,a.Z)(s.root,u,f&&s.dense,!m&&s.padding,v&&s.subheader),ref:t},y),v,n))}));t.Z=(0,s.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(u)},6987:function(e,t,n){"use strict";var r=n(7294).createContext({});t.Z=r},998:function(e,t,n){"use strict";var r=n(2122),o=n(2949),i=n(7294),a=(n(5697),n(6010)),s=n(4670),l=n(4720),u=n(3711),c=n(3834),d=n(6987),p=n(3935),f="undefined"===typeof window?i.useEffect:i.useLayoutEffect,h=i.forwardRef((function(e,t){var n=e.alignItems,s=void 0===n?"center":n,h=e.autoFocus,m=void 0!==h&&h,v=e.button,y=void 0!==v&&v,g=e.children,b=e.classes,x=e.className,k=e.component,E=e.ContainerComponent,w=void 0===E?"li":E,S=e.ContainerProps,Z=(S=void 0===S?{}:S).className,C=(0,o.Z)(S,["className"]),R=e.dense,P=void 0!==R&&R,M=e.disabled,T=void 0!==M&&M,O=e.disableGutters,N=void 0!==O&&O,I=e.divider,A=void 0!==I&&I,D=e.focusVisibleClassName,z=e.selected,j=void 0!==z&&z,L=(0,o.Z)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),F=i.useContext(d.Z),$={dense:P||F.dense||!1,alignItems:s},B=i.useRef(null);f((function(){m&&B.current&&B.current.focus()}),[m]);var V=i.Children.toArray(g),_=V.length&&(0,u.Z)(V[V.length-1],["ListItemSecondaryAction"]),W=i.useCallback((function(e){B.current=p.findDOMNode(e)}),[]),H=(0,c.Z)(W,t),K=(0,r.Z)({className:(0,a.Z)(b.root,x,$.dense&&b.dense,!N&&b.gutters,A&&b.divider,T&&b.disabled,y&&b.button,"center"!==s&&b.alignItemsFlexStart,_&&b.secondaryAction,j&&b.selected),disabled:T},L),U=k||"li";return y&&(K.component=k||"div",K.focusVisibleClassName=(0,a.Z)(b.focusVisible,D),U=l.Z),_?(U=K.component||k?U:"div","li"===w&&("li"===U?U="div":"li"===K.component&&(K.component="div")),i.createElement(d.Z.Provider,{value:$},i.createElement(w,(0,r.Z)({className:(0,a.Z)(b.container,Z),ref:H},C),i.createElement(U,K,V),V.pop()))):i.createElement(d.Z.Provider,{value:$},i.createElement(U,(0,r.Z)({ref:H},K),V))}));t.Z=(0,s.Z)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(h)},5675:function(e,t,n){"use strict";n.d(t,{Z:function(){return V}});var r=n(2122),o=n(2949),i=n(7294),a=(n(9864),n(5697),n(6010)),s=n(4670),l=n(3935),u=n(9437),c=n(626),d=n(713),p=n(2568),f=n(9597),h=n(4699),m=n(2666),v=n(8920),y=n(5653),g=n(3834);function b(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var x={entering:{opacity:1,transform:b(1)},entered:{opacity:1,transform:"none"}},k=i.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,l=e.in,u=e.onEnter,c=e.onEntered,d=e.onEntering,p=e.onExit,f=e.onExited,k=e.onExiting,E=e.style,w=e.timeout,S=void 0===w?"auto":w,Z=e.TransitionComponent,C=void 0===Z?m.ZP:Z,R=(0,o.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),P=i.useRef(),M=i.useRef(),T=(0,v.Z)(),O=T.unstable_strictMode&&!s,N=i.useRef(null),I=(0,g.Z)(n.ref,t),A=(0,g.Z)(O?N:void 0,I),D=function(e){return function(t,n){if(e){var r=O?[N.current,t]:[t,n],o=(0,h.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},z=D(d),j=D((function(e,t){(0,y.n)(e);var n,r=(0,y.C)({style:E,timeout:S},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===S?(n=T.transitions.getAutoHeightDuration(e.clientHeight),M.current=n):n=o,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:i}),T.transitions.create("transform",{duration:.666*n,delay:i})].join(","),u&&u(e,t)})),L=D(c),F=D(k),$=D((function(e){var t,n=(0,y.C)({style:E,timeout:S},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===S?(t=T.transitions.getAutoHeightDuration(e.clientHeight),M.current=t):t=r,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:o}),T.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=b(.75),p&&p(e)})),B=D(f);return i.useEffect((function(){return function(){clearTimeout(P.current)}}),[]),i.createElement(C,(0,r.Z)({appear:!0,in:l,nodeRef:O?N:void 0,onEnter:j,onEntered:L,onEntering:z,onExit:$,onExited:B,onExiting:F,addEndListener:function(e,t){var n=O?e:t;"auto"===S&&(P.current=setTimeout(n,M.current||0))},timeout:"auto"===S?null:S},R),(function(e,t){return i.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:b(.75),visibility:"exited"!==e||l?void 0:"hidden"},x[e],E,n.props.style),ref:A},t))}))}));k.muiSupportAuto=!0;var E=k,w=n(9895);function S(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Z(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function C(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function R(e){return"function"===typeof e?e():e}var P=i.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,h=e.anchorOrigin,m=void 0===h?{vertical:"top",horizontal:"left"}:h,v=e.anchorPosition,y=e.anchorReference,g=void 0===y?"anchorEl":y,b=e.children,x=e.classes,k=e.className,P=e.container,M=e.elevation,T=void 0===M?8:M,O=e.getContentAnchorEl,N=e.marginThreshold,I=void 0===N?16:N,A=e.onEnter,D=e.onEntered,z=e.onEntering,j=e.onExit,L=e.onExited,F=e.onExiting,$=e.open,B=e.PaperProps,V=void 0===B?{}:B,_=e.transformOrigin,W=void 0===_?{vertical:"top",horizontal:"left"}:_,H=e.TransitionComponent,K=void 0===H?E:H,U=e.transitionDuration,q=void 0===U?"auto":U,G=e.TransitionProps,X=void 0===G?{}:G,Y=(0,o.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=i.useRef(),Q=i.useCallback((function(e){if("anchorPosition"===g)return v;var t=R(s),n=(t&&1===t.nodeType?t:(0,c.Z)(J.current).body).getBoundingClientRect(),r=0===e?m.vertical:"center";return{top:n.top+S(n,r),left:n.left+Z(n,m.horizontal)}}),[s,m.horizontal,m.vertical,v,g]),ee=i.useCallback((function(e){var t=0;if(O&&"anchorEl"===g){var n=O(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[m.vertical,g,O]),te=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:S(e,W.vertical)+t,horizontal:Z(e,W.horizontal)}}),[W.horizontal,W.vertical]),ne=i.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===g)return{top:null,left:null,transformOrigin:C(r)};var o=Q(t),i=o.top-r.vertical,a=o.left-r.horizontal,l=i+n.height,u=a+n.width,c=(0,d.Z)(R(s)),p=c.innerHeight-I,f=c.innerWidth-I;if(ip){var m=l-p;i-=m,r.vertical+=m}if(af){var y=u-f;a-=y,r.horizontal+=y}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:C(r)}}),[s,g,Q,ee,te,I]),re=i.useCallback((function(){var e=J.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),oe=i.useCallback((function(e){J.current=l.findDOMNode(e)}),[]);i.useEffect((function(){$&&re()})),i.useImperativeHandle(n,(function(){return $?{updatePosition:function(){re()}}:null}),[$,re]),i.useEffect((function(){if($){var e=(0,u.Z)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[$,re]);var ie=q;"auto"!==q||K.muiSupportAuto||(ie=void 0);var ae=P||(s?(0,c.Z)(R(s)).body:void 0);return i.createElement(f.Z,(0,r.Z)({container:ae,open:$,ref:t,BackdropProps:{invisible:!0},className:(0,a.Z)(x.root,k)},Y),i.createElement(K,(0,r.Z)({appear:!0,in:$,onEnter:A,onEntered:D,onExit:j,onExited:L,onExiting:F,timeout:ie},X,{onEntering:(0,p.Z)((function(e,t){z&&z(e,t),re()}),X.onEntering)}),i.createElement(w.Z,(0,r.Z)({elevation:T,ref:oe},V,{className:(0,a.Z)(x.paper,V.className)}),b)))})),M=(0,s.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(P),T=n(2822),O=n(5840);function N(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function I(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function A(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function D(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&A(s,i)&&!l)return void s.focus();s=o(e,s,n)}}var z="undefined"===typeof window?i.useEffect:i.useLayoutEffect,j=i.forwardRef((function(e,t){var n=e.actions,a=e.autoFocus,s=void 0!==a&&a,u=e.autoFocusItem,d=void 0!==u&&u,p=e.children,f=e.className,h=e.disabledItemsFocusable,m=void 0!==h&&h,v=e.disableListWrap,y=void 0!==v&&v,b=e.onKeyDown,x=e.variant,k=void 0===x?"selectedMenu":x,E=(0,o.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),w=i.useRef(null),S=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});z((function(){s&&w.current.focus()}),[s]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!w.current.style.width;if(e.clientHeight0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&A(r,o);o.previousKeyMatched&&(s||D(t,r,!1,m,N,o))?e.preventDefault():o.previousKeyMatched=!1}b&&b(e)},tabIndex:s?0:-1},E),P)})),L=n(4236),F={vertical:"top",horizontal:"right"},$={vertical:"top",horizontal:"left"},B=i.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,u=e.children,c=e.classes,d=e.disableAutoFocusItem,p=void 0!==d&&d,f=e.MenuListProps,h=void 0===f?{}:f,m=e.onClose,y=e.onEntering,g=e.open,b=e.PaperProps,x=void 0===b?{}:b,k=e.PopoverClasses,E=e.transitionDuration,w=void 0===E?"auto":E,S=e.variant,Z=void 0===S?"selectedMenu":S,C=(0,o.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),R=(0,v.Z)(),P=s&&!p&&g,T=i.useRef(null),O=i.useRef(null),N=-1;i.Children.map(u,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==Z&&e.props.selected||-1===N)&&(N=t))}));var I=i.Children.map(u,(function(e,t){return t===N?i.cloneElement(e,{ref:function(t){O.current=l.findDOMNode(t),(0,L.Z)(e.ref,t)}}):e}));return i.createElement(M,(0,r.Z)({getContentAnchorEl:function(){return O.current},classes:k,onClose:m,onEntering:function(e,t){T.current&&T.current.adjustStyleForScrollbar(e,R),y&&y(e,t)},anchorOrigin:"rtl"===R.direction?F:$,transformOrigin:"rtl"===R.direction?F:$,PaperProps:(0,r.Z)({},x,{classes:(0,r.Z)({},x.classes,{root:c.paper})}),open:g,ref:t,transitionDuration:w},C),i.createElement(j,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),m&&m(e,"tabKeyDown"))},actions:T,autoFocus:s&&(-1===N||p),autoFocusItem:P,variant:Z},h,{className:(0,a.Z)(c.list,h.className)}),I))})),V=(0,s.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(B)},5639:function(e,t,n){"use strict";var r=n(2949),o=n(6156),i=n(2122),a=n(7294),s=(n(5697),n(6010)),l=n(4670),u=n(998),c=a.forwardRef((function(e,t){var n,o=e.classes,l=e.className,c=e.component,d=void 0===c?"li":c,p=e.disableGutters,f=void 0!==p&&p,h=e.ListItemClasses,m=e.role,v=void 0===m?"menuitem":m,y=e.selected,g=e.tabIndex,b=(0,r.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==g?g:-1),a.createElement(u.Z,(0,i.Z)({button:!0,role:v,tabIndex:n,component:d,selected:y,disableGutters:f,classes:(0,i.Z)({dense:o.dense},h),className:(0,s.Z)(o.root,l,y&&o.selected,!f&&o.gutters),ref:t},b))}));t.Z=(0,l.Z)((function(e){return{root:(0,i.Z)({},e.typography.body1,(0,o.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,i.Z)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(c)},9597:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(2949),o=n(2122),i=n(7294),a=n(3935),s=(n(5697),n(159)),l=n(3869),u=n(626),c=n(4236),d=n(3834);var p="undefined"!==typeof window?i.useLayoutEffect:i.useEffect;var f=i.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,s=void 0!==o&&o,l=e.onRendered,u=i.useState(null),f=u[0],h=u[1],m=(0,d.Z)(i.isValidElement(n)?n.ref:null,t);return p((function(){s||h(function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(r)||document.body)}),[r,s]),p((function(){if(f&&!s)return(0,c.Z)(t,f),function(){(0,c.Z)(t,null)}}),[t,f,s]),p((function(){l&&(f||s)&&l()}),[l,f,s]),s?i.isValidElement(n)?i.cloneElement(n,{ref:m}):n:f?a.createPortal(n,f):f})),h=n(2568),m=n(5192),v=n(2781);var y=n(5991),g=n(7329),b=n(5840),x=n(713);function k(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function E(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function w(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,g.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&k(e,o)}))}function S(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Z(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=(0,u.Z)(e);return t.body===e?(0,x.Z)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=(0,b.Z)();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(E(i)+a,"px"),n=(0,u.Z)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(E(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var C=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return(0,y.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&k(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);w(t,e.mountNode,e.modalRef,r,!0);var o=S(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=S(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Z(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=S(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&k(e.modalRef,!0),w(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&k(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var R=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,s=void 0!==o&&o,l=e.disableRestoreFocus,c=void 0!==l&&l,p=e.getDoc,f=e.isEnabled,h=e.open,m=i.useRef(),v=i.useRef(null),y=i.useRef(null),g=i.useRef(),b=i.useRef(null),x=i.useCallback((function(e){b.current=a.findDOMNode(e)}),[]),k=(0,d.Z)(t.ref,x),E=i.useRef();return i.useEffect((function(){E.current=h}),[h]),!E.current&&h&&"undefined"!==typeof window&&(g.current=p().activeElement),i.useEffect((function(){if(h){var e=(0,u.Z)(b.current);r||!b.current||b.current.contains(e.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var t=function(){null!==b.current&&(e.hasFocus()&&!s&&f()&&!m.current?b.current&&!b.current.contains(e.activeElement)&&b.current.focus():m.current=!1)},n=function(t){!s&&f()&&9===t.keyCode&&e.activeElement===b.current&&(m.current=!0,t.shiftKey?y.current.focus():v.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),c||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,s,c,f,h]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:k}),i.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelEnd"}))},P={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},M=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,l=(0,r.Z)(e,["invisible","open"]);return s?i.createElement("div",(0,o.Z)({"aria-hidden":!0,ref:t},l,{style:(0,o.Z)({},P.root,a?P.invisible:{},l.style)})):null}));var T=new C,O=i.forwardRef((function(e,t){var n=(0,s.Z)(),c=(0,l.Z)({name:"MuiModal",props:(0,o.Z)({},e),theme:n}),p=c.BackdropComponent,y=void 0===p?M:p,g=c.BackdropProps,b=c.children,x=c.closeAfterTransition,E=void 0!==x&&x,w=c.container,S=c.disableAutoFocus,Z=void 0!==S&&S,C=c.disableBackdropClick,P=void 0!==C&&C,O=c.disableEnforceFocus,N=void 0!==O&&O,I=c.disableEscapeKeyDown,A=void 0!==I&&I,D=c.disablePortal,z=void 0!==D&&D,j=c.disableRestoreFocus,L=void 0!==j&&j,F=c.disableScrollLock,$=void 0!==F&&F,B=c.hideBackdrop,V=void 0!==B&&B,_=c.keepMounted,W=void 0!==_&&_,H=c.manager,K=void 0===H?T:H,U=c.onBackdropClick,q=c.onClose,G=c.onEscapeKeyDown,X=c.onRendered,Y=c.open,J=(0,r.Z)(c,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Q=i.useState(!0),ee=Q[0],te=Q[1],ne=i.useRef({}),re=i.useRef(null),oe=i.useRef(null),ie=(0,d.Z)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(c),se=function(){return(0,u.Z)(re.current)},le=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},ue=function(){K.mount(le(),{disableScrollLock:$}),oe.current.scrollTop=0},ce=(0,m.Z)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(w)||se().body;K.add(le(),e),oe.current&&ue()})),de=i.useCallback((function(){return K.isTopModal(le())}),[K]),pe=(0,m.Z)((function(e){re.current=e,e&&(X&&X(),Y&&de()?ue():k(oe.current,!0))})),fe=i.useCallback((function(){K.remove(le())}),[K]);if(i.useEffect((function(){return function(){fe()}}),[fe]),i.useEffect((function(){Y?ce():ae&&E||fe()}),[Y,fe,ae,E,ce]),!W&&!Y&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:v.Z}),me={};return void 0===b.props.tabIndex&&(me.tabIndex=b.props.tabIndex||"-1"),ae&&(me.onEnter=(0,h.Z)((function(){te(!1)}),b.props.onEnter),me.onExited=(0,h.Z)((function(){te(!0),E&&fe()}),b.props.onExited)),i.createElement(f,{ref:pe,container:w,disablePortal:z},i.createElement("div",(0,o.Z)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&de()&&(G&&G(e),A||(e.stopPropagation(),q&&q(e,"escapeKeyDown")))},role:"presentation"},J,{style:(0,o.Z)({},he.root,!Y&&ee?he.hidden:{},J.style)}),V?null:i.createElement(y,(0,o.Z)({open:Y,onClick:function(e){e.target===e.currentTarget&&(U&&U(e),!P&&q&&q(e,"backdropClick"))}},g)),i.createElement(R,{disableEnforceFocus:N,disableAutoFocus:Z,disableRestoreFocus:L,getDoc:se,isEnabled:de,open:Y},i.cloneElement(b,me))))}))},9895:function(e,t,n){"use strict";var r=n(2949),o=n(2122),i=n(7294),a=(n(5697),n(6010)),s=n(4670),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,u=void 0===l?"div":l,c=e.square,d=void 0!==c&&c,p=e.elevation,f=void 0===p?1:p,h=e.variant,m=void 0===h?"elevation":h,v=(0,r.Z)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(u,(0,o.Z)({className:(0,a.Z)(n.root,s,"outlined"===m?n.outlined:n["elevation".concat(f)],!d&&n.rounded),ref:t},v))}));t.Z=(0,s.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,o.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(l)},2318:function(e,t,n){"use strict";var r=n(2122),o=n(2949),i=n(7294),a=(n(5697),n(6010)),s=n(4670),l=n(8025),u={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},c=i.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,c=e.classes,d=e.className,p=e.color,f=void 0===p?"initial":p,h=e.component,m=e.display,v=void 0===m?"initial":m,y=e.gutterBottom,g=void 0!==y&&y,b=e.noWrap,x=void 0!==b&&b,k=e.paragraph,E=void 0!==k&&k,w=e.variant,S=void 0===w?"body1":w,Z=e.variantMapping,C=void 0===Z?u:Z,R=(0,o.Z)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),P=h||(E?"p":C[S]||u[S])||"span";return i.createElement(P,(0,r.Z)({className:(0,a.Z)(c.root,d,"inherit"!==S&&c[S],"initial"!==f&&c["color".concat((0,l.Z)(f))],x&&c.noWrap,g&&c.gutterBottom,E&&c.paragraph,"inherit"!==s&&c["align".concat((0,l.Z)(s))],"initial"!==v&&c["display".concat((0,l.Z)(v))]),ref:t},R))}));t.Z=(0,s.Z)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(c)},7623:function(e,t,n){"use strict";function r(e){return e}n.d(t,{Z:function(){return r}})},9700:function(e,t,n){"use strict";var r=(0,n(8129).Z)();t.Z=r},1120:function(e,t,n){"use strict";var r=n(2122),o=n(3746),i=n(9700);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.Z)(e,(0,r.Z)({defaultTheme:i.Z},t))}},8920:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(159),o=(n(7294),n(9700));function i(){return(0,r.Z)()||o.Z}},4670:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(2122),o=n(2949),i=n(7294),a=(n(5697),n(8679)),s=n.n(a),l=n(3746),u=n(3869),c=n(159),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,d=t.withTheme,p=void 0!==d&&d,f=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]);var m=f,v=(0,l.Z)(e,(0,r.Z)({defaultTheme:a,Component:n,name:f||n.displayName,classNamePrefix:m},h)),y=i.forwardRef((function(e,t){e.classes;var s,l=e.innerRef,d=(0,o.Z)(e,["classes","innerRef"]),h=v((0,r.Z)({},n.defaultProps,e)),m=d;return("string"===typeof f||p)&&(s=(0,c.Z)()||a,f&&(m=(0,u.Z)({theme:s,name:f,props:d})),p&&!m.theme&&(m.theme=s)),i.createElement(n,(0,r.Z)({ref:l||t,classes:h},m))}));return s()(y,n),y}},p=n(9700);var f=function(e,t){return d(e,(0,r.Z)({defaultTheme:p.Z},t))}},5653:function(e,t,n){"use strict";n.d(t,{n:function(){return r},C:function(){return o}});var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},8025:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(288);function o(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2568:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,k=function(e){return x?x(e):e.replace(b,"\\$1")},E=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),w=function(e){function t(t,n,r){var o;(o=e.call(this,t,n,r)||this).selectorText=void 0,o.id=void 0,o.renderable=void 0;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l((0,c.Z)((0,c.Z)(o)),s),o.selectorText="."+k(o.id)),o}(0,u.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=v(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,o.Z)({},e,{allowEmpty:!0}):e;return g(this.selectorText,this.style,n)},(0,l.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(E),S={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new w(e,t,n)}},Z={indent:1,children:!0},C=/@([\w-]+)/,R=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(C);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new X((0,o.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=Z),null==e.indent&&(e.indent=Z.indent),null==e.children&&(e.children=Z.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),P=/@media|@supports\s+/,M={onCreateRule:function(e,t,n){return P.test(e)?new R(e,t,n):null}},T={indent:1,children:!0},O=/@keyframes\s+([\w-]+)/,N=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(O);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:k(s(this,a)),this.rules=new X((0,o.Z)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,o.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=T),null==e.indent&&(e.indent=T.indent),null==e.children&&(e.children=T.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),I=/@keyframes\s+/,A=/\$([\w-]+)/g,D=function(e,t){return"string"===typeof e?e.replace(A,(function(e,n){return n in t?t[n]:e})):e},z=function(e,t,n){var r=e[t],o=D(r,n);o!==r&&(e[t]=o)},j={onCreateRule:function(e,t,n){return"string"===typeof e&&I.test(e)?new N(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&z(e,"animation-name",n.keyframes),"animation"in e&&z(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return D(e,r.keyframes);default:return e}}},L=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,d.Z)(t,["attached"]),o="",i=0;i0){var n=function(e,t){for(var n=0;nt.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var o=function(e){for(var t=ue(),n=0;nn?n:t},he=function(){function e(e){this.getPropertyValue=ie,this.setProperty=ae,this.removeProperty=se,this.setSelector=le,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&Q.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=de();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=ce(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else ue().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=(0,o.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var ke={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Ee=n(159),we=(n(5697),n(7076)),Se=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ze=Date.now(),Ce="fnValues"+Ze,Re="fnStyle"+ ++Ze,Pe=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=h(e,{},n);return r[Re]=t,r},onProcessStyle:function(e,t){if(Ce in t||Re in t)return e;var n={};for(var r in e){var o=e[r];"function"===typeof o&&(delete e[r],n[r]=o)}return t[Ce]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Re];i&&(o.style=i(e)||{});var a=o[Ce];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},Me="@global",Te="@global ",Oe=function(){function e(e,t,n){for(var r in this.type="global",this.at=Me,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new X((0,o.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Ne=function(){function e(e,t,n){this.type="global",this.at=Me,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(Te.length);this.rule=n.jss.createRule(r,t,(0,o.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ie=/\s*,\s*/g;function Ae(e,t){for(var n=e.split(Ie),r="",o=0;o-1){var o=Dt[e];if(!Array.isArray(o))return ut+bt(o)in t&&ct+o;if(!r)return!1;for(var i=0;it?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Se.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[we.Z]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}(),jss:Qt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},tn=i.createContext(en);var nn=-1e9;function rn(){return nn+=1}var on=n(5953);function an(e){var t="function"===typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(l){throw l}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],s=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){s[e]=(0,on.Z)(s[e],a[e])})),s},options:{}}}var sn={};function ln(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=xe({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function un(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!i.disableGeneration){var l=ke.get(i.sheetsManager,a,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},ke.set(i.sheetsManager,a,r,l));var u=(0,o.Z)({},a.options,i,{theme:r,flip:"boolean"===typeof i.flip?i.flip:"rtl"===r.direction});u.generateId=u.serverGenerateClassName||u.generateClassName;var c=i.sheetsRegistry;if(0===l.refs){var d;i.sheetsCache&&(d=ke.get(i.sheetsCache,a,r));var p=a.create(r,s);d||((d=i.jss.createStyleSheet(p,(0,o.Z)({link:!1},u))).attach(),i.sheetsCache&&ke.set(i.sheetsCache,a,r,d)),c&&c.add(d),l.staticSheet=d,l.dynamicStyles=ye(p)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,(0,o.Z)({link:!0},u));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=xe({baseClasses:l.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=l.staticSheet.classes;l.refs+=1}}function cn(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function dn(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=ke.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(ke.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function pn(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}function fn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,l=t.defaultTheme,u=void 0===l?sn:l,c=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),d=an(e),p=n||a||"makeStyles";d.options={index:rn(),name:n,meta:p,classNamePrefix:p};var f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,Ee.Z)()||u,r=(0,o.Z)({},i.useContext(tn),c),a=i.useRef(),l=i.useRef();pn((function(){var o={name:n,state:{},stylesCreator:d,stylesOptions:r,theme:t};return un(o,e),l.current=!1,a.current=o,function(){dn(o)}}),[t,d]),i.useEffect((function(){l.current&&cn(a.current,e),l.current=!0}));var p=ln(a.current,e.classes,s);return p};return f}},6010:function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"===typeof e||"number"===typeof e)o+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,n=void 0!==t&&t,r=e.hybrid,o=void 0!==r&&r,i=e.hasQuery,a=void 0!==i&&i;return n||o&&a}},7947:function(e,t,n){"use strict";var r=n(1682);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.__esModule=!0,t.defaultHead=p,t.default=void 0;var i,a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7294)),s=(i=n(617))&&i.__esModule?i:{default:i},l=n(3367),u=n(4287),c=n(7845);function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[a.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(a.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var h=["name","httpEquiv","charSet","itemProp"];function m(e,t){return e.reduce((function(e,t){var n=a.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(f,[]).reverse().concat(p(t.inAmpMode)).filter(function(){var e=new Set,t=new Set,n=new Set,r={};return function(o){var i=!0,a=!1;if(o.key&&"number"!==typeof o.key&&o.key.indexOf("$")>0){a=!0;var s=o.key.slice(o.key.indexOf("$")+1);e.has(s)?i=!1:e.add(s)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(var l=0,u=h.length;l=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,a=!0,i=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){i=!0,u=e},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw u}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var r=function(){return y=!0,t()};j(v,e).then(r,r)}))},window.__NEXT_PRELOADREADY=w.preloadReady;var P=w;t.default=P},5152:function(e,t,r){e.exports=r(1647)},2447:function(e,t,r){"use strict";function n(e,t,r,n,o,u,a){try{var i=e[u](a),l=i.value}catch(c){return void r(c)}i.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,u){var a=e.apply(t,r);function i(e){n(a,o,u,i,l,"next",e)}function l(e){n(a,o,u,i,l,"throw",e)}i(void 0)}))}}r.d(t,{Z:function(){return o}})},1163:function(e,t,r){e.exports=r(2441)}}]);
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/chunks/framework-2191d16384373197bc0a.js b/striker-ui/out/_next/static/chunks/framework-c93ed74a065331c4bd75.js
similarity index 89%
rename from striker-ui/out/_next/static/chunks/framework-2191d16384373197bc0a.js
rename to striker-ui/out/_next/static/chunks/framework-c93ed74a065331c4bd75.js
index c4f1aa36..cbe52aca 100644
--- a/striker-ui/out/_next/static/chunks/framework-2191d16384373197bc0a.js
+++ b/striker-ui/out/_next/static/chunks/framework-c93ed74a065331c4bd75.js
@@ -1 +1 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{2703:function(e,t,n){"use strict";var r=n(414);function l(){}function a(){}a.resetWarningCache=l,e.exports=function(){function e(e,t,n,l,a,o){if(o!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:l};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:function(e,t,n){"use strict";var r=n(7294),l=n(6086),a=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,l,r)&&(n=null),r||null===l?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=null===n?3!==l.type&&"":n:(t=l.attributeName,r=l.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(l=l.type)||4===l&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,S=60106,_=60107,x=60108,C=60114,P=60109,N=60110,T=60112,L=60113,z=60120,O=60115,R=60116,M=60121,I=60128,D=60129,F=60130,U=60131;if("function"===typeof Symbol&&Symbol.for){var A=Symbol.for;E=A("react.element"),S=A("react.portal"),_=A("react.fragment"),x=A("react.strict_mode"),C=A("react.profiler"),P=A("react.provider"),N=A("react.context"),T=A("react.forward_ref"),L=A("react.suspense"),z=A("react.suspense_list"),O=A("react.memo"),R=A("react.lazy"),M=A("react.block"),A("react.scope"),I=A("react.opaque.id"),D=A("react.debug_trace_mode"),F=A("react.offscreen"),U=A("react.legacy_hidden")}var V,j="function"===typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=j&&e[j]||e["@@iterator"])?e:null}function W(e){if(void 0===V)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var $=!1;function H(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(i){var r=i}Reflect.construct(e,[],t)}else{try{t.call()}catch(i){r=i}e.call(t.prototype)}else{try{throw Error()}catch(i){r=i}e()}}catch(i){if(i&&r&&"string"===typeof i.stack){for(var l=i.stack.split("\n"),a=r.stack.split("\n"),o=l.length-1,u=a.length-1;1<=o&&0<=u&&l[o]!==a[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==a[u]){if(1!==o||1!==u)do{if(o--,0>--u||l[o]!==a[u])return"\n"+l[o].replace(" at new "," at ")}while(1<=o&&0<=u);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case C:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case O:return q(e.type);case M:return q(e._render);case R:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?le(e,t.type,n):t.hasOwnProperty("defaultValue")&&le(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function le(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=l({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function se(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ye=(ve=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function ke(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=ke(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=l({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Ne=null,Te=null;function Le(e){if(e=el(e)){if("function"!==typeof Pe)throw Error(o(280));var t=e.stateNode;t&&(t=nl(t),Pe(e.stateNode,e.type,t))}}function ze(e){Ne?Te?Te.push(e):Te=[e]:Ne=e}function Oe(){if(Ne){var e=Ne,t=Te;if(Te=Ne=null,Le(e),t)for(e=0;e(r=31-$t(r))?0:1<n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-$t(t)]=n}var $t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Qt|0)|0},Ht=Math.log,Qt=Math.LN2;var qt=a.unstable_UserBlockingPriority,Kt=a.unstable_runWithPriority,Yt=!0;function Xt(e,t,n,r){Fe||Ie();var l=Zt,a=Fe;Fe=!0;try{Me(l,e,t,n,r)}finally{(Fe=a)||Ae()}}function Gt(e,t,n,r){Kt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var l;if(Yt)if((l=0===(4&t))&&0=In),Un=String.fromCharCode(32),An=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){ze(r),0<(t=Mr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,qn=null;function Kn(e){Cr(e,0)}function Yn(e){if(G(tl(e)))return e}function Xn(e,t){if("change"===e)return t}var Gn=!1;if(f){var Zn;if(f){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Gn=Zn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Z(r)||("selectionStart"in(r=vr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&sr(gr,r)||(gr=r,0<(r=Mr(yr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Mt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Er=0;Eral||(e.current=ll[al],ll[al]=null,al--)}function il(e,t){al++,ll[al]=e.current,e.current=t}var sl={},cl=ol(sl),fl=ol(!1),dl=sl;function pl(e,t){var n=e.type.contextTypes;if(!n)return sl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function hl(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ml(){ul(fl),ul(cl)}function vl(e,t,n){if(cl.current!==sl)throw Error(o(168));il(cl,t),il(fl,n)}function yl(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,q(t)||"Unknown",a));return l({},n,r)}function gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sl,dl=cl.current,il(cl,e),il(fl,fl.current),!0}function bl(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=yl(e,t,dl),r.__reactInternalMemoizedMergedChildContext=e,ul(fl),ul(cl),il(cl,e)):ul(fl),il(fl,n)}var wl=null,kl=null,El=a.unstable_runWithPriority,Sl=a.unstable_scheduleCallback,_l=a.unstable_cancelCallback,xl=a.unstable_shouldYield,Cl=a.unstable_requestPaint,Pl=a.unstable_now,Nl=a.unstable_getCurrentPriorityLevel,Tl=a.unstable_ImmediatePriority,Ll=a.unstable_UserBlockingPriority,zl=a.unstable_NormalPriority,Ol=a.unstable_LowPriority,Rl=a.unstable_IdlePriority,Ml={},Il=void 0!==Cl?Cl:function(){},Dl=null,Fl=null,Ul=!1,Al=Pl(),Vl=1e4>Al?Pl:function(){return Pl()-Al};function jl(){switch(Nl()){case Tl:return 99;case Ll:return 98;case zl:return 97;case Ol:return 96;case Rl:return 95;default:throw Error(o(332))}}function Bl(e){switch(e){case 99:return Tl;case 98:return Ll;case 97:return zl;case 96:return Ol;case 95:return Rl;default:throw Error(o(332))}}function Wl(e,t){return e=Bl(e),El(e,t)}function $l(e,t,n){return e=Bl(e),Sl(e,t,n)}function Hl(){if(null!==Fl){var e=Fl;Fl=null,_l(e)}Ql()}function Ql(){if(!Ul&&null!==Dl){Ul=!0;var e=0;try{var t=Dl;Wl(99,(function(){for(;em?(v=f,f=null):v=f.sibling;var y=p(l,f,u[m],i);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,m),null===c?s=y:c.sibling=y,c=y,f=v}if(m===u.length)return n(l,f),s;if(null===f){for(;mv?(y=m,m=null):y=m.sibling;var b=p(l,m,g.value,s);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(l,m),u=a(b,u,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(l,m),c;if(null===m){for(;!g.done;v++,g=i.next())null!==(g=d(l,g.value,s))&&(u=a(g,u,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(l,m);!g.done;v++,g=i.next())null!==(g=h(m,l,v,g.value,s))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),u=a(g,u,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(l,e)})),c}return function(e,r,a,i){var s="object"===typeof a&&null!==a&&a.type===_&&null===a.key;s&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case E:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(a.type===_){n(e,s.sibling),(r=l(s,a.props.children)).return=e,e=r;break e}break;default:if(s.elementType===a.type){n(e,s.sibling),(r=l(s,a.props)).ref=wa(e,s,a),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}a.type===_?((r=Hi(a.props.children,e.mode,i,a.key)).return=e,e=r):((i=$i(a.type,a.key,a.props,null,e.mode,i)).ref=wa(e,r,a),i.return=e,e=i)}return u(e);case S:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ki(a,e.mode,i)).return=e,e=r}return u(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=l(r,a)).return=e,e=r):(n(e,r),(r=qi(a,e.mode,i)).return=e,e=r),u(e);if(ba(a))return m(e,r,a,i);if(B(a))return v(e,r,a,i);if(c&&ka(e,a),"undefined"===typeof a&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var Sa=Ea(!0),_a=Ea(!1),xa={},Ca=ol(xa),Pa=ol(xa),Na=ol(xa);function Ta(e){if(e===xa)throw Error(o(174));return e}function La(e,t){switch(il(Na,t),il(Pa,e),il(Ca,xa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ul(Ca),il(Ca,t)}function za(){ul(Ca),ul(Pa),ul(Na)}function Oa(e){Ta(Na.current);var t=Ta(Ca.current),n=he(t,e.type);t!==n&&(il(Pa,e),il(Ca,n))}function Ra(e){Pa.current===e&&(ul(Ca),ul(Pa))}var Ma=ol(0);function Ia(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Da=null,Fa=null,Ua=!1;function Aa(e,t){var n=ji(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Va(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function ja(e){if(Ua){var t=Fa;if(t){var n=t;if(!Va(e,t)){if(!(t=Hr(n.nextSibling))||!Va(e,t))return e.flags=-1025&e.flags|2,Ua=!1,void(Da=e);Aa(Da,n)}Da=e,Fa=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Ua=!1,Da=e}}function Ba(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Da=e}function Wa(e){if(e!==Da)return!1;if(!Ua)return Ba(e),Ua=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!jr(t,e.memoizedProps))for(t=Fa;t;)Aa(e,t),t=Hr(t.nextSibling);if(Ba(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fa=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fa=null}}else Fa=Da?Hr(e.stateNode.nextSibling):null;return!0}function $a(){Fa=Da=null,Ua=!1}var Ha=[];function Qa(){for(var e=0;ea))throw Error(o(301));a+=1,Za=Ga=null,t.updateQueue=null,qa.current=Oo,e=n(r,l)}while(eo)}if(qa.current=To,t=null!==Ga&&null!==Ga.next,Ya=0,Za=Ga=Xa=null,Ja=!1,t)throw Error(o(300));return e}function lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Za?Xa.memoizedState=Za=e:Za=Za.next=e,Za}function ao(){if(null===Ga){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Ga.next;var t=null===Za?Xa.memoizedState:Za.next;if(null!==t)Za=t,Ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ga=e).memoizedState,baseState:Ga.baseState,baseQueue:Ga.baseQueue,queue:Ga.queue,next:null},null===Za?Xa.memoizedState=Za=e:Za=Za.next=e}return Za}function oo(e,t){return"function"===typeof t?t(e):t}function uo(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ga,l=r.baseQueue,a=n.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,n.pending=null}if(null!==l){l=l.next,r=r.baseState;var i=u=a=null,s=l;do{var c=s.lane;if((Ya&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===i?(u=i=f,a=r):i=i.next=f,Xa.lanes|=c,Uu|=c}s=s.next}while(null!==s&&s!==l);null===i?a=r:i.next=u,ur(r,t.memoizedState)||(Mo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=i,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function io(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,a=t.memoizedState;if(null!==l){n.pending=null;var u=l=l.next;do{a=e(a,u.action),u=u.next}while(u!==l);ur(a,t.memoizedState)||(Mo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function so(e,t,n){var r=t._getVersion;r=r(t._source);var l=t._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(Ya&e)===e)&&(t._workInProgressVersionPrimary=r,Ha.push(t))),e)return n(t._source);throw Ha.push(t),Error(o(350))}function co(e,t,n,r){var l=Lu;if(null===l)throw Error(o(349));var a=t._getVersion,u=a(t._source),i=qa.current,s=i.useState((function(){return so(l,t,n)})),c=s[1],f=s[0];s=Za;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Xa;return e.memoizedState={refs:p,source:t,subscribe:r},i.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!ur(u,e)){e=n(t._source),ur(f,e)||(c(e),e=ci(v),l.mutableReadLanes|=e&l.pendingLanes),e=l.mutableReadLanes,l.entangledLanes|=e;for(var r=l.entanglements,o=e;0n?98:n,(function(){e(!0)})),Wl(97<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Yr]=t,e[Xr]=r,Ho(e,t),t.stateNode=e,s=xe(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),a=r;break;case"iframe":case"object":case"embed":Pr("load",e),a=r;break;case"video":case"audio":for(a=0;aWu&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Ia(s))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ru(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Ua)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vl()-r.renderingStartTime>Wu&&1073741824!==n&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vl(),n.sibling=null,t=Ma.current,il(Ma,u?1&t|2:1&t),n):null;case 23:case 24:return wi(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function au(e){switch(e.tag){case 1:hl(e.type)&&ml();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(za(),ul(fl),ul(cl),Qa(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return ul(Ma),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ul(Ma),null;case 4:return za(),null;case 10:return ea(e),null;case 23:case 24:return wi(),null;default:return null}}function ou(e,t){try{var n="",r=t;do{n+=Q(r),r=r.return}while(r);var l=n}catch(a){l="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:l}}function uu(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ho=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qo=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Ta(Ca.current);var o,u=null;switch(n){case"input":a=J(e,a),r=J(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=l({},a,{value:void 0}),r=l({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in _e(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var s=a[f];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(i.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(u||(u=[]),u.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(i.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),u||s===c||(u=[])):"object"===typeof c&&null!==c&&c.$$typeof===I?c.toString():(u=u||[]).push(f,c))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},qo=function(e,t,n,r){n!==r&&(t.flags|=4)};var iu="function"===typeof WeakMap?WeakMap:Map;function su(e,t,n){(n=ua(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qu||(qu=!0,Ku=r),uu(0,t)},n}function cu(e,t,n){(n=ua(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var l=t.value;n.payload=function(){return uu(0,t),r(l)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Yu?Yu=new Set([this]):Yu.add(this),uu(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fu="function"===typeof WeakSet?WeakSet:Set;function du(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Fi(e,n)}else t.current=null}function pu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Kl(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$r(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function hu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var l=e;r=l.next,0!==(4&(l=l.tag))&&0!==(1&l)&&(Mi(n,e),Ri(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Kl(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function mu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var l=n.memoizedProps.style;l=void 0!==l&&null!==l&&l.hasOwnProperty("display")?l.display:null,r.style.display=ke("display",l)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function vu(e,t){if(kl&&"function"===typeof kl.onCommitFiberUnmount)try{kl.onCommitFiberUnmount(wl,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,l=r.destroy;if(r=r.tag,void 0!==l)if(0!==(4&r))Mi(t,n);else{r=t;try{l()}catch(a){Fi(r,a)}}n=n.next}while(n!==e)}break;case 1:if(du(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Fi(t,a)}break;case 5:du(t);break;case 4:Eu(e,t)}}function yu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gu(e){return 5===e.tag||3===e.tag||4===e.tag}function bu(e){e:{for(var t=e.return;null!==t;){if(gu(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?wu(e,n,t):ku(e,n,t)}function wu(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(wu(e,t,n),e=e.sibling;null!==e;)wu(e,t,n),e=e.sibling}function ku(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}function Eu(e,t){for(var n,r,l=t,a=!1;;){if(!a){a=l.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===l.tag||6===l.tag){e:for(var u=e,i=l,s=i;;)if(vu(u,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break e;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(u=n,i=l.stateNode,8===u.nodeType?u.parentNode.removeChild(i):u.removeChild(i)):n.removeChild(l.stateNode)}else if(4===l.tag){if(null!==l.child){n=l.stateNode.containerInfo,r=!0,l.child.return=l,l=l.child;continue}}else if(vu(e,l),null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)return;4===(l=l.return).tag&&(a=!1)}l.sibling.return=l.return,l=l.sibling}}function Su(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var l=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,l),t=xe(e,r),l=0;ll&&(l=u),n&=~a}if(n=l,10<(n=(120>(n=Vl()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cu(n/1960))-n)){e.timeoutHandle=Br(Ti.bind(null,e),n);break}Ti(e);break;case 5:Ti(e);break;default:throw Error(o(329))}}return pi(e,Vl()),e.callbackNode===t?hi.bind(null,e):null}function mi(e,t){for(t&=~Vu,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Iu&&(Iu=2),i=ou(i,u),d=o;do{switch(d.tag){case 3:a=i,d.flags|=4096,t&=-t,d.lanes|=t,sa(d,su(0,a,t));break e;case 1:a=i;var k=d.type,E=d.stateNode;if(0===(64&d.flags)&&("function"===typeof k.getDerivedStateFromError||null!==E&&"function"===typeof E.componentDidCatch&&(null===Yu||!Yu.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,sa(d,cu(d,a,t));break e}}d=d.return}while(null!==d)}Ni(n)}catch(S){t=S,zu===n&&null!==n&&(zu=n=n.return);continue}break}}function Si(){var e=Pu.current;return Pu.current=To,null===e?To:e}function _i(e,t){var n=Tu;Tu|=16;var r=Si();for(Lu===e&&Ou===t||ki(e,t);;)try{xi();break}catch(l){Ei(e,l)}if(Jl(),Tu=n,Pu.current=r,null!==zu)throw Error(o(261));return Lu=null,Ou=0,Iu}function xi(){for(;null!==zu;)Pi(zu)}function Ci(){for(;null!==zu&&!xl();)Pi(zu)}function Pi(e){var t=Hu(e.alternate,e,Ru);e.memoizedProps=e.pendingProps,null===t?Ni(e):zu=t,Nu.current=null}function Ni(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=lu(n,t,Ru)))return void(zu=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ru)||0===(4&n.mode)){for(var r=0,l=n.child;null!==l;)r|=l.lanes|l.childLanes,l=l.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1u&&(i=u,u=E,E=i),i=fr(b,E),a=fr(b,u),i&&a&&(1!==k.rangeCount||k.anchorNode!==i.node||k.anchorOffset!==i.offset||k.focusNode!==a.node||k.focusOffset!==a.offset)&&((w=w.createRange()).setStart(i.node,i.offset),k.removeAllRanges(),E>u?(k.addRange(w),k.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;bVl()-Bu?ki(e,0):Vu|=n),pi(e,t)}function Ai(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===jl()?1:2:(0===ai&&(ai=Fu),0===(t=jt(62914560&~ai))&&(t=4194304))),n=si(),null!==(e=di(e,t))&&(Wt(e,t,n),pi(e,n))}function Vi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ji(e,t,n,r){return new Vi(e,t,n,r)}function Bi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wi(e,t){var n=e.alternate;return null===n?((n=ji(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $i(e,t,n,r,l,a){var u=2;if(r=e,"function"===typeof e)Bi(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case _:return Hi(n.children,l,a,t);case D:u=8,l|=16;break;case x:u=8,l|=1;break;case C:return(e=ji(12,n,t,8|l)).elementType=C,e.type=C,e.lanes=a,e;case L:return(e=ji(13,n,t,l)).type=L,e.elementType=L,e.lanes=a,e;case z:return(e=ji(19,n,t,l)).elementType=z,e.lanes=a,e;case F:return Qi(n,l,a,t);case U:return(e=ji(24,n,t,l)).elementType=U,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:u=10;break e;case N:u=9;break e;case T:u=11;break e;case O:u=14;break e;case R:u=16,r=null;break e;case M:u=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=ji(u,n,t,l)).elementType=e,t.type=r,t.lanes=a,t}function Hi(e,t,n,r){return(e=ji(7,e,r,t)).lanes=n,e}function Qi(e,t,n,r){return(e=ji(23,e,r,t)).elementType=F,e.lanes=n,e}function qi(e,t,n){return(e=ji(6,e,null,t)).lanes=n,e}function Ki(e,t,n){return(t=ji(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yi(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Xi(e,t,n){var r=3=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,l=e[r];if(!(void 0!==l&&0x(o,n))void 0!==i&&0>x(i,o)?(e[r]=i,e[u]=n,r=u):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==i&&0>x(i,n)))break e;e[r]=i,e[u]=n,r=u}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],P=[],N=1,T=null,L=3,z=!1,O=!1,R=!1;function M(e){for(var t=S(P);null!==t;){if(null===t.callback)_(P);else{if(!(t.startTime<=e))break;_(P),t.sortIndex=t.expirationTime,E(C,t)}t=S(P)}}function I(e){if(R=!1,M(e),!O)if(null!==S(C))O=!0,n(D);else{var t=S(P);null!==t&&r(I,t.startTime-e)}}function D(e,n){O=!1,R&&(R=!1,l()),z=!0;var a=L;try{for(M(n),T=S(C);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=T.callback;if("function"===typeof o){T.callback=null,L=T.priorityLevel;var u=o(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?T.callback=u:T===S(C)&&_(C),M(n)}else _(C);T=S(C)}if(null!==T)var i=!0;else{var s=S(P);null!==s&&r(I,s.startTime-n),i=!1}return i}finally{T=null,L=a,z=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||z||(O=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,a,o){var u=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0u?(e.sortIndex=o,E(P,e),null===S(C)&&e===S(P)&&(R?l():R=!0,r(I,o-u))):(e.sortIndex=i,E(C,e),O||z||(O=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},3840:function(e,t,n){"use strict";e.exports=n(53)}}]);
\ No newline at end of file
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{2703:function(e,t,n){"use strict";var r=n(414);function l(){}function a(){}a.resetWarningCache=l,e.exports=function(){function e(e,t,n,l,a,o){if(o!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:l};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4448:function(e,t,n){"use strict";var r=n(7294),l=n(6086),a=n(3840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,l,r)&&(n=null),r||null===l?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=null===n?3!==l.type&&"":n:(t=l.attributeName,r=l.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(l=l.type)||4===l&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,S=60103,E=60106,_=60107,x=60108,C=60114,P=60109,N=60110,T=60112,L=60113,z=60120,O=60115,R=60116,M=60121,I=60128,D=60129,F=60130,U=60131;if("function"===typeof Symbol&&Symbol.for){var A=Symbol.for;S=A("react.element"),E=A("react.portal"),_=A("react.fragment"),x=A("react.strict_mode"),C=A("react.profiler"),P=A("react.provider"),N=A("react.context"),T=A("react.forward_ref"),L=A("react.suspense"),z=A("react.suspense_list"),O=A("react.memo"),R=A("react.lazy"),M=A("react.block"),A("react.scope"),I=A("react.opaque.id"),D=A("react.debug_trace_mode"),F=A("react.offscreen"),U=A("react.legacy_hidden")}var V,j="function"===typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=j&&e[j]||e["@@iterator"])?e:null}function W(e){if(void 0===V)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return"\n"+V+e}var $=!1;function H(e,t){if(!e||$)return"";$=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(i){var r=i}Reflect.construct(e,[],t)}else{try{t.call()}catch(i){r=i}e.call(t.prototype)}else{try{throw Error()}catch(i){r=i}e()}}catch(i){if(i&&r&&"string"===typeof i.stack){for(var l=i.stack.split("\n"),a=r.stack.split("\n"),o=l.length-1,u=a.length-1;1<=o&&0<=u&&l[o]!==a[u];)u--;for(;1<=o&&0<=u;o--,u--)if(l[o]!==a[u]){if(1!==o||1!==u)do{if(o--,0>--u||l[o]!==a[u])return"\n"+l[o].replace(" at new "," at ")}while(1<=o&&0<=u);break}}}finally{$=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case E:return"Portal";case C:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case z:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case O:return q(e.type);case M:return q(e._render);case R:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?le(e,t.type,n):t.hasOwnProperty("defaultValue")&&le(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function le(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=l({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function se(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve,ge=(ve=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function ke(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Se(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=ke(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Ee=l({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(Ee[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Ne=null,Te=null;function Le(e){if(e=el(e)){if("function"!==typeof Pe)throw Error(o(280));var t=e.stateNode;t&&(t=nl(t),Pe(e.stateNode,e.type,t))}}function ze(e){Ne?Te?Te.push(e):Te=[e]:Ne=e}function Oe(){if(Ne){var e=Ne,t=Te;if(Te=Ne=null,Le(e),t)for(e=0;e(r=31-$t(r))?0:1<n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-$t(t)]=n}var $t=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Qt|0)|0},Ht=Math.log,Qt=Math.LN2;var qt=a.unstable_UserBlockingPriority,Kt=a.unstable_runWithPriority,Yt=!0;function Xt(e,t,n,r){Fe||Ie();var l=Zt,a=Fe;Fe=!0;try{Me(l,e,t,n,r)}finally{(Fe=a)||Ae()}}function Gt(e,t,n,r){Kt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var l;if(Yt)if((l=0===(4&t))&&0=In),Un=String.fromCharCode(32),An=!1;function Vn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){ze(r),0<(t=Mr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,qn=null;function Kn(e){Cr(e,0)}function Yn(e){if(G(tl(e)))return e}function Xn(e,t){if("change"===e)return t}var Gn=!1;if(f){var Zn;if(f){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Gn=Zn&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,gr=null,yr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==Z(r)||("selectionStart"in(r=vr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&sr(yr,r)||(yr=r,0<(r=Mr(gr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Mt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sral||(e.current=ll[al],ll[al]=null,al--)}function il(e,t){al++,ll[al]=e.current,e.current=t}var sl={},cl=ol(sl),fl=ol(!1),dl=sl;function pl(e,t){var n=e.type.contextTypes;if(!n)return sl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function hl(e){return null!==(e=e.childContextTypes)&&void 0!==e}function ml(){ul(fl),ul(cl)}function vl(e,t,n){if(cl.current!==sl)throw Error(o(168));il(cl,t),il(fl,n)}function gl(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,q(t)||"Unknown",a));return l({},n,r)}function yl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sl,dl=cl.current,il(cl,e),il(fl,fl.current),!0}function bl(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=gl(e,t,dl),r.__reactInternalMemoizedMergedChildContext=e,ul(fl),ul(cl),il(cl,e)):ul(fl),il(fl,n)}var wl=null,kl=null,Sl=a.unstable_runWithPriority,El=a.unstable_scheduleCallback,_l=a.unstable_cancelCallback,xl=a.unstable_shouldYield,Cl=a.unstable_requestPaint,Pl=a.unstable_now,Nl=a.unstable_getCurrentPriorityLevel,Tl=a.unstable_ImmediatePriority,Ll=a.unstable_UserBlockingPriority,zl=a.unstable_NormalPriority,Ol=a.unstable_LowPriority,Rl=a.unstable_IdlePriority,Ml={},Il=void 0!==Cl?Cl:function(){},Dl=null,Fl=null,Ul=!1,Al=Pl(),Vl=1e4>Al?Pl:function(){return Pl()-Al};function jl(){switch(Nl()){case Tl:return 99;case Ll:return 98;case zl:return 97;case Ol:return 96;case Rl:return 95;default:throw Error(o(332))}}function Bl(e){switch(e){case 99:return Tl;case 98:return Ll;case 97:return zl;case 96:return Ol;case 95:return Rl;default:throw Error(o(332))}}function Wl(e,t){return e=Bl(e),Sl(e,t)}function $l(e,t,n){return e=Bl(e),El(e,t,n)}function Hl(){if(null!==Fl){var e=Fl;Fl=null,_l(e)}Ql()}function Ql(){if(!Ul&&null!==Dl){Ul=!0;var e=0;try{var t=Dl;Wl(99,(function(){for(;em?(v=f,f=null):v=f.sibling;var g=p(l,f,u[m],i);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(l,f),o=a(g,o,m),null===c?s=g:c.sibling=g,c=g,f=v}if(m===u.length)return n(l,f),s;if(null===f){for(;mv?(g=m,m=null):g=m.sibling;var b=p(l,m,y.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(l,m),u=a(b,u,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(l,m),c;if(null===m){for(;!y.done;v++,y=i.next())null!==(y=d(l,y.value,s))&&(u=a(y,u,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(l,m);!y.done;v++,y=i.next())null!==(y=h(m,l,v,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),u=a(y,u,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(l,e)})),c}return function(e,r,a,i){var s="object"===typeof a&&null!==a&&a.type===_&&null===a.key;s&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case S:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(a.type===_){n(e,s.sibling),(r=l(s,a.props.children)).return=e,e=r;break e}break;default:if(s.elementType===a.type){n(e,s.sibling),(r=l(s,a.props)).ref=wa(e,s,a),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}a.type===_?((r=Hi(a.props.children,e.mode,i,a.key)).return=e,e=r):((i=$i(a.type,a.key,a.props,null,e.mode,i)).ref=wa(e,r,a),i.return=e,e=i)}return u(e);case E:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ki(a,e.mode,i)).return=e,e=r}return u(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=l(r,a)).return=e,e=r):(n(e,r),(r=qi(a,e.mode,i)).return=e,e=r),u(e);if(ba(a))return m(e,r,a,i);if(B(a))return v(e,r,a,i);if(c&&ka(e,a),"undefined"===typeof a&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var Ea=Sa(!0),_a=Sa(!1),xa={},Ca=ol(xa),Pa=ol(xa),Na=ol(xa);function Ta(e){if(e===xa)throw Error(o(174));return e}function La(e,t){switch(il(Na,t),il(Pa,e),il(Ca,xa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ul(Ca),il(Ca,t)}function za(){ul(Ca),ul(Pa),ul(Na)}function Oa(e){Ta(Na.current);var t=Ta(Ca.current),n=he(t,e.type);t!==n&&(il(Pa,e),il(Ca,n))}function Ra(e){Pa.current===e&&(ul(Ca),ul(Pa))}var Ma=ol(0);function Ia(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Da=null,Fa=null,Ua=!1;function Aa(e,t){var n=ji(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Va(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function ja(e){if(Ua){var t=Fa;if(t){var n=t;if(!Va(e,t)){if(!(t=Hr(n.nextSibling))||!Va(e,t))return e.flags=-1025&e.flags|2,Ua=!1,void(Da=e);Aa(Da,n)}Da=e,Fa=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Ua=!1,Da=e}}function Ba(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Da=e}function Wa(e){if(e!==Da)return!1;if(!Ua)return Ba(e),Ua=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!jr(t,e.memoizedProps))for(t=Fa;t;)Aa(e,t),t=Hr(t.nextSibling);if(Ba(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Fa=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fa=null}}else Fa=Da?Hr(e.stateNode.nextSibling):null;return!0}function $a(){Fa=Da=null,Ua=!1}var Ha=[];function Qa(){for(var e=0;ea))throw Error(o(301));a+=1,Za=Ga=null,t.updateQueue=null,qa.current=Oo,e=n(r,l)}while(eo)}if(qa.current=To,t=null!==Ga&&null!==Ga.next,Ya=0,Za=Ga=Xa=null,Ja=!1,t)throw Error(o(300));return e}function lo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Za?Xa.memoizedState=Za=e:Za=Za.next=e,Za}function ao(){if(null===Ga){var e=Xa.alternate;e=null!==e?e.memoizedState:null}else e=Ga.next;var t=null===Za?Xa.memoizedState:Za.next;if(null!==t)Za=t,Ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ga=e).memoizedState,baseState:Ga.baseState,baseQueue:Ga.baseQueue,queue:Ga.queue,next:null},null===Za?Xa.memoizedState=Za=e:Za=Za.next=e}return Za}function oo(e,t){return"function"===typeof t?t(e):t}function uo(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ga,l=r.baseQueue,a=n.pending;if(null!==a){if(null!==l){var u=l.next;l.next=a.next,a.next=u}r.baseQueue=l=a,n.pending=null}if(null!==l){l=l.next,r=r.baseState;var i=u=a=null,s=l;do{var c=s.lane;if((Ya&c)===c)null!==i&&(i=i.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===i?(u=i=f,a=r):i=i.next=f,Xa.lanes|=c,Uu|=c}s=s.next}while(null!==s&&s!==l);null===i?a=r:i.next=u,ur(r,t.memoizedState)||(Mo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=i,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function io(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,a=t.memoizedState;if(null!==l){n.pending=null;var u=l=l.next;do{a=e(a,u.action),u=u.next}while(u!==l);ur(a,t.memoizedState)||(Mo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function so(e,t,n){var r=t._getVersion;r=r(t._source);var l=t._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(Ya&e)===e)&&(t._workInProgressVersionPrimary=r,Ha.push(t))),e)return n(t._source);throw Ha.push(t),Error(o(350))}function co(e,t,n,r){var l=Lu;if(null===l)throw Error(o(349));var a=t._getVersion,u=a(t._source),i=qa.current,s=i.useState((function(){return so(l,t,n)})),c=s[1],f=s[0];s=Za;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Xa;return e.memoizedState={refs:p,source:t,subscribe:r},i.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!ur(u,e)){e=n(t._source),ur(f,e)||(c(e),e=ci(v),l.mutableReadLanes|=e&l.pendingLanes),e=l.mutableReadLanes,l.entangledLanes|=e;for(var r=l.entanglements,o=e;0n?98:n,(function(){e(!0)})),Wl(97<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Yr]=t,e[Xr]=r,Ho(e,t),t.stateNode=e,s=xe(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),a=r;break;case"iframe":case"object":case"embed":Pr("load",e),a=r;break;case"video":case"audio":for(a=0;aWu&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Ia(s))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ru(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Ua)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vl()-r.renderingStartTime>Wu&&1073741824!==n&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vl(),n.sibling=null,t=Ma.current,il(Ma,u?1&t|2:1&t),n):null;case 23:case 24:return wi(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function au(e){switch(e.tag){case 1:hl(e.type)&&ml();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(za(),ul(fl),ul(cl),Qa(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Ra(e),null;case 13:return ul(Ma),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ul(Ma),null;case 4:return za(),null;case 10:return ea(e),null;case 23:case 24:return wi(),null;default:return null}}function ou(e,t){try{var n="",r=t;do{n+=Q(r),r=r.return}while(r);var l=n}catch(a){l="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:l}}function uu(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ho=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qo=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Ta(Ca.current);var o,u=null;switch(n){case"input":a=J(e,a),r=J(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=l({},a,{value:void 0}),r=l({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in _e(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var s=a[f];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(i.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(u||(u=[]),u.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(i.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),u||s===c||(u=[])):"object"===typeof c&&null!==c&&c.$$typeof===I?c.toString():(u=u||[]).push(f,c))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},qo=function(e,t,n,r){n!==r&&(t.flags|=4)};var iu="function"===typeof WeakMap?WeakMap:Map;function su(e,t,n){(n=ua(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qu||(qu=!0,Ku=r),uu(0,t)},n}function cu(e,t,n){(n=ua(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var l=t.value;n.payload=function(){return uu(0,t),r(l)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Yu?Yu=new Set([this]):Yu.add(this),uu(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fu="function"===typeof WeakSet?WeakSet:Set;function du(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Fi(e,n)}else t.current=null}function pu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Kl(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$r(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function hu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var l=e;r=l.next,0!==(4&(l=l.tag))&&0!==(1&l)&&(Mi(n,e),Ri(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Kl(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Vr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&St(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function mu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var l=n.memoizedProps.style;l=void 0!==l&&null!==l&&l.hasOwnProperty("display")?l.display:null,r.style.display=ke("display",l)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function vu(e,t){if(kl&&"function"===typeof kl.onCommitFiberUnmount)try{kl.onCommitFiberUnmount(wl,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,l=r.destroy;if(r=r.tag,void 0!==l)if(0!==(4&r))Mi(t,n);else{r=t;try{l()}catch(a){Fi(r,a)}}n=n.next}while(n!==e)}break;case 1:if(du(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Fi(t,a)}break;case 5:du(t);break;case 4:Su(e,t)}}function gu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function yu(e){return 5===e.tag||3===e.tag||4===e.tag}function bu(e){e:{for(var t=e.return;null!==t;){if(yu(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||yu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?wu(e,n,t):ku(e,n,t)}function wu(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(wu(e,t,n),e=e.sibling;null!==e;)wu(e,t,n),e=e.sibling}function ku(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}function Su(e,t){for(var n,r,l=t,a=!1;;){if(!a){a=l.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===l.tag||6===l.tag){e:for(var u=e,i=l,s=i;;)if(vu(u,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===i)break e;for(;null===s.sibling;){if(null===s.return||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(u=n,i=l.stateNode,8===u.nodeType?u.parentNode.removeChild(i):u.removeChild(i)):n.removeChild(l.stateNode)}else if(4===l.tag){if(null!==l.child){n=l.stateNode.containerInfo,r=!0,l.child.return=l,l=l.child;continue}}else if(vu(e,l),null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)return;4===(l=l.return).tag&&(a=!1)}l.sibling.return=l.return,l=l.sibling}}function Eu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var l=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Xr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),xe(e,l),t=xe(e,r),l=0;ll&&(l=u),n&=~a}if(n=l,10<(n=(120>(n=Vl()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cu(n/1960))-n)){e.timeoutHandle=Br(Ti.bind(null,e),n);break}Ti(e);break;case 5:Ti(e);break;default:throw Error(o(329))}}return pi(e,Vl()),e.callbackNode===t?hi.bind(null,e):null}function mi(e,t){for(t&=~Vu,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Iu&&(Iu=2),i=ou(i,u),d=o;do{switch(d.tag){case 3:a=i,d.flags|=4096,t&=-t,d.lanes|=t,sa(d,su(0,a,t));break e;case 1:a=i;var k=d.type,S=d.stateNode;if(0===(64&d.flags)&&("function"===typeof k.getDerivedStateFromError||null!==S&&"function"===typeof S.componentDidCatch&&(null===Yu||!Yu.has(S)))){d.flags|=4096,t&=-t,d.lanes|=t,sa(d,cu(d,a,t));break e}}d=d.return}while(null!==d)}Ni(n)}catch(E){t=E,zu===n&&null!==n&&(zu=n=n.return);continue}break}}function Ei(){var e=Pu.current;return Pu.current=To,null===e?To:e}function _i(e,t){var n=Tu;Tu|=16;var r=Ei();for(Lu===e&&Ou===t||ki(e,t);;)try{xi();break}catch(l){Si(e,l)}if(Jl(),Tu=n,Pu.current=r,null!==zu)throw Error(o(261));return Lu=null,Ou=0,Iu}function xi(){for(;null!==zu;)Pi(zu)}function Ci(){for(;null!==zu&&!xl();)Pi(zu)}function Pi(e){var t=Hu(e.alternate,e,Ru);e.memoizedProps=e.pendingProps,null===t?Ni(e):zu=t,Nu.current=null}function Ni(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=lu(n,t,Ru)))return void(zu=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ru)||0===(4&n.mode)){for(var r=0,l=n.child;null!==l;)r|=l.lanes|l.childLanes,l=l.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1u&&(i=u,u=S,S=i),i=fr(b,S),a=fr(b,u),i&&a&&(1!==k.rangeCount||k.anchorNode!==i.node||k.anchorOffset!==i.offset||k.focusNode!==a.node||k.focusOffset!==a.offset)&&((w=w.createRange()).setStart(i.node,i.offset),k.removeAllRanges(),S>u?(k.addRange(w),k.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;bVl()-Bu?ki(e,0):Vu|=n),pi(e,t)}function Ai(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===jl()?1:2:(0===ai&&(ai=Fu),0===(t=jt(62914560&~ai))&&(t=4194304))),n=si(),null!==(e=di(e,t))&&(Wt(e,t,n),pi(e,n))}function Vi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ji(e,t,n,r){return new Vi(e,t,n,r)}function Bi(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wi(e,t){var n=e.alternate;return null===n?((n=ji(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $i(e,t,n,r,l,a){var u=2;if(r=e,"function"===typeof e)Bi(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case _:return Hi(n.children,l,a,t);case D:u=8,l|=16;break;case x:u=8,l|=1;break;case C:return(e=ji(12,n,t,8|l)).elementType=C,e.type=C,e.lanes=a,e;case L:return(e=ji(13,n,t,l)).type=L,e.elementType=L,e.lanes=a,e;case z:return(e=ji(19,n,t,l)).elementType=z,e.lanes=a,e;case F:return Qi(n,l,a,t);case U:return(e=ji(24,n,t,l)).elementType=U,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:u=10;break e;case N:u=9;break e;case T:u=11;break e;case O:u=14;break e;case R:u=16,r=null;break e;case M:u=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=ji(u,n,t,l)).elementType=e,t.type=r,t.lanes=a,t}function Hi(e,t,n,r){return(e=ji(7,e,r,t)).lanes=n,e}function Qi(e,t,n,r){return(e=ji(23,e,r,t)).elementType=F,e.lanes=n,e}function qi(e,t,n){return(e=ji(6,e,null,t)).lanes=n,e}function Ki(e,t,n){return(t=ji(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yi(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Xi(e,t,n){var r=3=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,l=e[r];if(!(void 0!==l&&0x(o,n))void 0!==i&&0>x(i,o)?(e[r]=i,e[u]=n,r=u):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==i&&0>x(i,n)))break e;e[r]=i,e[u]=n,r=u}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],P=[],N=1,T=null,L=3,z=!1,O=!1,R=!1;function M(e){for(var t=E(P);null!==t;){if(null===t.callback)_(P);else{if(!(t.startTime<=e))break;_(P),t.sortIndex=t.expirationTime,S(C,t)}t=E(P)}}function I(e){if(R=!1,M(e),!O)if(null!==E(C))O=!0,n(D);else{var t=E(P);null!==t&&r(I,t.startTime-e)}}function D(e,n){O=!1,R&&(R=!1,l()),z=!0;var a=L;try{for(M(n),T=E(C);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=T.callback;if("function"===typeof o){T.callback=null,L=T.priorityLevel;var u=o(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?T.callback=u:T===E(C)&&_(C),M(n)}else _(C);T=E(C)}if(null!==T)var i=!0;else{var s=E(P);null!==s&&r(I,s.startTime-n),i=!1}return i}finally{T=null,L=a,z=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){O||z||(O=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_getFirstCallbackNode=function(){return E(C)},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_scheduleCallback=function(e,a,o){var u=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0u?(e.sortIndex=o,S(P,e),null===E(C)&&e===E(P)&&(R?l():R=!0,r(I,o-u))):(e.sortIndex=i,S(C,e),O||z||(O=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}}},3840:function(e,t,n){"use strict";e.exports=n(53)},8217:function(e,t,n){"use strict";var r=n(6086),l=n(7294);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=l.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var o=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),o({getCurrentValue:t,subscribe:n,value:a})),l.useDebugValue(a),l.useEffect((function(){function e(){if(!l){var e=t();o((function(l){return l.getCurrentValue!==t||l.subscribe!==n||l.value===e?l:r({},l,{value:e})}))}}var l=!1,a=n(e);return e(),function(){l=!0,a()}}),[t,n]),a}},7161:function(e,t,n){"use strict";e.exports=n(8217)}}]);
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/chunks/pages/_app-88ba5c92fa3ac1d52da7.js b/striker-ui/out/_next/static/chunks/pages/_app-88ba5c92fa3ac1d52da7.js
deleted file mode 100644
index 52314a2f..00000000
--- a/striker-ui/out/_next/static/chunks/pages/_app-88ba5c92fa3ac1d52da7.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{9713:function(t){t.exports=function(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0},676:function(t,r,n){"use strict";function e(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(u[n]=t[n])}return u},t.exports.default=t.exports,t.exports.__esModule=!0},7316:function(t){t.exports=function(t,r){if(null==t)return{};var n,e,o={},u=Object.keys(t);for(e=0;e=0||(o[n]=t[n]);return o},t.exports.default=t.exports,t.exports.__esModule=!0},3259:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={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"};r.default=n},515:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={black:"#000",white:"#fff"};r.default=n},7559:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={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"};r.default=n},167:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};r.default=n},8768:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};r.default=n},6594:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={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"};r.default=n},124:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};r.default=n},3165:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={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"};r.default=n},9114:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hexToRgb=u,r.rgbToHex=function(t){if(0===t.indexOf("#"))return t;var r=a(t).values;return"#".concat(r.map((function(t){return function(t){var r=t.toString(16);return 1===r.length?"0".concat(r):r}(t)})).join(""))},r.hslToRgb=i,r.decomposeColor=a,r.recomposeColor=f,r.getContrastRatio=function(t,r){var n=c(t),e=c(r);return(Math.max(n,e)+.05)/(Math.min(n,e)+.05)},r.getLuminance=c,r.emphasize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(t)>.5?d(t,r):s(t,r)},r.fade=function(t,r){t=a(t),r=o(r),("rgb"===t.type||"hsl"===t.type)&&(t.type+="a");return t.values[3]=r,f(t)},r.darken=d,r.lighten=s;var e=n(5218);function o(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(r,t),n)}function u(t){t=t.substr(1);var r=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),n=t.match(r);return n&&1===n[0].length&&(n=n.map((function(t){return t+t}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(t,r){return r<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3})).join(", "),")"):""}function i(t){var r=(t=a(t)).values,n=r[0],e=r[1]/100,o=r[2]/100,u=e*Math.min(o,1-o),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+n/30)%12;return o-u*Math.max(Math.min(r-3,9-r,1),-1)},c="rgb",d=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===t.type&&(c+="a",d.push(r[3])),f({type:c,values:d})}function a(t){if(t.type)return t;if("#"===t.charAt(0))return a(u(t));var r=t.indexOf("("),n=t.substring(0,r);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,e.formatMuiErrorMessage)(3,t));var o=t.substring(r+1,t.length-1).split(",");return{type:n,values:o=o.map((function(t){return parseFloat(t)}))}}function f(t){var r=t.type,n=t.values;return-1!==r.indexOf("rgb")?n=n.map((function(t,r){return r<3?parseInt(t,10):t})):-1!==r.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(r,"(").concat(n.join(", "),")")}function c(t){var r="hsl"===(t=a(t)).type?a(i(t)).values:t.values;return r=r.map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function d(t,r){if(t=a(t),r=o(r),-1!==t.type.indexOf("hsl"))t.values[2]*=1-r;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]*=1-r;return f(t)}function s(t,r){if(t=a(t),r=o(r),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*r;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*r;return f(t)}},4811:function(t,r,n){"use strict";var e=n(5318);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t){var r=t.values,n=void 0===r?{xs:0,sm:600,md:960,lg:1280,xl:1920}:r,e=t.unit,a=void 0===e?"px":e,f=t.step,c=void 0===f?5:f,d=(0,u.default)(t,["values","unit","step"]);function s(t){var r="number"===typeof n[t]?n[t]:t;return"@media (min-width:".concat(r).concat(a,")")}function l(t,r){var e=i.indexOf(r);return e===i.length-1?s(t):"@media (min-width:".concat("number"===typeof n[t]?n[t]:t).concat(a,") and ")+"(max-width:".concat((-1!==e&&"number"===typeof n[i[e+1]]?n[i[e+1]]:r)-c/100).concat(a,")")}return(0,o.default)({keys:i,values:n,up:s,down:function(t){var r=i.indexOf(t)+1,e=n[i[r]];return r===i.length?s("xs"):"@media (max-width:".concat(("number"===typeof e&&r>0?e:t)-c/100).concat(a,")")},between:l,only:function(t){return l(t,t)},width:function(t){return n[t]}},d)},r.keys=void 0;var o=e(n(7154)),u=e(n(6479)),i=["xs","sm","md","lg","xl"];r.keys=i},226:function(t,r,n){"use strict";var e=n(5318);Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(t,r,n){var e;return(0,u.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,u.default)({paddingLeft:r(2),paddingRight:r(2)},n,(0,o.default)({},t.up("sm"),(0,u.default)({paddingLeft:r(3),paddingRight:r(3)},n[t.up("sm")])))},toolbar:(e={minHeight:56},(0,o.default)(e,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(e,t.up("sm"),{minHeight:64}),e)},n)};var o=e(n(9713)),u=e(n(7154))},1615:function(t,r,n){"use strict";var e=n(5318);r.Z=void 0;e(n(9713));var o=e(n(6479)),u=n(5218),i=e(n(4811)),a=e(n(226)),f=e(n(1091)),c=e(n(5184)),d=e(n(743)),s=e(n(9591)),l=e(n(3498)),p=e(n(5406)),g=e(n(8676));var v=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.breakpoints,n=void 0===r?{}:r,e=t.mixins,v=void 0===e?{}:e,m=t.palette,h=void 0===m?{}:m,y=t.spacing,b=t.typography,Z=void 0===b?{}:b,x=(0,o.default)(t,["breakpoints","mixins","palette","spacing","typography"]),O=(0,f.default)(h),w=(0,i.default)(n),_=(0,l.default)(y),A=(0,u.deepmerge)({breakpoints:w,direction:"ltr",mixins:(0,a.default)(w,_,v),overrides:{},palette:O,props:{},shadows:d.default,typography:(0,c.default)(O,Z),spacing:_,shape:s.default,transitions:p.default,zIndex:g.default},x),j=arguments.length,P=new Array(j>1?j-1:0),M=1;M=R?h.text.primary:m.text.primary}var z=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=(0,o.default)({},t)).main&&t[r]&&(t.main=t[r]),!t.main)throw new Error((0,i.formatMuiErrorMessage)(4,r));if("string"!==typeof t.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(t.main)));return y(t,"light",n,C),y(t,"dark",e,C),t.contrastText||(t.contrastText=W(t.main)),t},I={dark:h,light:m};0;return(0,i.deepmerge)((0,o.default)({common:a.default,type:k,primary:z(n),secondary:z(b,"A400","A200","A700"),error:z(x),warning:z(w),info:z(A),success:z(P),grey:f.default,contrastThreshold:R,getContrastText:W,augmentColor:z,tonalOffset:C},I[k]),E)},r.dark=r.light=void 0;var o=e(n(7154)),u=e(n(6479)),i=n(5218),a=e(n(515)),f=e(n(167)),c=e(n(8768)),d=e(n(124)),s=e(n(3165)),l=e(n(6594)),p=e(n(3259)),g=e(n(7559)),v=n(9114),m={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:a.default.white,default:f.default[50]},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}};r.light=m;var h={text:{primary:a.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f.default[800],default:"#303030"},action:{active:a.default.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 y(t,r,n,e){var o=e.light||e,u=e.dark||1.5*e;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:"light"===r?t.light=(0,v.lighten)(t.main,o):"dark"===r&&(t.dark=(0,v.darken)(t.main,u)))}r.dark=h},3498:function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var t=arguments.length,n=new Array(t),e=0;e0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.duration,e=void 0===n?i.standard:n,f=r.easing,c=void 0===f?u.easeInOut:f,d=r.delay,s=void 0===d?0:d;(0,o.default)(r,["duration","easing","delay"]);return(Array.isArray(t)?t:[t]).map((function(t){return"".concat(t," ").concat("string"===typeof e?e:a(e)," ").concat(c," ").concat("string"===typeof s?s:a(s))})).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var r=t/36;return Math.round(10*(4+15*Math.pow(r,.25)+r/5))}};r.default=f},8676:function(t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};r.default=n},7076:function(t,r){"use strict";var n="function"===typeof Symbol&&Symbol.for;r.Z=n?Symbol.for("mui.nested"):"__THEME_NESTED__"},3800:function(t,r,n){"use strict";var e=n(7294).createContext(null);r.Z=e},159:function(t,r,n){"use strict";n.d(r,{Z:function(){return u}});var e=n(7294),o=n(3800);function u(){return e.useContext(o.Z)}},9424:function(t,r,n){"use strict";n.d(r,{Cg:function(){return i},j1:function(){return a},vQ:function(){return f},h$:function(){return c},sc:function(){return d},tv:function(){return s},E0:function(){return l}});var e=n(8245),o=n(5680);function u(t){return"number"!==typeof t?t:"".concat(t,"px solid")}var i=(0,e.Z)({prop:"border",themeKey:"borders",transform:u}),a=(0,e.Z)({prop:"borderTop",themeKey:"borders",transform:u}),f=(0,e.Z)({prop:"borderRight",themeKey:"borders",transform:u}),c=(0,e.Z)({prop:"borderBottom",themeKey:"borders",transform:u}),d=(0,e.Z)({prop:"borderLeft",themeKey:"borders",transform:u}),s=(0,e.Z)({prop:"borderColor",themeKey:"palette"}),l=(0,e.Z)({prop:"borderRadius",themeKey:"shape"}),p=(0,o.Z)(i,a,f,c,d,s,l);r.ZP=p},1410:function(t,r,n){"use strict";n.d(r,{k:function(){return c}});var e=n(7329),o=n(2122),u=n(484),i=(n(5697),n(9668)),a={xs:0,sm:600,md:960,lg:1280,xl:1920},f={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(a[t],"px)")}};function c(t,r,n){if(Array.isArray(r)){var e=t.theme.breakpoints||f;return r.reduce((function(t,o,u){return t[e.up(e.keys[u])]=n(r[u]),t}),{})}if("object"===(0,u.Z)(r)){var o=t.theme.breakpoints||f;return Object.keys(r).reduce((function(t,e){return t[o.up(e)]=n(r[e]),t}),{})}return n(r)}r.Z=function(t){var r=function(r){var n=t(r),e=r.theme.breakpoints||f,u=e.keys.reduce((function(n,u){return r[u]&&((n=n||{})[e.up(u)]=t((0,o.Z)({theme:r.theme},r[u]))),n}),null);return(0,i.Z)(n,u)};return r.propTypes={},r.filterProps=["xs","sm","md","lg","xl"].concat((0,e.Z)(t.filterProps)),r}},5680:function(t,r,n){"use strict";var e=n(9668);r.Z=function(){for(var t=arguments.length,r=new Array(t),n=0;n2){if(!f[t])return[t];t=f[t]}var r=t.split(""),n=(0,e.Z)(r,2),o=n[0],u=n[1],c=i[o],d=a[u]||"";return Array.isArray(d)?d.map((function(t){return c+t})):[c+d]})),d=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function s(t){var r=t.spacing||8;return"number"===typeof r?function(t){return r*t}:Array.isArray(r)?function(t){return r[t]}:"function"===typeof r?r:function(){}}function l(t,r){return function(n){return t.reduce((function(t,e){return t[e]=function(t,r){if("string"===typeof r||null==r)return r;var n=t(Math.abs(r));return r>=0?n:"number"===typeof n?-n:"-".concat(n)}(r,n),t}),{})}}function p(t){var r=s(t.theme);return Object.keys(t).map((function(n){if(-1===d.indexOf(n))return null;var e=l(c(n),r),u=t[n];return(0,o.k)(t,u,e)})).reduce(u.Z,{})}p.propTypes={},p.filterProps=d;var g=p},8245:function(t,r,n){"use strict";var e=n(6156),o=n(1410);function u(t,r){return r&&"string"===typeof r?r.split(".").reduce((function(t,r){return t&&t[r]?t[r]:null}),t):null}r.Z=function(t){var r=t.prop,n=t.cssProperty,i=void 0===n?t.prop:n,a=t.themeKey,f=t.transform,c=function(t){if(null==t[r])return null;var n=t[r],c=u(t.theme,a)||{};return(0,o.k)(t,n,(function(t){var r;return"function"===typeof c?r=c(t):Array.isArray(c)?r=c[t]||t:(r=u(c,t)||t,f&&(r=f(r))),!1===i?r:(0,e.Z)({},i,r)}))};return c.propTypes={},c.filterProps=[r],c}},9560:function(t,r,n){"use strict";n.d(r,{I8:function(){return u},JB:function(){return i},p_:function(){return a},Ue:function(){return f},rX:function(){return c},Nv:function(){return d},yd:function(){return s}});var e=n(8245),o=n(5680),u=(0,e.Z)({prop:"fontFamily",themeKey:"typography"}),i=(0,e.Z)({prop:"fontSize",themeKey:"typography"}),a=(0,e.Z)({prop:"fontStyle",themeKey:"typography"}),f=(0,e.Z)({prop:"fontWeight",themeKey:"typography"}),c=(0,e.Z)({prop:"letterSpacing"}),d=(0,e.Z)({prop:"lineHeight"}),s=(0,e.Z)({prop:"textAlign"}),l=(0,o.Z)(u,i,a,f,c,d,s);r.ZP=l},5953:function(t,r,n){"use strict";n.d(r,{Z:function(){return i}});var e=n(2122),o=n(484);function u(t){return t&&"object"===(0,o.Z)(t)&&t.constructor===Object}function i(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,e.Z)({},t):t;return u(t)&&u(r)&&Object.keys(r).forEach((function(e){"__proto__"!==e&&(u(r[e])&&e in t?o[e]=i(t[e],r[e],n):o[e]=r[e])})),o}},288:function(t,r,n){"use strict";function e(t){for(var r="https://material-ui.com/production-error/?code="+t,n=1;n1&&void 0!==arguments[1]?arguments[1]:"";return t.displayName||t.name||v(t)||r}function h(t,r,n){var e=m(r);return t.displayName||(""!==e?"".concat(n,"(").concat(e,")"):n)}function y(t){if(null!=t){if("string"===typeof t)return t;if("function"===typeof t)return m(t,"Component");if("object"===(0,l.Z)(t))switch(t.$$typeof){case p.ForwardRef:return h(t,t.render,"ForwardRef");case p.Memo:return h(t,t.type,"memo");default:return}}}function b(t,r,n,e,o){return null}var Z="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),x=i().oneOfType([i().func,i().object])},8788:function(t,r,n){"use strict";n.d(r,{hM:function(){return e},lD:function(){return o},v9:function(){return u},Wd:function(){return i},Ej:function(){return a},s7:function(){return f},$T:function(){return c},UZ:function(){return d},d:function(){return s},Gf:function(){return l},rr:function(){return p},E5:function(){return g},n_:function(){return v}});var e="#D02724",o="#F2F2F2",u="#343434",i="#7353BA",a="#4785FF",f="#E5E5E5",c="#444",d="#666",s="#888",l="#00ff00",p="#AAA",g="#343434",v="3px"},3788:function(t,r,n){"use strict";n.r(r),n.d(r,{default:function(){return m}});var e=n(6265),o=n(5893),u=n(7294),i=n(2122),a=(n(5697),n(3800)),f=n(159),c=n(7076);var d=function(t){var r=t.children,n=t.theme,e=(0,f.Z)(),o=u.useMemo((function(){var t=null===e?n:function(t,r){return"function"===typeof r?r(t):(0,i.Z)({},t,r)}(e,n);return null!=t&&(t[c.Z]=null!==e),t}),[n,e]);return u.createElement(a.Z.Provider,{value:o},r)},s=n(1615),l=n(8788),p=(n(1064),(0,s.Z)({palette:{primary:{main:l.v9},secondary:{main:l.lD},background:{paper:l.v9}},typography:{fontFamily:"Roboto Condensed",fontWeightRegular:200,fontSize:14},overrides:{MuiSwitch:{switchBase:{color:l.lD},root:{padding:8},track:{borderRadius:l.n_,border:3,backgroundColor:l.Wd,opacity:1,"$checked$checked + &":{backgroundColor:l.Ej,opacity:1},"$disabled$disabled + &":{backgroundColor:l.rr}},thumb:{color:l.lD,borderRadius:l.n_}}}}));n(2702);function g(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function v(t){for(var r=1;rt.length)&&(n=t.length);for(var r=0,e=new Array(n);r=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}},9756:function(t,n,r){"use strict";function e(t,n){if(null==t)return{};var r,e,i={},o=Object.keys(t);for(e=0;e=0||(i[r]=t[r]);return i}r.d(n,{Z:function(){return e}})},4699:function(t,n,r){"use strict";r.d(n,{Z:function(){return i}});var e=r(2961);function i(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var r=[],e=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(e=(a=u.next()).done)&&(r.push(a.value),!n||r.length!==n);e=!0);}catch(c){i=!0,o=c}finally{try{e||null==u.return||u.return()}finally{if(i)throw o}}return r}}(t,n)||(0,e.Z)(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},484:function(t,n,r){"use strict";function e(t){return(e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r.d(n,{Z:function(){return e}})},2961:function(t,n,r){"use strict";r.d(n,{Z:function(){return i}});var e=r(676);function i(t,n){if(t){if("string"===typeof t)return(0,e.Z)(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,e.Z)(t,n):void 0}}},9693:function(t,n,r){"use strict";r.d(n,{mi:function(){return u},U1:function(){return f},_j:function(){return d},$n:function(){return s}});var e=r(288);function i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(n,t),r)}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(function(t){t=t.substr(1);var n=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),r=t.match(n);return r&&1===r[0].length&&(r=r.map((function(t){return t+t}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(t,n){return n<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3})).join(", "),")"):""}(t));var n=t.indexOf("("),r=t.substring(0,n);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,e.Z)(3,t));var i=t.substring(n+1,t.length-1).split(",");return{type:r,values:i=i.map((function(t){return parseFloat(t)}))}}function a(t){var n=t.type,r=t.values;return-1!==n.indexOf("rgb")?r=r.map((function(t,n){return n<3?parseInt(t,10):t})):-1!==n.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(n,"(").concat(r.join(", "),")")}function u(t,n){var r=c(t),e=c(n);return(Math.max(r,e)+.05)/(Math.min(r,e)+.05)}function c(t){var n="hsl"===(t=o(t)).type?o(function(t){var n=(t=o(t)).values,r=n[0],e=n[1]/100,i=n[2]/100,u=e*Math.min(i,1-i),c=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+r/30)%12;return i-u*Math.max(Math.min(n-3,9-n,1),-1)},f="rgb",d=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===t.type&&(f+="a",d.push(n[3])),a({type:f,values:d})}(t)).values:t.values;return n=n.map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function f(t,n){return t=o(t),n=i(n),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),t.values[3]=n,a(t)}function d(t,n){if(t=o(t),n=i(n),-1!==t.type.indexOf("hsl"))t.values[2]*=1-n;else if(-1!==t.type.indexOf("rgb"))for(var r=0;r<3;r+=1)t.values[r]*=1-n;return a(t)}function s(t,n){if(t=o(t),n=i(n),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*n;else if(-1!==t.type.indexOf("rgb"))for(var r=0;r<3;r+=1)t.values[r]+=(255-t.values[r])*n;return a(t)}},8129:function(t,n,r){"use strict";r.d(n,{Z:function(){return F}});var e=r(2949),i=r(5953),o=r(2122),a=["xs","sm","md","lg","xl"];function u(t){var n=t.values,r=void 0===n?{xs:0,sm:600,md:960,lg:1280,xl:1920}:n,i=t.unit,u=void 0===i?"px":i,c=t.step,f=void 0===c?5:c,d=(0,e.Z)(t,["values","unit","step"]);function s(t){var n="number"===typeof r[t]?r[t]:t;return"@media (min-width:".concat(n).concat(u,")")}function l(t,n){var e=a.indexOf(n);return e===a.length-1?s(t):"@media (min-width:".concat("number"===typeof r[t]?r[t]:t).concat(u,") and ")+"(max-width:".concat((-1!==e&&"number"===typeof r[a[e+1]]?r[a[e+1]]:n)-f/100).concat(u,")")}return(0,o.Z)({keys:a,values:r,up:s,down:function(t){var n=a.indexOf(t)+1,e=r[a[n]];return n===a.length?s("xs"):"@media (max-width:".concat(("number"===typeof e&&n>0?e:t)-f/100).concat(u,")")},between:l,only:function(t){return l(t,t)},width:function(t){return r[t]}},d)}var c=r(6156);function f(t,n,r){var e;return(0,o.Z)({gutters:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.Z)({paddingLeft:n(2),paddingRight:n(2)},r,(0,c.Z)({},t.up("sm"),(0,o.Z)({paddingLeft:n(3),paddingRight:n(3)},r[t.up("sm")])))},toolbar:(e={minHeight:56},(0,c.Z)(e,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,c.Z)(e,t.up("sm"),{minHeight:64}),e)},r)}var d=r(288),s={black:"#000",white:"#fff"},l={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},p={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},g={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={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"},v={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"},b={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"},m={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"},y=r(9693),x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:s.white,default:l[50]},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}},O={text:{primary:s.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:l[800],default:"#303030"},action:{active:s.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 Z(t,n,r,e){var i=e.light||e,o=e.dark||1.5*e;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:"light"===n?t.light=(0,y.$n)(t.main,i):"dark"===n&&(t.dark=(0,y._j)(t.main,o)))}function A(t){var n=t.primary,r=void 0===n?{light:p[300],main:p[500],dark:p[700]}:n,a=t.secondary,u=void 0===a?{light:g.A200,main:g.A400,dark:g.A700}:a,c=t.error,f=void 0===c?{light:h[300],main:h[500],dark:h[700]}:c,A=t.warning,w=void 0===A?{light:v[300],main:v[500],dark:v[700]}:A,k=t.info,j=void 0===k?{light:b[300],main:b[500],dark:b[700]}:k,S=t.success,E=void 0===S?{light:m[300],main:m[500],dark:m[700]}:S,M=t.type,_=void 0===M?"light":M,P=t.contrastThreshold,T=void 0===P?3:P,R=t.tonalOffset,W=void 0===R?.2:R,F=(0,e.Z)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function C(t){return(0,y.mi)(t,O.text.primary)>=T?O.text.primary:x.text.primary}var z=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=(0,o.Z)({},t)).main&&t[n]&&(t.main=t[n]),!t.main)throw new Error((0,d.Z)(4,n));if("string"!==typeof t.main)throw new Error((0,d.Z)(5,JSON.stringify(t.main)));return Z(t,"light",r,W),Z(t,"dark",e,W),t.contrastText||(t.contrastText=C(t.main)),t},I={dark:O,light:x};return(0,i.Z)((0,o.Z)({common:s,type:_,primary:z(r),secondary:z(u,"A400","A200","A700"),error:z(f),warning:z(w),info:z(j),success:z(E),grey:l,contrastThreshold:T,getContrastText:C,augmentColor:z,tonalOffset:W},I[_]),F)}function w(t){return Math.round(1e5*t)/1e5}var k={textTransform:"uppercase"},j='"Roboto", "Helvetica", "Arial", sans-serif';function S(t,n){var r="function"===typeof n?n(t):n,a=r.fontFamily,u=void 0===a?j:a,c=r.fontSize,f=void 0===c?14:c,d=r.fontWeightLight,s=void 0===d?300:d,l=r.fontWeightRegular,p=void 0===l?400:l,g=r.fontWeightMedium,h=void 0===g?500:g,v=r.fontWeightBold,b=void 0===v?700:v,m=r.htmlFontSize,y=void 0===m?16:m,x=r.allVariants,O=r.pxToRem,Z=(0,e.Z)(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var A=f/14,S=O||function(t){return"".concat(t/y*A,"rem")},E=function(t,n,r,e,i){return(0,o.Z)({fontFamily:u,fontWeight:t,fontSize:S(n),lineHeight:r},u===j?{letterSpacing:"".concat(w(e/n),"em")}:{},i,x)},M={h1:E(s,96,1.167,-1.5),h2:E(s,60,1.2,-.5),h3:E(p,48,1.167,0),h4:E(p,34,1.235,.25),h5:E(p,24,1.334,0),h6:E(h,20,1.6,.15),subtitle1:E(p,16,1.75,.15),subtitle2:E(h,14,1.57,.1),body1:E(p,16,1.5,.15),body2:E(p,14,1.43,.15),button:E(h,14,1.75,.4,k),caption:E(p,12,1.66,.4),overline:E(p,12,2.66,1,k)};return(0,i.Z)((0,o.Z)({htmlFontSize:y,pxToRem:S,round:w,fontFamily:u,fontSize:f,fontWeightLight:s,fontWeightRegular:p,fontWeightMedium:h,fontWeightBold:b},M),Z,{clone:!1})}function E(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var M=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)],_={borderRadius:4},P=r(8681);function T(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var n=(0,P.h)({spacing:t}),r=function(){for(var t=arguments.length,r=new Array(t),e=0;e0&&void 0!==arguments[0]?arguments[0]:{},n=t.breakpoints,r=void 0===n?{}:n,o=t.mixins,a=void 0===o?{}:o,c=t.palette,d=void 0===c?{}:c,s=t.spacing,l=t.typography,p=void 0===l?{}:l,g=(0,e.Z)(t,["breakpoints","mixins","palette","spacing","typography"]),h=A(d),v=u(r),b=T(s),m=(0,i.Z)({breakpoints:v,direction:"ltr",mixins:f(v,b,a),overrides:{},palette:h,props:{},shadows:M,typography:S(h,p),spacing:b,shape:_,transitions:R.ZP,zIndex:W.Z},g),y=arguments.length,x=new Array(y>1?y-1:0),O=1;O0&&void 0!==arguments[0]?arguments[0]:["all"],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.duration,u=void 0===r?o.standard:r,c=n.easing,f=void 0===c?i.easeInOut:c,d=n.delay,s=void 0===d?0:d;(0,e.Z)(n,["duration","easing","delay"]);return(Array.isArray(t)?t:[t]).map((function(t){return"".concat(t," ").concat("string"===typeof u?u:a(u)," ").concat(f," ").concat("string"===typeof s?s:a(s))})).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var n=t/36;return Math.round(10*(4+15*Math.pow(n,.25)+n/5))}}},2781:function(t,n){"use strict";n.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},7076:function(t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;n.Z=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},3800:function(t,n,r){"use strict";var e=r(7294).createContext(null);n.Z=e},159:function(t,n,r){"use strict";r.d(n,{Z:function(){return o}});var e=r(7294),i=r(3800);function o(){return e.useContext(i.Z)}},1410:function(t,n,r){"use strict";r.d(n,{k:function(){return a}});var e=r(484),i=(r(5697),{xs:0,sm:600,md:960,lg:1280,xl:1920}),o={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(i[t],"px)")}};function a(t,n,r){if(Array.isArray(n)){var i=t.theme.breakpoints||o;return n.reduce((function(t,e,o){return t[i.up(i.keys[o])]=r(n[o]),t}),{})}if("object"===(0,e.Z)(n)){var a=t.theme.breakpoints||o;return Object.keys(n).reduce((function(t,e){return t[a.up(e)]=r(n[e]),t}),{})}return r(n)}},9668:function(t,n,r){"use strict";var e=r(5953);n.Z=function(t,n){return n?(0,e.Z)(t,n,{clone:!1}):t}},8681:function(t,n,r){"use strict";r.d(n,{h:function(){return s},Z:function(){return g}});var e=r(4699),i=r(1410),o=r(9668);var a={m:"margin",p:"padding"},u={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},f=function(t){var n={};return function(r){return void 0===n[r]&&(n[r]=t(r)),n[r]}}((function(t){if(t.length>2){if(!c[t])return[t];t=c[t]}var n=t.split(""),r=(0,e.Z)(n,2),i=r[0],o=r[1],f=a[i],d=u[o]||"";return Array.isArray(d)?d.map((function(t){return f+t})):[f+d]})),d=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function s(t){var n=t.spacing||8;return"number"===typeof n?function(t){return n*t}:Array.isArray(n)?function(t){return n[t]}:"function"===typeof n?n:function(){}}function l(t,n){return function(r){return t.reduce((function(t,e){return t[e]=function(t,n){if("string"===typeof n||null==n)return n;var r=t(Math.abs(n));return n>=0?r:"number"===typeof r?-r:"-".concat(r)}(n,r),t}),{})}}function p(t){var n=s(t.theme);return Object.keys(t).map((function(r){if(-1===d.indexOf(r))return null;var e=l(f(r),n),o=t[r];return(0,i.k)(t,o,e)})).reduce(o.Z,{})}p.propTypes={},p.filterProps=d;var g=p},5953:function(t,n,r){"use strict";r.d(n,{Z:function(){return a}});var e=r(2122),i=r(484);function o(t){return t&&"object"===(0,i.Z)(t)&&t.constructor===Object}function a(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=r.clone?(0,e.Z)({},t):t;return o(t)&&o(n)&&Object.keys(n).forEach((function(e){"__proto__"!==e&&(o(n[e])&&e in t?i[e]=a(t[e],n[e],r):i[e]=n[e])})),i}},288:function(t,n,r){"use strict";function e(t){for(var n="https://material-ui.com/production-error/?code="+t,r=1;r1&&void 0!==arguments[1]?arguments[1]:5e3,t=(0,c.ZP)(e,l,{refreshInterval:n}),r=t.data,i=t.error;return{data:r,isLoading:!i&&!r,isError:i}},h=t(7294),x=t(9570),p=t(4724),g=t(8788),f=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),m={uuid:"",setAnvilUuid:function(){return null}},j=(0,h.createContext)(m),v=function(e){var n=e.children,t=(0,h.useState)(""),i=t[0],o=t[1];return(0,r.jsx)(j.Provider,{value:{uuid:i,setAnvilUuid:function(e){o(e)}},children:n})},b=(0,a.Z)((function(){return{decorator:{width:"1.4em",height:"100%",borderRadius:g.n_},ok:{backgroundColor:g.Ej},warning:{backgroundColor:g.Wd},error:{backgroundColor:g.hM},off:{backgroundColor:g.s7}}})),_=function(e){var n=e.colour,t=b();return(0,r.jsx)("div",{className:"".concat(t.decorator," ").concat(t[n])})},Z=t(8870),w=(0,a.Z)((function(){return{root:{width:"100%","&:hover $child":{backgroundColor:g.Gf}},anvilName:{paddingLeft:0}}})),k=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";case"degraded":default:return"error"}},y=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},N=function(e){var n=e.list,t=(0,h.useContext)(j).uuid,i=w(),o=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsx)(s.Z,{display:"flex",flexDirection:"row",width:"100%",children:""!==t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{p:1,children:(0,r.jsx)(_,{colour:k(n[o].anvil_state)})}),(0,r.jsxs)(s.Z,{p:1,flexGrow:1,className:i.anvilName,children:[(0,r.jsx)(p.z,{text:n[o].anvil_name}),(0,r.jsx)(p.z,{text:f.get(n[o].anvil_state)||"State unavailable"})]}),(0,r.jsx)(s.Z,{p:1,children:(0,r.jsx)(x.Z,{checked:y(n[o]),onChange:function(){return(0,Z.Z)("".concat("/cgi-bin","/set_power"),{anvil_uuid:n[o].anvil_uuid,is_on:!y(n[o])})}})})]})})},O=t(2822),C=t(5517),P=t(998),A=function(e){var n=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p.A,{text:n.anvil_name}),(0,r.jsx)(p.A,{text:f.get(n.anvil_state)||"State unavailable"})]})},D=function(e){var n=[],t=[],r=[];return e.forEach((function(e){"optimal"===e.anvil_state?n.push(e):"not_ready"===e.anvil_state?t.push(e):r.push(e)})),[].concat(r,t,n)},T=(0,a.Z)((function(e){return{root:(0,i.Z)({width:"100%",overflow:"auto",height:"30vh",paddingRight:".3em"},e.breakpoints.down(g.li),{height:"100%",overflow:"hidden"}),divider:{background:g.d},button:{"&:hover":{backgroundColor:g.$T},paddingLeft:0},anvil:{paddingLeft:0}}})),L=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";case"degraded":return"error";default:return"off"}},E=function(e){var n=e.list,t=(0,h.useContext)(j),i=t.uuid,o=t.setAnvilUuid,a=T();return(0,h.useEffect)((function(){""===i&&o(D(n)[0].anvil_uuid)}),[i,n,o]),(0,r.jsx)(O.Z,{component:"nav",className:a.root,"aria-label":"mailbox folders",children:D(n).map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C.Z,{className:a.divider}),(0,r.jsx)(P.Z,{button:!0,className:a.button,onClick:function(){return o(e.anvil_uuid)},children:(0,r.jsxs)(s.Z,{display:"flex",flexDirection:"row",width:"100%",children:[(0,r.jsx)(s.Z,{p:1,children:(0,r.jsx)(_,{colour:L(e.anvil_state)})}),(0,r.jsx)(s.Z,{p:1,flexGrow:1,className:a.anvil,children:(0,r.jsx)(A,{anvil:e})})]})},e.anvil_uuid)]})}))})};function S(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function B(e){for(var n=1;n70?n>90?t.barAlert:t.barWarning:t.barOk},variant:"determinate",value:n}),(0,r.jsx)(z.Z,{variant:"determinate",value:0})]})},U=(0,F.Z)({root:{height:"1em",borderRadius:g.n_},colorPrimary:{backgroundColor:g.v9},bar:{borderRadius:g.n_}})(z.Z),W=(0,a.Z)((function(){return{barOk:{backgroundColor:g.Ej},barInProgress:{backgroundColor:g.Wd}}})),q=function(e){var n=e.progressPercentage,t=W();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(U,{classes:{bar:n<100?t.barInProgress:t.barOk},variant:"determinate",value:n}),(0,r.jsx)(z.Z,{variant:"determinate",value:0})]})},H=new Map([["message_0222","The node is in an unknown state."],["message_0223","The node is a full cluster member."],["message_0224","The node is coming online; the cluster resource manager is running (step 2/3)."],["message_0225","The node is coming online; the node is a consensus cluster member (step 1/3)."],["message_0226","The node has booted, but it is not (yet) joining the cluster."]]),V=(0,a.Z)((function(e){return{root:(0,i.Z)({overflow:"auto",height:"28vh",paddingLeft:".3em",paddingRight:".3em"},e.breakpoints.down(g.li),{height:"100%",overflow:"hidden"}),state:{paddingLeft:".7em",paddingRight:".7em",paddingTop:"1em"},bar:{paddingLeft:".7em",paddingRight:".7em"},header:{paddingTop:".3em",paddingRight:".7em"},label:{paddingTop:".3em"},decoratorBox:{paddingRight:".3em"}}})),$=function(e,n){var t=e.exec(n);return t?H.get(t[0])||"Error code not recognized":"Error code not found"},X=function(e){switch(e){case"online":return"ok";case"offline":return"off";default:return"warning"}},J=function(e){var n=e.hosts,t=V(),i=/^[a-zA-Z]/,o=/^(message_[0-9]+)/;return(0,r.jsx)(s.Z,{className:t.root,children:n&&n.map((function(e){var n;return(0,r.jsxs)(d.Lg,{children:[(0,r.jsx)(d.V9,{children:(0,r.jsxs)(s.Z,{display:"flex",width:"100%",className:t.header,children:[(0,r.jsx)(s.Z,{flexGrow:1,children:(0,r.jsx)(p.A,{text:e.host_name})}),(0,r.jsx)(s.Z,{className:t.decoratorBox,children:(0,r.jsx)(_,{colour:X(e.state)})}),(0,r.jsx)(s.Z,{children:(0,r.jsx)(p.A,{text:(null===e||void 0===e||null===(n=e.state)||void 0===n?void 0:n.replace(i,(function(e){return e.toUpperCase()})))||"Not Available"})})]})}),(0,r.jsxs)(s.Z,{display:"flex",className:t.state,children:[(0,r.jsx)(s.Z,{className:t.label,children:(0,r.jsx)(p.A,{text:"Power: "})}),(0,r.jsx)(s.Z,{flexGrow:1,children:(0,r.jsx)(x.Z,{checked:"online"===e.state,onChange:function(){return(0,Z.Z)("".concat("/cgi-bin","/set_power"),{host_uuid:e.host_uuid,is_on:!("online"===e.state)})}})}),(0,r.jsx)(s.Z,{className:t.label,children:(0,r.jsx)(p.A,{text:"Member: "})}),(0,r.jsx)(s.Z,{children:(0,r.jsx)(x.Z,{checked:"online"===e.state,disabled:!("online"===e.state),onChange:function(){return(0,Z.Z)("".concat("/cgi-bin","/set_membership"),{host_uuid:e.host_uuid,is_member:!("online"===e.state)})}})})]}),"online"!==e.state&&"offline"!==e.state&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{display:"flex",width:"100%",className:t.state,children:(0,r.jsx)(s.Z,{children:(0,r.jsx)(p.A,{text:$(o,e.state_message)})})}),(0,r.jsx)(s.Z,{display:"flex",width:"100%",className:t.bar,children:(0,r.jsx)(s.Z,{flexGrow:1,children:(0,r.jsx)(q,{progressPercentage:e.state_percent})})})]})]},e.host_uuid)}))})},K=t(6061),Q=function(e){return null===e||void 0===e?void 0:e.filter((function(e){return e.host_uuid}))},Y=function(e){var n=e.anvil,t=(0,h.useContext)(j).uuid,i=u("".concat("/cgi-bin","/get_status?anvil_uuid=").concat(t)),o=i.data,s=i.isLoading,a=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsxs)(d.s_,{children:[(0,r.jsx)(p.z,{text:"Nodes"}),s?(0,r.jsx)(K.Z,{}):(0,r.jsx)(r.Fragment,{children:-1!==a&&o&&(0,r.jsx)(J,{hosts:Q(n[a].hosts).map((function(e,n){return o.hosts[n]}))})})]})},ee=function(){var e=(0,h.useContext)(j).uuid,n=u("".concat("/cgi-bin","/get_cpu?anvil_uuid=").concat(e)),t=n.data,i=n.isLoading,o=i||!t?{allocated:0,cores:0,threads:0}:t;return(0,r.jsxs)(d.s_,{children:[(0,r.jsx)(p.z,{text:"CPU"}),i?(0,r.jsx)(K.Z,{}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.Z,{display:"flex",width:"100%",children:(0,r.jsxs)(s.Z,{flexGrow:1,style:{marginLeft:"1em",marginTop:"1em"},children:[(0,r.jsx)(p.A,{text:"Total Cores: ".concat(o.cores)}),(0,r.jsx)(p.A,{text:"Total Threads: ".concat(o.threads)}),(0,r.jsx)(p.A,{text:"Allocated Cores: ".concat(o.allocated)})]})})})]})},ne=t(8600),te=t.n(ne),re=(0,a.Z)((function(){return{fs:{paddingLeft:".7em",paddingRight:".7em",paddingTop:"1.2em"},bar:{paddingLeft:".7em",paddingRight:".7em"},decoratorBox:{paddingRight:".3em"}}})),ie=function(e){var n=e.group,t=re();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.Z,{display:"flex",width:"100%",className:t.fs,children:[(0,r.jsx)(s.Z,{flexGrow:1,children:(0,r.jsx)(p.A,{text:"Used: ".concat(te()(n.storage_group_total-n.storage_group_free,{binary:!0}))})}),(0,r.jsx)(s.Z,{children:(0,r.jsx)(p.A,{text:"Free: ".concat(te()(n.storage_group_free,{binary:!0}))})})]}),(0,r.jsx)(s.Z,{display:"flex",width:"100%",className:t.bar,children:(0,r.jsx)(s.Z,{flexGrow:1,children:(0,r.jsx)(M,{allocated:(n.storage_group_total-n.storage_group_free)/n.storage_group_total*100})})}),(0,r.jsx)(s.Z,{display:"flex",justifyContent:"center",width:"100%",children:(0,r.jsx)(p.A,{text:"Total Storage: ".concat(te()(n.storage_group_total,{binary:!0}))})})]})},oe=(0,a.Z)((function(e){return{header:{paddingTop:".1em",paddingRight:".7em"},root:(0,i.Z)({overflow:"auto",height:"78vh",paddingLeft:".3em",paddingRight:".3em"},e.breakpoints.down(g.li),{height:"100%"})}})),se=function(){var e=oe(),n=(0,h.useContext)(j).uuid,t=u("".concat("/cgi-bin","/get_shared_storage?anvil_uuid=").concat(n)),i=t.data,o=t.isLoading;return(0,r.jsxs)(d.s_,{children:[(0,r.jsx)(p.z,{text:"Shared Storage"}),o?(0,r.jsx)(K.Z,{}):(0,r.jsx)(s.Z,{className:e.root,children:(null===i||void 0===i?void 0:i.storage_groups)&&i.storage_groups.map((function(n){return(0,r.jsxs)(d.Lg,{children:[(0,r.jsx)(d.V9,{children:(0,r.jsx)(s.Z,{display:"flex",width:"100%",className:e.header,children:(0,r.jsx)(s.Z,{children:(0,r.jsx)(p.A,{text:n.storage_group_name})})})}),(0,r.jsx)(ie,{group:n},n.storage_group_uuid)]},n.storage_group_uuid)}))})]})},ae=function(){var e=(0,h.useContext)(j).uuid,n=u("".concat("/cgi-bin","/get_memory?anvil_uuid=").concat(e)),t=n.data,i=n.isLoading,o=i||!t?{total:0,allocated:0,reserved:0}:t;return(0,r.jsxs)(d.s_,{children:[(0,r.jsx)(p.z,{text:"Memory"}),i?(0,r.jsx)(K.Z,{}):(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsxs)(s.Z,{display:"flex",width:"100%",children:[(0,r.jsx)(s.Z,{flexGrow:1,children:(0,r.jsx)(p.A,{text:"Allocated: ".concat(te()(o.allocated,{binary:!0}))})}),(0,r.jsx)(s.Z,{children:(0,r.jsx)(p.A,{text:"Free: ".concat(te()(o.total-o.allocated,{binary:!0}))})})]}),(0,r.jsx)(s.Z,{display:"flex",width:"100%",children:(0,r.jsx)(s.Z,{flexGrow:1,children:(0,r.jsx)(M,{allocated:o.allocated/o.total*100})})}),(0,r.jsx)(s.Z,{display:"flex",justifyContent:"center",width:"100%",children:(0,r.jsx)(p.A,{text:"Total: ".concat(te()(o.total,{binary:!0})," | Reserved: ").concat(te()(o.reserved,{binary:!0}))})})]})]})},de=function(e){var n=[],t={bonds:[]};return null===e||void 0===e||e.hosts.forEach((function(e){e.bonds.forEach((function(r){var i=n.findIndex((function(e){return e===r.bond_name}));-1===i?(n.push(r.bond_name),t.bonds.push({bond_name:r.bond_name,bond_uuid:r.bond_uuid,bond_speed:0,bond_state:"degraded",hosts:[{host_name:e.host_name,host_uuid:e.host_uuid,link:r.links[0].is_active?r.links[0]:r.links[1]}]})):t.bonds[i].hosts.push({host_name:e.host_name,host_uuid:e.host_uuid,link:r.links[0].is_active?r.links[0]:r.links[1]})}))})),t.bonds.forEach((function(e){var n=e.hosts[0].link.link_speed>e.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[n].link.link_speed,e.bond_state=e.hosts[n].link.link_state})),t},ce=(0,a.Z)((function(e){return{container:(0,i.Z)({width:"100%",overflow:"auto",height:"32vh",paddingRight:".3em"},e.breakpoints.down(g.li),{height:"100%",overflow:"hidden"}),root:{paddingTop:".7em",paddingBottom:".7em"},noPaddingLeft:{paddingLeft:0},divider:{background:g.d},verticalDivider:{height:"3.5em"}}})),le=function(e){switch(e){case"optimal":return"ok";case"degraded":return"warning";case"down":return"error";default:return"warning"}},ue=function(){var e=(0,h.useContext)(j).uuid,n=ce(),t=u("".concat("/cgi-bin","/get_networks?anvil_uuid=").concat(e)),i=t.data,o=t.isLoading,a=de(i);return(0,r.jsxs)(d.s_,{children:[(0,r.jsx)(p.z,{text:"Network"}),o?(0,r.jsx)(K.Z,{}):(0,r.jsx)(s.Z,{className:n.container,children:i&&a.bonds.map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.Z,{display:"flex",flexDirection:"row",width:"100%",className:n.root,children:[(0,r.jsx)(s.Z,{p:1,className:n.noPaddingLeft,children:(0,r.jsx)(_,{colour:le(e.bond_state)})}),(0,r.jsxs)(s.Z,{p:1,flexGrow:1,className:n.noPaddingLeft,children:[(0,r.jsx)(p.A,{text:e.bond_name}),(0,r.jsx)(p.A,{text:"".concat(e.bond_speed,"Mbps")})]}),(0,r.jsx)(s.Z,{display:"flex",style:{paddingTop:".5em"},children:e.hosts.map((function(t,i){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{p:1,style:{paddingTop:0,paddingBottom:0},children:(0,r.jsxs)(s.Z,{children:[(0,r.jsx)(p.A,{text:t.host_name,selected:!1}),(0,r.jsx)(p.A,{text:t.link.link_name})]})},t.host_name),i!==e.hosts.length-1&&(0,r.jsx)(C.Z,{className:"".concat(n.divider," ").concat(n.verticalDivider),orientation:"vertical",flexItem:!0})]})}))})]}),(0,r.jsx)(C.Z,{className:n.divider})]})}))})]})},he=t(1385),xe=t(7812),pe=t(282),ge=t(2318),fe=t(5675),me=t(5639),je=t(3258),ve=t(9067),be=t(8513),_e=t(1959),Ze=new Map([["running","Running"],["idle","Idle"],["paused","Paused"],["in shutdown","Shutting Down"],["shut off","Off"],["crashed","Crashed"],["pmsuspended","PM Suspended"],["migrating","Migrating"]]),we=(0,a.Z)((function(e){return{root:(0,i.Z)({width:"100%",overflow:"auto",height:"78vh",paddingRight:".3em"},e.breakpoints.down(g.li),{height:"100%",overflow:"hidden"}),divider:{background:g.d},verticalDivider:{height:"75%",paddingTop:"1em"},button:{"&:hover":{backgroundColor:g.$T},paddingLeft:0},headerPadding:{paddingLeft:".3em"},hostsBox:{padding:"1em",paddingRight:0},hostBox:{paddingTop:0},checkbox:{paddingTop:".8em"},menuItem:{backgroundColor:g.lD,paddingRight:"3em","&:hover":{backgroundColor:g.lD}},editButton:{borderRadius:8,backgroundColor:g.s7,"&:hover":{backgroundColor:g.lD}},editButtonBox:{paddingTop:".3em"},dropdown:{paddingTop:".8em",paddingBottom:".8em"},power:{color:g.E5},on:{color:g.Ej},off:{color:g.hM},all:{paddingTop:".5em",paddingLeft:".3em"}}})),ke=function(e){switch(e){case"running":return"ok";case"shut off":return"off";case"crashed":return"error";default:return"warning"}},ye=["on","off"],Ne=function(e){var n,t=e.anvil,i=(0,h.useState)(null),o=i[0],a=i[1],c=(0,h.useState)(!1),l=c[0],x=c[1],f=(0,h.useState)(!1),m=f[0],v=f[1],b=(0,h.useState)([]),w=b[0],k=b[1],y=(0,h.useContext)(j).uuid,N=we(),A=u("".concat("/cgi-bin","/get_servers?anvil_uuid=").concat(y)),D=A.data,T=A.isLoading,L=t.findIndex((function(e){return e.anvil_uuid===y})),E=Q(null===(n=t[L])||void 0===n?void 0:n.hosts);return(0,r.jsxs)(d.s_,{children:[(0,r.jsxs)(s.Z,{className:N.headerPadding,display:"flex",children:[(0,r.jsx)(s.Z,{flexGrow:1,children:(0,r.jsx)(p.z,{text:"Servers"})}),(0,r.jsx)(s.Z,{className:N.editButtonBox,children:(0,r.jsx)(xe.Z,{className:N.editButton,style:{color:g.E5},onClick:function(){return x(!l)},children:l?(0,r.jsx)(_e.Z,{}):(0,r.jsx)(ve.Z,{})})})]}),l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{className:N.headerPadding,display:"flex",children:(0,r.jsxs)(s.Z,{flexGrow:1,className:N.dropdown,children:[(0,r.jsx)(pe.Z,{variant:"contained",startIcon:(0,r.jsx)(be.Z,{}),onClick:function(e){a(e.currentTarget)},style:{textTransform:"none"},children:(0,r.jsx)(ge.Z,{className:N.power,variant:"subtitle1",children:"Power"})}),(0,r.jsx)(fe.Z,{anchorEl:o,keepMounted:!0,open:Boolean(o),onClose:function(){return a(null)},children:ye.map((function(e){return(0,r.jsx)(me.Z,{onClick:function(){return function(e){a(null),w.length&&(0,Z.Z)("".concat("/cgi-bin","/set_power"),{server_uuid_list:w,is_on:"on"===e})}(e)},className:N.menuItem,children:(0,r.jsx)(ge.Z,{className:N[e],variant:"subtitle1",children:e.replace(/^[a-z]/,(function(e){return e.toUpperCase()}))})},e)}))})]})}),(0,r.jsxs)(s.Z,{display:"flex",children:[(0,r.jsx)(s.Z,{children:(0,r.jsx)(je.Z,{style:{color:g.lD},color:"secondary",checked:m,onChange:function(){k(m?[]:D.servers.map((function(e){return e.server_uuid}))),v(!m)}})}),(0,r.jsx)(s.Z,{className:N.all,children:(0,r.jsx)(p.A,{text:"All"})})]})]}),T?(0,r.jsx)(K.Z,{}):(0,r.jsx)(s.Z,{className:N.root,children:(0,r.jsx)(O.Z,{component:"nav",children:D&&D.servers.map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P.Z,{button:!0,className:N.button,component:"a",href:"/server?uuid=".concat(e.server_uuid,"&server_name=").concat(e.server_name),children:(0,r.jsxs)(s.Z,{display:"flex",flexDirection:"row",width:"100%",children:[l&&(0,r.jsx)(s.Z,{className:N.checkbox,children:(0,r.jsx)(je.Z,{style:{color:g.lD},color:"secondary",checked:void 0!==w.find((function(n){return n===e.server_uuid})),onChange:function(){return function(e){var n=w.indexOf(e);-1===n?w.push(e):w.splice(n,1),k((0,he.Z)(w))}(e.server_uuid)}})}),(0,r.jsx)(s.Z,{p:1,children:(0,r.jsx)(_,{colour:ke(e.server_state)})}),(0,r.jsxs)(s.Z,{p:1,flexGrow:1,children:[(0,r.jsx)(p.A,{text:e.server_name}),(0,r.jsx)(p.A,{text:Ze.get(e.server_state)||"Not Available"})]}),(0,r.jsx)(s.Z,{display:"flex",className:N.hostsBox,children:"shut off"!==e.server_state&&"crashed"!==e.server_state&&E.map((function(n,t){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{p:1,className:N.hostBox,children:(0,r.jsx)(p.A,{text:n.host_name,selected:e.server_host_uuid===n.host_uuid})},n.host_uuid),t!==E.length-1&&(0,r.jsx)(C.Z,{className:"".concat(N.divider," ").concat(N.verticalDivider),orientation:"vertical"})]})}))})]})},e.server_uuid),(0,r.jsx)(C.Z,{className:N.divider})]})}))})})]})},Oe=t(6187),Ce=function(){var e=(0,h.useState)(void 0),n=e[0],t=e[1];return(0,h.useEffect)((function(){var e=function(){t(window.innerWidth)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),n},Pe=(0,a.Z)((function(e){var n;return{child:(n={width:"22%",height:"100%"},(0,i.Z)(n,e.breakpoints.down(g.li),{width:"50%"}),(0,i.Z)(n,e.breakpoints.down("md"),{width:"100%"}),n),server:(0,i.Z)({width:"35%",height:"100%"},e.breakpoints.down("md"),{width:"100%"}),container:(0,i.Z)({display:"flex",flexDirection:"row",width:"100%",justifyContent:"space-between"},e.breakpoints.down("md"),{display:"block"})}})),Ae=function(){var e=Pe(),n=Ce(),t=u("".concat("/cgi-bin","/get_anvils")).data;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.default,{children:(0,r.jsx)("title",{children:"Dashboard"})}),(0,r.jsxs)(v,{children:[(0,r.jsx)(Oe.Z,{}),(null===t||void 0===t?void 0:t.anvils)&&n&&(n>g.li?(0,r.jsxs)(s.Z,{className:e.container,children:[(0,r.jsxs)(s.Z,{className:e.child,children:[(0,r.jsx)(R,{list:t}),(0,r.jsx)(Y,{anvil:t.anvils})]}),(0,r.jsx)(s.Z,{className:e.server,children:(0,r.jsx)(Ne,{anvil:t.anvils})}),(0,r.jsx)(s.Z,{className:e.child,children:(0,r.jsx)(se,{})}),(0,r.jsxs)(s.Z,{className:e.child,children:[(0,r.jsx)(ue,{}),(0,r.jsx)(ee,{}),(0,r.jsx)(ae,{})]})]}):(0,r.jsxs)(s.Z,{className:e.container,children:[(0,r.jsxs)(s.Z,{className:e.child,children:[(0,r.jsx)(Ne,{anvil:t.anvils}),(0,r.jsx)(R,{list:t}),(0,r.jsx)(Y,{anvil:t.anvils})]}),(0,r.jsxs)(s.Z,{className:e.child,children:[(0,r.jsx)(ue,{}),(0,r.jsx)(se,{}),(0,r.jsx)(ee,{}),(0,r.jsx)(ae,{})]})]}))]})]})}},5301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(1316)}])}},function(e){e.O(0,[642,254,774,888,179],(function(){return n=5301,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/chunks/pages/index-ca8a2930d2c5ccf8a7f5.js b/striker-ui/out/_next/static/chunks/pages/index-ca8a2930d2c5ccf8a7f5.js
deleted file mode 100644
index a1a1a54f..00000000
--- a/striker-ui/out/_next/static/chunks/pages/index-ca8a2930d2c5ccf8a7f5.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{6538:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Qe}});var r=t(5893),i=t(6265),o=t(6049),s=t(1120),a=t(8788),d=(0,s.Z)((function(){return{innerHeader:{position:"relative",padding:"0 .7em"},header:{top:"-.3em",left:"-.3em",padding:"1.4em 0",position:"absolute",content:'""',borderColor:a.d,borderWidth:"1px",borderRadius:a.n_,borderStyle:"solid",width:"100%"}}})),c=function(e){var n=e.children,t=d();return(0,r.jsxs)(o.Z,{className:t.innerHeader,whiteSpace:"pre-wrap",children:[(0,r.jsx)("div",{className:t.header}),n]})},l=(0,s.Z)((function(){return{innerBody:{borderWidth:"1px",borderRadius:a.n_,borderStyle:"solid",borderColor:a.d,marginTop:"1.4em",marginBottom:"1.4em",paddingBottom:".7em",position:"relative"}}})),u=function(e){var n=e.children,t=l();return(0,r.jsx)(o.Z,{className:t.innerBody,children:n})},h=(0,s.Z)((function(){return{paper:{padding:"2.1em",backgroundColor:a.v9,opacity:.8,zIndex:999},container:{margin:"1em",position:"relative"},square:{content:'""',position:"absolute",width:"2.1em",height:"2.1em",border:"1px",borderColor:a.lD,borderWidth:"1px",borderRadius:a.n_,borderStyle:"solid",padding:0,margin:0},topSquare:{top:"-.3em",left:"-.3em"},bottomSquare:{bottom:"-.3em",right:"-.3em"}}})),x=function(e){var n=e.children,t=h();return(0,r.jsxs)("div",{className:t.container,children:[(0,r.jsx)("div",{className:"".concat(t.square," ").concat(t.topSquare)}),(0,r.jsx)("div",{className:"".concat(t.square," ").concat(t.bottomSquare)}),(0,r.jsx)("div",{className:t.paper,children:n})]})},p=t(5723),g=function(){return fetch.apply(void 0,arguments).then((function(e){return e.json()}))},f=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,t=(0,p.ZP)(e,g,{refreshInterval:n}),r=t.data,i=t.error;return{data:r,isLoading:!i&&!r,isError:i}},m=t(7294),j=t(9570),v=t(2318),b=t(4670),_=(0,b.Z)({root:{color:a.lD}})(v.Z),Z=function(e){var n=e.text;return(0,r.jsx)(_,{variant:"h4",children:n})},w=(0,s.Z)((function(){return{selected:{color:a.lD},unselected:{color:a.UZ}}})),y=function(e){var n=e.text,t=e.selected,i=w();return(0,r.jsx)(v.Z,{variant:"subtitle1",className:t?i.selected:i.unselected,children:n})};y.defaultProps={selected:!0};var k=y,N=new Map([["optimal","Optimal"],["not_ready","Not Ready"],["degraded","Degraded"]]),O={uuid:"",setAnvilUuid:function(){return null}},C=(0,m.createContext)(O),P=function(e){var n=e.children,t=(0,m.useState)(""),i=t[0],o=t[1];return(0,r.jsx)(C.Provider,{value:{uuid:i,setAnvilUuid:function(e){o(e)}},children:n})},T=(0,s.Z)((function(){return{decorator:{width:"1.4em",height:"100%",borderRadius:a.n_},ok:{backgroundColor:a.Ej},warning:{backgroundColor:a.Wd},error:{backgroundColor:a.hM},off:{backgroundColor:a.s7}}})),D=function(e){var n=e.colour,t=T();return(0,r.jsx)("div",{className:"".concat(t.decorator," ").concat(t[n])})},E=function(e,n){fetch("".concat("/cgi-bin").concat(e),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})},S=(0,s.Z)((function(){return{root:{width:"100%","&:hover $child":{backgroundColor:a.Gf}},anvilName:{paddingLeft:0}}})),B=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";case"degraded":default:return"error"}},L=function(e){return!(-1===e.hosts.findIndex((function(e){return"offline"!==e.state})))},R=function(e){var n=e.list,t=(0,m.useContext)(C).uuid,i=S(),s=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsx)(o.Z,{display:"flex",flexDirection:"row",width:"100%",children:""!==t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(D,{colour:B(n[s].anvil_state)})}),(0,r.jsxs)(o.Z,{p:1,flexGrow:1,className:i.anvilName,children:[(0,r.jsx)(Z,{text:n[s].anvil_name}),(0,r.jsx)(Z,{text:N.get(n[s].anvil_state)||"State unavailable"})]}),(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(j.Z,{checked:L(n[s]),onChange:function(){return E("/set_power",{anvil_uuid:n[s].anvil_uuid,is_on:!L(n[s])})}})})]})})},F=t(2822),G=t(5517),I=t(998),A=function(e){var n=e.anvil;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(k,{text:n.anvil_name}),(0,r.jsx)(k,{text:N.get(n.anvil_state)||"State unavailable"})]})},M=function(e){var n=[],t=[],r=[];return e.forEach((function(e){"optimal"===e.anvil_state?n.push(e):"not_ready"===e.anvil_state?t.push(e):r.push(e)})),[].concat(r,t,n)},U=(0,s.Z)((function(e){return{root:(0,i.Z)({width:"100%",overflow:"auto",height:"30vh"},e.breakpoints.down("md"),{height:"100%",overflow:"hidden"}),divider:{background:a.d},button:{"&:hover":{backgroundColor:a.$T},paddingLeft:0},anvil:{paddingLeft:0}}})),W=function(e){switch(e){case"optimal":return"ok";case"not_ready":return"warning";case"degraded":return"error";default:return"off"}},q=function(e){var n=e.list,t=(0,m.useContext)(C),i=t.uuid,s=t.setAnvilUuid,a=U();return(0,m.useEffect)((function(){""===i&&s(M(n)[0].anvil_uuid)}),[i,n,s]),(0,r.jsx)(F.Z,{component:"nav",className:a.root,"aria-label":"mailbox folders",children:M(n).map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G.Z,{className:a.divider}),(0,r.jsx)(I.Z,{button:!0,className:a.button,onClick:function(){return s(e.anvil_uuid)},children:(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",width:"100%",children:[(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(D,{colour:W(e.anvil_state)})}),(0,r.jsx)(o.Z,{p:1,flexGrow:1,className:a.anvil,children:(0,r.jsx)(A,{anvil:e})})]})},e.anvil_uuid)]})}))})};function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function H(e){for(var n=1;n70?n>90?t.barAlert:t.barWarning:t.barOk},variant:"determinate",value:n}),(0,r.jsx)(X.Z,{variant:"determinate",value:0})]})},V=(0,b.Z)({root:{height:"1em",borderRadius:a.n_},colorPrimary:{backgroundColor:a.v9},bar:{borderRadius:a.n_}})(X.Z),Y=(0,s.Z)((function(){return{barOk:{backgroundColor:a.Ej},barInProgress:{backgroundColor:a.Wd}}})),ee=function(e){var n=e.progressPercentage,t=Y();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(V,{classes:{bar:n<100?t.barInProgress:t.barOk},variant:"determinate",value:n}),(0,r.jsx)(X.Z,{variant:"determinate",value:0})]})},ne=new Map([["message_0222","The node is in an unknown state."],["message_0223","The node is a full cluster member."],["message_0224","The node is coming online; the cluster resource manager is running (step 2/3)."],["message_0225","The node is coming online; the node is a consensus cluster member (step 1/3)."],["message_0226","The node has booted, but it is not (yet) joining the cluster."]]),te=(0,s.Z)((function(e){return{root:(0,i.Z)({overflow:"auto",height:"28vh",paddingLeft:".3em"},e.breakpoints.down("md"),{height:"100%",overflow:"hidden"}),state:{paddingLeft:".7em",paddingRight:".7em",paddingTop:"1em"},bar:{paddingLeft:".7em",paddingRight:".7em"},header:{paddingTop:".3em",paddingRight:".7em"},label:{paddingTop:".3em"},decoratorBox:{paddingRight:".3em"}}})),re=function(e,n){var t=e.exec(n);return t?ne.get(t[0])||"Error code not recognized":"Error code not found"},ie=function(e){switch(e){case"online":return"ok";case"offline":return"off";default:return"warning"}},oe=function(e){var n=e.hosts,t=te(),i=/^[a-zA-Z]/,s=/^(message_[0-9]+)/;return(0,r.jsx)(o.Z,{className:t.root,children:n&&n.map((function(e){var n;return(0,r.jsxs)(u,{children:[(0,r.jsx)(c,{children:(0,r.jsxs)(o.Z,{display:"flex",width:"100%",className:t.header,children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(k,{text:e.host_name})}),(0,r.jsx)(o.Z,{className:t.decoratorBox,children:(0,r.jsx)(D,{colour:ie(e.state)})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:(null===e||void 0===e||null===(n=e.state)||void 0===n?void 0:n.replace(i,(function(e){return e.toUpperCase()})))||"Not Available"})})]})}),(0,r.jsxs)(o.Z,{display:"flex",className:t.state,children:[(0,r.jsx)(o.Z,{className:t.label,children:(0,r.jsx)(k,{text:"Power: "})}),(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(j.Z,{checked:"online"===e.state,onChange:function(){return E("/set_power",{host_uuid:e.host_uuid,is_on:!("online"===e.state)})}})}),(0,r.jsx)(o.Z,{className:t.label,children:(0,r.jsx)(k,{text:"Member: "})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(j.Z,{checked:"online"===e.state,disabled:!("online"===e.state),onChange:function(){return E("/set_membership",{host_uuid:e.host_uuid,is_member:!("online"===e.state)})}})})]}),"online"!==e.state&&"offline"!==e.state&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:t.state,children:(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:re(s,e.state_message)})})}),(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:t.bar,children:(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(ee,{progressPercentage:e.state_percent})})})]})]},e.host_uuid)}))})},se=t(5477),ae=(0,s.Z)((function(){return{root:{display:"flex",alignItems:"center",justifyContent:"center",marginTop:"3em"},spinner:{color:a.lD,variant:"indeterminate",size:"50em"}}})),de=function(){var e=ae();return(0,r.jsx)("div",{className:e.root,children:(0,r.jsx)(se.Z,{className:e.spinner})})},ce=function(e){return null===e||void 0===e?void 0:e.filter((function(e){return e.host_uuid}))},le=function(e){var n=e.anvil,t=(0,m.useContext)(C).uuid,i=f("".concat("/cgi-bin","/get_status?anvil_uuid=").concat(t)),o=i.data,s=i.isLoading,a=n.findIndex((function(e){return e.anvil_uuid===t}));return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Nodes"}),s?(0,r.jsx)(de,{}):(0,r.jsx)(r.Fragment,{children:-1!==a&&o&&(0,r.jsx)(oe,{hosts:ce(n[a].hosts).map((function(e,n){return o.hosts[n]}))})})]})},ue=function(){var e=(0,m.useContext)(C).uuid,n=f("".concat("/cgi-bin","/get_cpu?anvil_uuid=").concat(e)),t=n.data,i=n.isLoading,s=i||!t?{allocated:0,cores:0,threads:0}:t;return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"CPU"}),i?(0,r.jsx)(de,{}):(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(o.Z,{display:"flex",width:"100%",children:(0,r.jsxs)(o.Z,{flexGrow:1,style:{marginLeft:"1em",marginTop:"1em"},children:[(0,r.jsx)(k,{text:"Total Cores: ".concat(s.cores)}),(0,r.jsx)(k,{text:"Total Threads: ".concat(s.threads)}),(0,r.jsx)(k,{text:"Allocated Cores: ".concat(s.allocated)})]})})})]})},he=t(8600),xe=t.n(he),pe=(0,s.Z)((function(){return{fs:{paddingLeft:".7em",paddingRight:".7em",paddingTop:"1.2em"},bar:{paddingLeft:".7em",paddingRight:".7em"},decoratorBox:{paddingRight:".3em"}}})),ge=function(e){var n=e.group,t=pe();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Z,{display:"flex",width:"100%",className:t.fs,children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(k,{text:"Used: ".concat(xe()(n.storage_group_total-n.storage_group_free,{binary:!0}))})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:"Free: ".concat(xe()(n.storage_group_free,{binary:!0}))})})]}),(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:t.bar,children:(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(Q,{allocated:(n.storage_group_total-n.storage_group_free)/n.storage_group_total*100})})}),(0,r.jsx)(o.Z,{display:"flex",justifyContent:"center",width:"100%",children:(0,r.jsx)(k,{text:"Total Storage: ".concat(xe()(n.storage_group_total,{binary:!0}))})})]})},fe=(0,s.Z)((function(e){return{header:{paddingTop:".1em",paddingRight:".7em"},root:(0,i.Z)({overflow:"auto",height:"78vh",paddingLeft:".3em"},e.breakpoints.down("md"),{height:"100%"})}})),me=function(){var e=fe(),n=(0,m.useContext)(C).uuid,t=f("".concat("/cgi-bin","/get_shared_storage?anvil_uuid=").concat(n)),i=t.data,s=t.isLoading;return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Shared Storage"}),s?(0,r.jsx)(de,{}):(0,r.jsx)(o.Z,{className:e.root,children:(null===i||void 0===i?void 0:i.storage_groups)&&i.storage_groups.map((function(n){return(0,r.jsxs)(u,{children:[(0,r.jsx)(c,{children:(0,r.jsx)(o.Z,{display:"flex",width:"100%",className:e.header,children:(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:n.storage_group_name})})})}),(0,r.jsx)(ge,{group:n},n.storage_group_uuid)]},n.storage_group_uuid)}))})]})},je=function(){var e=(0,m.useContext)(C).uuid,n=f("".concat("/cgi-bin","/get_memory?anvil_uuid=").concat(e)),t=n.data,i=n.isLoading,s=i||!t?{total:0,allocated:0,reserved:0}:t;return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Memory"}),i?(0,r.jsx)(de,{}):(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsxs)(o.Z,{display:"flex",width:"100%",children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(k,{text:"Allocated: ".concat(xe()(s.allocated,{binary:!0}))})}),(0,r.jsx)(o.Z,{children:(0,r.jsx)(k,{text:"Free: ".concat(xe()(s.total-s.allocated,{binary:!0}))})})]}),(0,r.jsx)(o.Z,{display:"flex",width:"100%",children:(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(Q,{allocated:s.allocated/s.total*100})})}),(0,r.jsx)(o.Z,{display:"flex",justifyContent:"center",width:"100%",children:(0,r.jsx)(k,{text:"Total: ".concat(xe()(s.total,{binary:!0})," | Reserved: ").concat(xe()(s.reserved,{binary:!0}))})})]})]})},ve=function(e){var n=[],t={bonds:[]};return null===e||void 0===e||e.hosts.forEach((function(e){e.bonds.forEach((function(r){var i=n.findIndex((function(e){return e===r.bond_name}));-1===i?(n.push(r.bond_name),t.bonds.push({bond_name:r.bond_name,bond_uuid:r.bond_uuid,bond_speed:0,bond_state:"degraded",hosts:[{host_name:e.host_name,host_uuid:e.host_uuid,link:r.links[0].is_active?r.links[0]:r.links[1]}]})):t.bonds[i].hosts.push({host_name:e.host_name,host_uuid:e.host_uuid,link:r.links[0].is_active?r.links[0]:r.links[1]})}))})),t.bonds.forEach((function(e){var n=e.hosts[0].link.link_speed>e.hosts[1].link.link_speed?1:0;e.bond_speed=e.hosts[n].link.link_speed,e.bond_state=e.hosts[n].link.link_state})),t},be=(0,s.Z)((function(e){return{container:(0,i.Z)({width:"100%",overflow:"auto",height:"32vh"},e.breakpoints.down("md"),{height:"100%",overflow:"hidden"}),root:{paddingTop:".7em",paddingBottom:".7em"},noPaddingLeft:{paddingLeft:0},divider:{background:a.d},verticalDivider:{height:"3.5em"}}})),_e=function(e){switch(e){case"optimal":return"ok";case"degraded":return"warning";case"down":return"error";default:return"warning"}},Ze=function(){var e=(0,m.useContext)(C).uuid,n=be(),t=f("".concat("/cgi-bin","/get_networks?anvil_uuid=").concat(e)),i=t.data,s=t.isLoading,a=ve(i);return(0,r.jsxs)(x,{children:[(0,r.jsx)(Z,{text:"Network"}),s?(0,r.jsx)(de,{}):(0,r.jsx)(o.Z,{className:n.container,children:i&&a.bonds.map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",width:"100%",className:n.root,children:[(0,r.jsx)(o.Z,{p:1,className:n.noPaddingLeft,children:(0,r.jsx)(D,{colour:_e(e.bond_state)})}),(0,r.jsxs)(o.Z,{p:1,flexGrow:1,className:n.noPaddingLeft,children:[(0,r.jsx)(k,{text:e.bond_name}),(0,r.jsx)(k,{text:"".concat(e.bond_speed,"Mbps")})]}),(0,r.jsx)(o.Z,{display:"flex",style:{paddingTop:".5em"},children:e.hosts.map((function(t,i){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{p:1,style:{paddingTop:0,paddingBottom:0},children:(0,r.jsxs)(o.Z,{children:[(0,r.jsx)(k,{text:t.host_name,selected:!1}),(0,r.jsx)(k,{text:t.link.link_name})]})},t.host_name),i!==e.hosts.length-1&&(0,r.jsx)(G.Z,{className:"".concat(n.divider," ").concat(n.verticalDivider),orientation:"vertical",flexItem:!0})]})}))})]}),(0,r.jsx)(G.Z,{className:n.divider})]})}))})]})},we=t(1385),ye=t(7812),ke=t(282),Ne=t(5675),Oe=t(5639),Ce=t(3258),Pe=t(9067),Te=t(8513),De=t(1959),Ee=new Map([["running","Running"],["idle","Idle"],["paused","Paused"],["in shutdown","Shutting Down"],["shut off","Off"],["crashed","Crashed"],["pmsuspended","PM Suspended"],["migrating","Migrating"]]),Se=(0,s.Z)((function(e){return{root:(0,i.Z)({width:"100%",overflow:"auto",height:"78vh"},e.breakpoints.down("md"),{height:"100%"}),divider:{background:a.d},verticalDivider:{height:"75%",paddingTop:"1em"},button:{"&:hover":{backgroundColor:a.$T},paddingLeft:0},headerPadding:{paddingLeft:".3em"},hostsBox:{padding:"1em",paddingRight:0},hostBox:{paddingTop:0},checkbox:{paddingTop:".8em"},menuItem:{backgroundColor:a.lD,paddingRight:"3em","&:hover":{backgroundColor:a.lD}},editButton:{borderRadius:8,backgroundColor:a.s7,"&:hover":{backgroundColor:a.lD}},editButtonBox:{paddingTop:".3em"},dropdown:{paddingTop:".8em",paddingBottom:".8em"},power:{color:a.E5},on:{color:a.Ej},off:{color:a.hM},all:{paddingTop:".5em",paddingLeft:".3em"}}})),Be=function(e){switch(e){case"running":return"ok";case"shut off":return"off";case"crashed":return"error";default:return"warning"}},Le=["on","off"],Re=function(e){var n,t=e.anvil,i=(0,m.useState)(null),s=i[0],d=i[1],c=(0,m.useState)(!1),l=c[0],u=c[1],h=(0,m.useState)(!1),p=h[0],g=h[1],j=(0,m.useState)([]),b=j[0],_=j[1],w=(0,m.useContext)(C).uuid,y=Se(),N=f("".concat("/cgi-bin","/get_servers?anvil_uuid=").concat(w)),O=N.data,P=N.isLoading,T=t.findIndex((function(e){return e.anvil_uuid===w})),S=ce(null===(n=t[T])||void 0===n?void 0:n.hosts);return(0,r.jsxs)(x,{children:[(0,r.jsxs)(o.Z,{className:y.headerPadding,display:"flex",children:[(0,r.jsx)(o.Z,{flexGrow:1,children:(0,r.jsx)(Z,{text:"Servers"})}),(0,r.jsx)(o.Z,{className:y.editButtonBox,children:(0,r.jsx)(ye.Z,{className:y.editButton,style:{color:a.E5},onClick:function(){return u(!l)},children:l?(0,r.jsx)(De.Z,{}):(0,r.jsx)(Pe.Z,{})})})]}),l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{className:y.headerPadding,display:"flex",children:(0,r.jsxs)(o.Z,{flexGrow:1,className:y.dropdown,children:[(0,r.jsx)(ke.Z,{variant:"contained",startIcon:(0,r.jsx)(Te.Z,{}),onClick:function(e){d(e.currentTarget)},style:{textTransform:"none"},children:(0,r.jsx)(v.Z,{className:y.power,variant:"subtitle1",children:"Power"})}),(0,r.jsx)(Ne.Z,{anchorEl:s,keepMounted:!0,open:Boolean(s),onClose:function(){return d(null)},children:Le.map((function(e){return(0,r.jsx)(Oe.Z,{onClick:function(){return function(e){d(null),b.length&&E("/set_power",{server_uuid_list:b,is_on:"on"===e})}(e)},className:y.menuItem,children:(0,r.jsx)(v.Z,{className:y[e],variant:"subtitle1",children:e.replace(/^[a-z]/,(function(e){return e.toUpperCase()}))})},e)}))})]})}),(0,r.jsxs)(o.Z,{display:"flex",children:[(0,r.jsx)(o.Z,{children:(0,r.jsx)(Ce.Z,{style:{color:a.lD},color:"secondary",checked:p,onChange:function(){_(p?[]:O.servers.map((function(e){return e.server_uuid}))),g(!p)}})}),(0,r.jsx)(o.Z,{className:y.all,children:(0,r.jsx)(k,{text:"All"})})]})]}),P?(0,r.jsx)(de,{}):(0,r.jsx)(o.Z,{className:y.root,children:(0,r.jsx)(F.Z,{component:"nav",children:O&&O.servers.map((function(e){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(I.Z,{button:!0,className:y.button,children:(0,r.jsxs)(o.Z,{display:"flex",flexDirection:"row",width:"100%",children:[l&&(0,r.jsx)(o.Z,{className:y.checkbox,children:(0,r.jsx)(Ce.Z,{style:{color:a.lD},color:"secondary",checked:void 0!==b.find((function(n){return n===e.server_uuid})),onChange:function(){return function(e){var n=b.indexOf(e);-1===n?b.push(e):b.splice(n,1),_((0,we.Z)(b))}(e.server_uuid)}})}),(0,r.jsx)(o.Z,{p:1,children:(0,r.jsx)(D,{colour:Be(e.server_state)})}),(0,r.jsxs)(o.Z,{p:1,flexGrow:1,children:[(0,r.jsx)(k,{text:e.server_name}),(0,r.jsx)(k,{text:Ee.get(e.server_state)||"Not Available"})]}),(0,r.jsx)(o.Z,{display:"flex",className:y.hostsBox,children:"shut off"!==e.server_state&&"crashed"!==e.server_state&&S.map((function(n,t){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.Z,{p:1,className:y.hostBox,children:(0,r.jsx)(k,{text:n.host_name,selected:e.server_host_uuid===n.host_uuid})},n.host_uuid),t!==S.length-1&&(0,r.jsx)(G.Z,{className:"".concat(y.divider," ").concat(y.verticalDivider),orientation:"vertical"})]})}))})]})},e.server_uuid),(0,r.jsx)(G.Z,{className:y.divider})]})}))})})]})},Fe=t(5258),Ge=t(7623),Ie=[{text:"Files",image:"/pngs/files_on.png",uri:"/striker?files=true"},{text:"Tasks",image:"/pngs/tasks_no-jobs_icon.png",uri:"/striker?jobs=true"},{text:"Configure",image:"/pngs/configure_icon_on.png",uri:"/striker?configure=true"},{text:"Striker",image:"/pngs/striker_icon_on.png",uri:"/striker?striker=true"},{text:"Anvil",image:"/pngs/anvil_icon_on.png",uri:"/striker?anvil=true"},{text:"Email",image:"/pngs/email_on.png",uri:"/striker?email=true"},{text:"Help",image:"/pngs/help_icon_on.png",uri:"https://alteeve.com/w/Support"}],Ae={width:"40em",height:"40em"},Me=t(7159);function Ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function We(e){for(var n=1;n ./VncDisplay"]}}),S=(0,l.Z)((function(){return{displayBox:{width:"75vw",height:"75vh",paddingTop:"1em",paddingBottom:0,paddingLeft:0,paddingRight:0},spinnerBox:{flexDirection:"column",width:"75vw",height:"75vh",alignItems:"center",justifyContent:"center"},closeButton:{borderRadius:8,backgroundColor:w.hM,"&:hover":{backgroundColor:w.hM}},keyboardButton:{borderRadius:8,backgroundColor:w.lD,"&:hover":{backgroundColor:w.lD}},closeBox:{paddingBottom:"1em",paddingLeft:".7em",paddingRight:0},buttonsBox:{paddingTop:0},keysItem:{backgroundColor:w.lD,paddingRight:"3em","&:hover":{backgroundColor:w.lD}},buttonText:{color:w.E5}}})),P=function(e){var n=e.setMode,t=e.uuid,o=e.serverName,s=(0,i.useState)(null),c=s[0],l=s[1],u=(0,i.useRef)(),f=(0,i.useRef)(void 0),Z=(0,i.useState)(void 0),k=Z[0],P=Z[1],T=(0,i.useState)(!1),E=T[0],A=T[1],R=S();(0,i.useEffect)((function(){f.current=window.location.hostname,k||(0,p.Z)(d().mark((function e(){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_("".concat("/cgi-bin","/manage_vnc_pipes"),{server_uuid:t,is_open:!0},12e4);case 3:return n=e.sent,e.t0=P,e.next=7,n.json();case 7:e.t1=e.sent,(0,e.t0)(e.t1),e.next=14;break;case 11:e.prev=11,e.t2=e.catch(0),A(!0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))()}),[t,k,E]);var F=function(){var e=(0,p.Z)(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,N.Z)("".concat("/cgi-bin","/manage_vnc_pipes"),{server_uuid:t,is_open:!1});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,r.jsxs)(y.s_,{children:[(0,r.jsx)(a.Z,{flexGrow:1,children:(0,r.jsx)(O.z,{text:"Server: ".concat(o)})}),k?(0,r.jsxs)(a.Z,{display:"flex",className:R.displayBox,children:[(0,r.jsx)(D,{rfb:u,url:"".concat(k.protocol,"://").concat(f.current,":").concat(k.forward_port),viewOnly:!1,focusOnClick:!1,clipViewport:!1,dragViewport:!1,scaleViewport:!0,resizeSession:!0,showDotCursor:!1,background:"",qualityLevel:6,compressionLevel:2}),(0,r.jsxs)(a.Z,{children:[(0,r.jsx)(a.Z,{className:R.closeBox,children:(0,r.jsx)(v.Z,{className:R.closeButton,style:{color:w.lD},component:"span",onClick:function(){F(),n(!0)},children:(0,r.jsx)(b.Z,{})})}),(0,r.jsxs)(a.Z,{className:R.closeBox,children:[(0,r.jsx)(v.Z,{className:R.keyboardButton,style:{color:w.E5},component:"span",onClick:function(e){l(e.currentTarget)},children:(0,r.jsx)(j.Z,{})}),(0,r.jsx)(x.Z,{anchorEl:c,keepMounted:!0,open:Boolean(c),onClose:function(){return l(null)},children:C.map((function(e){var n=e.keys,t=e.scans;return(0,r.jsx)(m.Z,{onClick:function(){return function(e){if(u.current){if(e.length){for(var n=0;n<=e.length-1;n+=1)u.current.sendKey(e[n],1);for(var t=e.length-1;t>=0;t-=1)u.current.sendKey(e[t],0)}else u.current.sendCtrlAltDel();l(null)}}(t)},className:R.keysItem,children:(0,r.jsx)(h.Z,{variant:"subtitle1",children:n})},n)}))})]})]})]}):(0,r.jsx)(a.Z,{display:"flex",className:R.spinnerBox,children:E?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.Z,{style:{paddingBottom:"2em"},children:(0,r.jsx)(O.z,{text:"There was a problem connecting to the server, please try again"})}),(0,r.jsx)(g.Z,{variant:"contained",onClick:function(){A(!1)},style:{textTransform:"none"},children:(0,r.jsx)(h.Z,{className:R.buttonText,variant:"subtitle1",children:"Reconnect"})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(O.z,{text:"Establishing connection with ".concat(o)}),(0,r.jsx)(O.z,{text:"This may take a few minutes"}),(0,r.jsx)(B.Z,{})]})})]})},T=t(306),E=t(4849),A=(0,l.Z)((function(){return{displayBox:{padding:0,paddingTop:".7em",width:"100%"},fullScreenButton:{borderRadius:8,backgroundColor:w.lD,"&:hover":{backgroundColor:w.lD}},fullScreenBox:{paddingLeft:"1em",padding:0},imageButton:{padding:0,color:w.lD},imageIcon:{borderRadius:8,padding:0,backgroundColor:w.s7,fontSize:"8em"}}})),R=function(e){var n=e.setMode,t=e.serverName,o=A();return(0,r.jsxs)(y.s_,{children:[(0,r.jsx)(a.Z,{flexGrow:1,children:(0,r.jsx)(O.z,{text:"Server: ".concat(t)})}),(0,r.jsxs)(a.Z,{display:"flex",className:o.displayBox,children:[(0,r.jsx)(a.Z,{children:(0,r.jsx)(v.Z,{className:o.imageButton,style:{color:w.E5},component:"span",onClick:function(){return n(!1)},children:(0,r.jsx)(E.Z,{className:o.imageIcon})})}),(0,r.jsx)(a.Z,{className:o.fullScreenBox,children:(0,r.jsx)(v.Z,{className:o.fullScreenButton,style:{color:w.E5},component:"span",onClick:function(){return n(!1)},children:(0,r.jsx)(T.Z,{})})})]})]})},F=t(6187),z=(0,l.Z)((function(e){return{preview:(0,o.Z)({width:"25%",height:"100%"},e.breakpoints.down("md"),{width:"100%"}),fullView:{display:"flex",flexDirection:"row",width:"100%",justifyContent:"center"}}})),L=function(){var e=(0,i.useState)(!0),n=e[0],t=e[1],o=z(),l=(0,s.useRouter)().query,u=l.uuid,d=l.server_name;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.default,{children:(0,r.jsx)("title",{children:d})}),(0,r.jsx)(F.Z,{}),"string"===typeof u&&(n?(0,r.jsx)(a.Z,{className:o.preview,children:(0,r.jsx)(R,{setMode:t,serverName:d})}):(0,r.jsx)(a.Z,{className:o.fullView,children:(0,r.jsx)(P,{setMode:t,uuid:u,serverName:d})}))]})}},8954:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/server",function(){return t(3871)}])}},function(e){e.O(0,[774,642,643,888,179],(function(){return n=8954,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
\ No newline at end of file
diff --git a/striker-ui/out/_next/static/chunks/webpack-189c53927ffd3caf09c3.js b/striker-ui/out/_next/static/chunks/webpack-189c53927ffd3caf09c3.js
deleted file mode 100644
index 7776ad9d..00000000
--- a/striker-ui/out/_next/static/chunks/webpack-189c53927ffd3caf09c3.js
+++ /dev/null
@@ -1 +0,0 @@
-!function(){"use strict";var r={},e={};function t(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}},u=!0;try{r[n](i,i.exports,t),u=!1}finally{u&&delete e[n]}return i.exports}t.m=r,function(){var r=[];t.O=function(e,n,o,i){if(!n){var u=1/0;for(a=0;a=i)&&Object.keys(t.O).every((function(r){return t.O[r](n[f])}))?n.splice(f--,1):(c=!1,i0&&r[a-1][2]>i;a--)r[a]=r[a-1];r[a]=[n,o,i]}}(),t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,{a:e}),e},t.d=function(r,e){for(var n in e)t.o(e,n)&&!t.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:e[n]})},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(r){if("object"===typeof window)return window}}(),t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.r=function(r){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},function(){var r;t.g.importScripts&&(r=t.g.location+"");var e=t.g.document;if(!r&&e&&(e.currentScript&&(r=e.currentScript.src),!r)){var n=e.getElementsByTagName("script");n.length&&(r=n[n.length-1].src)}if(!r)throw new Error("Automatic publicPath is not supported in this browser");r=r.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=r+"../../"}(),function(){var r={272:0};t.O.j=function(e){return 0===r[e]};var e=function(e,n){var o,i,u=n[0],c=n[1],f=n[2],a=0;for(o in c)t.o(c,o)&&(t.m[o]=c[o]);if(f)var l=f(t);for(e&&e(n);a=i)&&Object.keys(r.O).every((function(e){return r.O[e](n[a])}))?n.splice(a--,1):(c=!1,i0&&e[f-1][2]>i;f--)e[f]=e[f-1];e[f]=[n,o,i]}}(),r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))},r.u=function(e){return"static/chunks/"+e+"."+{204:"04ef0f70c11fb4c25e5c",340:"717e8436d6d29df37ce9"}[e]+".js"},r.miniCssF=function(e){return"static/css/1b1a1a5807b24bb728c2.css"},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="_N_E:";r.l=function(n,o,i,u){if(e[n])e[n].push(o);else{var c,a;if(void 0!==i)for(var f=document.getElementsByTagName("script"),l=0;l
\ No newline at end of file
+}