From f51f6acb4d6d9d8b8dc006ddd5e17c2c06fe1eb3 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 29 Jun 2021 12:17:16 -0400 Subject: [PATCH 01/90] feat(front-end): add hook to access innerWidth whenever the viewport is resized --- striker-ui/hooks/useWindowDimenions.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 striker-ui/hooks/useWindowDimenions.ts 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; From 9f8303ed6148fb80b09e05b7fae353685250fe6f Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 29 Jun 2021 12:19:22 -0400 Subject: [PATCH 02/90] refactor(front-end): use custom breakpoint to define wider mobile layout --- striker-ui/lib/consts/DEFAULT_THEME.ts | 1 + 1 file changed, 1 insertion(+) 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; From ea91b36291707908aa61c81523510ed8e3fc8689 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 29 Jun 2021 12:20:19 -0400 Subject: [PATCH 03/90] refactor(front-end): use 2 columns for wider layout and display server at the top --- striker-ui/pages/index.tsx | 60 ++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/striker-ui/pages/index.tsx b/striker-ui/pages/index.tsx index 78e9182e..c30a1a3a 100644 --- a/striker-ui/pages/index.tsx +++ b/striker-ui/pages/index.tsx @@ -11,13 +11,15 @@ import PeriodicFetch from '../lib/fetchers/periodicFetch'; import Servers from '../components/Servers'; import Header from '../components/Header'; import AnvilProvider from '../components/AnvilContext'; +import { LARGE_MOBILE_BREAKPOINT } from '../lib/consts/DEFAULT_THEME'; +import useWindowDimensions from '../hooks/useWindowDimenions'; const useStyles = makeStyles((theme) => ({ child: { width: '22%', height: '100%', - [theme.breakpoints.down('lg')]: { - width: '25%', + [theme.breakpoints.down(LARGE_MOBILE_BREAKPOINT)]: { + width: '50%', }, [theme.breakpoints.down('md')]: { width: '100%', @@ -26,9 +28,6 @@ const useStyles = makeStyles((theme) => ({ server: { width: '35%', height: '100%', - [theme.breakpoints.down('lg')]: { - width: '25%', - }, [theme.breakpoints.down('md')]: { width: '100%', }, @@ -46,6 +45,7 @@ const useStyles = makeStyles((theme) => ({ const Home = (): JSX.Element => { const classes = useStyles(); + const width = useWindowDimensions(); const { data } = PeriodicFetch( `${process.env.NEXT_PUBLIC_API_URL}/get_anvils`, @@ -55,25 +55,41 @@ const Home = (): JSX.Element => { <>
- {data?.anvils && ( - - - - + {data?.anvils && + width && + (width > LARGE_MOBILE_BREAKPOINT ? ( + + + + + + + + + + + + + + + + - - + ) : ( + + + + + + + + + + + + - - - - - - - - - - )} + ))} ); From 6d1f4f80259171156d5fa28eba0df7ff7f5ebf8f Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 30 Jun 2021 12:41:28 -0400 Subject: [PATCH 04/90] fix(front-end): adjust padding and breakpoint when showing scrollbars --- striker-ui/components/Anvils/AnvilList.tsx | 9 +++++++-- striker-ui/components/FileSystem/FileSystems.tsx | 3 ++- striker-ui/components/Hosts/AnvilHost.tsx | 4 +++- striker-ui/components/Network/Network.tsx | 8 ++++++-- striker-ui/components/Servers.tsx | 5 ++++- striker-ui/components/SharedStorage/SharedStorage.tsx | 4 +++- 6 files changed, 25 insertions(+), 8 deletions(-) diff --git a/striker-ui/components/Anvils/AnvilList.tsx b/striker-ui/components/Anvils/AnvilList.tsx index 6859b817..9bbb928d 100644 --- a/striker-ui/components/Anvils/AnvilList.tsx +++ b/striker-ui/components/Anvils/AnvilList.tsx @@ -1,7 +1,11 @@ import { useContext, useEffect } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { List, Box, Divider, ListItem } from '@material-ui/core'; -import { HOVER, DIVIDER } from '../../lib/consts/DEFAULT_THEME'; +import { + HOVER, + DIVIDER, + LARGE_MOBILE_BREAKPOINT, +} from '../../lib/consts/DEFAULT_THEME'; import Anvil from './Anvil'; import { AnvilContext } from '../AnvilContext'; import sortAnvils from './sortAnvils'; @@ -12,7 +16,8 @@ const useStyles = makeStyles((theme) => ({ 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/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/Hosts/AnvilHost.tsx b/striker-ui/components/Hosts/AnvilHost.tsx index 068a97ac..e0678247 100644 --- a/striker-ui/components/Hosts/AnvilHost.tsx +++ b/striker-ui/components/Hosts/AnvilHost.tsx @@ -7,13 +7,15 @@ import Decorator, { Colours } from '../Decorator'; import HOST_STATUS from '../../lib/consts/NODES'; import putJSON from '../../lib/fetchers/putJSON'; +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', }, 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/Servers.tsx b/striker-ui/components/Servers.tsx index e781a4b5..353c3789 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'; @@ -40,8 +41,10 @@ const useStyles = makeStyles((theme) => ({ width: '100%', overflow: 'auto', height: '78vh', - [theme.breakpoints.down('md')]: { + paddingRight: '.3em', + [theme.breakpoints.down(LARGE_MOBILE_BREAKPOINT)]: { height: '100%', + overflow: 'hidden', }, }, divider: { 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%', }, }, From 159c02e0ab4aec61a344465725cf9705f2ee5691 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 30 Jun 2021 12:42:32 -0400 Subject: [PATCH 05/90] style(front-end): modify scrollbar style for panels to match design --- striker-ui/components/Panels/Panel.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/striker-ui/components/Panels/Panel.tsx b/striker-ui/components/Panels/Panel.tsx index 33fee228..007a990d 100644 --- a/striker-ui/components/Panels/Panel.tsx +++ b/striker-ui/components/Panels/Panel.tsx @@ -42,6 +42,16 @@ const useStyles = makeStyles(() => ({ bottom: '-.3em', right: '-.3em', }, + '@global': { + '*::-webkit-scrollbar': { + width: '.6em', + }, + '*::-webkit-scrollbar-thumb': { + backgroundColor: TEXT, + outline: '1px solid transparent', + borderRadius: BORDER_RADIUS, + }, + }, })); const Panel = ({ children }: Props): JSX.Element => { From 3344c87897e04369e1c10f404d5f4adaad04be29 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 30 Jun 2021 12:43:14 -0400 Subject: [PATCH 06/90] chore(front-end): fix eslint-prettier conflict --- striker-ui/.eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }, From 7f24d6b88c704b632c3accd5f8af3fbcc702d802 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Jun 2021 19:49:21 +0000 Subject: [PATCH 07/90] fix(striker-ui): use iso-8601 date format in Anvil status --- striker-ui/package-lock.json | 164 +++++++++++++++-------------------- striker-ui/package.json | 2 +- 2 files changed, 72 insertions(+), 94 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index b86c9414..95d642f0 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -969,18 +969,18 @@ "dev": true }, "ansi-escapes": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", - "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, "requires": { - "type-fest": "^0.11.0" + "type-fest": "^0.21.3" }, "dependencies": { "type-fest": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.11.0.tgz", - "integrity": "sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==", + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true } } @@ -2650,19 +2650,19 @@ } }, "execa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", - "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, "requires": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" } }, @@ -2713,15 +2713,6 @@ "reusify": "^1.0.4" } }, - "figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, "file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -2845,13 +2836,10 @@ "dev": true }, "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true }, "git-raw-commits": { "version": "2.0.10", @@ -3043,9 +3031,9 @@ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=" }, "human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true }, "husky": { @@ -3543,22 +3531,22 @@ "dev": true }, "lint-staged": { - "version": "10.5.4", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.5.4.tgz", - "integrity": "sha512-EechC3DdFic/TdOPgj/RB3FicqE6932LTHCUm0Y2fsD9KGlLB+RwJl2q1IYBIvEsKzDOgn0D4gll+YxG5RsrKg==", + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-11.0.0.tgz", + "integrity": "sha512-3rsRIoyaE8IphSUtO1RVTFl1e0SLBtxxUOPBtHxQgBHS5/i6nqvjcUfNioMa4BU9yGnPzbO+xkfLtXtxBpCzjw==", "dev": true, "requires": { - "chalk": "^4.1.0", + "chalk": "^4.1.1", "cli-truncate": "^2.1.0", - "commander": "^6.2.0", + "commander": "^7.2.0", "cosmiconfig": "^7.0.0", - "debug": "^4.2.0", + "debug": "^4.3.1", "dedent": "^0.7.0", "enquirer": "^2.3.6", - "execa": "^4.1.0", - "listr2": "^3.2.2", - "log-symbols": "^4.0.0", - "micromatch": "^4.0.2", + "execa": "^5.0.0", + "listr2": "^3.8.2", + "log-symbols": "^4.1.0", + "micromatch": "^4.0.4", "normalize-path": "^3.0.0", "please-upgrade-node": "^3.2.0", "string-argv": "0.3.1", @@ -3575,9 +3563,9 @@ } }, "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -3600,9 +3588,9 @@ "dev": true }, "commander": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", - "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true }, "has-flag": { @@ -3611,6 +3599,22 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, + "micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "dev": true, + "requires": { + "braces": "^3.0.1", + "picomatch": "^2.2.3" + } + }, + "picomatch": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", + "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "dev": true + }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -3623,18 +3627,16 @@ } }, "listr2": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.4.3.tgz", - "integrity": "sha512-wZmkzNiuinOfwrGqAwTCcPw6aKQGTAMGXwG5xeU1WpDjJNeBA35jGBeWxR3OF+R6Yl5Y3dRG+3vE8t6PDcSNHA==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.10.0.tgz", + "integrity": "sha512-eP40ZHihu70sSmqFNbNy2NL1YwImmlMmPh9WO5sLmPDleurMHt3n+SwEWNu2kzKScexZnkyFtc1VI0z/TGlmpw==", "dev": true, "requires": { - "chalk": "^4.1.0", "cli-truncate": "^2.1.0", - "figures": "^3.2.0", - "indent-string": "^4.0.0", + "colorette": "^1.2.2", "log-update": "^4.0.0", "p-map": "^4.0.0", - "rxjs": "^6.6.6", + "rxjs": "^6.6.7", "through": "^2.3.8", "wrap-ansi": "^7.0.0" }, @@ -3648,16 +3650,6 @@ "color-convert": "^2.0.1" } }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -3673,12 +3665,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -3696,15 +3682,6 @@ "strip-ansi": "^6.0.0" } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, "wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -3770,12 +3747,13 @@ "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=" }, "log-symbols": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", - "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, "requires": { - "chalk": "^4.0.0" + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" }, "dependencies": { "ansi-styles": { @@ -3788,9 +3766,9 @@ } }, "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -4989,9 +4967,9 @@ } }, "rxjs": { - "version": "6.6.6", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.6.tgz", - "integrity": "sha512-/oTwee4N4iWzAMAL9xdGKjkEHmIwupR3oXbQjCKywF1BeFohswF3vZdogbmEF6pZkOsXTzWkrZszrWpQTByYVg==", + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", "dev": true, "requires": { "tslib": "^1.9.0" diff --git a/striker-ui/package.json b/striker-ui/package.json index d70ed0cc..0ab9c3f3 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -39,7 +39,7 @@ "eslint-plugin-react": "^7.22.0", "eslint-plugin-react-hooks": "^4.2.0", "husky": "^5.0.9", - "lint-staged": "^10.5.4", + "lint-staged": "^11.0.0", "prettier": "^2.2.1", "typescript": "^4.1.5" } From 179e22ff083f82886bf27cb9fe1141c8b02cebd3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 7 Jun 2021 19:51:01 +0000 Subject: [PATCH 08/90] fix(striker-ui): use iso-8601 date format in Anvil status --- striker-ui/package-lock.json | 53 ++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 14 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 95d642f0..ca616201 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -429,14 +429,14 @@ "integrity": "sha512-sqKVVVOe5ivCaXDWivIJYVSaEgdQK9ul7a4Kity5Iw7u9+wBAPbX1RMSnLLmp7O4Vzj0WOWwMAJsTL00xwaNug==" }, "@material-ui/core": { - "version": "4.11.3", - "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.3.tgz", - "integrity": "sha512-Adt40rGW6Uds+cAyk3pVgcErpzU/qxc7KBR94jFHBYretU4AtWZltYcNsbeMn9tXL86jjVL1kuGcIHsgLgFGRw==", + "version": "4.11.4", + "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.4.tgz", + "integrity": "sha512-oqb+lJ2Dl9HXI9orc6/aN8ZIAMkeThufA5iZELf2LQeBn2NtjVilF5D2w7e9RpntAzDb4jK5DsVhkfOvFY/8fg==", "requires": { "@babel/runtime": "^7.4.4", - "@material-ui/styles": "^4.11.3", + "@material-ui/styles": "^4.11.4", "@material-ui/system": "^4.11.3", - "@material-ui/types": "^5.1.0", + "@material-ui/types": "5.1.0", "@material-ui/utils": "^4.11.2", "@types/react-transition-group": "^4.2.0", "clsx": "^1.0.4", @@ -445,6 +445,31 @@ "prop-types": "^15.7.2", "react-is": "^16.8.0 || ^17.0.0", "react-transition-group": "^4.4.0" + }, + "dependencies": { + "@material-ui/styles": { + "version": "4.11.4", + "resolved": "https://registry.npmjs.org/@material-ui/styles/-/styles-4.11.4.tgz", + "integrity": "sha512-KNTIZcnj/zprG5LW0Sao7zw+yG3O35pviHzejMdcSGCdWbiO8qzRgOYL8JAxAsWBKOKYwVZxXtHWaB5T2Kvxew==", + "requires": { + "@babel/runtime": "^7.4.4", + "@emotion/hash": "^0.8.0", + "@material-ui/types": "5.1.0", + "@material-ui/utils": "^4.11.2", + "clsx": "^1.0.4", + "csstype": "^2.5.2", + "hoist-non-react-statics": "^3.3.2", + "jss": "^10.5.1", + "jss-plugin-camel-case": "^10.5.1", + "jss-plugin-default-unit": "^10.5.1", + "jss-plugin-global": "^10.5.1", + "jss-plugin-nested": "^10.5.1", + "jss-plugin-props-sort": "^10.5.1", + "jss-plugin-rule-value-function": "^10.5.1", + "jss-plugin-vendor-prefixer": "^10.5.1", + "prop-types": "^15.7.2" + } + } } }, "@material-ui/icons": { @@ -1890,18 +1915,18 @@ } }, "dom-helpers": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.0.tgz", - "integrity": "sha512-Ru5o9+V8CpunKnz5LGgWXkmrH/20cGKwcHwS4m73zIvs54CN9epEmT/HLqFJW3kXpakAFkEdzgy1hzlJe3E4OQ==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", "requires": { "@babel/runtime": "^7.8.7", "csstype": "^3.0.2" }, "dependencies": { "csstype": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.7.tgz", - "integrity": "sha512-KxnUB0ZMlnUWCsx2Z8MUsr6qV6ja1w9ArPErJaJaF8a5SOWoHLIszeCTKGRGRgtLgYrs1E8CHkNSP1VZTTPc9g==" + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", + "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==" } } }, @@ -4764,9 +4789,9 @@ "integrity": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==" }, "react-transition-group": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.1.tgz", - "integrity": "sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw==", + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.2.tgz", + "integrity": "sha512-/RNYfRAMlZwDSr6z4zNKV6xu53/e2BuaBbGhbyYIXTrmgu/bGHzmqOs7mJSJBHy9Ud+ApHx3QjrkKSp1pxvlFg==", "requires": { "@babel/runtime": "^7.5.5", "dom-helpers": "^5.0.1", From b351b51502c7c8423a78331d4099037a87d388b8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Jun 2021 09:15:59 +0000 Subject: [PATCH 09/90] chore: bump @typescript-eslint/parser in /striker-ui Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.17.0 to 4.26.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 80 ++++++++++++++++++++++++++++++++---- 1 file changed, 73 insertions(+), 7 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index ca616201..acb906ba 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -875,15 +875,81 @@ } }, "@typescript-eslint/parser": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.17.0.tgz", - "integrity": "sha512-KYdksiZQ0N1t+6qpnl6JeK9ycCFprS9xBAiIrw4gSphqONt8wydBw4BXJi3C11ywZmyHulvMaLjWsxDjUSDwAw==", + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.26.1.tgz", + "integrity": "sha512-q7F3zSo/nU6YJpPJvQveVlIIzx9/wu75lr6oDbDzoeIRWxpoc/HQ43G4rmMoCc5my/3uSj2VEpg/D83LYZF5HQ==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "4.17.0", - "@typescript-eslint/types": "4.17.0", - "@typescript-eslint/typescript-estree": "4.17.0", - "debug": "^4.1.1" + "@typescript-eslint/scope-manager": "4.26.1", + "@typescript-eslint/types": "4.26.1", + "@typescript-eslint/typescript-estree": "4.26.1", + "debug": "^4.3.1" + }, + "dependencies": { + "@typescript-eslint/scope-manager": { + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.26.1.tgz", + "integrity": "sha512-TW1X2p62FQ8Rlne+WEShyd7ac2LA6o27S9i131W4NwDSfyeVlQWhw8ylldNNS8JG6oJB9Ha9Xyc+IUcqipvheQ==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.26.1", + "@typescript-eslint/visitor-keys": "4.26.1" + } + }, + "@typescript-eslint/types": { + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.26.1.tgz", + "integrity": "sha512-STyMPxR3cS+LaNvS8yK15rb8Y0iL0tFXq0uyl6gY45glyI7w0CsyqyEXl/Fa0JlQy+pVANeK3sbwPneCbWE7yg==", + "dev": true + }, + "@typescript-eslint/typescript-estree": { + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.1.tgz", + "integrity": "sha512-l3ZXob+h0NQzz80lBGaykdScYaiEbFqznEs99uwzm8fPHhDjwaBFfQkjUC/slw6Sm7npFL8qrGEAMxcfBsBJUg==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.26.1", + "@typescript-eslint/visitor-keys": "4.26.1", + "debug": "^4.3.1", + "globby": "^11.0.3", + "is-glob": "^4.0.1", + "semver": "^7.3.5", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.1.tgz", + "integrity": "sha512-IGouNSSd+6x/fHtYRyLOM6/C+QxMDzWlDtN41ea+flWuSF9g02iqcIlX8wM53JkfljoIjP0U+yp7SiTS1onEkw==", + "dev": true, + "requires": { + "@typescript-eslint/types": "4.26.1", + "eslint-visitor-keys": "^2.0.0" + } + }, + "globby": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", + "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", + "dev": true, + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + } + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } } }, "@typescript-eslint/scope-manager": { From 293bb004521592f79f374f5652e465b8b760a764 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Jun 2021 09:15:19 +0000 Subject: [PATCH 10/90] chore: bump eslint-plugin-react from 7.22.0 to 7.24.0 in /striker-ui Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.22.0 to 7.24.0. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.22.0...v7.24.0) --- updated-dependencies: - dependency-name: eslint-plugin-react dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 182 ++++++++++++++++++++++++++++++++--- 1 file changed, 167 insertions(+), 15 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index acb906ba..4ebaf427 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -2583,22 +2583,23 @@ } }, "eslint-plugin-react": { - "version": "7.22.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.22.0.tgz", - "integrity": "sha512-p30tuX3VS+NWv9nQot9xIGAHBXR0+xJVaZriEsHoJrASGCJZDJ8JLNM0YqKqI0AKm6Uxaa1VUHoNEibxRCMQHA==", + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.24.0.tgz", + "integrity": "sha512-KJJIx2SYx7PBx3ONe/mEeMz4YE0Lcr7feJTCMyyKb/341NcjuAgim3Acgan89GfPv7nxXK2+0slu0CWXYM4x+Q==", "dev": true, "requires": { - "array-includes": "^3.1.1", - "array.prototype.flatmap": "^1.2.3", + "array-includes": "^3.1.3", + "array.prototype.flatmap": "^1.2.4", "doctrine": "^2.1.0", "has": "^1.0.3", "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "object.entries": "^1.1.2", - "object.fromentries": "^2.0.2", - "object.values": "^1.1.1", + "minimatch": "^3.0.4", + "object.entries": "^1.1.4", + "object.fromentries": "^2.0.4", + "object.values": "^1.1.4", "prop-types": "^15.7.2", - "resolve": "^1.18.1", - "string.prototype.matchall": "^4.0.2" + "resolve": "^2.0.0-next.3", + "string.prototype.matchall": "^4.0.5" }, "dependencies": { "doctrine": { @@ -2609,6 +2610,96 @@ "requires": { "esutils": "^2.0.2" } + }, + "es-abstract": { + "version": "1.18.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.3.tgz", + "integrity": "sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.2", + "is-callable": "^1.2.3", + "is-negative-zero": "^2.0.1", + "is-regex": "^1.1.3", + "is-string": "^1.0.6", + "object-inspect": "^1.10.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "string.prototype.trimend": "^1.0.4", + "string.prototype.trimstart": "^1.0.4", + "unbox-primitive": "^1.0.1" + } + }, + "is-regex": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.3.tgz", + "integrity": "sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-symbols": "^1.0.2" + } + }, + "is-string": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.6.tgz", + "integrity": "sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==", + "dev": true + }, + "object-inspect": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz", + "integrity": "sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==", + "dev": true + }, + "object.entries": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.4.tgz", + "integrity": "sha512-h4LWKWE+wKQGhtMjZEBud7uLGhqyLwj8fpHOarZhD2uY3C9cRtk57VQ89ke3moByLXMedqs3XCHzyb4AmA2DjA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.18.2" + } + }, + "object.values": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.4.tgz", + "integrity": "sha512-TnGo7j4XSnKQoK3MfvkzqKCi0nVe/D9I9IjwTNYdb/fxYHpjrluHVOgw0AF6jrRFGMPHdfuidR09tIDiIvnaSg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.18.2" + } + }, + "resolve": { + "version": "2.0.0-next.3", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.3.tgz", + "integrity": "sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q==", + "dev": true, + "requires": { + "is-core-module": "^2.2.0", + "path-parse": "^1.0.6" + } + }, + "unbox-primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", + "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has-bigints": "^1.0.1", + "has-symbols": "^1.0.2", + "which-boxed-primitive": "^1.0.2" + } } } }, @@ -5335,18 +5426,79 @@ } }, "string.prototype.matchall": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.4.tgz", - "integrity": "sha512-pknFIWVachNcyqRfaQSeu/FUfpvJTe4uskUSZ9Wc1RijsPuzbZ8TyYT8WCNnntCjUEqQ3vUHMAfVj2+wLAisPQ==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.5.tgz", + "integrity": "sha512-Z5ZaXO0svs0M2xd/6By3qpeKpLKd9mO4v4q3oMEQrk8Ck4xOD5d5XeBOOjGrmVZZ/AHB1S0CgG4N5r1G9N3E2Q==", "dev": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2", - "has-symbols": "^1.0.1", + "es-abstract": "^1.18.2", + "get-intrinsic": "^1.1.1", + "has-symbols": "^1.0.2", "internal-slot": "^1.0.3", "regexp.prototype.flags": "^1.3.1", "side-channel": "^1.0.4" + }, + "dependencies": { + "es-abstract": { + "version": "1.18.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.3.tgz", + "integrity": "sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.2", + "is-callable": "^1.2.3", + "is-negative-zero": "^2.0.1", + "is-regex": "^1.1.3", + "is-string": "^1.0.6", + "object-inspect": "^1.10.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "string.prototype.trimend": "^1.0.4", + "string.prototype.trimstart": "^1.0.4", + "unbox-primitive": "^1.0.1" + } + }, + "is-regex": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.3.tgz", + "integrity": "sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-symbols": "^1.0.2" + } + }, + "is-string": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.6.tgz", + "integrity": "sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==", + "dev": true + }, + "object-inspect": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz", + "integrity": "sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==", + "dev": true + }, + "unbox-primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", + "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has-bigints": "^1.0.1", + "has-symbols": "^1.0.2", + "which-boxed-primitive": "^1.0.2" + } + } } }, "string.prototype.trimend": { From b23242b983eb04102b4dacc2ddf3a569f6bdec11 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 15:44:43 +0000 Subject: [PATCH 11/90] chore: bump @types/react from 17.0.3 to 17.0.11 in /striker-ui Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 17.0.3 to 17.0.11. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 479 ++++++++++------------------------- 1 file changed, 129 insertions(+), 350 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 4ebaf427..9fc80658 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -429,14 +429,14 @@ "integrity": "sha512-sqKVVVOe5ivCaXDWivIJYVSaEgdQK9ul7a4Kity5Iw7u9+wBAPbX1RMSnLLmp7O4Vzj0WOWwMAJsTL00xwaNug==" }, "@material-ui/core": { - "version": "4.11.4", - "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.4.tgz", - "integrity": "sha512-oqb+lJ2Dl9HXI9orc6/aN8ZIAMkeThufA5iZELf2LQeBn2NtjVilF5D2w7e9RpntAzDb4jK5DsVhkfOvFY/8fg==", + "version": "4.11.3", + "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.3.tgz", + "integrity": "sha512-Adt40rGW6Uds+cAyk3pVgcErpzU/qxc7KBR94jFHBYretU4AtWZltYcNsbeMn9tXL86jjVL1kuGcIHsgLgFGRw==", "requires": { "@babel/runtime": "^7.4.4", - "@material-ui/styles": "^4.11.4", + "@material-ui/styles": "^4.11.3", "@material-ui/system": "^4.11.3", - "@material-ui/types": "5.1.0", + "@material-ui/types": "^5.1.0", "@material-ui/utils": "^4.11.2", "@types/react-transition-group": "^4.2.0", "clsx": "^1.0.4", @@ -445,31 +445,6 @@ "prop-types": "^15.7.2", "react-is": "^16.8.0 || ^17.0.0", "react-transition-group": "^4.4.0" - }, - "dependencies": { - "@material-ui/styles": { - "version": "4.11.4", - "resolved": "https://registry.npmjs.org/@material-ui/styles/-/styles-4.11.4.tgz", - "integrity": "sha512-KNTIZcnj/zprG5LW0Sao7zw+yG3O35pviHzejMdcSGCdWbiO8qzRgOYL8JAxAsWBKOKYwVZxXtHWaB5T2Kvxew==", - "requires": { - "@babel/runtime": "^7.4.4", - "@emotion/hash": "^0.8.0", - "@material-ui/types": "5.1.0", - "@material-ui/utils": "^4.11.2", - "clsx": "^1.0.4", - "csstype": "^2.5.2", - "hoist-non-react-statics": "^3.3.2", - "jss": "^10.5.1", - "jss-plugin-camel-case": "^10.5.1", - "jss-plugin-default-unit": "^10.5.1", - "jss-plugin-global": "^10.5.1", - "jss-plugin-nested": "^10.5.1", - "jss-plugin-props-sort": "^10.5.1", - "jss-plugin-rule-value-function": "^10.5.1", - "jss-plugin-vendor-prefixer": "^10.5.1", - "prop-types": "^15.7.2" - } - } } }, "@material-ui/icons": { @@ -875,81 +850,15 @@ } }, "@typescript-eslint/parser": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.26.1.tgz", - "integrity": "sha512-q7F3zSo/nU6YJpPJvQveVlIIzx9/wu75lr6oDbDzoeIRWxpoc/HQ43G4rmMoCc5my/3uSj2VEpg/D83LYZF5HQ==", + "version": "4.17.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.17.0.tgz", + "integrity": "sha512-KYdksiZQ0N1t+6qpnl6JeK9ycCFprS9xBAiIrw4gSphqONt8wydBw4BXJi3C11ywZmyHulvMaLjWsxDjUSDwAw==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "4.26.1", - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/typescript-estree": "4.26.1", - "debug": "^4.3.1" - }, - "dependencies": { - "@typescript-eslint/scope-manager": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.26.1.tgz", - "integrity": "sha512-TW1X2p62FQ8Rlne+WEShyd7ac2LA6o27S9i131W4NwDSfyeVlQWhw8ylldNNS8JG6oJB9Ha9Xyc+IUcqipvheQ==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/visitor-keys": "4.26.1" - } - }, - "@typescript-eslint/types": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.26.1.tgz", - "integrity": "sha512-STyMPxR3cS+LaNvS8yK15rb8Y0iL0tFXq0uyl6gY45glyI7w0CsyqyEXl/Fa0JlQy+pVANeK3sbwPneCbWE7yg==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.1.tgz", - "integrity": "sha512-l3ZXob+h0NQzz80lBGaykdScYaiEbFqznEs99uwzm8fPHhDjwaBFfQkjUC/slw6Sm7npFL8qrGEAMxcfBsBJUg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/visitor-keys": "4.26.1", - "debug": "^4.3.1", - "globby": "^11.0.3", - "is-glob": "^4.0.1", - "semver": "^7.3.5", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.1.tgz", - "integrity": "sha512-IGouNSSd+6x/fHtYRyLOM6/C+QxMDzWlDtN41ea+flWuSF9g02iqcIlX8wM53JkfljoIjP0U+yp7SiTS1onEkw==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.26.1", - "eslint-visitor-keys": "^2.0.0" - } - }, - "globby": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", - "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - } - }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } + "@typescript-eslint/scope-manager": "4.17.0", + "@typescript-eslint/types": "4.17.0", + "@typescript-eslint/typescript-estree": "4.17.0", + "debug": "^4.1.1" } }, "@typescript-eslint/scope-manager": { @@ -1060,12 +969,12 @@ "dev": true }, "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", + "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", "dev": true, "requires": { - "type-fest": "^0.21.3" + "type-fest": "^0.11.0" }, "dependencies": { "type-fest": { @@ -1981,18 +1890,18 @@ } }, "dom-helpers": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", - "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.0.tgz", + "integrity": "sha512-Ru5o9+V8CpunKnz5LGgWXkmrH/20cGKwcHwS4m73zIvs54CN9epEmT/HLqFJW3kXpakAFkEdzgy1hzlJe3E4OQ==", "requires": { "@babel/runtime": "^7.8.7", "csstype": "^3.0.2" }, "dependencies": { "csstype": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", - "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==" + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.7.tgz", + "integrity": "sha512-KxnUB0ZMlnUWCsx2Z8MUsr6qV6ja1w9ArPErJaJaF8a5SOWoHLIszeCTKGRGRgtLgYrs1E8CHkNSP1VZTTPc9g==" } } }, @@ -2583,23 +2492,22 @@ } }, "eslint-plugin-react": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.24.0.tgz", - "integrity": "sha512-KJJIx2SYx7PBx3ONe/mEeMz4YE0Lcr7feJTCMyyKb/341NcjuAgim3Acgan89GfPv7nxXK2+0slu0CWXYM4x+Q==", + "version": "7.22.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.22.0.tgz", + "integrity": "sha512-p30tuX3VS+NWv9nQot9xIGAHBXR0+xJVaZriEsHoJrASGCJZDJ8JLNM0YqKqI0AKm6Uxaa1VUHoNEibxRCMQHA==", "dev": true, "requires": { - "array-includes": "^3.1.3", - "array.prototype.flatmap": "^1.2.4", + "array-includes": "^3.1.1", + "array.prototype.flatmap": "^1.2.3", "doctrine": "^2.1.0", "has": "^1.0.3", "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "minimatch": "^3.0.4", - "object.entries": "^1.1.4", - "object.fromentries": "^2.0.4", - "object.values": "^1.1.4", + "object.entries": "^1.1.2", + "object.fromentries": "^2.0.2", + "object.values": "^1.1.1", "prop-types": "^15.7.2", - "resolve": "^2.0.0-next.3", - "string.prototype.matchall": "^4.0.5" + "resolve": "^1.18.1", + "string.prototype.matchall": "^4.0.2" }, "dependencies": { "doctrine": { @@ -2610,96 +2518,6 @@ "requires": { "esutils": "^2.0.2" } - }, - "es-abstract": { - "version": "1.18.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.3.tgz", - "integrity": "sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.2", - "is-callable": "^1.2.3", - "is-negative-zero": "^2.0.1", - "is-regex": "^1.1.3", - "is-string": "^1.0.6", - "object-inspect": "^1.10.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.4", - "string.prototype.trimstart": "^1.0.4", - "unbox-primitive": "^1.0.1" - } - }, - "is-regex": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.3.tgz", - "integrity": "sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-symbols": "^1.0.2" - } - }, - "is-string": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.6.tgz", - "integrity": "sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==", - "dev": true - }, - "object-inspect": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz", - "integrity": "sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==", - "dev": true - }, - "object.entries": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.4.tgz", - "integrity": "sha512-h4LWKWE+wKQGhtMjZEBud7uLGhqyLwj8fpHOarZhD2uY3C9cRtk57VQ89ke3moByLXMedqs3XCHzyb4AmA2DjA==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.2" - } - }, - "object.values": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.4.tgz", - "integrity": "sha512-TnGo7j4XSnKQoK3MfvkzqKCi0nVe/D9I9IjwTNYdb/fxYHpjrluHVOgw0AF6jrRFGMPHdfuidR09tIDiIvnaSg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.1.3", - "es-abstract": "^1.18.2" - } - }, - "resolve": { - "version": "2.0.0-next.3", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.3.tgz", - "integrity": "sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q==", - "dev": true, - "requires": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" - } - }, - "unbox-primitive": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", - "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has-bigints": "^1.0.1", - "has-symbols": "^1.0.2", - "which-boxed-primitive": "^1.0.2" - } } } }, @@ -2832,19 +2650,19 @@ } }, "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", + "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", "dev": true, "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", + "cross-spawn": "^7.0.0", + "get-stream": "^5.0.0", + "human-signals": "^1.1.1", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", + "npm-run-path": "^4.0.0", + "onetime": "^5.1.0", + "signal-exit": "^3.0.2", "strip-final-newline": "^2.0.0" } }, @@ -2895,6 +2713,15 @@ "reusify": "^1.0.4" } }, + "figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5" + } + }, "file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -3018,10 +2845,13 @@ "dev": true }, "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "dev": true, + "requires": { + "pump": "^3.0.0" + } }, "git-raw-commits": { "version": "2.0.10", @@ -3213,9 +3043,9 @@ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=" }, "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", + "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", "dev": true }, "husky": { @@ -3713,22 +3543,22 @@ "dev": true }, "lint-staged": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-11.0.0.tgz", - "integrity": "sha512-3rsRIoyaE8IphSUtO1RVTFl1e0SLBtxxUOPBtHxQgBHS5/i6nqvjcUfNioMa4BU9yGnPzbO+xkfLtXtxBpCzjw==", + "version": "10.5.4", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.5.4.tgz", + "integrity": "sha512-EechC3DdFic/TdOPgj/RB3FicqE6932LTHCUm0Y2fsD9KGlLB+RwJl2q1IYBIvEsKzDOgn0D4gll+YxG5RsrKg==", "dev": true, "requires": { - "chalk": "^4.1.1", + "chalk": "^4.1.0", "cli-truncate": "^2.1.0", - "commander": "^7.2.0", + "commander": "^6.2.0", "cosmiconfig": "^7.0.0", - "debug": "^4.3.1", + "debug": "^4.2.0", "dedent": "^0.7.0", "enquirer": "^2.3.6", - "execa": "^5.0.0", - "listr2": "^3.8.2", - "log-symbols": "^4.1.0", - "micromatch": "^4.0.4", + "execa": "^4.1.0", + "listr2": "^3.2.2", + "log-symbols": "^4.0.0", + "micromatch": "^4.0.2", "normalize-path": "^3.0.0", "please-upgrade-node": "^3.2.0", "string-argv": "0.3.1", @@ -3745,9 +3575,9 @@ } }, "chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -3770,9 +3600,9 @@ "dev": true }, "commander": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", - "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", "dev": true }, "has-flag": { @@ -3781,22 +3611,6 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", - "dev": true, - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" - } - }, - "picomatch": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", - "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", - "dev": true - }, "supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -3809,16 +3623,18 @@ } }, "listr2": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.10.0.tgz", - "integrity": "sha512-eP40ZHihu70sSmqFNbNy2NL1YwImmlMmPh9WO5sLmPDleurMHt3n+SwEWNu2kzKScexZnkyFtc1VI0z/TGlmpw==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.4.3.tgz", + "integrity": "sha512-wZmkzNiuinOfwrGqAwTCcPw6aKQGTAMGXwG5xeU1WpDjJNeBA35jGBeWxR3OF+R6Yl5Y3dRG+3vE8t6PDcSNHA==", "dev": true, "requires": { + "chalk": "^4.1.0", "cli-truncate": "^2.1.0", - "colorette": "^1.2.2", + "figures": "^3.2.0", + "indent-string": "^4.0.0", "log-update": "^4.0.0", "p-map": "^4.0.0", - "rxjs": "^6.6.7", + "rxjs": "^6.6.6", "through": "^2.3.8", "wrap-ansi": "^7.0.0" }, @@ -3832,6 +3648,16 @@ "color-convert": "^2.0.1" } }, + "chalk": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -3847,6 +3673,12 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, "is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -3864,6 +3696,15 @@ "strip-ansi": "^6.0.0" } }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, "wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", @@ -3929,13 +3770,12 @@ "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=" }, "log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", + "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", "dev": true, "requires": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" + "chalk": "^4.0.0" }, "dependencies": { "ansi-styles": { @@ -3948,9 +3788,9 @@ } }, "chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", + "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -4946,9 +4786,9 @@ "integrity": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==" }, "react-transition-group": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.2.tgz", - "integrity": "sha512-/RNYfRAMlZwDSr6z4zNKV6xu53/e2BuaBbGhbyYIXTrmgu/bGHzmqOs7mJSJBHy9Ud+ApHx3QjrkKSp1pxvlFg==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.1.tgz", + "integrity": "sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw==", "requires": { "@babel/runtime": "^7.5.5", "dom-helpers": "^5.0.1", @@ -5149,9 +4989,9 @@ } }, "rxjs": { - "version": "6.6.7", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", - "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "version": "6.6.6", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.6.tgz", + "integrity": "sha512-/oTwee4N4iWzAMAL9xdGKjkEHmIwupR3oXbQjCKywF1BeFohswF3vZdogbmEF6pZkOsXTzWkrZszrWpQTByYVg==", "dev": true, "requires": { "tslib": "^1.9.0" @@ -5426,79 +5266,18 @@ } }, "string.prototype.matchall": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.5.tgz", - "integrity": "sha512-Z5ZaXO0svs0M2xd/6By3qpeKpLKd9mO4v4q3oMEQrk8Ck4xOD5d5XeBOOjGrmVZZ/AHB1S0CgG4N5r1G9N3E2Q==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.4.tgz", + "integrity": "sha512-pknFIWVachNcyqRfaQSeu/FUfpvJTe4uskUSZ9Wc1RijsPuzbZ8TyYT8WCNnntCjUEqQ3vUHMAfVj2+wLAisPQ==", "dev": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", - "es-abstract": "^1.18.2", - "get-intrinsic": "^1.1.1", - "has-symbols": "^1.0.2", + "es-abstract": "^1.18.0-next.2", + "has-symbols": "^1.0.1", "internal-slot": "^1.0.3", "regexp.prototype.flags": "^1.3.1", "side-channel": "^1.0.4" - }, - "dependencies": { - "es-abstract": { - "version": "1.18.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.3.tgz", - "integrity": "sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "es-to-primitive": "^1.2.1", - "function-bind": "^1.1.1", - "get-intrinsic": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.2", - "is-callable": "^1.2.3", - "is-negative-zero": "^2.0.1", - "is-regex": "^1.1.3", - "is-string": "^1.0.6", - "object-inspect": "^1.10.3", - "object-keys": "^1.1.1", - "object.assign": "^4.1.2", - "string.prototype.trimend": "^1.0.4", - "string.prototype.trimstart": "^1.0.4", - "unbox-primitive": "^1.0.1" - } - }, - "is-regex": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.3.tgz", - "integrity": "sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-symbols": "^1.0.2" - } - }, - "is-string": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.6.tgz", - "integrity": "sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==", - "dev": true - }, - "object-inspect": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz", - "integrity": "sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==", - "dev": true - }, - "unbox-primitive": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", - "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1", - "has-bigints": "^1.0.1", - "has-symbols": "^1.0.2", - "which-boxed-primitive": "^1.0.2" - } - } } }, "string.prototype.trimend": { @@ -5623,9 +5402,9 @@ } }, "swr": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/swr/-/swr-0.5.6.tgz", - "integrity": "sha512-Bmx3L4geMZjYT5S2Z6EE6/5Cx6v1Ka0LhqZKq8d6WL2eu9y6gHWz3dUzfIK/ymZVHVfwT/EweFXiYGgfifei3w==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/swr/-/swr-0.4.2.tgz", + "integrity": "sha512-SKGxcAfyijj/lE5ja5zVMDqJNudASH3WZPRUakDVOePTM18FnsXgugndjl9BSRwj+jokFCulMDe7F2pQL+VhEw==", "requires": { "dequal": "2.0.2" } From 1f45c2886e0ebabff3f8c8a083df092196bc6275 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 10 Jun 2021 09:15:40 +0000 Subject: [PATCH 12/90] chore: bump lint-staged from 10.5.4 to 11.0.0 in /striker-ui Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.5.4 to 11.0.0. - [Release notes](https://github.com/okonet/lint-staged/releases) - [Commits](https://github.com/okonet/lint-staged/compare/v10.5.4...v11.0.0) --- updated-dependencies: - dependency-name: lint-staged dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 342 ++++++++++++----------------------- 1 file changed, 113 insertions(+), 229 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 9fc80658..48147172 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -969,12 +969,12 @@ "dev": true }, "ansi-escapes": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.1.tgz", - "integrity": "sha512-JWF7ocqNrp8u9oqpgV+wH5ftbt+cfvv+PTjOvKLT3AdYly/LmORARfEVT1iyjwN+4MqE5UmVKoAdIBqeoCHgLA==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, "requires": { - "type-fest": "^0.11.0" + "type-fest": "^0.21.3" }, "dependencies": { "type-fest": { @@ -1441,12 +1441,6 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, "slice-ansi": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", @@ -1457,17 +1451,6 @@ "astral-regex": "^2.0.0", "is-fullwidth-code-point": "^3.0.0" } - }, - "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } } } }, @@ -1542,6 +1525,12 @@ "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==" }, + "commander": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", + "dev": true + }, "commondir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", @@ -1964,15 +1953,6 @@ "iconv-lite": "^0.6.2" } }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, "enquirer": { "version": "2.3.6", "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", @@ -2650,19 +2630,19 @@ } }, "execa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", - "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, "requires": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" } }, @@ -2713,15 +2693,6 @@ "reusify": "^1.0.4" } }, - "figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, "file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -2845,13 +2816,10 @@ "dev": true }, "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true }, "git-raw-commits": { "version": "2.0.10", @@ -3043,9 +3011,9 @@ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=" }, "human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true }, "husky": { @@ -3316,6 +3284,12 @@ "has-symbols": "^1.0.1" } }, + "is-unicode-supported": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", + "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "dev": true + }, "isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -3543,22 +3517,22 @@ "dev": true }, "lint-staged": { - "version": "10.5.4", - "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-10.5.4.tgz", - "integrity": "sha512-EechC3DdFic/TdOPgj/RB3FicqE6932LTHCUm0Y2fsD9KGlLB+RwJl2q1IYBIvEsKzDOgn0D4gll+YxG5RsrKg==", + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/lint-staged/-/lint-staged-11.0.0.tgz", + "integrity": "sha512-3rsRIoyaE8IphSUtO1RVTFl1e0SLBtxxUOPBtHxQgBHS5/i6nqvjcUfNioMa4BU9yGnPzbO+xkfLtXtxBpCzjw==", "dev": true, "requires": { - "chalk": "^4.1.0", + "chalk": "^4.1.1", "cli-truncate": "^2.1.0", - "commander": "^6.2.0", + "commander": "^7.2.0", "cosmiconfig": "^7.0.0", - "debug": "^4.2.0", + "debug": "^4.3.1", "dedent": "^0.7.0", "enquirer": "^2.3.6", - "execa": "^4.1.0", - "listr2": "^3.2.2", - "log-symbols": "^4.0.0", - "micromatch": "^4.0.2", + "execa": "^5.0.0", + "listr2": "^3.8.2", + "log-symbols": "^4.1.0", + "micromatch": "^4.0.4", "normalize-path": "^3.0.0", "please-upgrade-node": "^3.2.0", "string-argv": "0.3.1", @@ -3575,9 +3549,9 @@ } }, "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -3599,123 +3573,37 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "commander": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", - "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "micromatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", + "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "braces": "^3.0.1", + "picomatch": "^2.2.3" } + }, + "picomatch": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", + "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", + "dev": true } } }, "listr2": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.4.3.tgz", - "integrity": "sha512-wZmkzNiuinOfwrGqAwTCcPw6aKQGTAMGXwG5xeU1WpDjJNeBA35jGBeWxR3OF+R6Yl5Y3dRG+3vE8t6PDcSNHA==", + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/listr2/-/listr2-3.10.0.tgz", + "integrity": "sha512-eP40ZHihu70sSmqFNbNy2NL1YwImmlMmPh9WO5sLmPDleurMHt3n+SwEWNu2kzKScexZnkyFtc1VI0z/TGlmpw==", "dev": true, "requires": { - "chalk": "^4.1.0", "cli-truncate": "^2.1.0", - "figures": "^3.2.0", - "indent-string": "^4.0.0", + "colorette": "^1.2.2", "log-update": "^4.0.0", "p-map": "^4.0.0", - "rxjs": "^6.6.6", + "rxjs": "^6.6.7", "through": "^2.3.8", "wrap-ansi": "^7.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - } - } } }, "load-json-file": { @@ -3770,12 +3658,13 @@ "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=" }, "log-symbols": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", - "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", + "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", "dev": true, "requires": { - "chalk": "^4.0.0" + "chalk": "^4.1.0", + "is-unicode-supported": "^0.1.0" }, "dependencies": { "ansi-styles": { @@ -3788,9 +3677,9 @@ } }, "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -3811,21 +3700,6 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } } } }, @@ -3839,6 +3713,43 @@ "cli-cursor": "^3.1.0", "slice-ansi": "^4.0.0", "wrap-ansi": "^6.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + } } }, "loose-envify": { @@ -4675,16 +4586,6 @@ } } }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, "punycode": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", @@ -4989,9 +4890,9 @@ } }, "rxjs": { - "version": "6.6.6", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.6.tgz", - "integrity": "sha512-/oTwee4N4iWzAMAL9xdGKjkEHmIwupR3oXbQjCKywF1BeFohswF3vZdogbmEF6pZkOsXTzWkrZszrWpQTByYVg==", + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", "dev": true, "requires": { "tslib": "^1.9.0" @@ -5773,9 +5674,9 @@ "dev": true }, "wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, "requires": { "ansi-styles": "^4.0.0", @@ -5806,23 +5707,6 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } } } }, From 7e2d751c89feb3c28717ffb2e4696eec1f1d0162 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 10 Jun 2021 09:16:50 +0000 Subject: [PATCH 13/90] chore: bump eslint-plugin-react from 7.22.0 to 7.24.0 in /striker-ui Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.22.0 to 7.24.0. - [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases) - [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md) - [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.22.0...v7.24.0) --- updated-dependencies: - dependency-name: eslint-plugin-react dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 182 ++++++++++++++++++++++++++++++++--- striker-ui/package.json | 2 +- 2 files changed, 168 insertions(+), 16 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 48147172..d91048a1 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -2472,22 +2472,23 @@ } }, "eslint-plugin-react": { - "version": "7.22.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.22.0.tgz", - "integrity": "sha512-p30tuX3VS+NWv9nQot9xIGAHBXR0+xJVaZriEsHoJrASGCJZDJ8JLNM0YqKqI0AKm6Uxaa1VUHoNEibxRCMQHA==", + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-7.24.0.tgz", + "integrity": "sha512-KJJIx2SYx7PBx3ONe/mEeMz4YE0Lcr7feJTCMyyKb/341NcjuAgim3Acgan89GfPv7nxXK2+0slu0CWXYM4x+Q==", "dev": true, "requires": { - "array-includes": "^3.1.1", - "array.prototype.flatmap": "^1.2.3", + "array-includes": "^3.1.3", + "array.prototype.flatmap": "^1.2.4", "doctrine": "^2.1.0", "has": "^1.0.3", "jsx-ast-utils": "^2.4.1 || ^3.0.0", - "object.entries": "^1.1.2", - "object.fromentries": "^2.0.2", - "object.values": "^1.1.1", + "minimatch": "^3.0.4", + "object.entries": "^1.1.4", + "object.fromentries": "^2.0.4", + "object.values": "^1.1.4", "prop-types": "^15.7.2", - "resolve": "^1.18.1", - "string.prototype.matchall": "^4.0.2" + "resolve": "^2.0.0-next.3", + "string.prototype.matchall": "^4.0.5" }, "dependencies": { "doctrine": { @@ -2498,6 +2499,96 @@ "requires": { "esutils": "^2.0.2" } + }, + "es-abstract": { + "version": "1.18.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.3.tgz", + "integrity": "sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.2", + "is-callable": "^1.2.3", + "is-negative-zero": "^2.0.1", + "is-regex": "^1.1.3", + "is-string": "^1.0.6", + "object-inspect": "^1.10.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "string.prototype.trimend": "^1.0.4", + "string.prototype.trimstart": "^1.0.4", + "unbox-primitive": "^1.0.1" + } + }, + "is-regex": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.3.tgz", + "integrity": "sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-symbols": "^1.0.2" + } + }, + "is-string": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.6.tgz", + "integrity": "sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==", + "dev": true + }, + "object-inspect": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz", + "integrity": "sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==", + "dev": true + }, + "object.entries": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.4.tgz", + "integrity": "sha512-h4LWKWE+wKQGhtMjZEBud7uLGhqyLwj8fpHOarZhD2uY3C9cRtk57VQ89ke3moByLXMedqs3XCHzyb4AmA2DjA==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.18.2" + } + }, + "object.values": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.4.tgz", + "integrity": "sha512-TnGo7j4XSnKQoK3MfvkzqKCi0nVe/D9I9IjwTNYdb/fxYHpjrluHVOgw0AF6jrRFGMPHdfuidR09tIDiIvnaSg==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.18.2" + } + }, + "resolve": { + "version": "2.0.0-next.3", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-2.0.0-next.3.tgz", + "integrity": "sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q==", + "dev": true, + "requires": { + "is-core-module": "^2.2.0", + "path-parse": "^1.0.6" + } + }, + "unbox-primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", + "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has-bigints": "^1.0.1", + "has-symbols": "^1.0.2", + "which-boxed-primitive": "^1.0.2" + } } } }, @@ -5167,18 +5258,79 @@ } }, "string.prototype.matchall": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.4.tgz", - "integrity": "sha512-pknFIWVachNcyqRfaQSeu/FUfpvJTe4uskUSZ9Wc1RijsPuzbZ8TyYT8WCNnntCjUEqQ3vUHMAfVj2+wLAisPQ==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.5.tgz", + "integrity": "sha512-Z5ZaXO0svs0M2xd/6By3qpeKpLKd9mO4v4q3oMEQrk8Ck4xOD5d5XeBOOjGrmVZZ/AHB1S0CgG4N5r1G9N3E2Q==", "dev": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2", - "has-symbols": "^1.0.1", + "es-abstract": "^1.18.2", + "get-intrinsic": "^1.1.1", + "has-symbols": "^1.0.2", "internal-slot": "^1.0.3", "regexp.prototype.flags": "^1.3.1", "side-channel": "^1.0.4" + }, + "dependencies": { + "es-abstract": { + "version": "1.18.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.3.tgz", + "integrity": "sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.2", + "is-callable": "^1.2.3", + "is-negative-zero": "^2.0.1", + "is-regex": "^1.1.3", + "is-string": "^1.0.6", + "object-inspect": "^1.10.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "string.prototype.trimend": "^1.0.4", + "string.prototype.trimstart": "^1.0.4", + "unbox-primitive": "^1.0.1" + } + }, + "is-regex": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.3.tgz", + "integrity": "sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-symbols": "^1.0.2" + } + }, + "is-string": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.6.tgz", + "integrity": "sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==", + "dev": true + }, + "object-inspect": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz", + "integrity": "sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==", + "dev": true + }, + "unbox-primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", + "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has-bigints": "^1.0.1", + "has-symbols": "^1.0.2", + "which-boxed-primitive": "^1.0.2" + } + } } }, "string.prototype.trimend": { diff --git a/striker-ui/package.json b/striker-ui/package.json index 0ab9c3f3..7ac50a83 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -36,7 +36,7 @@ "eslint-plugin-import": "^2.22.1", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-prettier": "^3.3.1", - "eslint-plugin-react": "^7.22.0", + "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^4.2.0", "husky": "^5.0.9", "lint-staged": "^11.0.0", From eb00d0dc03ded82f08e30b4ec24e02acc5da49f5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 10 Jun 2021 09:18:43 +0000 Subject: [PATCH 14/90] chore: bump @typescript-eslint/parser in /striker-ui Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.17.0 to 4.26.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 68 ++++++++++++++++++------------------ striker-ui/package.json | 2 +- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index d91048a1..da885ff0 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -850,52 +850,52 @@ } }, "@typescript-eslint/parser": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.17.0.tgz", - "integrity": "sha512-KYdksiZQ0N1t+6qpnl6JeK9ycCFprS9xBAiIrw4gSphqONt8wydBw4BXJi3C11ywZmyHulvMaLjWsxDjUSDwAw==", + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.26.1.tgz", + "integrity": "sha512-q7F3zSo/nU6YJpPJvQveVlIIzx9/wu75lr6oDbDzoeIRWxpoc/HQ43G4rmMoCc5my/3uSj2VEpg/D83LYZF5HQ==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "4.17.0", - "@typescript-eslint/types": "4.17.0", - "@typescript-eslint/typescript-estree": "4.17.0", - "debug": "^4.1.1" + "@typescript-eslint/scope-manager": "4.26.1", + "@typescript-eslint/types": "4.26.1", + "@typescript-eslint/typescript-estree": "4.26.1", + "debug": "^4.3.1" } }, "@typescript-eslint/scope-manager": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.17.0.tgz", - "integrity": "sha512-OJ+CeTliuW+UZ9qgULrnGpPQ1bhrZNFpfT/Bc0pzNeyZwMik7/ykJ0JHnQ7krHanFN9wcnPK89pwn84cRUmYjw==", + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.26.1.tgz", + "integrity": "sha512-TW1X2p62FQ8Rlne+WEShyd7ac2LA6o27S9i131W4NwDSfyeVlQWhw8ylldNNS8JG6oJB9Ha9Xyc+IUcqipvheQ==", "dev": true, "requires": { - "@typescript-eslint/types": "4.17.0", - "@typescript-eslint/visitor-keys": "4.17.0" + "@typescript-eslint/types": "4.26.1", + "@typescript-eslint/visitor-keys": "4.26.1" } }, "@typescript-eslint/types": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.17.0.tgz", - "integrity": "sha512-RN5z8qYpJ+kXwnLlyzZkiJwfW2AY458Bf8WqllkondQIcN2ZxQowAToGSd9BlAUZDB5Ea8I6mqL2quGYCLT+2g==", + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.26.1.tgz", + "integrity": "sha512-STyMPxR3cS+LaNvS8yK15rb8Y0iL0tFXq0uyl6gY45glyI7w0CsyqyEXl/Fa0JlQy+pVANeK3sbwPneCbWE7yg==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.17.0.tgz", - "integrity": "sha512-lRhSFIZKUEPPWpWfwuZBH9trYIEJSI0vYsrxbvVvNyIUDoKWaklOAelsSkeh3E2VBSZiNe9BZ4E5tYBZbUczVQ==", + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.1.tgz", + "integrity": "sha512-l3ZXob+h0NQzz80lBGaykdScYaiEbFqznEs99uwzm8fPHhDjwaBFfQkjUC/slw6Sm7npFL8qrGEAMxcfBsBJUg==", "dev": true, "requires": { - "@typescript-eslint/types": "4.17.0", - "@typescript-eslint/visitor-keys": "4.17.0", - "debug": "^4.1.1", - "globby": "^11.0.1", + "@typescript-eslint/types": "4.26.1", + "@typescript-eslint/visitor-keys": "4.26.1", + "debug": "^4.3.1", + "globby": "^11.0.3", "is-glob": "^4.0.1", - "semver": "^7.3.2", - "tsutils": "^3.17.1" + "semver": "^7.3.5", + "tsutils": "^3.21.0" }, "dependencies": { "semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dev": true, "requires": { "lru-cache": "^6.0.0" @@ -904,12 +904,12 @@ } }, "@typescript-eslint/visitor-keys": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.17.0.tgz", - "integrity": "sha512-WfuMN8mm5SSqXuAr9NM+fItJ0SVVphobWYkWOwQ1odsfC014Vdxk/92t4JwS1Q6fCA/ABfCKpa3AVtpUKTNKGQ==", + "version": "4.26.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.1.tgz", + "integrity": "sha512-IGouNSSd+6x/fHtYRyLOM6/C+QxMDzWlDtN41ea+flWuSF9g02iqcIlX8wM53JkfljoIjP0U+yp7SiTS1onEkw==", "dev": true, "requires": { - "@typescript-eslint/types": "4.17.0", + "@typescript-eslint/types": "4.26.1", "eslint-visitor-keys": "^2.0.0" } }, @@ -2979,9 +2979,9 @@ } }, "globby": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.2.tgz", - "integrity": "sha512-2ZThXDvvV8fYFRVIxnrMQBipZQDr7MxKAmQK1vujaj9/7eF0efG7BPUKJ7jP7G5SLF37xKDXvO4S/KKLj/Z0og==", + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", + "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", "dev": true, "requires": { "array-union": "^2.1.0", diff --git a/striker-ui/package.json b/striker-ui/package.json index 7ac50a83..d6dbe3b9 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -29,7 +29,7 @@ "@types/react": "^17.0.11", "@types/styled-components": "^5.1.10", "@typescript-eslint/eslint-plugin": "^4.26.1", - "@typescript-eslint/parser": "^4.15.0", + "@typescript-eslint/parser": "^4.26.1", "eslint": "^7.19.0", "eslint-config-airbnb": "^18.2.1", "eslint-config-prettier": "^7.2.0", From 3c64d38fc448e626d2daebf48b702d583d8db6c3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 10 Jun 2021 09:19:47 +0000 Subject: [PATCH 15/90] chore: bump @types/node from 14.14.33 to 15.12.2 in /striker-ui Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.33 to 15.12.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 6 +++--- striker-ui/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index da885ff0..4584ae5a 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -637,9 +637,9 @@ "dev": true }, "@types/node": { - "version": "14.14.33", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.33.tgz", - "integrity": "sha512-oJqcTrgPUF29oUP8AsUqbXGJNuPutsetaa9kTQAQce5Lx5dTYWV02ScBiT/k1BX/Z7pKeqedmvp39Wu4zR7N7g==" + "version": "15.12.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.2.tgz", + "integrity": "sha512-zjQ69G564OCIWIOHSXyQEEDpdpGl+G348RAKY0XXy9Z5kU9Vzv1GMNnkar/ZJ8dzXB3COzD9Mo9NtRZ4xfgUww==" }, "@types/normalize-package-data": { "version": "2.4.0", diff --git a/striker-ui/package.json b/striker-ui/package.json index d6dbe3b9..58da1de7 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -25,7 +25,7 @@ "devDependencies": { "@commitlint/cli": "^12.1.4", "@commitlint/config-conventional": "^11.0.0", - "@types/node": "^14.14.26", + "@types/node": "^15.12.2", "@types/react": "^17.0.11", "@types/styled-components": "^5.1.10", "@typescript-eslint/eslint-plugin": "^4.26.1", From 6228a5f08a383c8627ca160bc15700dd5f931b5f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 10 Jun 2021 22:12:54 +0000 Subject: [PATCH 16/90] chore: bump husky from 5.1.3 to 6.0.0 in /striker-ui Bumps [husky](https://github.com/typicode/husky) from 5.1.3 to 6.0.0. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v5.1.3...v6.0.0) --- updated-dependencies: - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 6 +++--- striker-ui/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 4584ae5a..339847cc 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -3108,9 +3108,9 @@ "dev": true }, "husky": { - "version": "5.1.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-5.1.3.tgz", - "integrity": "sha512-fbNJ+Gz5wx2LIBtMweJNY1D7Uc8p1XERi5KNRMccwfQA+rXlxWNSdUxswo0gT8XqxywTIw7Ywm/F4v/O35RdMg==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/husky/-/husky-6.0.0.tgz", + "integrity": "sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==", "dev": true }, "hyphenate-style-name": { diff --git a/striker-ui/package.json b/striker-ui/package.json index 58da1de7..5bbd8f9f 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -38,7 +38,7 @@ "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^4.2.0", - "husky": "^5.0.9", + "husky": "^6.0.0", "lint-staged": "^11.0.0", "prettier": "^2.2.1", "typescript": "^4.1.5" From f146108d38a8fa6fb02b1ce65fe7f02a7cfd3e1d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Jun 2021 09:12:26 +0000 Subject: [PATCH 17/90] chore: bump eslint from 7.21.0 to 7.28.0 in /striker-ui Bumps [eslint](https://github.com/eslint/eslint) from 7.21.0 to 7.28.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.21.0...v7.28.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 146 ++++++++++++++++------------------- striker-ui/package.json | 2 +- 2 files changed, 69 insertions(+), 79 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 339847cc..30e19334 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -376,15 +376,15 @@ "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==" }, "@eslint/eslintrc": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.0.tgz", - "integrity": "sha512-2ZPCc+uNbjV5ERJr+aKSPRwZgKd2z11x0EgLvb1PURmUrn9QNRXFqje0Ldq454PfAVyaJYyrDvvIKSFP4NnBog==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.2.tgz", + "integrity": "sha512-8nmGq/4ycLpIwzvhI4tNDmQztZ8sp+hI7cyG8i1nQDhkAbRzHpXPidRAHlNvCZQpJTKw5ItIpMw9RSToGF00mg==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.1.1", "espree": "^7.3.0", - "globals": "^12.1.0", + "globals": "^13.9.0", "ignore": "^4.0.6", "import-fresh": "^3.2.1", "js-yaml": "^3.13.1", @@ -397,12 +397,6 @@ "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true } } }, @@ -2028,29 +2022,31 @@ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "eslint": { - "version": "7.21.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.21.0.tgz", - "integrity": "sha512-W2aJbXpMNofUp0ztQaF40fveSsJBjlSCSWpy//gzfTvwC+USs/nceBrKmlJOiM8r1bLwP2EuYkCqArn/6QTIgg==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz", + "integrity": "sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==", "dev": true, "requires": { "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.0", + "@eslint/eslintrc": "^0.4.2", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.0.1", "doctrine": "^3.0.0", "enquirer": "^2.3.5", + "escape-string-regexp": "^4.0.0", "eslint-scope": "^5.1.1", "eslint-utils": "^2.1.0", "eslint-visitor-keys": "^2.0.0", "espree": "^7.3.1", "esquery": "^1.4.0", "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", - "globals": "^12.1.0", + "glob-parent": "^5.1.2", + "globals": "^13.6.0", "ignore": "^4.0.6", "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", @@ -2058,7 +2054,7 @@ "js-yaml": "^3.13.1", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", - "lodash": "^4.17.20", + "lodash.merge": "^4.6.2", "minimatch": "^3.0.4", "natural-compare": "^1.4.0", "optionator": "^0.9.1", @@ -2067,7 +2063,7 @@ "semver": "^7.2.1", "strip-ansi": "^6.0.0", "strip-json-comments": "^3.1.0", - "table": "^6.0.4", + "table": "^6.0.9", "text-table": "^0.2.0", "v8-compile-cache": "^2.0.3" }, @@ -2082,9 +2078,9 @@ } }, "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", "dev": true, "requires": { "ansi-styles": "^4.1.0", @@ -2106,10 +2102,10 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, - "has-flag": { + "escape-string-regexp": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true }, "ignore": { @@ -2119,28 +2115,13 @@ "dev": true }, "semver": { - "version": "7.3.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.4.tgz", - "integrity": "sha512-tCfb2WLjqFAtXn4KEdxIhalnRtoKFN7nAwj0B3ZXCbQloV2tq5eDbcTmT68JJD3nRJq24/XgxtQKFIpQdtvmVw==", + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", "dev": true, "requires": { "lru-cache": "^6.0.0" } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } } } }, @@ -2926,9 +2907,9 @@ } }, "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "version": "7.1.7", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", + "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -2962,18 +2943,18 @@ } }, "globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "version": "13.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", + "integrity": "sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA==", "dev": true, "requires": { - "type-fest": "^0.8.1" + "type-fest": "^0.20.2" }, "dependencies": { "type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true } } @@ -3743,11 +3724,29 @@ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, + "lodash.merge": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true + }, "lodash.sortby": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=" }, + "lodash.truncate": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", + "integrity": "sha1-WjUNoLERO4N+z//VgSy+WNbq4ZM=", + "dev": true + }, "log-symbols": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", @@ -5407,6 +5406,12 @@ "min-indent": "^1.0.0" } }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, "styled-jsx": { "version": "3.3.2", "resolved": "https://registry.npmjs.org/styled-jsx/-/styled-jsx-3.3.2.tgz", @@ -5468,21 +5473,23 @@ "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==" }, "table": { - "version": "6.0.7", - "resolved": "https://registry.npmjs.org/table/-/table-6.0.7.tgz", - "integrity": "sha512-rxZevLGTUzWna/qBLObOe16kB2RTnnbhciwgPbMMlazz1yZGVEgnZK762xyVdVznhqxrfCeBMmMkgOOaPwjH7g==", + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/table/-/table-6.7.1.tgz", + "integrity": "sha512-ZGum47Yi6KOOFDE8m223td53ath2enHcYLgOCjGr5ngu8bdIARQk6mN/wRMv4yMRcHnCSnHbCEha4sobQx5yWg==", "dev": true, "requires": { - "ajv": "^7.0.2", - "lodash": "^4.17.20", + "ajv": "^8.0.1", + "lodash.clonedeep": "^4.5.0", + "lodash.truncate": "^4.4.2", "slice-ansi": "^4.0.0", - "string-width": "^4.2.0" + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0" }, "dependencies": { "ajv": { - "version": "7.2.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-7.2.1.tgz", - "integrity": "sha512-+nu0HDv7kNSOua9apAVc979qd932rrZeb3WOvoiD31A/p1mIE5/9bN2027pE2rOPYEdS3UHzsvof4hY+lM9/WQ==", + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.0.tgz", + "integrity": "sha512-cnUG4NSBiM4YFBxgZIj/In3/6KX+rQ2l2YPRVcvAMQGWEPKuXoPIhxzwqh31jA3IPbI4qEOp/5ILI4ynioXsGQ==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", @@ -5491,28 +5498,11 @@ "uri-js": "^4.2.2" } }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", "dev": true - }, - "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } } } }, diff --git a/striker-ui/package.json b/striker-ui/package.json index 5bbd8f9f..c9d191d0 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -30,7 +30,7 @@ "@types/styled-components": "^5.1.10", "@typescript-eslint/eslint-plugin": "^4.26.1", "@typescript-eslint/parser": "^4.26.1", - "eslint": "^7.19.0", + "eslint": "^7.28.0", "eslint-config-airbnb": "^18.2.1", "eslint-config-prettier": "^7.2.0", "eslint-plugin-import": "^2.22.1", From a335a5c624581cfae4b24f686484d8e1ea449a85 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Jun 2021 09:13:12 +0000 Subject: [PATCH 18/90] chore: bump @material-ui/core from 4.11.3 to 4.11.4 in /striker-ui Bumps [@material-ui/core](https://github.com/mui-org/material-ui/tree/HEAD/packages/material-ui) from 4.11.3 to 4.11.4. - [Release notes](https://github.com/mui-org/material-ui/releases) - [Changelog](https://github.com/mui-org/material-ui/blob/v4.11.4/CHANGELOG.md) - [Commits](https://github.com/mui-org/material-ui/commits/v4.11.4/packages/material-ui) --- updated-dependencies: - dependency-name: "@material-ui/core" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 30e19334..db6063f9 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -423,14 +423,14 @@ "integrity": "sha512-sqKVVVOe5ivCaXDWivIJYVSaEgdQK9ul7a4Kity5Iw7u9+wBAPbX1RMSnLLmp7O4Vzj0WOWwMAJsTL00xwaNug==" }, "@material-ui/core": { - "version": "4.11.3", - "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.3.tgz", - "integrity": "sha512-Adt40rGW6Uds+cAyk3pVgcErpzU/qxc7KBR94jFHBYretU4AtWZltYcNsbeMn9tXL86jjVL1kuGcIHsgLgFGRw==", + "version": "4.11.4", + "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.4.tgz", + "integrity": "sha512-oqb+lJ2Dl9HXI9orc6/aN8ZIAMkeThufA5iZELf2LQeBn2NtjVilF5D2w7e9RpntAzDb4jK5DsVhkfOvFY/8fg==", "requires": { "@babel/runtime": "^7.4.4", - "@material-ui/styles": "^4.11.3", + "@material-ui/styles": "^4.11.4", "@material-ui/system": "^4.11.3", - "@material-ui/types": "^5.1.0", + "@material-ui/types": "5.1.0", "@material-ui/utils": "^4.11.2", "@types/react-transition-group": "^4.2.0", "clsx": "^1.0.4", @@ -1873,18 +1873,18 @@ } }, "dom-helpers": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.0.tgz", - "integrity": "sha512-Ru5o9+V8CpunKnz5LGgWXkmrH/20cGKwcHwS4m73zIvs54CN9epEmT/HLqFJW3kXpakAFkEdzgy1hzlJe3E4OQ==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", + "integrity": "sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==", "requires": { "@babel/runtime": "^7.8.7", "csstype": "^3.0.2" }, "dependencies": { "csstype": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.7.tgz", - "integrity": "sha512-KxnUB0ZMlnUWCsx2Z8MUsr6qV6ja1w9ArPErJaJaF8a5SOWoHLIszeCTKGRGRgtLgYrs1E8CHkNSP1VZTTPc9g==" + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.0.8.tgz", + "integrity": "sha512-jXKhWqXPmlUeoQnF/EhTtTl4C9SnrxSH/jZUih3jmO6lBKr99rP3/+FmrMj4EFpOXzMtXHAZkd3x0E6h6Fgflw==" } } }, @@ -4777,9 +4777,9 @@ "integrity": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==" }, "react-transition-group": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.1.tgz", - "integrity": "sha512-Djqr7OQ2aPUiYurhPalTrVy9ddmFCCzwhqQmtN+J3+3DzLO209Fdr70QrN8Z3DsglWql6iY1lDWAfpFiBtuKGw==", + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.2.tgz", + "integrity": "sha512-/RNYfRAMlZwDSr6z4zNKV6xu53/e2BuaBbGhbyYIXTrmgu/bGHzmqOs7mJSJBHy9Ud+ApHx3QjrkKSp1pxvlFg==", "requires": { "@babel/runtime": "^7.5.5", "dom-helpers": "^5.0.1", From 96e603db78c62a07395599bd5f8c5d8d289f2990 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 11 Jun 2021 09:13:31 +0000 Subject: [PATCH 19/90] chore: bump @commitlint/config-conventional in /striker-ui Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint) from 11.0.0 to 12.1.4. - [Release notes](https://github.com/conventional-changelog/commitlint/releases) - [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md) - [Commits](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.1.4) --- updated-dependencies: - dependency-name: "@commitlint/config-conventional" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 12 ++++++------ striker-ui/package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index db6063f9..c2b6eadd 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -73,9 +73,9 @@ } }, "@commitlint/config-conventional": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-11.0.0.tgz", - "integrity": "sha512-SNDRsb5gLuDd2PL83yCOQX6pE7gevC79UPFx+GLbLfw6jGnnbO9/tlL76MLD8MOViqGbo7ZicjChO9Gn+7tHhA==", + "version": "12.1.4", + "resolved": "https://registry.npmjs.org/@commitlint/config-conventional/-/config-conventional-12.1.4.tgz", + "integrity": "sha512-ZIdzmdy4o4WyqywMEpprRCrehjCSQrHkaRTVZV411GyLigFQHlEBSJITAihLAWe88Qy/8SyoIe5uKvAsV5vRqQ==", "dev": true, "requires": { "conventional-changelog-conventionalcommits": "^4.3.1" @@ -1579,9 +1579,9 @@ } }, "conventional-changelog-conventionalcommits": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.5.0.tgz", - "integrity": "sha512-buge9xDvjjOxJlyxUnar/+6i/aVEVGA7EEh4OafBCXPlLUQPGbRUBhBUveWRxzvR8TEjhKEP4BdepnpG2FSZXw==", + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.6.0.tgz", + "integrity": "sha512-sj9tj3z5cnHaSJCYObA9nISf7eq/YjscLPoq6nmew4SiOjxqL2KRpK20fjnjVbpNDjJ2HR3MoVcWKXwbVvzS0A==", "dev": true, "requires": { "compare-func": "^2.0.0", diff --git a/striker-ui/package.json b/striker-ui/package.json index c9d191d0..a09df25c 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -24,7 +24,7 @@ }, "devDependencies": { "@commitlint/cli": "^12.1.4", - "@commitlint/config-conventional": "^11.0.0", + "@commitlint/config-conventional": "^12.1.4", "@types/node": "^15.12.2", "@types/react": "^17.0.11", "@types/styled-components": "^5.1.10", From 829db8d16552422cadd9f36f66696b63ab38833d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jun 2021 09:09:56 +0000 Subject: [PATCH 20/90] chore: bump swr from 0.4.2 to 0.5.6 in /striker-ui Bumps [swr](https://github.com/vercel/swr) from 0.4.2 to 0.5.6. - [Release notes](https://github.com/vercel/swr/releases) - [Commits](https://github.com/vercel/swr/compare/0.4.2...0.5.6) --- updated-dependencies: - dependency-name: swr dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index c2b6eadd..00136735 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -5460,9 +5460,9 @@ } }, "swr": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/swr/-/swr-0.4.2.tgz", - "integrity": "sha512-SKGxcAfyijj/lE5ja5zVMDqJNudASH3WZPRUakDVOePTM18FnsXgugndjl9BSRwj+jokFCulMDe7F2pQL+VhEw==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/swr/-/swr-0.5.6.tgz", + "integrity": "sha512-Bmx3L4geMZjYT5S2Z6EE6/5Cx6v1Ka0LhqZKq8d6WL2eu9y6gHWz3dUzfIK/ymZVHVfwT/EweFXiYGgfifei3w==", "requires": { "dequal": "2.0.2" } From 15f76adeec7e0c8b215f40f78b11128fd77e8705 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jun 2021 09:10:14 +0000 Subject: [PATCH 21/90] chore: bump typescript from 4.2.3 to 4.3.2 in /striker-ui Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.3 to 4.3.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.3...v4.3.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 00136735..38fd9292 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -5646,9 +5646,9 @@ "integrity": "sha512-ntjupUqs7yAfp0nbcc30AdDV1OWSnlm5z1wPo2Br2yB8UKM/cLD2NP0DJNX5QomAGg9Q87wlkgT4hUxciqdNYw==" }, "typescript": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz", - "integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz", + "integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==", "dev": true }, "unbox-primitive": { From bbfa20a13a488ac83c2cfb27eb3c3dc84ea9f17c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jun 2021 09:10:29 +0000 Subject: [PATCH 22/90] chore: bump eslint-plugin-import from 2.22.1 to 2.23.4 in /striker-ui Bumps [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import) from 2.22.1 to 2.23.4. - [Release notes](https://github.com/benmosher/eslint-plugin-import/releases) - [Changelog](https://github.com/benmosher/eslint-plugin-import/blob/master/CHANGELOG.md) - [Commits](https://github.com/benmosher/eslint-plugin-import/compare/v2.22.1...v2.23.4) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 262 ++++++++++++++++++++++++++--------- striker-ui/package.json | 2 +- 2 files changed, 194 insertions(+), 70 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 38fd9292..571a59a3 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -1562,12 +1562,6 @@ "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=" }, - "contains-path": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/contains-path/-/contains-path-0.1.0.tgz", - "integrity": "sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo=", - "dev": true - }, "conventional-changelog-angular": { "version": "5.0.12", "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.12.tgz", @@ -2181,22 +2175,22 @@ } }, "eslint-module-utils": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.0.tgz", - "integrity": "sha512-6j9xxegbqe8/kZY8cYpcp0xhbK0EgJlg3g9mib3/miLaExuuwc3n5UEfSnU6hWMbT0FAYVvDbL9RrRgpUeQIvA==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.6.1.tgz", + "integrity": "sha512-ZXI9B8cxAJIH4nfkhTwcRTEAnrVfobYqwjWy/QMCZ8rHkZHFjf9yO4BzpiF9kCSfNlMG54eKigISHpX0+AaT4A==", "dev": true, "requires": { - "debug": "^2.6.9", + "debug": "^3.2.7", "pkg-dir": "^2.0.0" }, "dependencies": { "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", + "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", "dev": true, "requires": { - "ms": "2.0.0" + "ms": "^2.1.1" } }, "find-up": { @@ -2218,12 +2212,6 @@ "path-exists": "^3.0.0" } }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, "p-limit": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", @@ -2266,23 +2254,25 @@ } }, "eslint-plugin-import": { - "version": "2.22.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.22.1.tgz", - "integrity": "sha512-8K7JjINHOpH64ozkAhpT3sd+FswIZTfMZTjdx052pnWrgRCVfp8op9tbjpAk3DdUeI/Ba4C8OjdC0r90erHEOw==", + "version": "2.23.4", + "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.23.4.tgz", + "integrity": "sha512-6/wP8zZRsnQFiR3iaPFgh5ImVRM1WN5NUWfTIRqwOdeiGJlBcSk82o1FEVq8yXmy4lkIzTo7YhHCIxlU/2HyEQ==", "dev": true, "requires": { - "array-includes": "^3.1.1", - "array.prototype.flat": "^1.2.3", - "contains-path": "^0.1.0", + "array-includes": "^3.1.3", + "array.prototype.flat": "^1.2.4", "debug": "^2.6.9", - "doctrine": "1.5.0", + "doctrine": "^2.1.0", "eslint-import-resolver-node": "^0.3.4", - "eslint-module-utils": "^2.6.0", + "eslint-module-utils": "^2.6.1", + "find-up": "^2.0.0", "has": "^1.0.3", + "is-core-module": "^2.4.0", "minimatch": "^3.0.4", - "object.values": "^1.1.1", - "read-pkg-up": "^2.0.0", - "resolve": "^1.17.0", + "object.values": "^1.1.3", + "pkg-up": "^2.0.0", + "read-pkg-up": "^3.0.0", + "resolve": "^1.20.0", "tsconfig-paths": "^3.9.0" }, "dependencies": { @@ -2296,13 +2286,12 @@ } }, "doctrine": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz", - "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, "requires": { - "esutils": "^2.0.2", - "isarray": "^1.0.0" + "esutils": "^2.0.2" } }, "find-up": { @@ -2315,11 +2304,20 @@ } }, "hosted-git-info": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", - "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", + "version": "2.8.9", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", + "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", "dev": true }, + "is-core-module": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.4.0.tgz", + "integrity": "sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==", + "dev": true, + "requires": { + "has": "^1.0.3" + } + }, "locate-path": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", @@ -2379,33 +2377,33 @@ "dev": true }, "path-type": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", - "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", "dev": true, "requires": { - "pify": "^2.0.0" + "pify": "^3.0.0" } }, "read-pkg": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", - "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", "dev": true, "requires": { - "load-json-file": "^2.0.0", + "load-json-file": "^4.0.0", "normalize-package-data": "^2.3.2", - "path-type": "^2.0.0" + "path-type": "^3.0.0" } }, "read-pkg-up": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", - "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz", + "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=", "dev": true, "requires": { "find-up": "^2.0.0", - "read-pkg": "^2.0.0" + "read-pkg": "^3.0.0" } }, "semver": { @@ -3413,6 +3411,12 @@ "esprima": "^4.0.0" } }, + "json-parse-better-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", + "dev": true + }, "json-parse-even-better-errors": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", @@ -3679,24 +3683,25 @@ } }, "load-json-file": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", - "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", "dev": true, "requires": { "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", + "parse-json": "^4.0.0", + "pify": "^3.0.0", "strip-bom": "^3.0.0" }, "dependencies": { "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, "requires": { - "error-ex": "^1.2.0" + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" } } } @@ -4362,15 +4367,74 @@ } }, "object.values": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.3.tgz", - "integrity": "sha512-nkF6PfDB9alkOUxpf1HNm/QlkeW3SReqL5WXeBLpEJJnlPSvRaDQpW3gQTksTN3fgJX4hL42RzKyOin6ff3tyw==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.4.tgz", + "integrity": "sha512-TnGo7j4XSnKQoK3MfvkzqKCi0nVe/D9I9IjwTNYdb/fxYHpjrluHVOgw0AF6jrRFGMPHdfuidR09tIDiIvnaSg==", "dev": true, "requires": { "call-bind": "^1.0.2", "define-properties": "^1.1.3", - "es-abstract": "^1.18.0-next.2", - "has": "^1.0.3" + "es-abstract": "^1.18.2" + }, + "dependencies": { + "es-abstract": { + "version": "1.18.3", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.18.3.tgz", + "integrity": "sha512-nQIr12dxV7SSxE6r6f1l3DtAeEYdsGpps13dR0TwJg1S8gyp4ZPgy3FZcHBgbiQqnoqSTb+oC+kO4UQ0C/J8vw==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "get-intrinsic": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.2", + "is-callable": "^1.2.3", + "is-negative-zero": "^2.0.1", + "is-regex": "^1.1.3", + "is-string": "^1.0.6", + "object-inspect": "^1.10.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.2", + "string.prototype.trimend": "^1.0.4", + "string.prototype.trimstart": "^1.0.4", + "unbox-primitive": "^1.0.1" + } + }, + "is-regex": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.3.tgz", + "integrity": "sha512-qSVXFz28HM7y+IWX6vLCsexdlvzT1PJNFSBuaQLQ5o0IEw8UDYW6/2+eCMVyIsbM8CNLX2a/QWmSpyxYEHY7CQ==", + "dev": true, + "requires": { + "call-bind": "^1.0.2", + "has-symbols": "^1.0.2" + } + }, + "is-string": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.6.tgz", + "integrity": "sha512-2gdzbKUuqtQ3lYNrUTQYoClPhm7oQu4UdpSZMp1/DGgkHBT8E2Z1l0yMdb6D4zNAxwDiMv8MdulKROJGNl0Q0w==", + "dev": true + }, + "object-inspect": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.10.3.tgz", + "integrity": "sha512-e5mCJlSH7poANfC8z8S9s9S2IN5/4Zb3aZ33f5s8YqoazCFzNLloLU8r5VCG+G7WoqLvAAZoVMcy3tp/3X0Plw==", + "dev": true + }, + "unbox-primitive": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", + "integrity": "sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1", + "has-bigints": "^1.0.1", + "has-symbols": "^1.0.2", + "which-boxed-primitive": "^1.0.2" + } + } } }, "once": { @@ -4540,9 +4604,9 @@ "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" }, "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", "dev": true }, "pkg-dir": { @@ -4553,6 +4617,66 @@ "find-up": "^4.0.0" } }, + "pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz", + "integrity": "sha1-yBmscoBZpGHKscOImivjxJoATX8=", + "dev": true, + "requires": { + "find-up": "^2.1.0" + }, + "dependencies": { + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "^2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", + "dev": true, + "requires": { + "p-try": "^1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "^1.1.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + } + } + }, "platform": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/platform/-/platform-1.3.6.tgz", diff --git a/striker-ui/package.json b/striker-ui/package.json index a09df25c..f4fdcbe9 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -33,7 +33,7 @@ "eslint": "^7.28.0", "eslint-config-airbnb": "^18.2.1", "eslint-config-prettier": "^7.2.0", - "eslint-plugin-import": "^2.22.1", + "eslint-plugin-import": "^2.23.4", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-prettier": "^3.3.1", "eslint-plugin-react": "^7.24.0", From ddf3b4085c41bdcc73cb53f9040d2a249a9ca76c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jun 2021 23:22:59 +0000 Subject: [PATCH 23/90] chore: bump eslint-config-prettier from 7.2.0 to 8.3.0 in /striker-ui Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 7.2.0 to 8.3.0. - [Release notes](https://github.com/prettier/eslint-config-prettier/releases) - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-config-prettier/compare/v7.2.0...v8.3.0) --- updated-dependencies: - dependency-name: eslint-config-prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 6 +++--- striker-ui/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 571a59a3..5e5f215c 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -2142,9 +2142,9 @@ } }, "eslint-config-prettier": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-7.2.0.tgz", - "integrity": "sha512-rV4Qu0C3nfJKPOAhFujFxB7RMP+URFyQqqOZW9DMRD7ZDTFyjaIlETU3xzHELt++4ugC0+Jm084HQYkkJe+Ivg==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz", + "integrity": "sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew==", "dev": true }, "eslint-import-resolver-node": { diff --git a/striker-ui/package.json b/striker-ui/package.json index f4fdcbe9..5923edc9 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -32,7 +32,7 @@ "@typescript-eslint/parser": "^4.26.1", "eslint": "^7.28.0", "eslint-config-airbnb": "^18.2.1", - "eslint-config-prettier": "^7.2.0", + "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.23.4", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-prettier": "^3.3.1", From 6cb1d29a085a0d3bc75e7f6d0e2c25d526dd3e84 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Jun 2021 09:10:54 +0000 Subject: [PATCH 24/90] chore: bump eslint-plugin-prettier from 3.3.1 to 3.4.0 in /striker-ui Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier) from 3.3.1 to 3.4.0. - [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases) - [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/eslint-plugin-prettier/commits) --- updated-dependencies: - dependency-name: eslint-plugin-prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 6 +++--- striker-ui/package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 5e5f215c..8200b8cf 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -2442,9 +2442,9 @@ } }, "eslint-plugin-prettier": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.3.1.tgz", - "integrity": "sha512-Rq3jkcFY8RYeQLgk2cCwuc0P7SEFwDravPhsJZOQ5N4YI4DSg50NyqJ/9gdZHzQlHf8MvafSesbNJCcP/FF6pQ==", + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.0.tgz", + "integrity": "sha512-UDK6rJT6INSfcOo545jiaOwB701uAIt2/dR7WnFQoGCVl1/EMqdANBmwUaqqQ45aXprsTGzSa39LI1PyuRBxxw==", "dev": true, "requires": { "prettier-linter-helpers": "^1.0.0" diff --git a/striker-ui/package.json b/striker-ui/package.json index 5923edc9..20d9afa2 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -35,7 +35,7 @@ "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.23.4", "eslint-plugin-jsx-a11y": "^6.4.1", - "eslint-plugin-prettier": "^3.3.1", + "eslint-plugin-prettier": "^3.4.0", "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^4.2.0", "husky": "^6.0.0", From df4b1b727f3abf04dc25ba9506acec8a261ae543 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Jun 2021 09:11:51 +0000 Subject: [PATCH 25/90] chore: bump @typescript-eslint/parser in /striker-ui Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.26.1 to 4.27.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.27.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 46 ++++++++++++++++++------------------ striker-ui/package.json | 2 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 8200b8cf..df4338b7 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -844,41 +844,41 @@ } }, "@typescript-eslint/parser": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.26.1.tgz", - "integrity": "sha512-q7F3zSo/nU6YJpPJvQveVlIIzx9/wu75lr6oDbDzoeIRWxpoc/HQ43G4rmMoCc5my/3uSj2VEpg/D83LYZF5HQ==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.27.0.tgz", + "integrity": "sha512-XpbxL+M+gClmJcJ5kHnUpBGmlGdgNvy6cehgR6ufyxkEJMGP25tZKCaKyC0W/JVpuhU3VU1RBn7SYUPKSMqQvQ==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "4.26.1", - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/typescript-estree": "4.26.1", + "@typescript-eslint/scope-manager": "4.27.0", + "@typescript-eslint/types": "4.27.0", + "@typescript-eslint/typescript-estree": "4.27.0", "debug": "^4.3.1" } }, "@typescript-eslint/scope-manager": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.26.1.tgz", - "integrity": "sha512-TW1X2p62FQ8Rlne+WEShyd7ac2LA6o27S9i131W4NwDSfyeVlQWhw8ylldNNS8JG6oJB9Ha9Xyc+IUcqipvheQ==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.27.0.tgz", + "integrity": "sha512-DY73jK6SEH6UDdzc6maF19AHQJBFVRf6fgAXHPXCGEmpqD4vYgPEzqpFz1lf/daSbOcMpPPj9tyXXDPW2XReAw==", "dev": true, "requires": { - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/visitor-keys": "4.26.1" + "@typescript-eslint/types": "4.27.0", + "@typescript-eslint/visitor-keys": "4.27.0" } }, "@typescript-eslint/types": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.26.1.tgz", - "integrity": "sha512-STyMPxR3cS+LaNvS8yK15rb8Y0iL0tFXq0uyl6gY45glyI7w0CsyqyEXl/Fa0JlQy+pVANeK3sbwPneCbWE7yg==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.27.0.tgz", + "integrity": "sha512-I4ps3SCPFCKclRcvnsVA/7sWzh7naaM/b4pBO2hVxnM3wrU51Lveybdw5WoIktU/V4KfXrTt94V9b065b/0+wA==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.1.tgz", - "integrity": "sha512-l3ZXob+h0NQzz80lBGaykdScYaiEbFqznEs99uwzm8fPHhDjwaBFfQkjUC/slw6Sm7npFL8qrGEAMxcfBsBJUg==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.27.0.tgz", + "integrity": "sha512-KH03GUsUj41sRLLEy2JHstnezgpS5VNhrJouRdmh6yNdQ+yl8w5LrSwBkExM+jWwCJa7Ct2c8yl8NdtNRyQO6g==", "dev": true, "requires": { - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/visitor-keys": "4.26.1", + "@typescript-eslint/types": "4.27.0", + "@typescript-eslint/visitor-keys": "4.27.0", "debug": "^4.3.1", "globby": "^11.0.3", "is-glob": "^4.0.1", @@ -898,12 +898,12 @@ } }, "@typescript-eslint/visitor-keys": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.1.tgz", - "integrity": "sha512-IGouNSSd+6x/fHtYRyLOM6/C+QxMDzWlDtN41ea+flWuSF9g02iqcIlX8wM53JkfljoIjP0U+yp7SiTS1onEkw==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.27.0.tgz", + "integrity": "sha512-es0GRYNZp0ieckZ938cEANfEhsfHrzuLrePukLKtY3/KPXcq1Xd555Mno9/GOgXhKzn0QfkDLVgqWO3dGY80bg==", "dev": true, "requires": { - "@typescript-eslint/types": "4.26.1", + "@typescript-eslint/types": "4.27.0", "eslint-visitor-keys": "^2.0.0" } }, diff --git a/striker-ui/package.json b/striker-ui/package.json index 20d9afa2..22167c96 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -29,7 +29,7 @@ "@types/react": "^17.0.11", "@types/styled-components": "^5.1.10", "@typescript-eslint/eslint-plugin": "^4.26.1", - "@typescript-eslint/parser": "^4.26.1", + "@typescript-eslint/parser": "^4.27.0", "eslint": "^7.28.0", "eslint-config-airbnb": "^18.2.1", "eslint-config-prettier": "^8.3.0", From ea38f991d807292f4a5f26e39aa06d2d53161bda Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Jun 2021 20:26:56 +0000 Subject: [PATCH 26/90] chore: bump @typescript-eslint/eslint-plugin in /striker-ui Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.26.1 to 4.27.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.27.0/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- striker-ui/package-lock.json | 112 ++++------------------------------- striker-ui/package.json | 2 +- 2 files changed, 12 insertions(+), 102 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index df4338b7..ba8b8d4a 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -702,13 +702,13 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.26.1.tgz", - "integrity": "sha512-aoIusj/8CR+xDWmZxARivZjbMBQTT9dImUtdZ8tVCVRXgBUuuZyM5Of5A9D9arQPxbi/0rlJLcuArclz/rCMJw==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.27.0.tgz", + "integrity": "sha512-DsLqxeUfLVNp3AO7PC3JyaddmEHTtI9qTSAs+RB6ja27QvIM0TA8Cizn1qcS6vOu+WDLFJzkwkgweiyFhssDdQ==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "4.26.1", - "@typescript-eslint/scope-manager": "4.26.1", + "@typescript-eslint/experimental-utils": "4.27.0", + "@typescript-eslint/scope-manager": "4.27.0", "debug": "^4.3.1", "functional-red-black-tree": "^1.0.1", "lodash": "^4.17.21", @@ -717,32 +717,6 @@ "tsutils": "^3.21.0" }, "dependencies": { - "@typescript-eslint/scope-manager": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.26.1.tgz", - "integrity": "sha512-TW1X2p62FQ8Rlne+WEShyd7ac2LA6o27S9i131W4NwDSfyeVlQWhw8ylldNNS8JG6oJB9Ha9Xyc+IUcqipvheQ==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/visitor-keys": "4.26.1" - } - }, - "@typescript-eslint/types": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.26.1.tgz", - "integrity": "sha512-STyMPxR3cS+LaNvS8yK15rb8Y0iL0tFXq0uyl6gY45glyI7w0CsyqyEXl/Fa0JlQy+pVANeK3sbwPneCbWE7yg==", - "dev": true - }, - "@typescript-eslint/visitor-keys": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.1.tgz", - "integrity": "sha512-IGouNSSd+6x/fHtYRyLOM6/C+QxMDzWlDtN41ea+flWuSF9g02iqcIlX8wM53JkfljoIjP0U+yp7SiTS1onEkw==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.26.1", - "eslint-visitor-keys": "^2.0.0" - } - }, "semver": { "version": "7.3.5", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", @@ -755,60 +729,19 @@ } }, "@typescript-eslint/experimental-utils": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.26.1.tgz", - "integrity": "sha512-sQHBugRhrXzRCs9PaGg6rowie4i8s/iD/DpTB+EXte8OMDfdCG5TvO73XlO9Wc/zi0uyN4qOmX9hIjQEyhnbmQ==", + "version": "4.27.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.27.0.tgz", + "integrity": "sha512-n5NlbnmzT2MXlyT+Y0Jf0gsmAQzCnQSWXKy4RGSXVStjDvS5we9IWbh7qRVKdGcxT0WYlgcCYUK/HRg7xFhvjQ==", "dev": true, "requires": { "@types/json-schema": "^7.0.7", - "@typescript-eslint/scope-manager": "4.26.1", - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/typescript-estree": "4.26.1", + "@typescript-eslint/scope-manager": "4.27.0", + "@typescript-eslint/types": "4.27.0", + "@typescript-eslint/typescript-estree": "4.27.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" }, "dependencies": { - "@typescript-eslint/scope-manager": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.26.1.tgz", - "integrity": "sha512-TW1X2p62FQ8Rlne+WEShyd7ac2LA6o27S9i131W4NwDSfyeVlQWhw8ylldNNS8JG6oJB9Ha9Xyc+IUcqipvheQ==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/visitor-keys": "4.26.1" - } - }, - "@typescript-eslint/types": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.26.1.tgz", - "integrity": "sha512-STyMPxR3cS+LaNvS8yK15rb8Y0iL0tFXq0uyl6gY45glyI7w0CsyqyEXl/Fa0JlQy+pVANeK3sbwPneCbWE7yg==", - "dev": true - }, - "@typescript-eslint/typescript-estree": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.1.tgz", - "integrity": "sha512-l3ZXob+h0NQzz80lBGaykdScYaiEbFqznEs99uwzm8fPHhDjwaBFfQkjUC/slw6Sm7npFL8qrGEAMxcfBsBJUg==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.26.1", - "@typescript-eslint/visitor-keys": "4.26.1", - "debug": "^4.3.1", - "globby": "^11.0.3", - "is-glob": "^4.0.1", - "semver": "^7.3.5", - "tsutils": "^3.21.0" - } - }, - "@typescript-eslint/visitor-keys": { - "version": "4.26.1", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.1.tgz", - "integrity": "sha512-IGouNSSd+6x/fHtYRyLOM6/C+QxMDzWlDtN41ea+flWuSF9g02iqcIlX8wM53JkfljoIjP0U+yp7SiTS1onEkw==", - "dev": true, - "requires": { - "@typescript-eslint/types": "4.26.1", - "eslint-visitor-keys": "^2.0.0" - } - }, "eslint-utils": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", @@ -817,29 +750,6 @@ "requires": { "eslint-visitor-keys": "^2.0.0" } - }, - "globby": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", - "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - } - }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } } } }, diff --git a/striker-ui/package.json b/striker-ui/package.json index 22167c96..5fb9c8e3 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -28,7 +28,7 @@ "@types/node": "^15.12.2", "@types/react": "^17.0.11", "@types/styled-components": "^5.1.10", - "@typescript-eslint/eslint-plugin": "^4.26.1", + "@typescript-eslint/eslint-plugin": "^4.27.0", "@typescript-eslint/parser": "^4.27.0", "eslint": "^7.28.0", "eslint-config-airbnb": "^18.2.1", From 8f353679bb29f80eb69dca76fd096a980aca4270 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 19 May 2021 18:23:55 -0400 Subject: [PATCH 27/90] feat: add server page and boilerplate code for the components --- striker-ui/components/Display.tsx | 12 +++++ striker-ui/components/Domain.tsx | 12 +++++ striker-ui/components/Resource.tsx | 12 +++++ striker-ui/pages/server.tsx | 72 ++++++++++++++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 striker-ui/components/Display.tsx create mode 100644 striker-ui/components/Domain.tsx create mode 100644 striker-ui/components/Resource.tsx create mode 100644 striker-ui/pages/server.tsx diff --git a/striker-ui/components/Display.tsx b/striker-ui/components/Display.tsx new file mode 100644 index 00000000..0c2f5495 --- /dev/null +++ b/striker-ui/components/Display.tsx @@ -0,0 +1,12 @@ +import { Panel } from './Panels'; +import { HeaderText } from './Text'; + +const Display = (): JSX.Element => { + return ( + + + + ); +}; + +export default Display; 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/Resource.tsx b/striker-ui/components/Resource.tsx new file mode 100644 index 00000000..52816d41 --- /dev/null +++ b/striker-ui/components/Resource.tsx @@ -0,0 +1,12 @@ +import { Panel } from './Panels'; +import { HeaderText } from './Text'; + +const Resource = (): JSX.Element => { + return ( + + + + ); +}; + +export default Resource; diff --git a/striker-ui/pages/server.tsx b/striker-ui/pages/server.tsx new file mode 100644 index 00000000..fe917cf3 --- /dev/null +++ b/striker-ui/pages/server.tsx @@ -0,0 +1,72 @@ +import { Box } from '@material-ui/core'; +import { makeStyles } from '@material-ui/core/styles'; + +import CPU from '../components/CPU'; +import Memory from '../components/Memory'; +import Resource from '../components/Resource'; +import PeriodicFetch from '../lib/fetchers/periodicFetch'; +import Display from '../components/Display'; +import Header from '../components/Header'; +import Domain from '../components/Domain'; + +const useStyles = makeStyles((theme) => ({ + child: { + width: '22%', + height: '100%', + [theme.breakpoints.down('lg')]: { + width: '25%', + }, + [theme.breakpoints.down('md')]: { + width: '100%', + }, + }, + server: { + width: '35%', + [theme.breakpoints.down('lg')]: { + width: '25%', + }, + [theme.breakpoints.down('md')]: { + width: '100%', + }, + }, + container: { + display: 'flex', + flexDirection: 'row', + width: '100%', + justifyContent: 'space-between', + [theme.breakpoints.down('md')]: { + display: 'block', + }, + }, +})); + +const Home = (): JSX.Element => { + const classes = useStyles(); + + const { data } = PeriodicFetch( + `${process.env.NEXT_PUBLIC_API_URL}/anvils/get_anvils`, + ); + + return ( + <> +
+ {data?.anvils && ( + + + + + + + + + + + + + + )} + + ); +}; + +export default Home; From e728e3b5f932d945c09861b1bdf7728920af13bb Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 20 May 2021 13:33:56 -0400 Subject: [PATCH 28/90] refactor: use server_uuid to fetch a resource --- .../pages/{server.tsx => server/[uuid].tsx} | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) rename striker-ui/pages/{server.tsx => server/[uuid].tsx} (60%) diff --git a/striker-ui/pages/server.tsx b/striker-ui/pages/server/[uuid].tsx similarity index 60% rename from striker-ui/pages/server.tsx rename to striker-ui/pages/server/[uuid].tsx index fe917cf3..cd33aff1 100644 --- a/striker-ui/pages/server.tsx +++ b/striker-ui/pages/server/[uuid].tsx @@ -1,13 +1,14 @@ +import { useRouter } from 'next/router'; import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; -import CPU from '../components/CPU'; -import Memory from '../components/Memory'; -import Resource from '../components/Resource'; -import PeriodicFetch from '../lib/fetchers/periodicFetch'; -import Display from '../components/Display'; -import Header from '../components/Header'; -import Domain from '../components/Domain'; +import PeriodicFetch from '../../lib/fetchers/periodicFetch'; +import CPU from '../../components/CPU'; +import Memory from '../../components/Memory'; +import Resource from '../../components/Resource'; +import Display from '../../components/Display'; +import Header from '../../components/Header'; +import Domain from '../../components/Domain'; const useStyles = makeStyles((theme) => ({ child: { @@ -40,17 +41,20 @@ const useStyles = makeStyles((theme) => ({ }, })); -const Home = (): JSX.Element => { +const Server = (): JSX.Element => { const classes = useStyles(); - const { data } = PeriodicFetch( - `${process.env.NEXT_PUBLIC_API_URL}/anvils/get_anvils`, + const router = useRouter(); + const { uuid } = router.query; + + const { data } = PeriodicFetch( + `${process.env.NEXT_PUBLIC_API_URL}/anvils/get_replicated_storage?server_uuid=${uuid}`, ); return ( <>
- {data?.anvils && ( + {typeof uuid === 'string' && data && ( @@ -61,7 +65,7 @@ const Home = (): JSX.Element => { - + )} @@ -69,4 +73,4 @@ const Home = (): JSX.Element => { ); }; -export default Home; +export default Server; From 7608d643fd5d0a8395dce00e23c9832dcf261a80 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 20 May 2021 13:35:28 -0400 Subject: [PATCH 29/90] refactor: pass fetched server into Resource component --- striker-ui/components/Resource.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/Resource.tsx b/striker-ui/components/Resource.tsx index 52816d41..eccac4bd 100644 --- a/striker-ui/components/Resource.tsx +++ b/striker-ui/components/Resource.tsx @@ -1,10 +1,14 @@ import { Panel } from './Panels'; import { HeaderText } from './Text'; -const Resource = (): JSX.Element => { +const Resource = ({ + resource, +}: { + resource: AnvilReplicatedStorage; +}): JSX.Element => { return ( - + ); }; From 90e6abee2bea61e516df0c9864eb8eb38bc9437e Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 20 May 2021 13:37:13 -0400 Subject: [PATCH 30/90] refactor: fix ReplicatedStorage type to handle one resource instead of a list --- striker-ui/types/AnvilReplicatedStorage.d.ts | 22 ++++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/striker-ui/types/AnvilReplicatedStorage.d.ts b/striker-ui/types/AnvilReplicatedStorage.d.ts index fb4ae882..cb455d9d 100644 --- a/striker-ui/types/AnvilReplicatedStorage.d.ts +++ b/striker-ui/types/AnvilReplicatedStorage.d.ts @@ -1,34 +1,34 @@ declare type AnvilConnection = { protocol: 'async_a' | 'sync_c'; + connection_state: string; + fencing: string; targets: Array<{ target_name: string; - states: { - connection: string; - disk: string; - }; + target_host_uuid: string; + disk_state: string; role: string; - logical_volume_path: string; + logical_volume_path?: string; }>; resync?: { rate: number; percent_complete: number; time_remain: number; + oos_size: number; }; }; declare type AnvilVolume = { - index: number; + number: number; drbd_device_path: string; drbd_device_minor: number; size: number; connections: Array; }; -declare type AnvilResource = { +declare type AnvilReplicatedStorage = { resource_name: string; + resource_host_uuid: string; + is_active: boolean; + timestamp: number; volumes: Array; }; - -declare type AnvilReplicatedStorage = { - resources: Array; -}; From 0cfe18904f4d552e4012019bc214a80c0ff0fc78 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 20 May 2021 18:59:29 -0400 Subject: [PATCH 31/90] refactor: move volumes and nested data to their own component --- .../components/Resource/ResourceVolumes.tsx | 71 +++++++++++++++++++ .../{Resource.tsx => Resource/index.tsx} | 6 +- 2 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 striker-ui/components/Resource/ResourceVolumes.tsx rename striker-ui/components/{Resource.tsx => Resource/index.tsx} (57%) diff --git a/striker-ui/components/Resource/ResourceVolumes.tsx b/striker-ui/components/Resource/ResourceVolumes.tsx new file mode 100644 index 00000000..a905913d --- /dev/null +++ b/striker-ui/components/Resource/ResourceVolumes.tsx @@ -0,0 +1,71 @@ +import * as prettyBytes from 'pretty-bytes'; +import { makeStyles } from '@material-ui/core/styles'; +import { Box } from '@material-ui/core'; +import { InnerPanel, PanelHeader } from '../Panels'; +import { BodyText } from '../Text'; + +const useStyles = makeStyles((theme) => ({ + root: { + overflow: 'auto', + height: '100%', + paddingLeft: '.3em', + [theme.breakpoints.down('md')]: { + 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', + }, +})); + +const ResourceVolumes = ({ + resource, +}: { + resource: AnvilReplicatedStorage; +}): JSX.Element => { + const classes = useStyles(); + + return ( + + {resource && + resource.volumes.map((volume) => { + return ( + + + + + + + + + + + + + ); + })} + + ); +}; + +export default ResourceVolumes; diff --git a/striker-ui/components/Resource.tsx b/striker-ui/components/Resource/index.tsx similarity index 57% rename from striker-ui/components/Resource.tsx rename to striker-ui/components/Resource/index.tsx index eccac4bd..2865d4be 100644 --- a/striker-ui/components/Resource.tsx +++ b/striker-ui/components/Resource/index.tsx @@ -1,5 +1,6 @@ -import { Panel } from './Panels'; -import { HeaderText } from './Text'; +import { Panel } from '../Panels'; +import { HeaderText } from '../Text'; +import ResourceVolumes from './ResourceVolumes'; const Resource = ({ resource, @@ -9,6 +10,7 @@ const Resource = ({ return ( + ); }; From fa7950057ca1cc4a8e9485f27011e7c39c91fee1 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 21 May 2021 14:00:01 -0400 Subject: [PATCH 32/90] refactor: include link icon and decorator in the resource component --- .../components/Resource/ResourceVolumes.tsx | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/striker-ui/components/Resource/ResourceVolumes.tsx b/striker-ui/components/Resource/ResourceVolumes.tsx index a905913d..b041a893 100644 --- a/striker-ui/components/Resource/ResourceVolumes.tsx +++ b/striker-ui/components/Resource/ResourceVolumes.tsx @@ -1,8 +1,11 @@ import * as prettyBytes from 'pretty-bytes'; import { makeStyles } from '@material-ui/core/styles'; import { Box } 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: { @@ -13,7 +16,7 @@ const useStyles = makeStyles((theme) => ({ overflow: 'hidden', }, }, - state: { + connection: { paddingLeft: '.7em', paddingRight: '.7em', paddingTop: '1em', @@ -34,6 +37,17 @@ const useStyles = makeStyles((theme) => ({ }, })); +const selectDecorator = (state: string): Colours => { + switch (state) { + case 'connected': + return 'ok'; + case 'connecting': + return 'warning'; + default: + return 'error'; + } +}; + const ResourceVolumes = ({ resource, }: { @@ -61,6 +75,28 @@ const ResourceVolumes = ({ + {volume.connections.map( + (connection): JSX.Element => { + return ( + + + + + + + + + + ); + }, + )} ); })} From 32b3b6a1f8d031e2887c8ce9ef1e229a77f12b7a Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 21 May 2021 16:49:40 -0400 Subject: [PATCH 33/90] refactor: add better alignment and a divider to the resource component --- .../components/Resource/ResourceVolumes.tsx | 56 +++++++++++++------ 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/striker-ui/components/Resource/ResourceVolumes.tsx b/striker-ui/components/Resource/ResourceVolumes.tsx index b041a893..25fe49ee 100644 --- a/striker-ui/components/Resource/ResourceVolumes.tsx +++ b/striker-ui/components/Resource/ResourceVolumes.tsx @@ -1,6 +1,5 @@ import * as prettyBytes from 'pretty-bytes'; -import { makeStyles } from '@material-ui/core/styles'; -import { Box } from '@material-ui/core'; +import { makeStyles, Box, Divider } from '@material-ui/core'; import InsertLinkIcon from '@material-ui/icons/InsertLink'; import { InnerPanel, PanelHeader } from '../Panels'; import { BodyText } from '../Text'; @@ -20,6 +19,7 @@ const useStyles = makeStyles((theme) => ({ paddingLeft: '.7em', paddingRight: '.7em', paddingTop: '1em', + paddingBottom: '.7em', }, bar: { paddingLeft: '.7em', @@ -35,6 +35,9 @@ const useStyles = makeStyles((theme) => ({ decoratorBox: { paddingRight: '.3em', }, + divider: { + background: DIVIDER, + }, })); const selectDecorator = (state: string): Colours => { @@ -78,22 +81,41 @@ const ResourceVolumes = ({ {volume.connections.map( (connection): JSX.Element => { return ( - - - + <> + + + + + + + + + + + + + + - - - - - + + ); }, )} From 57c891bfdf40510e6c6913b9a4ba10e2a82a1695 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 11 Jun 2021 16:06:24 -0400 Subject: [PATCH 34/90] refactor: add anchors to list items in server list --- striker-ui/components/Servers.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 353c3789..1d63ba87 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -256,6 +256,8 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { button className={classes.button} key={server.server_uuid} + component="a" + href={`/server/${server.server_uuid}`} > {showCheckbox && ( From bf93f5a5dbfc4c72157fbf6735b73eba6762dc77 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 11 Jun 2021 16:07:14 -0400 Subject: [PATCH 35/90] refactor: add condition to render divider --- striker-ui/components/Resource/ResourceVolumes.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/Resource/ResourceVolumes.tsx b/striker-ui/components/Resource/ResourceVolumes.tsx index 25fe49ee..a7ee79b4 100644 --- a/striker-ui/components/Resource/ResourceVolumes.tsx +++ b/striker-ui/components/Resource/ResourceVolumes.tsx @@ -79,7 +79,7 @@ const ResourceVolumes = ({ {volume.connections.map( - (connection): JSX.Element => { + (connection, index): JSX.Element => { return ( <> - + {volume.connections.length - 1 !== index ? ( + + ) : null} ); }, From e523ad01ce64d72e5e3d3f25883cff506e0fd0f2 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 11 Jun 2021 16:08:05 -0400 Subject: [PATCH 36/90] fix: change url to fetch server info using latest changes in the specs --- striker-ui/pages/server/[uuid].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/pages/server/[uuid].tsx b/striker-ui/pages/server/[uuid].tsx index cd33aff1..04ddc3d3 100644 --- a/striker-ui/pages/server/[uuid].tsx +++ b/striker-ui/pages/server/[uuid].tsx @@ -48,7 +48,7 @@ const Server = (): JSX.Element => { const { uuid } = router.query; const { data } = PeriodicFetch( - `${process.env.NEXT_PUBLIC_API_URL}/anvils/get_replicated_storage?server_uuid=${uuid}`, + `${process.env.NEXT_PUBLIC_API_URL}/get_replicated_storage?server_uuid=${uuid}`, ); return ( From c1d8cf3a483c54848fccdeef3e76b46d30574fa5 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 11 Jun 2021 16:09:04 -0400 Subject: [PATCH 37/90] style: remove bottom padding from inner pannel --- striker-ui/components/Panels/InnerPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', }, })); From 35e672a21ba28a49bdffa32b39394f5784826267 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 15 Jun 2021 11:02:27 -0400 Subject: [PATCH 38/90] feat: add react-vnc --- striker-ui/package-lock.json | 399 ++++++++++++++++++++++++++++++++++- 1 file changed, 389 insertions(+), 10 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index ba8b8d4a..02ca977f 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -39,7 +39,6 @@ "version": "7.13.10", "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.13.10.tgz", "integrity": "sha512-x/XYVQ1h684pp1mJwOV4CyvqZXqbc8CMsMGUnAbuc82ZCdv1U63w5RSUzgDSXQHG5Rps/kiksH6g2D5BuaKyXg==", - "dev": true, "requires": { "core-js-pure": "^3.0.0", "regenerator-runtime": "^0.13.4" @@ -422,6 +421,50 @@ "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.0.tgz", "integrity": "sha512-sqKVVVOe5ivCaXDWivIJYVSaEgdQK9ul7a4Kity5Iw7u9+wBAPbX1RMSnLLmp7O4Vzj0WOWwMAJsTL00xwaNug==" }, + "@jest/types": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", + "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^15.0.0", + "chalk": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + } + } + }, "@material-ui/core": { "version": "4.11.4", "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.4.tgz", @@ -602,6 +645,123 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/context-base/-/context-base-0.14.0.tgz", "integrity": "sha512-sDOAZcYwynHFTbLo6n8kIbLiVF3a3BLkrmehJUyEbT9F+Smbi47kLGS2gG2g0fjBLR/Lr1InPD7kXL7FaTqEkw==" }, + "@testing-library/dom": { + "version": "7.31.2", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-7.31.2.tgz", + "integrity": "sha512-3UqjCpey6HiTZT92vODYLPxTBWlM8ZOOjr3LX5F37/VRipW2M1kX6I/Cm4VXzteZqfGfagg8yXywpcOgQBlNsQ==", + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^4.2.0", + "aria-query": "^4.2.2", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.6", + "lz-string": "^1.4.4", + "pretty-format": "^26.6.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + } + } + }, + "@testing-library/jest-dom": { + "version": "5.14.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.14.1.tgz", + "integrity": "sha512-dfB7HVIgTNCxH22M1+KU6viG5of2ldoA5ly8Ar8xkezKHKXjRvznCdbMbqjYGgO2xjRbwnR+rR8MLUIqF3kKbQ==", + "requires": { + "@babel/runtime": "^7.9.2", + "@types/testing-library__jest-dom": "^5.9.1", + "aria-query": "^4.2.2", + "chalk": "^3.0.0", + "css": "^3.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.5.6", + "lodash": "^4.17.15", + "redent": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + } + } + }, + "@testing-library/react": { + "version": "11.2.7", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-11.2.7.tgz", + "integrity": "sha512-tzRNp7pzd5QmbtXNG/mhdcl7Awfu/Iz1RaVHY75zTdOkmHCuzMhRL83gWHSgOAcjS3CCbyfwUHMZgRJb4kAfpA==", + "requires": { + "@babel/runtime": "^7.12.5", + "@testing-library/dom": "^7.28.1" + } + }, + "@testing-library/user-event": { + "version": "12.8.3", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-12.8.3.tgz", + "integrity": "sha512-IR0iWbFkgd56Bu5ZI/ej8yQwrkCv8Qydx6RzwbKz9faXazR/+5tvYKsZQgyXJiwgpcva127YO6JcWy7YlCfofQ==", + "requires": { + "@babel/runtime": "^7.12.5" + } + }, + "@types/aria-query": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-4.2.1.tgz", + "integrity": "sha512-S6oPal772qJZHoRZLFc/XoZW2gFvwXusYUmXPXkgxJLuEk2vOt7jc4Yo6z/vtI0EBkbPBVrJJ0B+prLIKiWqHg==" + }, "@types/hoist-non-react-statics": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", @@ -612,6 +772,36 @@ "hoist-non-react-statics": "^3.3.0" } }, + "@types/istanbul-lib-coverage": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz", + "integrity": "sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==" + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "26.0.23", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.23.tgz", + "integrity": "sha512-ZHLmWMJ9jJ9PTiT58juykZpL7KjwJywFN3Rr2pTSkyQfydf/rk22yS7W8p5DaVUMQ2BQC7oYiU3FjbTM/mYrOA==", + "requires": { + "jest-diff": "^26.0.0", + "pretty-format": "^26.0.0" + } + }, "@types/json-schema": { "version": "7.0.7", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", @@ -669,6 +859,14 @@ } } }, + "@types/react-dom": { + "version": "17.0.7", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.7.tgz", + "integrity": "sha512-Wd5xvZRlccOrCTej8jZkoFZuZRKHzanDDv1xglI33oBNFMWrqOSzrvWFw7ngSiZjrpJAzPKFtX7JvuXpkNmQHA==", + "requires": { + "@types/react": "*" + } + }, "@types/react-transition-group": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.1.tgz", @@ -701,6 +899,27 @@ } } }, + "@types/testing-library__jest-dom": { + "version": "5.14.0", + "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.0.tgz", + "integrity": "sha512-l2P2GO+hFF4Liye+fAajT1qBqvZOiL79YMpEvgGs1xTK7hECxBI8Wz4J7ntACJNiJ9r0vXQqYovroXRLPDja6A==", + "requires": { + "@types/jest": "*" + } + }, + "@types/yargs": { + "version": "15.0.13", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.13.tgz", + "integrity": "sha512-kQ5JNTrbDv3Rp5X2n/iUu37IJBDU2gsZ5R/g1/KHOOEc5IKfUFjXT6DENPGduh08I/pamwtEq4oul7gUqKTQDQ==", + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "20.2.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz", + "integrity": "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==" + }, "@typescript-eslint/eslint-plugin": { "version": "4.27.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.27.0.tgz", @@ -924,7 +1143,6 @@ "version": "4.2.2", "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", - "dev": true, "requires": { "@babel/runtime": "^7.10.2", "@babel/runtime-corejs3": "^7.10.2" @@ -1036,6 +1254,11 @@ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true }, + "atob": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" + }, "available-typed-arrays": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.4.tgz", @@ -1526,8 +1749,7 @@ "core-js-pure": { "version": "3.9.1", "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.9.1.tgz", - "integrity": "sha512-laz3Zx0avrw9a4QEIdmIblnVuJz8W51leY9iLThatCsFawWxC3sE4guASC78JbCin+DkwMpCdp1AVAuzL/GN7A==", - "dev": true + "integrity": "sha512-laz3Zx0avrw9a4QEIdmIblnVuJz8W51leY9iLThatCsFawWxC3sE4guASC78JbCin+DkwMpCdp1AVAuzL/GN7A==" }, "core-util-is": { "version": "1.0.2", @@ -1617,6 +1839,23 @@ "randomfill": "^1.0.3" } }, + "css": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", + "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", + "requires": { + "inherits": "^2.0.4", + "source-map": "^0.6.1", + "source-map-resolve": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + } + } + }, "css-vendor": { "version": "2.0.8", "resolved": "https://registry.npmjs.org/css-vendor/-/css-vendor-2.0.8.tgz", @@ -1702,6 +1941,11 @@ } } }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" + }, "dedent": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", @@ -1741,6 +1985,11 @@ "minimalistic-assert": "^1.0.0" } }, + "diff-sequences": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", + "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==" + }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -1776,6 +2025,11 @@ "esutils": "^2.0.2" } }, + "dom-accessibility-api": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.6.tgz", + "integrity": "sha512-DplGLZd8L1lN64jlT27N9TVSESFR5STaEJvX+thCby7fuCHonfPpAlodYc3vuUYbDuDec5w8AMP7oCM5TWFsqw==" + }, "dom-helpers": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", @@ -3061,8 +3315,7 @@ "indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" }, "inflight": { "version": "1.0.6", @@ -3281,6 +3534,54 @@ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, + "jest-diff": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", + "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^26.6.2", + "jest-get-type": "^26.3.0", + "pretty-format": "^26.6.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", + "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + } + } + }, + "jest-get-type": { + "version": "26.3.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", + "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==" + }, "jest-worker": { "version": "27.0.0-next.5", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.0.0-next.5.tgz", @@ -3774,6 +4075,11 @@ "yallist": "^4.0.0" } }, + "lz-string": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.4.4.tgz", + "integrity": "sha1-wNjq82BZ9wV5bh40SBHPTEmNOiY=" + }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -3871,8 +4177,7 @@ "min-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", - "dev": true + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" }, "minimalistic-assert": { "version": "1.0.1", @@ -4657,6 +4962,40 @@ "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==" }, + "pretty-format": { + "version": "26.6.2", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", + "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "requires": { + "@jest/types": "^26.6.2", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.0.0", + "react-is": "^17.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + } + } + }, "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", @@ -4821,6 +5160,34 @@ "prop-types": "^15.6.2" } }, + "react-vnc": { + "version": "0.1.17", + "resolved": "https://registry.npmjs.org/react-vnc/-/react-vnc-0.1.17.tgz", + "integrity": "sha512-yRWbt6YdwFgLRwLjtCAHNyVbB7tlfiAmXlp1YlZVqzzpBGF9eBWG4NXtoRv7s1EO+UGCio1WqB1qRtpnh2DI+Q==", + "requires": { + "@testing-library/jest-dom": "^5.11.10", + "@testing-library/react": "^11.2.6", + "@testing-library/user-event": "^12.8.3", + "@types/jest": "^26.0.22", + "@types/node": "^12.20.7", + "@types/react": "^17.0.3", + "@types/react-dom": "^17.0.3", + "typescript": "^4.2.4", + "web-vitals": "^1.1.1" + }, + "dependencies": { + "@types/node": { + "version": "12.20.15", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.15.tgz", + "integrity": "sha512-F6S4Chv4JicJmyrwlDkxUdGNSplsQdGwp1A0AJloEVDirWdZOAiRHhovDlsFkKUrquUXhz1imJhXHsf59auyAg==" + }, + "typescript": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz", + "integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==" + } + } + }, "read-pkg": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", @@ -4906,7 +5273,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", - "dev": true, "requires": { "indent-string": "^4.0.0", "strip-indent": "^3.0.0" @@ -5165,6 +5531,15 @@ "whatwg-url": "^7.0.0" } }, + "source-map-resolve": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", + "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", + "requires": { + "atob": "^2.1.2", + "decode-uri-component": "^0.2.0" + } + }, "spdx-correct": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", @@ -5435,7 +5810,6 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", - "dev": true, "requires": { "min-indent": "^1.0.0" } @@ -5793,6 +6167,11 @@ "graceful-fs": "^4.1.2" } }, + "web-vitals": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-1.1.2.tgz", + "integrity": "sha512-PFMKIY+bRSXlMxVAQ+m2aw9c/ioUYfDgrYot0YUa+/xa0sakubWhSDyxAKwzymvXVdF4CZI71g06W+mqhzu6ig==" + }, "webidl-conversions": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", From 96576f505571080249c60bb17d276c2f2f791128 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 15 Jun 2021 16:23:17 -0400 Subject: [PATCH 39/90] refactor: remove react-vnc and add react-vnc-display for vnc connection in the server page --- striker-ui/components/Display.tsx | 16 + striker-ui/package-lock.json | 431 +++--------------------- striker-ui/package.json | 1 + striker-ui/types/react.vnc.dispaly.d.ts | 1 + 4 files changed, 63 insertions(+), 386 deletions(-) create mode 100644 striker-ui/types/react.vnc.dispaly.d.ts diff --git a/striker-ui/components/Display.tsx b/striker-ui/components/Display.tsx index 0c2f5495..a841afe3 100644 --- a/striker-ui/components/Display.tsx +++ b/striker-ui/components/Display.tsx @@ -1,10 +1,26 @@ +import { useState, useEffect } from 'react'; +// import { VncScreen } from 'react-vnc'; +import VncDisplay from 'react-vnc-display'; import { Panel } from './Panels'; import { HeaderText } from './Text'; const Display = (): JSX.Element => { + const [mounted, setMounted] = useState(false); + + useEffect(() => { + setMounted(typeof window !== 'undefined'); + }, [mounted]); + return ( + ); }; diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 02ca977f..078376cc 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -39,6 +39,7 @@ "version": "7.13.10", "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.13.10.tgz", "integrity": "sha512-x/XYVQ1h684pp1mJwOV4CyvqZXqbc8CMsMGUnAbuc82ZCdv1U63w5RSUzgDSXQHG5Rps/kiksH6g2D5BuaKyXg==", + "dev": true, "requires": { "core-js-pure": "^3.0.0", "regenerator-runtime": "^0.13.4" @@ -421,50 +422,6 @@ "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.2.0.tgz", "integrity": "sha512-sqKVVVOe5ivCaXDWivIJYVSaEgdQK9ul7a4Kity5Iw7u9+wBAPbX1RMSnLLmp7O4Vzj0WOWwMAJsTL00xwaNug==" }, - "@jest/types": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", - "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^15.0.0", - "chalk": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - } - } - }, "@material-ui/core": { "version": "4.11.4", "resolved": "https://registry.npmjs.org/@material-ui/core/-/core-4.11.4.tgz", @@ -645,123 +602,6 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/context-base/-/context-base-0.14.0.tgz", "integrity": "sha512-sDOAZcYwynHFTbLo6n8kIbLiVF3a3BLkrmehJUyEbT9F+Smbi47kLGS2gG2g0fjBLR/Lr1InPD7kXL7FaTqEkw==" }, - "@testing-library/dom": { - "version": "7.31.2", - "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-7.31.2.tgz", - "integrity": "sha512-3UqjCpey6HiTZT92vODYLPxTBWlM8ZOOjr3LX5F37/VRipW2M1kX6I/Cm4VXzteZqfGfagg8yXywpcOgQBlNsQ==", - "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/runtime": "^7.12.5", - "@types/aria-query": "^4.2.0", - "aria-query": "^4.2.2", - "chalk": "^4.1.0", - "dom-accessibility-api": "^0.5.6", - "lz-string": "^1.4.4", - "pretty-format": "^26.6.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - } - } - }, - "@testing-library/jest-dom": { - "version": "5.14.1", - "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.14.1.tgz", - "integrity": "sha512-dfB7HVIgTNCxH22M1+KU6viG5of2ldoA5ly8Ar8xkezKHKXjRvznCdbMbqjYGgO2xjRbwnR+rR8MLUIqF3kKbQ==", - "requires": { - "@babel/runtime": "^7.9.2", - "@types/testing-library__jest-dom": "^5.9.1", - "aria-query": "^4.2.2", - "chalk": "^3.0.0", - "css": "^3.0.0", - "css.escape": "^1.5.1", - "dom-accessibility-api": "^0.5.6", - "lodash": "^4.17.15", - "redent": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", - "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - } - } - }, - "@testing-library/react": { - "version": "11.2.7", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-11.2.7.tgz", - "integrity": "sha512-tzRNp7pzd5QmbtXNG/mhdcl7Awfu/Iz1RaVHY75zTdOkmHCuzMhRL83gWHSgOAcjS3CCbyfwUHMZgRJb4kAfpA==", - "requires": { - "@babel/runtime": "^7.12.5", - "@testing-library/dom": "^7.28.1" - } - }, - "@testing-library/user-event": { - "version": "12.8.3", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-12.8.3.tgz", - "integrity": "sha512-IR0iWbFkgd56Bu5ZI/ej8yQwrkCv8Qydx6RzwbKz9faXazR/+5tvYKsZQgyXJiwgpcva127YO6JcWy7YlCfofQ==", - "requires": { - "@babel/runtime": "^7.12.5" - } - }, - "@types/aria-query": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-4.2.1.tgz", - "integrity": "sha512-S6oPal772qJZHoRZLFc/XoZW2gFvwXusYUmXPXkgxJLuEk2vOt7jc4Yo6z/vtI0EBkbPBVrJJ0B+prLIKiWqHg==" - }, "@types/hoist-non-react-statics": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", @@ -772,36 +612,6 @@ "hoist-non-react-statics": "^3.3.0" } }, - "@types/istanbul-lib-coverage": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz", - "integrity": "sha512-sz7iLqvVUg1gIedBOvlkxPlc8/uVzyS5OwGz1cKjXzkl3FpL3al0crU8YGU1WoHkxn0Wxbw5tyi6hvzJKNzFsw==" - }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "requires": { - "@types/istanbul-lib-coverage": "*" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/jest": { - "version": "26.0.23", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-26.0.23.tgz", - "integrity": "sha512-ZHLmWMJ9jJ9PTiT58juykZpL7KjwJywFN3Rr2pTSkyQfydf/rk22yS7W8p5DaVUMQ2BQC7oYiU3FjbTM/mYrOA==", - "requires": { - "jest-diff": "^26.0.0", - "pretty-format": "^26.0.0" - } - }, "@types/json-schema": { "version": "7.0.7", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", @@ -859,14 +669,6 @@ } } }, - "@types/react-dom": { - "version": "17.0.7", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-17.0.7.tgz", - "integrity": "sha512-Wd5xvZRlccOrCTej8jZkoFZuZRKHzanDDv1xglI33oBNFMWrqOSzrvWFw7ngSiZjrpJAzPKFtX7JvuXpkNmQHA==", - "requires": { - "@types/react": "*" - } - }, "@types/react-transition-group": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.1.tgz", @@ -899,27 +701,6 @@ } } }, - "@types/testing-library__jest-dom": { - "version": "5.14.0", - "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.0.tgz", - "integrity": "sha512-l2P2GO+hFF4Liye+fAajT1qBqvZOiL79YMpEvgGs1xTK7hECxBI8Wz4J7ntACJNiJ9r0vXQqYovroXRLPDja6A==", - "requires": { - "@types/jest": "*" - } - }, - "@types/yargs": { - "version": "15.0.13", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.13.tgz", - "integrity": "sha512-kQ5JNTrbDv3Rp5X2n/iUu37IJBDU2gsZ5R/g1/KHOOEc5IKfUFjXT6DENPGduh08I/pamwtEq4oul7gUqKTQDQ==", - "requires": { - "@types/yargs-parser": "*" - } - }, - "@types/yargs-parser": { - "version": "20.2.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz", - "integrity": "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==" - }, "@typescript-eslint/eslint-plugin": { "version": "4.27.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.27.0.tgz", @@ -1143,6 +924,7 @@ "version": "4.2.2", "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-4.2.2.tgz", "integrity": "sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA==", + "dev": true, "requires": { "@babel/runtime": "^7.10.2", "@babel/runtime-corejs3": "^7.10.2" @@ -1254,11 +1036,6 @@ "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", "dev": true }, - "atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" - }, "available-typed-arrays": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.4.tgz", @@ -1307,6 +1084,11 @@ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==" }, + "bowser": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/bowser/-/bowser-0.7.3.tgz", + "integrity": "sha1-T8DLTg4r3Zs5TfDSA4wywswnEsg=" + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1749,7 +1531,8 @@ "core-js-pure": { "version": "3.9.1", "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.9.1.tgz", - "integrity": "sha512-laz3Zx0avrw9a4QEIdmIblnVuJz8W51leY9iLThatCsFawWxC3sE4guASC78JbCin+DkwMpCdp1AVAuzL/GN7A==" + "integrity": "sha512-laz3Zx0avrw9a4QEIdmIblnVuJz8W51leY9iLThatCsFawWxC3sE4guASC78JbCin+DkwMpCdp1AVAuzL/GN7A==", + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -1839,23 +1622,6 @@ "randomfill": "^1.0.3" } }, - "css": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/css/-/css-3.0.0.tgz", - "integrity": "sha512-DG9pFfwOrzc+hawpmqX/dHYHJG+Bsdb0klhyi1sDneOgGOXy9wQIC8hzyVp1e4NRYDBdxcylvywPkkXCHAzTyQ==", - "requires": { - "inherits": "^2.0.4", - "source-map": "^0.6.1", - "source-map-resolve": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, "css-vendor": { "version": "2.0.8", "resolved": "https://registry.npmjs.org/css-vendor/-/css-vendor-2.0.8.tgz", @@ -1941,11 +1707,6 @@ } } }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" - }, "dedent": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", @@ -1985,11 +1746,6 @@ "minimalistic-assert": "^1.0.0" } }, - "diff-sequences": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", - "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==" - }, "diffie-hellman": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", @@ -2025,11 +1781,6 @@ "esutils": "^2.0.2" } }, - "dom-accessibility-api": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.6.tgz", - "integrity": "sha512-DplGLZd8L1lN64jlT27N9TVSESFR5STaEJvX+thCby7fuCHonfPpAlodYc3vuUYbDuDec5w8AMP7oCM5TWFsqw==" - }, "dom-helpers": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.1.tgz", @@ -3315,7 +3066,8 @@ "indent-string": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "dev": true }, "inflight": { "version": "1.0.6", @@ -3534,54 +3286,6 @@ "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, - "jest-diff": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", - "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^26.6.2", - "jest-get-type": "^26.3.0", - "pretty-format": "^26.6.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - } - } - }, - "jest-get-type": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", - "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==" - }, "jest-worker": { "version": "27.0.0-next.5", "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.0.0-next.5.tgz", @@ -4075,11 +3779,6 @@ "yallist": "^4.0.0" } }, - "lz-string": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.4.4.tgz", - "integrity": "sha1-wNjq82BZ9wV5bh40SBHPTEmNOiY=" - }, "make-dir": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", @@ -4177,7 +3876,8 @@ "min-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", - "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "dev": true }, "minimalistic-assert": { "version": "1.0.1", @@ -4513,6 +4213,30 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" }, + "novnc-node": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/novnc-node/-/novnc-node-0.5.3.tgz", + "integrity": "sha1-afIKSi/wxUyi+UL/WVU/Uj62H6c=", + "requires": { + "bowser": "^0.7.2", + "debug": "^2.2.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + } + } + }, "npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", @@ -4962,40 +4686,6 @@ "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", "integrity": "sha512-FFw039TmrBqFK8ma/7OL3sDz/VytdtJr044/QUJtH0wK9lb9jLq9tJyIxUwtQJHwar2BqtiA4iCWSwo9JLkzFg==" }, - "pretty-format": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", - "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", - "requires": { - "@jest/types": "^26.6.2", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", - "react-is": "^17.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - } - } - }, "process": { "version": "0.11.10", "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", @@ -5160,32 +4850,13 @@ "prop-types": "^15.6.2" } }, - "react-vnc": { - "version": "0.1.17", - "resolved": "https://registry.npmjs.org/react-vnc/-/react-vnc-0.1.17.tgz", - "integrity": "sha512-yRWbt6YdwFgLRwLjtCAHNyVbB7tlfiAmXlp1YlZVqzzpBGF9eBWG4NXtoRv7s1EO+UGCio1WqB1qRtpnh2DI+Q==", + "react-vnc-display": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/react-vnc-display/-/react-vnc-display-2.0.1.tgz", + "integrity": "sha512-XQ+t118HfdXg8LTrTer9KLf1gyod+KYnXeXHhJI4xZivnB/iNXQnvb06ZeFLz9+WPmz6TvR36mlfkA0x8BaylQ==", "requires": { - "@testing-library/jest-dom": "^5.11.10", - "@testing-library/react": "^11.2.6", - "@testing-library/user-event": "^12.8.3", - "@types/jest": "^26.0.22", - "@types/node": "^12.20.7", - "@types/react": "^17.0.3", - "@types/react-dom": "^17.0.3", - "typescript": "^4.2.4", - "web-vitals": "^1.1.1" - }, - "dependencies": { - "@types/node": { - "version": "12.20.15", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.15.tgz", - "integrity": "sha512-F6S4Chv4JicJmyrwlDkxUdGNSplsQdGwp1A0AJloEVDirWdZOAiRHhovDlsFkKUrquUXhz1imJhXHsf59auyAg==" - }, - "typescript": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz", - "integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==" - } + "novnc-node": "^0.5.3", + "prop-types": "^15.6.1" } }, "read-pkg": { @@ -5273,6 +4944,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dev": true, "requires": { "indent-string": "^4.0.0", "strip-indent": "^3.0.0" @@ -5531,15 +5203,6 @@ "whatwg-url": "^7.0.0" } }, - "source-map-resolve": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", - "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", - "requires": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0" - } - }, "spdx-correct": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", @@ -5810,6 +5473,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dev": true, "requires": { "min-indent": "^1.0.0" } @@ -6167,11 +5831,6 @@ "graceful-fs": "^4.1.2" } }, - "web-vitals": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-1.1.2.tgz", - "integrity": "sha512-PFMKIY+bRSXlMxVAQ+m2aw9c/ioUYfDgrYot0YUa+/xa0sakubWhSDyxAKwzymvXVdF4CZI71g06W+mqhzu6ig==" - }, "webidl-conversions": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", diff --git a/striker-ui/package.json b/striker-ui/package.json index 5fb9c8e3..f7d79fc9 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -20,6 +20,7 @@ "react": "17.0.2", "react-dom": "17.0.2", "swr": "^0.5.6", + "react-vnc-display": "^2.0.1", "typeface-roboto-condensed": "^1.1.13" }, "devDependencies": { diff --git a/striker-ui/types/react.vnc.dispaly.d.ts b/striker-ui/types/react.vnc.dispaly.d.ts new file mode 100644 index 00000000..b9a669c6 --- /dev/null +++ b/striker-ui/types/react.vnc.dispaly.d.ts @@ -0,0 +1 @@ +declare module 'react-vnc-display'; From e4f617ffc044f61c4d6fdc8555c769b774c161ce Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 17 Jun 2021 10:56:00 -0400 Subject: [PATCH 40/90] refactor: remove unnecessary setup for displaying vnc feed --- striker-ui/components/Display.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/striker-ui/components/Display.tsx b/striker-ui/components/Display.tsx index a841afe3..7bd744e2 100644 --- a/striker-ui/components/Display.tsx +++ b/striker-ui/components/Display.tsx @@ -1,23 +1,15 @@ -import { useState, useEffect } from 'react'; -// import { VncScreen } from 'react-vnc'; import VncDisplay from 'react-vnc-display'; import { Panel } from './Panels'; import { HeaderText } from './Text'; const Display = (): JSX.Element => { - const [mounted, setMounted] = useState(false); - - useEffect(() => { - setMounted(typeof window !== 'undefined'); - }, [mounted]); - return ( From 6e380fe11c6e57e5dedd789c5cb50489bd311384 Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 5 Jul 2021 18:05:58 -0400 Subject: [PATCH 41/90] refactor: rename display component to FullSize so it's only used for vnc stream full display --- striker-ui/components/{Display.tsx => Display/FullSize.tsx} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename striker-ui/components/{Display.tsx => Display/FullSize.tsx} (82%) diff --git a/striker-ui/components/Display.tsx b/striker-ui/components/Display/FullSize.tsx similarity index 82% rename from striker-ui/components/Display.tsx rename to striker-ui/components/Display/FullSize.tsx index 7bd744e2..66e46c51 100644 --- a/striker-ui/components/Display.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -1,6 +1,6 @@ import VncDisplay from 'react-vnc-display'; -import { Panel } from './Panels'; -import { HeaderText } from './Text'; +import { Panel } from '../Panels'; +import { HeaderText } from '../Text'; const Display = (): JSX.Element => { return ( From 783a0d99b6f1e06c3655f2b17069b908dadf8df7 Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 5 Jul 2021 18:06:59 -0400 Subject: [PATCH 42/90] refactor: create component for preview and move display views to their own directory --- striker-ui/components/Display/Preview.tsx | 20 ++++++++++++++++++++ striker-ui/components/Display/index.tsx | 4 ++++ 2 files changed, 24 insertions(+) create mode 100644 striker-ui/components/Display/Preview.tsx create mode 100644 striker-ui/components/Display/index.tsx diff --git a/striker-ui/components/Display/Preview.tsx b/striker-ui/components/Display/Preview.tsx new file mode 100644 index 00000000..66e46c51 --- /dev/null +++ b/striker-ui/components/Display/Preview.tsx @@ -0,0 +1,20 @@ +import VncDisplay from 'react-vnc-display'; +import { Panel } from '../Panels'; +import { HeaderText } from '../Text'; + +const Display = (): JSX.Element => { + return ( + + + + + ); +}; + +export default Display; 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 }; From b572f19d2c69558f75292d3d0be124a3c2dc6b0d Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 5 Jul 2021 18:08:31 -0400 Subject: [PATCH 43/90] refactor: modify server page to allow different types of display depending on user input --- striker-ui/pages/server/[uuid].tsx | 36 ++++++++++++++++++------------ 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/striker-ui/pages/server/[uuid].tsx b/striker-ui/pages/server/[uuid].tsx index 04ddc3d3..8d934f79 100644 --- a/striker-ui/pages/server/[uuid].tsx +++ b/striker-ui/pages/server/[uuid].tsx @@ -1,3 +1,4 @@ +import { useState } from 'react'; import { useRouter } from 'next/router'; import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; @@ -6,7 +7,7 @@ import PeriodicFetch from '../../lib/fetchers/periodicFetch'; import CPU from '../../components/CPU'; import Memory from '../../components/Memory'; import Resource from '../../components/Resource'; -import Display from '../../components/Display'; +import { FullSize, Preview } from '../../components/Display'; import Header from '../../components/Header'; import Domain from '../../components/Domain'; @@ -42,6 +43,7 @@ const useStyles = makeStyles((theme) => ({ })); const Server = (): JSX.Element => { + const [previewMode] = useState(true); const classes = useStyles(); const router = useRouter(); @@ -54,21 +56,27 @@ const Server = (): JSX.Element => { return ( <>
- {typeof uuid === 'string' && data && ( - - - - + {typeof uuid === 'string' && + data && + (previewMode ? ( + + + + + + + + + + + + - - - + ) : ( + + - - - - - )} + ))} ); }; From 23cdfd10b242daaf239940dca197c34ae9e3c626 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 6 Jul 2021 17:52:53 -0400 Subject: [PATCH 44/90] style(front-end): remove component header and add close button to full display mode --- striker-ui/components/Display/FullSize.tsx | 65 ++++++++++++++++++---- 1 file changed, 54 insertions(+), 11 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 66e46c51..25510eb1 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -1,20 +1,63 @@ +import { Dispatch, SetStateAction } from 'react'; +import { Box } from '@material-ui/core'; +import { makeStyles } from '@material-ui/core/styles'; +import CloseIcon from '@material-ui/icons/Close'; +import IconButton from '@material-ui/core/IconButton'; import VncDisplay from 'react-vnc-display'; import { Panel } from '../Panels'; -import { HeaderText } from '../Text'; +import { RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; + +const useStyles = makeStyles(() => ({ + displayBox: { + paddingTop: '1em', + paddingBottom: 0, + }, + closeButton: { + borderRadius: 8, + backgroundColor: RED, + '&:hover': { + backgroundColor: RED, + }, + }, + closeBox: { + paddingLeft: '.7em', + paddingRight: 0, + }, +})); + +interface PreviewProps { + setMode: Dispatch>; +} + +const FullSize = ({ setMode }: PreviewProps): JSX.Element => { + const classes = useStyles(); -const Display = (): JSX.Element => { return ( - - + + + + + + setMode(true)} + > + + + + ); }; -export default Display; +export default FullSize; From 66c0e01b27bb59b350292b04bb0ee9472b497a72 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 6 Jul 2021 17:53:54 -0400 Subject: [PATCH 45/90] refactor(front-end): add placeholder for preview image and button to switch to full display mode --- striker-ui/components/Display/Preview.tsx | 61 ++++++++++++++++++----- 1 file changed, 49 insertions(+), 12 deletions(-) diff --git a/striker-ui/components/Display/Preview.tsx b/striker-ui/components/Display/Preview.tsx index 66e46c51..69538393 100644 --- a/striker-ui/components/Display/Preview.tsx +++ b/striker-ui/components/Display/Preview.tsx @@ -1,20 +1,57 @@ -import VncDisplay from 'react-vnc-display'; +import { Dispatch, SetStateAction } from 'react'; +import Image from 'next/image'; +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 { Panel } from '../Panels'; -import { HeaderText } from '../Text'; +import { BLACK, TEXT } from '../../lib/consts/DEFAULT_THEME'; + +interface PreviewProps { + setMode: Dispatch>; +} + +const useStyles = makeStyles(() => ({ + displayBox: { + paddingTop: '1em', + paddingBottom: 0, + }, + fullScreenButton: { + borderRadius: 8, + backgroundColor: TEXT, + '&:hover': { + backgroundColor: TEXT, + }, + }, + fullScreenBox: { + paddingLeft: '.7em', + paddingRight: 0, + }, +})); + +const Preview = ({ setMode }: PreviewProps): JSX.Element => { + const classes = useStyles(); -const Display = (): JSX.Element => { return ( - - + + + + + + setMode(false)} + > + + + + ); }; -export default Display; +export default Preview; From b536b317dcd30c330c114e911bab7778c576b584 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 6 Jul 2021 17:54:41 -0400 Subject: [PATCH 46/90] refactor(front-end): use state hook to enable and disable full display mode --- striker-ui/pages/server/[uuid].tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/striker-ui/pages/server/[uuid].tsx b/striker-ui/pages/server/[uuid].tsx index 8d934f79..ac2d700d 100644 --- a/striker-ui/pages/server/[uuid].tsx +++ b/striker-ui/pages/server/[uuid].tsx @@ -43,7 +43,7 @@ const useStyles = makeStyles((theme) => ({ })); const Server = (): JSX.Element => { - const [previewMode] = useState(true); + const [previewMode, setPreviewMode] = useState(true); const classes = useStyles(); const router = useRouter(); @@ -61,7 +61,7 @@ const Server = (): JSX.Element => { (previewMode ? ( - + @@ -74,7 +74,7 @@ const Server = (): JSX.Element => { ) : ( - + ))} From 10074264c7392ea21631e59ea1ce3943394a2994 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 9 Jul 2021 11:46:42 -0400 Subject: [PATCH 47/90] chore(front-end): remove VncDisplay and add novnc-node --- striker-ui/package-lock.json | 9 --------- striker-ui/package.json | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 078376cc..96b0d83e 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -4850,15 +4850,6 @@ "prop-types": "^15.6.2" } }, - "react-vnc-display": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/react-vnc-display/-/react-vnc-display-2.0.1.tgz", - "integrity": "sha512-XQ+t118HfdXg8LTrTer9KLf1gyod+KYnXeXHhJI4xZivnB/iNXQnvb06ZeFLz9+WPmz6TvR36mlfkA0x8BaylQ==", - "requires": { - "novnc-node": "^0.5.3", - "prop-types": "^15.6.1" - } - }, "read-pkg": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", diff --git a/striker-ui/package.json b/striker-ui/package.json index f7d79fc9..29c9f0d2 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -16,11 +16,11 @@ "@material-ui/icons": "^4.11.2", "@material-ui/styles": "^4.11.4", "next": "^10.2.3", + "novnc-node": "^0.5.3", "pretty-bytes": "^5.6.0", "react": "17.0.2", "react-dom": "17.0.2", "swr": "^0.5.6", - "react-vnc-display": "^2.0.1", "typeface-roboto-condensed": "^1.1.13" }, "devDependencies": { From 47b3d3e9c37a2909870ea9c5976a801ee403a348 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 9 Jul 2021 11:48:21 -0400 Subject: [PATCH 48/90] feat(frnot-end): implement a custom version of VncDisplay to add features needed for the project --- striker-ui/components/Display/VncDisplay.tsx | 109 +++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 striker-ui/components/Display/VncDisplay.tsx diff --git a/striker-ui/components/Display/VncDisplay.tsx b/striker-ui/components/Display/VncDisplay.tsx new file mode 100644 index 00000000..5b927901 --- /dev/null +++ b/striker-ui/components/Display/VncDisplay.tsx @@ -0,0 +1,109 @@ +import { useEffect, useRef, useState } from 'react'; +import { RFB } from 'novnc-node'; + +type VncProps = { + // The URL for the VNC connection: protocol, host, port, and path. + url: string; + + // Define width and height via style or separate props + style?: { width: number | string; height: number | string }; + width?: number | string; + height?: number | string; + + // Force a URL to be communicated with as encrypted. + encrypt?: boolean; + + // List of WebSocket protocols this connection should support. + wsProtocols?: string[]; + + // VNC connection changes. + onUpdateState?: () => void; + + onPasswordRequired?: () => void; + + // Alert is raised on the VNC connection. + onBell?: () => void; + + // The desktop name is entered for the connection. + onDesktopName?: () => void; + + connectTimeout?: number; + + disconnectTimeout?: number; + + // A VNC connection should disconnect other connections before connecting. + shared?: boolean; + + trueColor?: boolean; + localCursor?: boolean; +}; + +const VncDisplay = (props: VncProps): JSX.Element => { + const canvasRef = useRef(null); + const [rfb, setRfb] = useState(undefined); + const { style, url, encrypt, ...opts } = props; + + useEffect(() => { + if (!rfb) + setRfb( + new RFB({ + ...opts, + encrypt: encrypt !== null ? encrypt : url.startsWith('wss:'), + target: canvasRef.current, + }), + ); + + if (!rfb) return; + + if (!canvasRef.current) { + /* eslint-disable consistent-return */ + return (): void => rfb.disconnect(); + } + + rfb.connect(url); + + return (): void => rfb.disconnect(); + }, [rfb, encrypt, opts, url]); + + const handleMouseEnter = () => { + if (!rfb) return; + // document.activeElement && document.activeElement.blur(); + rfb.get_keyboard().grab(); + rfb.get_mouse().grab(); + }; + + const handleMouseLeave = () => { + if (!rfb) return; + + rfb.get_keyboard().ungrab(); + rfb.get_mouse().ungrab(); + }; + + return ( + + ); +}; + +VncDisplay.defaultProps = { + style: null, + encrypt: null, + wsProtocols: ['binary'], + trueColor: true, + localCursor: true, + connectTimeout: 5, + disconnectTimeout: 5, + width: 1280, + height: 720, + onUpdateState: null, + onPasswordRequired: null, + onBell: null, + onDesktopName: null, + shared: false, +}; + +export default VncDisplay; From fa6cb627c15ed445278ece43310f5e61a634b8d9 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 9 Jul 2021 11:48:59 -0400 Subject: [PATCH 49/90] refactor(fron-end): switch to custom implementation of VncDisplay --- striker-ui/components/Display/FullSize.tsx | 2 +- striker-ui/types/novnc.node.d.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 striker-ui/types/novnc.node.d.ts diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 25510eb1..d2c3479d 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -3,7 +3,7 @@ import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import CloseIcon from '@material-ui/icons/Close'; import IconButton from '@material-ui/core/IconButton'; -import VncDisplay from 'react-vnc-display'; +import VncDisplay from './VncDisplay'; import { Panel } from '../Panels'; import { RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; diff --git a/striker-ui/types/novnc.node.d.ts b/striker-ui/types/novnc.node.d.ts new file mode 100644 index 00000000..2603228e --- /dev/null +++ b/striker-ui/types/novnc.node.d.ts @@ -0,0 +1 @@ +declare module 'novnc-node'; From c959903becc1a7c2d37ce17dc8f822c515341774 Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 12 Jul 2021 19:45:21 -0400 Subject: [PATCH 50/90] feat(front-end): add keyboard button and drop down menuw with key combinations --- striker-ui/components/Display/FullSize.tsx | 82 ++++++++++++++++--- .../components/Display/keyCombinations.ts | 14 ++++ 2 files changed, 83 insertions(+), 13 deletions(-) create mode 100644 striker-ui/components/Display/keyCombinations.ts diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index d2c3479d..73f182ed 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -1,11 +1,13 @@ -import { Dispatch, SetStateAction } from 'react'; -import { Box } from '@material-ui/core'; +import { useState, Dispatch, SetStateAction } from 'react'; +import { Box, Menu, MenuItem, Typography } 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 VncDisplay from './VncDisplay'; import { Panel } from '../Panels'; -import { RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; +import { BLACK, RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; +import keyCombinations from './keyCombinations'; const useStyles = makeStyles(() => ({ displayBox: { @@ -19,10 +21,28 @@ const useStyles = makeStyles(() => ({ 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, + }, + }, })); interface PreviewProps { @@ -30,8 +50,13 @@ interface PreviewProps { } const FullSize = ({ setMode }: PreviewProps): JSX.Element => { + const [anchorEl, setAnchorEl] = useState(null); const classes = useStyles(); + const handleClick = (event: React.MouseEvent): void => { + setAnchorEl(event.currentTarget); + }; + return ( @@ -44,16 +69,47 @@ const FullSize = ({ setMode }: PreviewProps): JSX.Element => { }} /> - - setMode(true)} - > - - + + + setMode(true)} + > + + + + + + + + setAnchorEl(null)} + > + {keyCombinations.map(({ keys }) => { + return ( + handlePower(label)} + className={classes.keysItem} + key={keys} + > + {keys} + + ); + })} + + diff --git a/striker-ui/components/Display/keyCombinations.ts b/striker-ui/components/Display/keyCombinations.ts new file mode 100644 index 00000000..844e4be0 --- /dev/null +++ b/striker-ui/components/Display/keyCombinations.ts @@ -0,0 +1,14 @@ +const keyCombinations: Array<{ keys: string; scans: string }> = [ + { keys: 'Ctrl + Alt + Del', scans: 'Optimal' }, + { keys: 'Ctrl + Alt + F1', scans: 'Not Ready' }, + { keys: 'Ctrl + Alt + F2', scans: 'Not Ready' }, + { keys: 'Ctrl + Alt + F3', scans: 'Not Ready' }, + { keys: 'Ctrl + Alt + F4', scans: 'Not Ready' }, + { keys: 'Ctrl + Alt + F5', scans: 'Not Ready' }, + { keys: 'Ctrl + Alt + F6', scans: 'Not Ready' }, + { keys: 'Ctrl + Alt + F7', scans: 'Not Ready' }, + { keys: 'Ctrl + Alt + F8', scans: 'Not Ready' }, + { keys: 'Ctrl + Alt + F9', scans: 'Not Ready' }, +]; + +export default keyCombinations; From e3453a1fe63fed5529f9cca9410b4ee934c19865 Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 12 Jul 2021 19:47:22 -0400 Subject: [PATCH 51/90] refactor(front-end): set rfb state to undefined when the VncDisplay component is unmounted --- striker-ui/components/Display/VncDisplay.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/Display/VncDisplay.tsx b/striker-ui/components/Display/VncDisplay.tsx index 5b927901..cfc1885f 100644 --- a/striker-ui/components/Display/VncDisplay.tsx +++ b/striker-ui/components/Display/VncDisplay.tsx @@ -57,12 +57,18 @@ const VncDisplay = (props: VncProps): JSX.Element => { if (!canvasRef.current) { /* eslint-disable consistent-return */ - return (): void => rfb.disconnect(); + return (): void => { + rfb.disconnect(); + setRfb(undefined); + }; } rfb.connect(url); - return (): void => rfb.disconnect(); + return (): void => { + rfb.disconnect(); + setRfb(undefined); + }; }, [rfb, encrypt, opts, url]); const handleMouseEnter = () => { From f08b3adc12a84978960a83131b17ea7497a9198a Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 13 Jul 2021 19:55:55 -0400 Subject: [PATCH 52/90] refactor(front-end): use ref instead of state to avoid unnecessary rerenders --- striker-ui/components/Display/VncDisplay.tsx | 61 +++++++++++--------- 1 file changed, 34 insertions(+), 27 deletions(-) diff --git a/striker-ui/components/Display/VncDisplay.tsx b/striker-ui/components/Display/VncDisplay.tsx index cfc1885f..0d15a4a0 100644 --- a/striker-ui/components/Display/VncDisplay.tsx +++ b/striker-ui/components/Display/VncDisplay.tsx @@ -1,7 +1,8 @@ -import { useEffect, useRef, useState } from 'react'; +import { useEffect, useRef, memo } from 'react'; import { RFB } from 'novnc-node'; type VncProps = { + rfb: typeof RFB; // The URL for the VNC connection: protocol, host, port, and path. url: string; @@ -38,51 +39,55 @@ type VncProps = { localCursor?: boolean; }; -const VncDisplay = (props: VncProps): JSX.Element => { +const VncDisplay = ({ + rfb, + style, + url, + encrypt, + ...opts +}: VncProps): JSX.Element => { const canvasRef = useRef(null); - const [rfb, setRfb] = useState(undefined); - const { style, url, encrypt, ...opts } = props; + /* eslint-disable no-param-reassign */ useEffect(() => { - if (!rfb) - setRfb( - new RFB({ - ...opts, - encrypt: encrypt !== null ? encrypt : url.startsWith('wss:'), - target: canvasRef.current, - }), - ); + if (!rfb.current) + rfb.current = new RFB({ + ...opts, + style, + encrypt: encrypt !== null ? encrypt : url.startsWith('wss:'), + target: canvasRef.current, + }); - if (!rfb) return; + if (!rfb.current) return; if (!canvasRef.current) { /* eslint-disable consistent-return */ return (): void => { - rfb.disconnect(); - setRfb(undefined); + rfb.current.disconnect(); + rfb.current = undefined; }; } - rfb.connect(url); + rfb.current.connect(url); return (): void => { - rfb.disconnect(); - setRfb(undefined); + rfb.current.disconnect(); + rfb.current = undefined; }; - }, [rfb, encrypt, opts, url]); + }, [rfb, encrypt, opts, url, style]); const handleMouseEnter = () => { - if (!rfb) return; - // document.activeElement && document.activeElement.blur(); - rfb.get_keyboard().grab(); - rfb.get_mouse().grab(); + if (!rfb.current) return; + if (document.activeElement) (document.activeElement as HTMLElement).blur(); + rfb.current.get_keyboard().grab(); + rfb.current.get_mouse().grab(); }; const handleMouseLeave = () => { - if (!rfb) return; + if (!rfb.current) return; - rfb.get_keyboard().ungrab(); - rfb.get_mouse().ungrab(); + rfb.current.get_keyboard().ungrab(); + rfb.current.get_mouse().ungrab(); }; return ( @@ -112,4 +117,6 @@ VncDisplay.defaultProps = { shared: false, }; -export default VncDisplay; +const MemoVncDisplay = memo(VncDisplay); + +export default MemoVncDisplay; From 5ff48dad9b95e6210b12e03b45680683c5c47fbf Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 13 Jul 2021 19:58:07 -0400 Subject: [PATCH 53/90] feat(front-end): add a first implementation of sending key combinations to a server hosted in node --- striker-ui/components/Display/FullSize.tsx | 33 ++++++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 73f182ed..a0c267c9 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -1,4 +1,5 @@ -import { useState, Dispatch, SetStateAction } from 'react'; +import { useState, useRef, useEffect, Dispatch, SetStateAction } from 'react'; +import { RFB } from 'novnc-node'; import { Box, Menu, MenuItem, Typography } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import CloseIcon from '@material-ui/icons/Close'; @@ -51,22 +52,42 @@ interface PreviewProps { const FullSize = ({ setMode }: PreviewProps): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); + const rfb = useRef(undefined); + const [displaySize, setDisplaySize] = useState< + | { + width: string | number; + height: string | number; + } + | undefined + >(undefined); const classes = useStyles(); + useEffect(() => { + setDisplaySize({ + width: '75vw', + height: '80vh', + }); + }, []); + const handleClick = (event: React.MouseEvent): void => { setAnchorEl(event.currentTarget); }; + const handleSendKeys = () => { + if (rfb.current) { + rfb.current.sendCtrlAltDel(); + setAnchorEl(null); + } + }; + return ( @@ -100,7 +121,7 @@ const FullSize = ({ setMode }: PreviewProps): JSX.Element => { {keyCombinations.map(({ keys }) => { return ( handlePower(label)} + onClick={handleSendKeys} className={classes.keysItem} key={keys} > From 83883821f4ddbf5acff5430ef5fe41f3446f4cd8 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 14 Jul 2021 11:32:29 -0400 Subject: [PATCH 54/90] refactor(front-end): add all the key combinations specified in the specs --- striker-ui/components/Display/FullSize.tsx | 19 +++++++--- .../components/Display/keyCombinations.ts | 35 +++++++++++++------ 2 files changed, 39 insertions(+), 15 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index a0c267c9..0efd3a3b 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -73,9 +73,20 @@ const FullSize = ({ setMode }: PreviewProps): JSX.Element => { setAnchorEl(event.currentTarget); }; - const handleSendKeys = () => { + const handleSendKeys = (scans: string[]) => { if (rfb.current) { - rfb.current.sendCtrlAltDel(); + if (!scans.length) rfb.current.sendCtrlAltDel(); + else { + // Send pressing keys + scans.forEach((scan) => { + rfb.current.sendKey(scan, 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); } }; @@ -118,10 +129,10 @@ const FullSize = ({ setMode }: PreviewProps): JSX.Element => { open={Boolean(anchorEl)} onClose={() => setAnchorEl(null)} > - {keyCombinations.map(({ keys }) => { + {keyCombinations.map(({ keys, scans }) => { return ( handleSendKeys(scans)} className={classes.keysItem} key={keys} > diff --git a/striker-ui/components/Display/keyCombinations.ts b/striker-ui/components/Display/keyCombinations.ts index 844e4be0..c06ad388 100644 --- a/striker-ui/components/Display/keyCombinations.ts +++ b/striker-ui/components/Display/keyCombinations.ts @@ -1,14 +1,27 @@ -const keyCombinations: Array<{ keys: string; scans: string }> = [ - { keys: 'Ctrl + Alt + Del', scans: 'Optimal' }, - { keys: 'Ctrl + Alt + F1', scans: 'Not Ready' }, - { keys: 'Ctrl + Alt + F2', scans: 'Not Ready' }, - { keys: 'Ctrl + Alt + F3', scans: 'Not Ready' }, - { keys: 'Ctrl + Alt + F4', scans: 'Not Ready' }, - { keys: 'Ctrl + Alt + F5', scans: 'Not Ready' }, - { keys: 'Ctrl + Alt + F6', scans: 'Not Ready' }, - { keys: 'Ctrl + Alt + F7', scans: 'Not Ready' }, - { keys: 'Ctrl + Alt + F8', scans: 'Not Ready' }, - { keys: 'Ctrl + Alt + F9', scans: 'Not Ready' }, +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; From 2c7e2c78ae3005ba4cbd2a80c8e20a9870845537 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 14 Jul 2021 12:30:11 -0400 Subject: [PATCH 55/90] refactor(front-end): modify fetch and add fetching data for vnc connection --- .../components/Anvils/SelectedAnvil.tsx | 2 +- striker-ui/components/Display/FullSize.tsx | 29 +++++++++++++++++-- striker-ui/components/Hosts/AnvilHost.tsx | 22 +++++++++----- striker-ui/components/Servers.tsx | 2 +- striker-ui/lib/fetchers/putJSON.ts | 5 ++-- striker-ui/pages/server/[uuid].tsx | 2 +- 6 files changed, 46 insertions(+), 16 deletions(-) diff --git a/striker-ui/components/Anvils/SelectedAnvil.tsx b/striker-ui/components/Anvils/SelectedAnvil.tsx index 7c1130fb..b159c8a3 100644 --- a/striker-ui/components/Anvils/SelectedAnvil.tsx +++ b/striker-ui/components/Anvils/SelectedAnvil.tsx @@ -67,7 +67,7 @@ const SelectedAnvil = ({ list }: { list: AnvilListItem[] }): JSX.Element => { - putJSON('/set_power', { + putJSON(`${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 index 0efd3a3b..fa1aa24f 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -9,6 +9,7 @@ import VncDisplay from './VncDisplay'; import { Panel } from '../Panels'; import { BLACK, RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; import keyCombinations from './keyCombinations'; +import putJSON from '../../lib/fetchers/putJSON'; const useStyles = makeStyles(() => ({ displayBox: { @@ -48,11 +49,21 @@ const useStyles = makeStyles(() => ({ interface PreviewProps { setMode: Dispatch>; + uuid: string; } -const FullSize = ({ setMode }: PreviewProps): JSX.Element => { +interface VncConnectionProps { + protocol: string; + forward_port: number; +} + +const FullSize = ({ setMode, uuid }: PreviewProps): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); const rfb = useRef(undefined); + const vncConnection = useRef({ + protocol: '', + forward_port: 0, + }); const [displaySize, setDisplaySize] = useState< | { width: string | number; @@ -67,7 +78,19 @@ const FullSize = ({ setMode }: PreviewProps): JSX.Element => { width: '75vw', height: '80vh', }); - }, []); + + (async () => { + const res = await putJSON( + 'http://108.168.17.168/cgi-bin/manage_vnc_pipes', + { + server_uuid: uuid, + is_open: true, + }, + ); + // console.log(res); + vncConnection.current = res.json(); + })(); + }, [uuid]); const handleClick = (event: React.MouseEvent): void => { setAnchorEl(event.currentTarget); @@ -97,7 +120,7 @@ const FullSize = ({ setMode }: PreviewProps): JSX.Element => { diff --git a/striker-ui/components/Hosts/AnvilHost.tsx b/striker-ui/components/Hosts/AnvilHost.tsx index e0678247..c1adfa04 100644 --- a/striker-ui/components/Hosts/AnvilHost.tsx +++ b/striker-ui/components/Hosts/AnvilHost.tsx @@ -104,10 +104,13 @@ const AnvilHost = ({ - putJSON('/set_power', { - host_uuid: host.host_uuid, - is_on: !(host.state === 'online'), - }) + putJSON( + `${process.env.NEXT_PUBLIC_API_URL}/set_power`, + { + host_uuid: host.host_uuid, + is_on: !(host.state === 'online'), + }, + ) } /> @@ -119,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'), - }) + putJSON( + `${process.env.NEXT_PUBLIC_API_URL}/set_membership`, + { + host_uuid: host.host_uuid, + is_member: !(host.state === 'online'), + }, + ) } /> diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 1d63ba87..30a6e841 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -145,7 +145,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { const handlePower = (label: ButtonLabels) => { setAnchorEl(null); if (selected.length) { - putJSON('/set_power', { + putJSON(`${process.env.NEXT_PUBLIC_API_URL}/set_power`, { server_uuid_list: selected, is_on: label === 'on', }); diff --git a/striker-ui/lib/fetchers/putJSON.ts b/striker-ui/lib/fetchers/putJSON.ts index 472f9ded..bace43fc 100644 --- a/striker-ui/lib/fetchers/putJSON.ts +++ b/striker-ui/lib/fetchers/putJSON.ts @@ -1,5 +1,6 @@ -const putJSON = (uri: string, data: T): void => { - fetch(`${process.env.NEXT_PUBLIC_API_URL}${uri}`, { +/* eslint-disable @typescript-eslint/no-explicit-any */ +const putJSON = (uri: string, data: T): Promise => { + return fetch(uri, { method: 'PUT', headers: { 'Content-Type': 'application/json', diff --git a/striker-ui/pages/server/[uuid].tsx b/striker-ui/pages/server/[uuid].tsx index ac2d700d..27390069 100644 --- a/striker-ui/pages/server/[uuid].tsx +++ b/striker-ui/pages/server/[uuid].tsx @@ -74,7 +74,7 @@ const Server = (): JSX.Element => { ) : ( - + ))} From b5def9a53981e3c51628e19a27341ddea3b488b7 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 14 Jul 2021 12:48:51 -0400 Subject: [PATCH 56/90] fix(front-end): remove preview image to avoid build error --- striker-ui/components/Display/Preview.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/striker-ui/components/Display/Preview.tsx b/striker-ui/components/Display/Preview.tsx index 69538393..6b4ea22b 100644 --- a/striker-ui/components/Display/Preview.tsx +++ b/striker-ui/components/Display/Preview.tsx @@ -1,5 +1,4 @@ import { Dispatch, SetStateAction } from 'react'; -import Image from 'next/image'; import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import IconButton from '@material-ui/core/IconButton'; @@ -35,9 +34,6 @@ const Preview = ({ setMode }: PreviewProps): JSX.Element => { return ( - - - Date: Wed, 14 Jul 2021 16:38:12 -0400 Subject: [PATCH 57/90] fix(front-end): change server page name, adjust paths, and add fetching vnc connection info --- striker-ui/components/Display/FullSize.tsx | 47 ++++++++++--------- striker-ui/components/Servers.tsx | 2 +- .../pages/server/{[uuid].tsx => index.tsx} | 0 3 files changed, 25 insertions(+), 24 deletions(-) rename striker-ui/pages/server/{[uuid].tsx => index.tsx} (100%) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index fa1aa24f..8584dfe0 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -60,10 +60,9 @@ interface VncConnectionProps { const FullSize = ({ setMode, uuid }: PreviewProps): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); const rfb = useRef(undefined); - const vncConnection = useRef({ - protocol: '', - forward_port: 0, - }); + const [vncConnection, setVncConnection] = useState< + VncConnectionProps | undefined + >(undefined); const [displaySize, setDisplaySize] = useState< | { width: string | number; @@ -79,18 +78,18 @@ const FullSize = ({ setMode, uuid }: PreviewProps): JSX.Element => { height: '80vh', }); - (async () => { - const res = await putJSON( - 'http://108.168.17.168/cgi-bin/manage_vnc_pipes', - { - server_uuid: uuid, - is_open: true, - }, - ); - // console.log(res); - vncConnection.current = res.json(); - })(); - }, [uuid]); + if (!vncConnection) + (async () => { + const res = await putJSON( + `${process.env.NEXT_PUBLIC_API_URL}/manage_vnc_pipes`, + { + server_uuid: uuid, + is_open: true, + }, + ); + setVncConnection(await res.json()); + })(); + }, [uuid, vncConnection]); const handleClick = (event: React.MouseEvent): void => { setAnchorEl(event.currentTarget); @@ -117,13 +116,15 @@ const FullSize = ({ setMode, uuid }: PreviewProps): JSX.Element => { return ( - - - + {vncConnection && ( + + + + )} { className={classes.button} key={server.server_uuid} component="a" - href={`/server/${server.server_uuid}`} + href={`/server?uuid=${server.server_uuid}`} > {showCheckbox && ( diff --git a/striker-ui/pages/server/[uuid].tsx b/striker-ui/pages/server/index.tsx similarity index 100% rename from striker-ui/pages/server/[uuid].tsx rename to striker-ui/pages/server/index.tsx From 7e69a95493947033cf0ed826218fe787307cce1e Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 14 Jul 2021 16:46:28 -0400 Subject: [PATCH 58/90] refactor(front-end): remove unused components --- striker-ui/pages/server/index.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/striker-ui/pages/server/index.tsx b/striker-ui/pages/server/index.tsx index 27390069..72fc281e 100644 --- a/striker-ui/pages/server/index.tsx +++ b/striker-ui/pages/server/index.tsx @@ -4,12 +4,8 @@ import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import PeriodicFetch from '../../lib/fetchers/periodicFetch'; -import CPU from '../../components/CPU'; -import Memory from '../../components/Memory'; -import Resource from '../../components/Resource'; import { FullSize, Preview } from '../../components/Display'; import Header from '../../components/Header'; -import Domain from '../../components/Domain'; const useStyles = makeStyles((theme) => ({ child: { @@ -62,14 +58,6 @@ const Server = (): JSX.Element => { - - - - - - - - ) : ( From 102981d8a9c96c8bb3d9bbdf03c5314e2b8fec3b Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 14 Jul 2021 16:47:25 -0400 Subject: [PATCH 59/90] fix(front-end): add settings to force trailing slash in the url --- striker-ui/next.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/striker-ui/next.config.js b/striker-ui/next.config.js index ec314adc..f4fce537 100644 --- a/striker-ui/next.config.js +++ b/striker-ui/next.config.js @@ -2,4 +2,5 @@ module.exports = { pageExtensions: ['ts', 'tsx'], poweredByHeader: false, reactStrictMode: true, + trailingSlash: true, }; From d0dd8db6dbcb12a078a97e1e886ef89c6a5cd14e Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 14 Jul 2021 16:58:56 -0400 Subject: [PATCH 60/90] fix(front-end): use anvil ip --- striker-ui/components/Display/FullSize.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 8584dfe0..82ee1b18 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -120,7 +120,7 @@ const FullSize = ({ setMode, uuid }: PreviewProps): JSX.Element => { From e4681e09c938b25c429b0be9e189cf76e280fc84 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 15 Jul 2021 10:59:28 -0400 Subject: [PATCH 61/90] refactor(front-end): abstract the process to extract a domain from a given url --- striker-ui/components/Display/FullSize.tsx | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 82ee1b18..9e4bc6a4 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -57,6 +57,18 @@ interface VncConnectionProps { forward_port: number; } +const extractDomain = (url: string | undefined): string | undefined => { + const regEx = /[:]\/\/([^/]+)\//; + let domain; + let results; + + if (url) { + results = regEx.exec(url); + if (results) [, domain] = results; + } + return domain; +}; + const FullSize = ({ setMode, uuid }: PreviewProps): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); const rfb = useRef(undefined); @@ -112,15 +124,16 @@ const FullSize = ({ setMode, uuid }: PreviewProps): JSX.Element => { setAnchorEl(null); } }; + const extractedDomain = extractDomain(process.env.NEXT_PUBLIC_API_URL); return ( - {vncConnection && ( + {vncConnection && extractedDomain && ( From 4712a766829055f816a1ea85857d94f56cccc3bf Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 15 Jul 2021 11:00:50 -0400 Subject: [PATCH 62/90] fix(front-end): remove unnecessary fetch --- striker-ui/pages/server/index.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/striker-ui/pages/server/index.tsx b/striker-ui/pages/server/index.tsx index 72fc281e..dde4121a 100644 --- a/striker-ui/pages/server/index.tsx +++ b/striker-ui/pages/server/index.tsx @@ -3,7 +3,6 @@ import { useRouter } from 'next/router'; import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; -import PeriodicFetch from '../../lib/fetchers/periodicFetch'; import { FullSize, Preview } from '../../components/Display'; import Header from '../../components/Header'; @@ -45,15 +44,10 @@ const Server = (): JSX.Element => { const router = useRouter(); const { uuid } = router.query; - const { data } = PeriodicFetch( - `${process.env.NEXT_PUBLIC_API_URL}/get_replicated_storage?server_uuid=${uuid}`, - ); - return ( <>
{typeof uuid === 'string' && - data && (previewMode ? ( From 5fe420eb671e3ecc1943ec8f74d132897be7aad6 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 15 Jul 2021 11:55:15 -0400 Subject: [PATCH 63/90] refactor(front-end): add logout icon to the header --- striker-ui/components/Header.tsx | 60 +++++++++++++++----------------- striker-ui/lib/consts/ICONS.ts | 5 +++ 2 files changed, 34 insertions(+), 31 deletions(-) diff --git a/striker-ui/components/Header.tsx b/striker-ui/components/Header.tsx index 436b1138..05db2909 100644 --- a/striker-ui/components/Header.tsx +++ b/striker-ui/components/Header.tsx @@ -1,43 +1,41 @@ 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, + }, + icons: { + [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', - }, - }, - }), -); + }, +})); const Header = (): JSX.Element => { const classes = useStyles(); 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', From ee2bf4da09005034866898e1dc08685b001372c1 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 15 Jul 2021 11:57:04 -0400 Subject: [PATCH 64/90] refactor(front-end): add button in the drawer to go the dashboard/home page --- striker-ui/components/AnvilDrawer.tsx | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/striker-ui/components/AnvilDrawer.tsx b/striker-ui/components/AnvilDrawer.tsx index c6470c99..37eb85b7 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 => ( Date: Thu, 15 Jul 2021 13:00:20 -0400 Subject: [PATCH 65/90] refactor(front-end): add a placeholder for the vnc preview --- striker-ui/components/Display/Preview.tsx | 32 ++++++++++++++++++----- striker-ui/components/Header.tsx | 9 +++++-- striker-ui/pages/server/index.tsx | 2 +- 3 files changed, 34 insertions(+), 9 deletions(-) diff --git a/striker-ui/components/Display/Preview.tsx b/striker-ui/components/Display/Preview.tsx index 6b4ea22b..0b2e6a30 100644 --- a/striker-ui/components/Display/Preview.tsx +++ b/striker-ui/components/Display/Preview.tsx @@ -3,8 +3,9 @@ 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, TEXT } from '../../lib/consts/DEFAULT_THEME'; +import { BLACK, GREY, TEXT } from '../../lib/consts/DEFAULT_THEME'; interface PreviewProps { setMode: Dispatch>; @@ -12,8 +13,8 @@ interface PreviewProps { const useStyles = makeStyles(() => ({ displayBox: { - paddingTop: '1em', - paddingBottom: 0, + padding: 0, + width: '100%', }, fullScreenButton: { borderRadius: 8, @@ -23,8 +24,18 @@ const useStyles = makeStyles(() => ({ }, }, fullScreenBox: { - paddingLeft: '.7em', - paddingRight: 0, + paddingLeft: '1em', + padding: 0, + }, + imageButton: { + padding: 0, + color: TEXT, + }, + imageIcon: { + borderRadius: 8, + padding: 0, + backgroundColor: GREY, + fontSize: '8em', }, })); @@ -34,11 +45,20 @@ const Preview = ({ setMode }: PreviewProps): JSX.Element => { return ( + + setMode(false)} + > + + + setMode(false)} > diff --git a/striker-ui/components/Header.tsx b/striker-ui/components/Header.tsx index 05db2909..79d492d2 100644 --- a/striker-ui/components/Header.tsx +++ b/striker-ui/components/Header.tsx @@ -24,7 +24,7 @@ const useStyles = makeStyles((theme) => ({ barElement: { padding: 0, }, - icons: { + iconBox: { [theme.breakpoints.down('sm')]: { display: 'none', }, @@ -35,6 +35,10 @@ const useStyles = makeStyles((theme) => ({ paddingLeft: '15vw', }, }, + icons: { + paddingLeft: '.1em', + paddingRight: '.1em', + }, })); const Header = (): JSX.Element => { @@ -52,7 +56,7 @@ const Header = (): JSX.Element => { - + {ICONS.map( (icon): JSX.Element => ( { src={icon.image} // eslint-disable-next-line react/jsx-props-no-spreading {...ICON_SIZE} + className={classes.icons} /> ), diff --git a/striker-ui/pages/server/index.tsx b/striker-ui/pages/server/index.tsx index dde4121a..1aa79a3d 100644 --- a/striker-ui/pages/server/index.tsx +++ b/striker-ui/pages/server/index.tsx @@ -8,7 +8,7 @@ import Header from '../../components/Header'; const useStyles = makeStyles((theme) => ({ child: { - width: '22%', + width: '18%', height: '100%', [theme.breakpoints.down('lg')]: { width: '25%', From fac15493baa24c6ce20d284fe51adaa2706332b8 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 15 Jul 2021 18:12:26 -0400 Subject: [PATCH 66/90] style: add server label and name to the preview and full size components --- striker-ui/components/Display/FullSize.tsx | 8 ++++++- striker-ui/components/Display/Preview.tsx | 8 ++++++- striker-ui/components/Servers.tsx | 2 +- striker-ui/pages/server/index.tsx | 25 +++++++++------------- 4 files changed, 25 insertions(+), 18 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 9e4bc6a4..45df321d 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -10,6 +10,7 @@ import { Panel } from '../Panels'; import { BLACK, RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; import keyCombinations from './keyCombinations'; import putJSON from '../../lib/fetchers/putJSON'; +import { HeaderText } from '../Text'; const useStyles = makeStyles(() => ({ displayBox: { @@ -50,6 +51,7 @@ const useStyles = makeStyles(() => ({ interface PreviewProps { setMode: Dispatch>; uuid: string; + serverName: string | string[] | undefined; } interface VncConnectionProps { @@ -69,7 +71,7 @@ const extractDomain = (url: string | undefined): string | undefined => { return domain; }; -const FullSize = ({ setMode, uuid }: PreviewProps): JSX.Element => { +const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); const rfb = useRef(undefined); const [vncConnection, setVncConnection] = useState< @@ -128,6 +130,10 @@ const FullSize = ({ setMode, uuid }: PreviewProps): JSX.Element => { return ( + + + + {vncConnection && extractedDomain && ( diff --git a/striker-ui/components/Display/Preview.tsx b/striker-ui/components/Display/Preview.tsx index 0b2e6a30..6167d7ac 100644 --- a/striker-ui/components/Display/Preview.tsx +++ b/striker-ui/components/Display/Preview.tsx @@ -6,14 +6,17 @@ 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: { @@ -39,11 +42,14 @@ const useStyles = makeStyles(() => ({ }, })); -const Preview = ({ setMode }: PreviewProps): JSX.Element => { +const Preview = ({ setMode, serverName }: PreviewProps): JSX.Element => { const classes = useStyles(); return ( + + + { className={classes.button} key={server.server_uuid} component="a" - href={`/server?uuid=${server.server_uuid}`} + href={`/server?uuid=${server.server_uuid}&server_name=${server.server_name}`} > {showCheckbox && ( diff --git a/striker-ui/pages/server/index.tsx b/striker-ui/pages/server/index.tsx index 1aa79a3d..01f413b2 100644 --- a/striker-ui/pages/server/index.tsx +++ b/striker-ui/pages/server/index.tsx @@ -7,8 +7,8 @@ import { FullSize, Preview } from '../../components/Display'; import Header from '../../components/Header'; const useStyles = makeStyles((theme) => ({ - child: { - width: '18%', + preview: { + width: '20%', height: '100%', [theme.breakpoints.down('lg')]: { width: '25%', @@ -17,15 +17,6 @@ const useStyles = makeStyles((theme) => ({ width: '100%', }, }, - server: { - width: '35%', - [theme.breakpoints.down('lg')]: { - width: '25%', - }, - [theme.breakpoints.down('md')]: { - width: '100%', - }, - }, container: { display: 'flex', flexDirection: 'row', @@ -42,7 +33,7 @@ const Server = (): JSX.Element => { const classes = useStyles(); const router = useRouter(); - const { uuid } = router.query; + const { uuid, server_name } = router.query; return ( <> @@ -50,13 +41,17 @@ const Server = (): JSX.Element => { {typeof uuid === 'string' && (previewMode ? ( - - + + ) : ( - + ))} From cdab38f4c0390e335d020d15108fde5d624101e1 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 15 Jul 2021 18:13:37 -0400 Subject: [PATCH 67/90] refactor(front-end): remove unnecesary layer wrapping the appbar --- striker-ui/components/Header.tsx | 64 ++++++++++++++++---------------- 1 file changed, 31 insertions(+), 33 deletions(-) diff --git a/striker-ui/components/Header.tsx b/striker-ui/components/Header.tsx index 79d492d2..28786aad 100644 --- a/striker-ui/components/Header.tsx +++ b/striker-ui/components/Header.tsx @@ -48,41 +48,39 @@ const Header = (): JSX.Element => { const toggleDrawer = (): void => setOpen(!open); return ( - <> - - - - - - - {ICONS.map( - (icon): JSX.Element => ( - - - - ), - )} - + + + + - + + {ICONS.map( + (icon): JSX.Element => ( + + + + ), + )} + + - + ); }; From 3e3e7fba12ba289c279e3634e6ea83b6b6e13a62 Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 19 Jul 2021 18:34:57 -0400 Subject: [PATCH 68/90] fix(front-end): get domain from window and add spinner --- striker-ui/components/Display/FullSize.tsx | 47 ++++++++++++++-------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 45df321d..df8d69fc 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -11,11 +11,18 @@ import { BLACK, RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; import keyCombinations from './keyCombinations'; import putJSON from '../../lib/fetchers/putJSON'; import { HeaderText } from '../Text'; +import Spinner from '../Spinner'; const useStyles = makeStyles(() => ({ displayBox: { paddingTop: '1em', paddingBottom: 0, + width: '75%', + height: '80%', + }, + vncBox: { + width: '75%', + height: '80%', }, closeButton: { borderRadius: 8, @@ -74,23 +81,20 @@ const extractDomain = (url: string | undefined): string | undefined => { const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); const rfb = useRef(undefined); + const hostname = useRef(undefined); const [vncConnection, setVncConnection] = useState< VncConnectionProps | undefined >(undefined); - const [displaySize, setDisplaySize] = useState< - | { - width: string | number; - height: string | number; - } - | undefined - >(undefined); + const [displaySize] = useState<{ + width: string; + height: string; + }>({ width: '75%', height: '80%' }); const classes = useStyles(); useEffect(() => { - setDisplaySize({ - width: '75vw', - height: '80vh', - }); + if (typeof window !== 'undefined') { + hostname.current = window.location.hostname; + } if (!vncConnection) (async () => { @@ -109,6 +113,13 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { setAnchorEl(event.currentTarget); }; + const handleClickClose = async () => { + await putJSON(`${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(); @@ -135,23 +146,27 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { - {vncConnection && extractedDomain && ( - + {vncConnection && extractedDomain ? ( + + ) : ( + )} setMode(true)} + onClick={() => { + handleClickClose(); + setMode(true); + }} > From 65a89b4ad79bfff3a9395f39435c1c015b7796a6 Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 19 Jul 2021 18:35:54 -0400 Subject: [PATCH 69/90] fix(front-end): remove trailing slash setting --- striker-ui/next.config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/striker-ui/next.config.js b/striker-ui/next.config.js index f4fce537..ec314adc 100644 --- a/striker-ui/next.config.js +++ b/striker-ui/next.config.js @@ -2,5 +2,4 @@ module.exports = { pageExtensions: ['ts', 'tsx'], poweredByHeader: false, reactStrictMode: true, - trailingSlash: true, }; From 22bf6148093713f51586f21dc515792316201d95 Mon Sep 17 00:00:00 2001 From: Josue Date: Mon, 19 Jul 2021 18:53:20 -0400 Subject: [PATCH 70/90] fix(front-end): remove extracting url from env variable --- striker-ui/components/Display/FullSize.tsx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index df8d69fc..fcb8af39 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -66,18 +66,6 @@ interface VncConnectionProps { forward_port: number; } -const extractDomain = (url: string | undefined): string | undefined => { - const regEx = /[:]\/\/([^/]+)\//; - let domain; - let results; - - if (url) { - results = regEx.exec(url); - if (results) [, domain] = results; - } - return domain; -}; - const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); const rfb = useRef(undefined); @@ -137,7 +125,6 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { setAnchorEl(null); } }; - const extractedDomain = extractDomain(process.env.NEXT_PUBLIC_API_URL); return ( @@ -146,7 +133,7 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { - {vncConnection && extractedDomain ? ( + {vncConnection ? ( Date: Mon, 19 Jul 2021 18:55:26 -0400 Subject: [PATCH 71/90] fix(front-end): set dashboard button to /index.html --- striker-ui/components/AnvilDrawer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/components/AnvilDrawer.tsx b/striker-ui/components/AnvilDrawer.tsx index 37eb85b7..34bc7615 100644 --- a/striker-ui/components/AnvilDrawer.tsx +++ b/striker-ui/components/AnvilDrawer.tsx @@ -49,7 +49,7 @@ const AnvilDrawer = ({ open, setOpen }: DrawerProps): JSX.Element => { - + From 9f47f7c45ed4aa59fbd5dccce9cd7c218a00dd3c Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 20 Jul 2021 15:47:58 -0400 Subject: [PATCH 72/90] style(front-end): add proper title to the dashboard and server pages --- striker-ui/pages/index.tsx | 4 ++++ striker-ui/pages/server/index.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/striker-ui/pages/index.tsx b/striker-ui/pages/index.tsx index c30a1a3a..e7e69f9a 100644 --- a/striker-ui/pages/index.tsx +++ b/striker-ui/pages/index.tsx @@ -1,3 +1,4 @@ +import Head from 'next/head'; import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; @@ -53,6 +54,9 @@ const Home = (): JSX.Element => { return ( <> + + Dashboard +
{data?.anvils && diff --git a/striker-ui/pages/server/index.tsx b/striker-ui/pages/server/index.tsx index 01f413b2..a95ac5ea 100644 --- a/striker-ui/pages/server/index.tsx +++ b/striker-ui/pages/server/index.tsx @@ -1,5 +1,6 @@ import { useState } from 'react'; import { useRouter } from 'next/router'; +import Head from 'next/head'; import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; @@ -37,6 +38,9 @@ const Server = (): JSX.Element => { return ( <> + + {server_name} +
{typeof uuid === 'string' && (previewMode ? ( From 9d9be36447669448ce0c9dc77c27b658296fa192 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 20 Jul 2021 15:51:44 -0400 Subject: [PATCH 73/90] refactor(front-end): add Keep-Alive header in the put fetcher so the striker has time to answer --- striker-ui/lib/fetchers/putJSON.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/striker-ui/lib/fetchers/putJSON.ts b/striker-ui/lib/fetchers/putJSON.ts index bace43fc..4f92d7cb 100644 --- a/striker-ui/lib/fetchers/putJSON.ts +++ b/striker-ui/lib/fetchers/putJSON.ts @@ -4,6 +4,7 @@ const putJSON = (uri: string, data: T): Promise => { method: 'PUT', headers: { 'Content-Type': 'application/json', + 'Keep-Alive': 'timeout=60', }, body: JSON.stringify(data), }); From ae628edb24828d839f7096728851c1e750c63c3a Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 20 Jul 2021 15:53:50 -0400 Subject: [PATCH 74/90] style(front-end): display message while the front-end fetches vnc connection configs --- striker-ui/components/Display/FullSize.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index fcb8af39..07317905 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -17,12 +17,13 @@ const useStyles = makeStyles(() => ({ displayBox: { paddingTop: '1em', paddingBottom: 0, - width: '75%', - height: '80%', }, - vncBox: { - width: '75%', - height: '80%', + spinnerBox: { + flexDirection: 'column', + width: '75vw', + height: '75vh', + alignItems: 'center', + justifyContent: 'center', }, closeButton: { borderRadius: 8, @@ -134,7 +135,7 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { {vncConnection ? ( - + { /> ) : ( - + + + + )} From 92601e532e7ba97db7b3480834a4578c588ea7e1 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 21 Jul 2021 17:56:48 -0400 Subject: [PATCH 75/90] refactor(font-end): rename fetcher --- striker-ui/components/Anvils/SelectedAnvil.tsx | 4 ++-- striker-ui/components/Hosts/AnvilHost.tsx | 6 +++--- striker-ui/components/Servers.tsx | 4 ++-- striker-ui/lib/fetchers/{putJSON.ts => putFetch.ts} | 5 ++--- 4 files changed, 9 insertions(+), 10 deletions(-) rename striker-ui/lib/fetchers/{putJSON.ts => putFetch.ts} (63%) diff --git a/striker-ui/components/Anvils/SelectedAnvil.tsx b/striker-ui/components/Anvils/SelectedAnvil.tsx index b159c8a3..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(`${process.env.NEXT_PUBLIC_API_URL}/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/Hosts/AnvilHost.tsx b/striker-ui/components/Hosts/AnvilHost.tsx index c1adfa04..1d013707 100644 --- a/striker-ui/components/Hosts/AnvilHost.tsx +++ b/striker-ui/components/Hosts/AnvilHost.tsx @@ -6,7 +6,7 @@ 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) => ({ @@ -104,7 +104,7 @@ const AnvilHost = ({ - putJSON( + putFetch( `${process.env.NEXT_PUBLIC_API_URL}/set_power`, { host_uuid: host.host_uuid, @@ -122,7 +122,7 @@ const AnvilHost = ({ checked={host.state === 'online'} disabled={!(host.state === 'online')} onChange={() => - putJSON( + putFetch( `${process.env.NEXT_PUBLIC_API_URL}/set_membership`, { host_uuid: host.host_uuid, diff --git a/striker-ui/components/Servers.tsx b/striker-ui/components/Servers.tsx index 6255d09f..4ffd8ee1 100644 --- a/striker-ui/components/Servers.tsx +++ b/striker-ui/components/Servers.tsx @@ -34,7 +34,7 @@ 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: { @@ -145,7 +145,7 @@ const Servers = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { const handlePower = (label: ButtonLabels) => { setAnchorEl(null); if (selected.length) { - putJSON(`${process.env.NEXT_PUBLIC_API_URL}/set_power`, { + putFetch(`${process.env.NEXT_PUBLIC_API_URL}/set_power`, { server_uuid_list: selected, is_on: label === 'on', }); diff --git a/striker-ui/lib/fetchers/putJSON.ts b/striker-ui/lib/fetchers/putFetch.ts similarity index 63% rename from striker-ui/lib/fetchers/putJSON.ts rename to striker-ui/lib/fetchers/putFetch.ts index 4f92d7cb..d9c52eef 100644 --- a/striker-ui/lib/fetchers/putJSON.ts +++ b/striker-ui/lib/fetchers/putFetch.ts @@ -1,13 +1,12 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -const putJSON = (uri: string, data: T): Promise => { +const putFetch = (uri: string, data: T): Promise => { return fetch(uri, { method: 'PUT', headers: { 'Content-Type': 'application/json', - 'Keep-Alive': 'timeout=60', }, body: JSON.stringify(data), }); }; -export default putJSON; +export default putFetch; From 21c90c6224e35af2d79eac612d4e85335d180114 Mon Sep 17 00:00:00 2001 From: Josue Date: Wed, 21 Jul 2021 17:59:04 -0400 Subject: [PATCH 76/90] feat(front-end): add a fetcher with timeout and controlls to reconnect to the server --- striker-ui/components/Display/FullSize.tsx | 168 +++++++++++------- .../lib/fetchers/putFetchWithTimeout.ts | 25 +++ 2 files changed, 128 insertions(+), 65 deletions(-) create mode 100644 striker-ui/lib/fetchers/putFetchWithTimeout.ts diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 07317905..b52f9c29 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -1,6 +1,6 @@ import { useState, useRef, useEffect, Dispatch, SetStateAction } from 'react'; import { RFB } from 'novnc-node'; -import { Box, Menu, MenuItem, Typography } from '@material-ui/core'; +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'; @@ -9,7 +9,8 @@ import VncDisplay from './VncDisplay'; import { Panel } from '../Panels'; import { BLACK, RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; import keyCombinations from './keyCombinations'; -import putJSON from '../../lib/fetchers/putJSON'; +import putFetch from '../../lib/fetchers/putFetch'; +import putFetchWithTimeout from '../../lib/fetchers/putFetchWithTimeout'; import { HeaderText } from '../Text'; import Spinner from '../Spinner'; @@ -54,6 +55,9 @@ const useStyles = makeStyles(() => ({ backgroundColor: TEXT, }, }, + buttonText: { + color: BLACK, + }, })); interface PreviewProps { @@ -74,6 +78,7 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { const [vncConnection, setVncConnection] = useState< VncConnectionProps | undefined >(undefined); + const [isError, setIsError] = useState(false); const [displaySize] = useState<{ width: string; height: string; @@ -87,23 +92,28 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { if (!vncConnection) (async () => { - const res = await putJSON( - `${process.env.NEXT_PUBLIC_API_URL}/manage_vnc_pipes`, - { - server_uuid: uuid, - is_open: true, - }, - ); - setVncConnection(await res.json()); + 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]); + }, [uuid, vncConnection, isError]); const handleClick = (event: React.MouseEvent): void => { setAnchorEl(event.currentTarget); }; const handleClickClose = async () => { - await putJSON(`${process.env.NEXT_PUBLIC_API_URL}/manage_vnc_pipes`, { + await putFetch(`${process.env.NEXT_PUBLIC_API_URL}/manage_vnc_pipes`, { server_uuid: uuid, is_open: false, }); @@ -135,63 +145,91 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { {vncConnection ? ( - - - + <> + + + + + + { + handleClickClose(); + setMode(true); + }} + > + + + + + + + + setAnchorEl(null)} + > + {keyCombinations.map(({ keys, scans }) => { + return ( + handleSendKeys(scans)} + className={classes.keysItem} + key={keys} + > + {keys} + + ); + })} + + + + ) : ( - - + {!isError ? ( + <> + + + + + ) : ( + <> + + + + + + )} )} - - - { - handleClickClose(); - setMode(true); - }} - > - - - - - - - - setAnchorEl(null)} - > - {keyCombinations.map(({ keys, scans }) => { - return ( - handleSendKeys(scans)} - className={classes.keysItem} - key={keys} - > - {keys} - - ); - })} - - - ); 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; From bd04b91e3e99af449f4d4622e826da83051284af Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 29 Jul 2021 16:57:00 -0400 Subject: [PATCH 77/90] chore: remove not needed dependencies --- striker-ui/package-lock.json | 29 ----------------------------- striker-ui/package.json | 1 - 2 files changed, 30 deletions(-) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index 96b0d83e..ba8b8d4a 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -1084,11 +1084,6 @@ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.0.tgz", "integrity": "sha512-D7iWRBvnZE8ecXiLj/9wbxH7Tk79fAh8IHaTNq1RWRixsS02W+5qS+iE9yq6RYl0asXx5tw0bLhmT5pIfbSquw==" }, - "bowser": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/bowser/-/bowser-0.7.3.tgz", - "integrity": "sha1-T8DLTg4r3Zs5TfDSA4wywswnEsg=" - }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -4213,30 +4208,6 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" }, - "novnc-node": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/novnc-node/-/novnc-node-0.5.3.tgz", - "integrity": "sha1-afIKSi/wxUyi+UL/WVU/Uj62H6c=", - "requires": { - "bowser": "^0.7.2", - "debug": "^2.2.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - } - } - }, "npm-run-path": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", diff --git a/striker-ui/package.json b/striker-ui/package.json index 29c9f0d2..5fb9c8e3 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -16,7 +16,6 @@ "@material-ui/icons": "^4.11.2", "@material-ui/styles": "^4.11.4", "next": "^10.2.3", - "novnc-node": "^0.5.3", "pretty-bytes": "^5.6.0", "react": "17.0.2", "react-dom": "17.0.2", From 1a64ada0c32fd0b6defea3f9c71fd21a6002a486 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 29 Jul 2021 17:00:44 -0400 Subject: [PATCH 78/90] refactor(front-end): implement a new version of a vnc display using a different rfb type --- striker-ui/components/Display/FullSize.tsx | 40 +++-- striker-ui/components/Display/VncDisplay.tsx | 173 +++++++++---------- 2 files changed, 105 insertions(+), 108 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index b52f9c29..c50de2cf 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -1,11 +1,11 @@ import { useState, useRef, useEffect, Dispatch, SetStateAction } from 'react'; -import { RFB } from 'novnc-node'; +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 VncDisplay from './VncDisplay'; +import RFB from './noVNC/core/rfb'; import { Panel } from '../Panels'; import { BLACK, RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; import keyCombinations from './keyCombinations'; @@ -14,10 +14,14 @@ 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: { paddingTop: '1em', paddingBottom: 0, + paddingLeft: 0, + paddingRight: 0, }, spinnerBox: { flexDirection: 'column', @@ -73,7 +77,7 @@ interface VncConnectionProps { const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); - const rfb = useRef(undefined); + const rfb = useRef(); const hostname = useRef(undefined); const [vncConnection, setVncConnection] = useState< VncConnectionProps | undefined @@ -82,7 +86,7 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { const [displaySize] = useState<{ width: string; height: string; - }>({ width: '75%', height: '80%' }); + }>({ width: '75vw', height: '75vh' }); const classes = useStyles(); useEffect(() => { @@ -124,9 +128,9 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { if (!scans.length) rfb.current.sendCtrlAltDel(); else { // Send pressing keys - scans.forEach((scan) => { - rfb.current.sendKey(scan, 1); - }); + 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) { @@ -146,13 +150,21 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { {vncConnection ? ( <> - - - + ; url: string; - - // Define width and height via style or separate props - style?: { width: number | string; height: number | string }; - width?: number | string; - height?: number | string; - - // Force a URL to be communicated with as encrypted. - encrypt?: boolean; - - // List of WebSocket protocols this connection should support. - wsProtocols?: string[]; - - // VNC connection changes. - onUpdateState?: () => void; - - onPasswordRequired?: () => void; - - // Alert is raised on the VNC connection. - onBell?: () => void; - - // The desktop name is entered for the connection. - onDesktopName?: () => void; - - connectTimeout?: number; - - disconnectTimeout?: number; - - // A VNC connection should disconnect other connections before connecting. - shared?: boolean; - - trueColor?: boolean; - localCursor?: boolean; + style: { width: string; height: string }; + viewOnly: boolean; + focusOnClick: boolean; + clipViewport: boolean; + dragViewport: boolean; + scaleViewport: boolean; + resizeSession: boolean; + showDotCursor: boolean; + background: string; + qualityLevel: number; + compressionLevel: number; }; -const VncDisplay = ({ - rfb, - style, - url, - encrypt, - ...opts -}: VncProps): JSX.Element => { - const canvasRef = useRef(null); +const VncDisplay = (props: Props): JSX.Element => { + const screen = useRef(null); + + const { + rfb, + url, + style, + viewOnly, + focusOnClick, + clipViewport, + dragViewport, + scaleViewport, + resizeSession, + showDotCursor, + background, + qualityLevel, + compressionLevel, + } = props; - /* eslint-disable no-param-reassign */ useEffect(() => { - if (!rfb.current) - rfb.current = new RFB({ - ...opts, - style, - encrypt: encrypt !== null ? encrypt : url.startsWith('wss:'), - target: canvasRef.current, - }); - - if (!rfb.current) return; - - if (!canvasRef.current) { - /* eslint-disable consistent-return */ + if (!screen.current) { return (): void => { - rfb.current.disconnect(); - rfb.current = undefined; + if (rfb.current) { + rfb?.current.disconnect(); + rfb.current = undefined; + } }; } - rfb.current.connect(url); + 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 => { - rfb.current.disconnect(); - rfb.current = undefined; + if (rfb.current) { + rfb.current.disconnect(); + rfb.current = undefined; + } }; - }, [rfb, encrypt, opts, url, style]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [rfb]); const handleMouseEnter = () => { - if (!rfb.current) return; - if (document.activeElement) (document.activeElement as HTMLElement).blur(); - rfb.current.get_keyboard().grab(); - rfb.current.get_mouse().grab(); + if ( + document.activeElement && + document.activeElement instanceof HTMLElement + ) { + document.activeElement.blur(); + } + + if (rfb?.current) { + rfb.current.focus(); + } }; const handleMouseLeave = () => { - if (!rfb.current) return; - - rfb.current.get_keyboard().ungrab(); - rfb.current.get_mouse().ungrab(); + if (rfb?.current) { + rfb.current.blur(); + } }; return ( - ); }; -VncDisplay.defaultProps = { - style: null, - encrypt: null, - wsProtocols: ['binary'], - trueColor: true, - localCursor: true, - connectTimeout: 5, - disconnectTimeout: 5, - width: 1280, - height: 720, - onUpdateState: null, - onPasswordRequired: null, - onBell: null, - onDesktopName: null, - shared: false, -}; - -const MemoVncDisplay = memo(VncDisplay); - -export default MemoVncDisplay; +export default memo(VncDisplay); From fea3ae94fc8d1dba3f1d2fea0703e560420580c0 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 30 Jul 2021 14:44:19 -0400 Subject: [PATCH 79/90] refactor(front-end): remove handler for when the mouse pointer leaves the vnc container --- striker-ui/components/Display/VncDisplay.tsx | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/striker-ui/components/Display/VncDisplay.tsx b/striker-ui/components/Display/VncDisplay.tsx index 26fe98ac..0157d19a 100644 --- a/striker-ui/components/Display/VncDisplay.tsx +++ b/striker-ui/components/Display/VncDisplay.tsx @@ -83,25 +83,10 @@ const VncDisplay = (props: Props): JSX.Element => { document.activeElement.blur(); } - if (rfb?.current) { - rfb.current.focus(); - } + if (rfb?.current) rfb.current.focus(); }; - const handleMouseLeave = () => { - if (rfb?.current) { - rfb.current.blur(); - } - }; - - return ( -
- ); + return
; }; export default memo(VncDisplay); From 50dff00d135cdaf866dcfd497c174f36ff1c1157 Mon Sep 17 00:00:00 2001 From: Josue Date: Fri, 30 Jul 2021 15:08:33 -0400 Subject: [PATCH 80/90] style(front-end): fix scrollbar track colour --- striker-ui/components/Panels/Panel.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/striker-ui/components/Panels/Panel.tsx b/striker-ui/components/Panels/Panel.tsx index 007a990d..8f379734 100644 --- a/striker-ui/components/Panels/Panel.tsx +++ b/striker-ui/components/Panels/Panel.tsx @@ -46,6 +46,9 @@ const useStyles = makeStyles(() => ({ '*::-webkit-scrollbar': { width: '.6em', }, + '*::-webkit-scrollbar-track': { + backgroundColor: PANEL_BACKGROUND, + }, '*::-webkit-scrollbar-thumb': { backgroundColor: TEXT, outline: '1px solid transparent', From a2949c34537b9b60c6df093f89cb5ee35fa4b396 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 3 Aug 2021 17:42:30 -0400 Subject: [PATCH 81/90] style(front-end): expand VncDisplay component to 100% --- striker-ui/components/Display/FullSize.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index c50de2cf..7ad0c76c 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -86,7 +86,7 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { const [displaySize] = useState<{ width: string; height: string; - }>({ width: '75vw', height: '75vh' }); + }>({ width: '100%', height: '75vh' }); const classes = useStyles(); useEffect(() => { From 1278cc3f9136ff7d1bc1809a8eff6b65898d69a3 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 3 Aug 2021 17:44:07 -0400 Subject: [PATCH 82/90] style(front-end): move the VncDisplay component to the center of the server page in fullDisplay mode --- striker-ui/pages/server/index.tsx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/striker-ui/pages/server/index.tsx b/striker-ui/pages/server/index.tsx index a95ac5ea..3037129d 100644 --- a/striker-ui/pages/server/index.tsx +++ b/striker-ui/pages/server/index.tsx @@ -9,11 +9,8 @@ import Header from '../../components/Header'; const useStyles = makeStyles((theme) => ({ preview: { - width: '20%', + width: '25%', height: '100%', - [theme.breakpoints.down('lg')]: { - width: '25%', - }, [theme.breakpoints.down('md')]: { width: '100%', }, @@ -22,10 +19,7 @@ const useStyles = makeStyles((theme) => ({ display: 'flex', flexDirection: 'row', width: '100%', - justifyContent: 'space-between', - [theme.breakpoints.down('md')]: { - display: 'block', - }, + justifyContent: 'center', }, })); @@ -44,10 +38,8 @@ const Server = (): JSX.Element => {
{typeof uuid === 'string' && (previewMode ? ( - - - - + + ) : ( From c72dba3901b2a0774c3d68e2e465e384ffb9a35e Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 5 Aug 2021 11:09:25 -0400 Subject: [PATCH 83/90] refactor(front-end): use appropriate types for the novnc npm package --- striker-ui/types/novnc.node.d.ts | 1 - striker-ui/types/novnc__novnc.d.ts | 1 + striker-ui/types/react.vnc.dispaly.d.ts | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 striker-ui/types/novnc.node.d.ts create mode 100644 striker-ui/types/novnc__novnc.d.ts delete mode 100644 striker-ui/types/react.vnc.dispaly.d.ts diff --git a/striker-ui/types/novnc.node.d.ts b/striker-ui/types/novnc.node.d.ts deleted file mode 100644 index 2603228e..00000000 --- a/striker-ui/types/novnc.node.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'novnc-node'; diff --git a/striker-ui/types/novnc__novnc.d.ts b/striker-ui/types/novnc__novnc.d.ts new file mode 100644 index 00000000..2e140aff --- /dev/null +++ b/striker-ui/types/novnc__novnc.d.ts @@ -0,0 +1 @@ +declare module '@novnc/novnc/core/rfb'; diff --git a/striker-ui/types/react.vnc.dispaly.d.ts b/striker-ui/types/react.vnc.dispaly.d.ts deleted file mode 100644 index b9a669c6..00000000 --- a/striker-ui/types/react.vnc.dispaly.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'react-vnc-display'; From 8afc1feac5a7044195805bb7fd71bf3cf5f72881 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 5 Aug 2021 11:10:01 -0400 Subject: [PATCH 84/90] chore(front-end): install novnc npm package and types --- striker-ui/package-lock.json | 11 +++++++++++ striker-ui/package.json | 2 ++ 2 files changed, 13 insertions(+) diff --git a/striker-ui/package-lock.json b/striker-ui/package-lock.json index ba8b8d4a..46170c90 100644 --- a/striker-ui/package-lock.json +++ b/striker-ui/package-lock.json @@ -589,6 +589,11 @@ "fastq": "^1.6.0" } }, + "@novnc/novnc": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@novnc/novnc/-/novnc-1.2.0.tgz", + "integrity": "sha512-FaUckOedGhSbwQBXk/KGyxKt9ngskg4wPw6ghbHWXOUEmQscAZr3467lTU5DSfppwHJt5k+lQiHoeYUuY90l2Q==" + }, "@opentelemetry/api": { "version": "0.14.0", "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-0.14.0.tgz", @@ -641,6 +646,12 @@ "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", "dev": true }, + "@types/novnc-core": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@types/novnc-core/-/novnc-core-0.1.3.tgz", + "integrity": "sha512-4vlT5g305nSFjJjnjkoN3+FSgayrB/zV6j0qqUhlemI1Eqvbl4W1yGR4ym2MKHtFkhZkeWkUdPBSSJI8u/j0KQ==", + "dev": true + }, "@types/parse-json": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", diff --git a/striker-ui/package.json b/striker-ui/package.json index 5fb9c8e3..d321d3eb 100644 --- a/striker-ui/package.json +++ b/striker-ui/package.json @@ -15,6 +15,7 @@ "@material-ui/core": "^4.11.3", "@material-ui/icons": "^4.11.2", "@material-ui/styles": "^4.11.4", + "@novnc/novnc": "^1.2.0", "next": "^10.2.3", "pretty-bytes": "^5.6.0", "react": "17.0.2", @@ -26,6 +27,7 @@ "@commitlint/cli": "^12.1.4", "@commitlint/config-conventional": "^12.1.4", "@types/node": "^15.12.2", + "@types/novnc-core": "^0.1.3", "@types/react": "^17.0.11", "@types/styled-components": "^5.1.10", "@typescript-eslint/eslint-plugin": "^4.27.0", From 079d89fedcf8050a4d35cf20f576a4e6308c1d38 Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 5 Aug 2021 11:11:38 -0400 Subject: [PATCH 85/90] refactor(front-end): rename styles to avoid ambiguity --- striker-ui/pages/server/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/striker-ui/pages/server/index.tsx b/striker-ui/pages/server/index.tsx index 3037129d..6ef5a2c9 100644 --- a/striker-ui/pages/server/index.tsx +++ b/striker-ui/pages/server/index.tsx @@ -15,7 +15,7 @@ const useStyles = makeStyles((theme) => ({ width: '100%', }, }, - container: { + fullView: { display: 'flex', flexDirection: 'row', width: '100%', @@ -42,7 +42,7 @@ const Server = (): JSX.Element => { ) : ( - + Date: Thu, 5 Aug 2021 11:12:59 -0400 Subject: [PATCH 86/90] refactor(front-end): use novnc npm package instead of partially cloned novnc repo --- striker-ui/components/Display/FullSize.tsx | 191 +++++++++---------- striker-ui/components/Display/VncDisplay.tsx | 14 +- 2 files changed, 99 insertions(+), 106 deletions(-) diff --git a/striker-ui/components/Display/FullSize.tsx b/striker-ui/components/Display/FullSize.tsx index 7ad0c76c..39f92c4c 100644 --- a/striker-ui/components/Display/FullSize.tsx +++ b/striker-ui/components/Display/FullSize.tsx @@ -5,7 +5,7 @@ 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/core/rfb'; +import RFB from '@novnc/novnc/core/rfb'; import { Panel } from '../Panels'; import { BLACK, RED, TEXT } from '../../lib/consts/DEFAULT_THEME'; import keyCombinations from './keyCombinations'; @@ -18,6 +18,8 @@ const VncDisplay = dynamic(() => import('./VncDisplay'), { ssr: false }); const useStyles = makeStyles(() => ({ displayBox: { + width: '75vw', + height: '75vh', paddingTop: '1em', paddingBottom: 0, paddingLeft: 0, @@ -77,16 +79,12 @@ interface VncConnectionProps { const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { const [anchorEl, setAnchorEl] = useState(null); - const rfb = useRef(); + const rfb = useRef(); const hostname = useRef(undefined); const [vncConnection, setVncConnection] = useState< VncConnectionProps | undefined >(undefined); const [isError, setIsError] = useState(false); - const [displaySize] = useState<{ - width: string; - height: string; - }>({ width: '100%', height: '75vh' }); const classes = useStyles(); useEffect(() => { @@ -146,103 +144,94 @@ const FullSize = ({ setMode, uuid, serverName }: PreviewProps): JSX.Element => { - - - {vncConnection ? ( - <> - - - - { - handleClickClose(); - setMode(true); - }} - > - - - - - - - - setAnchorEl(null)} - > - {keyCombinations.map(({ keys, scans }) => { - return ( - handleSendKeys(scans)} - className={classes.keysItem} - key={keys} - > - {keys} - - ); - })} - - + {vncConnection ? ( + + + + + { + handleClickClose(); + setMode(true); + }} + > + + + + + + + + setAnchorEl(null)} + > + {keyCombinations.map(({ keys, scans }) => { + return ( + handleSendKeys(scans)} + className={classes.keysItem} + key={keys} + > + {keys} + + ); + })} + - - ) : ( - - {!isError ? ( - <> - - - - - ) : ( - <> - - - - - - )} - )} - + + ) : ( + + {!isError ? ( + <> + + + + + ) : ( + <> + + + + + + )} + + )} ); }; diff --git a/striker-ui/components/Display/VncDisplay.tsx b/striker-ui/components/Display/VncDisplay.tsx index 0157d19a..9afb222e 100644 --- a/striker-ui/components/Display/VncDisplay.tsx +++ b/striker-ui/components/Display/VncDisplay.tsx @@ -1,10 +1,9 @@ import { useEffect, useRef, MutableRefObject, memo } from 'react'; -import RFB from './noVNC/core/rfb'; +import RFB from '@novnc/novnc/core/rfb'; type Props = { - rfb: MutableRefObject; + rfb: MutableRefObject; url: string; - style: { width: string; height: string }; viewOnly: boolean; focusOnClick: boolean; clipViewport: boolean; @@ -23,7 +22,6 @@ const VncDisplay = (props: Props): JSX.Element => { const { rfb, url, - style, viewOnly, focusOnClick, clipViewport, @@ -86,7 +84,13 @@ const VncDisplay = (props: Props): JSX.Element => { if (rfb?.current) rfb.current.focus(); }; - return
; + return ( +
+ ); }; export default memo(VncDisplay); From f7ccfbf600bb7b20b67e77ed25c0e38705d0c5e4 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 11 Aug 2021 12:30:31 -0400 Subject: [PATCH 87/90] build(striker-ui): include server page in release --- striker-ui/.gitignore | 1 + 1 file changed, 1 insertion(+) 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 From 6d18e80b981f55c66a158c03aad104eec233a2c2 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 11 Aug 2021 12:44:21 -0400 Subject: [PATCH 88/90] build(striker-ui): change makefile to include server page --- striker-ui/Makefile.am | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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." From 8fd284ee86b7731654dcf74e52f708e5309ffa06 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 11 Aug 2021 14:17:41 -0400 Subject: [PATCH 89/90] fix(striker-ui): resolve createMuiTheme import error --- striker-ui/theme/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui/theme/index.ts b/striker-ui/theme/index.ts index b564e993..8d684c09 100644 --- a/striker-ui/theme/index.ts +++ b/striker-ui/theme/index.ts @@ -1,4 +1,4 @@ -import createMuiTheme, { Theme } from '@material-ui/core/styles/createMuiTheme'; +import { createMuiTheme, Theme } from '@material-ui/core/styles'; import { PANEL_BACKGROUND, TEXT, From fb2aefa0a85c7735098e313b90ac379fc5d01972 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 11 Aug 2021 15:20:46 -0400 Subject: [PATCH 90/90] chore: rebuild web UI --- .../3u8VlnDkIB4kvVnXXJdo9/_buildManifest.js | 1 - .../WegM9eT5kchrLUpg3bXOi/_buildManifest.js | 1 + .../_ssgManifest.js | 0 .../static/chunks/204.04ef0f70c11fb4c25e5c.js | 1 + .../static/chunks/254-408dda06d3f8a3c7f26d.js | 1 + .../static/chunks/340.717e8436d6d29df37ce9.js | 1 + .../static/chunks/642-0e4040fe0a744c110cab.js | 1 - .../static/chunks/642-ebd3de567e50b02b8111.js | 1 + .../static/chunks/643-8d1f5368d89a6ae0ce2a.js | 1 + ...a.js => framework-c93ed74a065331c4bd75.js} | 2 +- .../chunks/pages/_app-88ba5c92fa3ac1d52da7.js | 1 - .../chunks/pages/_app-f07dad954b186d55bf72.js | 1 + .../pages/index-c61930195d75a6c617a7.js | 1 + .../pages/index-ca8a2930d2c5ccf8a7f5.js | 1 - .../pages/server-70802da45b05d679f5bd.js | 1 + .../chunks/webpack-189c53927ffd3caf09c3.js | 1 - .../chunks/webpack-279cb3a826ca5d40fce3.js | 1 + striker-ui/out/index.html | 34 +- striker-ui/out/server.html | 516 ++++++++++++++++++ 19 files changed, 547 insertions(+), 20 deletions(-) delete mode 100644 striker-ui/out/_next/static/3u8VlnDkIB4kvVnXXJdo9/_buildManifest.js create mode 100644 striker-ui/out/_next/static/WegM9eT5kchrLUpg3bXOi/_buildManifest.js rename striker-ui/out/_next/static/{3u8VlnDkIB4kvVnXXJdo9 => WegM9eT5kchrLUpg3bXOi}/_ssgManifest.js (100%) create mode 100644 striker-ui/out/_next/static/chunks/204.04ef0f70c11fb4c25e5c.js create mode 100644 striker-ui/out/_next/static/chunks/254-408dda06d3f8a3c7f26d.js create mode 100644 striker-ui/out/_next/static/chunks/340.717e8436d6d29df37ce9.js delete mode 100644 striker-ui/out/_next/static/chunks/642-0e4040fe0a744c110cab.js create mode 100644 striker-ui/out/_next/static/chunks/642-ebd3de567e50b02b8111.js create mode 100644 striker-ui/out/_next/static/chunks/643-8d1f5368d89a6ae0ce2a.js rename striker-ui/out/_next/static/chunks/{framework-2191d16384373197bc0a.js => framework-c93ed74a065331c4bd75.js} (89%) delete mode 100644 striker-ui/out/_next/static/chunks/pages/_app-88ba5c92fa3ac1d52da7.js create mode 100644 striker-ui/out/_next/static/chunks/pages/_app-f07dad954b186d55bf72.js create mode 100644 striker-ui/out/_next/static/chunks/pages/index-c61930195d75a6c617a7.js delete mode 100644 striker-ui/out/_next/static/chunks/pages/index-ca8a2930d2c5ccf8a7f5.js create mode 100644 striker-ui/out/_next/static/chunks/pages/server-70802da45b05d679f5bd.js delete mode 100644 striker-ui/out/_next/static/chunks/webpack-189c53927ffd3caf09c3.js create mode 100644 striker-ui/out/_next/static/chunks/webpack-279cb3a826ca5d40fce3.js create mode 100644 striker-ui/out/server.html 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;n