@hybridcore/ui 1.5.89 → 1.6.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/{AccordionDetails-DhriPVPP.js → AccordionSummary-DgAwVTk8.js} +81 -82
- package/dist/{Add-CMz4N2zT.js → Add-DJLrrVHm.js} +52 -51
- package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
- package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
- package/dist/AxisRendererY-C_ItLPNV.js +445 -0
- package/dist/Box-p6OtTUEo.js +30 -0
- package/dist/Bullet-DVczI2TD.js +41 -0
- package/dist/Button-CcsPEIDh.js +35 -0
- package/dist/{Button-eqWvpDuh.js → Button-CvE2gnly.js} +138 -124
- package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-2bPw77UP.js} +5 -5
- package/dist/{CardContent-DsYqqPeJ.js → CardContent-CSHh-ZlM.js} +4 -4
- package/dist/CategoryAxis-CwnfaGc8.js +458 -0
- package/dist/{Checkbox-CrU2hpWB.js → Checkbox-CWRMFTBp.js} +12 -11
- package/dist/Circle-Cy5s-pVc.js +27 -0
- package/dist/ColorSet-C7vpNXhM.js +2957 -0
- package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
- package/dist/DataProcessor-CHDO51q4.js +83 -0
- package/dist/DateAxis-YX3QNIB-.js +569 -0
- package/dist/{Delete-86TO0fMo.js → Delete-CW0UZv1m.js} +1 -1
- package/dist/{DialogContent-CqTojymQ.js → DialogContent-B3nbEbuv.js} +10 -11
- package/dist/FormControl-BLbrq4C7.js +1636 -0
- package/dist/{FormControlLabel-BrdX4R71.js → FormControlLabel-C8SPv14J.js} +8 -8
- package/dist/Hierarchy-Bihj0S61.js +925 -0
- package/dist/{IconButton-DJ-31-Fd.js → IconButton-CHwRQF-g.js} +20 -19
- package/dist/IconPlus-yPkff_Vj.js +19 -0
- package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-DLxWUE6H.js} +6 -6
- package/dist/Legend-Dp_MKfS4.js +178 -0
- package/dist/LineSeries-Uiv5o56b.js +472 -0
- package/dist/{List-DOD5kSk3.js → List-tqElle9C.js} +4 -4
- package/dist/{ListItem-r8PbsvCz.js → ListItem-CfjsIg4B.js} +9 -8
- package/dist/{MenuItem-C6qlUyV3.js → MenuItem-xZx_w7zA.js} +14 -13
- package/dist/{Modal-CkcFEpHa.js → Modal-DhPpOoGB.js} +292 -277
- package/dist/{Paper-CjqLScHA.js → Paper-2B03OBmZ.js} +47 -41
- package/dist/PieSeries-B2fW3z0s.js +693 -0
- package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
- package/dist/Scrollbar-D86MJyr2.js +171 -0
- package/dist/{Select-t3ewnSdf.js → Select-BgYwkZgI.js} +2066 -1633
- package/dist/Slice-B19rbYDZ.js +261 -0
- package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
- package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
- package/dist/{TextField-BQ8a50fA.js → TextField-1yCesIbH.js} +23 -25
- package/dist/Tick-2bcLyHpF.js +162 -0
- package/dist/{Typography-D1t7XuLN.js → Typography-CxbneZy_.js} +11 -11
- package/dist/Vector-BmuhQO4p.js +3606 -0
- package/dist/Vector-DfTqQEln.js +1735 -0
- package/dist/WKT-2wsDT-nq.js +2310 -0
- package/dist/XYCursor-C8WktvKM.js +362 -0
- package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
- package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
- package/dist/capitalize-ciszXJ7R.js +9 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/charts/_common/utils.js +20 -0
- package/dist/components/charts/candlestick/logic.js +170 -140
- package/dist/components/charts/chart-wrapper/helpers.js +27 -0
- package/dist/components/charts/chart-wrapper/index.js +44 -0
- package/dist/components/charts/chart-wrapper/logic.js +47 -0
- package/dist/components/charts/chart-wrapper/styled.js +44 -0
- package/dist/components/charts/column-line-mix/index.js +10 -0
- package/dist/components/charts/column-line-mix/logic.js +162 -0
- package/dist/components/charts/column-line-mix/styled.js +12 -0
- package/dist/components/charts/drill-down-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-treemap/logic.js +391 -0
- package/dist/components/charts/drill-down-treemap/styled.js +12 -0
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
- package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
- package/dist/components/charts/heatmap/index.js +10 -0
- package/dist/components/charts/heatmap/logic.js +361 -0
- package/dist/components/charts/heatmap/styled.js +12 -0
- package/dist/components/charts/highlighting-line-data/logic.js +89 -256
- package/dist/components/charts/line/index.js +10 -0
- package/dist/components/charts/line/logic.js +148 -0
- package/dist/components/charts/line/styled.js +12 -0
- package/dist/components/charts/logaritmic-scale/index.js +10 -0
- package/dist/components/charts/logaritmic-scale/logic.js +119 -0
- package/dist/components/charts/logaritmic-scale/styled.js +12 -0
- package/dist/components/charts/multiple-value-axes/index.js +10 -0
- package/dist/components/charts/multiple-value-axes/logic.js +191 -0
- package/dist/components/charts/multiple-value-axes/styled.js +12 -0
- package/dist/components/charts/nested-pie/index.js +10 -0
- package/dist/components/charts/nested-pie/logic.js +110 -0
- package/dist/components/charts/nested-pie/styled.js +12 -0
- package/dist/components/charts/packed-circles/index.js +10 -0
- package/dist/components/charts/packed-circles/logic.js +423 -0
- package/dist/components/charts/packed-circles/styled.js +12 -0
- package/dist/components/charts/pie-chart/index.js +10 -0
- package/dist/components/charts/pie-chart/logic.js +70 -0
- package/dist/components/charts/pie-chart/styled.js +12 -0
- package/dist/components/charts/stacked-area-radar/index.js +10 -0
- package/dist/components/charts/stacked-area-radar/logic.js +868 -0
- package/dist/components/charts/stacked-area-radar/styled.js +12 -0
- package/dist/components/charts/stacked-column-chart/index.js +10 -0
- package/dist/components/charts/stacked-column-chart/logic.js +148 -0
- package/dist/components/charts/stacked-column-chart/styled.js +12 -0
- package/dist/components/charts/xy-chart/index.js +10 -0
- package/dist/components/charts/xy-chart/logic.js +170 -0
- package/dist/components/charts/xy-chart/styled.js +12 -0
- package/dist/components/collapsible-card/index.js +58 -32
- package/dist/components/collapsible-card/logic.js +20 -0
- package/dist/components/collapsible-card/styled.js +52 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +153 -253
- package/dist/components/data-map/components/controls/index.js +12 -0
- package/dist/components/data-map/components/controls/styled.js +34 -0
- package/dist/components/data-map/index.js +51 -0
- package/dist/components/data-map/logic.js +108 -0
- package/dist/components/data-map/styled.js +32 -0
- package/dist/components/data-security-selectors/security-level/index.js +5 -5
- package/dist/components/date-picker-with-custom-range/index.js +9 -0
- package/dist/components/date-picker-with-custom-range/logic.js +66 -0
- package/dist/components/date-picker-with-custom-range/styled.js +43 -0
- package/dist/components/divider/index.js +18 -0
- package/dist/components/divider/logic.js +13 -0
- package/dist/components/divider/styled.js +14 -0
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +1 -1
- package/dist/components/geometry-picker/geometry/index.js +1 -1
- package/dist/components/geometry-picker/index.js +7 -8
- package/dist/components/geometry-picker/kml/index.js +1 -1
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +65 -62
- package/dist/components/geometry-picker/map/style.js +1 -1
- package/dist/components/heat-map/components/controls/index.js +12 -0
- package/dist/components/heat-map/components/controls/styled.js +34 -0
- package/dist/components/heat-map/components/legend/index.js +26 -0
- package/dist/components/heat-map/components/legend/styled.js +14 -0
- package/dist/components/heat-map/index.js +37 -0
- package/dist/components/heat-map/logic.js +1945 -0
- package/dist/components/heat-map/styled.js +32 -0
- package/dist/components/icon-button/index.js +22 -15
- package/dist/components/icon-button/logic.js +15 -0
- package/dist/components/icon-button/styled.js +22 -10
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
- package/dist/components/instance-form/components/variable/index.js +8 -8
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +34 -29
- package/dist/components/instance-variable-list/styled.js +21 -21
- package/dist/components/instance-variable-list/variable.js +44 -74
- package/dist/components/linear-indicator/index.js +10 -67
- package/dist/components/linear-indicator/logic.js +47 -0
- package/dist/components/linear-indicator/styled.js +39 -40
- package/dist/components/map/helpers/kml.js +1 -1
- package/dist/components/map/helpers/mapbox.js +14 -14
- package/dist/components/map/helpers/ol.js +23 -19
- package/dist/components/map/helpers/wkt.js +26 -1314
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +113 -101
- package/dist/components/map/styled.js +39 -31
- package/dist/components/metric-card/MetricChart.js +50 -498
- package/dist/components/metric-card/index.js +94 -115
- package/dist/components/metric-card/logic.js +70 -131
- package/dist/components/object-profile-card/components/avatar/index.js +44 -0
- package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
- package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
- package/dist/components/object-profile-card/index.js +90 -0
- package/dist/components/object-profile-card/logic.js +33 -0
- package/dist/components/object-profile-card/styled.js +48 -0
- package/dist/components/paginated-list/index.js +93 -89
- package/dist/components/paginated-list/logic.js +51 -40
- package/dist/components/paginated-list/styled.js +25 -21
- package/dist/components/property-mapping/index.js +2 -2
- package/dist/components/prr-map/components/controls/index.js +12 -0
- package/dist/components/prr-map/components/controls/styled.js +34 -0
- package/dist/components/prr-map/components/legend/index.js +36 -0
- package/dist/components/prr-map/components/legend/styled.js +21 -0
- package/dist/components/prr-map/index.js +38 -0
- package/dist/components/prr-map/logic.js +104 -0
- package/dist/components/prr-map/styled.js +32 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +4282 -7
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/raster-grid-map/components/controls/index.js +12 -0
- package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
- package/dist/components/raster-grid-map/components/legend/index.js +14 -0
- package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
- package/dist/components/raster-grid-map/helpers.js +190 -0
- package/dist/components/raster-grid-map/index.js +38 -0
- package/dist/components/raster-grid-map/logic.js +172 -0
- package/dist/components/raster-grid-map/styled.js +32 -0
- package/dist/components/search-input/index.js +62 -140
- package/dist/components/search-input/logic.js +43 -0
- package/dist/components/search-input/styled.js +33 -0
- package/dist/components/simple-pivot-table/index.js +66 -0
- package/dist/components/simple-pivot-table/logic.js +51 -0
- package/dist/components/simple-pivot-table/styled.js +45 -0
- package/dist/components/static-text/index.js +18 -0
- package/dist/components/static-text/logic.js +13 -0
- package/dist/components/static-text/styled.js +45 -0
- package/dist/components/tabs/index.js +56 -2160
- package/dist/components/tabs/logic.js +36 -0
- package/dist/components/tabs/styled.js +94 -16
- package/dist/components/tabs/tab-panel.js +11 -10
- package/dist/components/template-filters/components/tab-panel/index.js +1 -1
- package/dist/components/template-form/components/property-list/index.js +7 -7
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +9 -9
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/template-form/index.js +5 -5
- package/dist/components/template-property-filters/property.js +5 -5
- package/dist/components/timeline/index.js +61 -0
- package/dist/components/timeline/logic.js +40 -0
- package/dist/components/timeline/styled.js +48 -0
- package/dist/components/tree-select/index.js +5 -5
- package/dist/components/treeview-filter/item-label/index.js +3 -3
- package/dist/constant-BiOGvlZc.js +21 -0
- package/dist/createReactComponent-C7L-DMHj.js +60 -0
- package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BjpIhJ30.js} +30 -32
- package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DrtgaibK.js} +5 -5
- package/dist/{createTheme-CNnKNxwL.js → createTheme-DYxDnE9u.js} +226 -285
- package/dist/{dialog-BE4D6swf.js → dialog-DcwXug9J.js} +6 -6
- package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
- package/dist/index-BMS1Otro.js +183 -0
- package/dist/index-C__OZmYy.js +663 -0
- package/dist/{index-CGNxsLVm.js → index-CcdvNlgr.js} +7 -7
- package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
- package/dist/index-syTc6m_V.js +1934 -0
- package/dist/index.es-CHNMhaMi.js +2067 -0
- package/dist/index.esm-BLLrbTzY.js +318 -0
- package/dist/{listItemTextClasses-CNjn41Of.js → listItemTextClasses-C3lndiXO.js} +2 -2
- package/dist/main.d.ts +1226 -358
- package/dist/main.js +141 -443
- package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
- package/dist/ol-yOE-NV0X.js +7465 -0
- package/dist/path-CNVruS--.js +84 -0
- package/dist/{property-list-form-C5hcK2y2.js → property-list-form-zZQfpR0X.js} +13 -13
- package/dist/styled-eZwjUruw.js +12 -0
- package/dist/useId-B4-oF9Mq.js +34 -0
- package/dist/useMobilePicker-BLg3Blg8.js +7589 -0
- package/dist/useThemeProps-BzzHcQyd.js +58 -0
- package/dist/{utils-CsOZUsQj.js → utils-BDNynJcd.js} +2 -2
- package/package.json +42 -9
- package/dist/AxisRendererY-kADUad00.js +0 -18370
- package/dist/Box-B1AVyJ_s.js +0 -71
- package/dist/DateAxis-CMum47iz.js +0 -924
- package/dist/Input-CoIrGZAh.js +0 -326
- package/dist/InputLabel-CBuAYyuT.js +0 -1367
- package/dist/LineSeries-CfcpoYla.js +0 -549
- package/dist/OutlinedInput-B-iZoc9l.js +0 -450
- package/dist/Tabs-Cn42Z5QI.js +0 -789
- package/dist/components/collapsible-card/style.js +0 -49
- package/dist/components/profile-card/index.js +0 -80
- package/dist/components/profile-card/logic.js +0 -33
- package/dist/components/profile-card/styled.js +0 -43
- package/dist/components/tabs/appleTabs.style.js +0 -55
- package/dist/createStyled-BGx1I94c.js +0 -352
- package/dist/createTheme-CyC5HawC.js +0 -879
- package/dist/exactProp-cjT0t_Pt.js +0 -36
- package/dist/extendSxProp-FEpqY5_S.js +0 -30
- package/dist/index-DMSHuq6l.js +0 -688
- package/dist/index-SpeaLUQD.js +0 -10963
- package/dist/ol-lGwSyEIV.js +0 -15050
- package/dist/ownerDocument-CUrv0DIK.js +0 -6
- package/dist/ownerWindow-niciwP7I.js +0 -7
- package/dist/styled-B8ugzvji.js +0 -12
- package/dist/useId-BHG98T5I.js +0 -26
- package/dist/useTheme-C15Eq8KG.js +0 -18
- package/dist/useTheme-D-uii9iX.js +0 -10
- package/dist/useThemeProps-DRP1dikX.js +0 -95
|
@@ -0,0 +1,2067 @@
|
|
|
1
|
+
import ge, { Component as un, createRef as $e, useRef as pn, useDebugValue as qt, createElement as hn, useContext as fn } from "react";
|
|
2
|
+
var dn = Object.defineProperty, gn = (e, t, r) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, S = (e, t, r) => (gn(e, typeof t != "symbol" ? t + "" : t, r), r), St = { exports: {} }, Ie = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.min.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var Xt;
|
|
13
|
+
function mn() {
|
|
14
|
+
if (Xt)
|
|
15
|
+
return Ie;
|
|
16
|
+
Xt = 1;
|
|
17
|
+
var e = ge, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, s = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
+
function c(p, u, f) {
|
|
19
|
+
var d, g = {}, b = null, P = null;
|
|
20
|
+
f !== void 0 && (b = "" + f), u.key !== void 0 && (b = "" + u.key), u.ref !== void 0 && (P = u.ref);
|
|
21
|
+
for (d in u)
|
|
22
|
+
o.call(u, d) && !i.hasOwnProperty(d) && (g[d] = u[d]);
|
|
23
|
+
if (p && p.defaultProps)
|
|
24
|
+
for (d in u = p.defaultProps, u)
|
|
25
|
+
g[d] === void 0 && (g[d] = u[d]);
|
|
26
|
+
return { $$typeof: t, type: p, key: b, ref: P, props: g, _owner: s.current };
|
|
27
|
+
}
|
|
28
|
+
return Ie.Fragment = r, Ie.jsx = c, Ie.jsxs = c, Ie;
|
|
29
|
+
}
|
|
30
|
+
var We = {};
|
|
31
|
+
/**
|
|
32
|
+
* @license React
|
|
33
|
+
* react-jsx-runtime.development.js
|
|
34
|
+
*
|
|
35
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
+
*
|
|
37
|
+
* This source code is licensed under the MIT license found in the
|
|
38
|
+
* LICENSE file in the root directory of this source tree.
|
|
39
|
+
*/
|
|
40
|
+
var Kt;
|
|
41
|
+
function yn() {
|
|
42
|
+
return Kt || (Kt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
+
var e = ge, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), p = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), O = Symbol.iterator, j = "@@iterator";
|
|
44
|
+
function F(n) {
|
|
45
|
+
if (n === null || typeof n != "object")
|
|
46
|
+
return null;
|
|
47
|
+
var a = O && n[O] || n[j];
|
|
48
|
+
return typeof a == "function" ? a : null;
|
|
49
|
+
}
|
|
50
|
+
var _ = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function v(n) {
|
|
52
|
+
{
|
|
53
|
+
for (var a = arguments.length, l = new Array(a > 1 ? a - 1 : 0), h = 1; h < a; h++)
|
|
54
|
+
l[h - 1] = arguments[h];
|
|
55
|
+
C("error", n, l);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function C(n, a, l) {
|
|
59
|
+
{
|
|
60
|
+
var h = _.ReactDebugCurrentFrame, R = h.getStackAddendum();
|
|
61
|
+
R !== "" && (a += "%s", l = l.concat([R]));
|
|
62
|
+
var T = l.map(function(x) {
|
|
63
|
+
return String(x);
|
|
64
|
+
});
|
|
65
|
+
T.unshift("Warning: " + a), Function.prototype.apply.call(console[n], console, T);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
var D = !1, A = !1, w = !1, m = !1, Q = !1, Z;
|
|
69
|
+
Z = Symbol.for("react.module.reference");
|
|
70
|
+
function lt(n) {
|
|
71
|
+
return !!(typeof n == "string" || typeof n == "function" || n === o || n === i || Q || n === s || n === f || n === d || m || n === P || D || A || w || typeof n == "object" && n !== null && (n.$$typeof === b || n.$$typeof === g || n.$$typeof === c || n.$$typeof === p || n.$$typeof === u || // This needs to include all possible module reference object
|
|
72
|
+
// types supported by any Flight configuration anywhere since
|
|
73
|
+
// we don't know which Flight build this will end up being used
|
|
74
|
+
// with.
|
|
75
|
+
n.$$typeof === Z || n.getModuleId !== void 0));
|
|
76
|
+
}
|
|
77
|
+
function ut(n, a, l) {
|
|
78
|
+
var h = n.displayName;
|
|
79
|
+
if (h)
|
|
80
|
+
return h;
|
|
81
|
+
var R = a.displayName || a.name || "";
|
|
82
|
+
return R !== "" ? l + "(" + R + ")" : l;
|
|
83
|
+
}
|
|
84
|
+
function Fe(n) {
|
|
85
|
+
return n.displayName || "Context";
|
|
86
|
+
}
|
|
87
|
+
function V(n) {
|
|
88
|
+
if (n == null)
|
|
89
|
+
return null;
|
|
90
|
+
if (typeof n.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
91
|
+
return n.displayName || n.name || null;
|
|
92
|
+
if (typeof n == "string")
|
|
93
|
+
return n;
|
|
94
|
+
switch (n) {
|
|
95
|
+
case o:
|
|
96
|
+
return "Fragment";
|
|
97
|
+
case r:
|
|
98
|
+
return "Portal";
|
|
99
|
+
case i:
|
|
100
|
+
return "Profiler";
|
|
101
|
+
case s:
|
|
102
|
+
return "StrictMode";
|
|
103
|
+
case f:
|
|
104
|
+
return "Suspense";
|
|
105
|
+
case d:
|
|
106
|
+
return "SuspenseList";
|
|
107
|
+
}
|
|
108
|
+
if (typeof n == "object")
|
|
109
|
+
switch (n.$$typeof) {
|
|
110
|
+
case p:
|
|
111
|
+
var a = n;
|
|
112
|
+
return Fe(a) + ".Consumer";
|
|
113
|
+
case c:
|
|
114
|
+
var l = n;
|
|
115
|
+
return Fe(l._context) + ".Provider";
|
|
116
|
+
case u:
|
|
117
|
+
return ut(n, n.render, "ForwardRef");
|
|
118
|
+
case g:
|
|
119
|
+
var h = n.displayName || null;
|
|
120
|
+
return h !== null ? h : V(n.type) || "Memo";
|
|
121
|
+
case b: {
|
|
122
|
+
var R = n, T = R._payload, x = R._init;
|
|
123
|
+
try {
|
|
124
|
+
return V(x(T));
|
|
125
|
+
} catch {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return null;
|
|
131
|
+
}
|
|
132
|
+
var ee = Object.assign, ue = 0, ze, ye, Ne, W, oe, se, z;
|
|
133
|
+
function ve() {
|
|
134
|
+
}
|
|
135
|
+
ve.__reactDisabledLog = !0;
|
|
136
|
+
function Ae() {
|
|
137
|
+
{
|
|
138
|
+
if (ue === 0) {
|
|
139
|
+
ze = console.log, ye = console.info, Ne = console.warn, W = console.error, oe = console.group, se = console.groupCollapsed, z = console.groupEnd;
|
|
140
|
+
var n = {
|
|
141
|
+
configurable: !0,
|
|
142
|
+
enumerable: !0,
|
|
143
|
+
value: ve,
|
|
144
|
+
writable: !0
|
|
145
|
+
};
|
|
146
|
+
Object.defineProperties(console, {
|
|
147
|
+
info: n,
|
|
148
|
+
log: n,
|
|
149
|
+
warn: n,
|
|
150
|
+
error: n,
|
|
151
|
+
group: n,
|
|
152
|
+
groupCollapsed: n,
|
|
153
|
+
groupEnd: n
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
ue++;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function be() {
|
|
160
|
+
{
|
|
161
|
+
if (ue--, ue === 0) {
|
|
162
|
+
var n = {
|
|
163
|
+
configurable: !0,
|
|
164
|
+
enumerable: !0,
|
|
165
|
+
writable: !0
|
|
166
|
+
};
|
|
167
|
+
Object.defineProperties(console, {
|
|
168
|
+
log: ee({}, n, {
|
|
169
|
+
value: ze
|
|
170
|
+
}),
|
|
171
|
+
info: ee({}, n, {
|
|
172
|
+
value: ye
|
|
173
|
+
}),
|
|
174
|
+
warn: ee({}, n, {
|
|
175
|
+
value: Ne
|
|
176
|
+
}),
|
|
177
|
+
error: ee({}, n, {
|
|
178
|
+
value: W
|
|
179
|
+
}),
|
|
180
|
+
group: ee({}, n, {
|
|
181
|
+
value: oe
|
|
182
|
+
}),
|
|
183
|
+
groupCollapsed: ee({}, n, {
|
|
184
|
+
value: se
|
|
185
|
+
}),
|
|
186
|
+
groupEnd: ee({}, n, {
|
|
187
|
+
value: z
|
|
188
|
+
})
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
ue < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
var te = _.ReactCurrentDispatcher, ie;
|
|
195
|
+
function G(n, a, l) {
|
|
196
|
+
{
|
|
197
|
+
if (ie === void 0)
|
|
198
|
+
try {
|
|
199
|
+
throw Error();
|
|
200
|
+
} catch (R) {
|
|
201
|
+
var h = R.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
ie = h && h[1] || "";
|
|
203
|
+
}
|
|
204
|
+
return `
|
|
205
|
+
` + ie + n;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
var q = !1, ae;
|
|
209
|
+
{
|
|
210
|
+
var Se = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
ae = new Se();
|
|
212
|
+
}
|
|
213
|
+
function X(n, a) {
|
|
214
|
+
if (!n || q)
|
|
215
|
+
return "";
|
|
216
|
+
{
|
|
217
|
+
var l = ae.get(n);
|
|
218
|
+
if (l !== void 0)
|
|
219
|
+
return l;
|
|
220
|
+
}
|
|
221
|
+
var h;
|
|
222
|
+
q = !0;
|
|
223
|
+
var R = Error.prepareStackTrace;
|
|
224
|
+
Error.prepareStackTrace = void 0;
|
|
225
|
+
var T;
|
|
226
|
+
T = te.current, te.current = null, Ae();
|
|
227
|
+
try {
|
|
228
|
+
if (a) {
|
|
229
|
+
var x = function() {
|
|
230
|
+
throw Error();
|
|
231
|
+
};
|
|
232
|
+
if (Object.defineProperty(x.prototype, "props", {
|
|
233
|
+
set: function() {
|
|
234
|
+
throw Error();
|
|
235
|
+
}
|
|
236
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
|
+
try {
|
|
238
|
+
Reflect.construct(x, []);
|
|
239
|
+
} catch (re) {
|
|
240
|
+
h = re;
|
|
241
|
+
}
|
|
242
|
+
Reflect.construct(n, [], x);
|
|
243
|
+
} else {
|
|
244
|
+
try {
|
|
245
|
+
x.call();
|
|
246
|
+
} catch (re) {
|
|
247
|
+
h = re;
|
|
248
|
+
}
|
|
249
|
+
n.call(x.prototype);
|
|
250
|
+
}
|
|
251
|
+
} else {
|
|
252
|
+
try {
|
|
253
|
+
throw Error();
|
|
254
|
+
} catch (re) {
|
|
255
|
+
h = re;
|
|
256
|
+
}
|
|
257
|
+
n();
|
|
258
|
+
}
|
|
259
|
+
} catch (re) {
|
|
260
|
+
if (re && h && typeof re.stack == "string") {
|
|
261
|
+
for (var k = re.stack.split(`
|
|
262
|
+
`), L = h.stack.split(`
|
|
263
|
+
`), $ = k.length - 1, I = L.length - 1; $ >= 1 && I >= 0 && k[$] !== L[I]; )
|
|
264
|
+
I--;
|
|
265
|
+
for (; $ >= 1 && I >= 0; $--, I--)
|
|
266
|
+
if (k[$] !== L[I]) {
|
|
267
|
+
if ($ !== 1 || I !== 1)
|
|
268
|
+
do
|
|
269
|
+
if ($--, I--, I < 0 || k[$] !== L[I]) {
|
|
270
|
+
var U = `
|
|
271
|
+
` + k[$].replace(" at new ", " at ");
|
|
272
|
+
return n.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", n.displayName)), typeof n == "function" && ae.set(n, U), U;
|
|
273
|
+
}
|
|
274
|
+
while ($ >= 1 && I >= 0);
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
} finally {
|
|
279
|
+
q = !1, te.current = T, be(), Error.prepareStackTrace = R;
|
|
280
|
+
}
|
|
281
|
+
var ke = n ? n.displayName || n.name : "", Gt = ke ? G(ke) : "";
|
|
282
|
+
return typeof n == "function" && ae.set(n, Gt), Gt;
|
|
283
|
+
}
|
|
284
|
+
function Lr(n, a, l) {
|
|
285
|
+
return X(n, !1);
|
|
286
|
+
}
|
|
287
|
+
function Yr(n) {
|
|
288
|
+
var a = n.prototype;
|
|
289
|
+
return !!(a && a.isReactComponent);
|
|
290
|
+
}
|
|
291
|
+
function Le(n, a, l) {
|
|
292
|
+
if (n == null)
|
|
293
|
+
return "";
|
|
294
|
+
if (typeof n == "function")
|
|
295
|
+
return X(n, Yr(n));
|
|
296
|
+
if (typeof n == "string")
|
|
297
|
+
return G(n);
|
|
298
|
+
switch (n) {
|
|
299
|
+
case f:
|
|
300
|
+
return G("Suspense");
|
|
301
|
+
case d:
|
|
302
|
+
return G("SuspenseList");
|
|
303
|
+
}
|
|
304
|
+
if (typeof n == "object")
|
|
305
|
+
switch (n.$$typeof) {
|
|
306
|
+
case u:
|
|
307
|
+
return Lr(n.render);
|
|
308
|
+
case g:
|
|
309
|
+
return Le(n.type, a, l);
|
|
310
|
+
case b: {
|
|
311
|
+
var h = n, R = h._payload, T = h._init;
|
|
312
|
+
try {
|
|
313
|
+
return Le(T(R), a, l);
|
|
314
|
+
} catch {
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
return "";
|
|
319
|
+
}
|
|
320
|
+
var Ye = Object.prototype.hasOwnProperty, $t = {}, It = _.ReactDebugCurrentFrame;
|
|
321
|
+
function Ve(n) {
|
|
322
|
+
if (n) {
|
|
323
|
+
var a = n._owner, l = Le(n.type, n._source, a ? a.type : null);
|
|
324
|
+
It.setExtraStackFrame(l);
|
|
325
|
+
} else
|
|
326
|
+
It.setExtraStackFrame(null);
|
|
327
|
+
}
|
|
328
|
+
function Vr(n, a, l, h, R) {
|
|
329
|
+
{
|
|
330
|
+
var T = Function.call.bind(Ye);
|
|
331
|
+
for (var x in n)
|
|
332
|
+
if (T(n, x)) {
|
|
333
|
+
var k = void 0;
|
|
334
|
+
try {
|
|
335
|
+
if (typeof n[x] != "function") {
|
|
336
|
+
var L = Error((h || "React class") + ": " + l + " type `" + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[x] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
+
throw L.name = "Invariant Violation", L;
|
|
338
|
+
}
|
|
339
|
+
k = n[x](a, x, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
+
} catch ($) {
|
|
341
|
+
k = $;
|
|
342
|
+
}
|
|
343
|
+
k && !(k instanceof Error) && (Ve(R), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", l, x, typeof k), Ve(null)), k instanceof Error && !(k.message in $t) && ($t[k.message] = !0, Ve(R), v("Failed %s type: %s", l, k.message), Ve(null));
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
var Wr = Array.isArray;
|
|
348
|
+
function pt(n) {
|
|
349
|
+
return Wr(n);
|
|
350
|
+
}
|
|
351
|
+
function Ur(n) {
|
|
352
|
+
{
|
|
353
|
+
var a = typeof Symbol == "function" && Symbol.toStringTag, l = a && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
354
|
+
return l;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
function Br(n) {
|
|
358
|
+
try {
|
|
359
|
+
return Ht(n), !1;
|
|
360
|
+
} catch {
|
|
361
|
+
return !0;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
function Ht(n) {
|
|
365
|
+
return "" + n;
|
|
366
|
+
}
|
|
367
|
+
function Mt(n) {
|
|
368
|
+
if (Br(n))
|
|
369
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ur(n)), Ht(n);
|
|
370
|
+
}
|
|
371
|
+
var je = _.ReactCurrentOwner, Gr = {
|
|
372
|
+
key: !0,
|
|
373
|
+
ref: !0,
|
|
374
|
+
__self: !0,
|
|
375
|
+
__source: !0
|
|
376
|
+
}, Ft, zt, ht;
|
|
377
|
+
ht = {};
|
|
378
|
+
function qr(n) {
|
|
379
|
+
if (Ye.call(n, "ref")) {
|
|
380
|
+
var a = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
381
|
+
if (a && a.isReactWarning)
|
|
382
|
+
return !1;
|
|
383
|
+
}
|
|
384
|
+
return n.ref !== void 0;
|
|
385
|
+
}
|
|
386
|
+
function Xr(n) {
|
|
387
|
+
if (Ye.call(n, "key")) {
|
|
388
|
+
var a = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
389
|
+
if (a && a.isReactWarning)
|
|
390
|
+
return !1;
|
|
391
|
+
}
|
|
392
|
+
return n.key !== void 0;
|
|
393
|
+
}
|
|
394
|
+
function Kr(n, a) {
|
|
395
|
+
if (typeof n.ref == "string" && je.current && a && je.current.stateNode !== a) {
|
|
396
|
+
var l = V(je.current.type);
|
|
397
|
+
ht[l] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(je.current.type), n.ref), ht[l] = !0);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
function Jr(n, a) {
|
|
401
|
+
{
|
|
402
|
+
var l = function() {
|
|
403
|
+
Ft || (Ft = !0, v("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
404
|
+
};
|
|
405
|
+
l.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
406
|
+
get: l,
|
|
407
|
+
configurable: !0
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
function Qr(n, a) {
|
|
412
|
+
{
|
|
413
|
+
var l = function() {
|
|
414
|
+
zt || (zt = !0, v("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
415
|
+
};
|
|
416
|
+
l.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
417
|
+
get: l,
|
|
418
|
+
configurable: !0
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var Zr = function(n, a, l, h, R, T, x) {
|
|
423
|
+
var k = {
|
|
424
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
+
$$typeof: t,
|
|
426
|
+
// Built-in properties that belong on the element
|
|
427
|
+
type: n,
|
|
428
|
+
key: a,
|
|
429
|
+
ref: l,
|
|
430
|
+
props: x,
|
|
431
|
+
// Record the component responsible for creating this element.
|
|
432
|
+
_owner: T
|
|
433
|
+
};
|
|
434
|
+
return k._store = {}, Object.defineProperty(k._store, "validated", {
|
|
435
|
+
configurable: !1,
|
|
436
|
+
enumerable: !1,
|
|
437
|
+
writable: !0,
|
|
438
|
+
value: !1
|
|
439
|
+
}), Object.defineProperty(k, "_self", {
|
|
440
|
+
configurable: !1,
|
|
441
|
+
enumerable: !1,
|
|
442
|
+
writable: !1,
|
|
443
|
+
value: h
|
|
444
|
+
}), Object.defineProperty(k, "_source", {
|
|
445
|
+
configurable: !1,
|
|
446
|
+
enumerable: !1,
|
|
447
|
+
writable: !1,
|
|
448
|
+
value: R
|
|
449
|
+
}), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
|
|
450
|
+
};
|
|
451
|
+
function en(n, a, l, h, R) {
|
|
452
|
+
{
|
|
453
|
+
var T, x = {}, k = null, L = null;
|
|
454
|
+
l !== void 0 && (Mt(l), k = "" + l), Xr(a) && (Mt(a.key), k = "" + a.key), qr(a) && (L = a.ref, Kr(a, R));
|
|
455
|
+
for (T in a)
|
|
456
|
+
Ye.call(a, T) && !Gr.hasOwnProperty(T) && (x[T] = a[T]);
|
|
457
|
+
if (n && n.defaultProps) {
|
|
458
|
+
var $ = n.defaultProps;
|
|
459
|
+
for (T in $)
|
|
460
|
+
x[T] === void 0 && (x[T] = $[T]);
|
|
461
|
+
}
|
|
462
|
+
if (k || L) {
|
|
463
|
+
var I = typeof n == "function" ? n.displayName || n.name || "Unknown" : n;
|
|
464
|
+
k && Jr(x, I), L && Qr(x, I);
|
|
465
|
+
}
|
|
466
|
+
return Zr(n, k, L, R, h, je.current, x);
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
var ft = _.ReactCurrentOwner, Lt = _.ReactDebugCurrentFrame;
|
|
470
|
+
function we(n) {
|
|
471
|
+
if (n) {
|
|
472
|
+
var a = n._owner, l = Le(n.type, n._source, a ? a.type : null);
|
|
473
|
+
Lt.setExtraStackFrame(l);
|
|
474
|
+
} else
|
|
475
|
+
Lt.setExtraStackFrame(null);
|
|
476
|
+
}
|
|
477
|
+
var dt;
|
|
478
|
+
dt = !1;
|
|
479
|
+
function gt(n) {
|
|
480
|
+
return typeof n == "object" && n !== null && n.$$typeof === t;
|
|
481
|
+
}
|
|
482
|
+
function Yt() {
|
|
483
|
+
{
|
|
484
|
+
if (ft.current) {
|
|
485
|
+
var n = V(ft.current.type);
|
|
486
|
+
if (n)
|
|
487
|
+
return `
|
|
488
|
+
|
|
489
|
+
Check the render method of \`` + n + "`.";
|
|
490
|
+
}
|
|
491
|
+
return "";
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
function tn(n) {
|
|
495
|
+
return "";
|
|
496
|
+
}
|
|
497
|
+
var Vt = {};
|
|
498
|
+
function rn(n) {
|
|
499
|
+
{
|
|
500
|
+
var a = Yt();
|
|
501
|
+
if (!a) {
|
|
502
|
+
var l = typeof n == "string" ? n : n.displayName || n.name;
|
|
503
|
+
l && (a = `
|
|
504
|
+
|
|
505
|
+
Check the top-level render call using <` + l + ">.");
|
|
506
|
+
}
|
|
507
|
+
return a;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
function Wt(n, a) {
|
|
511
|
+
{
|
|
512
|
+
if (!n._store || n._store.validated || n.key != null)
|
|
513
|
+
return;
|
|
514
|
+
n._store.validated = !0;
|
|
515
|
+
var l = rn(a);
|
|
516
|
+
if (Vt[l])
|
|
517
|
+
return;
|
|
518
|
+
Vt[l] = !0;
|
|
519
|
+
var h = "";
|
|
520
|
+
n && n._owner && n._owner !== ft.current && (h = " It was passed a child from " + V(n._owner.type) + "."), we(n), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, h), we(null);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
function Ut(n, a) {
|
|
524
|
+
{
|
|
525
|
+
if (typeof n != "object")
|
|
526
|
+
return;
|
|
527
|
+
if (pt(n))
|
|
528
|
+
for (var l = 0; l < n.length; l++) {
|
|
529
|
+
var h = n[l];
|
|
530
|
+
gt(h) && Wt(h, a);
|
|
531
|
+
}
|
|
532
|
+
else if (gt(n))
|
|
533
|
+
n._store && (n._store.validated = !0);
|
|
534
|
+
else if (n) {
|
|
535
|
+
var R = F(n);
|
|
536
|
+
if (typeof R == "function" && R !== n.entries)
|
|
537
|
+
for (var T = R.call(n), x; !(x = T.next()).done; )
|
|
538
|
+
gt(x.value) && Wt(x.value, a);
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
function nn(n) {
|
|
543
|
+
{
|
|
544
|
+
var a = n.type;
|
|
545
|
+
if (a == null || typeof a == "string")
|
|
546
|
+
return;
|
|
547
|
+
var l;
|
|
548
|
+
if (typeof a == "function")
|
|
549
|
+
l = a.propTypes;
|
|
550
|
+
else if (typeof a == "object" && (a.$$typeof === u || // Note: Memo only checks outer props here.
|
|
551
|
+
// Inner props are checked in the reconciler.
|
|
552
|
+
a.$$typeof === g))
|
|
553
|
+
l = a.propTypes;
|
|
554
|
+
else
|
|
555
|
+
return;
|
|
556
|
+
if (l) {
|
|
557
|
+
var h = V(a);
|
|
558
|
+
Vr(l, n.props, "prop", h, n);
|
|
559
|
+
} else if (a.PropTypes !== void 0 && !dt) {
|
|
560
|
+
dt = !0;
|
|
561
|
+
var R = V(a);
|
|
562
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", R || "Unknown");
|
|
563
|
+
}
|
|
564
|
+
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
function on(n) {
|
|
568
|
+
{
|
|
569
|
+
for (var a = Object.keys(n.props), l = 0; l < a.length; l++) {
|
|
570
|
+
var h = a[l];
|
|
571
|
+
if (h !== "children" && h !== "key") {
|
|
572
|
+
we(n), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), we(null);
|
|
573
|
+
break;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
n.ref !== null && (we(n), v("Invalid attribute `ref` supplied to `React.Fragment`."), we(null));
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
function Bt(n, a, l, h, R, T) {
|
|
580
|
+
{
|
|
581
|
+
var x = lt(n);
|
|
582
|
+
if (!x) {
|
|
583
|
+
var k = "";
|
|
584
|
+
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
585
|
+
var L = tn();
|
|
586
|
+
L ? k += L : k += Yt();
|
|
587
|
+
var $;
|
|
588
|
+
n === null ? $ = "null" : pt(n) ? $ = "array" : n !== void 0 && n.$$typeof === t ? ($ = "<" + (V(n.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : $ = typeof n, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", $, k);
|
|
589
|
+
}
|
|
590
|
+
var I = en(n, a, l, R, T);
|
|
591
|
+
if (I == null)
|
|
592
|
+
return I;
|
|
593
|
+
if (x) {
|
|
594
|
+
var U = a.children;
|
|
595
|
+
if (U !== void 0)
|
|
596
|
+
if (h)
|
|
597
|
+
if (pt(U)) {
|
|
598
|
+
for (var ke = 0; ke < U.length; ke++)
|
|
599
|
+
Ut(U[ke], n);
|
|
600
|
+
Object.freeze && Object.freeze(U);
|
|
601
|
+
} else
|
|
602
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
603
|
+
else
|
|
604
|
+
Ut(U, n);
|
|
605
|
+
}
|
|
606
|
+
return n === o ? on(I) : nn(I), I;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
function sn(n, a, l) {
|
|
610
|
+
return Bt(n, a, l, !0);
|
|
611
|
+
}
|
|
612
|
+
function an(n, a, l) {
|
|
613
|
+
return Bt(n, a, l, !1);
|
|
614
|
+
}
|
|
615
|
+
var cn = an, ln = sn;
|
|
616
|
+
We.Fragment = o, We.jsx = cn, We.jsxs = ln;
|
|
617
|
+
}()), We;
|
|
618
|
+
}
|
|
619
|
+
process.env.NODE_ENV === "production" ? St.exports = mn() : St.exports = yn();
|
|
620
|
+
var ce = St.exports, Y = function() {
|
|
621
|
+
return Y = Object.assign || function(e) {
|
|
622
|
+
for (var t, r = 1, o = arguments.length; r < o; r++) {
|
|
623
|
+
t = arguments[r];
|
|
624
|
+
for (var s in t)
|
|
625
|
+
Object.prototype.hasOwnProperty.call(t, s) && (e[s] = t[s]);
|
|
626
|
+
}
|
|
627
|
+
return e;
|
|
628
|
+
}, Y.apply(this, arguments);
|
|
629
|
+
};
|
|
630
|
+
function xe(e, t, r) {
|
|
631
|
+
if (r || arguments.length === 2)
|
|
632
|
+
for (var o = 0, s = t.length, i; o < s; o++)
|
|
633
|
+
(i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
|
|
634
|
+
return e.concat(i || Array.prototype.slice.call(t));
|
|
635
|
+
}
|
|
636
|
+
function vn(e) {
|
|
637
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
638
|
+
return function(r) {
|
|
639
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
var bn = /^((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|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)-.*))$/, Sn = /* @__PURE__ */ vn(
|
|
643
|
+
function(e) {
|
|
644
|
+
return bn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
645
|
+
}
|
|
646
|
+
/* Z+1 */
|
|
647
|
+
), N = "-ms-", Me = "-moz-", E = "-webkit-", gr = "comm", rt = "rule", Tt = "decl", wn = "@import", mr = "@keyframes", kn = "@layer", yr = Math.abs, Ot = String.fromCharCode, wt = Object.assign;
|
|
648
|
+
function Pn(e, t) {
|
|
649
|
+
return M(e, 0) ^ 45 ? (((t << 2 ^ M(e, 0)) << 2 ^ M(e, 1)) << 2 ^ M(e, 2)) << 2 ^ M(e, 3) : 0;
|
|
650
|
+
}
|
|
651
|
+
function vr(e) {
|
|
652
|
+
return e.trim();
|
|
653
|
+
}
|
|
654
|
+
function ne(e, t) {
|
|
655
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
656
|
+
}
|
|
657
|
+
function y(e, t, r) {
|
|
658
|
+
return e.replace(t, r);
|
|
659
|
+
}
|
|
660
|
+
function Xe(e, t, r) {
|
|
661
|
+
return e.indexOf(t, r);
|
|
662
|
+
}
|
|
663
|
+
function M(e, t) {
|
|
664
|
+
return e.charCodeAt(t) | 0;
|
|
665
|
+
}
|
|
666
|
+
function Re(e, t, r) {
|
|
667
|
+
return e.slice(t, r);
|
|
668
|
+
}
|
|
669
|
+
function J(e) {
|
|
670
|
+
return e.length;
|
|
671
|
+
}
|
|
672
|
+
function br(e) {
|
|
673
|
+
return e.length;
|
|
674
|
+
}
|
|
675
|
+
function He(e, t) {
|
|
676
|
+
return t.push(e), e;
|
|
677
|
+
}
|
|
678
|
+
function xn(e, t) {
|
|
679
|
+
return e.map(t).join("");
|
|
680
|
+
}
|
|
681
|
+
function Jt(e, t) {
|
|
682
|
+
return e.filter(function(r) {
|
|
683
|
+
return !ne(r, t);
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
var nt = 1, Ee = 1, Sr = 0, B = 0, H = 0, Oe = "";
|
|
687
|
+
function ot(e, t, r, o, s, i, c, p) {
|
|
688
|
+
return { value: e, root: t, parent: r, type: o, props: s, children: i, line: nt, column: Ee, length: c, return: "", siblings: p };
|
|
689
|
+
}
|
|
690
|
+
function le(e, t) {
|
|
691
|
+
return wt(ot("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
692
|
+
}
|
|
693
|
+
function Pe(e) {
|
|
694
|
+
for (; e.root; )
|
|
695
|
+
e = le(e.root, { children: [e] });
|
|
696
|
+
He(e, e.siblings);
|
|
697
|
+
}
|
|
698
|
+
function Rn() {
|
|
699
|
+
return H;
|
|
700
|
+
}
|
|
701
|
+
function En() {
|
|
702
|
+
return H = B > 0 ? M(Oe, --B) : 0, Ee--, H === 10 && (Ee = 1, nt--), H;
|
|
703
|
+
}
|
|
704
|
+
function K() {
|
|
705
|
+
return H = B < Sr ? M(Oe, B++) : 0, Ee++, H === 10 && (Ee = 1, nt++), H;
|
|
706
|
+
}
|
|
707
|
+
function fe() {
|
|
708
|
+
return M(Oe, B);
|
|
709
|
+
}
|
|
710
|
+
function Ke() {
|
|
711
|
+
return B;
|
|
712
|
+
}
|
|
713
|
+
function st(e, t) {
|
|
714
|
+
return Re(Oe, e, t);
|
|
715
|
+
}
|
|
716
|
+
function kt(e) {
|
|
717
|
+
switch (e) {
|
|
718
|
+
case 0:
|
|
719
|
+
case 9:
|
|
720
|
+
case 10:
|
|
721
|
+
case 13:
|
|
722
|
+
case 32:
|
|
723
|
+
return 5;
|
|
724
|
+
case 33:
|
|
725
|
+
case 43:
|
|
726
|
+
case 44:
|
|
727
|
+
case 47:
|
|
728
|
+
case 62:
|
|
729
|
+
case 64:
|
|
730
|
+
case 126:
|
|
731
|
+
case 59:
|
|
732
|
+
case 123:
|
|
733
|
+
case 125:
|
|
734
|
+
return 4;
|
|
735
|
+
case 58:
|
|
736
|
+
return 3;
|
|
737
|
+
case 34:
|
|
738
|
+
case 39:
|
|
739
|
+
case 40:
|
|
740
|
+
case 91:
|
|
741
|
+
return 2;
|
|
742
|
+
case 41:
|
|
743
|
+
case 93:
|
|
744
|
+
return 1;
|
|
745
|
+
}
|
|
746
|
+
return 0;
|
|
747
|
+
}
|
|
748
|
+
function _n(e) {
|
|
749
|
+
return nt = Ee = 1, Sr = J(Oe = e), B = 0, [];
|
|
750
|
+
}
|
|
751
|
+
function Cn(e) {
|
|
752
|
+
return Oe = "", e;
|
|
753
|
+
}
|
|
754
|
+
function mt(e) {
|
|
755
|
+
return vr(st(B - 1, Pt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
756
|
+
}
|
|
757
|
+
function Tn(e) {
|
|
758
|
+
for (; (H = fe()) && H < 33; )
|
|
759
|
+
K();
|
|
760
|
+
return kt(e) > 2 || kt(H) > 3 ? "" : " ";
|
|
761
|
+
}
|
|
762
|
+
function On(e, t) {
|
|
763
|
+
for (; --t && K() && !(H < 48 || H > 102 || H > 57 && H < 65 || H > 70 && H < 97); )
|
|
764
|
+
;
|
|
765
|
+
return st(e, Ke() + (t < 6 && fe() == 32 && K() == 32));
|
|
766
|
+
}
|
|
767
|
+
function Pt(e) {
|
|
768
|
+
for (; K(); )
|
|
769
|
+
switch (H) {
|
|
770
|
+
case e:
|
|
771
|
+
return B;
|
|
772
|
+
case 34:
|
|
773
|
+
case 39:
|
|
774
|
+
e !== 34 && e !== 39 && Pt(H);
|
|
775
|
+
break;
|
|
776
|
+
case 40:
|
|
777
|
+
e === 41 && Pt(e);
|
|
778
|
+
break;
|
|
779
|
+
case 92:
|
|
780
|
+
K();
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
return B;
|
|
784
|
+
}
|
|
785
|
+
function Dn(e, t) {
|
|
786
|
+
for (; K() && e + H !== 57 && !(e + H === 84 && fe() === 47); )
|
|
787
|
+
;
|
|
788
|
+
return "/*" + st(t, B - 1) + "*" + Ot(e === 47 ? e : K());
|
|
789
|
+
}
|
|
790
|
+
function Nn(e) {
|
|
791
|
+
for (; !kt(fe()); )
|
|
792
|
+
K();
|
|
793
|
+
return st(e, B);
|
|
794
|
+
}
|
|
795
|
+
function An(e) {
|
|
796
|
+
return Cn(Je("", null, null, null, [""], e = _n(e), 0, [0], e));
|
|
797
|
+
}
|
|
798
|
+
function Je(e, t, r, o, s, i, c, p, u) {
|
|
799
|
+
for (var f = 0, d = 0, g = c, b = 0, P = 0, O = 0, j = 1, F = 1, _ = 1, v = 0, C = "", D = s, A = i, w = o, m = C; F; )
|
|
800
|
+
switch (O = v, v = K()) {
|
|
801
|
+
case 40:
|
|
802
|
+
if (O != 108 && M(m, g - 1) == 58) {
|
|
803
|
+
Xe(m += y(mt(v), "&", "&\f"), "&\f", yr(f ? p[f - 1] : 0)) != -1 && (_ = -1);
|
|
804
|
+
break;
|
|
805
|
+
}
|
|
806
|
+
case 34:
|
|
807
|
+
case 39:
|
|
808
|
+
case 91:
|
|
809
|
+
m += mt(v);
|
|
810
|
+
break;
|
|
811
|
+
case 9:
|
|
812
|
+
case 10:
|
|
813
|
+
case 13:
|
|
814
|
+
case 32:
|
|
815
|
+
m += Tn(O);
|
|
816
|
+
break;
|
|
817
|
+
case 92:
|
|
818
|
+
m += On(Ke() - 1, 7);
|
|
819
|
+
continue;
|
|
820
|
+
case 47:
|
|
821
|
+
switch (fe()) {
|
|
822
|
+
case 42:
|
|
823
|
+
case 47:
|
|
824
|
+
He(jn(Dn(K(), Ke()), t, r, u), u);
|
|
825
|
+
break;
|
|
826
|
+
default:
|
|
827
|
+
m += "/";
|
|
828
|
+
}
|
|
829
|
+
break;
|
|
830
|
+
case 123 * j:
|
|
831
|
+
p[f++] = J(m) * _;
|
|
832
|
+
case 125 * j:
|
|
833
|
+
case 59:
|
|
834
|
+
case 0:
|
|
835
|
+
switch (v) {
|
|
836
|
+
case 0:
|
|
837
|
+
case 125:
|
|
838
|
+
F = 0;
|
|
839
|
+
case 59 + d:
|
|
840
|
+
_ == -1 && (m = y(m, /\f/g, "")), P > 0 && J(m) - g && He(P > 32 ? Zt(m + ";", o, r, g - 1, u) : Zt(y(m, " ", "") + ";", o, r, g - 2, u), u);
|
|
841
|
+
break;
|
|
842
|
+
case 59:
|
|
843
|
+
m += ";";
|
|
844
|
+
default:
|
|
845
|
+
if (He(w = Qt(m, t, r, f, d, s, p, C, D = [], A = [], g, i), i), v === 123)
|
|
846
|
+
if (d === 0)
|
|
847
|
+
Je(m, t, w, w, D, i, g, p, A);
|
|
848
|
+
else
|
|
849
|
+
switch (b === 99 && M(m, 3) === 110 ? 100 : b) {
|
|
850
|
+
case 100:
|
|
851
|
+
case 108:
|
|
852
|
+
case 109:
|
|
853
|
+
case 115:
|
|
854
|
+
Je(e, w, w, o && He(Qt(e, w, w, 0, 0, s, p, C, s, D = [], g, A), A), s, A, g, p, o ? D : A);
|
|
855
|
+
break;
|
|
856
|
+
default:
|
|
857
|
+
Je(m, w, w, w, [""], A, 0, p, A);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
f = d = P = 0, j = _ = 1, C = m = "", g = c;
|
|
861
|
+
break;
|
|
862
|
+
case 58:
|
|
863
|
+
g = 1 + J(m), P = O;
|
|
864
|
+
default:
|
|
865
|
+
if (j < 1) {
|
|
866
|
+
if (v == 123)
|
|
867
|
+
--j;
|
|
868
|
+
else if (v == 125 && j++ == 0 && En() == 125)
|
|
869
|
+
continue;
|
|
870
|
+
}
|
|
871
|
+
switch (m += Ot(v), v * j) {
|
|
872
|
+
case 38:
|
|
873
|
+
_ = d > 0 ? 1 : (m += "\f", -1);
|
|
874
|
+
break;
|
|
875
|
+
case 44:
|
|
876
|
+
p[f++] = (J(m) - 1) * _, _ = 1;
|
|
877
|
+
break;
|
|
878
|
+
case 64:
|
|
879
|
+
fe() === 45 && (m += mt(K())), b = fe(), d = g = J(C = m += Nn(Ke())), v++;
|
|
880
|
+
break;
|
|
881
|
+
case 45:
|
|
882
|
+
O === 45 && J(m) == 2 && (j = 0);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
return i;
|
|
886
|
+
}
|
|
887
|
+
function Qt(e, t, r, o, s, i, c, p, u, f, d, g) {
|
|
888
|
+
for (var b = s - 1, P = s === 0 ? i : [""], O = br(P), j = 0, F = 0, _ = 0; j < o; ++j)
|
|
889
|
+
for (var v = 0, C = Re(e, b + 1, b = yr(F = c[j])), D = e; v < O; ++v)
|
|
890
|
+
(D = vr(F > 0 ? P[v] + " " + C : y(C, /&\f/g, P[v]))) && (u[_++] = D);
|
|
891
|
+
return ot(e, t, r, s === 0 ? rt : p, u, f, d, g);
|
|
892
|
+
}
|
|
893
|
+
function jn(e, t, r, o) {
|
|
894
|
+
return ot(e, t, r, gr, Ot(Rn()), Re(e, 2, -2), 0, o);
|
|
895
|
+
}
|
|
896
|
+
function Zt(e, t, r, o, s) {
|
|
897
|
+
return ot(e, t, r, Tt, Re(e, 0, o), Re(e, o + 1, -1), o, s);
|
|
898
|
+
}
|
|
899
|
+
function wr(e, t, r) {
|
|
900
|
+
switch (Pn(e, t)) {
|
|
901
|
+
case 5103:
|
|
902
|
+
return E + "print-" + e + e;
|
|
903
|
+
case 5737:
|
|
904
|
+
case 4201:
|
|
905
|
+
case 3177:
|
|
906
|
+
case 3433:
|
|
907
|
+
case 1641:
|
|
908
|
+
case 4457:
|
|
909
|
+
case 2921:
|
|
910
|
+
case 5572:
|
|
911
|
+
case 6356:
|
|
912
|
+
case 5844:
|
|
913
|
+
case 3191:
|
|
914
|
+
case 6645:
|
|
915
|
+
case 3005:
|
|
916
|
+
case 6391:
|
|
917
|
+
case 5879:
|
|
918
|
+
case 5623:
|
|
919
|
+
case 6135:
|
|
920
|
+
case 4599:
|
|
921
|
+
case 4855:
|
|
922
|
+
case 4215:
|
|
923
|
+
case 6389:
|
|
924
|
+
case 5109:
|
|
925
|
+
case 5365:
|
|
926
|
+
case 5621:
|
|
927
|
+
case 3829:
|
|
928
|
+
return E + e + e;
|
|
929
|
+
case 4789:
|
|
930
|
+
return Me + e + e;
|
|
931
|
+
case 5349:
|
|
932
|
+
case 4246:
|
|
933
|
+
case 4810:
|
|
934
|
+
case 6968:
|
|
935
|
+
case 2756:
|
|
936
|
+
return E + e + Me + e + N + e + e;
|
|
937
|
+
case 5936:
|
|
938
|
+
switch (M(e, t + 11)) {
|
|
939
|
+
case 114:
|
|
940
|
+
return E + e + N + y(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
941
|
+
case 108:
|
|
942
|
+
return E + e + N + y(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
943
|
+
case 45:
|
|
944
|
+
return E + e + N + y(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
945
|
+
}
|
|
946
|
+
case 6828:
|
|
947
|
+
case 4268:
|
|
948
|
+
case 2903:
|
|
949
|
+
return E + e + N + e + e;
|
|
950
|
+
case 6165:
|
|
951
|
+
return E + e + N + "flex-" + e + e;
|
|
952
|
+
case 5187:
|
|
953
|
+
return E + e + y(e, /(\w+).+(:[^]+)/, E + "box-$1$2" + N + "flex-$1$2") + e;
|
|
954
|
+
case 5443:
|
|
955
|
+
return E + e + N + "flex-item-" + y(e, /flex-|-self/g, "") + (ne(e, /flex-|baseline/) ? "" : N + "grid-row-" + y(e, /flex-|-self/g, "")) + e;
|
|
956
|
+
case 4675:
|
|
957
|
+
return E + e + N + "flex-line-pack" + y(e, /align-content|flex-|-self/g, "") + e;
|
|
958
|
+
case 5548:
|
|
959
|
+
return E + e + N + y(e, "shrink", "negative") + e;
|
|
960
|
+
case 5292:
|
|
961
|
+
return E + e + N + y(e, "basis", "preferred-size") + e;
|
|
962
|
+
case 6060:
|
|
963
|
+
return E + "box-" + y(e, "-grow", "") + E + e + N + y(e, "grow", "positive") + e;
|
|
964
|
+
case 4554:
|
|
965
|
+
return E + y(e, /([^-])(transform)/g, "$1" + E + "$2") + e;
|
|
966
|
+
case 6187:
|
|
967
|
+
return y(y(y(e, /(zoom-|grab)/, E + "$1"), /(image-set)/, E + "$1"), e, "") + e;
|
|
968
|
+
case 5495:
|
|
969
|
+
case 3959:
|
|
970
|
+
return y(e, /(image-set\([^]*)/, E + "$1$`$1");
|
|
971
|
+
case 4968:
|
|
972
|
+
return y(y(e, /(.+:)(flex-)?(.*)/, E + "box-pack:$3" + N + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + E + e + e;
|
|
973
|
+
case 4200:
|
|
974
|
+
if (!ne(e, /flex-|baseline/))
|
|
975
|
+
return N + "grid-column-align" + Re(e, t) + e;
|
|
976
|
+
break;
|
|
977
|
+
case 2592:
|
|
978
|
+
case 3360:
|
|
979
|
+
return N + y(e, "template-", "") + e;
|
|
980
|
+
case 4384:
|
|
981
|
+
case 3616:
|
|
982
|
+
return r && r.some(function(o, s) {
|
|
983
|
+
return t = s, ne(o.props, /grid-\w+-end/);
|
|
984
|
+
}) ? ~Xe(e + (r = r[t].value), "span", 0) ? e : N + y(e, "-start", "") + e + N + "grid-row-span:" + (~Xe(r, "span", 0) ? ne(r, /\d+/) : +ne(r, /\d+/) - +ne(e, /\d+/)) + ";" : N + y(e, "-start", "") + e;
|
|
985
|
+
case 4896:
|
|
986
|
+
case 4128:
|
|
987
|
+
return r && r.some(function(o) {
|
|
988
|
+
return ne(o.props, /grid-\w+-start/);
|
|
989
|
+
}) ? e : N + y(y(e, "-end", "-span"), "span ", "") + e;
|
|
990
|
+
case 4095:
|
|
991
|
+
case 3583:
|
|
992
|
+
case 4068:
|
|
993
|
+
case 2532:
|
|
994
|
+
return y(e, /(.+)-inline(.+)/, E + "$1$2") + e;
|
|
995
|
+
case 8116:
|
|
996
|
+
case 7059:
|
|
997
|
+
case 5753:
|
|
998
|
+
case 5535:
|
|
999
|
+
case 5445:
|
|
1000
|
+
case 5701:
|
|
1001
|
+
case 4933:
|
|
1002
|
+
case 4677:
|
|
1003
|
+
case 5533:
|
|
1004
|
+
case 5789:
|
|
1005
|
+
case 5021:
|
|
1006
|
+
case 4765:
|
|
1007
|
+
if (J(e) - 1 - t > 6)
|
|
1008
|
+
switch (M(e, t + 1)) {
|
|
1009
|
+
case 109:
|
|
1010
|
+
if (M(e, t + 4) !== 45)
|
|
1011
|
+
break;
|
|
1012
|
+
case 102:
|
|
1013
|
+
return y(e, /(.+:)(.+)-([^]+)/, "$1" + E + "$2-$3$1" + Me + (M(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
1014
|
+
case 115:
|
|
1015
|
+
return ~Xe(e, "stretch", 0) ? wr(y(e, "stretch", "fill-available"), t, r) + e : e;
|
|
1016
|
+
}
|
|
1017
|
+
break;
|
|
1018
|
+
case 5152:
|
|
1019
|
+
case 5920:
|
|
1020
|
+
return y(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(o, s, i, c, p, u, f) {
|
|
1021
|
+
return N + s + ":" + i + f + (c ? N + s + "-span:" + (p ? u : +u - +i) + f : "") + e;
|
|
1022
|
+
});
|
|
1023
|
+
case 4949:
|
|
1024
|
+
if (M(e, t + 6) === 121)
|
|
1025
|
+
return y(e, ":", ":" + E) + e;
|
|
1026
|
+
break;
|
|
1027
|
+
case 6444:
|
|
1028
|
+
switch (M(e, M(e, 14) === 45 ? 18 : 11)) {
|
|
1029
|
+
case 120:
|
|
1030
|
+
return y(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + E + (M(e, 14) === 45 ? "inline-" : "") + "box$3$1" + E + "$2$3$1" + N + "$2box$3") + e;
|
|
1031
|
+
case 100:
|
|
1032
|
+
return y(e, ":", ":" + N) + e;
|
|
1033
|
+
}
|
|
1034
|
+
break;
|
|
1035
|
+
case 5719:
|
|
1036
|
+
case 2647:
|
|
1037
|
+
case 2135:
|
|
1038
|
+
case 3927:
|
|
1039
|
+
case 2391:
|
|
1040
|
+
return y(e, "scroll-", "scroll-snap-") + e;
|
|
1041
|
+
}
|
|
1042
|
+
return e;
|
|
1043
|
+
}
|
|
1044
|
+
function et(e, t) {
|
|
1045
|
+
for (var r = "", o = 0; o < e.length; o++)
|
|
1046
|
+
r += t(e[o], o, e, t) || "";
|
|
1047
|
+
return r;
|
|
1048
|
+
}
|
|
1049
|
+
function $n(e, t, r, o) {
|
|
1050
|
+
switch (e.type) {
|
|
1051
|
+
case kn:
|
|
1052
|
+
if (e.children.length)
|
|
1053
|
+
break;
|
|
1054
|
+
case wn:
|
|
1055
|
+
case Tt:
|
|
1056
|
+
return e.return = e.return || e.value;
|
|
1057
|
+
case gr:
|
|
1058
|
+
return "";
|
|
1059
|
+
case mr:
|
|
1060
|
+
return e.return = e.value + "{" + et(e.children, o) + "}";
|
|
1061
|
+
case rt:
|
|
1062
|
+
if (!J(e.value = e.props.join(",")))
|
|
1063
|
+
return "";
|
|
1064
|
+
}
|
|
1065
|
+
return J(r = et(e.children, o)) ? e.return = e.value + "{" + r + "}" : "";
|
|
1066
|
+
}
|
|
1067
|
+
function In(e) {
|
|
1068
|
+
var t = br(e);
|
|
1069
|
+
return function(r, o, s, i) {
|
|
1070
|
+
for (var c = "", p = 0; p < t; p++)
|
|
1071
|
+
c += e[p](r, o, s, i) || "";
|
|
1072
|
+
return c;
|
|
1073
|
+
};
|
|
1074
|
+
}
|
|
1075
|
+
function Hn(e) {
|
|
1076
|
+
return function(t) {
|
|
1077
|
+
t.root || (t = t.return) && e(t);
|
|
1078
|
+
};
|
|
1079
|
+
}
|
|
1080
|
+
function Mn(e, t, r, o) {
|
|
1081
|
+
if (e.length > -1 && !e.return)
|
|
1082
|
+
switch (e.type) {
|
|
1083
|
+
case Tt:
|
|
1084
|
+
e.return = wr(e.value, e.length, r);
|
|
1085
|
+
return;
|
|
1086
|
+
case mr:
|
|
1087
|
+
return et([le(e, { value: y(e.value, "@", "@" + E) })], o);
|
|
1088
|
+
case rt:
|
|
1089
|
+
if (e.length)
|
|
1090
|
+
return xn(r = e.props, function(s) {
|
|
1091
|
+
switch (ne(s, o = /(::plac\w+|:read-\w+)/)) {
|
|
1092
|
+
case ":read-only":
|
|
1093
|
+
case ":read-write":
|
|
1094
|
+
Pe(le(e, { props: [y(s, /:(read-\w+)/, ":" + Me + "$1")] })), Pe(le(e, { props: [s] })), wt(e, { props: Jt(r, o) });
|
|
1095
|
+
break;
|
|
1096
|
+
case "::placeholder":
|
|
1097
|
+
Pe(le(e, { props: [y(s, /:(plac\w+)/, ":" + E + "input-$1")] })), Pe(le(e, { props: [y(s, /:(plac\w+)/, ":" + Me + "$1")] })), Pe(le(e, { props: [y(s, /:(plac\w+)/, N + "input-$1")] })), Pe(le(e, { props: [s] })), wt(e, { props: Jt(r, o) });
|
|
1098
|
+
break;
|
|
1099
|
+
}
|
|
1100
|
+
return "";
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
}
|
|
1104
|
+
var Fn = {
|
|
1105
|
+
animationIterationCount: 1,
|
|
1106
|
+
borderImageOutset: 1,
|
|
1107
|
+
borderImageSlice: 1,
|
|
1108
|
+
borderImageWidth: 1,
|
|
1109
|
+
boxFlex: 1,
|
|
1110
|
+
boxFlexGroup: 1,
|
|
1111
|
+
boxOrdinalGroup: 1,
|
|
1112
|
+
columnCount: 1,
|
|
1113
|
+
columns: 1,
|
|
1114
|
+
flex: 1,
|
|
1115
|
+
flexGrow: 1,
|
|
1116
|
+
flexPositive: 1,
|
|
1117
|
+
flexShrink: 1,
|
|
1118
|
+
flexNegative: 1,
|
|
1119
|
+
flexOrder: 1,
|
|
1120
|
+
gridRow: 1,
|
|
1121
|
+
gridRowEnd: 1,
|
|
1122
|
+
gridRowSpan: 1,
|
|
1123
|
+
gridRowStart: 1,
|
|
1124
|
+
gridColumn: 1,
|
|
1125
|
+
gridColumnEnd: 1,
|
|
1126
|
+
gridColumnSpan: 1,
|
|
1127
|
+
gridColumnStart: 1,
|
|
1128
|
+
msGridRow: 1,
|
|
1129
|
+
msGridRowSpan: 1,
|
|
1130
|
+
msGridColumn: 1,
|
|
1131
|
+
msGridColumnSpan: 1,
|
|
1132
|
+
fontWeight: 1,
|
|
1133
|
+
lineHeight: 1,
|
|
1134
|
+
opacity: 1,
|
|
1135
|
+
order: 1,
|
|
1136
|
+
orphans: 1,
|
|
1137
|
+
tabSize: 1,
|
|
1138
|
+
widows: 1,
|
|
1139
|
+
zIndex: 1,
|
|
1140
|
+
zoom: 1,
|
|
1141
|
+
WebkitLineClamp: 1,
|
|
1142
|
+
// SVG-related properties
|
|
1143
|
+
fillOpacity: 1,
|
|
1144
|
+
floodOpacity: 1,
|
|
1145
|
+
stopOpacity: 1,
|
|
1146
|
+
strokeDasharray: 1,
|
|
1147
|
+
strokeDashoffset: 1,
|
|
1148
|
+
strokeMiterlimit: 1,
|
|
1149
|
+
strokeOpacity: 1,
|
|
1150
|
+
strokeWidth: 1
|
|
1151
|
+
}, me = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", kr = "active", Pr = "data-styled-version", it = "6.1.8", Dt = `/*!sc*/
|
|
1152
|
+
`, Nt = typeof window < "u" && "HTMLElement" in window, zn = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), er = /invalid hook call/i, Ue = /* @__PURE__ */ new Set(), Ln = function(e, t) {
|
|
1153
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1154
|
+
var r = t ? ' with the id of "'.concat(t, '"') : "", o = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
1155
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
1156
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`, s = console.error;
|
|
1157
|
+
try {
|
|
1158
|
+
var i = !0;
|
|
1159
|
+
console.error = function(c) {
|
|
1160
|
+
for (var p = [], u = 1; u < arguments.length; u++)
|
|
1161
|
+
p[u - 1] = arguments[u];
|
|
1162
|
+
er.test(c) ? (i = !1, Ue.delete(o)) : s.apply(void 0, xe([c], p, !1));
|
|
1163
|
+
}, pn(), i && !Ue.has(o) && (console.warn(o), Ue.add(o));
|
|
1164
|
+
} catch (c) {
|
|
1165
|
+
er.test(c.message) && Ue.delete(o);
|
|
1166
|
+
} finally {
|
|
1167
|
+
console.error = s;
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}, at = Object.freeze([]), _e = Object.freeze({});
|
|
1171
|
+
function Yn(e, t, r) {
|
|
1172
|
+
return r === void 0 && (r = _e), e.theme !== r.theme && e.theme || t || r.theme;
|
|
1173
|
+
}
|
|
1174
|
+
var xt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Vn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Wn = /(^-|-$)/g;
|
|
1175
|
+
function tr(e) {
|
|
1176
|
+
return e.replace(Vn, "-").replace(Wn, "");
|
|
1177
|
+
}
|
|
1178
|
+
var Un = /(a)(d)/gi, Be = 52, rr = function(e) {
|
|
1179
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1180
|
+
};
|
|
1181
|
+
function Rt(e) {
|
|
1182
|
+
var t, r = "";
|
|
1183
|
+
for (t = Math.abs(e); t > Be; t = t / Be | 0)
|
|
1184
|
+
r = rr(t % Be) + r;
|
|
1185
|
+
return (rr(t % Be) + r).replace(Un, "$1-$2");
|
|
1186
|
+
}
|
|
1187
|
+
var yt, xr = 5381, pe = function(e, t) {
|
|
1188
|
+
for (var r = t.length; r; )
|
|
1189
|
+
e = 33 * e ^ t.charCodeAt(--r);
|
|
1190
|
+
return e;
|
|
1191
|
+
}, Rr = function(e) {
|
|
1192
|
+
return pe(xr, e);
|
|
1193
|
+
};
|
|
1194
|
+
function Bn(e) {
|
|
1195
|
+
return Rt(Rr(e) >>> 0);
|
|
1196
|
+
}
|
|
1197
|
+
function Er(e) {
|
|
1198
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1199
|
+
}
|
|
1200
|
+
function vt(e) {
|
|
1201
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1202
|
+
}
|
|
1203
|
+
var _r = typeof Symbol == "function" && Symbol.for, Cr = _r ? Symbol.for("react.memo") : 60115, Gn = _r ? Symbol.for("react.forward_ref") : 60112, qn = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Xn = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Tr = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Kn = ((yt = {})[Gn] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, yt[Cr] = Tr, yt);
|
|
1204
|
+
function nr(e) {
|
|
1205
|
+
return ("type" in (t = e) && t.type.$$typeof) === Cr ? Tr : "$$typeof" in e ? Kn[e.$$typeof] : qn;
|
|
1206
|
+
var t;
|
|
1207
|
+
}
|
|
1208
|
+
var Jn = Object.defineProperty, Qn = Object.getOwnPropertyNames, or = Object.getOwnPropertySymbols, Zn = Object.getOwnPropertyDescriptor, eo = Object.getPrototypeOf, sr = Object.prototype;
|
|
1209
|
+
function Or(e, t, r) {
|
|
1210
|
+
if (typeof t != "string") {
|
|
1211
|
+
if (sr) {
|
|
1212
|
+
var o = eo(t);
|
|
1213
|
+
o && o !== sr && Or(e, o, r);
|
|
1214
|
+
}
|
|
1215
|
+
var s = Qn(t);
|
|
1216
|
+
or && (s = s.concat(or(t)));
|
|
1217
|
+
for (var i = nr(e), c = nr(t), p = 0; p < s.length; ++p) {
|
|
1218
|
+
var u = s[p];
|
|
1219
|
+
if (!(u in Xn || r && r[u] || c && u in c || i && u in i)) {
|
|
1220
|
+
var f = Zn(t, u);
|
|
1221
|
+
try {
|
|
1222
|
+
Jn(e, u, f);
|
|
1223
|
+
} catch {
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
return e;
|
|
1229
|
+
}
|
|
1230
|
+
function Ce(e) {
|
|
1231
|
+
return typeof e == "function";
|
|
1232
|
+
}
|
|
1233
|
+
function At(e) {
|
|
1234
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
1235
|
+
}
|
|
1236
|
+
function he(e, t) {
|
|
1237
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1238
|
+
}
|
|
1239
|
+
function ir(e, t) {
|
|
1240
|
+
if (e.length === 0)
|
|
1241
|
+
return "";
|
|
1242
|
+
for (var r = e[0], o = 1; o < e.length; o++)
|
|
1243
|
+
r += e[o];
|
|
1244
|
+
return r;
|
|
1245
|
+
}
|
|
1246
|
+
function Te(e) {
|
|
1247
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1248
|
+
}
|
|
1249
|
+
function Et(e, t, r) {
|
|
1250
|
+
if (r === void 0 && (r = !1), !r && !Te(e) && !Array.isArray(e))
|
|
1251
|
+
return t;
|
|
1252
|
+
if (Array.isArray(t))
|
|
1253
|
+
for (var o = 0; o < t.length; o++)
|
|
1254
|
+
e[o] = Et(e[o], t[o]);
|
|
1255
|
+
else if (Te(t))
|
|
1256
|
+
for (var o in t)
|
|
1257
|
+
e[o] = Et(e[o], t[o]);
|
|
1258
|
+
return e;
|
|
1259
|
+
}
|
|
1260
|
+
function jt(e, t) {
|
|
1261
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1262
|
+
}
|
|
1263
|
+
var to = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1264
|
+
|
|
1265
|
+
`, 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.
|
|
1266
|
+
|
|
1267
|
+
- Are you trying to reuse it across renders?
|
|
1268
|
+
- Are you accidentally calling collectStyles twice?
|
|
1269
|
+
|
|
1270
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1271
|
+
|
|
1272
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1273
|
+
|
|
1274
|
+
- Does this error occur on the client and is your target falsy?
|
|
1275
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
1276
|
+
|
|
1277
|
+
`, 5: `The clone method cannot be used on the client!
|
|
1278
|
+
|
|
1279
|
+
- Are you running in a client-like environment on the server?
|
|
1280
|
+
- Are you trying to run SSR on the client?
|
|
1281
|
+
|
|
1282
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1283
|
+
|
|
1284
|
+
- Are you using a custom target that isn't mounted?
|
|
1285
|
+
- Does your document not have a valid head element?
|
|
1286
|
+
- Have you accidentally removed a style tag manually?
|
|
1287
|
+
|
|
1288
|
+
`, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
|
|
1289
|
+
|
|
1290
|
+
`, 9: "Missing document `<head>`\n\n", 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
|
|
1291
|
+
|
|
1292
|
+
`, 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.
|
|
1293
|
+
|
|
1294
|
+
`, 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", 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.
|
|
1295
|
+
|
|
1296
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1297
|
+
|
|
1298
|
+
`, 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", 16: `Reached the limit of how many styled components may be created at group %s.
|
|
1299
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1300
|
+
as for instance in your render method then you may be running into this limitation.
|
|
1301
|
+
|
|
1302
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1303
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
1304
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1305
|
+
function ro() {
|
|
1306
|
+
for (var e = [], t = 0; t < arguments.length; t++)
|
|
1307
|
+
e[t] = arguments[t];
|
|
1308
|
+
for (var r = e[0], o = [], s = 1, i = e.length; s < i; s += 1)
|
|
1309
|
+
o.push(e[s]);
|
|
1310
|
+
return o.forEach(function(c) {
|
|
1311
|
+
r = r.replace(/%[a-z]/, c);
|
|
1312
|
+
}), r;
|
|
1313
|
+
}
|
|
1314
|
+
function De(e) {
|
|
1315
|
+
for (var t = [], r = 1; r < arguments.length; r++)
|
|
1316
|
+
t[r - 1] = arguments[r];
|
|
1317
|
+
return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(ro.apply(void 0, xe([to[e]], t, !1)).trim());
|
|
1318
|
+
}
|
|
1319
|
+
var no = function() {
|
|
1320
|
+
function e(t) {
|
|
1321
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1322
|
+
}
|
|
1323
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
1324
|
+
for (var r = 0, o = 0; o < t; o++)
|
|
1325
|
+
r += this.groupSizes[o];
|
|
1326
|
+
return r;
|
|
1327
|
+
}, e.prototype.insertRules = function(t, r) {
|
|
1328
|
+
if (t >= this.groupSizes.length) {
|
|
1329
|
+
for (var o = this.groupSizes, s = o.length, i = s; t >= i; )
|
|
1330
|
+
if ((i <<= 1) < 0)
|
|
1331
|
+
throw De(16, "".concat(t));
|
|
1332
|
+
this.groupSizes = new Uint32Array(i), this.groupSizes.set(o), this.length = i;
|
|
1333
|
+
for (var c = s; c < i; c++)
|
|
1334
|
+
this.groupSizes[c] = 0;
|
|
1335
|
+
}
|
|
1336
|
+
for (var p = this.indexOfGroup(t + 1), u = (c = 0, r.length); c < u; c++)
|
|
1337
|
+
this.tag.insertRule(p, r[c]) && (this.groupSizes[t]++, p++);
|
|
1338
|
+
}, e.prototype.clearGroup = function(t) {
|
|
1339
|
+
if (t < this.length) {
|
|
1340
|
+
var r = this.groupSizes[t], o = this.indexOfGroup(t), s = o + r;
|
|
1341
|
+
this.groupSizes[t] = 0;
|
|
1342
|
+
for (var i = o; i < s; i++)
|
|
1343
|
+
this.tag.deleteRule(o);
|
|
1344
|
+
}
|
|
1345
|
+
}, e.prototype.getGroup = function(t) {
|
|
1346
|
+
var r = "";
|
|
1347
|
+
if (t >= this.length || this.groupSizes[t] === 0)
|
|
1348
|
+
return r;
|
|
1349
|
+
for (var o = this.groupSizes[t], s = this.indexOfGroup(t), i = s + o, c = s; c < i; c++)
|
|
1350
|
+
r += "".concat(this.tag.getRule(c)).concat(Dt);
|
|
1351
|
+
return r;
|
|
1352
|
+
}, e;
|
|
1353
|
+
}(), Qe = /* @__PURE__ */ new Map(), tt = /* @__PURE__ */ new Map(), Ze = 1, Ge = function(e) {
|
|
1354
|
+
if (Qe.has(e))
|
|
1355
|
+
return Qe.get(e);
|
|
1356
|
+
for (; tt.has(Ze); )
|
|
1357
|
+
Ze++;
|
|
1358
|
+
var t = Ze++;
|
|
1359
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > 1073741824))
|
|
1360
|
+
throw De(16, "".concat(t));
|
|
1361
|
+
return Qe.set(e, t), tt.set(t, e), t;
|
|
1362
|
+
}, oo = function(e, t) {
|
|
1363
|
+
Ze = t + 1, Qe.set(e, t), tt.set(t, e);
|
|
1364
|
+
}, so = "style[".concat(me, "][").concat(Pr, '="').concat(it, '"]'), io = new RegExp("^".concat(me, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ao = function(e, t, r) {
|
|
1365
|
+
for (var o, s = r.split(","), i = 0, c = s.length; i < c; i++)
|
|
1366
|
+
(o = s[i]) && e.registerName(t, o);
|
|
1367
|
+
}, co = function(e, t) {
|
|
1368
|
+
for (var r, o = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(Dt), s = [], i = 0, c = o.length; i < c; i++) {
|
|
1369
|
+
var p = o[i].trim();
|
|
1370
|
+
if (p) {
|
|
1371
|
+
var u = p.match(io);
|
|
1372
|
+
if (u) {
|
|
1373
|
+
var f = 0 | parseInt(u[1], 10), d = u[2];
|
|
1374
|
+
f !== 0 && (oo(d, f), ao(e, d, u[3]), e.getTag().insertRules(f, s)), s.length = 0;
|
|
1375
|
+
} else
|
|
1376
|
+
s.push(p);
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
};
|
|
1380
|
+
function lo() {
|
|
1381
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1382
|
+
}
|
|
1383
|
+
var Dr = function(e) {
|
|
1384
|
+
var t = document.head, r = e || t, o = document.createElement("style"), s = function(p) {
|
|
1385
|
+
var u = Array.from(p.querySelectorAll("style[".concat(me, "]")));
|
|
1386
|
+
return u[u.length - 1];
|
|
1387
|
+
}(r), i = s !== void 0 ? s.nextSibling : null;
|
|
1388
|
+
o.setAttribute(me, kr), o.setAttribute(Pr, it);
|
|
1389
|
+
var c = lo();
|
|
1390
|
+
return c && o.setAttribute("nonce", c), r.insertBefore(o, i), o;
|
|
1391
|
+
}, uo = function() {
|
|
1392
|
+
function e(t) {
|
|
1393
|
+
this.element = Dr(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
1394
|
+
if (r.sheet)
|
|
1395
|
+
return r.sheet;
|
|
1396
|
+
for (var o = document.styleSheets, s = 0, i = o.length; s < i; s++) {
|
|
1397
|
+
var c = o[s];
|
|
1398
|
+
if (c.ownerNode === r)
|
|
1399
|
+
return c;
|
|
1400
|
+
}
|
|
1401
|
+
throw De(17);
|
|
1402
|
+
}(this.element), this.length = 0;
|
|
1403
|
+
}
|
|
1404
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1405
|
+
try {
|
|
1406
|
+
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
1407
|
+
} catch {
|
|
1408
|
+
return !1;
|
|
1409
|
+
}
|
|
1410
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1411
|
+
this.sheet.deleteRule(t), this.length--;
|
|
1412
|
+
}, e.prototype.getRule = function(t) {
|
|
1413
|
+
var r = this.sheet.cssRules[t];
|
|
1414
|
+
return r && r.cssText ? r.cssText : "";
|
|
1415
|
+
}, e;
|
|
1416
|
+
}(), po = function() {
|
|
1417
|
+
function e(t) {
|
|
1418
|
+
this.element = Dr(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1419
|
+
}
|
|
1420
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1421
|
+
if (t <= this.length && t >= 0) {
|
|
1422
|
+
var o = document.createTextNode(r);
|
|
1423
|
+
return this.element.insertBefore(o, this.nodes[t] || null), this.length++, !0;
|
|
1424
|
+
}
|
|
1425
|
+
return !1;
|
|
1426
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1427
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1428
|
+
}, e.prototype.getRule = function(t) {
|
|
1429
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
1430
|
+
}, e;
|
|
1431
|
+
}(), ho = function() {
|
|
1432
|
+
function e(t) {
|
|
1433
|
+
this.rules = [], this.length = 0;
|
|
1434
|
+
}
|
|
1435
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1436
|
+
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
1437
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1438
|
+
this.rules.splice(t, 1), this.length--;
|
|
1439
|
+
}, e.prototype.getRule = function(t) {
|
|
1440
|
+
return t < this.length ? this.rules[t] : "";
|
|
1441
|
+
}, e;
|
|
1442
|
+
}(), ar = Nt, fo = { isServer: !Nt, useCSSOMInjection: !zn }, Nr = function() {
|
|
1443
|
+
function e(t, r, o) {
|
|
1444
|
+
t === void 0 && (t = _e), r === void 0 && (r = {});
|
|
1445
|
+
var s = this;
|
|
1446
|
+
this.options = Y(Y({}, fo), t), this.gs = r, this.names = new Map(o), this.server = !!t.isServer, !this.server && Nt && ar && (ar = !1, function(i) {
|
|
1447
|
+
for (var c = document.querySelectorAll(so), p = 0, u = c.length; p < u; p++) {
|
|
1448
|
+
var f = c[p];
|
|
1449
|
+
f && f.getAttribute(me) !== kr && (co(i, f), f.parentNode && f.parentNode.removeChild(f));
|
|
1450
|
+
}
|
|
1451
|
+
}(this)), jt(this, function() {
|
|
1452
|
+
return function(i) {
|
|
1453
|
+
for (var c = i.getTag(), p = c.length, u = "", f = function(g) {
|
|
1454
|
+
var b = function(_) {
|
|
1455
|
+
return tt.get(_);
|
|
1456
|
+
}(g);
|
|
1457
|
+
if (b === void 0)
|
|
1458
|
+
return "continue";
|
|
1459
|
+
var P = i.names.get(b), O = c.getGroup(g);
|
|
1460
|
+
if (P === void 0 || O.length === 0)
|
|
1461
|
+
return "continue";
|
|
1462
|
+
var j = "".concat(me, ".g").concat(g, '[id="').concat(b, '"]'), F = "";
|
|
1463
|
+
P !== void 0 && P.forEach(function(_) {
|
|
1464
|
+
_.length > 0 && (F += "".concat(_, ","));
|
|
1465
|
+
}), u += "".concat(O).concat(j, '{content:"').concat(F, '"}').concat(Dt);
|
|
1466
|
+
}, d = 0; d < p; d++)
|
|
1467
|
+
f(d);
|
|
1468
|
+
return u;
|
|
1469
|
+
}(s);
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1472
|
+
return e.registerId = function(t) {
|
|
1473
|
+
return Ge(t);
|
|
1474
|
+
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
1475
|
+
return r === void 0 && (r = !0), new e(Y(Y({}, this.options), t), this.gs, r && this.names || void 0);
|
|
1476
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
1477
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1478
|
+
}, e.prototype.getTag = function() {
|
|
1479
|
+
return this.tag || (this.tag = (t = function(r) {
|
|
1480
|
+
var o = r.useCSSOMInjection, s = r.target;
|
|
1481
|
+
return r.isServer ? new ho(s) : o ? new uo(s) : new po(s);
|
|
1482
|
+
}(this.options), new no(t)));
|
|
1483
|
+
var t;
|
|
1484
|
+
}, e.prototype.hasNameForId = function(t, r) {
|
|
1485
|
+
return this.names.has(t) && this.names.get(t).has(r);
|
|
1486
|
+
}, e.prototype.registerName = function(t, r) {
|
|
1487
|
+
if (Ge(t), this.names.has(t))
|
|
1488
|
+
this.names.get(t).add(r);
|
|
1489
|
+
else {
|
|
1490
|
+
var o = /* @__PURE__ */ new Set();
|
|
1491
|
+
o.add(r), this.names.set(t, o);
|
|
1492
|
+
}
|
|
1493
|
+
}, e.prototype.insertRules = function(t, r, o) {
|
|
1494
|
+
this.registerName(t, r), this.getTag().insertRules(Ge(t), o);
|
|
1495
|
+
}, e.prototype.clearNames = function(t) {
|
|
1496
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
1497
|
+
}, e.prototype.clearRules = function(t) {
|
|
1498
|
+
this.getTag().clearGroup(Ge(t)), this.clearNames(t);
|
|
1499
|
+
}, e.prototype.clearTag = function() {
|
|
1500
|
+
this.tag = void 0;
|
|
1501
|
+
}, e;
|
|
1502
|
+
}(), go = /&/g, mo = /^\s*\/\/.*$/gm;
|
|
1503
|
+
function Ar(e, t) {
|
|
1504
|
+
return e.map(function(r) {
|
|
1505
|
+
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(o) {
|
|
1506
|
+
return "".concat(t, " ").concat(o);
|
|
1507
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = Ar(r.children, t)), r;
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
function yo(e) {
|
|
1511
|
+
var t, r, o, s = _e, i = s.options, c = i === void 0 ? _e : i, p = s.plugins, u = p === void 0 ? at : p, f = function(b, P, O) {
|
|
1512
|
+
return O.startsWith(r) && O.endsWith(r) && O.replaceAll(r, "").length > 0 ? ".".concat(t) : b;
|
|
1513
|
+
}, d = u.slice();
|
|
1514
|
+
d.push(function(b) {
|
|
1515
|
+
b.type === rt && b.value.includes("&") && (b.props[0] = b.props[0].replace(go, r).replace(o, f));
|
|
1516
|
+
}), c.prefix && d.push(Mn), d.push($n);
|
|
1517
|
+
var g = function(b, P, O, j) {
|
|
1518
|
+
P === void 0 && (P = ""), O === void 0 && (O = ""), j === void 0 && (j = "&"), t = j, r = P, o = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1519
|
+
var F = b.replace(mo, ""), _ = An(O || P ? "".concat(O, " ").concat(P, " { ").concat(F, " }") : F);
|
|
1520
|
+
c.namespace && (_ = Ar(_, c.namespace));
|
|
1521
|
+
var v = [];
|
|
1522
|
+
return et(_, In(d.concat(Hn(function(C) {
|
|
1523
|
+
return v.push(C);
|
|
1524
|
+
})))), v;
|
|
1525
|
+
};
|
|
1526
|
+
return g.hash = u.length ? u.reduce(function(b, P) {
|
|
1527
|
+
return P.name || De(15), pe(b, P.name);
|
|
1528
|
+
}, xr).toString() : "", g;
|
|
1529
|
+
}
|
|
1530
|
+
var vo = new Nr(), _t = yo(), jr = ge.createContext({ shouldForwardProp: void 0, styleSheet: vo, stylis: _t });
|
|
1531
|
+
jr.Consumer;
|
|
1532
|
+
ge.createContext(void 0);
|
|
1533
|
+
function cr() {
|
|
1534
|
+
return fn(jr);
|
|
1535
|
+
}
|
|
1536
|
+
var lr = function() {
|
|
1537
|
+
function e(t, r) {
|
|
1538
|
+
var o = this;
|
|
1539
|
+
this.inject = function(s, i) {
|
|
1540
|
+
i === void 0 && (i = _t);
|
|
1541
|
+
var c = o.name + i.hash;
|
|
1542
|
+
s.hasNameForId(o.id, c) || s.insertRules(o.id, c, i(o.rules, c, "@keyframes"));
|
|
1543
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, jt(this, function() {
|
|
1544
|
+
throw De(12, String(o.name));
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
return e.prototype.getName = function(t) {
|
|
1548
|
+
return t === void 0 && (t = _t), this.name + t.hash;
|
|
1549
|
+
}, e;
|
|
1550
|
+
}(), bo = function(e) {
|
|
1551
|
+
return e >= "A" && e <= "Z";
|
|
1552
|
+
};
|
|
1553
|
+
function ur(e) {
|
|
1554
|
+
for (var t = "", r = 0; r < e.length; r++) {
|
|
1555
|
+
var o = e[r];
|
|
1556
|
+
if (r === 1 && o === "-" && e[0] === "-")
|
|
1557
|
+
return e;
|
|
1558
|
+
bo(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
1559
|
+
}
|
|
1560
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1561
|
+
}
|
|
1562
|
+
var $r = function(e) {
|
|
1563
|
+
return e == null || e === !1 || e === "";
|
|
1564
|
+
}, Ir = function(e) {
|
|
1565
|
+
var t, r, o = [];
|
|
1566
|
+
for (var s in e) {
|
|
1567
|
+
var i = e[s];
|
|
1568
|
+
e.hasOwnProperty(s) && !$r(i) && (Array.isArray(i) && i.isCss || Ce(i) ? o.push("".concat(ur(s), ":"), i, ";") : Te(i) ? o.push.apply(o, xe(xe(["".concat(s, " {")], Ir(i), !1), ["}"], !1)) : o.push("".concat(ur(s), ": ").concat((t = s, (r = i) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Fn || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1569
|
+
}
|
|
1570
|
+
return o;
|
|
1571
|
+
};
|
|
1572
|
+
function de(e, t, r, o) {
|
|
1573
|
+
if ($r(e))
|
|
1574
|
+
return [];
|
|
1575
|
+
if (At(e))
|
|
1576
|
+
return [".".concat(e.styledComponentId)];
|
|
1577
|
+
if (Ce(e)) {
|
|
1578
|
+
if (!Ce(i = e) || i.prototype && i.prototype.isReactComponent || !t)
|
|
1579
|
+
return [e];
|
|
1580
|
+
var s = e(t);
|
|
1581
|
+
return process.env.NODE_ENV === "production" || typeof s != "object" || Array.isArray(s) || s instanceof lr || Te(s) || s === null || console.error("".concat(Er(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.")), de(s, t, r, o);
|
|
1582
|
+
}
|
|
1583
|
+
var i;
|
|
1584
|
+
return e instanceof lr ? r ? (e.inject(r, o), [e.getName(o)]) : [e] : Te(e) ? Ir(e) : Array.isArray(e) ? Array.prototype.concat.apply(at, e.map(function(c) {
|
|
1585
|
+
return de(c, t, r, o);
|
|
1586
|
+
})) : [e.toString()];
|
|
1587
|
+
}
|
|
1588
|
+
function So(e) {
|
|
1589
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1590
|
+
var r = e[t];
|
|
1591
|
+
if (Ce(r) && !At(r))
|
|
1592
|
+
return !1;
|
|
1593
|
+
}
|
|
1594
|
+
return !0;
|
|
1595
|
+
}
|
|
1596
|
+
var wo = Rr(it), ko = function() {
|
|
1597
|
+
function e(t, r, o) {
|
|
1598
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && So(t), this.componentId = r, this.baseHash = pe(wo, r), this.baseStyle = o, Nr.registerId(r);
|
|
1599
|
+
}
|
|
1600
|
+
return e.prototype.generateAndInjectStyles = function(t, r, o) {
|
|
1601
|
+
var s = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, o) : "";
|
|
1602
|
+
if (this.isStatic && !o.hash)
|
|
1603
|
+
if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId))
|
|
1604
|
+
s = he(s, this.staticRulesId);
|
|
1605
|
+
else {
|
|
1606
|
+
var i = ir(de(this.rules, t, r, o)), c = Rt(pe(this.baseHash, i) >>> 0);
|
|
1607
|
+
if (!r.hasNameForId(this.componentId, c)) {
|
|
1608
|
+
var p = o(i, ".".concat(c), void 0, this.componentId);
|
|
1609
|
+
r.insertRules(this.componentId, c, p);
|
|
1610
|
+
}
|
|
1611
|
+
s = he(s, c), this.staticRulesId = c;
|
|
1612
|
+
}
|
|
1613
|
+
else {
|
|
1614
|
+
for (var u = pe(this.baseHash, o.hash), f = "", d = 0; d < this.rules.length; d++) {
|
|
1615
|
+
var g = this.rules[d];
|
|
1616
|
+
if (typeof g == "string")
|
|
1617
|
+
f += g, process.env.NODE_ENV !== "production" && (u = pe(u, g));
|
|
1618
|
+
else if (g) {
|
|
1619
|
+
var b = ir(de(g, t, r, o));
|
|
1620
|
+
u = pe(u, b + d), f += b;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
if (f) {
|
|
1624
|
+
var P = Rt(u >>> 0);
|
|
1625
|
+
r.hasNameForId(this.componentId, P) || r.insertRules(this.componentId, P, o(f, ".".concat(P), void 0, this.componentId)), s = he(s, P);
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
return s;
|
|
1629
|
+
}, e;
|
|
1630
|
+
}(), Hr = ge.createContext(void 0);
|
|
1631
|
+
Hr.Consumer;
|
|
1632
|
+
var bt = {}, pr = /* @__PURE__ */ new Set();
|
|
1633
|
+
function Po(e, t, r) {
|
|
1634
|
+
var o = At(e), s = e, i = !vt(e), c = t.attrs, p = c === void 0 ? at : c, u = t.componentId, f = u === void 0 ? function(D, A) {
|
|
1635
|
+
var w = typeof D != "string" ? "sc" : tr(D);
|
|
1636
|
+
bt[w] = (bt[w] || 0) + 1;
|
|
1637
|
+
var m = "".concat(w, "-").concat(Bn(it + w + bt[w]));
|
|
1638
|
+
return A ? "".concat(A, "-").concat(m) : m;
|
|
1639
|
+
}(t.displayName, t.parentComponentId) : u, d = t.displayName, g = d === void 0 ? function(D) {
|
|
1640
|
+
return vt(D) ? "styled.".concat(D) : "Styled(".concat(Er(D), ")");
|
|
1641
|
+
}(e) : d, b = t.displayName && t.componentId ? "".concat(tr(t.displayName), "-").concat(t.componentId) : t.componentId || f, P = o && s.attrs ? s.attrs.concat(p).filter(Boolean) : p, O = t.shouldForwardProp;
|
|
1642
|
+
if (o && s.shouldForwardProp) {
|
|
1643
|
+
var j = s.shouldForwardProp;
|
|
1644
|
+
if (t.shouldForwardProp) {
|
|
1645
|
+
var F = t.shouldForwardProp;
|
|
1646
|
+
O = function(D, A) {
|
|
1647
|
+
return j(D, A) && F(D, A);
|
|
1648
|
+
};
|
|
1649
|
+
} else
|
|
1650
|
+
O = j;
|
|
1651
|
+
}
|
|
1652
|
+
var _ = new ko(r, b, o ? s.componentStyle : void 0);
|
|
1653
|
+
function v(D, A) {
|
|
1654
|
+
return function(w, m, Q) {
|
|
1655
|
+
var Z = w.attrs, lt = w.componentStyle, ut = w.defaultProps, Fe = w.foldedComponentIds, V = w.styledComponentId, ee = w.target, ue = ge.useContext(Hr), ze = cr(), ye = w.shouldForwardProp || ze.shouldForwardProp;
|
|
1656
|
+
process.env.NODE_ENV !== "production" && qt(V);
|
|
1657
|
+
var Ne = Yn(m, ue, ut) || _e, W = function(be, te, ie) {
|
|
1658
|
+
for (var G, q = Y(Y({}, te), { className: void 0, theme: ie }), ae = 0; ae < be.length; ae += 1) {
|
|
1659
|
+
var Se = Ce(G = be[ae]) ? G(q) : G;
|
|
1660
|
+
for (var X in Se)
|
|
1661
|
+
q[X] = X === "className" ? he(q[X], Se[X]) : X === "style" ? Y(Y({}, q[X]), Se[X]) : Se[X];
|
|
1662
|
+
}
|
|
1663
|
+
return te.className && (q.className = he(q.className, te.className)), q;
|
|
1664
|
+
}(Z, m, Ne), oe = W.as || ee, se = {};
|
|
1665
|
+
for (var z in W)
|
|
1666
|
+
W[z] === void 0 || z[0] === "$" || z === "as" || z === "theme" && W.theme === Ne || (z === "forwardedAs" ? se.as = W.forwardedAs : ye && !ye(z, oe) || (se[z] = W[z], ye || process.env.NODE_ENV !== "development" || Sn(z) || pr.has(z) || !xt.has(oe) || (pr.add(z), console.warn('styled-components: it looks like an unknown prop "'.concat(z, '" 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.)')))));
|
|
1667
|
+
var ve = function(be, te) {
|
|
1668
|
+
var ie = cr(), G = be.generateAndInjectStyles(te, ie.styleSheet, ie.stylis);
|
|
1669
|
+
return process.env.NODE_ENV !== "production" && qt(G), G;
|
|
1670
|
+
}(lt, W);
|
|
1671
|
+
process.env.NODE_ENV !== "production" && w.warnTooManyClasses && w.warnTooManyClasses(ve);
|
|
1672
|
+
var Ae = he(Fe, V);
|
|
1673
|
+
return ve && (Ae += " " + ve), W.className && (Ae += " " + W.className), se[vt(oe) && !xt.has(oe) ? "class" : "className"] = Ae, se.ref = Q, hn(oe, se);
|
|
1674
|
+
}(C, D, A);
|
|
1675
|
+
}
|
|
1676
|
+
v.displayName = g;
|
|
1677
|
+
var C = ge.forwardRef(v);
|
|
1678
|
+
return C.attrs = P, C.componentStyle = _, C.displayName = g, C.shouldForwardProp = O, C.foldedComponentIds = o ? he(s.foldedComponentIds, s.styledComponentId) : "", C.styledComponentId = b, C.target = o ? s.target : e, Object.defineProperty(C, "defaultProps", { get: function() {
|
|
1679
|
+
return this._foldedDefaultProps;
|
|
1680
|
+
}, set: function(D) {
|
|
1681
|
+
this._foldedDefaultProps = o ? function(A) {
|
|
1682
|
+
for (var w = [], m = 1; m < arguments.length; m++)
|
|
1683
|
+
w[m - 1] = arguments[m];
|
|
1684
|
+
for (var Q = 0, Z = w; Q < Z.length; Q++)
|
|
1685
|
+
Et(A, Z[Q], !0);
|
|
1686
|
+
return A;
|
|
1687
|
+
}({}, s.defaultProps, D) : D;
|
|
1688
|
+
} }), process.env.NODE_ENV !== "production" && (Ln(g, b), C.warnTooManyClasses = /* @__PURE__ */ function(D, A) {
|
|
1689
|
+
var w = {}, m = !1;
|
|
1690
|
+
return function(Q) {
|
|
1691
|
+
if (!m && (w[Q] = !0, Object.keys(w).length >= 200)) {
|
|
1692
|
+
var Z = A ? ' with the id of "'.concat(A, '"') : "";
|
|
1693
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(D).concat(Z, `.
|
|
1694
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1695
|
+
Example:
|
|
1696
|
+
const Component = styled.div.attrs(props => ({
|
|
1697
|
+
style: {
|
|
1698
|
+
background: props.background,
|
|
1699
|
+
},
|
|
1700
|
+
}))\`width: 100%;\`
|
|
1701
|
+
|
|
1702
|
+
<Component />`), m = !0, w = {};
|
|
1703
|
+
}
|
|
1704
|
+
};
|
|
1705
|
+
}(g, b)), jt(C, function() {
|
|
1706
|
+
return ".".concat(C.styledComponentId);
|
|
1707
|
+
}), i && Or(C, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), C;
|
|
1708
|
+
}
|
|
1709
|
+
function hr(e, t) {
|
|
1710
|
+
for (var r = [e[0]], o = 0, s = t.length; o < s; o += 1)
|
|
1711
|
+
r.push(t[o], e[o + 1]);
|
|
1712
|
+
return r;
|
|
1713
|
+
}
|
|
1714
|
+
var fr = function(e) {
|
|
1715
|
+
return Object.assign(e, { isCss: !0 });
|
|
1716
|
+
};
|
|
1717
|
+
function xo(e) {
|
|
1718
|
+
for (var t = [], r = 1; r < arguments.length; r++)
|
|
1719
|
+
t[r - 1] = arguments[r];
|
|
1720
|
+
if (Ce(e) || Te(e))
|
|
1721
|
+
return fr(de(hr(at, xe([e], t, !0))));
|
|
1722
|
+
var o = e;
|
|
1723
|
+
return t.length === 0 && o.length === 1 && typeof o[0] == "string" ? de(o) : fr(de(hr(o, t)));
|
|
1724
|
+
}
|
|
1725
|
+
function Ct(e, t, r) {
|
|
1726
|
+
if (r === void 0 && (r = _e), !t)
|
|
1727
|
+
throw De(1, t);
|
|
1728
|
+
var o = function(s) {
|
|
1729
|
+
for (var i = [], c = 1; c < arguments.length; c++)
|
|
1730
|
+
i[c - 1] = arguments[c];
|
|
1731
|
+
return e(t, r, xo.apply(void 0, xe([s], i, !1)));
|
|
1732
|
+
};
|
|
1733
|
+
return o.attrs = function(s) {
|
|
1734
|
+
return Ct(e, t, Y(Y({}, r), { attrs: Array.prototype.concat(r.attrs, s).filter(Boolean) }));
|
|
1735
|
+
}, o.withConfig = function(s) {
|
|
1736
|
+
return Ct(e, t, Y(Y({}, r), s));
|
|
1737
|
+
}, o;
|
|
1738
|
+
}
|
|
1739
|
+
var Mr = function(e) {
|
|
1740
|
+
return Ct(Po, e);
|
|
1741
|
+
}, ct = Mr;
|
|
1742
|
+
xt.forEach(function(e) {
|
|
1743
|
+
ct[e] = Mr(e);
|
|
1744
|
+
});
|
|
1745
|
+
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1746
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
1747
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1748
|
+
var qe = "__sc-".concat(me, "__");
|
|
1749
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[qe] || (window[qe] = 0), window[qe] === 1 && 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.
|
|
1750
|
+
|
|
1751
|
+
See https://s-c.sh/2BAXzed for more info.`), window[qe] += 1);
|
|
1752
|
+
const Ro = (e, t) => {
|
|
1753
|
+
let r;
|
|
1754
|
+
function o() {
|
|
1755
|
+
clearTimeout(r);
|
|
1756
|
+
}
|
|
1757
|
+
function s() {
|
|
1758
|
+
o(), r = setTimeout(() => {
|
|
1759
|
+
e();
|
|
1760
|
+
}, t);
|
|
1761
|
+
}
|
|
1762
|
+
return s.cancel = o, s;
|
|
1763
|
+
}, dr = (e, t, r) => (t = !t && t !== 0 ? e : t, r = !r && r !== 0 ? e : r, t > r ? (console.error("min limit is greater than max limit"), e) : e < t ? t : e > r ? r : e), Fr = (e, t) => e.clientX > t.left && e.clientX < t.right && e.clientY > t.top && e.clientY < t.top + t.height, Eo = (e, t) => {
|
|
1764
|
+
const r = t.getBoundingClientRect();
|
|
1765
|
+
return Fr(e, r);
|
|
1766
|
+
}, zr = ct.div`
|
|
1767
|
+
position: absolute;
|
|
1768
|
+
height: 100%;
|
|
1769
|
+
width: 6px;
|
|
1770
|
+
right: 3px;
|
|
1771
|
+
opacity: 0;
|
|
1772
|
+
z-index: 1;
|
|
1773
|
+
transition: opacity 0.4s ease-out;
|
|
1774
|
+
padding: 6px 0;
|
|
1775
|
+
box-sizing: border-box;
|
|
1776
|
+
will-change: opacity;
|
|
1777
|
+
pointer-events: none;
|
|
1778
|
+
|
|
1779
|
+
&.rcs-custom-scrollbar-rtl {
|
|
1780
|
+
right: auto;
|
|
1781
|
+
left: 3px;
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
&.scroll-visible {
|
|
1785
|
+
opacity: 1;
|
|
1786
|
+
transition-duration: 0.2s;
|
|
1787
|
+
}
|
|
1788
|
+
`, _o = ct.div`
|
|
1789
|
+
height: calc(100% - 12px);
|
|
1790
|
+
margin-top: 6px;
|
|
1791
|
+
background-color: rgba(78, 183, 245, 0.7);
|
|
1792
|
+
border-radius: 3px;
|
|
1793
|
+
`, Co = ct.div`
|
|
1794
|
+
min-height: 0;
|
|
1795
|
+
min-width: 0;
|
|
1796
|
+
|
|
1797
|
+
& .rcs-outer-container {
|
|
1798
|
+
overflow: hidden;
|
|
1799
|
+
|
|
1800
|
+
& .rcs-positioning {
|
|
1801
|
+
position: relative;
|
|
1802
|
+
}
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
& .rcs-inner-container {
|
|
1806
|
+
overflow-x: hidden;
|
|
1807
|
+
overflow-y: scroll;
|
|
1808
|
+
-webkit-overflow-scrolling: touch;
|
|
1809
|
+
|
|
1810
|
+
&:after {
|
|
1811
|
+
content: "";
|
|
1812
|
+
position: absolute;
|
|
1813
|
+
top: 0;
|
|
1814
|
+
right: 0;
|
|
1815
|
+
left: 0;
|
|
1816
|
+
height: 0;
|
|
1817
|
+
background-image: linear-gradient(
|
|
1818
|
+
to bottom,
|
|
1819
|
+
rgba(0, 0, 0, 0.2) 0%,
|
|
1820
|
+
rgba(0, 0, 0, 0.05) 60%,
|
|
1821
|
+
rgba(0, 0, 0, 0) 100%
|
|
1822
|
+
);
|
|
1823
|
+
pointer-events: none;
|
|
1824
|
+
transition: height 0.1s ease-in;
|
|
1825
|
+
will-change: height;
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
&.rcs-content-scrolled:after {
|
|
1829
|
+
height: 5px;
|
|
1830
|
+
transition: height 0.15s ease-out;
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
|
|
1834
|
+
&.rcs-scroll-handle-dragged .rcs-inner-container {
|
|
1835
|
+
user-select: none;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
&.rcs-scroll-handle-dragged ${zr} {
|
|
1839
|
+
opacity: 1;
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
& .rcs-custom-scroll-handle {
|
|
1843
|
+
position: absolute;
|
|
1844
|
+
width: 100%;
|
|
1845
|
+
top: 0;
|
|
1846
|
+
}
|
|
1847
|
+
`;
|
|
1848
|
+
class Oo extends un {
|
|
1849
|
+
constructor(t) {
|
|
1850
|
+
super(t), S(this, "scrollbarYWidth"), S(this, "hideScrollThumb"), S(this, "contentHeight", 0), S(this, "visibleHeight", 0), S(this, "scrollHandleHeight", 0), S(this, "scrollRatio", 1), S(this, "hasScroll", !1), S(this, "startDragHandlePos", 0), S(this, "startDragMousePos", 0), S(this, "customScrollRef", $e()), S(this, "innerContainerRef", $e()), S(this, "customScrollbarRef", $e()), S(this, "scrollHandleRef", $e()), S(this, "contentWrapperRef", $e()), S(this, "adjustFreezePosition", (r) => {
|
|
1851
|
+
if (!this.contentWrapperRef.current)
|
|
1852
|
+
return;
|
|
1853
|
+
const o = this.getScrolledElement(), s = this.contentWrapperRef.current;
|
|
1854
|
+
this.props.freezePosition && (s.scrollTop = this.state.scrollPos), r.freezePosition && (o.scrollTop = this.state.scrollPos);
|
|
1855
|
+
}), S(this, "toggleScrollIfNeeded", () => {
|
|
1856
|
+
const r = this.contentHeight - this.visibleHeight > 1;
|
|
1857
|
+
this.hasScroll !== r && (this.hasScroll = r, this.forceUpdate());
|
|
1858
|
+
}), S(this, "updateScrollPosition", (r) => {
|
|
1859
|
+
const o = this.getScrolledElement(), s = dr(
|
|
1860
|
+
r,
|
|
1861
|
+
0,
|
|
1862
|
+
this.contentHeight - this.visibleHeight
|
|
1863
|
+
);
|
|
1864
|
+
o.scrollTop = s, this.setState({
|
|
1865
|
+
scrollPos: s
|
|
1866
|
+
});
|
|
1867
|
+
}), S(this, "onClick", (r) => {
|
|
1868
|
+
if (!this.hasScroll || !this.isMouseEventOnCustomScrollbar(r) || this.isMouseEventOnScrollHandle(r))
|
|
1869
|
+
return;
|
|
1870
|
+
const o = this.calculateNewScrollHandleTop(r), s = this.getScrollValueFromHandlePosition(o);
|
|
1871
|
+
this.updateScrollPosition(s);
|
|
1872
|
+
}), S(this, "isMouseEventOnCustomScrollbar", (r) => {
|
|
1873
|
+
if (!this.customScrollbarRef.current)
|
|
1874
|
+
return !1;
|
|
1875
|
+
const o = this.customScrollRef.current.getBoundingClientRect(), s = this.customScrollbarRef.current.getBoundingClientRect(), i = this.props.rtl ? {
|
|
1876
|
+
left: o.left,
|
|
1877
|
+
right: s.right
|
|
1878
|
+
} : {
|
|
1879
|
+
left: s.left,
|
|
1880
|
+
width: o.right
|
|
1881
|
+
}, c = {
|
|
1882
|
+
right: o.right,
|
|
1883
|
+
top: o.top,
|
|
1884
|
+
height: o.height,
|
|
1885
|
+
...i
|
|
1886
|
+
};
|
|
1887
|
+
return Fr(r, c);
|
|
1888
|
+
}), S(this, "isMouseEventOnScrollHandle", (r) => {
|
|
1889
|
+
if (!this.scrollHandleRef.current)
|
|
1890
|
+
return !1;
|
|
1891
|
+
const o = this.scrollHandleRef.current;
|
|
1892
|
+
return Eo(r, o);
|
|
1893
|
+
}), S(this, "calculateNewScrollHandleTop", (r) => {
|
|
1894
|
+
const o = this.customScrollRef.current.getBoundingClientRect().top + window.pageYOffset, s = r.pageY - o, i = this.getScrollHandleStyle().top;
|
|
1895
|
+
let c;
|
|
1896
|
+
return s > i + this.scrollHandleHeight ? c = i + Math.min(
|
|
1897
|
+
this.scrollHandleHeight,
|
|
1898
|
+
this.visibleHeight - this.scrollHandleHeight
|
|
1899
|
+
) : c = i - Math.max(this.scrollHandleHeight, 0), c;
|
|
1900
|
+
}), S(this, "getScrollValueFromHandlePosition", (r) => r / this.scrollRatio), S(this, "getScrollHandleStyle", () => {
|
|
1901
|
+
const r = this.state.scrollPos * this.scrollRatio;
|
|
1902
|
+
return this.scrollHandleHeight = this.visibleHeight * this.scrollRatio, {
|
|
1903
|
+
height: this.scrollHandleHeight,
|
|
1904
|
+
top: r
|
|
1905
|
+
};
|
|
1906
|
+
}), S(this, "adjustCustomScrollPosToContentPos", (r) => {
|
|
1907
|
+
this.setState({
|
|
1908
|
+
scrollPos: r
|
|
1909
|
+
});
|
|
1910
|
+
}), S(this, "onScroll", (r) => {
|
|
1911
|
+
this.props.freezePosition || (this.hideScrollThumb(), this.adjustCustomScrollPosToContentPos(r.currentTarget.scrollTop), this.props.onScroll && this.props.onScroll(r));
|
|
1912
|
+
}), S(this, "getScrolledElement", () => this.innerContainerRef.current), S(this, "onMouseDown", (r) => {
|
|
1913
|
+
!this.hasScroll || !this.isMouseEventOnScrollHandle(r) || (this.startDragHandlePos = this.getScrollHandleStyle().top, this.startDragMousePos = r.pageY, this.setState({
|
|
1914
|
+
onDrag: !0
|
|
1915
|
+
}), document.addEventListener("mousemove", this.onHandleDrag, {
|
|
1916
|
+
passive: !1
|
|
1917
|
+
}), document.addEventListener("mouseup", this.onHandleDragEnd, {
|
|
1918
|
+
passive: !1
|
|
1919
|
+
}));
|
|
1920
|
+
}), S(this, "onTouchStart", () => {
|
|
1921
|
+
this.setState({
|
|
1922
|
+
onDrag: !0
|
|
1923
|
+
});
|
|
1924
|
+
}), S(this, "onHandleDrag", (r) => {
|
|
1925
|
+
r.preventDefault();
|
|
1926
|
+
const o = r.pageY - this.startDragMousePos, s = dr(
|
|
1927
|
+
this.startDragHandlePos + o,
|
|
1928
|
+
0,
|
|
1929
|
+
this.visibleHeight - this.scrollHandleHeight
|
|
1930
|
+
), i = this.getScrollValueFromHandlePosition(s);
|
|
1931
|
+
this.updateScrollPosition(i);
|
|
1932
|
+
}), S(this, "onHandleDragEnd", (r) => {
|
|
1933
|
+
this.setState({
|
|
1934
|
+
onDrag: !1
|
|
1935
|
+
}), r.preventDefault(), document.removeEventListener("mousemove", this.onHandleDrag), document.removeEventListener("mouseup", this.onHandleDragEnd);
|
|
1936
|
+
}), S(this, "getInnerContainerClasses", () => this.state.scrollPos && this.props.addScrolledClass ? "rcs-inner-container rcs-content-scrolled" : "rcs-inner-container"), S(this, "getScrollStyles", () => {
|
|
1937
|
+
const r = this.scrollbarYWidth || 20, o = this.props.rtl ? "marginLeft" : "marginRight", s = {
|
|
1938
|
+
height: this.props.heightRelativeToParent || this.props.flex ? "100%" : "",
|
|
1939
|
+
overscrollBehavior: this.props.allowOuterScroll ? "auto" : "none"
|
|
1940
|
+
};
|
|
1941
|
+
s[o] = -1 * r;
|
|
1942
|
+
const i = {
|
|
1943
|
+
height: this.props.heightRelativeToParent || this.props.flex ? "100%" : "",
|
|
1944
|
+
overflowY: this.props.freezePosition ? "hidden" : "visible"
|
|
1945
|
+
};
|
|
1946
|
+
return i[o] = this.scrollbarYWidth ? 0 : r, {
|
|
1947
|
+
innerContainer: s,
|
|
1948
|
+
contentWrapper: i
|
|
1949
|
+
};
|
|
1950
|
+
}), S(this, "getOuterContainerStyle", () => ({
|
|
1951
|
+
height: this.props.heightRelativeToParent || this.props.flex ? "100%" : ""
|
|
1952
|
+
})), S(this, "getRootStyles", () => {
|
|
1953
|
+
const r = {};
|
|
1954
|
+
return this.props.heightRelativeToParent ? r.height = this.props.heightRelativeToParent : this.props.flex && (r.flex = this.props.flex), r;
|
|
1955
|
+
}), S(this, "enforceMinHandleHeight", (r) => {
|
|
1956
|
+
const o = this.props.minScrollHandleHeight || 38;
|
|
1957
|
+
if (r.height >= o)
|
|
1958
|
+
return r;
|
|
1959
|
+
const s = o - r.height, i = this.state.scrollPos / (this.contentHeight - this.visibleHeight), c = s * i, p = r.top - c;
|
|
1960
|
+
return {
|
|
1961
|
+
height: o,
|
|
1962
|
+
top: p
|
|
1963
|
+
};
|
|
1964
|
+
}), S(this, "onMouseEnter", () => {
|
|
1965
|
+
this.setState({ visible: !0 });
|
|
1966
|
+
}), S(this, "onMouseLeave", () => {
|
|
1967
|
+
this.setState({ visible: !1 });
|
|
1968
|
+
}), this.scrollbarYWidth = 0, this.state = {
|
|
1969
|
+
scrollPos: 0,
|
|
1970
|
+
onDrag: !1,
|
|
1971
|
+
visible: !1
|
|
1972
|
+
}, this.hideScrollThumb = Ro(() => {
|
|
1973
|
+
this.setState({
|
|
1974
|
+
onDrag: !1
|
|
1975
|
+
});
|
|
1976
|
+
}, 500);
|
|
1977
|
+
}
|
|
1978
|
+
componentDidMount() {
|
|
1979
|
+
typeof this.props.scrollTo < "u" ? this.updateScrollPosition(this.props.scrollTo) : this.forceUpdate();
|
|
1980
|
+
}
|
|
1981
|
+
componentDidUpdate(t, r) {
|
|
1982
|
+
const o = this.contentHeight, s = this.visibleHeight, i = this.getScrolledElement(), c = r.scrollPos >= o - s;
|
|
1983
|
+
this.contentHeight = i.scrollHeight, this.scrollbarYWidth = i.offsetWidth - i.clientWidth, this.visibleHeight = i.clientHeight, this.scrollRatio = this.contentHeight ? this.visibleHeight / this.contentHeight : 1, this.toggleScrollIfNeeded();
|
|
1984
|
+
const p = this.state === r;
|
|
1985
|
+
(this.props.freezePosition || t.freezePosition) && this.adjustFreezePosition(t), typeof this.props.scrollTo < "u" && this.props.scrollTo !== t.scrollTo ? this.updateScrollPosition(this.props.scrollTo) : this.props.keepAtBottom && p && c && this.updateScrollPosition(this.contentHeight - this.visibleHeight);
|
|
1986
|
+
}
|
|
1987
|
+
componentWillUnmount() {
|
|
1988
|
+
this.hideScrollThumb.cancel(), document.removeEventListener("mousemove", this.onHandleDrag), document.removeEventListener("mouseup", this.onHandleDragEnd);
|
|
1989
|
+
}
|
|
1990
|
+
render() {
|
|
1991
|
+
const t = this.getScrollStyles(), r = this.getRootStyles(), o = this.enforceMinHandleHeight(
|
|
1992
|
+
this.getScrollHandleStyle()
|
|
1993
|
+
), s = [
|
|
1994
|
+
this.props.className || "",
|
|
1995
|
+
"rcs-custom-scroll",
|
|
1996
|
+
this.state.onDrag ? "rcs-scroll-handle-dragged" : ""
|
|
1997
|
+
].join(" ");
|
|
1998
|
+
return /* @__PURE__ */ ce.jsx(
|
|
1999
|
+
Co,
|
|
2000
|
+
{
|
|
2001
|
+
className: s,
|
|
2002
|
+
style: r,
|
|
2003
|
+
ref: this.customScrollRef,
|
|
2004
|
+
children: /* @__PURE__ */ ce.jsxs(
|
|
2005
|
+
"div",
|
|
2006
|
+
{
|
|
2007
|
+
"data-testid": "outer-container",
|
|
2008
|
+
className: "rcs-outer-container",
|
|
2009
|
+
style: this.getOuterContainerStyle(),
|
|
2010
|
+
onMouseDown: this.onMouseDown,
|
|
2011
|
+
onTouchStart: this.onTouchStart,
|
|
2012
|
+
onClick: this.onClick,
|
|
2013
|
+
onMouseEnter: this.onMouseEnter,
|
|
2014
|
+
onMouseLeave: this.onMouseLeave,
|
|
2015
|
+
children: [
|
|
2016
|
+
this.hasScroll ? /* @__PURE__ */ ce.jsx("div", { className: "rcs-positioning", children: /* @__PURE__ */ ce.jsx(
|
|
2017
|
+
zr,
|
|
2018
|
+
{
|
|
2019
|
+
"data-testid": "custom-scrollbar",
|
|
2020
|
+
ref: this.customScrollbarRef,
|
|
2021
|
+
className: `rcs-custom-scrollbar ${this.props.rtl ? "rcs-custom-scrollbar-rtl" : ""} ${this.state.visible ? "scroll-visible" : ""}`,
|
|
2022
|
+
children: /* @__PURE__ */ ce.jsx(
|
|
2023
|
+
"div",
|
|
2024
|
+
{
|
|
2025
|
+
"data-testid": "custom-scroll-handle",
|
|
2026
|
+
ref: this.scrollHandleRef,
|
|
2027
|
+
className: "rcs-custom-scroll-handle",
|
|
2028
|
+
style: o,
|
|
2029
|
+
children: /* @__PURE__ */ ce.jsx(
|
|
2030
|
+
_o,
|
|
2031
|
+
{
|
|
2032
|
+
className: this.props.handleClass || "rcs-inner-handle"
|
|
2033
|
+
}
|
|
2034
|
+
)
|
|
2035
|
+
}
|
|
2036
|
+
)
|
|
2037
|
+
},
|
|
2038
|
+
"scrollbar"
|
|
2039
|
+
) }) : null,
|
|
2040
|
+
/* @__PURE__ */ ce.jsx(
|
|
2041
|
+
"div",
|
|
2042
|
+
{
|
|
2043
|
+
"data-testid": "inner-container",
|
|
2044
|
+
ref: this.innerContainerRef,
|
|
2045
|
+
className: this.getInnerContainerClasses(),
|
|
2046
|
+
style: t.innerContainer,
|
|
2047
|
+
onScroll: this.onScroll,
|
|
2048
|
+
children: /* @__PURE__ */ ce.jsx(
|
|
2049
|
+
"div",
|
|
2050
|
+
{
|
|
2051
|
+
ref: this.contentWrapperRef,
|
|
2052
|
+
style: t.contentWrapper,
|
|
2053
|
+
children: this.props.children
|
|
2054
|
+
}
|
|
2055
|
+
)
|
|
2056
|
+
}
|
|
2057
|
+
)
|
|
2058
|
+
]
|
|
2059
|
+
}
|
|
2060
|
+
)
|
|
2061
|
+
}
|
|
2062
|
+
);
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
export {
|
|
2066
|
+
Oo as A
|
|
2067
|
+
};
|