@clearstory/drywall-react 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-Bjv72dwO.js → Accordion-DCOykts4.js} +8 -7
- package/dist/{AccordionActions-OpMdCn2Z.js → AccordionActions-BAiH7fCc.js} +10 -9
- package/dist/{AccordionDetails-CgLf6g7z.js → AccordionDetails-m2yw4JWL.js} +12 -11
- package/dist/{AccordionSummary-C2WduOvw.js → AccordionSummary-Bcz3kHL3.js} +11 -10
- package/dist/{AdapterDayjs-BOLWylMD.js → AdapterDayjs-BrkWLsMH.js} +3 -3
- package/dist/{Alert-4WYM0NA5.js → Alert-BAwPio4K.js} +15 -14
- package/dist/{AlertTitle-BJh7YkkD.js → AlertTitle-DmUXFJub.js} +13 -12
- package/dist/{ArrowDropDown-1q6M8Obd.js → ArrowDropDown-CHZToUze.js} +4 -4
- package/dist/{Autocomplete-C9jR7Gz3.js → Autocomplete-BnNe-Ocu.js} +20 -19
- package/dist/{Avatar-BW1coVo5.js → Avatar-C331iVZj.js} +14 -13
- package/dist/{AvatarGroup-Cymumkbs.js → AvatarGroup-CguRmDSR.js} +15 -14
- package/dist/{Backdrop-D9hYyloM.js → Backdrop-DLtFFTHy.js} +13 -12
- package/dist/{Badge-CKX_N8SZ.js → Badge-CVhZHphu.js} +13 -12
- package/dist/{Box-O7SvtIw8.js → Box-CKDKtm7F.js} +19 -18
- package/dist/{Breadcrumbs-BCuC1VRi.js → Breadcrumbs-ze8mc2Zg.js} +9 -8
- package/dist/{Button-D5FpepiD.js → Button-B4158Ttr.js} +15 -14
- package/dist/{ButtonBase-t_kdVaqI.js → ButtonBase-COzHF9dg.js} +14 -13
- package/dist/{ButtonGroup-DejD8J4b.js → ButtonGroup-D-4yW6k2.js} +11 -10
- package/dist/{Card-C4KBUbxB.js → Card-Cqms7NUL.js} +13 -12
- package/dist/{CardActionArea-CJoEgqCm.js → CardActionArea-B2Ix5eDP.js} +19 -18
- package/dist/{CardActions-pYmlOEiI.js → CardActions-CMKGIQ5P.js} +8 -7
- package/dist/{CardContent-DeEDpoJu.js → CardContent-BEE7_vOd.js} +12 -11
- package/dist/{CardHeader-kp6aSapw.js → CardHeader-CeJ4xLV1.js} +13 -12
- package/dist/{CardMedia-CCgHX4bc.js → CardMedia-CjIGijkw.js} +10 -9
- package/dist/{Checkbox-BlVkkvFG.js → Checkbox-BlCrwG_a.js} +14 -13
- package/dist/{Chip-Dald_f2Y.js → Chip-BzXGbbX1.js} +14 -13
- package/dist/{CircularProgress-CjDaz1a_.js → CircularProgress-CE-gUslP.js} +14 -13
- package/dist/{Clear-Cp_Sfbwo.js → Clear-ABzw_mBN.js} +1 -1
- package/dist/ClickAwayListener-BhNP8Zmy.js +104 -0
- package/dist/{Close-CXMaN7wz.js → Close-sCOhjzLZ.js} +1 -1
- package/dist/{Collapse-Dled_24V.js → Collapse-54fTKYrR.js} +13 -12
- package/dist/{CssBaseline-B8z8Y0X2.js → CssBaseline-dhNsGT6h.js} +3 -3
- package/dist/{Datepicker-CqhyyHOO.js → Datepicker-DYDSgJ7Y.js} +90 -89
- package/dist/{DefaultPropsProvider-B3clbJFR.js → DefaultPropsProvider-972kdsvD.js} +1 -1
- package/dist/{DefaultPropsProvider-PBxTVeaD.js → DefaultPropsProvider-Hks9kyHW.js} +2 -2
- package/dist/{Dialog-CgBDoc1Q.js → Dialog-DVIwe9ZI.js} +12 -11
- package/dist/{DialogActions-B9aTR1RT.js → DialogActions-CPDvDLrR.js} +19 -18
- package/dist/{DialogContent-BQeFmie3.js → DialogContent-CKtOueUR.js} +13 -12
- package/dist/{DialogContentText-DTcw2F2t.js → DialogContentText-4wkWrNzG.js} +13 -12
- package/dist/{DialogTitle-BKSAT2jz.js → DialogTitle-CKBNYMcR.js} +5 -5
- package/dist/{Divider-CN1iZXpV.js → Divider-DANmFTyq.js} +5 -5
- package/dist/{Drawer-u9qup5a9.js → Drawer-SY5DxFp0.js} +44 -43
- package/dist/{FormControl-D-rAmw3r.js → FormControl-CuHXXTcL.js} +21 -20
- package/dist/{FormControlLabel-Dc1NyaPl.js → FormControlLabel-DfKMLiFM.js} +20 -19
- package/dist/{FormGroup-C6hX5Rxp.js → FormGroup-CclOJ_ni.js} +10 -9
- package/dist/{FormHelperText-BWHhdCfT.js → FormHelperText-wucHHOG8.js} +14 -13
- package/dist/{FormLabel-DNn2gpAc.js → FormLabel-CgNd8XLN.js} +21 -20
- package/dist/{GlobalStyles-ChwRSWsx.js → GlobalStyles-BEfXiUlZ.js} +3 -3
- package/dist/{Grow-DR-owdbZ.js → Grow-C0dChpKD.js} +4 -4
- package/dist/{IconButton-CMvCM_Lp.js → IconButton-rSBl8wjc.js} +20 -19
- package/dist/{Info-Nc5BG3Yc.js → Info-DtWHV9kz.js} +1 -1
- package/dist/{InputAdornment-DbMMP6fx.js → InputAdornment-BpuZG6da.js} +35 -34
- package/dist/{InputBase-B6OIIVG0.js → InputBase-CfVedJZK.js} +20 -19
- package/dist/{LinearProgress-BhzXKKHq.js → LinearProgress-C7E3wvv7.js} +22 -21
- package/dist/{Link-BMYQsA2J.js → Link-DuB1TakW.js} +21 -20
- package/dist/{List-BQ82y_D2.js → List-R1y2rt2I.js} +12 -11
- package/dist/{ListItem-BTJrs0xk.js → ListItem-YdhXS7jh.js} +10 -9
- package/dist/{ListItemAvatar-DMY5yneH.js → ListItemAvatar-Zov7uhBa.js} +16 -15
- package/dist/{ListItemButton-DuUhNIFe.js → ListItemButton-Dd8ymeh-.js} +6 -6
- package/dist/{ListItemIcon-Cwg5u5_e.js → ListItemIcon-C48tLADF.js} +5 -5
- package/dist/{ListItemText-BRX2EYOb.js → ListItemText-C4IUFTAh.js} +5 -5
- package/dist/{ListSubheader-CHpW48wG.js → ListSubheader-B2dYS-AB.js} +15 -14
- package/dist/Menu-DSTbuLGZ.js +289 -0
- package/dist/{MenuItem-B2uAesJs.js → MenuItem-B2Y2sEBv.js} +15 -14
- package/dist/{MenuList-G9HnfsX2.js → MenuList-DHWy1THR.js} +3 -2
- package/dist/{Modal-DLT528-9.js → Modal-quA3LOv8.js} +15 -14
- package/dist/{Paper-DeGJAQE9.js → Paper-DpGDlTnE.js} +17 -16
- package/dist/Popover-C4UMEZFM.js +485 -0
- package/dist/{Popper-706X-ixW.js → Popper-CEmc3hgj.js} +10 -8
- package/dist/{Portal-CkohOYPG.js → Portal-BD1qgEF2.js} +1 -1
- package/dist/{Radio-JRcvAFCw.js → Radio-CWGlqtWa.js} +38 -37
- package/dist/{RadioGroup-C0A6busY.js → RadioGroup-BA0CQX02.js} +17 -16
- package/dist/{Select-tNyTsCta.js → Select-G7DzAygS.js} +17 -16
- package/dist/{SelectControl-Bz5THtuf.js → SelectControl-DGAnDeHt.js} +9 -9
- package/dist/{Skeleton-B8pM1f3a.js → Skeleton-D9qDjbaT.js} +23 -22
- package/dist/Snackbar-B4ylEaa1.js +576 -0
- package/dist/{Step-CwOFbDz2.js → Step-C3KsW_sV.js} +13 -12
- package/dist/{StepButton-DSXTT103.js → StepButton-Cm9DhOQx.js} +14 -13
- package/dist/{StepConnector-BMHzfsfk.js → StepConnector-DK4MJqzZ.js} +15 -14
- package/dist/{StepContent-w8xvdrAQ.js → StepContent-Dl6UHgdu.js} +21 -20
- package/dist/{StepIcon-Cukq5aE2.js → StepIcon-ElSTT-7B.js} +26 -25
- package/dist/{StepLabel-Cy2krTW-.js → StepLabel-B_4bjXGA.js} +12 -11
- package/dist/{Stepper-Bm6IDco_.js → Stepper-CMQnaky0.js} +11 -10
- package/dist/{SvgIcon-ChnoHwqF.js → SvgIcon-CAF-TTUy.js} +24 -23
- package/dist/{Switch-Cvd5G-7l.js → Switch-C72ijhRh.js} +15 -14
- package/dist/{SwitchBase-CufBsptm.js → SwitchBase-BxwR-ITa.js} +11 -10
- package/dist/{Tab-zSeGVRiK.js → Tab-DpKBtsUw.js} +10 -9
- package/dist/{Tabs-Cksd8YLg.js → Tabs-SKtYSjnS.js} +11 -10
- package/dist/{ThemeProviderWithVars-bg3WT8UX.js → ThemeProviderWithVars-Cd9Vwf-U.js} +10 -9
- package/dist/{Toolbar-UdVSl6Kk.js → Toolbar-Dmu2ceP6.js} +10 -9
- package/dist/{Tooltip-CsdchI1h.js → Tooltip-BJmTHiZe.js} +14 -13
- package/dist/{Typography-DPs_xiDb.js → Typography-DnNWmNen.js} +16 -15
- package/dist/{WarningAmberOutlined-YV5tlDPZ.js → WarningAmberOutlined-Bip82sqV.js} +1 -1
- package/dist/{ZoomOut-CoqaIFxD.js → ZoomOut-BsqVAKgf.js} +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionActions/index.js +1 -1
- package/dist/components/AccordionDetails/index.js +1 -1
- package/dist/components/AccordionSummary/index.js +1 -1
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/AlertTitle/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/AutocompleteControl/AutocompleteControl.js +9 -9
- package/dist/components/AutocompleteControl/index.js +1 -1
- package/dist/components/Avatar/index.js +1 -1
- package/dist/components/AvatarGroup/index.js +1 -1
- package/dist/components/Backdrop/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Box/index.js +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonBase/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/CardActionArea/index.js +1 -1
- package/dist/components/CardActions/index.js +1 -1
- package/dist/components/CardContent/index.js +1 -1
- package/dist/components/CardHeader/index.js +1 -1
- package/dist/components/CardMedia/index.js +1 -1
- package/dist/components/Checkbox/index.js +1 -1
- package/dist/components/Chip/index.js +1 -1
- package/dist/components/CircularProgress/index.js +1 -1
- package/dist/components/ClickAwayListener/index.d.ts +2 -0
- package/dist/components/ClickAwayListener/index.js +4 -0
- package/dist/components/Container/index.js +1 -1
- package/dist/components/CssBaseline/index.js +1 -1
- package/dist/components/Datepicker/Datepicker.js +3 -3
- package/dist/components/Datepicker/index.js +2 -2
- package/dist/components/DatepickerControl/DatepickerControl.js +9 -9
- package/dist/components/DatepickerControl/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DialogActions/index.js +1 -1
- package/dist/components/DialogContent/index.js +1 -1
- package/dist/components/DialogContentText/index.js +1 -1
- package/dist/components/DialogTitle/index.js +2 -2
- package/dist/components/Divider/index.js +2 -2
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/FormControl/index.js +1 -1
- package/dist/components/FormControlLabel/index.js +1 -1
- package/dist/components/FormGroup/index.js +1 -1
- package/dist/components/FormHelperText/index.js +1 -1
- package/dist/components/FormLabel/index.js +1 -1
- package/dist/components/FormSublabel/FormSublabel.js +5 -5
- package/dist/components/FormSublabel/index.js +1 -1
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/InputAdornment/index.js +1 -1
- package/dist/components/InputControl/InputControl.js +9 -9
- package/dist/components/InputControl/index.js +1 -1
- package/dist/components/LinearProgress/index.js +1 -1
- package/dist/components/Link/index.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/ListItem/index.js +1 -1
- package/dist/components/ListItemAvatar/index.js +1 -1
- package/dist/components/ListItemButton/index.js +2 -2
- package/dist/components/ListItemIcon/index.js +2 -2
- package/dist/components/ListItemText/index.js +2 -2
- package/dist/components/ListSubheader/index.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/MenuItem/index.js +1 -1
- package/dist/components/MenuList/index.js +1 -1
- package/dist/components/Paper/index.js +1 -1
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +10 -0
- package/dist/components/Popper/index.d.ts +2 -0
- package/dist/components/Popper/index.js +5 -0
- package/dist/components/Radio/index.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/SelectControl/SelectControl.js +9 -9
- package/dist/components/SelectControl/index.js +1 -1
- package/dist/components/Skeleton/index.js +1 -1
- package/dist/components/Snackbar/index.js +1 -1
- package/dist/components/Stack/index.js +1 -1
- package/dist/components/Step/index.js +1 -1
- package/dist/components/StepButton/index.js +1 -1
- package/dist/components/StepConnector/index.js +1 -1
- package/dist/components/StepContent/index.js +1 -1
- package/dist/components/StepIcon/index.js +1 -1
- package/dist/components/StepLabel/index.js +1 -1
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/SvgIcon/index.js +1 -1
- package/dist/components/Switch/index.js +1 -1
- package/dist/components/Tab/index.js +1 -1
- package/dist/components/Tabs/index.js +1 -1
- package/dist/components/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/components/ToastContainer/ToastContainer.js +1 -1
- package/dist/components/ToastContainer/useToast.js +4 -4
- package/dist/components/Toolbar/index.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/{containerClasses-CeRyE1e2.js → containerClasses-BzFNrSIR.js} +20 -19
- package/dist/{createSvgIcon-D1SROVbP.js → createSvgIcon-DHWmMfd-.js} +1 -1
- package/dist/createTheme-BnGUhbht.js +2328 -0
- package/dist/defaultTheme-B960IsQ-.js +5 -0
- package/dist/{dialogTitleClasses-L_U38KY4.js → dialogTitleClasses-Y20vamk3.js} +2 -2
- package/dist/{dividerClasses-3YRwzxAH.js → dividerClasses-C13nqEzJ.js} +2 -2
- package/dist/{elementAcceptingRef-DYOMXWeA.js → elementAcceptingRef-C0N4y82j.js} +1 -1
- package/dist/{elementTypeAcceptingRef-CnEbk7Q_.js → elementTypeAcceptingRef-B2d5_Vhf.js} +1 -1
- package/dist/{emotion-react.browser.esm-CNRN7WoC.js → emotion-react.browser.esm-VKtuqypl.js} +1 -1
- package/dist/{extendSxProp-BJVEtb89.js → extendSxProp-Ch2FDJvf.js} +1 -1
- package/dist/{generateUtilityClasses-CwzvHfCm.js → generateUtilityClasses-njw3KdKN.js} +1 -1
- package/dist/{getThemeProps-DT8XKnCO.js → getThemeProps-EVOScHVn.js} +1 -1
- package/dist/icons/ClearstoryIcon.js +1 -1
- package/dist/icons/InternalOnlyIcon.js +1 -1
- package/dist/icons/MoneyBucketIcon.js +1 -1
- package/dist/icons/MoreCircleOutlineIcon.js +1 -1
- package/dist/icons/index.js +4 -4
- package/dist/index-CyAhC1RZ.js +672 -0
- package/dist/{index-CcV0p0bw.js → index-D2IRntbh.js} +1 -1
- package/dist/{index-RvUJzkTI.js → index-De_dzPp4.js} +4 -4
- package/dist/{index-D7UP9u8i.js → index-JqwbD7Nb.js} +2 -2
- package/dist/{listItemButtonClasses-DY7lE6xx.js → listItemButtonClasses-B_nV0YiI.js} +2 -2
- package/dist/{listItemIconClasses-DZarNdF_.js → listItemIconClasses-CMPPJSFR.js} +2 -2
- package/dist/{listItemTextClasses-CMDvgiXw.js → listItemTextClasses-BUDn-rsR.js} +2 -2
- package/dist/main.d.ts +3 -0
- package/dist/main.js +223 -210
- package/dist/{memoTheme-DqlI3JW3.js → memoTheme-R-LnLD8I.js} +1 -1
- package/dist/{refType-CCckNw0a.js → refType-CedFpkve.js} +1 -1
- package/dist/{stackClasses-DqA89FGy.js → stackClasses-BGzeCt42.js} +22 -21
- package/dist/styled-DKUIcd6R.js +5 -0
- package/dist/{styled-bJ6DXD3Z.js → styled-fvngWWLy.js} +2 -2
- package/dist/theme/colorSchemes.js +1 -1
- package/dist/theme/index.js +25 -24
- package/dist/theme/internal.js +1 -1
- package/dist/{useTheme-BB-P11R3.js → useTheme-CbsaMxqD.js} +2 -2
- package/dist/{useTheme-DTBpB7d-.js → useTheme-Cz5y14_g.js} +1 -1
- package/dist/{useThemeProps-Dll6b3d8.js → useThemeProps-FvXli9RO.js} +2 -2
- package/dist/{utils-OCLAA0Ck.js → utils-CAuCuXQr.js} +1 -1
- package/package.json +1 -1
- package/dist/Menu-CA0hNHG8.js +0 -752
- package/dist/Snackbar-6S8FLk-7.js +0 -672
- package/dist/createTheme-D79OrE1w.js +0 -2997
- package/dist/defaultTheme-BmQF15Jm.js +0 -5
- package/dist/styled-w_4QIfiM.js +0 -5
|
@@ -1,2997 +0,0 @@
|
|
|
1
|
-
import { r as be, o as $e } from "./orange-DJwLWzIS.js";
|
|
2
|
-
import * as Yr from "react";
|
|
3
|
-
const Ae = {
|
|
4
|
-
black: "#000",
|
|
5
|
-
white: "#fff"
|
|
6
|
-
}, ve = {
|
|
7
|
-
50: "#f3e5f5",
|
|
8
|
-
200: "#ce93d8",
|
|
9
|
-
300: "#ba68c8",
|
|
10
|
-
400: "#ab47bc",
|
|
11
|
-
500: "#9c27b0",
|
|
12
|
-
700: "#7b1fa2"
|
|
13
|
-
}, Se = {
|
|
14
|
-
50: "#e3f2fd",
|
|
15
|
-
200: "#90caf9",
|
|
16
|
-
400: "#42a5f5",
|
|
17
|
-
700: "#1976d2",
|
|
18
|
-
800: "#1565c0"
|
|
19
|
-
}, Ee = {
|
|
20
|
-
300: "#4fc3f7",
|
|
21
|
-
400: "#29b6f6",
|
|
22
|
-
500: "#03a9f4",
|
|
23
|
-
700: "#0288d1",
|
|
24
|
-
900: "#01579b"
|
|
25
|
-
}, Ce = {
|
|
26
|
-
300: "#81c784",
|
|
27
|
-
400: "#66bb6a",
|
|
28
|
-
500: "#4caf50",
|
|
29
|
-
700: "#388e3c",
|
|
30
|
-
800: "#2e7d32",
|
|
31
|
-
900: "#1b5e20"
|
|
32
|
-
}, at = {
|
|
33
|
-
50: "#fafafa",
|
|
34
|
-
100: "#f5f5f5",
|
|
35
|
-
200: "#eeeeee",
|
|
36
|
-
300: "#e0e0e0",
|
|
37
|
-
400: "#bdbdbd",
|
|
38
|
-
500: "#9e9e9e",
|
|
39
|
-
600: "#757575",
|
|
40
|
-
700: "#616161",
|
|
41
|
-
800: "#424242",
|
|
42
|
-
900: "#212121",
|
|
43
|
-
A100: "#f5f5f5",
|
|
44
|
-
A200: "#eeeeee",
|
|
45
|
-
A400: "#bdbdbd",
|
|
46
|
-
A700: "#616161"
|
|
47
|
-
};
|
|
48
|
-
function me(e, ...r) {
|
|
49
|
-
const t = new URL(`https://mui.com/production-error/?code=${e}`);
|
|
50
|
-
return r.forEach((n) => t.searchParams.append("args[]", n)), `Minified MUI error #${e}; visit ${t} for the full message.`;
|
|
51
|
-
}
|
|
52
|
-
function st(e) {
|
|
53
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
54
|
-
}
|
|
55
|
-
var Ie = { exports: {} }, F = {};
|
|
56
|
-
/** @license React v16.13.1
|
|
57
|
-
* react-is.production.min.js
|
|
58
|
-
*
|
|
59
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the MIT license found in the
|
|
62
|
-
* LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/
|
|
64
|
-
var yr;
|
|
65
|
-
function ct() {
|
|
66
|
-
if (yr) return F;
|
|
67
|
-
yr = 1;
|
|
68
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
69
|
-
function D(y) {
|
|
70
|
-
if (typeof y == "object" && y !== null) {
|
|
71
|
-
var x = y.$$typeof;
|
|
72
|
-
switch (x) {
|
|
73
|
-
case r:
|
|
74
|
-
switch (y = y.type, y) {
|
|
75
|
-
case f:
|
|
76
|
-
case d:
|
|
77
|
-
case n:
|
|
78
|
-
case a:
|
|
79
|
-
case o:
|
|
80
|
-
case p:
|
|
81
|
-
return y;
|
|
82
|
-
default:
|
|
83
|
-
switch (y = y && y.$$typeof, y) {
|
|
84
|
-
case u:
|
|
85
|
-
case h:
|
|
86
|
-
case b:
|
|
87
|
-
case v:
|
|
88
|
-
case c:
|
|
89
|
-
return y;
|
|
90
|
-
default:
|
|
91
|
-
return x;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
case t:
|
|
95
|
-
return x;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function $(y) {
|
|
100
|
-
return D(y) === d;
|
|
101
|
-
}
|
|
102
|
-
return F.AsyncMode = f, F.ConcurrentMode = d, F.ContextConsumer = u, F.ContextProvider = c, F.Element = r, F.ForwardRef = h, F.Fragment = n, F.Lazy = b, F.Memo = v, F.Portal = t, F.Profiler = a, F.StrictMode = o, F.Suspense = p, F.isAsyncMode = function(y) {
|
|
103
|
-
return $(y) || D(y) === f;
|
|
104
|
-
}, F.isConcurrentMode = $, F.isContextConsumer = function(y) {
|
|
105
|
-
return D(y) === u;
|
|
106
|
-
}, F.isContextProvider = function(y) {
|
|
107
|
-
return D(y) === c;
|
|
108
|
-
}, F.isElement = function(y) {
|
|
109
|
-
return typeof y == "object" && y !== null && y.$$typeof === r;
|
|
110
|
-
}, F.isForwardRef = function(y) {
|
|
111
|
-
return D(y) === h;
|
|
112
|
-
}, F.isFragment = function(y) {
|
|
113
|
-
return D(y) === n;
|
|
114
|
-
}, F.isLazy = function(y) {
|
|
115
|
-
return D(y) === b;
|
|
116
|
-
}, F.isMemo = function(y) {
|
|
117
|
-
return D(y) === v;
|
|
118
|
-
}, F.isPortal = function(y) {
|
|
119
|
-
return D(y) === t;
|
|
120
|
-
}, F.isProfiler = function(y) {
|
|
121
|
-
return D(y) === a;
|
|
122
|
-
}, F.isStrictMode = function(y) {
|
|
123
|
-
return D(y) === o;
|
|
124
|
-
}, F.isSuspense = function(y) {
|
|
125
|
-
return D(y) === p;
|
|
126
|
-
}, F.isValidElementType = function(y) {
|
|
127
|
-
return typeof y == "string" || typeof y == "function" || y === n || y === d || y === a || y === o || y === p || y === m || typeof y == "object" && y !== null && (y.$$typeof === b || y.$$typeof === v || y.$$typeof === c || y.$$typeof === u || y.$$typeof === h || y.$$typeof === E || y.$$typeof === _ || y.$$typeof === B || y.$$typeof === s);
|
|
128
|
-
}, F.typeOf = D, F;
|
|
129
|
-
}
|
|
130
|
-
var L = {};
|
|
131
|
-
/** @license React v16.13.1
|
|
132
|
-
* react-is.development.js
|
|
133
|
-
*
|
|
134
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
135
|
-
*
|
|
136
|
-
* This source code is licensed under the MIT license found in the
|
|
137
|
-
* LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/
|
|
139
|
-
var br;
|
|
140
|
-
function ut() {
|
|
141
|
-
return br || (br = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
142
|
-
var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, h = e ? Symbol.for("react.forward_ref") : 60112, p = e ? Symbol.for("react.suspense") : 60113, m = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, s = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, B = e ? Symbol.for("react.scope") : 60119;
|
|
143
|
-
function D(C) {
|
|
144
|
-
return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
145
|
-
C === n || C === d || C === a || C === o || C === p || C === m || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === v || C.$$typeof === c || C.$$typeof === u || C.$$typeof === h || C.$$typeof === E || C.$$typeof === _ || C.$$typeof === B || C.$$typeof === s);
|
|
146
|
-
}
|
|
147
|
-
function $(C) {
|
|
148
|
-
if (typeof C == "object" && C !== null) {
|
|
149
|
-
var ce = C.$$typeof;
|
|
150
|
-
switch (ce) {
|
|
151
|
-
case r:
|
|
152
|
-
var ke = C.type;
|
|
153
|
-
switch (ke) {
|
|
154
|
-
case f:
|
|
155
|
-
case d:
|
|
156
|
-
case n:
|
|
157
|
-
case a:
|
|
158
|
-
case o:
|
|
159
|
-
case p:
|
|
160
|
-
return ke;
|
|
161
|
-
default:
|
|
162
|
-
var hr = ke && ke.$$typeof;
|
|
163
|
-
switch (hr) {
|
|
164
|
-
case u:
|
|
165
|
-
case h:
|
|
166
|
-
case b:
|
|
167
|
-
case v:
|
|
168
|
-
case c:
|
|
169
|
-
return hr;
|
|
170
|
-
default:
|
|
171
|
-
return ce;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
case t:
|
|
175
|
-
return ce;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
var y = f, x = d, ae = u, le = c, J = r, Z = h, X = n, i = b, O = v, S = t, j = a, W = o, ee = p, se = !1;
|
|
180
|
-
function Je(C) {
|
|
181
|
-
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(C) || $(C) === f;
|
|
182
|
-
}
|
|
183
|
-
function g(C) {
|
|
184
|
-
return $(C) === d;
|
|
185
|
-
}
|
|
186
|
-
function T(C) {
|
|
187
|
-
return $(C) === u;
|
|
188
|
-
}
|
|
189
|
-
function k(C) {
|
|
190
|
-
return $(C) === c;
|
|
191
|
-
}
|
|
192
|
-
function R(C) {
|
|
193
|
-
return typeof C == "object" && C !== null && C.$$typeof === r;
|
|
194
|
-
}
|
|
195
|
-
function w(C) {
|
|
196
|
-
return $(C) === h;
|
|
197
|
-
}
|
|
198
|
-
function I(C) {
|
|
199
|
-
return $(C) === n;
|
|
200
|
-
}
|
|
201
|
-
function A(C) {
|
|
202
|
-
return $(C) === b;
|
|
203
|
-
}
|
|
204
|
-
function P(C) {
|
|
205
|
-
return $(C) === v;
|
|
206
|
-
}
|
|
207
|
-
function N(C) {
|
|
208
|
-
return $(C) === t;
|
|
209
|
-
}
|
|
210
|
-
function V(C) {
|
|
211
|
-
return $(C) === a;
|
|
212
|
-
}
|
|
213
|
-
function M(C) {
|
|
214
|
-
return $(C) === o;
|
|
215
|
-
}
|
|
216
|
-
function re(C) {
|
|
217
|
-
return $(C) === p;
|
|
218
|
-
}
|
|
219
|
-
L.AsyncMode = y, L.ConcurrentMode = x, L.ContextConsumer = ae, L.ContextProvider = le, L.Element = J, L.ForwardRef = Z, L.Fragment = X, L.Lazy = i, L.Memo = O, L.Portal = S, L.Profiler = j, L.StrictMode = W, L.Suspense = ee, L.isAsyncMode = Je, L.isConcurrentMode = g, L.isContextConsumer = T, L.isContextProvider = k, L.isElement = R, L.isForwardRef = w, L.isFragment = I, L.isLazy = A, L.isMemo = P, L.isPortal = N, L.isProfiler = V, L.isStrictMode = M, L.isSuspense = re, L.isValidElementType = D, L.typeOf = $;
|
|
220
|
-
})()), L;
|
|
221
|
-
}
|
|
222
|
-
var vr;
|
|
223
|
-
function Ur() {
|
|
224
|
-
return vr || (vr = 1, process.env.NODE_ENV === "production" ? Ie.exports = ct() : Ie.exports = ut()), Ie.exports;
|
|
225
|
-
}
|
|
226
|
-
var Ne = { exports: {} };
|
|
227
|
-
/*
|
|
228
|
-
object-assign
|
|
229
|
-
(c) Sindre Sorhus
|
|
230
|
-
@license MIT
|
|
231
|
-
*/
|
|
232
|
-
var Ze, Sr;
|
|
233
|
-
function lt() {
|
|
234
|
-
if (Sr) return Ze;
|
|
235
|
-
Sr = 1;
|
|
236
|
-
var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
237
|
-
function n(a) {
|
|
238
|
-
if (a == null)
|
|
239
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
240
|
-
return Object(a);
|
|
241
|
-
}
|
|
242
|
-
function o() {
|
|
243
|
-
try {
|
|
244
|
-
if (!Object.assign)
|
|
245
|
-
return !1;
|
|
246
|
-
var a = new String("abc");
|
|
247
|
-
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
248
|
-
return !1;
|
|
249
|
-
for (var c = {}, u = 0; u < 10; u++)
|
|
250
|
-
c["_" + String.fromCharCode(u)] = u;
|
|
251
|
-
var f = Object.getOwnPropertyNames(c).map(function(h) {
|
|
252
|
-
return c[h];
|
|
253
|
-
});
|
|
254
|
-
if (f.join("") !== "0123456789")
|
|
255
|
-
return !1;
|
|
256
|
-
var d = {};
|
|
257
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(h) {
|
|
258
|
-
d[h] = h;
|
|
259
|
-
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
|
|
260
|
-
} catch {
|
|
261
|
-
return !1;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
return Ze = o() ? Object.assign : function(a, c) {
|
|
265
|
-
for (var u, f = n(a), d, h = 1; h < arguments.length; h++) {
|
|
266
|
-
u = Object(arguments[h]);
|
|
267
|
-
for (var p in u)
|
|
268
|
-
r.call(u, p) && (f[p] = u[p]);
|
|
269
|
-
if (e) {
|
|
270
|
-
d = e(u);
|
|
271
|
-
for (var m = 0; m < d.length; m++)
|
|
272
|
-
t.call(u, d[m]) && (f[d[m]] = u[d[m]]);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
return f;
|
|
276
|
-
}, Ze;
|
|
277
|
-
}
|
|
278
|
-
var er, Er;
|
|
279
|
-
function fr() {
|
|
280
|
-
if (Er) return er;
|
|
281
|
-
Er = 1;
|
|
282
|
-
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
283
|
-
return er = e, er;
|
|
284
|
-
}
|
|
285
|
-
var rr, Cr;
|
|
286
|
-
function zr() {
|
|
287
|
-
return Cr || (Cr = 1, rr = Function.call.bind(Object.prototype.hasOwnProperty)), rr;
|
|
288
|
-
}
|
|
289
|
-
var tr, Tr;
|
|
290
|
-
function ft() {
|
|
291
|
-
if (Tr) return tr;
|
|
292
|
-
Tr = 1;
|
|
293
|
-
var e = function() {
|
|
294
|
-
};
|
|
295
|
-
if (process.env.NODE_ENV !== "production") {
|
|
296
|
-
var r = /* @__PURE__ */ fr(), t = {}, n = /* @__PURE__ */ zr();
|
|
297
|
-
e = function(a) {
|
|
298
|
-
var c = "Warning: " + a;
|
|
299
|
-
typeof console < "u" && console.error(c);
|
|
300
|
-
try {
|
|
301
|
-
throw new Error(c);
|
|
302
|
-
} catch {
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
function o(a, c, u, f, d) {
|
|
307
|
-
if (process.env.NODE_ENV !== "production") {
|
|
308
|
-
for (var h in a)
|
|
309
|
-
if (n(a, h)) {
|
|
310
|
-
var p;
|
|
311
|
-
try {
|
|
312
|
-
if (typeof a[h] != "function") {
|
|
313
|
-
var m = Error(
|
|
314
|
-
(f || "React class") + ": " + u + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[h] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
315
|
-
);
|
|
316
|
-
throw m.name = "Invariant Violation", m;
|
|
317
|
-
}
|
|
318
|
-
p = a[h](c, h, f, u, null, r);
|
|
319
|
-
} catch (b) {
|
|
320
|
-
p = b;
|
|
321
|
-
}
|
|
322
|
-
if (p && !(p instanceof Error) && e(
|
|
323
|
-
(f || "React class") + ": type specification of " + u + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof p + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
324
|
-
), p instanceof Error && !(p.message in t)) {
|
|
325
|
-
t[p.message] = !0;
|
|
326
|
-
var v = d ? d() : "";
|
|
327
|
-
e(
|
|
328
|
-
"Failed " + u + " type: " + p.message + (v ?? "")
|
|
329
|
-
);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
return o.resetWarningCache = function() {
|
|
335
|
-
process.env.NODE_ENV !== "production" && (t = {});
|
|
336
|
-
}, tr = o, tr;
|
|
337
|
-
}
|
|
338
|
-
var nr, $r;
|
|
339
|
-
function dt() {
|
|
340
|
-
if ($r) return nr;
|
|
341
|
-
$r = 1;
|
|
342
|
-
var e = Ur(), r = lt(), t = /* @__PURE__ */ fr(), n = /* @__PURE__ */ zr(), o = /* @__PURE__ */ ft(), a = function() {
|
|
343
|
-
};
|
|
344
|
-
process.env.NODE_ENV !== "production" && (a = function(u) {
|
|
345
|
-
var f = "Warning: " + u;
|
|
346
|
-
typeof console < "u" && console.error(f);
|
|
347
|
-
try {
|
|
348
|
-
throw new Error(f);
|
|
349
|
-
} catch {
|
|
350
|
-
}
|
|
351
|
-
});
|
|
352
|
-
function c() {
|
|
353
|
-
return null;
|
|
354
|
-
}
|
|
355
|
-
return nr = function(u, f) {
|
|
356
|
-
var d = typeof Symbol == "function" && Symbol.iterator, h = "@@iterator";
|
|
357
|
-
function p(g) {
|
|
358
|
-
var T = g && (d && g[d] || g[h]);
|
|
359
|
-
if (typeof T == "function")
|
|
360
|
-
return T;
|
|
361
|
-
}
|
|
362
|
-
var m = "<<anonymous>>", v = {
|
|
363
|
-
array: _("array"),
|
|
364
|
-
bigint: _("bigint"),
|
|
365
|
-
bool: _("boolean"),
|
|
366
|
-
func: _("function"),
|
|
367
|
-
number: _("number"),
|
|
368
|
-
object: _("object"),
|
|
369
|
-
string: _("string"),
|
|
370
|
-
symbol: _("symbol"),
|
|
371
|
-
any: B(),
|
|
372
|
-
arrayOf: D,
|
|
373
|
-
element: $(),
|
|
374
|
-
elementType: y(),
|
|
375
|
-
instanceOf: x,
|
|
376
|
-
node: Z(),
|
|
377
|
-
objectOf: le,
|
|
378
|
-
oneOf: ae,
|
|
379
|
-
oneOfType: J,
|
|
380
|
-
shape: i,
|
|
381
|
-
exact: O
|
|
382
|
-
};
|
|
383
|
-
function b(g, T) {
|
|
384
|
-
return g === T ? g !== 0 || 1 / g === 1 / T : g !== g && T !== T;
|
|
385
|
-
}
|
|
386
|
-
function s(g, T) {
|
|
387
|
-
this.message = g, this.data = T && typeof T == "object" ? T : {}, this.stack = "";
|
|
388
|
-
}
|
|
389
|
-
s.prototype = Error.prototype;
|
|
390
|
-
function E(g) {
|
|
391
|
-
if (process.env.NODE_ENV !== "production")
|
|
392
|
-
var T = {}, k = 0;
|
|
393
|
-
function R(I, A, P, N, V, M, re) {
|
|
394
|
-
if (N = N || m, M = M || P, re !== t) {
|
|
395
|
-
if (f) {
|
|
396
|
-
var C = new Error(
|
|
397
|
-
"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"
|
|
398
|
-
);
|
|
399
|
-
throw C.name = "Invariant Violation", C;
|
|
400
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
401
|
-
var ce = N + ":" + P;
|
|
402
|
-
!T[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
403
|
-
k < 3 && (a(
|
|
404
|
-
"You are manually calling a React.PropTypes validation function for the `" + M + "` prop on `" + N + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
405
|
-
), T[ce] = !0, k++);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
return A[P] == null ? I ? A[P] === null ? new s("The " + V + " `" + M + "` is marked as required " + ("in `" + N + "`, but its value is `null`.")) : new s("The " + V + " `" + M + "` is marked as required in " + ("`" + N + "`, but its value is `undefined`.")) : null : g(A, P, N, V, M);
|
|
409
|
-
}
|
|
410
|
-
var w = R.bind(null, !1);
|
|
411
|
-
return w.isRequired = R.bind(null, !0), w;
|
|
412
|
-
}
|
|
413
|
-
function _(g) {
|
|
414
|
-
function T(k, R, w, I, A, P) {
|
|
415
|
-
var N = k[R], V = W(N);
|
|
416
|
-
if (V !== g) {
|
|
417
|
-
var M = ee(N);
|
|
418
|
-
return new s(
|
|
419
|
-
"Invalid " + I + " `" + A + "` of type " + ("`" + M + "` supplied to `" + w + "`, expected ") + ("`" + g + "`."),
|
|
420
|
-
{ expectedType: g }
|
|
421
|
-
);
|
|
422
|
-
}
|
|
423
|
-
return null;
|
|
424
|
-
}
|
|
425
|
-
return E(T);
|
|
426
|
-
}
|
|
427
|
-
function B() {
|
|
428
|
-
return E(c);
|
|
429
|
-
}
|
|
430
|
-
function D(g) {
|
|
431
|
-
function T(k, R, w, I, A) {
|
|
432
|
-
if (typeof g != "function")
|
|
433
|
-
return new s("Property `" + A + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
|
|
434
|
-
var P = k[R];
|
|
435
|
-
if (!Array.isArray(P)) {
|
|
436
|
-
var N = W(P);
|
|
437
|
-
return new s("Invalid " + I + " `" + A + "` of type " + ("`" + N + "` supplied to `" + w + "`, expected an array."));
|
|
438
|
-
}
|
|
439
|
-
for (var V = 0; V < P.length; V++) {
|
|
440
|
-
var M = g(P, V, w, I, A + "[" + V + "]", t);
|
|
441
|
-
if (M instanceof Error)
|
|
442
|
-
return M;
|
|
443
|
-
}
|
|
444
|
-
return null;
|
|
445
|
-
}
|
|
446
|
-
return E(T);
|
|
447
|
-
}
|
|
448
|
-
function $() {
|
|
449
|
-
function g(T, k, R, w, I) {
|
|
450
|
-
var A = T[k];
|
|
451
|
-
if (!u(A)) {
|
|
452
|
-
var P = W(A);
|
|
453
|
-
return new s("Invalid " + w + " `" + I + "` of type " + ("`" + P + "` supplied to `" + R + "`, expected a single ReactElement."));
|
|
454
|
-
}
|
|
455
|
-
return null;
|
|
456
|
-
}
|
|
457
|
-
return E(g);
|
|
458
|
-
}
|
|
459
|
-
function y() {
|
|
460
|
-
function g(T, k, R, w, I) {
|
|
461
|
-
var A = T[k];
|
|
462
|
-
if (!e.isValidElementType(A)) {
|
|
463
|
-
var P = W(A);
|
|
464
|
-
return new s("Invalid " + w + " `" + I + "` of type " + ("`" + P + "` supplied to `" + R + "`, expected a single ReactElement type."));
|
|
465
|
-
}
|
|
466
|
-
return null;
|
|
467
|
-
}
|
|
468
|
-
return E(g);
|
|
469
|
-
}
|
|
470
|
-
function x(g) {
|
|
471
|
-
function T(k, R, w, I, A) {
|
|
472
|
-
if (!(k[R] instanceof g)) {
|
|
473
|
-
var P = g.name || m, N = Je(k[R]);
|
|
474
|
-
return new s("Invalid " + I + " `" + A + "` of type " + ("`" + N + "` supplied to `" + w + "`, expected ") + ("instance of `" + P + "`."));
|
|
475
|
-
}
|
|
476
|
-
return null;
|
|
477
|
-
}
|
|
478
|
-
return E(T);
|
|
479
|
-
}
|
|
480
|
-
function ae(g) {
|
|
481
|
-
if (!Array.isArray(g))
|
|
482
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
483
|
-
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
484
|
-
) : a("Invalid argument supplied to oneOf, expected an array.")), c;
|
|
485
|
-
function T(k, R, w, I, A) {
|
|
486
|
-
for (var P = k[R], N = 0; N < g.length; N++)
|
|
487
|
-
if (b(P, g[N]))
|
|
488
|
-
return null;
|
|
489
|
-
var V = JSON.stringify(g, function(re, C) {
|
|
490
|
-
var ce = ee(C);
|
|
491
|
-
return ce === "symbol" ? String(C) : C;
|
|
492
|
-
});
|
|
493
|
-
return new s("Invalid " + I + " `" + A + "` of value `" + String(P) + "` " + ("supplied to `" + w + "`, expected one of " + V + "."));
|
|
494
|
-
}
|
|
495
|
-
return E(T);
|
|
496
|
-
}
|
|
497
|
-
function le(g) {
|
|
498
|
-
function T(k, R, w, I, A) {
|
|
499
|
-
if (typeof g != "function")
|
|
500
|
-
return new s("Property `" + A + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
|
|
501
|
-
var P = k[R], N = W(P);
|
|
502
|
-
if (N !== "object")
|
|
503
|
-
return new s("Invalid " + I + " `" + A + "` of type " + ("`" + N + "` supplied to `" + w + "`, expected an object."));
|
|
504
|
-
for (var V in P)
|
|
505
|
-
if (n(P, V)) {
|
|
506
|
-
var M = g(P, V, w, I, A + "." + V, t);
|
|
507
|
-
if (M instanceof Error)
|
|
508
|
-
return M;
|
|
509
|
-
}
|
|
510
|
-
return null;
|
|
511
|
-
}
|
|
512
|
-
return E(T);
|
|
513
|
-
}
|
|
514
|
-
function J(g) {
|
|
515
|
-
if (!Array.isArray(g))
|
|
516
|
-
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), c;
|
|
517
|
-
for (var T = 0; T < g.length; T++) {
|
|
518
|
-
var k = g[T];
|
|
519
|
-
if (typeof k != "function")
|
|
520
|
-
return a(
|
|
521
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(k) + " at index " + T + "."
|
|
522
|
-
), c;
|
|
523
|
-
}
|
|
524
|
-
function R(w, I, A, P, N) {
|
|
525
|
-
for (var V = [], M = 0; M < g.length; M++) {
|
|
526
|
-
var re = g[M], C = re(w, I, A, P, N, t);
|
|
527
|
-
if (C == null)
|
|
528
|
-
return null;
|
|
529
|
-
C.data && n(C.data, "expectedType") && V.push(C.data.expectedType);
|
|
530
|
-
}
|
|
531
|
-
var ce = V.length > 0 ? ", expected one of type [" + V.join(", ") + "]" : "";
|
|
532
|
-
return new s("Invalid " + P + " `" + N + "` supplied to " + ("`" + A + "`" + ce + "."));
|
|
533
|
-
}
|
|
534
|
-
return E(R);
|
|
535
|
-
}
|
|
536
|
-
function Z() {
|
|
537
|
-
function g(T, k, R, w, I) {
|
|
538
|
-
return S(T[k]) ? null : new s("Invalid " + w + " `" + I + "` supplied to " + ("`" + R + "`, expected a ReactNode."));
|
|
539
|
-
}
|
|
540
|
-
return E(g);
|
|
541
|
-
}
|
|
542
|
-
function X(g, T, k, R, w) {
|
|
543
|
-
return new s(
|
|
544
|
-
(g || "React class") + ": " + T + " type `" + k + "." + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
|
|
545
|
-
);
|
|
546
|
-
}
|
|
547
|
-
function i(g) {
|
|
548
|
-
function T(k, R, w, I, A) {
|
|
549
|
-
var P = k[R], N = W(P);
|
|
550
|
-
if (N !== "object")
|
|
551
|
-
return new s("Invalid " + I + " `" + A + "` of type `" + N + "` " + ("supplied to `" + w + "`, expected `object`."));
|
|
552
|
-
for (var V in g) {
|
|
553
|
-
var M = g[V];
|
|
554
|
-
if (typeof M != "function")
|
|
555
|
-
return X(w, I, A, V, ee(M));
|
|
556
|
-
var re = M(P, V, w, I, A + "." + V, t);
|
|
557
|
-
if (re)
|
|
558
|
-
return re;
|
|
559
|
-
}
|
|
560
|
-
return null;
|
|
561
|
-
}
|
|
562
|
-
return E(T);
|
|
563
|
-
}
|
|
564
|
-
function O(g) {
|
|
565
|
-
function T(k, R, w, I, A) {
|
|
566
|
-
var P = k[R], N = W(P);
|
|
567
|
-
if (N !== "object")
|
|
568
|
-
return new s("Invalid " + I + " `" + A + "` of type `" + N + "` " + ("supplied to `" + w + "`, expected `object`."));
|
|
569
|
-
var V = r({}, k[R], g);
|
|
570
|
-
for (var M in V) {
|
|
571
|
-
var re = g[M];
|
|
572
|
-
if (n(g, M) && typeof re != "function")
|
|
573
|
-
return X(w, I, A, M, ee(re));
|
|
574
|
-
if (!re)
|
|
575
|
-
return new s(
|
|
576
|
-
"Invalid " + I + " `" + A + "` key `" + M + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(k[R], null, " ") + `
|
|
577
|
-
Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
|
|
578
|
-
);
|
|
579
|
-
var C = re(P, M, w, I, A + "." + M, t);
|
|
580
|
-
if (C)
|
|
581
|
-
return C;
|
|
582
|
-
}
|
|
583
|
-
return null;
|
|
584
|
-
}
|
|
585
|
-
return E(T);
|
|
586
|
-
}
|
|
587
|
-
function S(g) {
|
|
588
|
-
switch (typeof g) {
|
|
589
|
-
case "number":
|
|
590
|
-
case "string":
|
|
591
|
-
case "undefined":
|
|
592
|
-
return !0;
|
|
593
|
-
case "boolean":
|
|
594
|
-
return !g;
|
|
595
|
-
case "object":
|
|
596
|
-
if (Array.isArray(g))
|
|
597
|
-
return g.every(S);
|
|
598
|
-
if (g === null || u(g))
|
|
599
|
-
return !0;
|
|
600
|
-
var T = p(g);
|
|
601
|
-
if (T) {
|
|
602
|
-
var k = T.call(g), R;
|
|
603
|
-
if (T !== g.entries) {
|
|
604
|
-
for (; !(R = k.next()).done; )
|
|
605
|
-
if (!S(R.value))
|
|
606
|
-
return !1;
|
|
607
|
-
} else
|
|
608
|
-
for (; !(R = k.next()).done; ) {
|
|
609
|
-
var w = R.value;
|
|
610
|
-
if (w && !S(w[1]))
|
|
611
|
-
return !1;
|
|
612
|
-
}
|
|
613
|
-
} else
|
|
614
|
-
return !1;
|
|
615
|
-
return !0;
|
|
616
|
-
default:
|
|
617
|
-
return !1;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
function j(g, T) {
|
|
621
|
-
return g === "symbol" ? !0 : T ? T["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && T instanceof Symbol : !1;
|
|
622
|
-
}
|
|
623
|
-
function W(g) {
|
|
624
|
-
var T = typeof g;
|
|
625
|
-
return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : j(T, g) ? "symbol" : T;
|
|
626
|
-
}
|
|
627
|
-
function ee(g) {
|
|
628
|
-
if (typeof g > "u" || g === null)
|
|
629
|
-
return "" + g;
|
|
630
|
-
var T = W(g);
|
|
631
|
-
if (T === "object") {
|
|
632
|
-
if (g instanceof Date)
|
|
633
|
-
return "date";
|
|
634
|
-
if (g instanceof RegExp)
|
|
635
|
-
return "regexp";
|
|
636
|
-
}
|
|
637
|
-
return T;
|
|
638
|
-
}
|
|
639
|
-
function se(g) {
|
|
640
|
-
var T = ee(g);
|
|
641
|
-
switch (T) {
|
|
642
|
-
case "array":
|
|
643
|
-
case "object":
|
|
644
|
-
return "an " + T;
|
|
645
|
-
case "boolean":
|
|
646
|
-
case "date":
|
|
647
|
-
case "regexp":
|
|
648
|
-
return "a " + T;
|
|
649
|
-
default:
|
|
650
|
-
return T;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
function Je(g) {
|
|
654
|
-
return !g.constructor || !g.constructor.name ? m : g.constructor.name;
|
|
655
|
-
}
|
|
656
|
-
return v.checkPropTypes = o, v.resetWarningCache = o.resetWarningCache, v.PropTypes = v, v;
|
|
657
|
-
}, nr;
|
|
658
|
-
}
|
|
659
|
-
var or, Or;
|
|
660
|
-
function pt() {
|
|
661
|
-
if (Or) return or;
|
|
662
|
-
Or = 1;
|
|
663
|
-
var e = /* @__PURE__ */ fr();
|
|
664
|
-
function r() {
|
|
665
|
-
}
|
|
666
|
-
function t() {
|
|
667
|
-
}
|
|
668
|
-
return t.resetWarningCache = r, or = function() {
|
|
669
|
-
function n(c, u, f, d, h, p) {
|
|
670
|
-
if (p !== e) {
|
|
671
|
-
var m = new Error(
|
|
672
|
-
"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"
|
|
673
|
-
);
|
|
674
|
-
throw m.name = "Invariant Violation", m;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
n.isRequired = n;
|
|
678
|
-
function o() {
|
|
679
|
-
return n;
|
|
680
|
-
}
|
|
681
|
-
var a = {
|
|
682
|
-
array: n,
|
|
683
|
-
bigint: n,
|
|
684
|
-
bool: n,
|
|
685
|
-
func: n,
|
|
686
|
-
number: n,
|
|
687
|
-
object: n,
|
|
688
|
-
string: n,
|
|
689
|
-
symbol: n,
|
|
690
|
-
any: n,
|
|
691
|
-
arrayOf: o,
|
|
692
|
-
element: n,
|
|
693
|
-
elementType: n,
|
|
694
|
-
instanceOf: o,
|
|
695
|
-
node: n,
|
|
696
|
-
objectOf: o,
|
|
697
|
-
oneOf: o,
|
|
698
|
-
oneOfType: o,
|
|
699
|
-
shape: o,
|
|
700
|
-
exact: o,
|
|
701
|
-
checkPropTypes: t,
|
|
702
|
-
resetWarningCache: r
|
|
703
|
-
};
|
|
704
|
-
return a.PropTypes = a, a;
|
|
705
|
-
}, or;
|
|
706
|
-
}
|
|
707
|
-
var xr;
|
|
708
|
-
function mt() {
|
|
709
|
-
if (xr) return Ne.exports;
|
|
710
|
-
if (xr = 1, process.env.NODE_ENV !== "production") {
|
|
711
|
-
var e = Ur(), r = !0;
|
|
712
|
-
Ne.exports = /* @__PURE__ */ dt()(e.isElement, r);
|
|
713
|
-
} else
|
|
714
|
-
Ne.exports = /* @__PURE__ */ pt()();
|
|
715
|
-
return Ne.exports;
|
|
716
|
-
}
|
|
717
|
-
var gt = /* @__PURE__ */ mt();
|
|
718
|
-
const Oe = /* @__PURE__ */ st(gt);
|
|
719
|
-
var Me = { exports: {} }, z = {};
|
|
720
|
-
/**
|
|
721
|
-
* @license React
|
|
722
|
-
* react-is.production.js
|
|
723
|
-
*
|
|
724
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
725
|
-
*
|
|
726
|
-
* This source code is licensed under the MIT license found in the
|
|
727
|
-
* LICENSE file in the root directory of this source tree.
|
|
728
|
-
*/
|
|
729
|
-
var wr;
|
|
730
|
-
function ht() {
|
|
731
|
-
if (wr) return z;
|
|
732
|
-
wr = 1;
|
|
733
|
-
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.consumer"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.view_transition"), v = Symbol.for("react.client.reference");
|
|
734
|
-
function b(s) {
|
|
735
|
-
if (typeof s == "object" && s !== null) {
|
|
736
|
-
var E = s.$$typeof;
|
|
737
|
-
switch (E) {
|
|
738
|
-
case e:
|
|
739
|
-
switch (s = s.type, s) {
|
|
740
|
-
case t:
|
|
741
|
-
case o:
|
|
742
|
-
case n:
|
|
743
|
-
case f:
|
|
744
|
-
case d:
|
|
745
|
-
case m:
|
|
746
|
-
return s;
|
|
747
|
-
default:
|
|
748
|
-
switch (s = s && s.$$typeof, s) {
|
|
749
|
-
case c:
|
|
750
|
-
case u:
|
|
751
|
-
case p:
|
|
752
|
-
case h:
|
|
753
|
-
return s;
|
|
754
|
-
case a:
|
|
755
|
-
return s;
|
|
756
|
-
default:
|
|
757
|
-
return E;
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
case r:
|
|
761
|
-
return E;
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
return z.ContextConsumer = a, z.ContextProvider = c, z.Element = e, z.ForwardRef = u, z.Fragment = t, z.Lazy = p, z.Memo = h, z.Portal = r, z.Profiler = o, z.StrictMode = n, z.Suspense = f, z.SuspenseList = d, z.isContextConsumer = function(s) {
|
|
766
|
-
return b(s) === a;
|
|
767
|
-
}, z.isContextProvider = function(s) {
|
|
768
|
-
return b(s) === c;
|
|
769
|
-
}, z.isElement = function(s) {
|
|
770
|
-
return typeof s == "object" && s !== null && s.$$typeof === e;
|
|
771
|
-
}, z.isForwardRef = function(s) {
|
|
772
|
-
return b(s) === u;
|
|
773
|
-
}, z.isFragment = function(s) {
|
|
774
|
-
return b(s) === t;
|
|
775
|
-
}, z.isLazy = function(s) {
|
|
776
|
-
return b(s) === p;
|
|
777
|
-
}, z.isMemo = function(s) {
|
|
778
|
-
return b(s) === h;
|
|
779
|
-
}, z.isPortal = function(s) {
|
|
780
|
-
return b(s) === r;
|
|
781
|
-
}, z.isProfiler = function(s) {
|
|
782
|
-
return b(s) === o;
|
|
783
|
-
}, z.isStrictMode = function(s) {
|
|
784
|
-
return b(s) === n;
|
|
785
|
-
}, z.isSuspense = function(s) {
|
|
786
|
-
return b(s) === f;
|
|
787
|
-
}, z.isSuspenseList = function(s) {
|
|
788
|
-
return b(s) === d;
|
|
789
|
-
}, z.isValidElementType = function(s) {
|
|
790
|
-
return typeof s == "string" || typeof s == "function" || s === t || s === o || s === n || s === f || s === d || typeof s == "object" && s !== null && (s.$$typeof === p || s.$$typeof === h || s.$$typeof === c || s.$$typeof === a || s.$$typeof === u || s.$$typeof === v || s.getModuleId !== void 0);
|
|
791
|
-
}, z.typeOf = b, z;
|
|
792
|
-
}
|
|
793
|
-
var q = {};
|
|
794
|
-
/**
|
|
795
|
-
* @license React
|
|
796
|
-
* react-is.development.js
|
|
797
|
-
*
|
|
798
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
799
|
-
*
|
|
800
|
-
* This source code is licensed under the MIT license found in the
|
|
801
|
-
* LICENSE file in the root directory of this source tree.
|
|
802
|
-
*/
|
|
803
|
-
var _r;
|
|
804
|
-
function yt() {
|
|
805
|
-
return _r || (_r = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
806
|
-
function e(s) {
|
|
807
|
-
if (typeof s == "object" && s !== null) {
|
|
808
|
-
var E = s.$$typeof;
|
|
809
|
-
switch (E) {
|
|
810
|
-
case r:
|
|
811
|
-
switch (s = s.type, s) {
|
|
812
|
-
case n:
|
|
813
|
-
case a:
|
|
814
|
-
case o:
|
|
815
|
-
case d:
|
|
816
|
-
case h:
|
|
817
|
-
case v:
|
|
818
|
-
return s;
|
|
819
|
-
default:
|
|
820
|
-
switch (s = s && s.$$typeof, s) {
|
|
821
|
-
case u:
|
|
822
|
-
case f:
|
|
823
|
-
case m:
|
|
824
|
-
case p:
|
|
825
|
-
return s;
|
|
826
|
-
case c:
|
|
827
|
-
return s;
|
|
828
|
-
default:
|
|
829
|
-
return E;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
case t:
|
|
833
|
-
return E;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
var r = Symbol.for("react.transitional.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), c = Symbol.for("react.consumer"), u = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), v = Symbol.for("react.view_transition"), b = Symbol.for("react.client.reference");
|
|
838
|
-
q.ContextConsumer = c, q.ContextProvider = u, q.Element = r, q.ForwardRef = f, q.Fragment = n, q.Lazy = m, q.Memo = p, q.Portal = t, q.Profiler = a, q.StrictMode = o, q.Suspense = d, q.SuspenseList = h, q.isContextConsumer = function(s) {
|
|
839
|
-
return e(s) === c;
|
|
840
|
-
}, q.isContextProvider = function(s) {
|
|
841
|
-
return e(s) === u;
|
|
842
|
-
}, q.isElement = function(s) {
|
|
843
|
-
return typeof s == "object" && s !== null && s.$$typeof === r;
|
|
844
|
-
}, q.isForwardRef = function(s) {
|
|
845
|
-
return e(s) === f;
|
|
846
|
-
}, q.isFragment = function(s) {
|
|
847
|
-
return e(s) === n;
|
|
848
|
-
}, q.isLazy = function(s) {
|
|
849
|
-
return e(s) === m;
|
|
850
|
-
}, q.isMemo = function(s) {
|
|
851
|
-
return e(s) === p;
|
|
852
|
-
}, q.isPortal = function(s) {
|
|
853
|
-
return e(s) === t;
|
|
854
|
-
}, q.isProfiler = function(s) {
|
|
855
|
-
return e(s) === a;
|
|
856
|
-
}, q.isStrictMode = function(s) {
|
|
857
|
-
return e(s) === o;
|
|
858
|
-
}, q.isSuspense = function(s) {
|
|
859
|
-
return e(s) === d;
|
|
860
|
-
}, q.isSuspenseList = function(s) {
|
|
861
|
-
return e(s) === h;
|
|
862
|
-
}, q.isValidElementType = function(s) {
|
|
863
|
-
return typeof s == "string" || typeof s == "function" || s === n || s === a || s === o || s === d || s === h || typeof s == "object" && s !== null && (s.$$typeof === m || s.$$typeof === p || s.$$typeof === u || s.$$typeof === c || s.$$typeof === f || s.$$typeof === b || s.getModuleId !== void 0);
|
|
864
|
-
}, q.typeOf = e;
|
|
865
|
-
})()), q;
|
|
866
|
-
}
|
|
867
|
-
var Ar;
|
|
868
|
-
function bt() {
|
|
869
|
-
return Ar || (Ar = 1, process.env.NODE_ENV === "production" ? Me.exports = /* @__PURE__ */ ht() : Me.exports = /* @__PURE__ */ yt()), Me.exports;
|
|
870
|
-
}
|
|
871
|
-
var qr = /* @__PURE__ */ bt();
|
|
872
|
-
function pe(e) {
|
|
873
|
-
if (typeof e != "object" || e === null)
|
|
874
|
-
return !1;
|
|
875
|
-
const r = Object.getPrototypeOf(e);
|
|
876
|
-
return (r === null || r === Object.prototype || Object.getPrototypeOf(r) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
877
|
-
}
|
|
878
|
-
function Gr(e) {
|
|
879
|
-
if (/* @__PURE__ */ Yr.isValidElement(e) || qr.isValidElementType(e) || !pe(e))
|
|
880
|
-
return e;
|
|
881
|
-
const r = {};
|
|
882
|
-
return Object.keys(e).forEach((t) => {
|
|
883
|
-
r[t] = Gr(e[t]);
|
|
884
|
-
}), r;
|
|
885
|
-
}
|
|
886
|
-
function te(e, r, t = {
|
|
887
|
-
clone: !0
|
|
888
|
-
}) {
|
|
889
|
-
const n = t.clone ? {
|
|
890
|
-
...e
|
|
891
|
-
} : e;
|
|
892
|
-
return pe(e) && pe(r) && Object.keys(r).forEach((o) => {
|
|
893
|
-
/* @__PURE__ */ Yr.isValidElement(r[o]) || qr.isValidElementType(r[o]) ? n[o] = r[o] : pe(r[o]) && // Avoid prototype pollution
|
|
894
|
-
Object.prototype.hasOwnProperty.call(e, o) && pe(e[o]) ? n[o] = te(e[o], r[o], t) : t.clone ? n[o] = pe(r[o]) ? Gr(r[o]) : r[o] : n[o] = r[o];
|
|
895
|
-
}), n;
|
|
896
|
-
}
|
|
897
|
-
const vt = (e) => {
|
|
898
|
-
const r = Object.keys(e).map((t) => ({
|
|
899
|
-
key: t,
|
|
900
|
-
val: e[t]
|
|
901
|
-
})) || [];
|
|
902
|
-
return r.sort((t, n) => t.val - n.val), r.reduce((t, n) => ({
|
|
903
|
-
...t,
|
|
904
|
-
[n.key]: n.val
|
|
905
|
-
}), {});
|
|
906
|
-
};
|
|
907
|
-
function St(e) {
|
|
908
|
-
const {
|
|
909
|
-
// The breakpoint **start** at this value.
|
|
910
|
-
// For instance with the first breakpoint xs: [xs, sm).
|
|
911
|
-
values: r = {
|
|
912
|
-
xs: 0,
|
|
913
|
-
// phone
|
|
914
|
-
sm: 600,
|
|
915
|
-
// tablet
|
|
916
|
-
md: 900,
|
|
917
|
-
// small laptop
|
|
918
|
-
lg: 1200,
|
|
919
|
-
// desktop
|
|
920
|
-
xl: 1536
|
|
921
|
-
// large screen
|
|
922
|
-
},
|
|
923
|
-
unit: t = "px",
|
|
924
|
-
step: n = 5,
|
|
925
|
-
...o
|
|
926
|
-
} = e, a = vt(r), c = Object.keys(a);
|
|
927
|
-
function u(m) {
|
|
928
|
-
return `@media (min-width:${typeof r[m] == "number" ? r[m] : m}${t})`;
|
|
929
|
-
}
|
|
930
|
-
function f(m) {
|
|
931
|
-
return `@media (max-width:${(typeof r[m] == "number" ? r[m] : m) - n / 100}${t})`;
|
|
932
|
-
}
|
|
933
|
-
function d(m, v) {
|
|
934
|
-
const b = c.indexOf(v);
|
|
935
|
-
return `@media (min-width:${typeof r[m] == "number" ? r[m] : m}${t}) and (max-width:${(b !== -1 && typeof r[c[b]] == "number" ? r[c[b]] : v) - n / 100}${t})`;
|
|
936
|
-
}
|
|
937
|
-
function h(m) {
|
|
938
|
-
return c.indexOf(m) + 1 < c.length ? d(m, c[c.indexOf(m) + 1]) : u(m);
|
|
939
|
-
}
|
|
940
|
-
function p(m) {
|
|
941
|
-
const v = c.indexOf(m);
|
|
942
|
-
return v === 0 ? u(c[1]) : v === c.length - 1 ? f(c[v]) : d(m, c[c.indexOf(m) + 1]).replace("@media", "@media not all and");
|
|
943
|
-
}
|
|
944
|
-
return {
|
|
945
|
-
keys: c,
|
|
946
|
-
values: a,
|
|
947
|
-
up: u,
|
|
948
|
-
down: f,
|
|
949
|
-
between: d,
|
|
950
|
-
only: h,
|
|
951
|
-
not: p,
|
|
952
|
-
unit: t,
|
|
953
|
-
...o
|
|
954
|
-
};
|
|
955
|
-
}
|
|
956
|
-
function Rr(e, r) {
|
|
957
|
-
if (!e.containerQueries)
|
|
958
|
-
return r;
|
|
959
|
-
const t = Object.keys(r).filter((n) => n.startsWith("@container")).sort((n, o) => {
|
|
960
|
-
const a = /min-width:\s*([0-9.]+)/;
|
|
961
|
-
return +(n.match(a)?.[1] || 0) - +(o.match(a)?.[1] || 0);
|
|
962
|
-
});
|
|
963
|
-
return t.length ? t.reduce((n, o) => {
|
|
964
|
-
const a = r[o];
|
|
965
|
-
return delete n[o], n[o] = a, n;
|
|
966
|
-
}, {
|
|
967
|
-
...r
|
|
968
|
-
}) : r;
|
|
969
|
-
}
|
|
970
|
-
function Et(e, r) {
|
|
971
|
-
return r === "@" || r.startsWith("@") && (e.some((t) => r.startsWith(`@${t}`)) || !!r.match(/^@\d/));
|
|
972
|
-
}
|
|
973
|
-
function Ct(e, r) {
|
|
974
|
-
const t = r.match(/^@([^/]+)?\/?(.+)?$/);
|
|
975
|
-
if (!t) {
|
|
976
|
-
if (process.env.NODE_ENV !== "production")
|
|
977
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The provided shorthand ${`(${r})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
978
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.` : me(18, `(${r})`));
|
|
979
|
-
return null;
|
|
980
|
-
}
|
|
981
|
-
const [, n, o] = t, a = Number.isNaN(+n) ? n || 0 : +n;
|
|
982
|
-
return e.containerQueries(o).up(a);
|
|
983
|
-
}
|
|
984
|
-
function Tt(e) {
|
|
985
|
-
const r = (a, c) => a.replace("@media", c ? `@container ${c}` : "@container");
|
|
986
|
-
function t(a, c) {
|
|
987
|
-
a.up = (...u) => r(e.breakpoints.up(...u), c), a.down = (...u) => r(e.breakpoints.down(...u), c), a.between = (...u) => r(e.breakpoints.between(...u), c), a.only = (...u) => r(e.breakpoints.only(...u), c), a.not = (...u) => {
|
|
988
|
-
const f = r(e.breakpoints.not(...u), c);
|
|
989
|
-
return f.includes("not all and") ? f.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : f;
|
|
990
|
-
};
|
|
991
|
-
}
|
|
992
|
-
const n = {}, o = (a) => (t(n, a), n);
|
|
993
|
-
return t(o), {
|
|
994
|
-
...e,
|
|
995
|
-
containerQueries: o
|
|
996
|
-
};
|
|
997
|
-
}
|
|
998
|
-
const $t = {
|
|
999
|
-
borderRadius: 4
|
|
1000
|
-
}, he = process.env.NODE_ENV !== "production" ? Oe.oneOfType([Oe.number, Oe.string, Oe.object, Oe.array]) : {};
|
|
1001
|
-
function _e(e, r) {
|
|
1002
|
-
return r ? te(e, r, {
|
|
1003
|
-
clone: !1
|
|
1004
|
-
// No need to clone deep, it's way faster.
|
|
1005
|
-
}) : e;
|
|
1006
|
-
}
|
|
1007
|
-
const je = {
|
|
1008
|
-
xs: 0,
|
|
1009
|
-
// phone
|
|
1010
|
-
sm: 600,
|
|
1011
|
-
// tablet
|
|
1012
|
-
md: 900,
|
|
1013
|
-
// small laptop
|
|
1014
|
-
lg: 1200,
|
|
1015
|
-
// desktop
|
|
1016
|
-
xl: 1536
|
|
1017
|
-
// large screen
|
|
1018
|
-
}, Pr = {
|
|
1019
|
-
// Sorted ASC by size. That's important.
|
|
1020
|
-
// It can't be configured as it's used statically for propTypes.
|
|
1021
|
-
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
1022
|
-
up: (e) => `@media (min-width:${je[e]}px)`
|
|
1023
|
-
}, Ot = {
|
|
1024
|
-
containerQueries: (e) => ({
|
|
1025
|
-
up: (r) => {
|
|
1026
|
-
let t = typeof r == "number" ? r : je[r] || r;
|
|
1027
|
-
return typeof t == "number" && (t = `${t}px`), e ? `@container ${e} (min-width:${t})` : `@container (min-width:${t})`;
|
|
1028
|
-
}
|
|
1029
|
-
})
|
|
1030
|
-
};
|
|
1031
|
-
function de(e, r, t) {
|
|
1032
|
-
const n = e.theme || {};
|
|
1033
|
-
if (Array.isArray(r)) {
|
|
1034
|
-
const a = n.breakpoints || Pr;
|
|
1035
|
-
return r.reduce((c, u, f) => (c[a.up(a.keys[f])] = t(r[f]), c), {});
|
|
1036
|
-
}
|
|
1037
|
-
if (typeof r == "object") {
|
|
1038
|
-
const a = n.breakpoints || Pr;
|
|
1039
|
-
return Object.keys(r).reduce((c, u) => {
|
|
1040
|
-
if (Et(a.keys, u)) {
|
|
1041
|
-
const f = Ct(n.containerQueries ? n : Ot, u);
|
|
1042
|
-
f && (c[f] = t(r[u], u));
|
|
1043
|
-
} else if (Object.keys(a.values || je).includes(u)) {
|
|
1044
|
-
const f = a.up(u);
|
|
1045
|
-
c[f] = t(r[u], u);
|
|
1046
|
-
} else {
|
|
1047
|
-
const f = u;
|
|
1048
|
-
c[f] = r[f];
|
|
1049
|
-
}
|
|
1050
|
-
return c;
|
|
1051
|
-
}, {});
|
|
1052
|
-
}
|
|
1053
|
-
return t(r);
|
|
1054
|
-
}
|
|
1055
|
-
function Kr(e = {}) {
|
|
1056
|
-
return e.keys?.reduce((t, n) => {
|
|
1057
|
-
const o = e.up(n);
|
|
1058
|
-
return t[o] = {}, t;
|
|
1059
|
-
}, {}) || {};
|
|
1060
|
-
}
|
|
1061
|
-
function sr(e, r) {
|
|
1062
|
-
return e.reduce((t, n) => {
|
|
1063
|
-
const o = t[n];
|
|
1064
|
-
return (!o || Object.keys(o).length === 0) && delete t[n], t;
|
|
1065
|
-
}, r);
|
|
1066
|
-
}
|
|
1067
|
-
function uo(e, ...r) {
|
|
1068
|
-
const t = Kr(e), n = [t, ...r].reduce((o, a) => te(o, a), {});
|
|
1069
|
-
return sr(Object.keys(t), n);
|
|
1070
|
-
}
|
|
1071
|
-
function xt(e, r) {
|
|
1072
|
-
if (typeof e != "object")
|
|
1073
|
-
return {};
|
|
1074
|
-
const t = {}, n = Object.keys(r);
|
|
1075
|
-
return Array.isArray(e) ? n.forEach((o, a) => {
|
|
1076
|
-
a < e.length && (t[o] = !0);
|
|
1077
|
-
}) : n.forEach((o) => {
|
|
1078
|
-
e[o] != null && (t[o] = !0);
|
|
1079
|
-
}), t;
|
|
1080
|
-
}
|
|
1081
|
-
function lo({
|
|
1082
|
-
values: e,
|
|
1083
|
-
breakpoints: r,
|
|
1084
|
-
base: t
|
|
1085
|
-
}) {
|
|
1086
|
-
const n = t || xt(e, r), o = Object.keys(n);
|
|
1087
|
-
if (o.length === 0)
|
|
1088
|
-
return e;
|
|
1089
|
-
let a;
|
|
1090
|
-
return o.reduce((c, u, f) => (Array.isArray(e) ? (c[u] = e[f] != null ? e[f] : e[a], a = f) : typeof e == "object" ? (c[u] = e[u] != null ? e[u] : e[a], a = u) : c[u] = e, c), {});
|
|
1091
|
-
}
|
|
1092
|
-
function Hr(e) {
|
|
1093
|
-
if (typeof e != "string")
|
|
1094
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : me(7));
|
|
1095
|
-
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
1096
|
-
}
|
|
1097
|
-
function Fe(e, r, t = !0) {
|
|
1098
|
-
if (!r || typeof r != "string")
|
|
1099
|
-
return null;
|
|
1100
|
-
if (e && e.vars && t) {
|
|
1101
|
-
const n = `vars.${r}`.split(".").reduce((o, a) => o && o[a] ? o[a] : null, e);
|
|
1102
|
-
if (n != null)
|
|
1103
|
-
return n;
|
|
1104
|
-
}
|
|
1105
|
-
return r.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
|
|
1106
|
-
}
|
|
1107
|
-
function De(e, r, t, n = t) {
|
|
1108
|
-
let o;
|
|
1109
|
-
return typeof e == "function" ? o = e(t) : Array.isArray(e) ? o = e[t] || n : o = Fe(e, t) || n, r && (o = r(o, n, e)), o;
|
|
1110
|
-
}
|
|
1111
|
-
function Q(e) {
|
|
1112
|
-
const {
|
|
1113
|
-
prop: r,
|
|
1114
|
-
cssProperty: t = e.prop,
|
|
1115
|
-
themeKey: n,
|
|
1116
|
-
transform: o
|
|
1117
|
-
} = e, a = (c) => {
|
|
1118
|
-
if (c[r] == null)
|
|
1119
|
-
return null;
|
|
1120
|
-
const u = c[r], f = c.theme, d = Fe(f, n) || {};
|
|
1121
|
-
return de(c, u, (p) => {
|
|
1122
|
-
let m = De(d, o, p);
|
|
1123
|
-
return p === m && typeof p == "string" && (m = De(d, o, `${r}${p === "default" ? "" : Hr(p)}`, p)), t === !1 ? m : {
|
|
1124
|
-
[t]: m
|
|
1125
|
-
};
|
|
1126
|
-
});
|
|
1127
|
-
};
|
|
1128
|
-
return a.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1129
|
-
[r]: he
|
|
1130
|
-
} : {}, a.filterProps = [r], a;
|
|
1131
|
-
}
|
|
1132
|
-
function wt(e) {
|
|
1133
|
-
const r = {};
|
|
1134
|
-
return (t) => (r[t] === void 0 && (r[t] = e(t)), r[t]);
|
|
1135
|
-
}
|
|
1136
|
-
const _t = {
|
|
1137
|
-
m: "margin",
|
|
1138
|
-
p: "padding"
|
|
1139
|
-
}, At = {
|
|
1140
|
-
t: "Top",
|
|
1141
|
-
r: "Right",
|
|
1142
|
-
b: "Bottom",
|
|
1143
|
-
l: "Left",
|
|
1144
|
-
x: ["Left", "Right"],
|
|
1145
|
-
y: ["Top", "Bottom"]
|
|
1146
|
-
}, kr = {
|
|
1147
|
-
marginX: "mx",
|
|
1148
|
-
marginY: "my",
|
|
1149
|
-
paddingX: "px",
|
|
1150
|
-
paddingY: "py"
|
|
1151
|
-
}, Rt = wt((e) => {
|
|
1152
|
-
if (e.length > 2)
|
|
1153
|
-
if (kr[e])
|
|
1154
|
-
e = kr[e];
|
|
1155
|
-
else
|
|
1156
|
-
return [e];
|
|
1157
|
-
const [r, t] = e.split(""), n = _t[r], o = At[t] || "";
|
|
1158
|
-
return Array.isArray(o) ? o.map((a) => n + a) : [n + o];
|
|
1159
|
-
}), Le = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], We = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], Pt = [...Le, ...We];
|
|
1160
|
-
function Re(e, r, t, n) {
|
|
1161
|
-
const o = Fe(e, r, !0) ?? t;
|
|
1162
|
-
return typeof o == "number" || typeof o == "string" ? (a) => typeof a == "string" ? a : (process.env.NODE_ENV !== "production" && typeof a != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${a}.`), typeof o == "string" ? o.startsWith("var(") && a === 0 ? 0 : o.startsWith("var(") && a === 1 ? o : `calc(${a} * ${o})` : o * a) : Array.isArray(o) ? (a) => {
|
|
1163
|
-
if (typeof a == "string")
|
|
1164
|
-
return a;
|
|
1165
|
-
const c = Math.abs(a);
|
|
1166
|
-
process.env.NODE_ENV !== "production" && (Number.isInteger(c) ? c > o.length - 1 && console.error([`MUI: The value provided (${c}) overflows.`, `The supported values are: ${JSON.stringify(o)}.`, `${c} > ${o.length - 1}, you need to add the missing values.`].join(`
|
|
1167
|
-
`)) : console.error([`MUI: The \`theme.${r}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${r}\` as a number.`].join(`
|
|
1168
|
-
`)));
|
|
1169
|
-
const u = o[c];
|
|
1170
|
-
return a >= 0 ? u : typeof u == "number" ? -u : typeof u == "string" && u.startsWith("var(") ? `calc(-1 * ${u})` : `-${u}`;
|
|
1171
|
-
} : typeof o == "function" ? o : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${r}\` value (${o}) is invalid.`, "It should be a number, an array or a function."].join(`
|
|
1172
|
-
`)), () => {
|
|
1173
|
-
});
|
|
1174
|
-
}
|
|
1175
|
-
function dr(e) {
|
|
1176
|
-
return Re(e, "spacing", 8, "spacing");
|
|
1177
|
-
}
|
|
1178
|
-
function Pe(e, r) {
|
|
1179
|
-
return typeof r == "string" || r == null ? r : e(r);
|
|
1180
|
-
}
|
|
1181
|
-
function kt(e, r) {
|
|
1182
|
-
return (t) => e.reduce((n, o) => (n[o] = Pe(r, t), n), {});
|
|
1183
|
-
}
|
|
1184
|
-
function It(e, r, t, n) {
|
|
1185
|
-
if (!r.includes(t))
|
|
1186
|
-
return null;
|
|
1187
|
-
const o = Rt(t), a = kt(o, n), c = e[t];
|
|
1188
|
-
return de(e, c, a);
|
|
1189
|
-
}
|
|
1190
|
-
function Qr(e, r) {
|
|
1191
|
-
const t = dr(e.theme);
|
|
1192
|
-
return Object.keys(e).map((n) => It(e, r, n, t)).reduce(_e, {});
|
|
1193
|
-
}
|
|
1194
|
-
function K(e) {
|
|
1195
|
-
return Qr(e, Le);
|
|
1196
|
-
}
|
|
1197
|
-
K.propTypes = process.env.NODE_ENV !== "production" ? Le.reduce((e, r) => (e[r] = he, e), {}) : {};
|
|
1198
|
-
K.filterProps = Le;
|
|
1199
|
-
function H(e) {
|
|
1200
|
-
return Qr(e, We);
|
|
1201
|
-
}
|
|
1202
|
-
H.propTypes = process.env.NODE_ENV !== "production" ? We.reduce((e, r) => (e[r] = he, e), {}) : {};
|
|
1203
|
-
H.filterProps = We;
|
|
1204
|
-
process.env.NODE_ENV !== "production" && Pt.reduce((e, r) => (e[r] = he, e), {});
|
|
1205
|
-
function Xr(e = 8, r = dr({
|
|
1206
|
-
spacing: e
|
|
1207
|
-
})) {
|
|
1208
|
-
if (e.mui)
|
|
1209
|
-
return e;
|
|
1210
|
-
const t = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((a) => {
|
|
1211
|
-
const c = r(a);
|
|
1212
|
-
return typeof c == "number" ? `${c}px` : c;
|
|
1213
|
-
}).join(" "));
|
|
1214
|
-
return t.mui = !0, t;
|
|
1215
|
-
}
|
|
1216
|
-
function Ve(...e) {
|
|
1217
|
-
const r = e.reduce((n, o) => (o.filterProps.forEach((a) => {
|
|
1218
|
-
n[a] = o;
|
|
1219
|
-
}), n), {}), t = (n) => Object.keys(n).reduce((o, a) => r[a] ? _e(o, r[a](n)) : o, {});
|
|
1220
|
-
return t.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, t.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), t;
|
|
1221
|
-
}
|
|
1222
|
-
function oe(e) {
|
|
1223
|
-
return typeof e != "number" ? e : `${e}px solid`;
|
|
1224
|
-
}
|
|
1225
|
-
function ie(e, r) {
|
|
1226
|
-
return Q({
|
|
1227
|
-
prop: e,
|
|
1228
|
-
themeKey: "borders",
|
|
1229
|
-
transform: r
|
|
1230
|
-
});
|
|
1231
|
-
}
|
|
1232
|
-
const Nt = ie("border", oe), Mt = ie("borderTop", oe), Bt = ie("borderRight", oe), Dt = ie("borderBottom", oe), jt = ie("borderLeft", oe), Ft = ie("borderColor"), Lt = ie("borderTopColor"), Wt = ie("borderRightColor"), Vt = ie("borderBottomColor"), Yt = ie("borderLeftColor"), Ut = ie("outline", oe), zt = ie("outlineColor"), Ye = (e) => {
|
|
1233
|
-
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
1234
|
-
const r = Re(e.theme, "shape.borderRadius", 4, "borderRadius"), t = (n) => ({
|
|
1235
|
-
borderRadius: Pe(r, n)
|
|
1236
|
-
});
|
|
1237
|
-
return de(e, e.borderRadius, t);
|
|
1238
|
-
}
|
|
1239
|
-
return null;
|
|
1240
|
-
};
|
|
1241
|
-
Ye.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1242
|
-
borderRadius: he
|
|
1243
|
-
} : {};
|
|
1244
|
-
Ye.filterProps = ["borderRadius"];
|
|
1245
|
-
Ve(Nt, Mt, Bt, Dt, jt, Ft, Lt, Wt, Vt, Yt, Ye, Ut, zt);
|
|
1246
|
-
const Ue = (e) => {
|
|
1247
|
-
if (e.gap !== void 0 && e.gap !== null) {
|
|
1248
|
-
const r = Re(e.theme, "spacing", 8, "gap"), t = (n) => ({
|
|
1249
|
-
gap: Pe(r, n)
|
|
1250
|
-
});
|
|
1251
|
-
return de(e, e.gap, t);
|
|
1252
|
-
}
|
|
1253
|
-
return null;
|
|
1254
|
-
};
|
|
1255
|
-
Ue.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1256
|
-
gap: he
|
|
1257
|
-
} : {};
|
|
1258
|
-
Ue.filterProps = ["gap"];
|
|
1259
|
-
const ze = (e) => {
|
|
1260
|
-
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
1261
|
-
const r = Re(e.theme, "spacing", 8, "columnGap"), t = (n) => ({
|
|
1262
|
-
columnGap: Pe(r, n)
|
|
1263
|
-
});
|
|
1264
|
-
return de(e, e.columnGap, t);
|
|
1265
|
-
}
|
|
1266
|
-
return null;
|
|
1267
|
-
};
|
|
1268
|
-
ze.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1269
|
-
columnGap: he
|
|
1270
|
-
} : {};
|
|
1271
|
-
ze.filterProps = ["columnGap"];
|
|
1272
|
-
const qe = (e) => {
|
|
1273
|
-
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
1274
|
-
const r = Re(e.theme, "spacing", 8, "rowGap"), t = (n) => ({
|
|
1275
|
-
rowGap: Pe(r, n)
|
|
1276
|
-
});
|
|
1277
|
-
return de(e, e.rowGap, t);
|
|
1278
|
-
}
|
|
1279
|
-
return null;
|
|
1280
|
-
};
|
|
1281
|
-
qe.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1282
|
-
rowGap: he
|
|
1283
|
-
} : {};
|
|
1284
|
-
qe.filterProps = ["rowGap"];
|
|
1285
|
-
const qt = Q({
|
|
1286
|
-
prop: "gridColumn"
|
|
1287
|
-
}), Gt = Q({
|
|
1288
|
-
prop: "gridRow"
|
|
1289
|
-
}), Kt = Q({
|
|
1290
|
-
prop: "gridAutoFlow"
|
|
1291
|
-
}), Ht = Q({
|
|
1292
|
-
prop: "gridAutoColumns"
|
|
1293
|
-
}), Qt = Q({
|
|
1294
|
-
prop: "gridAutoRows"
|
|
1295
|
-
}), Xt = Q({
|
|
1296
|
-
prop: "gridTemplateColumns"
|
|
1297
|
-
}), Jt = Q({
|
|
1298
|
-
prop: "gridTemplateRows"
|
|
1299
|
-
}), Zt = Q({
|
|
1300
|
-
prop: "gridTemplateAreas"
|
|
1301
|
-
}), en = Q({
|
|
1302
|
-
prop: "gridArea"
|
|
1303
|
-
});
|
|
1304
|
-
Ve(Ue, ze, qe, qt, Gt, Kt, Ht, Qt, Xt, Jt, Zt, en);
|
|
1305
|
-
function Te(e, r) {
|
|
1306
|
-
return r === "grey" ? r : e;
|
|
1307
|
-
}
|
|
1308
|
-
const rn = Q({
|
|
1309
|
-
prop: "color",
|
|
1310
|
-
themeKey: "palette",
|
|
1311
|
-
transform: Te
|
|
1312
|
-
}), tn = Q({
|
|
1313
|
-
prop: "bgcolor",
|
|
1314
|
-
cssProperty: "backgroundColor",
|
|
1315
|
-
themeKey: "palette",
|
|
1316
|
-
transform: Te
|
|
1317
|
-
}), nn = Q({
|
|
1318
|
-
prop: "backgroundColor",
|
|
1319
|
-
themeKey: "palette",
|
|
1320
|
-
transform: Te
|
|
1321
|
-
});
|
|
1322
|
-
Ve(rn, tn, nn);
|
|
1323
|
-
function ne(e) {
|
|
1324
|
-
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
1325
|
-
}
|
|
1326
|
-
const on = Q({
|
|
1327
|
-
prop: "width",
|
|
1328
|
-
transform: ne
|
|
1329
|
-
}), pr = (e) => {
|
|
1330
|
-
if (e.maxWidth !== void 0 && e.maxWidth !== null) {
|
|
1331
|
-
const r = (t) => {
|
|
1332
|
-
const n = e.theme?.breakpoints?.values?.[t] || je[t];
|
|
1333
|
-
return n ? e.theme?.breakpoints?.unit !== "px" ? {
|
|
1334
|
-
maxWidth: `${n}${e.theme.breakpoints.unit}`
|
|
1335
|
-
} : {
|
|
1336
|
-
maxWidth: n
|
|
1337
|
-
} : {
|
|
1338
|
-
maxWidth: ne(t)
|
|
1339
|
-
};
|
|
1340
|
-
};
|
|
1341
|
-
return de(e, e.maxWidth, r);
|
|
1342
|
-
}
|
|
1343
|
-
return null;
|
|
1344
|
-
};
|
|
1345
|
-
pr.filterProps = ["maxWidth"];
|
|
1346
|
-
const an = Q({
|
|
1347
|
-
prop: "minWidth",
|
|
1348
|
-
transform: ne
|
|
1349
|
-
}), sn = Q({
|
|
1350
|
-
prop: "height",
|
|
1351
|
-
transform: ne
|
|
1352
|
-
}), cn = Q({
|
|
1353
|
-
prop: "maxHeight",
|
|
1354
|
-
transform: ne
|
|
1355
|
-
}), un = Q({
|
|
1356
|
-
prop: "minHeight",
|
|
1357
|
-
transform: ne
|
|
1358
|
-
});
|
|
1359
|
-
Q({
|
|
1360
|
-
prop: "size",
|
|
1361
|
-
cssProperty: "width",
|
|
1362
|
-
transform: ne
|
|
1363
|
-
});
|
|
1364
|
-
Q({
|
|
1365
|
-
prop: "size",
|
|
1366
|
-
cssProperty: "height",
|
|
1367
|
-
transform: ne
|
|
1368
|
-
});
|
|
1369
|
-
const ln = Q({
|
|
1370
|
-
prop: "boxSizing"
|
|
1371
|
-
});
|
|
1372
|
-
Ve(on, pr, an, sn, cn, un, ln);
|
|
1373
|
-
const Ge = {
|
|
1374
|
-
// borders
|
|
1375
|
-
border: {
|
|
1376
|
-
themeKey: "borders",
|
|
1377
|
-
transform: oe
|
|
1378
|
-
},
|
|
1379
|
-
borderTop: {
|
|
1380
|
-
themeKey: "borders",
|
|
1381
|
-
transform: oe
|
|
1382
|
-
},
|
|
1383
|
-
borderRight: {
|
|
1384
|
-
themeKey: "borders",
|
|
1385
|
-
transform: oe
|
|
1386
|
-
},
|
|
1387
|
-
borderBottom: {
|
|
1388
|
-
themeKey: "borders",
|
|
1389
|
-
transform: oe
|
|
1390
|
-
},
|
|
1391
|
-
borderLeft: {
|
|
1392
|
-
themeKey: "borders",
|
|
1393
|
-
transform: oe
|
|
1394
|
-
},
|
|
1395
|
-
borderColor: {
|
|
1396
|
-
themeKey: "palette"
|
|
1397
|
-
},
|
|
1398
|
-
borderTopColor: {
|
|
1399
|
-
themeKey: "palette"
|
|
1400
|
-
},
|
|
1401
|
-
borderRightColor: {
|
|
1402
|
-
themeKey: "palette"
|
|
1403
|
-
},
|
|
1404
|
-
borderBottomColor: {
|
|
1405
|
-
themeKey: "palette"
|
|
1406
|
-
},
|
|
1407
|
-
borderLeftColor: {
|
|
1408
|
-
themeKey: "palette"
|
|
1409
|
-
},
|
|
1410
|
-
outline: {
|
|
1411
|
-
themeKey: "borders",
|
|
1412
|
-
transform: oe
|
|
1413
|
-
},
|
|
1414
|
-
outlineColor: {
|
|
1415
|
-
themeKey: "palette"
|
|
1416
|
-
},
|
|
1417
|
-
borderRadius: {
|
|
1418
|
-
themeKey: "shape.borderRadius",
|
|
1419
|
-
style: Ye
|
|
1420
|
-
},
|
|
1421
|
-
// palette
|
|
1422
|
-
color: {
|
|
1423
|
-
themeKey: "palette",
|
|
1424
|
-
transform: Te
|
|
1425
|
-
},
|
|
1426
|
-
bgcolor: {
|
|
1427
|
-
themeKey: "palette",
|
|
1428
|
-
cssProperty: "backgroundColor",
|
|
1429
|
-
transform: Te
|
|
1430
|
-
},
|
|
1431
|
-
backgroundColor: {
|
|
1432
|
-
themeKey: "palette",
|
|
1433
|
-
transform: Te
|
|
1434
|
-
},
|
|
1435
|
-
// spacing
|
|
1436
|
-
p: {
|
|
1437
|
-
style: H
|
|
1438
|
-
},
|
|
1439
|
-
pt: {
|
|
1440
|
-
style: H
|
|
1441
|
-
},
|
|
1442
|
-
pr: {
|
|
1443
|
-
style: H
|
|
1444
|
-
},
|
|
1445
|
-
pb: {
|
|
1446
|
-
style: H
|
|
1447
|
-
},
|
|
1448
|
-
pl: {
|
|
1449
|
-
style: H
|
|
1450
|
-
},
|
|
1451
|
-
px: {
|
|
1452
|
-
style: H
|
|
1453
|
-
},
|
|
1454
|
-
py: {
|
|
1455
|
-
style: H
|
|
1456
|
-
},
|
|
1457
|
-
padding: {
|
|
1458
|
-
style: H
|
|
1459
|
-
},
|
|
1460
|
-
paddingTop: {
|
|
1461
|
-
style: H
|
|
1462
|
-
},
|
|
1463
|
-
paddingRight: {
|
|
1464
|
-
style: H
|
|
1465
|
-
},
|
|
1466
|
-
paddingBottom: {
|
|
1467
|
-
style: H
|
|
1468
|
-
},
|
|
1469
|
-
paddingLeft: {
|
|
1470
|
-
style: H
|
|
1471
|
-
},
|
|
1472
|
-
paddingX: {
|
|
1473
|
-
style: H
|
|
1474
|
-
},
|
|
1475
|
-
paddingY: {
|
|
1476
|
-
style: H
|
|
1477
|
-
},
|
|
1478
|
-
paddingInline: {
|
|
1479
|
-
style: H
|
|
1480
|
-
},
|
|
1481
|
-
paddingInlineStart: {
|
|
1482
|
-
style: H
|
|
1483
|
-
},
|
|
1484
|
-
paddingInlineEnd: {
|
|
1485
|
-
style: H
|
|
1486
|
-
},
|
|
1487
|
-
paddingBlock: {
|
|
1488
|
-
style: H
|
|
1489
|
-
},
|
|
1490
|
-
paddingBlockStart: {
|
|
1491
|
-
style: H
|
|
1492
|
-
},
|
|
1493
|
-
paddingBlockEnd: {
|
|
1494
|
-
style: H
|
|
1495
|
-
},
|
|
1496
|
-
m: {
|
|
1497
|
-
style: K
|
|
1498
|
-
},
|
|
1499
|
-
mt: {
|
|
1500
|
-
style: K
|
|
1501
|
-
},
|
|
1502
|
-
mr: {
|
|
1503
|
-
style: K
|
|
1504
|
-
},
|
|
1505
|
-
mb: {
|
|
1506
|
-
style: K
|
|
1507
|
-
},
|
|
1508
|
-
ml: {
|
|
1509
|
-
style: K
|
|
1510
|
-
},
|
|
1511
|
-
mx: {
|
|
1512
|
-
style: K
|
|
1513
|
-
},
|
|
1514
|
-
my: {
|
|
1515
|
-
style: K
|
|
1516
|
-
},
|
|
1517
|
-
margin: {
|
|
1518
|
-
style: K
|
|
1519
|
-
},
|
|
1520
|
-
marginTop: {
|
|
1521
|
-
style: K
|
|
1522
|
-
},
|
|
1523
|
-
marginRight: {
|
|
1524
|
-
style: K
|
|
1525
|
-
},
|
|
1526
|
-
marginBottom: {
|
|
1527
|
-
style: K
|
|
1528
|
-
},
|
|
1529
|
-
marginLeft: {
|
|
1530
|
-
style: K
|
|
1531
|
-
},
|
|
1532
|
-
marginX: {
|
|
1533
|
-
style: K
|
|
1534
|
-
},
|
|
1535
|
-
marginY: {
|
|
1536
|
-
style: K
|
|
1537
|
-
},
|
|
1538
|
-
marginInline: {
|
|
1539
|
-
style: K
|
|
1540
|
-
},
|
|
1541
|
-
marginInlineStart: {
|
|
1542
|
-
style: K
|
|
1543
|
-
},
|
|
1544
|
-
marginInlineEnd: {
|
|
1545
|
-
style: K
|
|
1546
|
-
},
|
|
1547
|
-
marginBlock: {
|
|
1548
|
-
style: K
|
|
1549
|
-
},
|
|
1550
|
-
marginBlockStart: {
|
|
1551
|
-
style: K
|
|
1552
|
-
},
|
|
1553
|
-
marginBlockEnd: {
|
|
1554
|
-
style: K
|
|
1555
|
-
},
|
|
1556
|
-
// display
|
|
1557
|
-
displayPrint: {
|
|
1558
|
-
cssProperty: !1,
|
|
1559
|
-
transform: (e) => ({
|
|
1560
|
-
"@media print": {
|
|
1561
|
-
display: e
|
|
1562
|
-
}
|
|
1563
|
-
})
|
|
1564
|
-
},
|
|
1565
|
-
display: {},
|
|
1566
|
-
overflow: {},
|
|
1567
|
-
textOverflow: {},
|
|
1568
|
-
visibility: {},
|
|
1569
|
-
whiteSpace: {},
|
|
1570
|
-
// flexbox
|
|
1571
|
-
flexBasis: {},
|
|
1572
|
-
flexDirection: {},
|
|
1573
|
-
flexWrap: {},
|
|
1574
|
-
justifyContent: {},
|
|
1575
|
-
alignItems: {},
|
|
1576
|
-
alignContent: {},
|
|
1577
|
-
order: {},
|
|
1578
|
-
flex: {},
|
|
1579
|
-
flexGrow: {},
|
|
1580
|
-
flexShrink: {},
|
|
1581
|
-
alignSelf: {},
|
|
1582
|
-
justifyItems: {},
|
|
1583
|
-
justifySelf: {},
|
|
1584
|
-
// grid
|
|
1585
|
-
gap: {
|
|
1586
|
-
style: Ue
|
|
1587
|
-
},
|
|
1588
|
-
rowGap: {
|
|
1589
|
-
style: qe
|
|
1590
|
-
},
|
|
1591
|
-
columnGap: {
|
|
1592
|
-
style: ze
|
|
1593
|
-
},
|
|
1594
|
-
gridColumn: {},
|
|
1595
|
-
gridRow: {},
|
|
1596
|
-
gridAutoFlow: {},
|
|
1597
|
-
gridAutoColumns: {},
|
|
1598
|
-
gridAutoRows: {},
|
|
1599
|
-
gridTemplateColumns: {},
|
|
1600
|
-
gridTemplateRows: {},
|
|
1601
|
-
gridTemplateAreas: {},
|
|
1602
|
-
gridArea: {},
|
|
1603
|
-
// positions
|
|
1604
|
-
position: {},
|
|
1605
|
-
zIndex: {
|
|
1606
|
-
themeKey: "zIndex"
|
|
1607
|
-
},
|
|
1608
|
-
top: {},
|
|
1609
|
-
right: {},
|
|
1610
|
-
bottom: {},
|
|
1611
|
-
left: {},
|
|
1612
|
-
// shadows
|
|
1613
|
-
boxShadow: {
|
|
1614
|
-
themeKey: "shadows"
|
|
1615
|
-
},
|
|
1616
|
-
// sizing
|
|
1617
|
-
width: {
|
|
1618
|
-
transform: ne
|
|
1619
|
-
},
|
|
1620
|
-
maxWidth: {
|
|
1621
|
-
style: pr
|
|
1622
|
-
},
|
|
1623
|
-
minWidth: {
|
|
1624
|
-
transform: ne
|
|
1625
|
-
},
|
|
1626
|
-
height: {
|
|
1627
|
-
transform: ne
|
|
1628
|
-
},
|
|
1629
|
-
maxHeight: {
|
|
1630
|
-
transform: ne
|
|
1631
|
-
},
|
|
1632
|
-
minHeight: {
|
|
1633
|
-
transform: ne
|
|
1634
|
-
},
|
|
1635
|
-
boxSizing: {},
|
|
1636
|
-
// typography
|
|
1637
|
-
font: {
|
|
1638
|
-
themeKey: "font"
|
|
1639
|
-
},
|
|
1640
|
-
fontFamily: {
|
|
1641
|
-
themeKey: "typography"
|
|
1642
|
-
},
|
|
1643
|
-
fontSize: {
|
|
1644
|
-
themeKey: "typography"
|
|
1645
|
-
},
|
|
1646
|
-
fontStyle: {
|
|
1647
|
-
themeKey: "typography"
|
|
1648
|
-
},
|
|
1649
|
-
fontWeight: {
|
|
1650
|
-
themeKey: "typography"
|
|
1651
|
-
},
|
|
1652
|
-
letterSpacing: {},
|
|
1653
|
-
textTransform: {},
|
|
1654
|
-
lineHeight: {},
|
|
1655
|
-
textAlign: {},
|
|
1656
|
-
typography: {
|
|
1657
|
-
cssProperty: !1,
|
|
1658
|
-
themeKey: "typography"
|
|
1659
|
-
}
|
|
1660
|
-
};
|
|
1661
|
-
function fn(...e) {
|
|
1662
|
-
const r = e.reduce((n, o) => n.concat(Object.keys(o)), []), t = new Set(r);
|
|
1663
|
-
return e.every((n) => t.size === Object.keys(n).length);
|
|
1664
|
-
}
|
|
1665
|
-
function dn(e, r) {
|
|
1666
|
-
return typeof e == "function" ? e(r) : e;
|
|
1667
|
-
}
|
|
1668
|
-
function pn() {
|
|
1669
|
-
function e(t, n, o, a) {
|
|
1670
|
-
const c = {
|
|
1671
|
-
[t]: n,
|
|
1672
|
-
theme: o
|
|
1673
|
-
}, u = a[t];
|
|
1674
|
-
if (!u)
|
|
1675
|
-
return {
|
|
1676
|
-
[t]: n
|
|
1677
|
-
};
|
|
1678
|
-
const {
|
|
1679
|
-
cssProperty: f = t,
|
|
1680
|
-
themeKey: d,
|
|
1681
|
-
transform: h,
|
|
1682
|
-
style: p
|
|
1683
|
-
} = u;
|
|
1684
|
-
if (n == null)
|
|
1685
|
-
return null;
|
|
1686
|
-
if (d === "typography" && n === "inherit")
|
|
1687
|
-
return {
|
|
1688
|
-
[t]: n
|
|
1689
|
-
};
|
|
1690
|
-
const m = Fe(o, d) || {};
|
|
1691
|
-
return p ? p(c) : de(c, n, (b) => {
|
|
1692
|
-
let s = De(m, h, b);
|
|
1693
|
-
return b === s && typeof b == "string" && (s = De(m, h, `${t}${b === "default" ? "" : Hr(b)}`, b)), f === !1 ? s : {
|
|
1694
|
-
[f]: s
|
|
1695
|
-
};
|
|
1696
|
-
});
|
|
1697
|
-
}
|
|
1698
|
-
function r(t) {
|
|
1699
|
-
const {
|
|
1700
|
-
sx: n,
|
|
1701
|
-
theme: o = {},
|
|
1702
|
-
nested: a
|
|
1703
|
-
} = t || {};
|
|
1704
|
-
if (!n)
|
|
1705
|
-
return null;
|
|
1706
|
-
const c = o.unstable_sxConfig ?? Ge;
|
|
1707
|
-
function u(f) {
|
|
1708
|
-
let d = f;
|
|
1709
|
-
if (typeof f == "function")
|
|
1710
|
-
d = f(o);
|
|
1711
|
-
else if (typeof f != "object")
|
|
1712
|
-
return f;
|
|
1713
|
-
if (!d)
|
|
1714
|
-
return null;
|
|
1715
|
-
const h = Kr(o.breakpoints), p = Object.keys(h);
|
|
1716
|
-
let m = h;
|
|
1717
|
-
return Object.keys(d).forEach((v) => {
|
|
1718
|
-
const b = dn(d[v], o);
|
|
1719
|
-
if (b != null)
|
|
1720
|
-
if (typeof b == "object")
|
|
1721
|
-
if (c[v])
|
|
1722
|
-
m = _e(m, e(v, b, o, c));
|
|
1723
|
-
else {
|
|
1724
|
-
const s = de({
|
|
1725
|
-
theme: o
|
|
1726
|
-
}, b, (E) => ({
|
|
1727
|
-
[v]: E
|
|
1728
|
-
}));
|
|
1729
|
-
fn(s, b) ? m[v] = r({
|
|
1730
|
-
sx: b,
|
|
1731
|
-
theme: o,
|
|
1732
|
-
nested: !0
|
|
1733
|
-
}) : m = _e(m, s);
|
|
1734
|
-
}
|
|
1735
|
-
else
|
|
1736
|
-
m = _e(m, e(v, b, o, c));
|
|
1737
|
-
}), !a && o.modularCssLayers ? {
|
|
1738
|
-
"@layer sx": Rr(o, sr(p, m))
|
|
1739
|
-
} : Rr(o, sr(p, m));
|
|
1740
|
-
}
|
|
1741
|
-
return Array.isArray(n) ? n.map(u) : u(n);
|
|
1742
|
-
}
|
|
1743
|
-
return r;
|
|
1744
|
-
}
|
|
1745
|
-
const Ke = pn();
|
|
1746
|
-
Ke.filterProps = ["sx"];
|
|
1747
|
-
function mn(e, r) {
|
|
1748
|
-
const t = this;
|
|
1749
|
-
if (t.vars) {
|
|
1750
|
-
if (!t.colorSchemes?.[e] || typeof t.getColorSchemeSelector != "function")
|
|
1751
|
-
return {};
|
|
1752
|
-
let n = t.getColorSchemeSelector(e);
|
|
1753
|
-
return n === "&" ? r : ((n.includes("data-") || n.includes(".")) && (n = `*:where(${n.replace(/\s*&$/, "")}) &`), {
|
|
1754
|
-
[n]: r
|
|
1755
|
-
});
|
|
1756
|
-
}
|
|
1757
|
-
return t.palette.mode === e ? r : {};
|
|
1758
|
-
}
|
|
1759
|
-
function gn(e = {}, ...r) {
|
|
1760
|
-
const {
|
|
1761
|
-
breakpoints: t = {},
|
|
1762
|
-
palette: n = {},
|
|
1763
|
-
spacing: o,
|
|
1764
|
-
shape: a = {},
|
|
1765
|
-
...c
|
|
1766
|
-
} = e, u = St(t), f = Xr(o);
|
|
1767
|
-
let d = te({
|
|
1768
|
-
breakpoints: u,
|
|
1769
|
-
direction: "ltr",
|
|
1770
|
-
components: {},
|
|
1771
|
-
// Inject component definitions.
|
|
1772
|
-
palette: {
|
|
1773
|
-
mode: "light",
|
|
1774
|
-
...n
|
|
1775
|
-
},
|
|
1776
|
-
spacing: f,
|
|
1777
|
-
shape: {
|
|
1778
|
-
...$t,
|
|
1779
|
-
...a
|
|
1780
|
-
}
|
|
1781
|
-
}, c);
|
|
1782
|
-
return d = Tt(d), d.applyStyles = mn, d = r.reduce((h, p) => te(h, p), d), d.unstable_sxConfig = {
|
|
1783
|
-
...Ge,
|
|
1784
|
-
...c?.unstable_sxConfig
|
|
1785
|
-
}, d.unstable_sx = function(p) {
|
|
1786
|
-
return Ke({
|
|
1787
|
-
sx: p,
|
|
1788
|
-
theme: this
|
|
1789
|
-
});
|
|
1790
|
-
}, d;
|
|
1791
|
-
}
|
|
1792
|
-
const Ir = (e) => e, hn = () => {
|
|
1793
|
-
let e = Ir;
|
|
1794
|
-
return {
|
|
1795
|
-
configure(r) {
|
|
1796
|
-
e = r;
|
|
1797
|
-
},
|
|
1798
|
-
generate(r) {
|
|
1799
|
-
return e(r);
|
|
1800
|
-
},
|
|
1801
|
-
reset() {
|
|
1802
|
-
e = Ir;
|
|
1803
|
-
}
|
|
1804
|
-
};
|
|
1805
|
-
}, yn = hn(), bn = {
|
|
1806
|
-
active: "active",
|
|
1807
|
-
checked: "checked",
|
|
1808
|
-
completed: "completed",
|
|
1809
|
-
disabled: "disabled",
|
|
1810
|
-
error: "error",
|
|
1811
|
-
expanded: "expanded",
|
|
1812
|
-
focused: "focused",
|
|
1813
|
-
focusVisible: "focusVisible",
|
|
1814
|
-
open: "open",
|
|
1815
|
-
readOnly: "readOnly",
|
|
1816
|
-
required: "required",
|
|
1817
|
-
selected: "selected"
|
|
1818
|
-
};
|
|
1819
|
-
function vn(e, r, t = "Mui") {
|
|
1820
|
-
const n = bn[r];
|
|
1821
|
-
return n ? `${t}-${n}` : `${yn.generate(e)}-${r}`;
|
|
1822
|
-
}
|
|
1823
|
-
function Sn(e, r = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
1824
|
-
return Math.max(r, Math.min(e, t));
|
|
1825
|
-
}
|
|
1826
|
-
function mr(e, r = 0, t = 1) {
|
|
1827
|
-
return process.env.NODE_ENV !== "production" && (e < r || e > t) && console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`), Sn(e, r, t);
|
|
1828
|
-
}
|
|
1829
|
-
function En(e) {
|
|
1830
|
-
e = e.slice(1);
|
|
1831
|
-
const r = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
|
|
1832
|
-
let t = e.match(r);
|
|
1833
|
-
return t && t[0].length === 1 && (t = t.map((n) => n + n)), process.env.NODE_ENV !== "production" && e.length !== e.trim().length && console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`), t ? `rgb${t.length === 4 ? "a" : ""}(${t.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
1834
|
-
}
|
|
1835
|
-
function ge(e) {
|
|
1836
|
-
if (e.type)
|
|
1837
|
-
return e;
|
|
1838
|
-
if (e.charAt(0) === "#")
|
|
1839
|
-
return ge(En(e));
|
|
1840
|
-
const r = e.indexOf("("), t = e.substring(0, r);
|
|
1841
|
-
if (!["rgb", "rgba", "hsl", "hsla", "color"].includes(t))
|
|
1842
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
|
|
1843
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : me(9, e));
|
|
1844
|
-
let n = e.substring(r + 1, e.length - 1), o;
|
|
1845
|
-
if (t === "color") {
|
|
1846
|
-
if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), !["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].includes(o))
|
|
1847
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
|
|
1848
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : me(10, o));
|
|
1849
|
-
} else
|
|
1850
|
-
n = n.split(",");
|
|
1851
|
-
return n = n.map((a) => parseFloat(a)), {
|
|
1852
|
-
type: t,
|
|
1853
|
-
values: n,
|
|
1854
|
-
colorSpace: o
|
|
1855
|
-
};
|
|
1856
|
-
}
|
|
1857
|
-
const Cn = (e) => {
|
|
1858
|
-
const r = ge(e);
|
|
1859
|
-
return r.values.slice(0, 3).map((t, n) => r.type.includes("hsl") && n !== 0 ? `${t}%` : t).join(" ");
|
|
1860
|
-
}, xe = (e, r) => {
|
|
1861
|
-
try {
|
|
1862
|
-
return Cn(e);
|
|
1863
|
-
} catch {
|
|
1864
|
-
return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
|
|
1865
|
-
}
|
|
1866
|
-
};
|
|
1867
|
-
function He(e) {
|
|
1868
|
-
const {
|
|
1869
|
-
type: r,
|
|
1870
|
-
colorSpace: t
|
|
1871
|
-
} = e;
|
|
1872
|
-
let {
|
|
1873
|
-
values: n
|
|
1874
|
-
} = e;
|
|
1875
|
-
return r.includes("rgb") ? n = n.map((o, a) => a < 3 ? parseInt(o, 10) : o) : r.includes("hsl") && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), r.includes("color") ? n = `${t} ${n.join(" ")}` : n = `${n.join(", ")}`, `${r}(${n})`;
|
|
1876
|
-
}
|
|
1877
|
-
function Jr(e) {
|
|
1878
|
-
e = ge(e);
|
|
1879
|
-
const {
|
|
1880
|
-
values: r
|
|
1881
|
-
} = e, t = r[0], n = r[1] / 100, o = r[2] / 100, a = n * Math.min(o, 1 - o), c = (d, h = (d + t / 30) % 12) => o - a * Math.max(Math.min(h - 3, 9 - h, 1), -1);
|
|
1882
|
-
let u = "rgb";
|
|
1883
|
-
const f = [Math.round(c(0) * 255), Math.round(c(8) * 255), Math.round(c(4) * 255)];
|
|
1884
|
-
return e.type === "hsla" && (u += "a", f.push(r[3])), He({
|
|
1885
|
-
type: u,
|
|
1886
|
-
values: f
|
|
1887
|
-
});
|
|
1888
|
-
}
|
|
1889
|
-
function cr(e) {
|
|
1890
|
-
e = ge(e);
|
|
1891
|
-
let r = e.type === "hsl" || e.type === "hsla" ? ge(Jr(e)).values : e.values;
|
|
1892
|
-
return r = r.map((t) => (e.type !== "color" && (t /= 255), t <= 0.03928 ? t / 12.92 : ((t + 0.055) / 1.055) ** 2.4)), Number((0.2126 * r[0] + 0.7152 * r[1] + 0.0722 * r[2]).toFixed(3));
|
|
1893
|
-
}
|
|
1894
|
-
function Nr(e, r) {
|
|
1895
|
-
const t = cr(e), n = cr(r);
|
|
1896
|
-
return (Math.max(t, n) + 0.05) / (Math.min(t, n) + 0.05);
|
|
1897
|
-
}
|
|
1898
|
-
function Zr(e, r) {
|
|
1899
|
-
return e = ge(e), r = mr(r), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${r}` : e.values[3] = r, He(e);
|
|
1900
|
-
}
|
|
1901
|
-
function ye(e, r, t) {
|
|
1902
|
-
try {
|
|
1903
|
-
return Zr(e, r);
|
|
1904
|
-
} catch {
|
|
1905
|
-
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
1906
|
-
}
|
|
1907
|
-
}
|
|
1908
|
-
function Qe(e, r) {
|
|
1909
|
-
if (e = ge(e), r = mr(r), e.type.includes("hsl"))
|
|
1910
|
-
e.values[2] *= 1 - r;
|
|
1911
|
-
else if (e.type.includes("rgb") || e.type.includes("color"))
|
|
1912
|
-
for (let t = 0; t < 3; t += 1)
|
|
1913
|
-
e.values[t] *= 1 - r;
|
|
1914
|
-
return He(e);
|
|
1915
|
-
}
|
|
1916
|
-
function Y(e, r, t) {
|
|
1917
|
-
try {
|
|
1918
|
-
return Qe(e, r);
|
|
1919
|
-
} catch {
|
|
1920
|
-
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
function Xe(e, r) {
|
|
1924
|
-
if (e = ge(e), r = mr(r), e.type.includes("hsl"))
|
|
1925
|
-
e.values[2] += (100 - e.values[2]) * r;
|
|
1926
|
-
else if (e.type.includes("rgb"))
|
|
1927
|
-
for (let t = 0; t < 3; t += 1)
|
|
1928
|
-
e.values[t] += (255 - e.values[t]) * r;
|
|
1929
|
-
else if (e.type.includes("color"))
|
|
1930
|
-
for (let t = 0; t < 3; t += 1)
|
|
1931
|
-
e.values[t] += (1 - e.values[t]) * r;
|
|
1932
|
-
return He(e);
|
|
1933
|
-
}
|
|
1934
|
-
function U(e, r, t) {
|
|
1935
|
-
try {
|
|
1936
|
-
return Xe(e, r);
|
|
1937
|
-
} catch {
|
|
1938
|
-
return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
|
|
1939
|
-
}
|
|
1940
|
-
}
|
|
1941
|
-
function Tn(e, r = 0.15) {
|
|
1942
|
-
return cr(e) > 0.5 ? Qe(e, r) : Xe(e, r);
|
|
1943
|
-
}
|
|
1944
|
-
function Be(e, r, t) {
|
|
1945
|
-
try {
|
|
1946
|
-
return Tn(e, r);
|
|
1947
|
-
} catch {
|
|
1948
|
-
return e;
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
function $n(e = "") {
|
|
1952
|
-
function r(...n) {
|
|
1953
|
-
if (!n.length)
|
|
1954
|
-
return "";
|
|
1955
|
-
const o = n[0];
|
|
1956
|
-
return typeof o == "string" && !o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/) ? `, var(--${e ? `${e}-` : ""}${o}${r(...n.slice(1))})` : `, ${o}`;
|
|
1957
|
-
}
|
|
1958
|
-
return (n, ...o) => `var(--${e ? `${e}-` : ""}${n}${r(...o)})`;
|
|
1959
|
-
}
|
|
1960
|
-
const Mr = (e, r, t, n = []) => {
|
|
1961
|
-
let o = e;
|
|
1962
|
-
r.forEach((a, c) => {
|
|
1963
|
-
c === r.length - 1 ? Array.isArray(o) ? o[Number(a)] = t : o && typeof o == "object" && (o[a] = t) : o && typeof o == "object" && (o[a] || (o[a] = n.includes(a) ? [] : {}), o = o[a]);
|
|
1964
|
-
});
|
|
1965
|
-
}, On = (e, r, t) => {
|
|
1966
|
-
function n(o, a = [], c = []) {
|
|
1967
|
-
Object.entries(o).forEach(([u, f]) => {
|
|
1968
|
-
(!t || t && !t([...a, u])) && f != null && (typeof f == "object" && Object.keys(f).length > 0 ? n(f, [...a, u], Array.isArray(f) ? [...c, u] : c) : r([...a, u], f, c));
|
|
1969
|
-
});
|
|
1970
|
-
}
|
|
1971
|
-
n(e);
|
|
1972
|
-
}, xn = (e, r) => typeof r == "number" ? ["lineHeight", "fontWeight", "opacity", "zIndex"].some((n) => e.includes(n)) || e[e.length - 1].toLowerCase().includes("opacity") ? r : `${r}px` : r;
|
|
1973
|
-
function ir(e, r) {
|
|
1974
|
-
const {
|
|
1975
|
-
prefix: t,
|
|
1976
|
-
shouldSkipGeneratingVar: n
|
|
1977
|
-
} = r || {}, o = {}, a = {}, c = {};
|
|
1978
|
-
return On(
|
|
1979
|
-
e,
|
|
1980
|
-
(u, f, d) => {
|
|
1981
|
-
if ((typeof f == "string" || typeof f == "number") && (!n || !n(u, f))) {
|
|
1982
|
-
const h = `--${t ? `${t}-` : ""}${u.join("-")}`, p = xn(u, f);
|
|
1983
|
-
Object.assign(o, {
|
|
1984
|
-
[h]: p
|
|
1985
|
-
}), Mr(a, u, `var(${h})`, d), Mr(c, u, `var(${h}, ${p})`, d);
|
|
1986
|
-
}
|
|
1987
|
-
},
|
|
1988
|
-
(u) => u[0] === "vars"
|
|
1989
|
-
// skip 'vars/*' paths
|
|
1990
|
-
), {
|
|
1991
|
-
css: o,
|
|
1992
|
-
vars: a,
|
|
1993
|
-
varsWithDefaults: c
|
|
1994
|
-
};
|
|
1995
|
-
}
|
|
1996
|
-
function wn(e, r = {}) {
|
|
1997
|
-
const {
|
|
1998
|
-
getSelector: t = _,
|
|
1999
|
-
disableCssColorScheme: n,
|
|
2000
|
-
colorSchemeSelector: o,
|
|
2001
|
-
enableContrastVars: a
|
|
2002
|
-
} = r, {
|
|
2003
|
-
colorSchemes: c = {},
|
|
2004
|
-
components: u,
|
|
2005
|
-
defaultColorScheme: f = "light",
|
|
2006
|
-
...d
|
|
2007
|
-
} = e, {
|
|
2008
|
-
vars: h,
|
|
2009
|
-
css: p,
|
|
2010
|
-
varsWithDefaults: m
|
|
2011
|
-
} = ir(d, r);
|
|
2012
|
-
let v = m;
|
|
2013
|
-
const b = {}, {
|
|
2014
|
-
[f]: s,
|
|
2015
|
-
...E
|
|
2016
|
-
} = c;
|
|
2017
|
-
if (Object.entries(E || {}).forEach(([$, y]) => {
|
|
2018
|
-
const {
|
|
2019
|
-
vars: x,
|
|
2020
|
-
css: ae,
|
|
2021
|
-
varsWithDefaults: le
|
|
2022
|
-
} = ir(y, r);
|
|
2023
|
-
v = te(v, le), b[$] = {
|
|
2024
|
-
css: ae,
|
|
2025
|
-
vars: x
|
|
2026
|
-
};
|
|
2027
|
-
}), s) {
|
|
2028
|
-
const {
|
|
2029
|
-
css: $,
|
|
2030
|
-
vars: y,
|
|
2031
|
-
varsWithDefaults: x
|
|
2032
|
-
} = ir(s, r);
|
|
2033
|
-
v = te(v, x), b[f] = {
|
|
2034
|
-
css: $,
|
|
2035
|
-
vars: y
|
|
2036
|
-
};
|
|
2037
|
-
}
|
|
2038
|
-
function _($, y) {
|
|
2039
|
-
let x = o;
|
|
2040
|
-
if (o === "class" && (x = ".%s"), o === "data" && (x = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (x = `[${o}="%s"]`), $) {
|
|
2041
|
-
if (x === "media")
|
|
2042
|
-
return e.defaultColorScheme === $ ? ":root" : {
|
|
2043
|
-
[`@media (prefers-color-scheme: ${c[$]?.palette?.mode || $})`]: {
|
|
2044
|
-
":root": y
|
|
2045
|
-
}
|
|
2046
|
-
};
|
|
2047
|
-
if (x)
|
|
2048
|
-
return e.defaultColorScheme === $ ? `:root, ${x.replace("%s", String($))}` : x.replace("%s", String($));
|
|
2049
|
-
}
|
|
2050
|
-
return ":root";
|
|
2051
|
-
}
|
|
2052
|
-
return {
|
|
2053
|
-
vars: v,
|
|
2054
|
-
generateThemeVars: () => {
|
|
2055
|
-
let $ = {
|
|
2056
|
-
...h
|
|
2057
|
-
};
|
|
2058
|
-
return Object.entries(b).forEach(([, {
|
|
2059
|
-
vars: y
|
|
2060
|
-
}]) => {
|
|
2061
|
-
$ = te($, y);
|
|
2062
|
-
}), $;
|
|
2063
|
-
},
|
|
2064
|
-
generateStyleSheets: () => {
|
|
2065
|
-
const $ = [], y = e.defaultColorScheme || "light";
|
|
2066
|
-
function x(J, Z) {
|
|
2067
|
-
Object.keys(Z).length && $.push(typeof J == "string" ? {
|
|
2068
|
-
[J]: {
|
|
2069
|
-
...Z
|
|
2070
|
-
}
|
|
2071
|
-
} : J);
|
|
2072
|
-
}
|
|
2073
|
-
x(t(void 0, {
|
|
2074
|
-
...p
|
|
2075
|
-
}), p);
|
|
2076
|
-
const {
|
|
2077
|
-
[y]: ae,
|
|
2078
|
-
...le
|
|
2079
|
-
} = b;
|
|
2080
|
-
if (ae) {
|
|
2081
|
-
const {
|
|
2082
|
-
css: J
|
|
2083
|
-
} = ae, Z = c[y]?.palette?.mode, X = !n && Z ? {
|
|
2084
|
-
colorScheme: Z,
|
|
2085
|
-
...J
|
|
2086
|
-
} : {
|
|
2087
|
-
...J
|
|
2088
|
-
};
|
|
2089
|
-
x(t(y, {
|
|
2090
|
-
...X
|
|
2091
|
-
}), X);
|
|
2092
|
-
}
|
|
2093
|
-
return Object.entries(le).forEach(([J, {
|
|
2094
|
-
css: Z
|
|
2095
|
-
}]) => {
|
|
2096
|
-
const X = c[J]?.palette?.mode, i = !n && X ? {
|
|
2097
|
-
colorScheme: X,
|
|
2098
|
-
...Z
|
|
2099
|
-
} : {
|
|
2100
|
-
...Z
|
|
2101
|
-
};
|
|
2102
|
-
x(t(J, {
|
|
2103
|
-
...i
|
|
2104
|
-
}), i);
|
|
2105
|
-
}), a && $.push({
|
|
2106
|
-
":root": {
|
|
2107
|
-
// use double underscore to indicate that these are private variables
|
|
2108
|
-
"--__l-threshold": "0.7",
|
|
2109
|
-
"--__l": "clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)",
|
|
2110
|
-
"--__a": "clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"
|
|
2111
|
-
// 0.87 is the default alpha value for black text.
|
|
2112
|
-
}
|
|
2113
|
-
}), $;
|
|
2114
|
-
}
|
|
2115
|
-
};
|
|
2116
|
-
}
|
|
2117
|
-
function _n(e) {
|
|
2118
|
-
return function(t) {
|
|
2119
|
-
return e === "media" ? (process.env.NODE_ENV !== "production" && t !== "light" && t !== "dark" && console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`), `@media (prefers-color-scheme: ${t})`) : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${t}"] &` : e === "class" ? `.${t} &` : e === "data" ? `[data-${t}] &` : `${e.replace("%s", t)} &` : "&";
|
|
2120
|
-
};
|
|
2121
|
-
}
|
|
2122
|
-
function et() {
|
|
2123
|
-
return {
|
|
2124
|
-
// The colors used to style the text.
|
|
2125
|
-
text: {
|
|
2126
|
-
// The most important text.
|
|
2127
|
-
primary: "rgba(0, 0, 0, 0.87)",
|
|
2128
|
-
// Secondary text.
|
|
2129
|
-
secondary: "rgba(0, 0, 0, 0.6)",
|
|
2130
|
-
// Disabled text have even lower visual prominence.
|
|
2131
|
-
disabled: "rgba(0, 0, 0, 0.38)"
|
|
2132
|
-
},
|
|
2133
|
-
// The color used to divide different elements.
|
|
2134
|
-
divider: "rgba(0, 0, 0, 0.12)",
|
|
2135
|
-
// The background colors used to style the surfaces.
|
|
2136
|
-
// Consistency between these values is important.
|
|
2137
|
-
background: {
|
|
2138
|
-
paper: Ae.white,
|
|
2139
|
-
default: Ae.white
|
|
2140
|
-
},
|
|
2141
|
-
// The colors used to style the action elements.
|
|
2142
|
-
action: {
|
|
2143
|
-
// The color of an active action like an icon button.
|
|
2144
|
-
active: "rgba(0, 0, 0, 0.54)",
|
|
2145
|
-
// The color of an hovered action.
|
|
2146
|
-
hover: "rgba(0, 0, 0, 0.04)",
|
|
2147
|
-
hoverOpacity: 0.04,
|
|
2148
|
-
// The color of a selected action.
|
|
2149
|
-
selected: "rgba(0, 0, 0, 0.08)",
|
|
2150
|
-
selectedOpacity: 0.08,
|
|
2151
|
-
// The color of a disabled action.
|
|
2152
|
-
disabled: "rgba(0, 0, 0, 0.26)",
|
|
2153
|
-
// The background color of a disabled action.
|
|
2154
|
-
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
2155
|
-
disabledOpacity: 0.38,
|
|
2156
|
-
focus: "rgba(0, 0, 0, 0.12)",
|
|
2157
|
-
focusOpacity: 0.12,
|
|
2158
|
-
activatedOpacity: 0.12
|
|
2159
|
-
}
|
|
2160
|
-
};
|
|
2161
|
-
}
|
|
2162
|
-
const rt = et();
|
|
2163
|
-
function tt() {
|
|
2164
|
-
return {
|
|
2165
|
-
text: {
|
|
2166
|
-
primary: Ae.white,
|
|
2167
|
-
secondary: "rgba(255, 255, 255, 0.7)",
|
|
2168
|
-
disabled: "rgba(255, 255, 255, 0.5)",
|
|
2169
|
-
icon: "rgba(255, 255, 255, 0.5)"
|
|
2170
|
-
},
|
|
2171
|
-
divider: "rgba(255, 255, 255, 0.12)",
|
|
2172
|
-
background: {
|
|
2173
|
-
paper: "#121212",
|
|
2174
|
-
default: "#121212"
|
|
2175
|
-
},
|
|
2176
|
-
action: {
|
|
2177
|
-
active: Ae.white,
|
|
2178
|
-
hover: "rgba(255, 255, 255, 0.08)",
|
|
2179
|
-
hoverOpacity: 0.08,
|
|
2180
|
-
selected: "rgba(255, 255, 255, 0.16)",
|
|
2181
|
-
selectedOpacity: 0.16,
|
|
2182
|
-
disabled: "rgba(255, 255, 255, 0.3)",
|
|
2183
|
-
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
2184
|
-
disabledOpacity: 0.38,
|
|
2185
|
-
focus: "rgba(255, 255, 255, 0.12)",
|
|
2186
|
-
focusOpacity: 0.12,
|
|
2187
|
-
activatedOpacity: 0.24
|
|
2188
|
-
}
|
|
2189
|
-
};
|
|
2190
|
-
}
|
|
2191
|
-
const ur = tt();
|
|
2192
|
-
function Br(e, r, t, n) {
|
|
2193
|
-
const o = n.light || n, a = n.dark || n * 1.5;
|
|
2194
|
-
e[r] || (e.hasOwnProperty(t) ? e[r] = e[t] : r === "light" ? e.light = Xe(e.main, o) : r === "dark" && (e.dark = Qe(e.main, a)));
|
|
2195
|
-
}
|
|
2196
|
-
function Dr(e, r, t, n, o) {
|
|
2197
|
-
const a = o.light || o, c = o.dark || o * 1.5;
|
|
2198
|
-
r[t] || (r.hasOwnProperty(n) ? r[t] = r[n] : t === "light" ? r.light = `color-mix(in ${e}, ${r.main}, #fff ${(a * 100).toFixed(0)}%)` : t === "dark" && (r.dark = `color-mix(in ${e}, ${r.main}, #000 ${(c * 100).toFixed(0)}%)`));
|
|
2199
|
-
}
|
|
2200
|
-
function An(e = "light") {
|
|
2201
|
-
return e === "dark" ? {
|
|
2202
|
-
main: Se[200],
|
|
2203
|
-
light: Se[50],
|
|
2204
|
-
dark: Se[400]
|
|
2205
|
-
} : {
|
|
2206
|
-
main: Se[700],
|
|
2207
|
-
light: Se[400],
|
|
2208
|
-
dark: Se[800]
|
|
2209
|
-
};
|
|
2210
|
-
}
|
|
2211
|
-
function Rn(e = "light") {
|
|
2212
|
-
return e === "dark" ? {
|
|
2213
|
-
main: ve[200],
|
|
2214
|
-
light: ve[50],
|
|
2215
|
-
dark: ve[400]
|
|
2216
|
-
} : {
|
|
2217
|
-
main: ve[500],
|
|
2218
|
-
light: ve[300],
|
|
2219
|
-
dark: ve[700]
|
|
2220
|
-
};
|
|
2221
|
-
}
|
|
2222
|
-
function Pn(e = "light") {
|
|
2223
|
-
return e === "dark" ? {
|
|
2224
|
-
main: be[500],
|
|
2225
|
-
light: be[300],
|
|
2226
|
-
dark: be[700]
|
|
2227
|
-
} : {
|
|
2228
|
-
main: be[700],
|
|
2229
|
-
light: be[400],
|
|
2230
|
-
dark: be[800]
|
|
2231
|
-
};
|
|
2232
|
-
}
|
|
2233
|
-
function kn(e = "light") {
|
|
2234
|
-
return e === "dark" ? {
|
|
2235
|
-
main: Ee[400],
|
|
2236
|
-
light: Ee[300],
|
|
2237
|
-
dark: Ee[700]
|
|
2238
|
-
} : {
|
|
2239
|
-
main: Ee[700],
|
|
2240
|
-
light: Ee[500],
|
|
2241
|
-
dark: Ee[900]
|
|
2242
|
-
};
|
|
2243
|
-
}
|
|
2244
|
-
function In(e = "light") {
|
|
2245
|
-
return e === "dark" ? {
|
|
2246
|
-
main: Ce[400],
|
|
2247
|
-
light: Ce[300],
|
|
2248
|
-
dark: Ce[700]
|
|
2249
|
-
} : {
|
|
2250
|
-
main: Ce[800],
|
|
2251
|
-
light: Ce[500],
|
|
2252
|
-
dark: Ce[900]
|
|
2253
|
-
};
|
|
2254
|
-
}
|
|
2255
|
-
function Nn(e = "light") {
|
|
2256
|
-
return e === "dark" ? {
|
|
2257
|
-
main: $e[400],
|
|
2258
|
-
light: $e[300],
|
|
2259
|
-
dark: $e[700]
|
|
2260
|
-
} : {
|
|
2261
|
-
main: "#ed6c02",
|
|
2262
|
-
// closest to orange[800] that pass 3:1.
|
|
2263
|
-
light: $e[500],
|
|
2264
|
-
dark: $e[900]
|
|
2265
|
-
};
|
|
2266
|
-
}
|
|
2267
|
-
function Mn(e) {
|
|
2268
|
-
return `oklch(from ${e} var(--__l) 0 h / var(--__a))`;
|
|
2269
|
-
}
|
|
2270
|
-
function gr(e) {
|
|
2271
|
-
const {
|
|
2272
|
-
mode: r = "light",
|
|
2273
|
-
contrastThreshold: t = 3,
|
|
2274
|
-
tonalOffset: n = 0.2,
|
|
2275
|
-
colorSpace: o,
|
|
2276
|
-
...a
|
|
2277
|
-
} = e, c = e.primary || An(r), u = e.secondary || Rn(r), f = e.error || Pn(r), d = e.info || kn(r), h = e.success || In(r), p = e.warning || Nn(r);
|
|
2278
|
-
function m(E) {
|
|
2279
|
-
if (o)
|
|
2280
|
-
return Mn(E);
|
|
2281
|
-
const _ = Nr(E, ur.text.primary) >= t ? ur.text.primary : rt.text.primary;
|
|
2282
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2283
|
-
const B = Nr(E, _);
|
|
2284
|
-
B < 3 && console.error([`MUI: The contrast ratio of ${B}:1 for ${_} on ${E}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
2285
|
-
`));
|
|
2286
|
-
}
|
|
2287
|
-
return _;
|
|
2288
|
-
}
|
|
2289
|
-
const v = ({
|
|
2290
|
-
color: E,
|
|
2291
|
-
name: _,
|
|
2292
|
-
mainShade: B = 500,
|
|
2293
|
-
lightShade: D = 300,
|
|
2294
|
-
darkShade: $ = 700
|
|
2295
|
-
}) => {
|
|
2296
|
-
if (E = {
|
|
2297
|
-
...E
|
|
2298
|
-
}, !E.main && E[B] && (E.main = E[B]), !E.hasOwnProperty("main"))
|
|
2299
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${_ ? ` (${_})` : ""} provided to augmentColor(color) is invalid.
|
|
2300
|
-
The color object needs to have a \`main\` property or a \`${B}\` property.` : me(11, _ ? ` (${_})` : "", B));
|
|
2301
|
-
if (typeof E.main != "string")
|
|
2302
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${_ ? ` (${_})` : ""} provided to augmentColor(color) is invalid.
|
|
2303
|
-
\`color.main\` should be a string, but \`${JSON.stringify(E.main)}\` was provided instead.
|
|
2304
|
-
|
|
2305
|
-
Did you intend to use one of the following approaches?
|
|
2306
|
-
|
|
2307
|
-
import { green } from "@mui/material/colors";
|
|
2308
|
-
|
|
2309
|
-
const theme1 = createTheme({ palette: {
|
|
2310
|
-
primary: green,
|
|
2311
|
-
} });
|
|
2312
|
-
|
|
2313
|
-
const theme2 = createTheme({ palette: {
|
|
2314
|
-
primary: { main: green[500] },
|
|
2315
|
-
} });` : me(12, _ ? ` (${_})` : "", JSON.stringify(E.main)));
|
|
2316
|
-
return o ? (Dr(o, E, "light", D, n), Dr(o, E, "dark", $, n)) : (Br(E, "light", D, n), Br(E, "dark", $, n)), E.contrastText || (E.contrastText = m(E.main)), E;
|
|
2317
|
-
};
|
|
2318
|
-
let b;
|
|
2319
|
-
return r === "light" ? b = et() : r === "dark" && (b = tt()), process.env.NODE_ENV !== "production" && (b || console.error(`MUI: The palette mode \`${r}\` is not supported.`)), te({
|
|
2320
|
-
// A collection of common colors.
|
|
2321
|
-
common: {
|
|
2322
|
-
...Ae
|
|
2323
|
-
},
|
|
2324
|
-
// prevent mutable object.
|
|
2325
|
-
// The palette mode, can be light or dark.
|
|
2326
|
-
mode: r,
|
|
2327
|
-
// The colors used to represent primary interface elements for a user.
|
|
2328
|
-
primary: v({
|
|
2329
|
-
color: c,
|
|
2330
|
-
name: "primary"
|
|
2331
|
-
}),
|
|
2332
|
-
// The colors used to represent secondary interface elements for a user.
|
|
2333
|
-
secondary: v({
|
|
2334
|
-
color: u,
|
|
2335
|
-
name: "secondary",
|
|
2336
|
-
mainShade: "A400",
|
|
2337
|
-
lightShade: "A200",
|
|
2338
|
-
darkShade: "A700"
|
|
2339
|
-
}),
|
|
2340
|
-
// The colors used to represent interface elements that the user should be made aware of.
|
|
2341
|
-
error: v({
|
|
2342
|
-
color: f,
|
|
2343
|
-
name: "error"
|
|
2344
|
-
}),
|
|
2345
|
-
// The colors used to represent potentially dangerous actions or important messages.
|
|
2346
|
-
warning: v({
|
|
2347
|
-
color: p,
|
|
2348
|
-
name: "warning"
|
|
2349
|
-
}),
|
|
2350
|
-
// The colors used to present information to the user that is neutral and not necessarily important.
|
|
2351
|
-
info: v({
|
|
2352
|
-
color: d,
|
|
2353
|
-
name: "info"
|
|
2354
|
-
}),
|
|
2355
|
-
// The colors used to indicate the successful completion of an action that user triggered.
|
|
2356
|
-
success: v({
|
|
2357
|
-
color: h,
|
|
2358
|
-
name: "success"
|
|
2359
|
-
}),
|
|
2360
|
-
// The grey colors.
|
|
2361
|
-
grey: at,
|
|
2362
|
-
// Used by `getContrastText()` to maximize the contrast between
|
|
2363
|
-
// the background and the text.
|
|
2364
|
-
contrastThreshold: t,
|
|
2365
|
-
// Takes a background color and returns the text color that maximizes the contrast.
|
|
2366
|
-
getContrastText: m,
|
|
2367
|
-
// Generate a rich color object.
|
|
2368
|
-
augmentColor: v,
|
|
2369
|
-
// Used by the functions below to shift a color's luminance by approximately
|
|
2370
|
-
// two indexes within its tonal palette.
|
|
2371
|
-
// E.g., shift from Red 500 to Red 300 or Red 700.
|
|
2372
|
-
tonalOffset: n,
|
|
2373
|
-
// The light and dark mode object.
|
|
2374
|
-
...b
|
|
2375
|
-
}, a);
|
|
2376
|
-
}
|
|
2377
|
-
function Bn(e) {
|
|
2378
|
-
const r = {};
|
|
2379
|
-
return Object.entries(e).forEach((n) => {
|
|
2380
|
-
const [o, a] = n;
|
|
2381
|
-
typeof a == "object" && (r[o] = `${a.fontStyle ? `${a.fontStyle} ` : ""}${a.fontVariant ? `${a.fontVariant} ` : ""}${a.fontWeight ? `${a.fontWeight} ` : ""}${a.fontStretch ? `${a.fontStretch} ` : ""}${a.fontSize || ""}${a.lineHeight ? `/${a.lineHeight} ` : ""}${a.fontFamily || ""}`);
|
|
2382
|
-
}), r;
|
|
2383
|
-
}
|
|
2384
|
-
function Dn(e, r) {
|
|
2385
|
-
return {
|
|
2386
|
-
toolbar: {
|
|
2387
|
-
minHeight: 56,
|
|
2388
|
-
[e.up("xs")]: {
|
|
2389
|
-
"@media (orientation: landscape)": {
|
|
2390
|
-
minHeight: 48
|
|
2391
|
-
}
|
|
2392
|
-
},
|
|
2393
|
-
[e.up("sm")]: {
|
|
2394
|
-
minHeight: 64
|
|
2395
|
-
}
|
|
2396
|
-
},
|
|
2397
|
-
...r
|
|
2398
|
-
};
|
|
2399
|
-
}
|
|
2400
|
-
function jn(e) {
|
|
2401
|
-
return Math.round(e * 1e5) / 1e5;
|
|
2402
|
-
}
|
|
2403
|
-
const jr = {
|
|
2404
|
-
textTransform: "uppercase"
|
|
2405
|
-
}, Fr = '"Roboto", "Helvetica", "Arial", sans-serif';
|
|
2406
|
-
function Fn(e, r) {
|
|
2407
|
-
const {
|
|
2408
|
-
fontFamily: t = Fr,
|
|
2409
|
-
// The default font size of the Material Specification.
|
|
2410
|
-
fontSize: n = 14,
|
|
2411
|
-
// px
|
|
2412
|
-
fontWeightLight: o = 300,
|
|
2413
|
-
fontWeightRegular: a = 400,
|
|
2414
|
-
fontWeightMedium: c = 500,
|
|
2415
|
-
fontWeightBold: u = 700,
|
|
2416
|
-
// Tell MUI what's the font-size on the html element.
|
|
2417
|
-
// 16px is the default font-size used by browsers.
|
|
2418
|
-
htmlFontSize: f = 16,
|
|
2419
|
-
// Apply the CSS properties to all the variants.
|
|
2420
|
-
allVariants: d,
|
|
2421
|
-
pxToRem: h,
|
|
2422
|
-
...p
|
|
2423
|
-
} = typeof r == "function" ? r(e) : r;
|
|
2424
|
-
process.env.NODE_ENV !== "production" && (typeof n != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
|
|
2425
|
-
const m = n / 14, v = h || ((E) => `${E / f * m}rem`), b = (E, _, B, D, $) => ({
|
|
2426
|
-
fontFamily: t,
|
|
2427
|
-
fontWeight: E,
|
|
2428
|
-
fontSize: v(_),
|
|
2429
|
-
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
2430
|
-
lineHeight: B,
|
|
2431
|
-
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
2432
|
-
// across font-families can cause issues with the kerning.
|
|
2433
|
-
...t === Fr ? {
|
|
2434
|
-
letterSpacing: `${jn(D / _)}em`
|
|
2435
|
-
} : {},
|
|
2436
|
-
...$,
|
|
2437
|
-
...d
|
|
2438
|
-
}), s = {
|
|
2439
|
-
h1: b(o, 96, 1.167, -1.5),
|
|
2440
|
-
h2: b(o, 60, 1.2, -0.5),
|
|
2441
|
-
h3: b(a, 48, 1.167, 0),
|
|
2442
|
-
h4: b(a, 34, 1.235, 0.25),
|
|
2443
|
-
h5: b(a, 24, 1.334, 0),
|
|
2444
|
-
h6: b(c, 20, 1.6, 0.15),
|
|
2445
|
-
subtitle1: b(a, 16, 1.75, 0.15),
|
|
2446
|
-
subtitle2: b(c, 14, 1.57, 0.1),
|
|
2447
|
-
body1: b(a, 16, 1.5, 0.15),
|
|
2448
|
-
body2: b(a, 14, 1.43, 0.15),
|
|
2449
|
-
button: b(c, 14, 1.75, 0.4, jr),
|
|
2450
|
-
caption: b(a, 12, 1.66, 0.4),
|
|
2451
|
-
overline: b(a, 12, 2.66, 1, jr),
|
|
2452
|
-
// TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
|
|
2453
|
-
inherit: {
|
|
2454
|
-
fontFamily: "inherit",
|
|
2455
|
-
fontWeight: "inherit",
|
|
2456
|
-
fontSize: "inherit",
|
|
2457
|
-
lineHeight: "inherit",
|
|
2458
|
-
letterSpacing: "inherit"
|
|
2459
|
-
}
|
|
2460
|
-
};
|
|
2461
|
-
return te({
|
|
2462
|
-
htmlFontSize: f,
|
|
2463
|
-
pxToRem: v,
|
|
2464
|
-
fontFamily: t,
|
|
2465
|
-
fontSize: n,
|
|
2466
|
-
fontWeightLight: o,
|
|
2467
|
-
fontWeightRegular: a,
|
|
2468
|
-
fontWeightMedium: c,
|
|
2469
|
-
fontWeightBold: u,
|
|
2470
|
-
...s
|
|
2471
|
-
}, p, {
|
|
2472
|
-
clone: !1
|
|
2473
|
-
// No need to clone deep
|
|
2474
|
-
});
|
|
2475
|
-
}
|
|
2476
|
-
const Ln = 0.2, Wn = 0.14, Vn = 0.12;
|
|
2477
|
-
function G(...e) {
|
|
2478
|
-
return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ln})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Wn})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vn})`].join(",");
|
|
2479
|
-
}
|
|
2480
|
-
const Yn = ["none", G(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), G(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), G(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), G(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), G(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), G(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), G(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), G(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), G(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), G(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), G(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), G(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), G(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), G(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), G(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), G(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), G(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), G(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), G(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), G(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), G(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), G(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), G(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), G(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Un = {
|
|
2481
|
-
// This is the most common easing curve.
|
|
2482
|
-
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2483
|
-
// Objects enter the screen at full velocity from off-screen and
|
|
2484
|
-
// slowly decelerate to a resting point.
|
|
2485
|
-
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
2486
|
-
// Objects leave the screen at full velocity. They do not decelerate when off-screen.
|
|
2487
|
-
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
2488
|
-
// The sharp curve is used by objects that may return to the screen at any time.
|
|
2489
|
-
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
2490
|
-
}, zn = {
|
|
2491
|
-
shortest: 150,
|
|
2492
|
-
shorter: 200,
|
|
2493
|
-
short: 250,
|
|
2494
|
-
// most basic recommended timing
|
|
2495
|
-
standard: 300,
|
|
2496
|
-
// this is to be used in complex animations
|
|
2497
|
-
complex: 375,
|
|
2498
|
-
// recommended when something is entering screen
|
|
2499
|
-
enteringScreen: 225,
|
|
2500
|
-
// recommended when something is leaving screen
|
|
2501
|
-
leavingScreen: 195
|
|
2502
|
-
};
|
|
2503
|
-
function Lr(e) {
|
|
2504
|
-
return `${Math.round(e)}ms`;
|
|
2505
|
-
}
|
|
2506
|
-
function qn(e) {
|
|
2507
|
-
if (!e)
|
|
2508
|
-
return 0;
|
|
2509
|
-
const r = e / 36;
|
|
2510
|
-
return Math.min(Math.round((4 + 15 * r ** 0.25 + r / 5) * 10), 3e3);
|
|
2511
|
-
}
|
|
2512
|
-
function Gn(e) {
|
|
2513
|
-
const r = {
|
|
2514
|
-
...Un,
|
|
2515
|
-
...e.easing
|
|
2516
|
-
}, t = {
|
|
2517
|
-
...zn,
|
|
2518
|
-
...e.duration
|
|
2519
|
-
};
|
|
2520
|
-
return {
|
|
2521
|
-
getAutoHeightDuration: qn,
|
|
2522
|
-
create: (o = ["all"], a = {}) => {
|
|
2523
|
-
const {
|
|
2524
|
-
duration: c = t.standard,
|
|
2525
|
-
easing: u = r.easeInOut,
|
|
2526
|
-
delay: f = 0,
|
|
2527
|
-
...d
|
|
2528
|
-
} = a;
|
|
2529
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2530
|
-
const h = (m) => typeof m == "string", p = (m) => !Number.isNaN(parseFloat(m));
|
|
2531
|
-
!h(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !p(c) && !h(c) && console.error(`MUI: Argument "duration" must be a number or a string but found ${c}.`), h(u) || console.error('MUI: Argument "easing" must be a string.'), !p(f) && !h(f) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof a != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
2532
|
-
`)), Object.keys(d).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`);
|
|
2533
|
-
}
|
|
2534
|
-
return (Array.isArray(o) ? o : [o]).map((h) => `${h} ${typeof c == "string" ? c : Lr(c)} ${u} ${typeof f == "string" ? f : Lr(f)}`).join(",");
|
|
2535
|
-
},
|
|
2536
|
-
...e,
|
|
2537
|
-
easing: r,
|
|
2538
|
-
duration: t
|
|
2539
|
-
};
|
|
2540
|
-
}
|
|
2541
|
-
const Kn = {
|
|
2542
|
-
mobileStepper: 1e3,
|
|
2543
|
-
fab: 1050,
|
|
2544
|
-
speedDial: 1050,
|
|
2545
|
-
appBar: 1100,
|
|
2546
|
-
drawer: 1200,
|
|
2547
|
-
modal: 1300,
|
|
2548
|
-
snackbar: 1400,
|
|
2549
|
-
tooltip: 1500
|
|
2550
|
-
};
|
|
2551
|
-
function Hn(e) {
|
|
2552
|
-
return pe(e) || typeof e > "u" || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
2553
|
-
}
|
|
2554
|
-
function nt(e = {}) {
|
|
2555
|
-
const r = {
|
|
2556
|
-
...e
|
|
2557
|
-
};
|
|
2558
|
-
function t(n) {
|
|
2559
|
-
const o = Object.entries(n);
|
|
2560
|
-
for (let a = 0; a < o.length; a++) {
|
|
2561
|
-
const [c, u] = o[a];
|
|
2562
|
-
!Hn(u) || c.startsWith("unstable_") ? delete n[c] : pe(u) && (n[c] = {
|
|
2563
|
-
...u
|
|
2564
|
-
}, t(n[c]));
|
|
2565
|
-
}
|
|
2566
|
-
}
|
|
2567
|
-
return t(r), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
2568
|
-
|
|
2569
|
-
const theme = ${JSON.stringify(r, null, 2)};
|
|
2570
|
-
|
|
2571
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
2572
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
2573
|
-
|
|
2574
|
-
export default theme;`;
|
|
2575
|
-
}
|
|
2576
|
-
function Wr(e) {
|
|
2577
|
-
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
2578
|
-
}
|
|
2579
|
-
const Qn = (e) => {
|
|
2580
|
-
if (!Number.isNaN(+e))
|
|
2581
|
-
return +e;
|
|
2582
|
-
const r = e.match(/\d*\.?\d+/g);
|
|
2583
|
-
if (!r)
|
|
2584
|
-
return 0;
|
|
2585
|
-
let t = 0;
|
|
2586
|
-
for (let n = 0; n < r.length; n += 1)
|
|
2587
|
-
t += +r[n];
|
|
2588
|
-
return t;
|
|
2589
|
-
};
|
|
2590
|
-
function Xn(e) {
|
|
2591
|
-
Object.assign(e, {
|
|
2592
|
-
alpha(r, t) {
|
|
2593
|
-
const n = this || e;
|
|
2594
|
-
return n.colorSpace ? `oklch(from ${r} l c h / ${typeof t == "string" ? `calc(${t})` : t})` : n.vars ? `rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g, "var(--$1Channel)")} / ${typeof t == "string" ? `calc(${t})` : t})` : Zr(r, Qn(t));
|
|
2595
|
-
},
|
|
2596
|
-
lighten(r, t) {
|
|
2597
|
-
const n = this || e;
|
|
2598
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #fff ${Wr(t)})` : Xe(r, t);
|
|
2599
|
-
},
|
|
2600
|
-
darken(r, t) {
|
|
2601
|
-
const n = this || e;
|
|
2602
|
-
return n.colorSpace ? `color-mix(in ${n.colorSpace}, ${r}, #000 ${Wr(t)})` : Qe(r, t);
|
|
2603
|
-
}
|
|
2604
|
-
});
|
|
2605
|
-
}
|
|
2606
|
-
function lr(e = {}, ...r) {
|
|
2607
|
-
const {
|
|
2608
|
-
breakpoints: t,
|
|
2609
|
-
mixins: n = {},
|
|
2610
|
-
spacing: o,
|
|
2611
|
-
palette: a = {},
|
|
2612
|
-
transitions: c = {},
|
|
2613
|
-
typography: u = {},
|
|
2614
|
-
shape: f,
|
|
2615
|
-
colorSpace: d,
|
|
2616
|
-
...h
|
|
2617
|
-
} = e;
|
|
2618
|
-
if (e.vars && // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.
|
|
2619
|
-
// `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.
|
|
2620
|
-
e.generateThemeVars === void 0)
|
|
2621
|
-
throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature." : me(20));
|
|
2622
|
-
const p = gr({
|
|
2623
|
-
...a,
|
|
2624
|
-
colorSpace: d
|
|
2625
|
-
}), m = gn(e);
|
|
2626
|
-
let v = te(m, {
|
|
2627
|
-
mixins: Dn(m.breakpoints, n),
|
|
2628
|
-
palette: p,
|
|
2629
|
-
// Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
|
|
2630
|
-
shadows: Yn.slice(),
|
|
2631
|
-
typography: Fn(p, u),
|
|
2632
|
-
transitions: Gn(c),
|
|
2633
|
-
zIndex: {
|
|
2634
|
-
...Kn
|
|
2635
|
-
}
|
|
2636
|
-
});
|
|
2637
|
-
if (v = te(v, h), v = r.reduce((b, s) => te(b, s), v), process.env.NODE_ENV !== "production") {
|
|
2638
|
-
const b = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], s = (E, _) => {
|
|
2639
|
-
let B;
|
|
2640
|
-
for (B in E) {
|
|
2641
|
-
const D = E[B];
|
|
2642
|
-
if (b.includes(B) && Object.keys(D).length > 0) {
|
|
2643
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2644
|
-
const $ = vn("", B);
|
|
2645
|
-
console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${B}\` internal state.`, "You can not override it like this: ", JSON.stringify(E, null, 2), "", `Instead, you need to use the '&.${$}' syntax:`, JSON.stringify({
|
|
2646
|
-
root: {
|
|
2647
|
-
[`&.${$}`]: D
|
|
2648
|
-
}
|
|
2649
|
-
}, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
|
|
2650
|
-
`));
|
|
2651
|
-
}
|
|
2652
|
-
E[B] = {};
|
|
2653
|
-
}
|
|
2654
|
-
}
|
|
2655
|
-
};
|
|
2656
|
-
Object.keys(v.components).forEach((E) => {
|
|
2657
|
-
const _ = v.components[E].styleOverrides;
|
|
2658
|
-
_ && E.startsWith("Mui") && s(_, E);
|
|
2659
|
-
});
|
|
2660
|
-
}
|
|
2661
|
-
return v.unstable_sxConfig = {
|
|
2662
|
-
...Ge,
|
|
2663
|
-
...h?.unstable_sxConfig
|
|
2664
|
-
}, v.unstable_sx = function(s) {
|
|
2665
|
-
return Ke({
|
|
2666
|
-
sx: s,
|
|
2667
|
-
theme: this
|
|
2668
|
-
});
|
|
2669
|
-
}, v.toRuntimeSource = nt, Xn(v), v;
|
|
2670
|
-
}
|
|
2671
|
-
function Jn(e) {
|
|
2672
|
-
let r;
|
|
2673
|
-
return e < 1 ? r = 5.11916 * e ** 2 : r = 4.5 * Math.log(e + 1) + 2, Math.round(r * 10) / 1e3;
|
|
2674
|
-
}
|
|
2675
|
-
const Zn = [...Array(25)].map((e, r) => {
|
|
2676
|
-
if (r === 0)
|
|
2677
|
-
return "none";
|
|
2678
|
-
const t = Jn(r);
|
|
2679
|
-
return `linear-gradient(rgba(255 255 255 / ${t}), rgba(255 255 255 / ${t}))`;
|
|
2680
|
-
});
|
|
2681
|
-
function ot(e) {
|
|
2682
|
-
return {
|
|
2683
|
-
inputPlaceholder: e === "dark" ? 0.5 : 0.42,
|
|
2684
|
-
inputUnderline: e === "dark" ? 0.7 : 0.42,
|
|
2685
|
-
switchTrackDisabled: e === "dark" ? 0.2 : 0.12,
|
|
2686
|
-
switchTrack: e === "dark" ? 0.3 : 0.38
|
|
2687
|
-
};
|
|
2688
|
-
}
|
|
2689
|
-
function it(e) {
|
|
2690
|
-
return e === "dark" ? Zn : [];
|
|
2691
|
-
}
|
|
2692
|
-
function eo(e) {
|
|
2693
|
-
const {
|
|
2694
|
-
palette: r = {
|
|
2695
|
-
mode: "light"
|
|
2696
|
-
},
|
|
2697
|
-
// need to cast to avoid module augmentation test
|
|
2698
|
-
opacity: t,
|
|
2699
|
-
overlays: n,
|
|
2700
|
-
colorSpace: o,
|
|
2701
|
-
...a
|
|
2702
|
-
} = e, c = gr({
|
|
2703
|
-
...r,
|
|
2704
|
-
colorSpace: o
|
|
2705
|
-
});
|
|
2706
|
-
return {
|
|
2707
|
-
palette: c,
|
|
2708
|
-
opacity: {
|
|
2709
|
-
...ot(c.mode),
|
|
2710
|
-
...t
|
|
2711
|
-
},
|
|
2712
|
-
overlays: n || it(c.mode),
|
|
2713
|
-
...a
|
|
2714
|
-
};
|
|
2715
|
-
}
|
|
2716
|
-
function ro(e) {
|
|
2717
|
-
return !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || // ends with sxConfig
|
|
2718
|
-
e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
2719
|
-
}
|
|
2720
|
-
const to = (e) => [...[...Array(25)].map((r, t) => `--${e ? `${e}-` : ""}overlays-${t}`), `--${e ? `${e}-` : ""}palette-AppBar-darkBg`, `--${e ? `${e}-` : ""}palette-AppBar-darkColor`], no = (e) => (r, t) => {
|
|
2721
|
-
const n = e.rootSelector || ":root", o = e.colorSchemeSelector;
|
|
2722
|
-
let a = o;
|
|
2723
|
-
if (o === "class" && (a = ".%s"), o === "data" && (a = "[data-%s]"), o?.startsWith("data-") && !o.includes("%s") && (a = `[${o}="%s"]`), e.defaultColorScheme === r) {
|
|
2724
|
-
if (r === "dark") {
|
|
2725
|
-
const c = {};
|
|
2726
|
-
return to(e.cssVarPrefix).forEach((u) => {
|
|
2727
|
-
c[u] = t[u], delete t[u];
|
|
2728
|
-
}), a === "media" ? {
|
|
2729
|
-
[n]: t,
|
|
2730
|
-
"@media (prefers-color-scheme: dark)": {
|
|
2731
|
-
[n]: c
|
|
2732
|
-
}
|
|
2733
|
-
} : a ? {
|
|
2734
|
-
[a.replace("%s", r)]: c,
|
|
2735
|
-
[`${n}, ${a.replace("%s", r)}`]: t
|
|
2736
|
-
} : {
|
|
2737
|
-
[n]: {
|
|
2738
|
-
...t,
|
|
2739
|
-
...c
|
|
2740
|
-
}
|
|
2741
|
-
};
|
|
2742
|
-
}
|
|
2743
|
-
if (a && a !== "media")
|
|
2744
|
-
return `${n}, ${a.replace("%s", String(r))}`;
|
|
2745
|
-
} else if (r) {
|
|
2746
|
-
if (a === "media")
|
|
2747
|
-
return {
|
|
2748
|
-
[`@media (prefers-color-scheme: ${String(r)})`]: {
|
|
2749
|
-
[n]: t
|
|
2750
|
-
}
|
|
2751
|
-
};
|
|
2752
|
-
if (a)
|
|
2753
|
-
return a.replace("%s", String(r));
|
|
2754
|
-
}
|
|
2755
|
-
return n;
|
|
2756
|
-
};
|
|
2757
|
-
function oo(e, r) {
|
|
2758
|
-
r.forEach((t) => {
|
|
2759
|
-
e[t] || (e[t] = {});
|
|
2760
|
-
});
|
|
2761
|
-
}
|
|
2762
|
-
function l(e, r, t) {
|
|
2763
|
-
!e[r] && t && (e[r] = t);
|
|
2764
|
-
}
|
|
2765
|
-
function we(e) {
|
|
2766
|
-
return typeof e != "string" || !e.startsWith("hsl") ? e : Jr(e);
|
|
2767
|
-
}
|
|
2768
|
-
function fe(e, r) {
|
|
2769
|
-
`${r}Channel` in e || (e[`${r}Channel`] = xe(we(e[r]), `MUI: Can't create \`palette.${r}Channel\` because \`palette.${r}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
2770
|
-
To suppress this warning, you need to explicitly provide the \`palette.${r}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
2771
|
-
}
|
|
2772
|
-
function io(e) {
|
|
2773
|
-
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
2774
|
-
}
|
|
2775
|
-
const ue = (e) => {
|
|
2776
|
-
try {
|
|
2777
|
-
return e();
|
|
2778
|
-
} catch {
|
|
2779
|
-
}
|
|
2780
|
-
}, ao = (e = "mui") => $n(e);
|
|
2781
|
-
function ar(e, r, t, n, o) {
|
|
2782
|
-
if (!t)
|
|
2783
|
-
return;
|
|
2784
|
-
t = t === !0 ? {} : t;
|
|
2785
|
-
const a = o === "dark" ? "dark" : "light";
|
|
2786
|
-
if (!n) {
|
|
2787
|
-
r[o] = eo({
|
|
2788
|
-
...t,
|
|
2789
|
-
palette: {
|
|
2790
|
-
mode: a,
|
|
2791
|
-
...t?.palette
|
|
2792
|
-
},
|
|
2793
|
-
colorSpace: e
|
|
2794
|
-
});
|
|
2795
|
-
return;
|
|
2796
|
-
}
|
|
2797
|
-
const {
|
|
2798
|
-
palette: c,
|
|
2799
|
-
...u
|
|
2800
|
-
} = lr({
|
|
2801
|
-
...n,
|
|
2802
|
-
palette: {
|
|
2803
|
-
mode: a,
|
|
2804
|
-
...t?.palette
|
|
2805
|
-
},
|
|
2806
|
-
colorSpace: e
|
|
2807
|
-
});
|
|
2808
|
-
return r[o] = {
|
|
2809
|
-
...t,
|
|
2810
|
-
palette: c,
|
|
2811
|
-
opacity: {
|
|
2812
|
-
...ot(a),
|
|
2813
|
-
...t?.opacity
|
|
2814
|
-
},
|
|
2815
|
-
overlays: t?.overlays || it(a)
|
|
2816
|
-
}, u;
|
|
2817
|
-
}
|
|
2818
|
-
function so(e = {}, ...r) {
|
|
2819
|
-
const {
|
|
2820
|
-
colorSchemes: t = {
|
|
2821
|
-
light: !0
|
|
2822
|
-
},
|
|
2823
|
-
defaultColorScheme: n,
|
|
2824
|
-
disableCssColorScheme: o = !1,
|
|
2825
|
-
cssVarPrefix: a = "mui",
|
|
2826
|
-
nativeColor: c = !1,
|
|
2827
|
-
shouldSkipGeneratingVar: u = ro,
|
|
2828
|
-
colorSchemeSelector: f = t.light && t.dark ? "media" : void 0,
|
|
2829
|
-
rootSelector: d = ":root",
|
|
2830
|
-
...h
|
|
2831
|
-
} = e, p = Object.keys(t)[0], m = n || (t.light && p !== "light" ? "light" : p), v = ao(a), {
|
|
2832
|
-
[m]: b,
|
|
2833
|
-
light: s,
|
|
2834
|
-
dark: E,
|
|
2835
|
-
..._
|
|
2836
|
-
} = t, B = {
|
|
2837
|
-
..._
|
|
2838
|
-
};
|
|
2839
|
-
let D = b;
|
|
2840
|
-
if ((m === "dark" && !("dark" in t) || m === "light" && !("light" in t)) && (D = !0), !D)
|
|
2841
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${m}\` option is either missing or invalid.` : me(21, m));
|
|
2842
|
-
let $;
|
|
2843
|
-
c && ($ = "oklch");
|
|
2844
|
-
const y = ar($, B, D, h, m);
|
|
2845
|
-
s && !B.light && ar($, B, s, void 0, "light"), E && !B.dark && ar($, B, E, void 0, "dark");
|
|
2846
|
-
let x = {
|
|
2847
|
-
defaultColorScheme: m,
|
|
2848
|
-
...y,
|
|
2849
|
-
cssVarPrefix: a,
|
|
2850
|
-
colorSchemeSelector: f,
|
|
2851
|
-
rootSelector: d,
|
|
2852
|
-
getCssVar: v,
|
|
2853
|
-
colorSchemes: B,
|
|
2854
|
-
font: {
|
|
2855
|
-
...Bn(y.typography),
|
|
2856
|
-
...y.font
|
|
2857
|
-
},
|
|
2858
|
-
spacing: io(h.spacing)
|
|
2859
|
-
};
|
|
2860
|
-
Object.keys(x.colorSchemes).forEach((X) => {
|
|
2861
|
-
const i = x.colorSchemes[X].palette, O = (j) => {
|
|
2862
|
-
const W = j.split("-"), ee = W[1], se = W[2];
|
|
2863
|
-
return v(j, i[ee][se]);
|
|
2864
|
-
};
|
|
2865
|
-
i.mode === "light" && (l(i.common, "background", "#fff"), l(i.common, "onBackground", "#000")), i.mode === "dark" && (l(i.common, "background", "#000"), l(i.common, "onBackground", "#fff"));
|
|
2866
|
-
function S(j, W, ee) {
|
|
2867
|
-
if ($) {
|
|
2868
|
-
let se;
|
|
2869
|
-
return j === ye && (se = `transparent ${((1 - ee) * 100).toFixed(0)}%`), j === Y && (se = `#000 ${(ee * 100).toFixed(0)}%`), j === U && (se = `#fff ${(ee * 100).toFixed(0)}%`), `color-mix(in ${$}, ${W}, ${se})`;
|
|
2870
|
-
}
|
|
2871
|
-
return j(W, ee);
|
|
2872
|
-
}
|
|
2873
|
-
if (oo(i, ["Alert", "AppBar", "Avatar", "Button", "Chip", "FilledInput", "LinearProgress", "Skeleton", "Slider", "SnackbarContent", "SpeedDialAction", "StepConnector", "StepContent", "Switch", "TableCell", "Tooltip"]), i.mode === "light") {
|
|
2874
|
-
l(i.Alert, "errorColor", S(Y, i.error.light, 0.6)), l(i.Alert, "infoColor", S(Y, i.info.light, 0.6)), l(i.Alert, "successColor", S(Y, i.success.light, 0.6)), l(i.Alert, "warningColor", S(Y, i.warning.light, 0.6)), l(i.Alert, "errorFilledBg", O("palette-error-main")), l(i.Alert, "infoFilledBg", O("palette-info-main")), l(i.Alert, "successFilledBg", O("palette-success-main")), l(i.Alert, "warningFilledBg", O("palette-warning-main")), l(i.Alert, "errorFilledColor", ue(() => i.getContrastText(i.error.main))), l(i.Alert, "infoFilledColor", ue(() => i.getContrastText(i.info.main))), l(i.Alert, "successFilledColor", ue(() => i.getContrastText(i.success.main))), l(i.Alert, "warningFilledColor", ue(() => i.getContrastText(i.warning.main))), l(i.Alert, "errorStandardBg", S(U, i.error.light, 0.9)), l(i.Alert, "infoStandardBg", S(U, i.info.light, 0.9)), l(i.Alert, "successStandardBg", S(U, i.success.light, 0.9)), l(i.Alert, "warningStandardBg", S(U, i.warning.light, 0.9)), l(i.Alert, "errorIconColor", O("palette-error-main")), l(i.Alert, "infoIconColor", O("palette-info-main")), l(i.Alert, "successIconColor", O("palette-success-main")), l(i.Alert, "warningIconColor", O("palette-warning-main")), l(i.AppBar, "defaultBg", O("palette-grey-100")), l(i.Avatar, "defaultBg", O("palette-grey-400")), l(i.Button, "inheritContainedBg", O("palette-grey-300")), l(i.Button, "inheritContainedHoverBg", O("palette-grey-A100")), l(i.Chip, "defaultBorder", O("palette-grey-400")), l(i.Chip, "defaultAvatarColor", O("palette-grey-700")), l(i.Chip, "defaultIconColor", O("palette-grey-700")), l(i.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), l(i.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), l(i.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), l(i.LinearProgress, "primaryBg", S(U, i.primary.main, 0.62)), l(i.LinearProgress, "secondaryBg", S(U, i.secondary.main, 0.62)), l(i.LinearProgress, "errorBg", S(U, i.error.main, 0.62)), l(i.LinearProgress, "infoBg", S(U, i.info.main, 0.62)), l(i.LinearProgress, "successBg", S(U, i.success.main, 0.62)), l(i.LinearProgress, "warningBg", S(U, i.warning.main, 0.62)), l(i.Skeleton, "bg", $ ? S(ye, i.text.primary, 0.11) : `rgba(${O("palette-text-primaryChannel")} / 0.11)`), l(i.Slider, "primaryTrack", S(U, i.primary.main, 0.62)), l(i.Slider, "secondaryTrack", S(U, i.secondary.main, 0.62)), l(i.Slider, "errorTrack", S(U, i.error.main, 0.62)), l(i.Slider, "infoTrack", S(U, i.info.main, 0.62)), l(i.Slider, "successTrack", S(U, i.success.main, 0.62)), l(i.Slider, "warningTrack", S(U, i.warning.main, 0.62));
|
|
2875
|
-
const j = $ ? S(Y, i.background.default, 0.6825) : Be(i.background.default, 0.8);
|
|
2876
|
-
l(i.SnackbarContent, "bg", j), l(i.SnackbarContent, "color", ue(() => $ ? ur.text.primary : i.getContrastText(j))), l(i.SpeedDialAction, "fabHoverBg", Be(i.background.paper, 0.15)), l(i.StepConnector, "border", O("palette-grey-400")), l(i.StepContent, "border", O("palette-grey-400")), l(i.Switch, "defaultColor", O("palette-common-white")), l(i.Switch, "defaultDisabledColor", O("palette-grey-100")), l(i.Switch, "primaryDisabledColor", S(U, i.primary.main, 0.62)), l(i.Switch, "secondaryDisabledColor", S(U, i.secondary.main, 0.62)), l(i.Switch, "errorDisabledColor", S(U, i.error.main, 0.62)), l(i.Switch, "infoDisabledColor", S(U, i.info.main, 0.62)), l(i.Switch, "successDisabledColor", S(U, i.success.main, 0.62)), l(i.Switch, "warningDisabledColor", S(U, i.warning.main, 0.62)), l(i.TableCell, "border", S(U, S(ye, i.divider, 1), 0.88)), l(i.Tooltip, "bg", S(ye, i.grey[700], 0.92));
|
|
2877
|
-
}
|
|
2878
|
-
if (i.mode === "dark") {
|
|
2879
|
-
l(i.Alert, "errorColor", S(U, i.error.light, 0.6)), l(i.Alert, "infoColor", S(U, i.info.light, 0.6)), l(i.Alert, "successColor", S(U, i.success.light, 0.6)), l(i.Alert, "warningColor", S(U, i.warning.light, 0.6)), l(i.Alert, "errorFilledBg", O("palette-error-dark")), l(i.Alert, "infoFilledBg", O("palette-info-dark")), l(i.Alert, "successFilledBg", O("palette-success-dark")), l(i.Alert, "warningFilledBg", O("palette-warning-dark")), l(i.Alert, "errorFilledColor", ue(() => i.getContrastText(i.error.dark))), l(i.Alert, "infoFilledColor", ue(() => i.getContrastText(i.info.dark))), l(i.Alert, "successFilledColor", ue(() => i.getContrastText(i.success.dark))), l(i.Alert, "warningFilledColor", ue(() => i.getContrastText(i.warning.dark))), l(i.Alert, "errorStandardBg", S(Y, i.error.light, 0.9)), l(i.Alert, "infoStandardBg", S(Y, i.info.light, 0.9)), l(i.Alert, "successStandardBg", S(Y, i.success.light, 0.9)), l(i.Alert, "warningStandardBg", S(Y, i.warning.light, 0.9)), l(i.Alert, "errorIconColor", O("palette-error-main")), l(i.Alert, "infoIconColor", O("palette-info-main")), l(i.Alert, "successIconColor", O("palette-success-main")), l(i.Alert, "warningIconColor", O("palette-warning-main")), l(i.AppBar, "defaultBg", O("palette-grey-900")), l(i.AppBar, "darkBg", O("palette-background-paper")), l(i.AppBar, "darkColor", O("palette-text-primary")), l(i.Avatar, "defaultBg", O("palette-grey-600")), l(i.Button, "inheritContainedBg", O("palette-grey-800")), l(i.Button, "inheritContainedHoverBg", O("palette-grey-700")), l(i.Chip, "defaultBorder", O("palette-grey-700")), l(i.Chip, "defaultAvatarColor", O("palette-grey-300")), l(i.Chip, "defaultIconColor", O("palette-grey-300")), l(i.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), l(i.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), l(i.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), l(i.LinearProgress, "primaryBg", S(Y, i.primary.main, 0.5)), l(i.LinearProgress, "secondaryBg", S(Y, i.secondary.main, 0.5)), l(i.LinearProgress, "errorBg", S(Y, i.error.main, 0.5)), l(i.LinearProgress, "infoBg", S(Y, i.info.main, 0.5)), l(i.LinearProgress, "successBg", S(Y, i.success.main, 0.5)), l(i.LinearProgress, "warningBg", S(Y, i.warning.main, 0.5)), l(i.Skeleton, "bg", $ ? S(ye, i.text.primary, 0.13) : `rgba(${O("palette-text-primaryChannel")} / 0.13)`), l(i.Slider, "primaryTrack", S(Y, i.primary.main, 0.5)), l(i.Slider, "secondaryTrack", S(Y, i.secondary.main, 0.5)), l(i.Slider, "errorTrack", S(Y, i.error.main, 0.5)), l(i.Slider, "infoTrack", S(Y, i.info.main, 0.5)), l(i.Slider, "successTrack", S(Y, i.success.main, 0.5)), l(i.Slider, "warningTrack", S(Y, i.warning.main, 0.5));
|
|
2880
|
-
const j = $ ? S(U, i.background.default, 0.985) : Be(i.background.default, 0.98);
|
|
2881
|
-
l(i.SnackbarContent, "bg", j), l(i.SnackbarContent, "color", ue(() => $ ? rt.text.primary : i.getContrastText(j))), l(i.SpeedDialAction, "fabHoverBg", Be(i.background.paper, 0.15)), l(i.StepConnector, "border", O("palette-grey-600")), l(i.StepContent, "border", O("palette-grey-600")), l(i.Switch, "defaultColor", O("palette-grey-300")), l(i.Switch, "defaultDisabledColor", O("palette-grey-600")), l(i.Switch, "primaryDisabledColor", S(Y, i.primary.main, 0.55)), l(i.Switch, "secondaryDisabledColor", S(Y, i.secondary.main, 0.55)), l(i.Switch, "errorDisabledColor", S(Y, i.error.main, 0.55)), l(i.Switch, "infoDisabledColor", S(Y, i.info.main, 0.55)), l(i.Switch, "successDisabledColor", S(Y, i.success.main, 0.55)), l(i.Switch, "warningDisabledColor", S(Y, i.warning.main, 0.55)), l(i.TableCell, "border", S(Y, S(ye, i.divider, 1), 0.68)), l(i.Tooltip, "bg", S(ye, i.grey[700], 0.92));
|
|
2882
|
-
}
|
|
2883
|
-
fe(i.background, "default"), fe(i.background, "paper"), fe(i.common, "background"), fe(i.common, "onBackground"), fe(i, "divider"), Object.keys(i).forEach((j) => {
|
|
2884
|
-
const W = i[j];
|
|
2885
|
-
j !== "tonalOffset" && W && typeof W == "object" && (W.main && l(i[j], "mainChannel", xe(we(W.main))), W.light && l(i[j], "lightChannel", xe(we(W.light))), W.dark && l(i[j], "darkChannel", xe(we(W.dark))), W.contrastText && l(i[j], "contrastTextChannel", xe(we(W.contrastText))), j === "text" && (fe(i[j], "primary"), fe(i[j], "secondary")), j === "action" && (W.active && fe(i[j], "active"), W.selected && fe(i[j], "selected")));
|
|
2886
|
-
});
|
|
2887
|
-
}), x = r.reduce((X, i) => te(X, i), x);
|
|
2888
|
-
const ae = {
|
|
2889
|
-
prefix: a,
|
|
2890
|
-
disableCssColorScheme: o,
|
|
2891
|
-
shouldSkipGeneratingVar: u,
|
|
2892
|
-
getSelector: no(x),
|
|
2893
|
-
enableContrastVars: c
|
|
2894
|
-
}, {
|
|
2895
|
-
vars: le,
|
|
2896
|
-
generateThemeVars: J,
|
|
2897
|
-
generateStyleSheets: Z
|
|
2898
|
-
} = wn(x, ae);
|
|
2899
|
-
return x.vars = le, Object.entries(x.colorSchemes[x.defaultColorScheme]).forEach(([X, i]) => {
|
|
2900
|
-
x[X] = i;
|
|
2901
|
-
}), x.generateThemeVars = J, x.generateStyleSheets = Z, x.generateSpacing = function() {
|
|
2902
|
-
return Xr(h.spacing, dr(this));
|
|
2903
|
-
}, x.getColorSchemeSelector = _n(f), x.spacing = x.generateSpacing(), x.shouldSkipGeneratingVar = u, x.unstable_sxConfig = {
|
|
2904
|
-
...Ge,
|
|
2905
|
-
...h?.unstable_sxConfig
|
|
2906
|
-
}, x.unstable_sx = function(i) {
|
|
2907
|
-
return Ke({
|
|
2908
|
-
sx: i,
|
|
2909
|
-
theme: this
|
|
2910
|
-
});
|
|
2911
|
-
}, x.toRuntimeSource = nt, x;
|
|
2912
|
-
}
|
|
2913
|
-
function Vr(e, r, t) {
|
|
2914
|
-
e.colorSchemes && t && (e.colorSchemes[r] = {
|
|
2915
|
-
...t !== !0 && t,
|
|
2916
|
-
palette: gr({
|
|
2917
|
-
...t === !0 ? {} : t.palette,
|
|
2918
|
-
mode: r
|
|
2919
|
-
})
|
|
2920
|
-
// cast type to skip module augmentation test
|
|
2921
|
-
});
|
|
2922
|
-
}
|
|
2923
|
-
function fo(e = {}, ...r) {
|
|
2924
|
-
const {
|
|
2925
|
-
palette: t,
|
|
2926
|
-
cssVariables: n = !1,
|
|
2927
|
-
colorSchemes: o = t ? void 0 : {
|
|
2928
|
-
light: !0
|
|
2929
|
-
},
|
|
2930
|
-
defaultColorScheme: a = t?.mode,
|
|
2931
|
-
...c
|
|
2932
|
-
} = e, u = a || "light", f = o?.[u], d = {
|
|
2933
|
-
...o,
|
|
2934
|
-
...t ? {
|
|
2935
|
-
[u]: {
|
|
2936
|
-
...typeof f != "boolean" && f,
|
|
2937
|
-
palette: t
|
|
2938
|
-
}
|
|
2939
|
-
} : void 0
|
|
2940
|
-
};
|
|
2941
|
-
if (n === !1) {
|
|
2942
|
-
if (!("colorSchemes" in e))
|
|
2943
|
-
return lr(e, ...r);
|
|
2944
|
-
let h = t;
|
|
2945
|
-
"palette" in e || d[u] && (d[u] !== !0 ? h = d[u].palette : u === "dark" && (h = {
|
|
2946
|
-
mode: "dark"
|
|
2947
|
-
}));
|
|
2948
|
-
const p = lr({
|
|
2949
|
-
...e,
|
|
2950
|
-
palette: h
|
|
2951
|
-
}, ...r);
|
|
2952
|
-
return p.defaultColorScheme = u, p.colorSchemes = d, p.palette.mode === "light" && (p.colorSchemes.light = {
|
|
2953
|
-
...d.light !== !0 && d.light,
|
|
2954
|
-
palette: p.palette
|
|
2955
|
-
}, Vr(p, "dark", d.dark)), p.palette.mode === "dark" && (p.colorSchemes.dark = {
|
|
2956
|
-
...d.dark !== !0 && d.dark,
|
|
2957
|
-
palette: p.palette
|
|
2958
|
-
}, Vr(p, "light", d.light)), p;
|
|
2959
|
-
}
|
|
2960
|
-
return !t && !("light" in d) && u === "light" && (d.light = !0), so({
|
|
2961
|
-
...c,
|
|
2962
|
-
colorSchemes: d,
|
|
2963
|
-
defaultColorScheme: u,
|
|
2964
|
-
...typeof n != "boolean" && n
|
|
2965
|
-
}, ...r);
|
|
2966
|
-
}
|
|
2967
|
-
export {
|
|
2968
|
-
st as A,
|
|
2969
|
-
yn as C,
|
|
2970
|
-
Oe as P,
|
|
2971
|
-
Zr as a,
|
|
2972
|
-
cr as b,
|
|
2973
|
-
vn as c,
|
|
2974
|
-
Qe as d,
|
|
2975
|
-
Tn as e,
|
|
2976
|
-
fo as f,
|
|
2977
|
-
Nr as g,
|
|
2978
|
-
Ge as h,
|
|
2979
|
-
pe as i,
|
|
2980
|
-
Hr as j,
|
|
2981
|
-
Jn as k,
|
|
2982
|
-
Xe as l,
|
|
2983
|
-
gn as m,
|
|
2984
|
-
zn as n,
|
|
2985
|
-
Fe as o,
|
|
2986
|
-
de as p,
|
|
2987
|
-
lo as q,
|
|
2988
|
-
qr as r,
|
|
2989
|
-
Ke as s,
|
|
2990
|
-
dr as t,
|
|
2991
|
-
te as u,
|
|
2992
|
-
uo as v,
|
|
2993
|
-
Pe as w,
|
|
2994
|
-
me as x,
|
|
2995
|
-
Ur as y,
|
|
2996
|
-
Fn as z
|
|
2997
|
-
};
|