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