@preply/ds-web-lib 11.0.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion-B0hR-tcI.js +96 -0
- package/dist/AlertBannerProvider-Cf7w9AOq.js +76 -0
- package/dist/AlertDialog-BG-diKBi.js +475 -0
- package/dist/Avatar-B-JdqVyg.js +66 -0
- package/dist/AvatarWithStatus-CD9jEqEB.js +36 -0
- package/dist/Badge-Dd-CLBoW.js +50 -0
- package/dist/Box-BJBE9KNm.js +91 -0
- package/dist/BubbleCounter.module-BU2S0euA.js +16 -0
- package/dist/Button-C35BZJZT.js +91 -0
- package/dist/ButtonBase-8eUyTWxX.js +215 -0
- package/dist/Checkbox-CtolNbxI.js +108 -0
- package/dist/Chips-BRGw7Uup.js +99 -0
- package/dist/ChipsPrimitive-Bezq7ptE.js +1179 -0
- package/dist/CountryFlag-DVDKHmQH.js +43 -0
- package/dist/Dialog.module-Db2BJAn4.js +21 -0
- package/dist/DialogCloseButton-DjDd9Mid.js +98 -0
- package/dist/DialogDescription-8zw9t6pm.js +44 -0
- package/dist/DialogRoot-B67oJduC.js +335 -0
- package/dist/DialogRootContext-Bz8RW-Mq.js +12 -0
- package/dist/DialogTitle-C2Nn2ys-.js +43 -0
- package/dist/Divider-DvwDWB9_.js +17 -0
- package/dist/DropdownMenu.primitives-BrsTBvMk.js +4007 -0
- package/dist/FieldButton-B2slox8P.js +32 -0
- package/dist/FormControl-qnbQL1iF.js +128 -0
- package/dist/Heading-DA9gHfsx.js +71 -0
- package/dist/Icon-CixAeOSd.js +48 -0
- package/dist/IconButton-BPKpgfep.js +31 -0
- package/dist/InputContainer-CzzuOe_p.js +38 -0
- package/dist/LayoutFlex-e9auDvWD.js +86 -0
- package/dist/LayoutFlexItem-D9ziMmHe.js +48 -0
- package/dist/LayoutGridItem-Q8Lnvrri.js +34 -0
- package/dist/Link-CdoJVeER.js +66 -0
- package/dist/Loader-BMOxdJce.js +26 -0
- package/dist/OnboardingTooltip-B47_Yrsj.js +165 -0
- package/dist/OnboardingTour-DUUoI5WE.js +131 -0
- package/dist/PasswordField-Bx5YG62t.js +93 -0
- package/dist/PreplyLogo-abgOre30.js +112 -0
- package/dist/ProgressBar-CEU4GyHn.js +31 -0
- package/dist/ProgressSteps-BSqopxqv.js +45 -0
- package/dist/Select-Bo7PX_8V.js +124 -0
- package/dist/Slider-Crg4DEn_.js +64 -0
- package/dist/Spinner-Ck8KQA22.js +86 -0
- package/dist/Stars-D5QspUBE.js +72 -0
- package/dist/Steps-DbN5vFrP.js +173 -0
- package/dist/Switch-Ck_xB0ID.js +49 -0
- package/dist/Text-CaOF75Z-.js +121 -0
- package/dist/TextHighlighted-Dwq9Clgn.js +34 -0
- package/dist/TextInline-BcA4H2Tk.js +34 -0
- package/dist/Toast-wJAjSLfo.js +1019 -0
- package/dist/TokyoUIChevronDown-DGcVqR1z.js +14 -0
- package/dist/Tooltip-grvKQxTN.js +84 -0
- package/dist/VisuallyHidden-CtcHcZCK.js +29 -0
- package/dist/align-self-VrZUceie.js +42 -0
- package/dist/assets/Accordion.css +2 -2
- package/dist/assets/AlertBannerProvider.css +2 -2
- package/dist/assets/AlertDialog.css +2 -2
- package/dist/assets/Avatar.css +3 -3
- package/dist/assets/AvatarWithStatus.css +2 -2
- package/dist/assets/Badge.css +1 -1
- package/dist/assets/Box.css +3 -3
- package/dist/assets/BubbleCounter.css +1 -1
- package/dist/assets/Button.css +4 -4
- package/dist/assets/ButtonBase.css +40 -46
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Chips.css +2 -2
- package/dist/assets/ChipsPrimitive.css +2 -2
- package/dist/assets/CountryFlag.css +1 -1
- package/dist/assets/Dialog.css +13 -4
- package/dist/assets/Divider.css +1 -1
- package/dist/assets/DropdownMenu.css +2 -2
- package/dist/assets/FieldButton.css +3 -3
- package/dist/assets/FormControl.css +1 -1
- package/dist/assets/Heading.css +3 -3
- package/dist/assets/Icon.css +3 -3
- package/dist/assets/InputContainer.css +2 -2
- package/dist/assets/LayoutFlex.css +1 -1
- package/dist/assets/LayoutFlexItem.css +1 -1
- package/dist/assets/Link.css +3 -3
- package/dist/assets/Loader.css +1 -1
- package/dist/assets/OnboardingTooltip.css +1 -1
- package/dist/assets/OnboardingTour.css +1 -1
- package/dist/assets/PreplyLogo.css +1 -1
- package/dist/assets/ProgressBar.css +1 -1
- package/dist/assets/ProgressSteps.css +1 -1
- package/dist/assets/Select.css +2 -2
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/Spinner.css +3 -3
- package/dist/assets/Stars.css +3 -3
- package/dist/assets/Steps.css +2 -2
- package/dist/assets/Switch.css +1 -1
- package/dist/assets/Text.css +3 -3
- package/dist/assets/TextHighlighted.css +3 -3
- package/dist/assets/TextInline.css +3 -3
- package/dist/assets/Toast.css +2 -2
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/align-self.css +1 -1
- package/dist/assets/{IconTile.css → components.css} +1 -1
- package/dist/assets/exp-color.css +2 -2
- package/dist/assets/index.css +1 -1
- package/dist/assets/layout-gap.css +3 -3
- package/dist/assets/layout-grid.css +3 -3
- package/dist/assets/layout-hide.css +1 -1
- package/dist/assets/layout-padding.css +3 -3
- package/dist/assets/layout-relative.css +1 -1
- package/dist/assets/text-accent.css +2 -2
- package/dist/assets/text-centered.css +1 -1
- package/dist/assets/text-weight.css +2 -2
- package/dist/chunk-BVTlhY3a.js +24 -0
- package/dist/components/Accordion/Accordion.js +4 -60
- package/dist/components/Accordion/hooks/useOnOpenChange.js +19 -28
- package/dist/components/AlertBanner/AlertBanner.js +11 -26
- package/dist/components/AlertBanner/AlertBannerProvider.js +3 -8
- package/dist/components/AlertBanner/primitives/AlertBannerAction.js +11 -69
- package/dist/components/AlertBanner/primitives/AlertBannerIcon.js +77 -39
- package/dist/components/AlertBanner/primitives/AlertBannerRoot.js +26 -22
- package/dist/components/AlertBanner/primitives/AlertBannerText.js +11 -70
- package/dist/components/AlertDialog/AlertDialog.js +5 -430
- package/dist/components/Avatar/Avatar.js +3 -71
- package/dist/components/AvatarWithStatus/AvatarWithStatus.js +3 -43
- package/dist/components/Badge/Badge.js +4 -62
- package/dist/components/Box/Box.js +3 -95
- package/dist/components/BubbleCounter/BubbleCounter.js +23 -28
- package/dist/components/Button/Button.js +4 -80
- package/dist/components/CalloutBanner/CalloutBanner.js +61 -12
- package/dist/components/CalloutBanner/primitives/CalloutBannerDismissButton.js +50 -22
- package/dist/components/CalloutBanner/primitives/CalloutBannerIcon.js +86 -45
- package/dist/components/CalloutBanner/primitives/CalloutBannerRoot.js +50 -24
- package/dist/components/CalloutBanner/primitives/CalloutBannerText.js +41 -11
- package/dist/components/Checkbox/Checkbox.js +4 -78
- package/dist/components/Checkbox/hooks/useIndeterminate.js +24 -30
- package/dist/components/Chips/Chips.types.js +0 -1
- package/dist/components/Chips/DismissibleChips.js +117 -86
- package/dist/components/Chips/MultiSelectChips.js +98 -64
- package/dist/components/Chips/SingleSelectChips.js +94 -57
- package/dist/components/Chips/private/ChipsPrimitive.js +4 -17
- package/dist/components/CountryFlag/CountryFlag.js +3 -44
- package/dist/components/Dialog/Dialog.js +56 -31
- package/dist/components/Dialog/DialogSteps.js +40 -29
- package/dist/components/Dialog/primitives/DialogActions.js +26 -19
- package/dist/components/Dialog/primitives/DialogButtonStack.d.ts.map +1 -1
- package/dist/components/Dialog/primitives/DialogButtonStack.js +22 -15
- package/dist/components/Dialog/primitives/DialogCloseButton.d.ts +1 -1
- package/dist/components/Dialog/primitives/DialogCloseButton.d.ts.map +1 -1
- package/dist/components/Dialog/primitives/DialogCloseButton.js +4 -67
- package/dist/components/Dialog/primitives/DialogDescription.js +3 -43
- package/dist/components/Dialog/primitives/DialogFooter.js +37 -34
- package/dist/components/Dialog/primitives/DialogRoot.js +4 -315
- package/dist/components/Dialog/primitives/DialogTitle.js +3 -42
- package/dist/components/Divider/Divider.js +3 -14
- package/dist/components/DropdownMenu/DropdownMenu.js +253 -188
- package/dist/components/DropdownMenu/primitives/DropdownMenu.primitives.js +5 -34
- package/dist/components/DropdownMenu/primitives/DropdownMenuSelectItem.primitives.js +121 -71
- package/dist/components/FieldButton/FieldButton.js +3 -37
- package/dist/components/FormControl/FormControl.js +3 -105
- package/dist/components/Heading/Heading.js +3 -78
- package/dist/components/Icon/Icon.js +4 -49
- package/dist/components/IconButton/IconButton.d.ts +5 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.js +4 -28
- package/dist/components/IconTile/IconTile.js +11 -69
- package/dist/components/IntlFormatted/IntlFormattedAggregatedDateTime.js +16 -32
- package/dist/components/IntlFormatted/IntlFormattedCurrency.js +20 -42
- package/dist/components/IntlFormatted/IntlFormattedDate.js +73 -195
- package/dist/components/IntlFormatted/IntlFormattedTime.js +14 -24
- package/dist/components/IntlFormatted/Wrapper.js +14 -8
- package/dist/components/LayoutFlex/LayoutFlex.js +3 -100
- package/dist/components/LayoutFlex/style/getStyleAttrs.js +71 -143
- package/dist/components/LayoutFlex/tests/AlignItems.js +67 -97
- package/dist/components/LayoutFlex/tests/ColumnReverse.js +63 -100
- package/dist/components/LayoutFlex/tests/DataOverride.js +1498 -1093
- package/dist/components/LayoutFlex/tests/Default.js +19 -20
- package/dist/components/LayoutFlex/tests/Direction.js +65 -88
- package/dist/components/LayoutFlex/tests/Gap.js +115 -197
- package/dist/components/LayoutFlex/tests/HideInline.js +95 -136
- package/dist/components/LayoutFlex/tests/JustifyContent.js +75 -108
- package/dist/components/LayoutFlex/tests/Nowrap.js +35 -42
- package/dist/components/LayoutFlex/tests/Padding.js +207 -263
- package/dist/components/LayoutFlex/tests/Relative.js +49 -64
- package/dist/components/LayoutFlexItem/LayoutFlexItem.js +3 -54
- package/dist/components/LayoutGrid/LayoutGrid.js +26 -34
- package/dist/components/LayoutGridItem/LayoutGridItem.js +3 -41
- package/dist/components/Link/Link.js +3 -72
- package/dist/components/Loader/Loader.js +3 -32
- package/dist/components/NumberField/NumberField.js +33 -35
- package/dist/components/ObserveIntersection/ObserveIntersection.js +41 -42
- package/dist/components/OnboardingTooltip/OnboardingTooltip.js +4 -115
- package/dist/components/OnboardingTour/OnboardingTour.js +4 -114
- package/dist/components/PasswordField/PasswordField.js +3 -78
- package/dist/components/PreplyLogo/PreplyLogo.js +3 -81
- package/dist/components/ProgressBar/ProgressBar.js +3 -27
- package/dist/components/ProgressSteps/ProgressSteps.js +3 -48
- package/dist/components/Rating/Rating.js +29 -20
- package/dist/components/Rating/RatingInput.js +57 -59
- package/dist/components/Rating/Stars.js +4 -8
- package/dist/components/Rating/hooks/useHasError.js +11 -15
- package/dist/components/Rating/hooks/useHoverPercentage.js +37 -45
- package/dist/components/Rating/hooks/useInputState.js +18 -24
- package/dist/components/Rating/hooks/useLocalizations.js +12 -24
- package/dist/components/Rating/utils/roundToHalfDecimal.js +4 -4
- package/dist/components/SelectField/Select.js +5 -112
- package/dist/components/SelectField/SelectField.js +29 -24
- package/dist/components/SelectField/hooks/useBreakpointMatch.js +18 -19
- package/dist/components/ShowOnIntersection/ShowOnIntersection.js +32 -21
- package/dist/components/Slider/RangeSlider.js +62 -52
- package/dist/components/Slider/Slider.js +3 -10
- package/dist/components/Steps/Steps.js +4 -210
- package/dist/components/Switch/Switch.js +3 -51
- package/dist/components/Text/Text.js +3 -128
- package/dist/components/TextField/TextField.js +27 -29
- package/dist/components/TextHighlighted/TextHighlighted.js +3 -41
- package/dist/components/TextInline/TextInline.js +3 -40
- package/dist/components/TextareaField/TextareaField.js +26 -28
- package/dist/components/Toast/Toast.js +4 -1168
- package/dist/components/Tooltip/Tooltip.js +3 -66
- package/dist/components/deprecated/Chips/Chips.js +4 -76
- package/dist/components/deprecated/NativeSelectField/NativeSelect.js +40 -32
- package/dist/components/deprecated/NativeSelectField/NativeSelectField.js +34 -33
- package/dist/components/deprecated/index.js +5 -6
- package/dist/components/index.js +50 -150
- package/dist/components/private/ButtonBase/ButtonBase.d.ts +7 -11
- package/dist/components/private/ButtonBase/ButtonBase.d.ts.map +1 -1
- package/dist/components/private/ButtonBase/ButtonBase.js +3 -247
- package/dist/components/private/Input/Input.js +27 -19
- package/dist/components/private/Input/InputContainer.js +3 -5
- package/dist/components/private/Input/Textarea.js +24 -20
- package/dist/components/private/Input/index.js +2 -4
- package/dist/components/private/Spinner/Spinner.js +3 -52
- package/dist/components/private/VisuallyHidden/VisuallyHidden.js +3 -15
- package/dist/components-BIYP8wHJ.js +200 -0
- package/dist/exp-color-C5mKAN91.js +74 -0
- package/dist/floating-ui.utils.dom-CoeTbDZx.js +215 -0
- package/dist/index.js +50 -150
- package/dist/index.module-1c7ENvxc.js +7 -0
- package/dist/jsx-runtime-i4KUlhDu.js +743 -0
- package/dist/layout-gap.module-DLD8bcR4.js +95 -0
- package/dist/layout-grid.module-CZfhrKrB.js +101 -0
- package/dist/layout-hide.module-B1P0N4i3.js +53 -0
- package/dist/layout-padding-ugY-yd2q.js +389 -0
- package/dist/layout-relative.module-B5xrFD9j.js +6 -0
- package/dist/render-icon-Ch3b2dE0.js +290 -0
- package/dist/shared-styles/align-self/align-self.js +2 -36
- package/dist/shared-styles/exp-color/exp-color.js +2 -68
- package/dist/shared-styles/layout-gap/layout-gap.js +13 -7
- package/dist/shared-styles/layout-grid/layout-grid.js +28 -28
- package/dist/shared-styles/layout-grid-responsive-columns/layout-grid-responsive-columns.js +29 -43
- package/dist/shared-styles/layout-hide/layout-hide.js +8 -8
- package/dist/shared-styles/layout-padding/layout-padding.js +2 -5
- package/dist/shared-styles/layout-relative/layout-relative.js +14 -8
- package/dist/shared-styles/text-accent/text-accent.js +2 -25
- package/dist/shared-styles/text-centered/text-centered.js +2 -24
- package/dist/shared-styles/text-weight/text-weight.js +2 -15
- package/dist/store-sN_eYeZT.js +1064 -0
- package/dist/storybook-utils/consts.js +6 -8
- package/dist/storybook-utils/index.js +1 -5
- package/dist/text-accent-CfUFx-1K.js +30 -0
- package/dist/text-centered-Dwp2_-Yp.js +30 -0
- package/dist/text-weight-CwoqmM4o.js +21 -0
- package/dist/useBaseUiId-CWAD_PSs.js +13 -0
- package/dist/useBreakpointMatch-D9a3CTNK.js +338 -0
- package/dist/useButton-DHTh3Hm7.js +148 -0
- package/dist/useDialogClose-BzFIyWco.js +22 -0
- package/dist/useId-CJsH-2wV.js +34 -0
- package/dist/useOpenInteractionType-D8vA_ZKI.js +4104 -0
- package/dist/useRenderElement-ZBds6eRN.js +341 -0
- package/dist/utils/Orientation/OrientationProvider.js +54 -23
- package/dist/utils/Orientation/index.js +2 -4
- package/dist/utils/RovingTabIndex/RovingTabIndexProvider.js +70 -44
- package/dist/utils/RovingTabIndex/index.js +2 -4
- package/dist/utils/createRequiredContext.js +23 -13
- package/dist/utils/filterAttributesPassedByRadixUIAtRuntime.js +28 -25
- package/dist/utils/render-icon.js +3 -320
- package/dist/utils/shared-strings.js +24 -32
- package/dist/utils/useBreakpointMatch.d.ts.map +1 -1
- package/dist/utils/useBreakpointMatch.js +2 -183
- package/dist/utils/useControllableState/useControllableState.js +31 -25
- package/dist/utils/useMergeRefs.js +29 -14
- package/dist/utils/useStableCallback/useStableCallback.js +28 -13
- package/package.json +17 -22
- package/dist/AlertBannerProvider-DTx2Xp3V.js +0 -50
- package/dist/BubbleCounter.module-QMwXWFIS.js +0 -16
- package/dist/ChipsPrimitive-DzsaOWgY.js +0 -1244
- package/dist/Dialog.module-Ba1X7b3N.js +0 -29
- package/dist/DialogRootContext-BCXmmJAw.js +0 -15
- package/dist/DropdownMenu.primitives-B3WK71bR.js +0 -5871
- package/dist/IconTile-D1G7MljH.js +0 -172
- package/dist/InputContainer-oHJlLWIi.js +0 -30
- package/dist/Slider-DB4Maswa.js +0 -55
- package/dist/Stars-C_mHop2H.js +0 -67
- package/dist/TokyoUIChevronDown-D_tD1yU8.js +0 -11
- package/dist/floating-ui.utils.dom-3OgjGonN.js +0 -234
- package/dist/index.module-Q9TzIR6B.js +0 -11
- package/dist/layout-gap.module-MKn_un_k.js +0 -97
- package/dist/layout-grid.module-P4B4WVUy.js +0 -103
- package/dist/layout-hide.module-Bpl3Pl-a.js +0 -55
- package/dist/layout-padding-D5I6rRlL.js +0 -373
- package/dist/layout-relative.module-1z75aSwo.js +0 -8
- package/dist/store-BUKWfVf3.js +0 -1155
- package/dist/useBaseUiId-DavsGYu9.js +0 -8
- package/dist/useButton-CFPpP0o5.js +0 -193
- package/dist/useDialogClose-C9x1leGd.js +0 -34
- package/dist/useId-BhIOp2JG.js +0 -28
- package/dist/useOpenInteractionType-Cj41-8Yk.js +0 -2880
- package/dist/useRenderElement-DtYPTE_y.js +0 -350
|
@@ -1,43 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { LayoutFlex } from "
|
|
1
|
+
import { n as __toESM, t as __commonJSMin } from "../../../chunk-BVTlhY3a.js";
|
|
2
|
+
import { t as require_jsx_runtime } from "../../../jsx-runtime-i4KUlhDu.js";
|
|
3
|
+
import { t as LayoutFlex } from "../../../LayoutFlex-e9auDvWD.js";
|
|
4
|
+
import React, { createElement, useContext, useDebugValue, useEffect, useMemo, useRef, useState } from "react";
|
|
5
|
+
//#region ../../node_modules/styled-components/node_modules/tslib/tslib.es6.mjs
|
|
4
6
|
var __assign = function() {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
function __spreadArray(to, from2, pack) {
|
|
15
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) {
|
|
16
|
-
if (ar || !(i in from2)) {
|
|
17
|
-
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
|
18
|
-
ar[i] = from2[i];
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return to.concat(ar || Array.prototype.slice.call(from2));
|
|
22
|
-
}
|
|
23
|
-
typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
24
|
-
var e = new Error(message);
|
|
25
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
7
|
+
__assign = Object.assign || function __assign(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
};
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
26
15
|
};
|
|
16
|
+
function __spreadArray(to, from, pack) {
|
|
17
|
+
if (pack || arguments.length === 2) {
|
|
18
|
+
for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
|
|
19
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
20
|
+
ar[i] = from[i];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region ../../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
27
27
|
function memoize(fn) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
28
|
+
var cache = Object.create(null);
|
|
29
|
+
return function(arg) {
|
|
30
|
+
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
|
31
|
+
return cache[arg];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
34
36
|
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
35
|
-
var isPropValid = /* @__PURE__ */ memoize(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
)
|
|
37
|
+
var isPropValid = /* @__PURE__ */ memoize(function(prop) {
|
|
38
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region ../../node_modules/shallowequal/index.js
|
|
42
|
+
var require_shallowequal = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
43
|
+
module.exports = function shallowEqual(objA, objB, compare, compareContext) {
|
|
44
|
+
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
|
|
45
|
+
if (ret !== void 0) return !!ret;
|
|
46
|
+
if (objA === objB) return true;
|
|
47
|
+
if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) return false;
|
|
48
|
+
var keysA = Object.keys(objA);
|
|
49
|
+
var keysB = Object.keys(objB);
|
|
50
|
+
if (keysA.length !== keysB.length) return false;
|
|
51
|
+
var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
|
|
52
|
+
for (var idx = 0; idx < keysA.length; idx++) {
|
|
53
|
+
var key = keysA[idx];
|
|
54
|
+
if (!bHasOwnProperty(key)) return false;
|
|
55
|
+
var valueA = objA[key];
|
|
56
|
+
var valueB = objB[key];
|
|
57
|
+
ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
|
|
58
|
+
if (ret === false || ret === void 0 && valueA !== valueB) return false;
|
|
59
|
+
}
|
|
60
|
+
return true;
|
|
61
|
+
};
|
|
62
|
+
}));
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region ../../node_modules/stylis/src/Enum.js
|
|
41
65
|
var MS = "-ms-";
|
|
42
66
|
var MOZ = "-moz-";
|
|
43
67
|
var WEBKIT = "-webkit-";
|
|
@@ -47,1218 +71,1599 @@ var DECLARATION = "decl";
|
|
|
47
71
|
var IMPORT = "@import";
|
|
48
72
|
var KEYFRAMES = "@keyframes";
|
|
49
73
|
var LAYER = "@layer";
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region ../../node_modules/stylis/src/Utility.js
|
|
76
|
+
/**
|
|
77
|
+
* @param {number}
|
|
78
|
+
* @return {number}
|
|
79
|
+
*/
|
|
50
80
|
var abs = Math.abs;
|
|
81
|
+
/**
|
|
82
|
+
* @param {number}
|
|
83
|
+
* @return {string}
|
|
84
|
+
*/
|
|
51
85
|
var from = String.fromCharCode;
|
|
86
|
+
/**
|
|
87
|
+
* @param {object}
|
|
88
|
+
* @return {object}
|
|
89
|
+
*/
|
|
52
90
|
var assign = Object.assign;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
91
|
+
/**
|
|
92
|
+
* @param {string} value
|
|
93
|
+
* @param {number} length
|
|
94
|
+
* @return {number}
|
|
95
|
+
*/
|
|
96
|
+
function hash(value, length) {
|
|
97
|
+
return charat(value, 0) ^ 45 ? (((length << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* @param {string} value
|
|
101
|
+
* @return {string}
|
|
102
|
+
*/
|
|
56
103
|
function trim(value) {
|
|
57
|
-
|
|
104
|
+
return value.trim();
|
|
58
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* @param {string} value
|
|
108
|
+
* @param {RegExp} pattern
|
|
109
|
+
* @return {string?}
|
|
110
|
+
*/
|
|
59
111
|
function match(value, pattern) {
|
|
60
|
-
|
|
61
|
-
}
|
|
112
|
+
return (value = pattern.exec(value)) ? value[0] : value;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @param {string} value
|
|
116
|
+
* @param {(string|RegExp)} pattern
|
|
117
|
+
* @param {string} replacement
|
|
118
|
+
* @return {string}
|
|
119
|
+
*/
|
|
62
120
|
function replace(value, pattern, replacement) {
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
121
|
+
return value.replace(pattern, replacement);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @param {string} value
|
|
125
|
+
* @param {string} search
|
|
126
|
+
* @param {number} position
|
|
127
|
+
* @return {number}
|
|
128
|
+
*/
|
|
129
|
+
function indexof(value, search, position) {
|
|
130
|
+
return value.indexOf(search, position);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @param {string} value
|
|
134
|
+
* @param {number} index
|
|
135
|
+
* @return {number}
|
|
136
|
+
*/
|
|
68
137
|
function charat(value, index) {
|
|
69
|
-
|
|
70
|
-
}
|
|
138
|
+
return value.charCodeAt(index) | 0;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @param {string} value
|
|
142
|
+
* @param {number} begin
|
|
143
|
+
* @param {number} end
|
|
144
|
+
* @return {string}
|
|
145
|
+
*/
|
|
71
146
|
function substr(value, begin, end) {
|
|
72
|
-
|
|
147
|
+
return value.slice(begin, end);
|
|
73
148
|
}
|
|
149
|
+
/**
|
|
150
|
+
* @param {string} value
|
|
151
|
+
* @return {number}
|
|
152
|
+
*/
|
|
74
153
|
function strlen(value) {
|
|
75
|
-
|
|
154
|
+
return value.length;
|
|
76
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* @param {any[]} value
|
|
158
|
+
* @return {number}
|
|
159
|
+
*/
|
|
77
160
|
function sizeof(value) {
|
|
78
|
-
|
|
161
|
+
return value.length;
|
|
79
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* @param {any} value
|
|
165
|
+
* @param {any[]} array
|
|
166
|
+
* @return {any}
|
|
167
|
+
*/
|
|
80
168
|
function append(value, array) {
|
|
81
|
-
|
|
169
|
+
return array.push(value), value;
|
|
82
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* @param {string[]} array
|
|
173
|
+
* @param {function} callback
|
|
174
|
+
* @return {string}
|
|
175
|
+
*/
|
|
83
176
|
function combine(array, callback) {
|
|
84
|
-
|
|
177
|
+
return array.map(callback).join("");
|
|
85
178
|
}
|
|
179
|
+
/**
|
|
180
|
+
* @param {string[]} array
|
|
181
|
+
* @param {RegExp} pattern
|
|
182
|
+
* @return {string[]}
|
|
183
|
+
*/
|
|
86
184
|
function filter(array, pattern) {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
185
|
+
return array.filter(function(value) {
|
|
186
|
+
return !match(value, pattern);
|
|
187
|
+
});
|
|
90
188
|
}
|
|
189
|
+
//#endregion
|
|
190
|
+
//#region ../../node_modules/stylis/src/Tokenizer.js
|
|
91
191
|
var line = 1;
|
|
92
192
|
var column = 1;
|
|
93
193
|
var length = 0;
|
|
94
194
|
var position = 0;
|
|
95
195
|
var character = 0;
|
|
96
196
|
var characters = "";
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
197
|
+
/**
|
|
198
|
+
* @param {string} value
|
|
199
|
+
* @param {object | null} root
|
|
200
|
+
* @param {object | null} parent
|
|
201
|
+
* @param {string} type
|
|
202
|
+
* @param {string[] | string} props
|
|
203
|
+
* @param {object[] | string} children
|
|
204
|
+
* @param {object[]} siblings
|
|
205
|
+
* @param {number} length
|
|
206
|
+
*/
|
|
207
|
+
function node(value, root, parent, type, props, children, length, siblings) {
|
|
208
|
+
return {
|
|
209
|
+
value,
|
|
210
|
+
root,
|
|
211
|
+
parent,
|
|
212
|
+
type,
|
|
213
|
+
props,
|
|
214
|
+
children,
|
|
215
|
+
line,
|
|
216
|
+
column,
|
|
217
|
+
length,
|
|
218
|
+
return: "",
|
|
219
|
+
siblings
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @param {object} root
|
|
224
|
+
* @param {object} props
|
|
225
|
+
* @return {object}
|
|
226
|
+
*/
|
|
100
227
|
function copy(root, props) {
|
|
101
|
-
|
|
228
|
+
return assign(node("", null, null, "", null, null, 0, root.siblings), root, { length: -root.length }, props);
|
|
102
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* @param {object} root
|
|
232
|
+
*/
|
|
103
233
|
function lift(root) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
append(root, root.siblings);
|
|
234
|
+
while (root.root) root = copy(root.root, { children: [root] });
|
|
235
|
+
append(root, root.siblings);
|
|
107
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* @return {number}
|
|
239
|
+
*/
|
|
108
240
|
function char() {
|
|
109
|
-
|
|
241
|
+
return character;
|
|
110
242
|
}
|
|
243
|
+
/**
|
|
244
|
+
* @return {number}
|
|
245
|
+
*/
|
|
111
246
|
function prev() {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return character;
|
|
247
|
+
character = position > 0 ? charat(characters, --position) : 0;
|
|
248
|
+
if (column--, character === 10) column = 1, line--;
|
|
249
|
+
return character;
|
|
116
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* @return {number}
|
|
253
|
+
*/
|
|
117
254
|
function next() {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
return character;
|
|
255
|
+
character = position < length ? charat(characters, position++) : 0;
|
|
256
|
+
if (column++, character === 10) column = 1, line++;
|
|
257
|
+
return character;
|
|
122
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* @return {number}
|
|
261
|
+
*/
|
|
123
262
|
function peek() {
|
|
124
|
-
|
|
263
|
+
return charat(characters, position);
|
|
125
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* @return {number}
|
|
267
|
+
*/
|
|
126
268
|
function caret() {
|
|
127
|
-
|
|
269
|
+
return position;
|
|
128
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* @param {number} begin
|
|
273
|
+
* @param {number} end
|
|
274
|
+
* @return {string}
|
|
275
|
+
*/
|
|
129
276
|
function slice(begin, end) {
|
|
130
|
-
|
|
277
|
+
return substr(characters, begin, end);
|
|
131
278
|
}
|
|
279
|
+
/**
|
|
280
|
+
* @param {number} type
|
|
281
|
+
* @return {number}
|
|
282
|
+
*/
|
|
132
283
|
function token(type) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
// ) ] closing delimit token
|
|
164
|
-
case 41:
|
|
165
|
-
case 93:
|
|
166
|
-
return 1;
|
|
167
|
-
}
|
|
168
|
-
return 0;
|
|
169
|
-
}
|
|
284
|
+
switch (type) {
|
|
285
|
+
case 0:
|
|
286
|
+
case 9:
|
|
287
|
+
case 10:
|
|
288
|
+
case 13:
|
|
289
|
+
case 32: return 5;
|
|
290
|
+
case 33:
|
|
291
|
+
case 43:
|
|
292
|
+
case 44:
|
|
293
|
+
case 47:
|
|
294
|
+
case 62:
|
|
295
|
+
case 64:
|
|
296
|
+
case 126:
|
|
297
|
+
case 59:
|
|
298
|
+
case 123:
|
|
299
|
+
case 125: return 4;
|
|
300
|
+
case 58: return 3;
|
|
301
|
+
case 34:
|
|
302
|
+
case 39:
|
|
303
|
+
case 40:
|
|
304
|
+
case 91: return 2;
|
|
305
|
+
case 41:
|
|
306
|
+
case 93: return 1;
|
|
307
|
+
}
|
|
308
|
+
return 0;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* @param {string} value
|
|
312
|
+
* @return {any[]}
|
|
313
|
+
*/
|
|
170
314
|
function alloc(value) {
|
|
171
|
-
|
|
315
|
+
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
172
316
|
}
|
|
317
|
+
/**
|
|
318
|
+
* @param {any} value
|
|
319
|
+
* @return {any}
|
|
320
|
+
*/
|
|
173
321
|
function dealloc(value) {
|
|
174
|
-
|
|
322
|
+
return characters = "", value;
|
|
175
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* @param {number} type
|
|
326
|
+
* @return {string}
|
|
327
|
+
*/
|
|
176
328
|
function delimit(type) {
|
|
177
|
-
|
|
329
|
+
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
178
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* @param {number} type
|
|
333
|
+
* @return {string}
|
|
334
|
+
*/
|
|
179
335
|
function whitespace(type) {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
336
|
+
while (character = peek()) if (character < 33) next();
|
|
337
|
+
else break;
|
|
338
|
+
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* @param {number} index
|
|
342
|
+
* @param {number} count
|
|
343
|
+
* @return {string}
|
|
344
|
+
*/
|
|
187
345
|
function escaping(index, count) {
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
break;
|
|
191
|
-
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
346
|
+
while (--count && next()) if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break;
|
|
347
|
+
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
192
348
|
}
|
|
349
|
+
/**
|
|
350
|
+
* @param {number} type
|
|
351
|
+
* @return {number}
|
|
352
|
+
*/
|
|
193
353
|
function delimiter(type) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}
|
|
215
|
-
return position;
|
|
216
|
-
}
|
|
354
|
+
while (next()) switch (character) {
|
|
355
|
+
case type: return position;
|
|
356
|
+
case 34:
|
|
357
|
+
case 39:
|
|
358
|
+
if (type !== 34 && type !== 39) delimiter(character);
|
|
359
|
+
break;
|
|
360
|
+
case 40:
|
|
361
|
+
if (type === 41) delimiter(type);
|
|
362
|
+
break;
|
|
363
|
+
case 92:
|
|
364
|
+
next();
|
|
365
|
+
break;
|
|
366
|
+
}
|
|
367
|
+
return position;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @param {number} type
|
|
371
|
+
* @param {number} index
|
|
372
|
+
* @return {number}
|
|
373
|
+
*/
|
|
217
374
|
function commenter(type, index) {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
375
|
+
while (next()) if (type + character === 57) break;
|
|
376
|
+
else if (type + character === 84 && peek() === 47) break;
|
|
377
|
+
return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* @param {number} index
|
|
381
|
+
* @return {string}
|
|
382
|
+
*/
|
|
225
383
|
function identifier(index) {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
384
|
+
while (!token(peek())) next();
|
|
385
|
+
return slice(index, position);
|
|
386
|
+
}
|
|
387
|
+
//#endregion
|
|
388
|
+
//#region ../../node_modules/stylis/src/Parser.js
|
|
389
|
+
/**
|
|
390
|
+
* @param {string} value
|
|
391
|
+
* @return {object[]}
|
|
392
|
+
*/
|
|
230
393
|
function compile(value) {
|
|
231
|
-
|
|
232
|
-
}
|
|
394
|
+
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* @param {string} value
|
|
398
|
+
* @param {object} root
|
|
399
|
+
* @param {object?} parent
|
|
400
|
+
* @param {string[]} rule
|
|
401
|
+
* @param {string[]} rules
|
|
402
|
+
* @param {string[]} rulesets
|
|
403
|
+
* @param {number[]} pseudo
|
|
404
|
+
* @param {number[]} points
|
|
405
|
+
* @param {string[]} declarations
|
|
406
|
+
* @return {object}
|
|
407
|
+
*/
|
|
233
408
|
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
if (previous === 45 && strlen(characters2) == 2)
|
|
356
|
-
variable = 0;
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
return rulesets;
|
|
360
|
-
}
|
|
361
|
-
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2, siblings) {
|
|
362
|
-
var post = offset - 1;
|
|
363
|
-
var rule = offset === 0 ? rules : [""];
|
|
364
|
-
var size = sizeof(rule);
|
|
365
|
-
for (var i = 0, j2 = 0, k2 = 0; i < index; ++i)
|
|
366
|
-
for (var x2 = 0, y2 = substr(value, post + 1, post = abs(j2 = points[i])), z2 = value; x2 < size; ++x2)
|
|
367
|
-
if (z2 = trim(j2 > 0 ? rule[x2] + " " + y2 : replace(y2, /&\f/g, rule[x2])))
|
|
368
|
-
props[k2++] = z2;
|
|
369
|
-
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2, siblings);
|
|
370
|
-
}
|
|
409
|
+
var index = 0;
|
|
410
|
+
var offset = 0;
|
|
411
|
+
var length = pseudo;
|
|
412
|
+
var atrule = 0;
|
|
413
|
+
var property = 0;
|
|
414
|
+
var previous = 0;
|
|
415
|
+
var variable = 1;
|
|
416
|
+
var scanning = 1;
|
|
417
|
+
var ampersand = 1;
|
|
418
|
+
var character = 0;
|
|
419
|
+
var type = "";
|
|
420
|
+
var props = rules;
|
|
421
|
+
var children = rulesets;
|
|
422
|
+
var reference = rule;
|
|
423
|
+
var characters = type;
|
|
424
|
+
while (scanning) switch (previous = character, character = next()) {
|
|
425
|
+
case 40: if (previous != 108 && charat(characters, length - 1) == 58) {
|
|
426
|
+
if (indexof(characters += replace(delimit(character), "&", "&\f"), "&\f", abs(index ? points[index - 1] : 0)) != -1) ampersand = -1;
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
case 34:
|
|
430
|
+
case 39:
|
|
431
|
+
case 91:
|
|
432
|
+
characters += delimit(character);
|
|
433
|
+
break;
|
|
434
|
+
case 9:
|
|
435
|
+
case 10:
|
|
436
|
+
case 13:
|
|
437
|
+
case 32:
|
|
438
|
+
characters += whitespace(previous);
|
|
439
|
+
break;
|
|
440
|
+
case 92:
|
|
441
|
+
characters += escaping(caret() - 1, 7);
|
|
442
|
+
continue;
|
|
443
|
+
case 47:
|
|
444
|
+
switch (peek()) {
|
|
445
|
+
case 42:
|
|
446
|
+
case 47:
|
|
447
|
+
append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
|
|
448
|
+
break;
|
|
449
|
+
default: characters += "/";
|
|
450
|
+
}
|
|
451
|
+
break;
|
|
452
|
+
case 123 * variable: points[index++] = strlen(characters) * ampersand;
|
|
453
|
+
case 125 * variable:
|
|
454
|
+
case 59:
|
|
455
|
+
case 0:
|
|
456
|
+
switch (character) {
|
|
457
|
+
case 0:
|
|
458
|
+
case 125: scanning = 0;
|
|
459
|
+
case 59 + offset:
|
|
460
|
+
if (ampersand == -1) characters = replace(characters, /\f/g, "");
|
|
461
|
+
if (property > 0 && strlen(characters) - length) append(property > 32 ? declaration(characters + ";", rule, parent, length - 1, declarations) : declaration(replace(characters, " ", "") + ";", rule, parent, length - 2, declarations), declarations);
|
|
462
|
+
break;
|
|
463
|
+
case 59: characters += ";";
|
|
464
|
+
default:
|
|
465
|
+
append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
466
|
+
if (character === 123) if (offset === 0) parse(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
467
|
+
else switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
|
|
468
|
+
case 100:
|
|
469
|
+
case 108:
|
|
470
|
+
case 109:
|
|
471
|
+
case 115:
|
|
472
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
|
|
473
|
+
break;
|
|
474
|
+
default: parse(characters, reference, reference, reference, [""], children, 0, points, children);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
index = offset = property = 0, variable = ampersand = 1, type = characters = "", length = pseudo;
|
|
478
|
+
break;
|
|
479
|
+
case 58: length = 1 + strlen(characters), property = previous;
|
|
480
|
+
default:
|
|
481
|
+
if (variable < 1) {
|
|
482
|
+
if (character == 123) --variable;
|
|
483
|
+
else if (character == 125 && variable++ == 0 && prev() == 125) continue;
|
|
484
|
+
}
|
|
485
|
+
switch (characters += from(character), character * variable) {
|
|
486
|
+
case 38:
|
|
487
|
+
ampersand = offset > 0 ? 1 : (characters += "\f", -1);
|
|
488
|
+
break;
|
|
489
|
+
case 44:
|
|
490
|
+
points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
|
|
491
|
+
break;
|
|
492
|
+
case 64:
|
|
493
|
+
if (peek() === 45) characters += delimit(next());
|
|
494
|
+
atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
|
|
495
|
+
break;
|
|
496
|
+
case 45: if (previous === 45 && strlen(characters) == 2) variable = 0;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return rulesets;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* @param {string} value
|
|
503
|
+
* @param {object} root
|
|
504
|
+
* @param {object?} parent
|
|
505
|
+
* @param {number} index
|
|
506
|
+
* @param {number} offset
|
|
507
|
+
* @param {string[]} rules
|
|
508
|
+
* @param {number[]} points
|
|
509
|
+
* @param {string} type
|
|
510
|
+
* @param {string[]} props
|
|
511
|
+
* @param {string[]} children
|
|
512
|
+
* @param {number} length
|
|
513
|
+
* @param {object[]} siblings
|
|
514
|
+
* @return {object}
|
|
515
|
+
*/
|
|
516
|
+
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
517
|
+
var post = offset - 1;
|
|
518
|
+
var rule = offset === 0 ? rules : [""];
|
|
519
|
+
var size = sizeof(rule);
|
|
520
|
+
for (var i = 0, j = 0, k = 0; i < index; ++i) for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x) if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x]))) props[k++] = z;
|
|
521
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings);
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* @param {number} value
|
|
525
|
+
* @param {object} root
|
|
526
|
+
* @param {object?} parent
|
|
527
|
+
* @param {object[]} siblings
|
|
528
|
+
* @return {object}
|
|
529
|
+
*/
|
|
371
530
|
function comment(value, root, parent, siblings) {
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
case 5533:
|
|
513
|
-
case 5789:
|
|
514
|
-
case 5021:
|
|
515
|
-
case 4765:
|
|
516
|
-
if (strlen(value) - 1 - length2 > 6)
|
|
517
|
-
switch (charat(value, length2 + 1)) {
|
|
518
|
-
// (m)ax-content, (m)in-content
|
|
519
|
-
case 109:
|
|
520
|
-
if (charat(value, length2 + 4) !== 45)
|
|
521
|
-
break;
|
|
522
|
-
// (f)ill-available, (f)it-content
|
|
523
|
-
case 102:
|
|
524
|
-
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
525
|
-
// (s)tretch
|
|
526
|
-
case 115:
|
|
527
|
-
return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length2, children) + value : value;
|
|
528
|
-
}
|
|
529
|
-
break;
|
|
530
|
-
// grid-(column|row)
|
|
531
|
-
case 5152:
|
|
532
|
-
case 5920:
|
|
533
|
-
return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_2, a, b2, c, d, e, f2) {
|
|
534
|
-
return MS + a + ":" + b2 + f2 + (c ? MS + a + "-span:" + (d ? e : +e - +b2) + f2 : "") + value;
|
|
535
|
-
});
|
|
536
|
-
// position: sticky
|
|
537
|
-
case 4949:
|
|
538
|
-
if (charat(value, length2 + 6) === 121)
|
|
539
|
-
return replace(value, ":", ":" + WEBKIT) + value;
|
|
540
|
-
break;
|
|
541
|
-
// display: (flex|inline-flex|grid|inline-grid)
|
|
542
|
-
case 6444:
|
|
543
|
-
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
544
|
-
// (inline-)?fle(x)
|
|
545
|
-
case 120:
|
|
546
|
-
return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
547
|
-
// (inline-)?gri(d)
|
|
548
|
-
case 100:
|
|
549
|
-
return replace(value, ":", ":" + MS) + value;
|
|
550
|
-
}
|
|
551
|
-
break;
|
|
552
|
-
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
553
|
-
case 5719:
|
|
554
|
-
case 2647:
|
|
555
|
-
case 2135:
|
|
556
|
-
case 3927:
|
|
557
|
-
case 2391:
|
|
558
|
-
return replace(value, "scroll-", "scroll-snap-") + value;
|
|
559
|
-
}
|
|
560
|
-
return value;
|
|
561
|
-
}
|
|
531
|
+
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings);
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* @param {string} value
|
|
535
|
+
* @param {object} root
|
|
536
|
+
* @param {object?} parent
|
|
537
|
+
* @param {number} length
|
|
538
|
+
* @param {object[]} siblings
|
|
539
|
+
* @return {object}
|
|
540
|
+
*/
|
|
541
|
+
function declaration(value, root, parent, length, siblings) {
|
|
542
|
+
return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings);
|
|
543
|
+
}
|
|
544
|
+
//#endregion
|
|
545
|
+
//#region ../../node_modules/stylis/src/Prefixer.js
|
|
546
|
+
/**
|
|
547
|
+
* @param {string} value
|
|
548
|
+
* @param {number} length
|
|
549
|
+
* @param {object[]} children
|
|
550
|
+
* @return {string}
|
|
551
|
+
*/
|
|
552
|
+
function prefix(value, length, children) {
|
|
553
|
+
switch (hash(value, length)) {
|
|
554
|
+
case 5103: return WEBKIT + "print-" + value + value;
|
|
555
|
+
case 5737:
|
|
556
|
+
case 4201:
|
|
557
|
+
case 3177:
|
|
558
|
+
case 3433:
|
|
559
|
+
case 1641:
|
|
560
|
+
case 4457:
|
|
561
|
+
case 2921:
|
|
562
|
+
case 5572:
|
|
563
|
+
case 6356:
|
|
564
|
+
case 5844:
|
|
565
|
+
case 3191:
|
|
566
|
+
case 6645:
|
|
567
|
+
case 3005:
|
|
568
|
+
case 6391:
|
|
569
|
+
case 5879:
|
|
570
|
+
case 5623:
|
|
571
|
+
case 6135:
|
|
572
|
+
case 4599:
|
|
573
|
+
case 4855:
|
|
574
|
+
case 4215:
|
|
575
|
+
case 6389:
|
|
576
|
+
case 5109:
|
|
577
|
+
case 5365:
|
|
578
|
+
case 5621:
|
|
579
|
+
case 3829: return WEBKIT + value + value;
|
|
580
|
+
case 4789: return MOZ + value + value;
|
|
581
|
+
case 5349:
|
|
582
|
+
case 4246:
|
|
583
|
+
case 4810:
|
|
584
|
+
case 6968:
|
|
585
|
+
case 2756: return WEBKIT + value + MOZ + value + MS + value + value;
|
|
586
|
+
case 5936: switch (charat(value, length + 11)) {
|
|
587
|
+
case 114: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
588
|
+
case 108: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
589
|
+
case 45: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
590
|
+
}
|
|
591
|
+
case 6828:
|
|
592
|
+
case 4268:
|
|
593
|
+
case 2903: return WEBKIT + value + MS + value + value;
|
|
594
|
+
case 6165: return WEBKIT + value + MS + "flex-" + value + value;
|
|
595
|
+
case 5187: return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
596
|
+
case 5443: return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/g, "") + (!match(value, /flex-|baseline/) ? MS + "grid-row-" + replace(value, /flex-|-self/g, "") : "") + value;
|
|
597
|
+
case 4675: return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/g, "") + value;
|
|
598
|
+
case 5548: return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
599
|
+
case 5292: return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
600
|
+
case 6060: return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
601
|
+
case 4554: return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
602
|
+
case 6187: return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
603
|
+
case 5495:
|
|
604
|
+
case 3959: return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
605
|
+
case 4968: return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
|
|
606
|
+
case 4200:
|
|
607
|
+
if (!match(value, /flex-|baseline/)) return MS + "grid-column-align" + substr(value, length) + value;
|
|
608
|
+
break;
|
|
609
|
+
case 2592:
|
|
610
|
+
case 3360: return MS + replace(value, "template-", "") + value;
|
|
611
|
+
case 4384:
|
|
612
|
+
case 3616:
|
|
613
|
+
if (children && children.some(function(element, index) {
|
|
614
|
+
return length = index, match(element.props, /grid-\w+-end/);
|
|
615
|
+
})) return ~indexof(value + (children = children[length].value), "span", 0) ? value : MS + replace(value, "-start", "") + value + MS + "grid-row-span:" + (~indexof(children, "span", 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ";";
|
|
616
|
+
return MS + replace(value, "-start", "") + value;
|
|
617
|
+
case 4896:
|
|
618
|
+
case 4128: return children && children.some(function(element) {
|
|
619
|
+
return match(element.props, /grid-\w+-start/);
|
|
620
|
+
}) ? value : MS + replace(replace(value, "-end", "-span"), "span ", "") + value;
|
|
621
|
+
case 4095:
|
|
622
|
+
case 3583:
|
|
623
|
+
case 4068:
|
|
624
|
+
case 2532: return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
625
|
+
case 8116:
|
|
626
|
+
case 7059:
|
|
627
|
+
case 5753:
|
|
628
|
+
case 5535:
|
|
629
|
+
case 5445:
|
|
630
|
+
case 5701:
|
|
631
|
+
case 4933:
|
|
632
|
+
case 4677:
|
|
633
|
+
case 5533:
|
|
634
|
+
case 5789:
|
|
635
|
+
case 5021:
|
|
636
|
+
case 4765:
|
|
637
|
+
if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
|
|
638
|
+
case 109: if (charat(value, length + 4) !== 45) break;
|
|
639
|
+
case 102: return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
640
|
+
case 115: return ~indexof(value, "stretch", 0) ? prefix(replace(value, "stretch", "fill-available"), length, children) + value : value;
|
|
641
|
+
}
|
|
642
|
+
break;
|
|
643
|
+
case 5152:
|
|
644
|
+
case 5920: return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(_, a, b, c, d, e, f) {
|
|
645
|
+
return MS + a + ":" + b + f + (c ? MS + a + "-span:" + (d ? e : +e - +b) + f : "") + value;
|
|
646
|
+
});
|
|
647
|
+
case 4949:
|
|
648
|
+
if (charat(value, length + 6) === 121) return replace(value, ":", ":" + WEBKIT) + value;
|
|
649
|
+
break;
|
|
650
|
+
case 6444:
|
|
651
|
+
switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
|
|
652
|
+
case 120: return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
653
|
+
case 100: return replace(value, ":", ":" + MS) + value;
|
|
654
|
+
}
|
|
655
|
+
break;
|
|
656
|
+
case 5719:
|
|
657
|
+
case 2647:
|
|
658
|
+
case 2135:
|
|
659
|
+
case 3927:
|
|
660
|
+
case 2391: return replace(value, "scroll-", "scroll-snap-") + value;
|
|
661
|
+
}
|
|
662
|
+
return value;
|
|
663
|
+
}
|
|
664
|
+
//#endregion
|
|
665
|
+
//#region ../../node_modules/stylis/src/Serializer.js
|
|
666
|
+
/**
|
|
667
|
+
* @param {object[]} children
|
|
668
|
+
* @param {function} callback
|
|
669
|
+
* @return {string}
|
|
670
|
+
*/
|
|
562
671
|
function serialize(children, callback) {
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
672
|
+
var output = "";
|
|
673
|
+
for (var i = 0; i < children.length; i++) output += callback(children[i], i, children, callback) || "";
|
|
674
|
+
return output;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* @param {object} element
|
|
678
|
+
* @param {number} index
|
|
679
|
+
* @param {object[]} children
|
|
680
|
+
* @param {function} callback
|
|
681
|
+
* @return {string}
|
|
682
|
+
*/
|
|
568
683
|
function stringify(element, index, children, callback) {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
}
|
|
684
|
+
switch (element.type) {
|
|
685
|
+
case LAYER: if (element.children.length) break;
|
|
686
|
+
case IMPORT:
|
|
687
|
+
case DECLARATION: return element.return = element.return || element.value;
|
|
688
|
+
case COMMENT: return "";
|
|
689
|
+
case KEYFRAMES: return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
690
|
+
case RULESET: if (!strlen(element.value = element.props.join(","))) return "";
|
|
691
|
+
}
|
|
692
|
+
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
693
|
+
}
|
|
694
|
+
//#endregion
|
|
695
|
+
//#region ../../node_modules/stylis/src/Middleware.js
|
|
696
|
+
/**
|
|
697
|
+
* @param {function[]} collection
|
|
698
|
+
* @return {function}
|
|
699
|
+
*/
|
|
584
700
|
function middleware(collection) {
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
701
|
+
var length = sizeof(collection);
|
|
702
|
+
return function(element, index, children, callback) {
|
|
703
|
+
var output = "";
|
|
704
|
+
for (var i = 0; i < length; i++) output += collection[i](element, index, children, callback) || "";
|
|
705
|
+
return output;
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* @param {function} callback
|
|
710
|
+
* @return {function}
|
|
711
|
+
*/
|
|
593
712
|
function rulesheet(callback) {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
713
|
+
return function(element) {
|
|
714
|
+
if (!element.root) {
|
|
715
|
+
if (element = element.return) callback(element);
|
|
716
|
+
}
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* @param {object} element
|
|
721
|
+
* @param {number} index
|
|
722
|
+
* @param {object[]} children
|
|
723
|
+
* @param {function} callback
|
|
724
|
+
*/
|
|
601
725
|
function prefixer(element, index, children, callback) {
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
726
|
+
if (element.length > -1) {
|
|
727
|
+
if (!element.return) switch (element.type) {
|
|
728
|
+
case DECLARATION:
|
|
729
|
+
element.return = prefix(element.value, element.length, children);
|
|
730
|
+
return;
|
|
731
|
+
case KEYFRAMES: return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback);
|
|
732
|
+
case RULESET: if (element.length) return combine(children = element.props, function(value) {
|
|
733
|
+
switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
734
|
+
case ":read-only":
|
|
735
|
+
case ":read-write":
|
|
736
|
+
lift(copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] }));
|
|
737
|
+
lift(copy(element, { props: [value] }));
|
|
738
|
+
assign(element, { props: filter(children, callback) });
|
|
739
|
+
break;
|
|
740
|
+
case "::placeholder":
|
|
741
|
+
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }));
|
|
742
|
+
lift(copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }));
|
|
743
|
+
lift(copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }));
|
|
744
|
+
lift(copy(element, { props: [value] }));
|
|
745
|
+
assign(element, { props: filter(children, callback) });
|
|
746
|
+
break;
|
|
747
|
+
}
|
|
748
|
+
return "";
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
//#endregion
|
|
754
|
+
//#region ../../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
755
|
+
var import_shallowequal = /* @__PURE__ */ __toESM(require_shallowequal());
|
|
635
756
|
var unitlessKeys = {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
strokeWidth: 1
|
|
757
|
+
animationIterationCount: 1,
|
|
758
|
+
aspectRatio: 1,
|
|
759
|
+
borderImageOutset: 1,
|
|
760
|
+
borderImageSlice: 1,
|
|
761
|
+
borderImageWidth: 1,
|
|
762
|
+
boxFlex: 1,
|
|
763
|
+
boxFlexGroup: 1,
|
|
764
|
+
boxOrdinalGroup: 1,
|
|
765
|
+
columnCount: 1,
|
|
766
|
+
columns: 1,
|
|
767
|
+
flex: 1,
|
|
768
|
+
flexGrow: 1,
|
|
769
|
+
flexPositive: 1,
|
|
770
|
+
flexShrink: 1,
|
|
771
|
+
flexNegative: 1,
|
|
772
|
+
flexOrder: 1,
|
|
773
|
+
gridRow: 1,
|
|
774
|
+
gridRowEnd: 1,
|
|
775
|
+
gridRowSpan: 1,
|
|
776
|
+
gridRowStart: 1,
|
|
777
|
+
gridColumn: 1,
|
|
778
|
+
gridColumnEnd: 1,
|
|
779
|
+
gridColumnSpan: 1,
|
|
780
|
+
gridColumnStart: 1,
|
|
781
|
+
msGridRow: 1,
|
|
782
|
+
msGridRowSpan: 1,
|
|
783
|
+
msGridColumn: 1,
|
|
784
|
+
msGridColumnSpan: 1,
|
|
785
|
+
fontWeight: 1,
|
|
786
|
+
lineHeight: 1,
|
|
787
|
+
opacity: 1,
|
|
788
|
+
order: 1,
|
|
789
|
+
orphans: 1,
|
|
790
|
+
tabSize: 1,
|
|
791
|
+
widows: 1,
|
|
792
|
+
zIndex: 1,
|
|
793
|
+
zoom: 1,
|
|
794
|
+
WebkitLineClamp: 1,
|
|
795
|
+
fillOpacity: 1,
|
|
796
|
+
floodOpacity: 1,
|
|
797
|
+
stopOpacity: 1,
|
|
798
|
+
strokeDasharray: 1,
|
|
799
|
+
strokeDashoffset: 1,
|
|
800
|
+
strokeMiterlimit: 1,
|
|
801
|
+
strokeOpacity: 1,
|
|
802
|
+
strokeWidth: 1
|
|
683
803
|
};
|
|
804
|
+
//#endregion
|
|
805
|
+
//#region ../../node_modules/styled-components/dist/styled-components.browser.esm.js
|
|
684
806
|
var f = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", m = "active", y = "data-styled-version", v = "6.1.19", g = "/*!sc*/\n", S = "undefined" != typeof window && "undefined" != typeof document, w = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV), b = {}, E = /invalid hook call/i, N = /* @__PURE__ */ new Set(), P = function(t, n) {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
807
|
+
if ("production" !== process.env.NODE_ENV) {
|
|
808
|
+
var o = n ? " with the id of \"".concat(n, "\"") : "", s = "The component ".concat(t).concat(o, " has been created dynamically.\n") + "You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n", i = console.error;
|
|
809
|
+
try {
|
|
810
|
+
var a = !0;
|
|
811
|
+
console.error = function(t) {
|
|
812
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
813
|
+
E.test(t) ? (a = !1, N.delete(s)) : i.apply(void 0, __spreadArray([t], n, !1));
|
|
814
|
+
}, useRef(), a && !N.has(s) && (console.warn(s), N.add(s));
|
|
815
|
+
} catch (e) {
|
|
816
|
+
E.test(e.message) && N.delete(s);
|
|
817
|
+
} finally {
|
|
818
|
+
console.error = i;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
699
821
|
}, _ = Object.freeze([]), C = Object.freeze({});
|
|
700
822
|
function I(e, t, n) {
|
|
701
|
-
|
|
702
|
-
}
|
|
703
|
-
var A =
|
|
823
|
+
return void 0 === n && (n = C), e.theme !== n.theme && e.theme || t || n.theme;
|
|
824
|
+
}
|
|
825
|
+
var A = new Set([
|
|
826
|
+
"a",
|
|
827
|
+
"abbr",
|
|
828
|
+
"address",
|
|
829
|
+
"area",
|
|
830
|
+
"article",
|
|
831
|
+
"aside",
|
|
832
|
+
"audio",
|
|
833
|
+
"b",
|
|
834
|
+
"base",
|
|
835
|
+
"bdi",
|
|
836
|
+
"bdo",
|
|
837
|
+
"big",
|
|
838
|
+
"blockquote",
|
|
839
|
+
"body",
|
|
840
|
+
"br",
|
|
841
|
+
"button",
|
|
842
|
+
"canvas",
|
|
843
|
+
"caption",
|
|
844
|
+
"cite",
|
|
845
|
+
"code",
|
|
846
|
+
"col",
|
|
847
|
+
"colgroup",
|
|
848
|
+
"data",
|
|
849
|
+
"datalist",
|
|
850
|
+
"dd",
|
|
851
|
+
"del",
|
|
852
|
+
"details",
|
|
853
|
+
"dfn",
|
|
854
|
+
"dialog",
|
|
855
|
+
"div",
|
|
856
|
+
"dl",
|
|
857
|
+
"dt",
|
|
858
|
+
"em",
|
|
859
|
+
"embed",
|
|
860
|
+
"fieldset",
|
|
861
|
+
"figcaption",
|
|
862
|
+
"figure",
|
|
863
|
+
"footer",
|
|
864
|
+
"form",
|
|
865
|
+
"h1",
|
|
866
|
+
"h2",
|
|
867
|
+
"h3",
|
|
868
|
+
"h4",
|
|
869
|
+
"h5",
|
|
870
|
+
"h6",
|
|
871
|
+
"header",
|
|
872
|
+
"hgroup",
|
|
873
|
+
"hr",
|
|
874
|
+
"html",
|
|
875
|
+
"i",
|
|
876
|
+
"iframe",
|
|
877
|
+
"img",
|
|
878
|
+
"input",
|
|
879
|
+
"ins",
|
|
880
|
+
"kbd",
|
|
881
|
+
"keygen",
|
|
882
|
+
"label",
|
|
883
|
+
"legend",
|
|
884
|
+
"li",
|
|
885
|
+
"link",
|
|
886
|
+
"main",
|
|
887
|
+
"map",
|
|
888
|
+
"mark",
|
|
889
|
+
"menu",
|
|
890
|
+
"menuitem",
|
|
891
|
+
"meta",
|
|
892
|
+
"meter",
|
|
893
|
+
"nav",
|
|
894
|
+
"noscript",
|
|
895
|
+
"object",
|
|
896
|
+
"ol",
|
|
897
|
+
"optgroup",
|
|
898
|
+
"option",
|
|
899
|
+
"output",
|
|
900
|
+
"p",
|
|
901
|
+
"param",
|
|
902
|
+
"picture",
|
|
903
|
+
"pre",
|
|
904
|
+
"progress",
|
|
905
|
+
"q",
|
|
906
|
+
"rp",
|
|
907
|
+
"rt",
|
|
908
|
+
"ruby",
|
|
909
|
+
"s",
|
|
910
|
+
"samp",
|
|
911
|
+
"script",
|
|
912
|
+
"section",
|
|
913
|
+
"select",
|
|
914
|
+
"small",
|
|
915
|
+
"source",
|
|
916
|
+
"span",
|
|
917
|
+
"strong",
|
|
918
|
+
"style",
|
|
919
|
+
"sub",
|
|
920
|
+
"summary",
|
|
921
|
+
"sup",
|
|
922
|
+
"table",
|
|
923
|
+
"tbody",
|
|
924
|
+
"td",
|
|
925
|
+
"textarea",
|
|
926
|
+
"tfoot",
|
|
927
|
+
"th",
|
|
928
|
+
"thead",
|
|
929
|
+
"time",
|
|
930
|
+
"tr",
|
|
931
|
+
"track",
|
|
932
|
+
"u",
|
|
933
|
+
"ul",
|
|
934
|
+
"use",
|
|
935
|
+
"var",
|
|
936
|
+
"video",
|
|
937
|
+
"wbr",
|
|
938
|
+
"circle",
|
|
939
|
+
"clipPath",
|
|
940
|
+
"defs",
|
|
941
|
+
"ellipse",
|
|
942
|
+
"foreignObject",
|
|
943
|
+
"g",
|
|
944
|
+
"image",
|
|
945
|
+
"line",
|
|
946
|
+
"linearGradient",
|
|
947
|
+
"marker",
|
|
948
|
+
"mask",
|
|
949
|
+
"path",
|
|
950
|
+
"pattern",
|
|
951
|
+
"polygon",
|
|
952
|
+
"polyline",
|
|
953
|
+
"radialGradient",
|
|
954
|
+
"rect",
|
|
955
|
+
"stop",
|
|
956
|
+
"svg",
|
|
957
|
+
"text",
|
|
958
|
+
"tspan"
|
|
959
|
+
]), O = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, D = /(^-|-$)/g;
|
|
704
960
|
function R(e) {
|
|
705
|
-
|
|
961
|
+
return e.replace(O, "-").replace(D, "");
|
|
706
962
|
}
|
|
707
963
|
var T = /(a)(d)/gi, k = 52, j = function(e) {
|
|
708
|
-
|
|
964
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
709
965
|
};
|
|
710
966
|
function x(e) {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
967
|
+
var t, n = "";
|
|
968
|
+
for (t = Math.abs(e); t > k; t = t / k | 0) n = j(t % k) + n;
|
|
969
|
+
return (j(t % k) + n).replace(T, "$1-$2");
|
|
714
970
|
}
|
|
715
971
|
var V, F = 5381, M = function(e, t) {
|
|
716
|
-
|
|
717
|
-
|
|
972
|
+
for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
|
|
973
|
+
return e;
|
|
718
974
|
}, z = function(e) {
|
|
719
|
-
|
|
975
|
+
return M(F, e);
|
|
720
976
|
};
|
|
721
977
|
function $(e) {
|
|
722
|
-
|
|
978
|
+
return x(z(e) >>> 0);
|
|
723
979
|
}
|
|
724
980
|
function B(e) {
|
|
725
|
-
|
|
981
|
+
return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
|
|
726
982
|
}
|
|
727
983
|
function L(e) {
|
|
728
|
-
|
|
729
|
-
}
|
|
730
|
-
var G = "function" == typeof Symbol && Symbol.for, Y = G ? Symbol.for("react.memo") : 60115, W = G ? Symbol.for("react.forward_ref") : 60112, q = {
|
|
984
|
+
return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
985
|
+
}
|
|
986
|
+
var G = "function" == typeof Symbol && Symbol.for, Y = G ? Symbol.for("react.memo") : 60115, W = G ? Symbol.for("react.forward_ref") : 60112, q = {
|
|
987
|
+
childContextTypes: !0,
|
|
988
|
+
contextType: !0,
|
|
989
|
+
contextTypes: !0,
|
|
990
|
+
defaultProps: !0,
|
|
991
|
+
displayName: !0,
|
|
992
|
+
getDefaultProps: !0,
|
|
993
|
+
getDerivedStateFromError: !0,
|
|
994
|
+
getDerivedStateFromProps: !0,
|
|
995
|
+
mixins: !0,
|
|
996
|
+
propTypes: !0,
|
|
997
|
+
type: !0
|
|
998
|
+
}, H = {
|
|
999
|
+
name: !0,
|
|
1000
|
+
length: !0,
|
|
1001
|
+
prototype: !0,
|
|
1002
|
+
caller: !0,
|
|
1003
|
+
callee: !0,
|
|
1004
|
+
arguments: !0,
|
|
1005
|
+
arity: !0
|
|
1006
|
+
}, U = {
|
|
1007
|
+
$$typeof: !0,
|
|
1008
|
+
compare: !0,
|
|
1009
|
+
defaultProps: !0,
|
|
1010
|
+
displayName: !0,
|
|
1011
|
+
propTypes: !0,
|
|
1012
|
+
type: !0
|
|
1013
|
+
}, J = ((V = {})[W] = {
|
|
1014
|
+
$$typeof: !0,
|
|
1015
|
+
render: !0,
|
|
1016
|
+
defaultProps: !0,
|
|
1017
|
+
displayName: !0,
|
|
1018
|
+
propTypes: !0
|
|
1019
|
+
}, V[Y] = U, V);
|
|
731
1020
|
function X(e) {
|
|
732
|
-
|
|
733
|
-
|
|
1021
|
+
return ("type" in (t = e) && t.type.$$typeof) === Y ? U : "$$typeof" in e ? J[e.$$typeof] : q;
|
|
1022
|
+
var t;
|
|
734
1023
|
}
|
|
735
1024
|
var Z = Object.defineProperty, K = Object.getOwnPropertyNames, Q = Object.getOwnPropertySymbols, ee = Object.getOwnPropertyDescriptor, te = Object.getPrototypeOf, ne = Object.prototype;
|
|
736
1025
|
function oe(e, t, n) {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
return e;
|
|
1026
|
+
if ("string" != typeof t) {
|
|
1027
|
+
if (ne) {
|
|
1028
|
+
var o = te(t);
|
|
1029
|
+
o && o !== ne && oe(e, o, n);
|
|
1030
|
+
}
|
|
1031
|
+
var r = K(t);
|
|
1032
|
+
Q && (r = r.concat(Q(t)));
|
|
1033
|
+
for (var s = X(e), i = X(t), a = 0; a < r.length; ++a) {
|
|
1034
|
+
var c = r[a];
|
|
1035
|
+
if (!(c in H || n && n[c] || i && c in i || s && c in s)) {
|
|
1036
|
+
var l = ee(t, c);
|
|
1037
|
+
try {
|
|
1038
|
+
Z(e, c, l);
|
|
1039
|
+
} catch (e) {}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
return e;
|
|
756
1044
|
}
|
|
757
1045
|
function re(e) {
|
|
758
|
-
|
|
1046
|
+
return "function" == typeof e;
|
|
759
1047
|
}
|
|
760
1048
|
function se(e) {
|
|
761
|
-
|
|
1049
|
+
return "object" == typeof e && "styledComponentId" in e;
|
|
762
1050
|
}
|
|
763
1051
|
function ie(e, t) {
|
|
764
|
-
|
|
1052
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
765
1053
|
}
|
|
766
1054
|
function ae(e, t) {
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
1055
|
+
if (0 === e.length) return "";
|
|
1056
|
+
for (var n = e[0], o = 1; o < e.length; o++) n += t ? t + e[o] : e[o];
|
|
1057
|
+
return n;
|
|
770
1058
|
}
|
|
771
1059
|
function ce(e) {
|
|
772
|
-
|
|
1060
|
+
return null !== e && "object" == typeof e && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
773
1061
|
}
|
|
774
1062
|
function le(e, t, n) {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
1063
|
+
if (void 0 === n && (n = !1), !n && !ce(e) && !Array.isArray(e)) return t;
|
|
1064
|
+
if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = le(e[o], t[o]);
|
|
1065
|
+
else if (ce(t)) for (var o in t) e[o] = le(e[o], t[o]);
|
|
1066
|
+
return e;
|
|
779
1067
|
}
|
|
780
1068
|
function ue(e, t) {
|
|
781
|
-
|
|
782
|
-
}
|
|
783
|
-
var pe = "production" !== process.env.NODE_ENV ? {
|
|
1069
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1070
|
+
}
|
|
1071
|
+
var pe = "production" !== process.env.NODE_ENV ? {
|
|
1072
|
+
1: "Cannot create styled-component for component: %s.\n\n",
|
|
1073
|
+
2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
|
|
1074
|
+
3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
|
|
1075
|
+
4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
|
|
1076
|
+
5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
|
|
1077
|
+
6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
|
|
1078
|
+
7: "ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n",
|
|
1079
|
+
8: "ThemeProvider: Please make your \"theme\" prop an object.\n\n",
|
|
1080
|
+
9: "Missing document `<head>`\n\n",
|
|
1081
|
+
10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
|
|
1082
|
+
11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
|
|
1083
|
+
12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
|
|
1084
|
+
13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
|
|
1085
|
+
14: "ThemeProvider: \"theme\" prop is required.\n\n",
|
|
1086
|
+
15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
|
|
1087
|
+
16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
|
|
1088
|
+
17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",
|
|
1089
|
+
18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"
|
|
1090
|
+
} : {};
|
|
784
1091
|
function de() {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
1092
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1093
|
+
for (var n = e[0], o = [], r = 1, s = e.length; r < s; r += 1) o.push(e[r]);
|
|
1094
|
+
return o.forEach(function(e) {
|
|
1095
|
+
n = n.replace(/%[a-z]/, e);
|
|
1096
|
+
}), n;
|
|
790
1097
|
}
|
|
791
1098
|
function he(t) {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}
|
|
795
|
-
var fe =
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
1099
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1100
|
+
return "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t, " for more information.").concat(n.length > 0 ? " Args: ".concat(n.join(", ")) : "")) : new Error(de.apply(void 0, __spreadArray([pe[t]], n, !1)).trim());
|
|
1101
|
+
}
|
|
1102
|
+
var fe = function() {
|
|
1103
|
+
function e(e) {
|
|
1104
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
|
|
1105
|
+
}
|
|
1106
|
+
return e.prototype.indexOfGroup = function(e) {
|
|
1107
|
+
for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
|
|
1108
|
+
return t;
|
|
1109
|
+
}, e.prototype.insertRules = function(e, t) {
|
|
1110
|
+
if (e >= this.groupSizes.length) {
|
|
1111
|
+
for (var n = this.groupSizes, o = n.length, r = o; e >= r;) if ((r <<= 1) < 0) throw he(16, "".concat(e));
|
|
1112
|
+
this.groupSizes = new Uint32Array(r), this.groupSizes.set(n), this.length = r;
|
|
1113
|
+
for (var s = o; s < r; s++) this.groupSizes[s] = 0;
|
|
1114
|
+
}
|
|
1115
|
+
for (var i = this.indexOfGroup(e + 1), a = (s = 0, t.length); s < a; s++) this.tag.insertRule(i, t[s]) && (this.groupSizes[e]++, i++);
|
|
1116
|
+
}, e.prototype.clearGroup = function(e) {
|
|
1117
|
+
if (e < this.length) {
|
|
1118
|
+
var t = this.groupSizes[e], n = this.indexOfGroup(e), o = n + t;
|
|
1119
|
+
this.groupSizes[e] = 0;
|
|
1120
|
+
for (var r = n; r < o; r++) this.tag.deleteRule(n);
|
|
1121
|
+
}
|
|
1122
|
+
}, e.prototype.getGroup = function(e) {
|
|
1123
|
+
var t = "";
|
|
1124
|
+
if (e >= this.length || 0 === this.groupSizes[e]) return t;
|
|
1125
|
+
for (var n = this.groupSizes[e], o = this.indexOfGroup(e), r = o + n, s = o; s < r; s++) t += "".concat(this.tag.getRule(s)).concat(g);
|
|
1126
|
+
return t;
|
|
1127
|
+
}, e;
|
|
1128
|
+
}(), me = 1 << 30, ye = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new Map(), ge = 1, Se = function(e) {
|
|
1129
|
+
if (ye.has(e)) return ye.get(e);
|
|
1130
|
+
for (; ve.has(ge);) ge++;
|
|
1131
|
+
var t = ge++;
|
|
1132
|
+
if ("production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > me)) throw he(16, "".concat(t));
|
|
1133
|
+
return ye.set(e, t), ve.set(t, e), t;
|
|
827
1134
|
}, we = function(e, t) {
|
|
828
|
-
|
|
829
|
-
}, be = "style[".concat(f, "][").concat(y,
|
|
830
|
-
|
|
1135
|
+
ge = t + 1, ye.set(e, t), ve.set(t, e);
|
|
1136
|
+
}, be = "style[".concat(f, "][").concat(y, "=\"").concat(v, "\"]"), Ee = new RegExp("^".concat(f, "\\.g(\\d+)\\[id=\"([\\w\\d-]+)\"\\].*?\"([^\"]*)")), Ne = function(e, t, n) {
|
|
1137
|
+
for (var o, r = n.split(","), s = 0, i = r.length; s < i; s++) (o = r[s]) && e.registerName(t, o);
|
|
831
1138
|
}, Pe = function(e, t) {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
1139
|
+
for (var n, o = (null !== (n = t.textContent) && void 0 !== n ? n : "").split(g), r = [], s = 0, i = o.length; s < i; s++) {
|
|
1140
|
+
var a = o[s].trim();
|
|
1141
|
+
if (a) {
|
|
1142
|
+
var c = a.match(Ee);
|
|
1143
|
+
if (c) {
|
|
1144
|
+
var l = 0 | parseInt(c[1], 10), u = c[2];
|
|
1145
|
+
0 !== l && (we(u, l), Ne(e, u, c[3]), e.getTag().insertRules(l, r)), r.length = 0;
|
|
1146
|
+
} else r.push(a);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
842
1149
|
}, _e = function(e) {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
1150
|
+
for (var t = document.querySelectorAll(be), n = 0, o = t.length; n < o; n++) {
|
|
1151
|
+
var r = t[n];
|
|
1152
|
+
r && r.getAttribute(f) !== m && (Pe(e, r), r.parentNode && r.parentNode.removeChild(r));
|
|
1153
|
+
}
|
|
847
1154
|
};
|
|
848
1155
|
function Ce() {
|
|
849
|
-
|
|
1156
|
+
return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
|
|
850
1157
|
}
|
|
851
1158
|
var Ie = function(e) {
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
}, Ae =
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
}
|
|
1159
|
+
var t = document.head, n = e || t, o = document.createElement("style"), r = function(e) {
|
|
1160
|
+
var t = Array.from(e.querySelectorAll("style[".concat(f, "]")));
|
|
1161
|
+
return t[t.length - 1];
|
|
1162
|
+
}(n), s = void 0 !== r ? r.nextSibling : null;
|
|
1163
|
+
o.setAttribute(f, m), o.setAttribute(y, v);
|
|
1164
|
+
var i = Ce();
|
|
1165
|
+
return i && o.setAttribute("nonce", i), n.insertBefore(o, s), o;
|
|
1166
|
+
}, Ae = function() {
|
|
1167
|
+
function e(e) {
|
|
1168
|
+
this.element = Ie(e), this.element.appendChild(document.createTextNode("")), this.sheet = function(e) {
|
|
1169
|
+
if (e.sheet) return e.sheet;
|
|
1170
|
+
for (var t = document.styleSheets, n = 0, o = t.length; n < o; n++) {
|
|
1171
|
+
var r = t[n];
|
|
1172
|
+
if (r.ownerNode === e) return r;
|
|
1173
|
+
}
|
|
1174
|
+
throw he(17);
|
|
1175
|
+
}(this.element), this.length = 0;
|
|
1176
|
+
}
|
|
1177
|
+
return e.prototype.insertRule = function(e, t) {
|
|
1178
|
+
try {
|
|
1179
|
+
return this.sheet.insertRule(t, e), this.length++, !0;
|
|
1180
|
+
} catch (e) {
|
|
1181
|
+
return !1;
|
|
1182
|
+
}
|
|
1183
|
+
}, e.prototype.deleteRule = function(e) {
|
|
1184
|
+
this.sheet.deleteRule(e), this.length--;
|
|
1185
|
+
}, e.prototype.getRule = function(e) {
|
|
1186
|
+
var t = this.sheet.cssRules[e];
|
|
1187
|
+
return t && t.cssText ? t.cssText : "";
|
|
1188
|
+
}, e;
|
|
1189
|
+
}(), Oe = function() {
|
|
1190
|
+
function e(e) {
|
|
1191
|
+
this.element = Ie(e), this.nodes = this.element.childNodes, this.length = 0;
|
|
1192
|
+
}
|
|
1193
|
+
return e.prototype.insertRule = function(e, t) {
|
|
1194
|
+
if (e <= this.length && e >= 0) {
|
|
1195
|
+
var n = document.createTextNode(t);
|
|
1196
|
+
return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
|
|
1197
|
+
}
|
|
1198
|
+
return !1;
|
|
1199
|
+
}, e.prototype.deleteRule = function(e) {
|
|
1200
|
+
this.element.removeChild(this.nodes[e]), this.length--;
|
|
1201
|
+
}, e.prototype.getRule = function(e) {
|
|
1202
|
+
return e < this.length ? this.nodes[e].textContent : "";
|
|
1203
|
+
}, e;
|
|
1204
|
+
}(), De = function() {
|
|
1205
|
+
function e(e) {
|
|
1206
|
+
this.rules = [], this.length = 0;
|
|
1207
|
+
}
|
|
1208
|
+
return e.prototype.insertRule = function(e, t) {
|
|
1209
|
+
return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
|
|
1210
|
+
}, e.prototype.deleteRule = function(e) {
|
|
1211
|
+
this.rules.splice(e, 1), this.length--;
|
|
1212
|
+
}, e.prototype.getRule = function(e) {
|
|
1213
|
+
return e < this.length ? this.rules[e] : "";
|
|
1214
|
+
}, e;
|
|
1215
|
+
}(), Re = S, Te = {
|
|
1216
|
+
isServer: !S,
|
|
1217
|
+
useCSSOMInjection: !w
|
|
1218
|
+
}, ke = function() {
|
|
1219
|
+
function e(e, n, o) {
|
|
1220
|
+
void 0 === e && (e = C), void 0 === n && (n = {});
|
|
1221
|
+
var r = this;
|
|
1222
|
+
this.options = __assign(__assign({}, Te), e), this.gs = n, this.names = new Map(o), this.server = !!e.isServer, !this.server && S && Re && (Re = !1, _e(this)), ue(this, function() {
|
|
1223
|
+
return function(e) {
|
|
1224
|
+
for (var t = e.getTag(), n = t.length, o = "", r = function(n) {
|
|
1225
|
+
var r = function(e) {
|
|
1226
|
+
return ve.get(e);
|
|
1227
|
+
}(n);
|
|
1228
|
+
if (void 0 === r) return "continue";
|
|
1229
|
+
var s = e.names.get(r), i = t.getGroup(n);
|
|
1230
|
+
if (void 0 === s || !s.size || 0 === i.length) return "continue";
|
|
1231
|
+
var a = "".concat(f, ".g").concat(n, "[id=\"").concat(r, "\"]"), c = "";
|
|
1232
|
+
void 0 !== s && s.forEach(function(e) {
|
|
1233
|
+
e.length > 0 && (c += "".concat(e, ","));
|
|
1234
|
+
}), o += "".concat(i).concat(a, "{content:\"").concat(c, "\"}").concat(g);
|
|
1235
|
+
}, s = 0; s < n; s++) r(s);
|
|
1236
|
+
return o;
|
|
1237
|
+
}(r);
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
return e.registerId = function(e) {
|
|
1241
|
+
return Se(e);
|
|
1242
|
+
}, e.prototype.rehydrate = function() {
|
|
1243
|
+
!this.server && S && _e(this);
|
|
1244
|
+
}, e.prototype.reconstructWithOptions = function(n, o) {
|
|
1245
|
+
return void 0 === o && (o = !0), new e(__assign(__assign({}, this.options), n), this.gs, o && this.names || void 0);
|
|
1246
|
+
}, e.prototype.allocateGSInstance = function(e) {
|
|
1247
|
+
return this.gs[e] = (this.gs[e] || 0) + 1;
|
|
1248
|
+
}, e.prototype.getTag = function() {
|
|
1249
|
+
return this.tag || (this.tag = (e = function(e) {
|
|
1250
|
+
var t = e.useCSSOMInjection, n = e.target;
|
|
1251
|
+
return e.isServer ? new De(n) : t ? new Ae(n) : new Oe(n);
|
|
1252
|
+
}(this.options), new fe(e)));
|
|
1253
|
+
var e;
|
|
1254
|
+
}, e.prototype.hasNameForId = function(e, t) {
|
|
1255
|
+
return this.names.has(e) && this.names.get(e).has(t);
|
|
1256
|
+
}, e.prototype.registerName = function(e, t) {
|
|
1257
|
+
if (Se(e), this.names.has(e)) this.names.get(e).add(t);
|
|
1258
|
+
else {
|
|
1259
|
+
var n = /* @__PURE__ */ new Set();
|
|
1260
|
+
n.add(t), this.names.set(e, n);
|
|
1261
|
+
}
|
|
1262
|
+
}, e.prototype.insertRules = function(e, t, n) {
|
|
1263
|
+
this.registerName(e, t), this.getTag().insertRules(Se(e), n);
|
|
1264
|
+
}, e.prototype.clearNames = function(e) {
|
|
1265
|
+
this.names.has(e) && this.names.get(e).clear();
|
|
1266
|
+
}, e.prototype.clearRules = function(e) {
|
|
1267
|
+
this.getTag().clearGroup(Se(e)), this.clearNames(e);
|
|
1268
|
+
}, e.prototype.clearTag = function() {
|
|
1269
|
+
this.tag = void 0;
|
|
1270
|
+
}, e;
|
|
1271
|
+
}(), je = /&/g, xe = /^\s*\/\/.*$/gm;
|
|
962
1272
|
function Ve(e, t) {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
1273
|
+
return e.map(function(e) {
|
|
1274
|
+
return "rule" === e.type && (e.value = "".concat(t, " ").concat(e.value), e.value = e.value.replaceAll(",", ",".concat(t, " ")), e.props = e.props.map(function(e) {
|
|
1275
|
+
return "".concat(t, " ").concat(e);
|
|
1276
|
+
})), Array.isArray(e.children) && "@keyframes" !== e.type && (e.children = Ve(e.children, t)), e;
|
|
1277
|
+
});
|
|
968
1278
|
}
|
|
969
1279
|
function Fe(e) {
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
}
|
|
989
|
-
var Me = new ke(), ze = Fe(), $e =
|
|
1280
|
+
var t, n, o, r = void 0 === e ? C : e, s = r.options, i = void 0 === s ? C : s, a = r.plugins, c = void 0 === a ? _ : a, l = function(e, o, r) {
|
|
1281
|
+
return r.startsWith(n) && r.endsWith(n) && r.replaceAll(n, "").length > 0 ? ".".concat(t) : e;
|
|
1282
|
+
}, u = c.slice();
|
|
1283
|
+
u.push(function(e) {
|
|
1284
|
+
e.type === "rule" && e.value.includes("&") && (e.props[0] = e.props[0].replace(je, n).replace(o, l));
|
|
1285
|
+
}), i.prefix && u.push(prefixer), u.push(stringify);
|
|
1286
|
+
var p = function(e, r, s, a) {
|
|
1287
|
+
void 0 === r && (r = ""), void 0 === s && (s = ""), void 0 === a && (a = "&"), t = a, n = r, o = new RegExp("\\".concat(n, "\\b"), "g");
|
|
1288
|
+
var c = e.replace(xe, ""), l = compile(s || r ? "".concat(s, " ").concat(r, " { ").concat(c, " }") : c);
|
|
1289
|
+
i.namespace && (l = Ve(l, i.namespace));
|
|
1290
|
+
var p = [];
|
|
1291
|
+
return serialize(l, middleware(u.concat(rulesheet(function(e) {
|
|
1292
|
+
return p.push(e);
|
|
1293
|
+
})))), p;
|
|
1294
|
+
};
|
|
1295
|
+
return p.hash = c.length ? c.reduce(function(e, t) {
|
|
1296
|
+
return t.name || he(15), M(e, t.name);
|
|
1297
|
+
}, F).toString() : "", p;
|
|
1298
|
+
}
|
|
1299
|
+
var Me = new ke(), ze = Fe(), $e = React.createContext({
|
|
1300
|
+
shouldForwardProp: void 0,
|
|
1301
|
+
styleSheet: Me,
|
|
1302
|
+
stylis: ze
|
|
1303
|
+
});
|
|
990
1304
|
$e.Consumer;
|
|
991
|
-
|
|
1305
|
+
var Le = React.createContext(void 0);
|
|
992
1306
|
function Ge() {
|
|
993
|
-
|
|
994
|
-
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1307
|
+
return useContext($e);
|
|
1308
|
+
}
|
|
1309
|
+
function Ye(e) {
|
|
1310
|
+
var t = useState(e.stylisPlugins), n = t[0], r = t[1], c = Ge().styleSheet, l = useMemo(function() {
|
|
1311
|
+
var t = c;
|
|
1312
|
+
return e.sheet ? t = e.sheet : e.target && (t = t.reconstructWithOptions({ target: e.target }, !1)), e.disableCSSOMInjection && (t = t.reconstructWithOptions({ useCSSOMInjection: !1 })), t;
|
|
1313
|
+
}, [
|
|
1314
|
+
e.disableCSSOMInjection,
|
|
1315
|
+
e.sheet,
|
|
1316
|
+
e.target,
|
|
1317
|
+
c
|
|
1318
|
+
]), u = useMemo(function() {
|
|
1319
|
+
return Fe({
|
|
1320
|
+
options: {
|
|
1321
|
+
namespace: e.namespace,
|
|
1322
|
+
prefix: e.enableVendorPrefixes
|
|
1323
|
+
},
|
|
1324
|
+
plugins: n
|
|
1325
|
+
});
|
|
1326
|
+
}, [
|
|
1327
|
+
e.enableVendorPrefixes,
|
|
1328
|
+
e.namespace,
|
|
1329
|
+
n
|
|
1330
|
+
]);
|
|
1331
|
+
useEffect(function() {
|
|
1332
|
+
(0, import_shallowequal.default)(n, e.stylisPlugins) || r(e.stylisPlugins);
|
|
1333
|
+
}, [e.stylisPlugins]);
|
|
1334
|
+
var d = useMemo(function() {
|
|
1335
|
+
return {
|
|
1336
|
+
shouldForwardProp: e.shouldForwardProp,
|
|
1337
|
+
styleSheet: l,
|
|
1338
|
+
stylis: u
|
|
1339
|
+
};
|
|
1340
|
+
}, [
|
|
1341
|
+
e.shouldForwardProp,
|
|
1342
|
+
l,
|
|
1343
|
+
u
|
|
1344
|
+
]);
|
|
1345
|
+
return React.createElement($e.Provider, { value: d }, React.createElement(Le.Provider, { value: u }, e.children));
|
|
1346
|
+
}
|
|
1347
|
+
var We = function() {
|
|
1348
|
+
function e(e, t) {
|
|
1349
|
+
var n = this;
|
|
1350
|
+
this.inject = function(e, t) {
|
|
1351
|
+
void 0 === t && (t = ze);
|
|
1352
|
+
var o = n.name + t.hash;
|
|
1353
|
+
e.hasNameForId(n.id, o) || e.insertRules(n.id, o, t(n.rules, o, "@keyframes"));
|
|
1354
|
+
}, this.name = e, this.id = "sc-keyframes-".concat(e), this.rules = t, ue(this, function() {
|
|
1355
|
+
throw he(12, String(n.name));
|
|
1356
|
+
});
|
|
1357
|
+
}
|
|
1358
|
+
return e.prototype.getName = function(e) {
|
|
1359
|
+
return void 0 === e && (e = ze), this.name + e.hash;
|
|
1360
|
+
}, e;
|
|
1361
|
+
}(), qe = function(e) {
|
|
1362
|
+
return e >= "A" && e <= "Z";
|
|
1011
1363
|
};
|
|
1012
1364
|
function He(e) {
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1365
|
+
for (var t = "", n = 0; n < e.length; n++) {
|
|
1366
|
+
var o = e[n];
|
|
1367
|
+
if (1 === n && "-" === o && "-" === e[0]) return e;
|
|
1368
|
+
qe(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
1369
|
+
}
|
|
1370
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1019
1371
|
}
|
|
1020
1372
|
var Ue = function(e) {
|
|
1021
|
-
|
|
1373
|
+
return null == e || !1 === e || "" === e;
|
|
1022
1374
|
}, Je = function(t) {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1375
|
+
var n, o, r = [];
|
|
1376
|
+
for (var s in t) {
|
|
1377
|
+
var i = t[s];
|
|
1378
|
+
t.hasOwnProperty(s) && !Ue(i) && (Array.isArray(i) && i.isCss || re(i) ? r.push("".concat(He(s), ":"), i, ";") : ce(i) ? r.push.apply(r, __spreadArray(__spreadArray(["".concat(s, " {")], Je(i), !1), ["}"], !1)) : r.push("".concat(He(s), ": ").concat((n = s, null == (o = i) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || n in unitlessKeys || n.startsWith("--") ? String(o).trim() : "".concat(o, "px")), ";")));
|
|
1379
|
+
}
|
|
1380
|
+
return r;
|
|
1029
1381
|
};
|
|
1030
1382
|
function Xe(e, t, n, o) {
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1383
|
+
if (Ue(e)) return [];
|
|
1384
|
+
if (se(e)) return [".".concat(e.styledComponentId)];
|
|
1385
|
+
if (re(e)) {
|
|
1386
|
+
if (!re(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1387
|
+
var r = e(t);
|
|
1388
|
+
return "production" === process.env.NODE_ENV || "object" != typeof r || Array.isArray(r) || r instanceof We || ce(r) || null === r || console.error("".concat(B(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), Xe(r, t, n, o);
|
|
1389
|
+
}
|
|
1390
|
+
var s;
|
|
1391
|
+
return e instanceof We ? n ? (e.inject(n, o), [e.getName(o)]) : [e] : ce(e) ? Je(e) : Array.isArray(e) ? Array.prototype.concat.apply(_, e.map(function(e) {
|
|
1392
|
+
return Xe(e, t, n, o);
|
|
1393
|
+
})) : [e.toString()];
|
|
1042
1394
|
}
|
|
1043
1395
|
function Ze(e) {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
}
|
|
1050
|
-
var Ke = z(v), Qe =
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
}
|
|
1396
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1397
|
+
var n = e[t];
|
|
1398
|
+
if (re(n) && !se(n)) return !1;
|
|
1399
|
+
}
|
|
1400
|
+
return !0;
|
|
1401
|
+
}
|
|
1402
|
+
var Ke = z(v), Qe = function() {
|
|
1403
|
+
function e(e, t, n) {
|
|
1404
|
+
this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && Ze(e), this.componentId = t, this.baseHash = M(Ke, t), this.baseStyle = n, ke.registerId(t);
|
|
1405
|
+
}
|
|
1406
|
+
return e.prototype.generateAndInjectStyles = function(e, t, n) {
|
|
1407
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(e, t, n) : "";
|
|
1408
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && t.hasNameForId(this.componentId, this.staticRulesId)) o = ie(o, this.staticRulesId);
|
|
1409
|
+
else {
|
|
1410
|
+
var r = ae(Xe(this.rules, e, t, n)), s = x(M(this.baseHash, r) >>> 0);
|
|
1411
|
+
if (!t.hasNameForId(this.componentId, s)) {
|
|
1412
|
+
var i = n(r, ".".concat(s), void 0, this.componentId);
|
|
1413
|
+
t.insertRules(this.componentId, s, i);
|
|
1414
|
+
}
|
|
1415
|
+
o = ie(o, s), this.staticRulesId = s;
|
|
1416
|
+
}
|
|
1417
|
+
else {
|
|
1418
|
+
for (var a = M(this.baseHash, n.hash), c = "", l = 0; l < this.rules.length; l++) {
|
|
1419
|
+
var u = this.rules[l];
|
|
1420
|
+
if ("string" == typeof u) c += u, "production" !== process.env.NODE_ENV && (a = M(a, u));
|
|
1421
|
+
else if (u) {
|
|
1422
|
+
var p = ae(Xe(u, e, t, n));
|
|
1423
|
+
a = M(a, p + l), c += p;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
if (c) {
|
|
1427
|
+
var d = x(a >>> 0);
|
|
1428
|
+
t.hasNameForId(this.componentId, d) || t.insertRules(this.componentId, d, n(c, ".".concat(d), void 0, this.componentId)), o = ie(o, d);
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
return o;
|
|
1432
|
+
}, e;
|
|
1433
|
+
}(), et = React.createContext(void 0);
|
|
1082
1434
|
et.Consumer;
|
|
1083
1435
|
var rt = {}, st = /* @__PURE__ */ new Set();
|
|
1084
1436
|
function it(e, r, s) {
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1437
|
+
var i = se(e), a = e, c = !L(e), p = r.attrs, d = void 0 === p ? _ : p, h = r.componentId, f = void 0 === h ? function(e, t) {
|
|
1438
|
+
var n = "string" != typeof e ? "sc" : R(e);
|
|
1439
|
+
rt[n] = (rt[n] || 0) + 1;
|
|
1440
|
+
var o = "".concat(n, "-").concat($(v + n + rt[n]));
|
|
1441
|
+
return t ? "".concat(t, "-").concat(o) : o;
|
|
1442
|
+
}(r.displayName, r.parentComponentId) : h, m = r.displayName, y = void 0 === m ? function(e) {
|
|
1443
|
+
return L(e) ? "styled.".concat(e) : "Styled(".concat(B(e), ")");
|
|
1444
|
+
}(e) : m, g = r.displayName && r.componentId ? "".concat(R(r.displayName), "-").concat(r.componentId) : r.componentId || f, S = i && a.attrs ? a.attrs.concat(d).filter(Boolean) : d, w = r.shouldForwardProp;
|
|
1445
|
+
if (i && a.shouldForwardProp) {
|
|
1446
|
+
var b = a.shouldForwardProp;
|
|
1447
|
+
if (r.shouldForwardProp) {
|
|
1448
|
+
var E = r.shouldForwardProp;
|
|
1449
|
+
w = function(e, t) {
|
|
1450
|
+
return b(e, t) && E(e, t);
|
|
1451
|
+
};
|
|
1452
|
+
} else w = b;
|
|
1453
|
+
}
|
|
1454
|
+
var N = new Qe(s, g, i ? a.componentStyle : void 0);
|
|
1455
|
+
function O(e, r) {
|
|
1456
|
+
return function(e, r, s) {
|
|
1457
|
+
var i = e.attrs, a = e.componentStyle, c = e.defaultProps, p = e.foldedComponentIds, d = e.styledComponentId, h = e.target, f = React.useContext(et), m = Ge(), y = e.shouldForwardProp || m.shouldForwardProp;
|
|
1458
|
+
"production" !== process.env.NODE_ENV && useDebugValue(d);
|
|
1459
|
+
var v = I(r, f, c) || C, g = function(e, n, o) {
|
|
1460
|
+
for (var r, s = __assign(__assign({}, n), {
|
|
1461
|
+
className: void 0,
|
|
1462
|
+
theme: o
|
|
1463
|
+
}), i = 0; i < e.length; i += 1) {
|
|
1464
|
+
var a = re(r = e[i]) ? r(s) : r;
|
|
1465
|
+
for (var c in a) s[c] = "className" === c ? ie(s[c], a[c]) : "style" === c ? __assign(__assign({}, s[c]), a[c]) : a[c];
|
|
1466
|
+
}
|
|
1467
|
+
return n.className && (s.className = ie(s.className, n.className)), s;
|
|
1468
|
+
}(i, r, v), S = g.as || h, w = {};
|
|
1469
|
+
for (var b in g) void 0 === g[b] || "$" === b[0] || "as" === b || "theme" === b && g.theme === v || ("forwardedAs" === b ? w.as = g.forwardedAs : y && !y(b, S) || (w[b] = g[b], y || "development" !== process.env.NODE_ENV || isPropValid(b) || st.has(b) || !A.has(S) || (st.add(b), console.warn("styled-components: it looks like an unknown prop \"".concat(b, "\" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)")))));
|
|
1470
|
+
var E = function(e, t) {
|
|
1471
|
+
var n = Ge(), o = e.generateAndInjectStyles(t, n.styleSheet, n.stylis);
|
|
1472
|
+
return "production" !== process.env.NODE_ENV && useDebugValue(o), o;
|
|
1473
|
+
}(a, g);
|
|
1474
|
+
"production" !== process.env.NODE_ENV && e.warnTooManyClasses && e.warnTooManyClasses(E);
|
|
1475
|
+
var N = ie(p, d);
|
|
1476
|
+
return E && (N += " " + E), g.className && (N += " " + g.className), w[L(S) && !A.has(S) ? "class" : "className"] = N, s && (w.ref = s), createElement(S, w);
|
|
1477
|
+
}(D, e, r);
|
|
1478
|
+
}
|
|
1479
|
+
O.displayName = y;
|
|
1480
|
+
var D = React.forwardRef(O);
|
|
1481
|
+
return D.attrs = S, D.componentStyle = N, D.displayName = y, D.shouldForwardProp = w, D.foldedComponentIds = i ? ie(a.foldedComponentIds, a.styledComponentId) : "", D.styledComponentId = g, D.target = i ? a.target : e, Object.defineProperty(D, "defaultProps", {
|
|
1482
|
+
get: function() {
|
|
1483
|
+
return this._foldedDefaultProps;
|
|
1484
|
+
},
|
|
1485
|
+
set: function(e) {
|
|
1486
|
+
this._foldedDefaultProps = i ? function(e) {
|
|
1487
|
+
for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
|
|
1488
|
+
for (var o = 0, r = t; o < r.length; o++) le(e, r[o], !0);
|
|
1489
|
+
return e;
|
|
1490
|
+
}({}, a.defaultProps, e) : e;
|
|
1491
|
+
}
|
|
1492
|
+
}), "production" !== process.env.NODE_ENV && (P(y, g), D.warnTooManyClasses = function(e, t) {
|
|
1493
|
+
var n = {}, o = !1;
|
|
1494
|
+
return function(r) {
|
|
1495
|
+
if (!o && (n[r] = !0, Object.keys(n).length >= 200)) {
|
|
1496
|
+
var s = t ? " with the id of \"".concat(t, "\"") : "";
|
|
1497
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(e).concat(s, ".\n") + "Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), o = !0, n = {};
|
|
1498
|
+
}
|
|
1499
|
+
};
|
|
1500
|
+
}(y, g)), ue(D, function() {
|
|
1501
|
+
return ".".concat(D.styledComponentId);
|
|
1502
|
+
}), c && oe(D, e, {
|
|
1503
|
+
attrs: !0,
|
|
1504
|
+
componentStyle: !0,
|
|
1505
|
+
displayName: !0,
|
|
1506
|
+
foldedComponentIds: !0,
|
|
1507
|
+
shouldForwardProp: !0,
|
|
1508
|
+
styledComponentId: !0,
|
|
1509
|
+
target: !0
|
|
1510
|
+
}), D;
|
|
1145
1511
|
}
|
|
1146
1512
|
function at(e, t) {
|
|
1147
|
-
|
|
1148
|
-
|
|
1513
|
+
for (var n = [e[0]], o = 0, r = t.length; o < r; o += 1) n.push(t[o], e[o + 1]);
|
|
1514
|
+
return n;
|
|
1149
1515
|
}
|
|
1150
1516
|
var ct = function(e) {
|
|
1151
|
-
|
|
1517
|
+
return Object.assign(e, { isCss: !0 });
|
|
1152
1518
|
};
|
|
1153
1519
|
function lt(t) {
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1520
|
+
for (var n = [], o = 1; o < arguments.length; o++) n[o - 1] = arguments[o];
|
|
1521
|
+
if (re(t) || ce(t)) return ct(Xe(at(_, __spreadArray([t], n, !0))));
|
|
1522
|
+
var r = t;
|
|
1523
|
+
return 0 === n.length && 1 === r.length && "string" == typeof r[0] ? Xe(r) : ct(Xe(at(r, n)));
|
|
1158
1524
|
}
|
|
1159
1525
|
function ut(n, o, r) {
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1526
|
+
if (void 0 === r && (r = C), !o) throw he(1, o);
|
|
1527
|
+
var s = function(t) {
|
|
1528
|
+
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
1529
|
+
return n(o, r, lt.apply(void 0, __spreadArray([t], s, !1)));
|
|
1530
|
+
};
|
|
1531
|
+
return s.attrs = function(e) {
|
|
1532
|
+
return ut(n, o, __assign(__assign({}, r), { attrs: Array.prototype.concat(r.attrs, e).filter(Boolean) }));
|
|
1533
|
+
}, s.withConfig = function(e) {
|
|
1534
|
+
return ut(n, o, __assign(__assign({}, r), e));
|
|
1535
|
+
}, s;
|
|
1170
1536
|
}
|
|
1171
1537
|
var pt = function(e) {
|
|
1172
|
-
|
|
1538
|
+
return ut(it, e);
|
|
1173
1539
|
}, dt = pt;
|
|
1174
1540
|
A.forEach(function(e) {
|
|
1175
|
-
|
|
1541
|
+
dt[e] = pt(e);
|
|
1176
1542
|
});
|
|
1177
|
-
var ht =
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
}
|
|
1543
|
+
var ht = function() {
|
|
1544
|
+
function e(e, t) {
|
|
1545
|
+
this.rules = e, this.componentId = t, this.isStatic = Ze(e), ke.registerId(this.componentId + 1);
|
|
1546
|
+
}
|
|
1547
|
+
return e.prototype.createStyles = function(e, t, n, o) {
|
|
1548
|
+
var r = o(ae(Xe(this.rules, t, n, o)), ""), s = this.componentId + e;
|
|
1549
|
+
n.insertRules(s, s, r);
|
|
1550
|
+
}, e.prototype.removeStyles = function(e, t) {
|
|
1551
|
+
t.clearRules(this.componentId + e);
|
|
1552
|
+
}, e.prototype.renderStyles = function(e, t, n, o) {
|
|
1553
|
+
e > 2 && ke.registerId(this.componentId + e), this.removeStyles(e, n), this.createStyles(e, t, n, o);
|
|
1554
|
+
}, e;
|
|
1555
|
+
}();
|
|
1190
1556
|
function ft(n) {
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1557
|
+
for (var r = [], s = 1; s < arguments.length; s++) r[s - 1] = arguments[s];
|
|
1558
|
+
var i = lt.apply(void 0, __spreadArray([n], r, !1)), a = "sc-global-".concat($(JSON.stringify(i))), c = new ht(i, a);
|
|
1559
|
+
"production" !== process.env.NODE_ENV && P(a);
|
|
1560
|
+
var l = function(e) {
|
|
1561
|
+
var t = Ge(), n = React.useContext(et), r = React.useRef(t.styleSheet.allocateGSInstance(a)).current;
|
|
1562
|
+
return "production" !== process.env.NODE_ENV && React.Children.count(e.children) && console.warn("The global style component ".concat(a, " was given child JSX. createGlobalStyle does not render children.")), "production" !== process.env.NODE_ENV && i.some(function(e) {
|
|
1563
|
+
return "string" == typeof e && -1 !== e.indexOf("@import");
|
|
1564
|
+
}) && console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."), t.styleSheet.server && u(r, e, t.styleSheet, n, t.stylis), React.useLayoutEffect(function() {
|
|
1565
|
+
if (!t.styleSheet.server) return u(r, e, t.styleSheet, n, t.stylis), function() {
|
|
1566
|
+
return c.removeStyles(r, t.styleSheet);
|
|
1567
|
+
};
|
|
1568
|
+
}, [
|
|
1569
|
+
r,
|
|
1570
|
+
e,
|
|
1571
|
+
t.styleSheet,
|
|
1572
|
+
n,
|
|
1573
|
+
t.stylis
|
|
1574
|
+
]), null;
|
|
1575
|
+
};
|
|
1576
|
+
function u(e, n, o, r, s) {
|
|
1577
|
+
if (c.isStatic) c.renderStyles(e, b, o, s);
|
|
1578
|
+
else {
|
|
1579
|
+
var i = __assign(__assign({}, n), { theme: I(n, r, l.defaultProps) });
|
|
1580
|
+
c.renderStyles(e, i, o, s);
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
return React.memo(l);
|
|
1584
|
+
}
|
|
1585
|
+
(function() {
|
|
1586
|
+
function e() {
|
|
1587
|
+
var e = this;
|
|
1588
|
+
this._emitSheetCSS = function() {
|
|
1589
|
+
var t = e.instance.toString();
|
|
1590
|
+
if (!t) return "";
|
|
1591
|
+
var n = Ce(), o = ae([
|
|
1592
|
+
n && "nonce=\"".concat(n, "\""),
|
|
1593
|
+
"".concat(f, "=\"true\""),
|
|
1594
|
+
"".concat(y, "=\"").concat(v, "\"")
|
|
1595
|
+
].filter(Boolean), " ");
|
|
1596
|
+
return "<style ".concat(o, ">").concat(t, "</style>");
|
|
1597
|
+
}, this.getStyleTags = function() {
|
|
1598
|
+
if (e.sealed) throw he(2);
|
|
1599
|
+
return e._emitSheetCSS();
|
|
1600
|
+
}, this.getStyleElement = function() {
|
|
1601
|
+
var n;
|
|
1602
|
+
if (e.sealed) throw he(2);
|
|
1603
|
+
var r = e.instance.toString();
|
|
1604
|
+
if (!r) return [];
|
|
1605
|
+
var s = ((n = {})[f] = "", n[y] = v, n.dangerouslySetInnerHTML = { __html: r }, n), i = Ce();
|
|
1606
|
+
return i && (s.nonce = i), [React.createElement("style", __assign({}, s, { key: "sc-0-0" }))];
|
|
1607
|
+
}, this.seal = function() {
|
|
1608
|
+
e.sealed = !0;
|
|
1609
|
+
}, this.instance = new ke({ isServer: !0 }), this.sealed = !1;
|
|
1610
|
+
}
|
|
1611
|
+
return e.prototype.collectStyles = function(e) {
|
|
1612
|
+
if (this.sealed) throw he(2);
|
|
1613
|
+
return React.createElement(Ye, { sheet: this.instance }, e);
|
|
1614
|
+
}, e.prototype.interleaveWithNodeStream = function(e) {
|
|
1615
|
+
throw he(3);
|
|
1616
|
+
}, e;
|
|
1617
|
+
})();
|
|
1213
1618
|
"production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");
|
|
1214
1619
|
var St = "__sc-".concat(f, "__");
|
|
1215
1620
|
"production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window[St] || (window[St] = 0), 1 === window[St] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window[St] += 1);
|
|
1621
|
+
//#endregion
|
|
1622
|
+
//#region src/components/LayoutFlex/tests/DataOverride.tsx
|
|
1623
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
1216
1624
|
function Div1(props) {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1626
|
+
style: { background: "yellow" },
|
|
1627
|
+
children: props.children
|
|
1628
|
+
});
|
|
1220
1629
|
}
|
|
1221
1630
|
function Div2(props) {
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1632
|
+
style: { background: "orange" },
|
|
1633
|
+
children: props.children
|
|
1634
|
+
});
|
|
1225
1635
|
}
|
|
1226
|
-
|
|
1636
|
+
var GlobalStyle = ft`
|
|
1227
1637
|
div[data-override='true'] {
|
|
1228
1638
|
display:grid;
|
|
1229
1639
|
}
|
|
1230
1640
|
`;
|
|
1231
1641
|
function DataOverrideGlobalClass() {
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
1643
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(GlobalStyle, {}),
|
|
1644
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "DataOverrideGlobalClass" }),
|
|
1645
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LayoutFlex, {
|
|
1646
|
+
dataset: {
|
|
1647
|
+
testid: "DataOverrideGlobalClass",
|
|
1648
|
+
override: true
|
|
1649
|
+
},
|
|
1650
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Div1, { children: "a" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Div2, { children: "b" })]
|
|
1651
|
+
})
|
|
1652
|
+
] });
|
|
1653
|
+
}
|
|
1654
|
+
var LocalStyle = dt.div`
|
|
1245
1655
|
div[data-override='true'] {
|
|
1246
1656
|
display: grid;
|
|
1247
1657
|
}
|
|
1248
1658
|
`;
|
|
1249
1659
|
function DataOverrideLocalClass() {
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
}
|
|
1261
|
-
export {
|
|
1262
|
-
DataOverrideGlobalClass,
|
|
1263
|
-
DataOverrideLocalClass
|
|
1264
|
-
};
|
|
1660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "DataOverrideLocalClass" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LocalStyle, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LayoutFlex, {
|
|
1661
|
+
dataset: {
|
|
1662
|
+
testid: "DataOverrideLocalClass",
|
|
1663
|
+
override: true
|
|
1664
|
+
},
|
|
1665
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Div1, { children: "a" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Div2, { children: "b" })]
|
|
1666
|
+
}) })] });
|
|
1667
|
+
}
|
|
1668
|
+
//#endregion
|
|
1669
|
+
export { DataOverrideGlobalClass, DataOverrideLocalClass };
|