@redhat-cloud-services/frontend-components-config-utilities 2.0.0 → 2.0.2

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.
Files changed (131) hide show
  1. package/federated-modules.js +1 -1
  2. package/package.json +1 -1
  3. package/repos/insights-chrome-build/58231b16fdee45a03a4ee3cf94a9f2c3 +0 -73
  4. package/repos/insights-chrome-build/app.info.deps.json +0 -1
  5. package/repos/insights-chrome-build/app.info.json +0 -14
  6. package/repos/insights-chrome-build/index.html +0 -29
  7. package/repos/insights-chrome-build/js/00e10699d4604274.woff2 +0 -0
  8. package/repos/insights-chrome-build/js/03be9971fdd08ef3.woff2 +0 -0
  9. package/repos/insights-chrome-build/js/05294d67f8e33aab.woff2 +0 -0
  10. package/repos/insights-chrome-build/js/091b27e83c831713.woff2 +0 -0
  11. package/repos/insights-chrome-build/js/0d54864d782470c6.woff +0 -0
  12. package/repos/insights-chrome-build/js/0d5f5f4e3bbf47e1.woff2 +0 -0
  13. package/repos/insights-chrome-build/js/1039d3d8000f2c4b.woff +0 -0
  14. package/repos/insights-chrome-build/js/13f6558f31b2ee0f.woff2 +0 -0
  15. package/repos/insights-chrome-build/js/1412957e204a8a1a.woff +0 -0
  16. package/repos/insights-chrome-build/js/17802e9fb8c2dd3c.woff +0 -0
  17. package/repos/insights-chrome-build/js/1be1bd18c67d1ac8.woff +0 -0
  18. package/repos/insights-chrome-build/js/26409b4397ab88cc.woff2 +0 -0
  19. package/repos/insights-chrome-build/js/278473d290fcbf3b.woff2 +0 -0
  20. package/repos/insights-chrome-build/js/2a96d5b208c56fa6.woff +0 -0
  21. package/repos/insights-chrome-build/js/2baac3a5d7ab7a15.woff2 +0 -0
  22. package/repos/insights-chrome-build/js/316d3d41de174f24.woff +0 -0
  23. package/repos/insights-chrome-build/js/3239d74dcb174610.woff2 +0 -0
  24. package/repos/insights-chrome-build/js/326f107b61d32769.woff +0 -0
  25. package/repos/insights-chrome-build/js/49ee635c956449ea.woff2 +0 -0
  26. package/repos/insights-chrome-build/js/4ace320f5eaa7ee9.woff2 +0 -0
  27. package/repos/insights-chrome-build/js/4b0d8eeb01c2f27e.woff2 +0 -0
  28. package/repos/insights-chrome-build/js/4df2ca3d94d759b3.svg +0 -515
  29. package/repos/insights-chrome-build/js/52f482efb5487bba.woff2 +0 -0
  30. package/repos/insights-chrome-build/js/64b9a14b3398824f.woff2 +0 -0
  31. package/repos/insights-chrome-build/js/66309a34eac8b284.woff2 +0 -0
  32. package/repos/insights-chrome-build/js/6e30b223886d1eef.woff2 +0 -0
  33. package/repos/insights-chrome-build/js/6fb4e4e104bb886f.woff2 +0 -0
  34. package/repos/insights-chrome-build/js/703c721f27900006.woff +0 -0
  35. package/repos/insights-chrome-build/js/79c835ddc356c3ef.woff +0 -0
  36. package/repos/insights-chrome-build/js/7a0809e40bf8e79a.woff +0 -0
  37. package/repos/insights-chrome-build/js/7a9fb47c5b35e50d.woff2 +0 -0
  38. package/repos/insights-chrome-build/js/7bb3ddb0583cc7a5.woff +0 -0
  39. package/repos/insights-chrome-build/js/7bf300b28414f3ad.woff +0 -0
  40. package/repos/insights-chrome-build/js/7d9b027229967149.woff2 +0 -0
  41. package/repos/insights-chrome-build/js/81245ab8c867ea09.woff +0 -0
  42. package/repos/insights-chrome-build/js/830dcb2cc707ae4c.woff +0 -0
  43. package/repos/insights-chrome-build/js/835112a9ba0d676e.woff +0 -0
  44. package/repos/insights-chrome-build/js/8f3e80eba644e3ec.svg +0 -33
  45. package/repos/insights-chrome-build/js/8f765508913b945e.woff2 +0 -0
  46. package/repos/insights-chrome-build/js/91bbac2b6e0eb739.woff +0 -0
  47. package/repos/insights-chrome-build/js/96971d99ef5f2ef7.woff2 +0 -0
  48. package/repos/insights-chrome-build/js/_c74b-_e0c3-_9cf0-_3467-_8add-_2900-_a7bc-_70d9-_eea3-_8afc-_d73e-_1a3c-_2385-_85ca-_5c4f-_0f-35898c0.b3f9836f62184986.js +0 -943
  49. package/repos/insights-chrome-build/js/_c74b-_e0c3-_9cf0-_3467-_8add-_2900-_a7bc-_70d9-_eea3-_8afc-_d73e-_1a3c-_2385-_85ca-_5c4f-_0f-35898c1.b3f9836f62184986.js +0 -943
  50. package/repos/insights-chrome-build/js/a14c79bac597c758.woff +0 -0
  51. package/repos/insights-chrome-build/js/a86c2bca47a21ff0.woff2 +0 -0
  52. package/repos/insights-chrome-build/js/ad4d1e278d4d13cb.woff +0 -0
  53. package/repos/insights-chrome-build/js/ajs-destination.b3f9836f62184986.js +0 -594
  54. package/repos/insights-chrome-build/js/auto-track.b3f9836f62184986.js +0 -122
  55. package/repos/insights-chrome-build/js/b0ebda5f4f12f761.woff2 +0 -0
  56. package/repos/insights-chrome-build/js/b97a3321aaf7e87a.woff2 +0 -0
  57. package/repos/insights-chrome-build/js/ba04b02b7da08f3d.woff2 +0 -0
  58. package/repos/insights-chrome-build/js/bb85876a67d3e7e7.woff2 +0 -0
  59. package/repos/insights-chrome-build/js/bbe18aee9c88166d.woff +0 -0
  60. package/repos/insights-chrome-build/js/c3ab7be4146884a3.woff2 +0 -0
  61. package/repos/insights-chrome-build/js/c49edc34d14553e4.woff +0 -0
  62. package/repos/insights-chrome-build/js/c8b06bb52b20081e.woff2 +0 -0
  63. package/repos/insights-chrome-build/js/c99e50723fcf0166.woff +0 -0
  64. package/repos/insights-chrome-build/js/cb827f53cc6d6dcf.woff2 +0 -0
  65. package/repos/insights-chrome-build/js/cd1824ff99b9ef33.woff2 +0 -0
  66. package/repos/insights-chrome-build/js/ce63a8f6be94c7cd.woff2 +0 -0
  67. package/repos/insights-chrome-build/js/chrome-root.b3f9836f62184986.js +0 -43326
  68. package/repos/insights-chrome-build/js/chrome.b3f9836f62184986.js +0 -33007
  69. package/repos/insights-chrome-build/js/d004dc9f8c955767.woff2 +0 -0
  70. package/repos/insights-chrome-build/js/d19c89c249d7f751.woff2 +0 -0
  71. package/repos/insights-chrome-build/js/d2a095f5996e5014.woff2 +0 -0
  72. package/repos/insights-chrome-build/js/d2ce043298f5c972.woff +0 -0
  73. package/repos/insights-chrome-build/js/d2cf7e795db09bc7.woff +0 -0
  74. package/repos/insights-chrome-build/js/d6083bde9a964ab4.svg +0 -96
  75. package/repos/insights-chrome-build/js/dd18fb6c0b7048e8.woff2 +0 -0
  76. package/repos/insights-chrome-build/js/df8a52d2494e1e03.woff2 +0 -0
  77. package/repos/insights-chrome-build/js/e5c7a27047a83d24.woff2 +0 -0
  78. package/repos/insights-chrome-build/js/e693e4f9d9c75499.woff2 +0 -0
  79. package/repos/insights-chrome-build/js/e8ec1c41a82bd354.woff +0 -0
  80. package/repos/insights-chrome-build/js/f66882bad34e5c9f.woff +0 -0
  81. package/repos/insights-chrome-build/js/f830d4d01f5e4497.woff +0 -0
  82. package/repos/insights-chrome-build/js/fed-mods.json +0 -15
  83. package/repos/insights-chrome-build/js/legacyVideos.b3f9836f62184986.js +0 -41
  84. package/repos/insights-chrome-build/js/main.b3f9836f62184986.css +0 -51216
  85. package/repos/insights-chrome-build/js/node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js.b3f9836f62184986.js +0 -323
  86. package/repos/insights-chrome-build/js/node_modules_lodash_isEqual_js.b3f9836f62184986.js +0 -48
  87. package/repos/insights-chrome-build/js/node_modules_patternfly_react-icons_dist_js_icons_bars-icon_js-node_modules_patternfly_react--0a3495.b3f9836f62184986.js +0 -242
  88. package/repos/insights-chrome-build/js/queryString.b3f9836f62184986.js +0 -128
  89. package/repos/insights-chrome-build/js/quick-start.b3f9836f62184986.js +0 -47
  90. package/repos/insights-chrome-build/js/remoteMiddleware.b3f9836f62184986.js +0 -87
  91. package/repos/insights-chrome-build/js/schemaFilter.b3f9836f62184986.js +0 -111
  92. package/repos/insights-chrome-build/js/src_bootstrap_tsx-src_moduleOverrides_unfetch_ts-node_modules_redhat-cloud-services_frontend--275e6e.b3f9836f62184986.css +0 -27041
  93. package/repos/insights-chrome-build/js/src_bootstrap_tsx-src_moduleOverrides_unfetch_ts-node_modules_redhat-cloud-services_frontend--275e6e.b3f9836f62184986.js +0 -20468
  94. package/repos/insights-chrome-build/js/src_components_Debugger_index_ts.b3f9836f62184986.css +0 -52
  95. package/repos/insights-chrome-build/js/src_components_Debugger_index_ts.b3f9836f62184986.js +0 -512
  96. package/repos/insights-chrome-build/js/src_components_FavoriteServices_EmptyState_tsx-src_hooks_useFavoritedServices_ts.b3f9836f62184986.css +0 -8664
  97. package/repos/insights-chrome-build/js/src_components_FavoriteServices_EmptyState_tsx-src_hooks_useFavoritedServices_ts.b3f9836f62184986.js +0 -5098
  98. package/repos/insights-chrome-build/js/src_components_FavoriteServices_LandingNavFavorites_tsx-src_utils_common_ts.b3f9836f62184986.css +0 -8662
  99. package/repos/insights-chrome-build/js/src_components_FavoriteServices_LandingNavFavorites_tsx-src_utils_common_ts.b3f9836f62184986.js +0 -898
  100. package/repos/insights-chrome-build/js/src_components_NotEntitledModal_index_tsx.b3f9836f62184986.css +0 -30
  101. package/repos/insights-chrome-build/js/src_components_NotEntitledModal_index_tsx.b3f9836f62184986.js +0 -237
  102. package/repos/insights-chrome-build/js/src_components_QuickstartsCatalogRoute_index_ts.b3f9836f62184986.js +0 -106
  103. package/repos/insights-chrome-build/js/src_components_Stratosphere_ProductSelection_tsx.b3f9836f62184986.css +0 -17513
  104. package/repos/insights-chrome-build/js/src_components_Stratosphere_ProductSelection_tsx.b3f9836f62184986.js +0 -335
  105. package/repos/insights-chrome-build/js/src_moduleOverrides_chart-utils-override_js-src_pdf_DownloadButton_tsx-webpack_sharing_consum-3a44a6.b3f9836f62184986.js +0 -91
  106. package/repos/insights-chrome-build/js/tsub-middleware.b3f9836f62184986.js +0 -6836
  107. package/repos/insights-chrome-build/js/vendors-node_modules_buffer_index_js-node_modules_lodash__baseFlatten_js-node_modules_lodash_-1de864.b3f9836f62184986.js +0 -2552
  108. package/repos/insights-chrome-build/js/vendors-node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js-node_modules-c053fb.b3f9836f62184986.js +0 -1761
  109. package/repos/insights-chrome-build/js/vendors-node_modules_inherits_inherits_browser_js-node_modules_lodash__baseMerge_js-node_modu-5ed1a1.b3f9836f62184986.js +0 -1113
  110. package/repos/insights-chrome-build/js/vendors-node_modules_lodash__baseForOwn_js-node_modules_lodash__baseIteratee_js-node_modules_-167437.b3f9836f62184986.js +0 -1289
  111. package/repos/insights-chrome-build/js/vendors-node_modules_lodash__baseIsEqual_js.b3f9836f62184986.js +0 -3148
  112. package/repos/insights-chrome-build/js/vendors-node_modules_openshift_dynamic-plugin-sdk_dist_index_js.b3f9836f62184986.js +0 -17197
  113. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_quickstarts_dist_index_es_js.b3f9836f62184986.js +0 -13149
  114. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-charts_dist_esm_components_ChartUtils_chart-theme_js-no-998b15.b3f9836f62184986.js +0 -166192
  115. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_dist_esm_components_Button_Button_js-node_modules_-6763c7.b3f9836f62184986.js +0 -6274
  116. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_dist_esm_index_js.b3f9836f62184986.js +0 -33678
  117. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_next_components_Select_Select_js-node_modules_patt-da466d.b3f9836f62184986.js +0 -4946
  118. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-icons_dist_esm_icons_bell-slash-icon_js-node_modules_pa-6de3ff.b3f9836f62184986.js +0 -74388
  119. package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-icons_dist_esm_icons_star-icon_js-node_modules_axios_in-5a9fd5.b3f9836f62184986.js +0 -2881
  120. package/repos/insights-chrome-build/js/vendors-node_modules_prop-types_index_js.b3f9836f62184986.js +0 -649
  121. package/repos/insights-chrome-build/js/vendors-node_modules_react-redux_es_index_js.b3f9836f62184986.js +0 -2337
  122. package/repos/insights-chrome-build/js/vendors-node_modules_react-router-dom_dist_index_js.b3f9836f62184986.js +0 -6691
  123. package/repos/insights-chrome-build/js/vendors-node_modules_react_jsx-runtime_js.b3f9836f62184986.js +0 -1250
  124. package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_chrome_esm_index_js.b3f9836f62184986.js +0 -708
  125. package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_frontend-components-utilities_esm_interceptors_int-b5fffe.b3f9836f62184986.js +0 -21636
  126. package/repos/insights-chrome-build/js/vendors-node_modules_scalprum_core_dist_esm_index_js.b3f9836f62184986.js +0 -363
  127. package/repos/insights-chrome-build/js/vendors-node_modules_scalprum_react-core_dist_esm_index_js.b3f9836f62184986.js +0 -762
  128. package/repos/insights-chrome-build/js/vendors-node_modules_segment_analytics_js-video-plugins_dist_index_umd_js.b3f9836f62184986.js +0 -13
  129. package/repos/insights-chrome-build/js/vendors-node_modules_tslib_tslib_es6_js.b3f9836f62184986.js +0 -258
  130. package/repos/insights-chrome-build/js/vendors-node_modules_unleash_proxy-client-react_dist_index_browser_js.b3f9836f62184986.js +0 -1821
  131. package/repos/insights-chrome-build/silent-check-sso.html +0 -7
@@ -1,1250 +0,0 @@
1
- "use strict";
2
- (self["webpackChunkinsights_chrome"] = self["webpackChunkinsights_chrome"] || []).push([["vendors-node_modules_react_jsx-runtime_js"],{
3
-
4
- /***/ "./node_modules/react/cjs/react-jsx-runtime.development.js":
5
- /*!*****************************************************************!*\
6
- !*** ./node_modules/react/cjs/react-jsx-runtime.development.js ***!
7
- \*****************************************************************/
8
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
9
-
10
- /** @license React v17.0.2
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */
18
-
19
-
20
-
21
- if (true) {
22
- (function() {
23
- 'use strict';
24
-
25
- var React = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?88de");
26
- var _assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
27
-
28
- // ATTENTION
29
- // When adding new symbols to this file,
30
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
31
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
32
- // nor polyfill, then a plain number is used for performance.
33
- var REACT_ELEMENT_TYPE = 0xeac7;
34
- var REACT_PORTAL_TYPE = 0xeaca;
35
- exports.Fragment = 0xeacb;
36
- var REACT_STRICT_MODE_TYPE = 0xeacc;
37
- var REACT_PROFILER_TYPE = 0xead2;
38
- var REACT_PROVIDER_TYPE = 0xeacd;
39
- var REACT_CONTEXT_TYPE = 0xeace;
40
- var REACT_FORWARD_REF_TYPE = 0xead0;
41
- var REACT_SUSPENSE_TYPE = 0xead1;
42
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
43
- var REACT_MEMO_TYPE = 0xead3;
44
- var REACT_LAZY_TYPE = 0xead4;
45
- var REACT_BLOCK_TYPE = 0xead9;
46
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
47
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
48
- var REACT_SCOPE_TYPE = 0xead7;
49
- var REACT_OPAQUE_ID_TYPE = 0xeae0;
50
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
51
- var REACT_OFFSCREEN_TYPE = 0xeae2;
52
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
53
-
54
- if (typeof Symbol === 'function' && Symbol.for) {
55
- var symbolFor = Symbol.for;
56
- REACT_ELEMENT_TYPE = symbolFor('react.element');
57
- REACT_PORTAL_TYPE = symbolFor('react.portal');
58
- exports.Fragment = symbolFor('react.fragment');
59
- REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
60
- REACT_PROFILER_TYPE = symbolFor('react.profiler');
61
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
62
- REACT_CONTEXT_TYPE = symbolFor('react.context');
63
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
64
- REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
65
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
66
- REACT_MEMO_TYPE = symbolFor('react.memo');
67
- REACT_LAZY_TYPE = symbolFor('react.lazy');
68
- REACT_BLOCK_TYPE = symbolFor('react.block');
69
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
70
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
71
- REACT_SCOPE_TYPE = symbolFor('react.scope');
72
- REACT_OPAQUE_ID_TYPE = symbolFor('react.opaque.id');
73
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
74
- REACT_OFFSCREEN_TYPE = symbolFor('react.offscreen');
75
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
76
- }
77
-
78
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
79
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
80
- function getIteratorFn(maybeIterable) {
81
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
82
- return null;
83
- }
84
-
85
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
86
-
87
- if (typeof maybeIterator === 'function') {
88
- return maybeIterator;
89
- }
90
-
91
- return null;
92
- }
93
-
94
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
95
-
96
- function error(format) {
97
- {
98
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
99
- args[_key2 - 1] = arguments[_key2];
100
- }
101
-
102
- printWarning('error', format, args);
103
- }
104
- }
105
-
106
- function printWarning(level, format, args) {
107
- // When changing this logic, you might want to also
108
- // update consoleWithStackDev.www.js as well.
109
- {
110
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
111
- var stack = ReactDebugCurrentFrame.getStackAddendum();
112
-
113
- if (stack !== '') {
114
- format += '%s';
115
- args = args.concat([stack]);
116
- }
117
-
118
- var argsWithFormat = args.map(function (item) {
119
- return '' + item;
120
- }); // Careful: RN currently depends on this prefix
121
-
122
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
123
- // breaks IE9: https://github.com/facebook/react/issues/13610
124
- // eslint-disable-next-line react-internal/no-production-logging
125
-
126
- Function.prototype.apply.call(console[level], console, argsWithFormat);
127
- }
128
- }
129
-
130
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
131
-
132
- var enableScopeAPI = false; // Experimental Create Event Handle API.
133
-
134
- function isValidElementType(type) {
135
- if (typeof type === 'string' || typeof type === 'function') {
136
- return true;
137
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
138
-
139
-
140
- if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
141
- return true;
142
- }
143
-
144
- if (typeof type === 'object' && type !== null) {
145
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
146
- return true;
147
- }
148
- }
149
-
150
- return false;
151
- }
152
-
153
- function getWrappedName(outerType, innerType, wrapperName) {
154
- var functionName = innerType.displayName || innerType.name || '';
155
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
156
- }
157
-
158
- function getContextName(type) {
159
- return type.displayName || 'Context';
160
- }
161
-
162
- function getComponentName(type) {
163
- if (type == null) {
164
- // Host root, text node or just invalid type.
165
- return null;
166
- }
167
-
168
- {
169
- if (typeof type.tag === 'number') {
170
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
171
- }
172
- }
173
-
174
- if (typeof type === 'function') {
175
- return type.displayName || type.name || null;
176
- }
177
-
178
- if (typeof type === 'string') {
179
- return type;
180
- }
181
-
182
- switch (type) {
183
- case exports.Fragment:
184
- return 'Fragment';
185
-
186
- case REACT_PORTAL_TYPE:
187
- return 'Portal';
188
-
189
- case REACT_PROFILER_TYPE:
190
- return 'Profiler';
191
-
192
- case REACT_STRICT_MODE_TYPE:
193
- return 'StrictMode';
194
-
195
- case REACT_SUSPENSE_TYPE:
196
- return 'Suspense';
197
-
198
- case REACT_SUSPENSE_LIST_TYPE:
199
- return 'SuspenseList';
200
- }
201
-
202
- if (typeof type === 'object') {
203
- switch (type.$$typeof) {
204
- case REACT_CONTEXT_TYPE:
205
- var context = type;
206
- return getContextName(context) + '.Consumer';
207
-
208
- case REACT_PROVIDER_TYPE:
209
- var provider = type;
210
- return getContextName(provider._context) + '.Provider';
211
-
212
- case REACT_FORWARD_REF_TYPE:
213
- return getWrappedName(type, type.render, 'ForwardRef');
214
-
215
- case REACT_MEMO_TYPE:
216
- return getComponentName(type.type);
217
-
218
- case REACT_BLOCK_TYPE:
219
- return getComponentName(type._render);
220
-
221
- case REACT_LAZY_TYPE:
222
- {
223
- var lazyComponent = type;
224
- var payload = lazyComponent._payload;
225
- var init = lazyComponent._init;
226
-
227
- try {
228
- return getComponentName(init(payload));
229
- } catch (x) {
230
- return null;
231
- }
232
- }
233
- }
234
- }
235
-
236
- return null;
237
- }
238
-
239
- // Helpers to patch console.logs to avoid logging during side-effect free
240
- // replaying on render function. This currently only patches the object
241
- // lazily which won't cover if the log function was extracted eagerly.
242
- // We could also eagerly patch the method.
243
- var disabledDepth = 0;
244
- var prevLog;
245
- var prevInfo;
246
- var prevWarn;
247
- var prevError;
248
- var prevGroup;
249
- var prevGroupCollapsed;
250
- var prevGroupEnd;
251
-
252
- function disabledLog() {}
253
-
254
- disabledLog.__reactDisabledLog = true;
255
- function disableLogs() {
256
- {
257
- if (disabledDepth === 0) {
258
- /* eslint-disable react-internal/no-production-logging */
259
- prevLog = console.log;
260
- prevInfo = console.info;
261
- prevWarn = console.warn;
262
- prevError = console.error;
263
- prevGroup = console.group;
264
- prevGroupCollapsed = console.groupCollapsed;
265
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
266
-
267
- var props = {
268
- configurable: true,
269
- enumerable: true,
270
- value: disabledLog,
271
- writable: true
272
- }; // $FlowFixMe Flow thinks console is immutable.
273
-
274
- Object.defineProperties(console, {
275
- info: props,
276
- log: props,
277
- warn: props,
278
- error: props,
279
- group: props,
280
- groupCollapsed: props,
281
- groupEnd: props
282
- });
283
- /* eslint-enable react-internal/no-production-logging */
284
- }
285
-
286
- disabledDepth++;
287
- }
288
- }
289
- function reenableLogs() {
290
- {
291
- disabledDepth--;
292
-
293
- if (disabledDepth === 0) {
294
- /* eslint-disable react-internal/no-production-logging */
295
- var props = {
296
- configurable: true,
297
- enumerable: true,
298
- writable: true
299
- }; // $FlowFixMe Flow thinks console is immutable.
300
-
301
- Object.defineProperties(console, {
302
- log: _assign({}, props, {
303
- value: prevLog
304
- }),
305
- info: _assign({}, props, {
306
- value: prevInfo
307
- }),
308
- warn: _assign({}, props, {
309
- value: prevWarn
310
- }),
311
- error: _assign({}, props, {
312
- value: prevError
313
- }),
314
- group: _assign({}, props, {
315
- value: prevGroup
316
- }),
317
- groupCollapsed: _assign({}, props, {
318
- value: prevGroupCollapsed
319
- }),
320
- groupEnd: _assign({}, props, {
321
- value: prevGroupEnd
322
- })
323
- });
324
- /* eslint-enable react-internal/no-production-logging */
325
- }
326
-
327
- if (disabledDepth < 0) {
328
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
329
- }
330
- }
331
- }
332
-
333
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
334
- var prefix;
335
- function describeBuiltInComponentFrame(name, source, ownerFn) {
336
- {
337
- if (prefix === undefined) {
338
- // Extract the VM specific prefix used by each line.
339
- try {
340
- throw Error();
341
- } catch (x) {
342
- var match = x.stack.trim().match(/\n( *(at )?)/);
343
- prefix = match && match[1] || '';
344
- }
345
- } // We use the prefix to ensure our stacks line up with native stack frames.
346
-
347
-
348
- return '\n' + prefix + name;
349
- }
350
- }
351
- var reentry = false;
352
- var componentFrameCache;
353
-
354
- {
355
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
356
- componentFrameCache = new PossiblyWeakMap();
357
- }
358
-
359
- function describeNativeComponentFrame(fn, construct) {
360
- // If something asked for a stack inside a fake render, it should get ignored.
361
- if (!fn || reentry) {
362
- return '';
363
- }
364
-
365
- {
366
- var frame = componentFrameCache.get(fn);
367
-
368
- if (frame !== undefined) {
369
- return frame;
370
- }
371
- }
372
-
373
- var control;
374
- reentry = true;
375
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
376
-
377
- Error.prepareStackTrace = undefined;
378
- var previousDispatcher;
379
-
380
- {
381
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
382
- // for warnings.
383
-
384
- ReactCurrentDispatcher.current = null;
385
- disableLogs();
386
- }
387
-
388
- try {
389
- // This should throw.
390
- if (construct) {
391
- // Something should be setting the props in the constructor.
392
- var Fake = function () {
393
- throw Error();
394
- }; // $FlowFixMe
395
-
396
-
397
- Object.defineProperty(Fake.prototype, 'props', {
398
- set: function () {
399
- // We use a throwing setter instead of frozen or non-writable props
400
- // because that won't throw in a non-strict mode function.
401
- throw Error();
402
- }
403
- });
404
-
405
- if (typeof Reflect === 'object' && Reflect.construct) {
406
- // We construct a different control for this case to include any extra
407
- // frames added by the construct call.
408
- try {
409
- Reflect.construct(Fake, []);
410
- } catch (x) {
411
- control = x;
412
- }
413
-
414
- Reflect.construct(fn, [], Fake);
415
- } else {
416
- try {
417
- Fake.call();
418
- } catch (x) {
419
- control = x;
420
- }
421
-
422
- fn.call(Fake.prototype);
423
- }
424
- } else {
425
- try {
426
- throw Error();
427
- } catch (x) {
428
- control = x;
429
- }
430
-
431
- fn();
432
- }
433
- } catch (sample) {
434
- // This is inlined manually because closure doesn't do it for us.
435
- if (sample && control && typeof sample.stack === 'string') {
436
- // This extracts the first frame from the sample that isn't also in the control.
437
- // Skipping one frame that we assume is the frame that calls the two.
438
- var sampleLines = sample.stack.split('\n');
439
- var controlLines = control.stack.split('\n');
440
- var s = sampleLines.length - 1;
441
- var c = controlLines.length - 1;
442
-
443
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
444
- // We expect at least one stack frame to be shared.
445
- // Typically this will be the root most one. However, stack frames may be
446
- // cut off due to maximum stack limits. In this case, one maybe cut off
447
- // earlier than the other. We assume that the sample is longer or the same
448
- // and there for cut off earlier. So we should find the root most frame in
449
- // the sample somewhere in the control.
450
- c--;
451
- }
452
-
453
- for (; s >= 1 && c >= 0; s--, c--) {
454
- // Next we find the first one that isn't the same which should be the
455
- // frame that called our sample function and the control.
456
- if (sampleLines[s] !== controlLines[c]) {
457
- // In V8, the first line is describing the message but other VMs don't.
458
- // If we're about to return the first line, and the control is also on the same
459
- // line, that's a pretty good indicator that our sample threw at same line as
460
- // the control. I.e. before we entered the sample frame. So we ignore this result.
461
- // This can happen if you passed a class to function component, or non-function.
462
- if (s !== 1 || c !== 1) {
463
- do {
464
- s--;
465
- c--; // We may still have similar intermediate frames from the construct call.
466
- // The next one that isn't the same should be our match though.
467
-
468
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
469
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
470
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
471
-
472
- {
473
- if (typeof fn === 'function') {
474
- componentFrameCache.set(fn, _frame);
475
- }
476
- } // Return the line we found.
477
-
478
-
479
- return _frame;
480
- }
481
- } while (s >= 1 && c >= 0);
482
- }
483
-
484
- break;
485
- }
486
- }
487
- }
488
- } finally {
489
- reentry = false;
490
-
491
- {
492
- ReactCurrentDispatcher.current = previousDispatcher;
493
- reenableLogs();
494
- }
495
-
496
- Error.prepareStackTrace = previousPrepareStackTrace;
497
- } // Fallback to just using the name if we couldn't make it throw.
498
-
499
-
500
- var name = fn ? fn.displayName || fn.name : '';
501
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
502
-
503
- {
504
- if (typeof fn === 'function') {
505
- componentFrameCache.set(fn, syntheticFrame);
506
- }
507
- }
508
-
509
- return syntheticFrame;
510
- }
511
- function describeFunctionComponentFrame(fn, source, ownerFn) {
512
- {
513
- return describeNativeComponentFrame(fn, false);
514
- }
515
- }
516
-
517
- function shouldConstruct(Component) {
518
- var prototype = Component.prototype;
519
- return !!(prototype && prototype.isReactComponent);
520
- }
521
-
522
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
523
-
524
- if (type == null) {
525
- return '';
526
- }
527
-
528
- if (typeof type === 'function') {
529
- {
530
- return describeNativeComponentFrame(type, shouldConstruct(type));
531
- }
532
- }
533
-
534
- if (typeof type === 'string') {
535
- return describeBuiltInComponentFrame(type);
536
- }
537
-
538
- switch (type) {
539
- case REACT_SUSPENSE_TYPE:
540
- return describeBuiltInComponentFrame('Suspense');
541
-
542
- case REACT_SUSPENSE_LIST_TYPE:
543
- return describeBuiltInComponentFrame('SuspenseList');
544
- }
545
-
546
- if (typeof type === 'object') {
547
- switch (type.$$typeof) {
548
- case REACT_FORWARD_REF_TYPE:
549
- return describeFunctionComponentFrame(type.render);
550
-
551
- case REACT_MEMO_TYPE:
552
- // Memo may contain any component type so we recursively resolve it.
553
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
554
-
555
- case REACT_BLOCK_TYPE:
556
- return describeFunctionComponentFrame(type._render);
557
-
558
- case REACT_LAZY_TYPE:
559
- {
560
- var lazyComponent = type;
561
- var payload = lazyComponent._payload;
562
- var init = lazyComponent._init;
563
-
564
- try {
565
- // Lazy may contain any component type so we recursively resolve it.
566
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
567
- } catch (x) {}
568
- }
569
- }
570
- }
571
-
572
- return '';
573
- }
574
-
575
- var loggedTypeFailures = {};
576
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
577
-
578
- function setCurrentlyValidatingElement(element) {
579
- {
580
- if (element) {
581
- var owner = element._owner;
582
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
583
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
584
- } else {
585
- ReactDebugCurrentFrame.setExtraStackFrame(null);
586
- }
587
- }
588
- }
589
-
590
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
591
- {
592
- // $FlowFixMe This is okay but Flow doesn't know it.
593
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
594
-
595
- for (var typeSpecName in typeSpecs) {
596
- if (has(typeSpecs, typeSpecName)) {
597
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
598
- // fail the render phase where it didn't fail before. So we log it.
599
- // After these have been cleaned up, we'll let them throw.
600
-
601
- try {
602
- // This is intentionally an invariant that gets caught. It's the same
603
- // behavior as without this statement except with a better message.
604
- if (typeof typeSpecs[typeSpecName] !== 'function') {
605
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
606
- err.name = 'Invariant Violation';
607
- throw err;
608
- }
609
-
610
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
611
- } catch (ex) {
612
- error$1 = ex;
613
- }
614
-
615
- if (error$1 && !(error$1 instanceof Error)) {
616
- setCurrentlyValidatingElement(element);
617
-
618
- error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);
619
-
620
- setCurrentlyValidatingElement(null);
621
- }
622
-
623
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
624
- // Only monitor this failure once because there tends to be a lot of the
625
- // same error.
626
- loggedTypeFailures[error$1.message] = true;
627
- setCurrentlyValidatingElement(element);
628
-
629
- error('Failed %s type: %s', location, error$1.message);
630
-
631
- setCurrentlyValidatingElement(null);
632
- }
633
- }
634
- }
635
- }
636
- }
637
-
638
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
639
- var hasOwnProperty = Object.prototype.hasOwnProperty;
640
- var RESERVED_PROPS = {
641
- key: true,
642
- ref: true,
643
- __self: true,
644
- __source: true
645
- };
646
- var specialPropKeyWarningShown;
647
- var specialPropRefWarningShown;
648
- var didWarnAboutStringRefs;
649
-
650
- {
651
- didWarnAboutStringRefs = {};
652
- }
653
-
654
- function hasValidRef(config) {
655
- {
656
- if (hasOwnProperty.call(config, 'ref')) {
657
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
658
-
659
- if (getter && getter.isReactWarning) {
660
- return false;
661
- }
662
- }
663
- }
664
-
665
- return config.ref !== undefined;
666
- }
667
-
668
- function hasValidKey(config) {
669
- {
670
- if (hasOwnProperty.call(config, 'key')) {
671
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
672
-
673
- if (getter && getter.isReactWarning) {
674
- return false;
675
- }
676
- }
677
- }
678
-
679
- return config.key !== undefined;
680
- }
681
-
682
- function warnIfStringRefCannotBeAutoConverted(config, self) {
683
- {
684
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
685
- var componentName = getComponentName(ReactCurrentOwner.current.type);
686
-
687
- if (!didWarnAboutStringRefs[componentName]) {
688
- error('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', getComponentName(ReactCurrentOwner.current.type), config.ref);
689
-
690
- didWarnAboutStringRefs[componentName] = true;
691
- }
692
- }
693
- }
694
- }
695
-
696
- function defineKeyPropWarningGetter(props, displayName) {
697
- {
698
- var warnAboutAccessingKey = function () {
699
- if (!specialPropKeyWarningShown) {
700
- specialPropKeyWarningShown = true;
701
-
702
- error('%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)', displayName);
703
- }
704
- };
705
-
706
- warnAboutAccessingKey.isReactWarning = true;
707
- Object.defineProperty(props, 'key', {
708
- get: warnAboutAccessingKey,
709
- configurable: true
710
- });
711
- }
712
- }
713
-
714
- function defineRefPropWarningGetter(props, displayName) {
715
- {
716
- var warnAboutAccessingRef = function () {
717
- if (!specialPropRefWarningShown) {
718
- specialPropRefWarningShown = true;
719
-
720
- error('%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)', displayName);
721
- }
722
- };
723
-
724
- warnAboutAccessingRef.isReactWarning = true;
725
- Object.defineProperty(props, 'ref', {
726
- get: warnAboutAccessingRef,
727
- configurable: true
728
- });
729
- }
730
- }
731
- /**
732
- * Factory method to create a new React element. This no longer adheres to
733
- * the class pattern, so do not use new to call it. Also, instanceof check
734
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
735
- * if something is a React Element.
736
- *
737
- * @param {*} type
738
- * @param {*} props
739
- * @param {*} key
740
- * @param {string|object} ref
741
- * @param {*} owner
742
- * @param {*} self A *temporary* helper to detect places where `this` is
743
- * different from the `owner` when React.createElement is called, so that we
744
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
745
- * functions, and as long as `this` and owner are the same, there will be no
746
- * change in behavior.
747
- * @param {*} source An annotation object (added by a transpiler or otherwise)
748
- * indicating filename, line number, and/or other information.
749
- * @internal
750
- */
751
-
752
-
753
- var ReactElement = function (type, key, ref, self, source, owner, props) {
754
- var element = {
755
- // This tag allows us to uniquely identify this as a React Element
756
- $$typeof: REACT_ELEMENT_TYPE,
757
- // Built-in properties that belong on the element
758
- type: type,
759
- key: key,
760
- ref: ref,
761
- props: props,
762
- // Record the component responsible for creating this element.
763
- _owner: owner
764
- };
765
-
766
- {
767
- // The validation flag is currently mutative. We put it on
768
- // an external backing store so that we can freeze the whole object.
769
- // This can be replaced with a WeakMap once they are implemented in
770
- // commonly used development environments.
771
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
772
- // the validation flag non-enumerable (where possible, which should
773
- // include every environment we run tests in), so the test framework
774
- // ignores it.
775
-
776
- Object.defineProperty(element._store, 'validated', {
777
- configurable: false,
778
- enumerable: false,
779
- writable: true,
780
- value: false
781
- }); // self and source are DEV only properties.
782
-
783
- Object.defineProperty(element, '_self', {
784
- configurable: false,
785
- enumerable: false,
786
- writable: false,
787
- value: self
788
- }); // Two elements created in two different places should be considered
789
- // equal for testing purposes and therefore we hide it from enumeration.
790
-
791
- Object.defineProperty(element, '_source', {
792
- configurable: false,
793
- enumerable: false,
794
- writable: false,
795
- value: source
796
- });
797
-
798
- if (Object.freeze) {
799
- Object.freeze(element.props);
800
- Object.freeze(element);
801
- }
802
- }
803
-
804
- return element;
805
- };
806
- /**
807
- * https://github.com/reactjs/rfcs/pull/107
808
- * @param {*} type
809
- * @param {object} props
810
- * @param {string} key
811
- */
812
-
813
- function jsxDEV(type, config, maybeKey, source, self) {
814
- {
815
- var propName; // Reserved names are extracted
816
-
817
- var props = {};
818
- var key = null;
819
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
820
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
821
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
822
- // but as an intermediary step, we will use jsxDEV for everything except
823
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
824
- // key is explicitly declared to be undefined or not.
825
-
826
- if (maybeKey !== undefined) {
827
- key = '' + maybeKey;
828
- }
829
-
830
- if (hasValidKey(config)) {
831
- key = '' + config.key;
832
- }
833
-
834
- if (hasValidRef(config)) {
835
- ref = config.ref;
836
- warnIfStringRefCannotBeAutoConverted(config, self);
837
- } // Remaining properties are added to a new props object
838
-
839
-
840
- for (propName in config) {
841
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
842
- props[propName] = config[propName];
843
- }
844
- } // Resolve default props
845
-
846
-
847
- if (type && type.defaultProps) {
848
- var defaultProps = type.defaultProps;
849
-
850
- for (propName in defaultProps) {
851
- if (props[propName] === undefined) {
852
- props[propName] = defaultProps[propName];
853
- }
854
- }
855
- }
856
-
857
- if (key || ref) {
858
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
859
-
860
- if (key) {
861
- defineKeyPropWarningGetter(props, displayName);
862
- }
863
-
864
- if (ref) {
865
- defineRefPropWarningGetter(props, displayName);
866
- }
867
- }
868
-
869
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
870
- }
871
- }
872
-
873
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
874
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
875
-
876
- function setCurrentlyValidatingElement$1(element) {
877
- {
878
- if (element) {
879
- var owner = element._owner;
880
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
881
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
882
- } else {
883
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
884
- }
885
- }
886
- }
887
-
888
- var propTypesMisspellWarningShown;
889
-
890
- {
891
- propTypesMisspellWarningShown = false;
892
- }
893
- /**
894
- * Verifies the object is a ReactElement.
895
- * See https://reactjs.org/docs/react-api.html#isvalidelement
896
- * @param {?object} object
897
- * @return {boolean} True if `object` is a ReactElement.
898
- * @final
899
- */
900
-
901
- function isValidElement(object) {
902
- {
903
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
904
- }
905
- }
906
-
907
- function getDeclarationErrorAddendum() {
908
- {
909
- if (ReactCurrentOwner$1.current) {
910
- var name = getComponentName(ReactCurrentOwner$1.current.type);
911
-
912
- if (name) {
913
- return '\n\nCheck the render method of `' + name + '`.';
914
- }
915
- }
916
-
917
- return '';
918
- }
919
- }
920
-
921
- function getSourceInfoErrorAddendum(source) {
922
- {
923
- if (source !== undefined) {
924
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
925
- var lineNumber = source.lineNumber;
926
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
927
- }
928
-
929
- return '';
930
- }
931
- }
932
- /**
933
- * Warn if there's no key explicitly set on dynamic arrays of children or
934
- * object keys are not valid. This allows us to keep track of children between
935
- * updates.
936
- */
937
-
938
-
939
- var ownerHasKeyUseWarning = {};
940
-
941
- function getCurrentComponentErrorInfo(parentType) {
942
- {
943
- var info = getDeclarationErrorAddendum();
944
-
945
- if (!info) {
946
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
947
-
948
- if (parentName) {
949
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
950
- }
951
- }
952
-
953
- return info;
954
- }
955
- }
956
- /**
957
- * Warn if the element doesn't have an explicit key assigned to it.
958
- * This element is in an array. The array could grow and shrink or be
959
- * reordered. All children that haven't already been validated are required to
960
- * have a "key" property assigned to it. Error statuses are cached so a warning
961
- * will only be shown once.
962
- *
963
- * @internal
964
- * @param {ReactElement} element Element that requires a key.
965
- * @param {*} parentType element's parent's type.
966
- */
967
-
968
-
969
- function validateExplicitKey(element, parentType) {
970
- {
971
- if (!element._store || element._store.validated || element.key != null) {
972
- return;
973
- }
974
-
975
- element._store.validated = true;
976
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
977
-
978
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
979
- return;
980
- }
981
-
982
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
983
- // property, it may be the creator of the child that's responsible for
984
- // assigning it a key.
985
-
986
- var childOwner = '';
987
-
988
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
989
- // Give the component that originally created this child.
990
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
991
- }
992
-
993
- setCurrentlyValidatingElement$1(element);
994
-
995
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
996
-
997
- setCurrentlyValidatingElement$1(null);
998
- }
999
- }
1000
- /**
1001
- * Ensure that every element either is passed in a static location, in an
1002
- * array with an explicit keys property defined, or in an object literal
1003
- * with valid key property.
1004
- *
1005
- * @internal
1006
- * @param {ReactNode} node Statically passed child of any type.
1007
- * @param {*} parentType node's parent's type.
1008
- */
1009
-
1010
-
1011
- function validateChildKeys(node, parentType) {
1012
- {
1013
- if (typeof node !== 'object') {
1014
- return;
1015
- }
1016
-
1017
- if (Array.isArray(node)) {
1018
- for (var i = 0; i < node.length; i++) {
1019
- var child = node[i];
1020
-
1021
- if (isValidElement(child)) {
1022
- validateExplicitKey(child, parentType);
1023
- }
1024
- }
1025
- } else if (isValidElement(node)) {
1026
- // This element was passed in a valid location.
1027
- if (node._store) {
1028
- node._store.validated = true;
1029
- }
1030
- } else if (node) {
1031
- var iteratorFn = getIteratorFn(node);
1032
-
1033
- if (typeof iteratorFn === 'function') {
1034
- // Entry iterators used to provide implicit keys,
1035
- // but now we print a separate warning for them later.
1036
- if (iteratorFn !== node.entries) {
1037
- var iterator = iteratorFn.call(node);
1038
- var step;
1039
-
1040
- while (!(step = iterator.next()).done) {
1041
- if (isValidElement(step.value)) {
1042
- validateExplicitKey(step.value, parentType);
1043
- }
1044
- }
1045
- }
1046
- }
1047
- }
1048
- }
1049
- }
1050
- /**
1051
- * Given an element, validate that its props follow the propTypes definition,
1052
- * provided by the type.
1053
- *
1054
- * @param {ReactElement} element
1055
- */
1056
-
1057
-
1058
- function validatePropTypes(element) {
1059
- {
1060
- var type = element.type;
1061
-
1062
- if (type === null || type === undefined || typeof type === 'string') {
1063
- return;
1064
- }
1065
-
1066
- var propTypes;
1067
-
1068
- if (typeof type === 'function') {
1069
- propTypes = type.propTypes;
1070
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1071
- // Inner props are checked in the reconciler.
1072
- type.$$typeof === REACT_MEMO_TYPE)) {
1073
- propTypes = type.propTypes;
1074
- } else {
1075
- return;
1076
- }
1077
-
1078
- if (propTypes) {
1079
- // Intentionally inside to avoid triggering lazy initializers:
1080
- var name = getComponentName(type);
1081
- checkPropTypes(propTypes, element.props, 'prop', name, element);
1082
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1083
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1084
-
1085
- var _name = getComponentName(type);
1086
-
1087
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1088
- }
1089
-
1090
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1091
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1092
- }
1093
- }
1094
- }
1095
- /**
1096
- * Given a fragment, validate that it can only be provided with fragment props
1097
- * @param {ReactElement} fragment
1098
- */
1099
-
1100
-
1101
- function validateFragmentProps(fragment) {
1102
- {
1103
- var keys = Object.keys(fragment.props);
1104
-
1105
- for (var i = 0; i < keys.length; i++) {
1106
- var key = keys[i];
1107
-
1108
- if (key !== 'children' && key !== 'key') {
1109
- setCurrentlyValidatingElement$1(fragment);
1110
-
1111
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1112
-
1113
- setCurrentlyValidatingElement$1(null);
1114
- break;
1115
- }
1116
- }
1117
-
1118
- if (fragment.ref !== null) {
1119
- setCurrentlyValidatingElement$1(fragment);
1120
-
1121
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
1122
-
1123
- setCurrentlyValidatingElement$1(null);
1124
- }
1125
- }
1126
- }
1127
-
1128
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1129
- {
1130
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1131
- // succeed and there will likely be errors in render.
1132
-
1133
- if (!validType) {
1134
- var info = '';
1135
-
1136
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1137
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
1138
- }
1139
-
1140
- var sourceInfo = getSourceInfoErrorAddendum(source);
1141
-
1142
- if (sourceInfo) {
1143
- info += sourceInfo;
1144
- } else {
1145
- info += getDeclarationErrorAddendum();
1146
- }
1147
-
1148
- var typeString;
1149
-
1150
- if (type === null) {
1151
- typeString = 'null';
1152
- } else if (Array.isArray(type)) {
1153
- typeString = 'array';
1154
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1155
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
1156
- info = ' Did you accidentally export a JSX literal instead of a component?';
1157
- } else {
1158
- typeString = typeof type;
1159
- }
1160
-
1161
- error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
1162
- }
1163
-
1164
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1165
- // TODO: Drop this when these are no longer allowed as the type argument.
1166
-
1167
- if (element == null) {
1168
- return element;
1169
- } // Skip key warning if the type isn't valid since our key validation logic
1170
- // doesn't expect a non-string/function type and can throw confusing errors.
1171
- // We don't want exception behavior to differ between dev and prod.
1172
- // (Rendering will throw with a helpful message and as soon as the type is
1173
- // fixed, the key warnings will appear.)
1174
-
1175
-
1176
- if (validType) {
1177
- var children = props.children;
1178
-
1179
- if (children !== undefined) {
1180
- if (isStaticChildren) {
1181
- if (Array.isArray(children)) {
1182
- for (var i = 0; i < children.length; i++) {
1183
- validateChildKeys(children[i], type);
1184
- }
1185
-
1186
- if (Object.freeze) {
1187
- Object.freeze(children);
1188
- }
1189
- } else {
1190
- error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
1191
- }
1192
- } else {
1193
- validateChildKeys(children, type);
1194
- }
1195
- }
1196
- }
1197
-
1198
- if (type === exports.Fragment) {
1199
- validateFragmentProps(element);
1200
- } else {
1201
- validatePropTypes(element);
1202
- }
1203
-
1204
- return element;
1205
- }
1206
- } // These two functions exist to still get child warnings in dev
1207
- // even with the prod transform. This means that jsxDEV is purely
1208
- // opt-in behavior for better messages but that we won't stop
1209
- // giving you warnings if you use production apis.
1210
-
1211
- function jsxWithValidationStatic(type, props, key) {
1212
- {
1213
- return jsxWithValidation(type, props, key, true);
1214
- }
1215
- }
1216
- function jsxWithValidationDynamic(type, props, key) {
1217
- {
1218
- return jsxWithValidation(type, props, key, false);
1219
- }
1220
- }
1221
-
1222
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1223
- // for now we can ship identical prod functions
1224
-
1225
- var jsxs = jsxWithValidationStatic ;
1226
-
1227
- exports.jsx = jsx;
1228
- exports.jsxs = jsxs;
1229
- })();
1230
- }
1231
-
1232
-
1233
- /***/ }),
1234
-
1235
- /***/ "./node_modules/react/jsx-runtime.js":
1236
- /*!*******************************************!*\
1237
- !*** ./node_modules/react/jsx-runtime.js ***!
1238
- \*******************************************/
1239
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
1240
-
1241
-
1242
-
1243
- if (false) {} else {
1244
- module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "./node_modules/react/cjs/react-jsx-runtime.development.js");
1245
- }
1246
-
1247
-
1248
- /***/ })
1249
-
1250
- }]);