@kaizen/components 1.4.26 → 1.5.1

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 (105) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/ButtonGroup/index.d.ts +5 -0
  3. package/dist/ButtonGroup/index.js +7 -0
  4. package/dist/ButtonGroup-b1e541fe.d.ts +14 -0
  5. package/dist/ButtonGroup.module-NQDV3763.scss +73 -0
  6. package/dist/Filter/components/FilterContents/index.d.ts +3 -0
  7. package/dist/Filter/components/FilterContents/index.js +6 -0
  8. package/dist/Filter/components/FilterPopover/index.d.ts +15 -0
  9. package/dist/Filter/components/FilterPopover/index.js +6 -0
  10. package/dist/Filter/index.d.ts +5 -0
  11. package/dist/Filter/index.js +12 -0
  12. package/dist/Filter/types.d.ts +5 -0
  13. package/dist/Filter/types.js +1 -0
  14. package/dist/Filter-15d87e2c.d.ts +21 -0
  15. package/dist/FilterButton/FilterButton/index.d.ts +5 -0
  16. package/dist/FilterButton/FilterButton/index.js +8 -0
  17. package/dist/FilterButton/FilterButtonRemovable/index.d.ts +8 -0
  18. package/dist/FilterButton/FilterButtonRemovable/index.js +10 -0
  19. package/dist/FilterButton/components/FilterButtonBase/index.d.ts +3 -0
  20. package/dist/FilterButton/components/FilterButtonBase/index.js +6 -0
  21. package/dist/FilterButton/index.d.ts +8 -0
  22. package/dist/FilterButton/index.js +13 -0
  23. package/dist/FilterButton-e44e4bf8.d.ts +12 -0
  24. package/dist/FilterButton.module-HA7A5HIZ.scss +22 -0
  25. package/dist/FilterButtonBase-4004361e.d.ts +9 -0
  26. package/dist/FilterButtonBase.module-KNRAMYSJ.scss +65 -0
  27. package/dist/FilterButtonRemovable-d3bc8f61.d.ts +19 -0
  28. package/dist/FilterContents-8d959c14.d.ts +12 -0
  29. package/dist/FilterContents.module-VKPAJKDG.scss +5 -0
  30. package/dist/FilterPopover.module-2NVOPVIT.scss +11 -0
  31. package/dist/KaizenProvider/ThemeProvider/index.d.ts +1 -1
  32. package/dist/KaizenProvider/ThemeProvider/index.js +3 -3
  33. package/dist/KaizenProvider/ThemeProvider/themes/index.js +1 -1
  34. package/dist/KaizenProvider/index.d.ts +2 -2
  35. package/dist/KaizenProvider/index.js +3 -3
  36. package/dist/{KaizenProvider-af031107.d.ts → KaizenProvider-44a90581.d.ts} +2 -2
  37. package/dist/{ThemeProvider-7786826c.d.ts → ThemeProvider-9852214a.d.ts} +2 -2
  38. package/dist/chunk-24HHXM6U.js +29 -0
  39. package/dist/chunk-3VEH3HNR.js +6 -0
  40. package/dist/chunk-DR7ZJ6Z3.js +38 -0
  41. package/dist/chunk-FMXGTI6W.js +1 -0
  42. package/dist/chunk-GTXIOS6D.js +51 -0
  43. package/dist/chunk-J5NCLDC5.js +55 -0
  44. package/dist/chunk-SBUK4XZM.js +18 -0
  45. package/dist/chunk-TGN3Y4NF.js +51 -0
  46. package/dist/chunk-Y6BQRSGB.js +21 -0
  47. package/dist/esm/ButtonGroup/index.js +7 -0
  48. package/dist/esm/ButtonGroup.module-NQDV3763.scss +73 -0
  49. package/dist/esm/Filter/components/FilterContents/index.js +6 -0
  50. package/dist/esm/Filter/components/FilterPopover/index.js +6 -0
  51. package/dist/esm/Filter/index.js +12 -0
  52. package/dist/esm/Filter/types.js +1 -0
  53. package/dist/esm/FilterButton/FilterButton/index.js +8 -0
  54. package/dist/esm/FilterButton/FilterButtonRemovable/index.js +10 -0
  55. package/dist/esm/FilterButton/components/FilterButtonBase/index.js +6 -0
  56. package/dist/esm/FilterButton/index.js +13 -0
  57. package/dist/esm/FilterButton.module-HA7A5HIZ.scss +22 -0
  58. package/dist/esm/FilterButtonBase.module-KNRAMYSJ.scss +65 -0
  59. package/dist/esm/FilterContents.module-VKPAJKDG.scss +5 -0
  60. package/dist/esm/FilterPopover.module-2NVOPVIT.scss +11 -0
  61. package/dist/esm/KaizenProvider/ThemeProvider/index.js +3 -3
  62. package/dist/esm/KaizenProvider/ThemeProvider/themes/index.js +1 -1
  63. package/dist/esm/KaizenProvider/index.js +3 -3
  64. package/dist/esm/chunk-24HHXM6U.js +29 -0
  65. package/dist/esm/chunk-3VEH3HNR.js +6 -0
  66. package/dist/esm/chunk-DR7ZJ6Z3.js +38 -0
  67. package/dist/esm/chunk-FMXGTI6W.js +0 -0
  68. package/dist/esm/chunk-GTXIOS6D.js +51 -0
  69. package/dist/esm/chunk-J5NCLDC5.js +55 -0
  70. package/dist/esm/chunk-SBUK4XZM.js +18 -0
  71. package/dist/esm/chunk-TGN3Y4NF.js +51 -0
  72. package/dist/esm/chunk-Y6BQRSGB.js +21 -0
  73. package/dist/esm/index.js +13 -3
  74. package/dist/esm/types.js +0 -0
  75. package/dist/esm/utils/isRefObject.js +6 -0
  76. package/dist/iife/ButtonGroup/index.js +33555 -0
  77. package/dist/iife/ButtonGroup.module-NQDV3763.scss +73 -0
  78. package/dist/iife/Filter/components/FilterContents/index.js +2317 -0
  79. package/dist/iife/Filter/components/FilterPopover/index.js +33202 -0
  80. package/dist/iife/Filter/index.js +36349 -0
  81. package/dist/iife/Filter/types.js +3 -0
  82. package/dist/iife/FilterButton/FilterButton/index.js +2417 -0
  83. package/dist/iife/FilterButton/FilterButtonRemovable/index.js +33673 -0
  84. package/dist/iife/FilterButton/components/FilterButtonBase/index.js +2314 -0
  85. package/dist/iife/FilterButton/index.js +33671 -0
  86. package/dist/iife/FilterButton.module-HA7A5HIZ.scss +22 -0
  87. package/dist/iife/FilterButtonBase.module-KNRAMYSJ.scss +65 -0
  88. package/dist/iife/FilterContents.module-VKPAJKDG.scss +5 -0
  89. package/dist/iife/FilterPopover.module-2NVOPVIT.scss +11 -0
  90. package/dist/iife/Icon.module-VD7NKLAR.scss +72 -0
  91. package/dist/iife/Tooltip.module-YU7VOTNZ.scss +184 -0
  92. package/dist/iife/chevron-down.icon-COG3GAYR.svg +17 -0
  93. package/dist/iife/chevron-up.icon-O5VRF5BX.svg +17 -0
  94. package/dist/iife/clear.icon-OD6PWTJH.svg +17 -0
  95. package/dist/iife/index.js +34501 -386
  96. package/dist/iife/types.js +3 -0
  97. package/dist/iife/utils/isRefObject.js +5 -0
  98. package/dist/index.d.ts +6 -2
  99. package/dist/index.js +12 -2
  100. package/dist/styles.css +16 -0
  101. package/dist/types.d.ts +8 -0
  102. package/dist/types.js +1 -0
  103. package/dist/utils/isRefObject.d.ts +5 -0
  104. package/dist/utils/isRefObject.js +6 -0
  105. package/package.json +9 -4
@@ -0,0 +1,2417 @@
1
+ "use strict";
2
+ (() => {
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
10
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
11
+ }) : x)(function(x) {
12
+ if (typeof require !== "undefined")
13
+ return require.apply(this, arguments);
14
+ throw new Error('Dynamic require of "' + x + '" is not supported');
15
+ });
16
+ var __commonJS = (cb, mod) => function __require2() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
+ mod
34
+ ));
35
+
36
+ // ../../node_modules/react/cjs/react.production.min.js
37
+ var require_react_production_min = __commonJS({
38
+ "../../node_modules/react/cjs/react.production.min.js"(exports) {
39
+ "use strict";
40
+ var l = Symbol.for("react.element");
41
+ var n = Symbol.for("react.portal");
42
+ var p = Symbol.for("react.fragment");
43
+ var q = Symbol.for("react.strict_mode");
44
+ var r = Symbol.for("react.profiler");
45
+ var t = Symbol.for("react.provider");
46
+ var u = Symbol.for("react.context");
47
+ var v = Symbol.for("react.forward_ref");
48
+ var w = Symbol.for("react.suspense");
49
+ var x = Symbol.for("react.memo");
50
+ var y = Symbol.for("react.lazy");
51
+ var z = Symbol.iterator;
52
+ function A(a) {
53
+ if (null === a || "object" !== typeof a)
54
+ return null;
55
+ a = z && a[z] || a["@@iterator"];
56
+ return "function" === typeof a ? a : null;
57
+ }
58
+ var B = { isMounted: function() {
59
+ return false;
60
+ }, enqueueForceUpdate: function() {
61
+ }, enqueueReplaceState: function() {
62
+ }, enqueueSetState: function() {
63
+ } };
64
+ var C = Object.assign;
65
+ var D = {};
66
+ function E(a, b, e) {
67
+ this.props = a;
68
+ this.context = b;
69
+ this.refs = D;
70
+ this.updater = e || B;
71
+ }
72
+ E.prototype.isReactComponent = {};
73
+ E.prototype.setState = function(a, b) {
74
+ if ("object" !== typeof a && "function" !== typeof a && null != a)
75
+ throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
76
+ this.updater.enqueueSetState(this, a, b, "setState");
77
+ };
78
+ E.prototype.forceUpdate = function(a) {
79
+ this.updater.enqueueForceUpdate(this, a, "forceUpdate");
80
+ };
81
+ function F() {
82
+ }
83
+ F.prototype = E.prototype;
84
+ function G(a, b, e) {
85
+ this.props = a;
86
+ this.context = b;
87
+ this.refs = D;
88
+ this.updater = e || B;
89
+ }
90
+ var H = G.prototype = new F();
91
+ H.constructor = G;
92
+ C(H, E.prototype);
93
+ H.isPureReactComponent = true;
94
+ var I = Array.isArray;
95
+ var J = Object.prototype.hasOwnProperty;
96
+ var K = { current: null };
97
+ var L = { key: true, ref: true, __self: true, __source: true };
98
+ function M(a, b, e) {
99
+ var d, c = {}, k = null, h = null;
100
+ if (null != b)
101
+ for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
102
+ J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
103
+ var g = arguments.length - 2;
104
+ if (1 === g)
105
+ c.children = e;
106
+ else if (1 < g) {
107
+ for (var f = Array(g), m = 0; m < g; m++)
108
+ f[m] = arguments[m + 2];
109
+ c.children = f;
110
+ }
111
+ if (a && a.defaultProps)
112
+ for (d in g = a.defaultProps, g)
113
+ void 0 === c[d] && (c[d] = g[d]);
114
+ return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
115
+ }
116
+ function N(a, b) {
117
+ return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
118
+ }
119
+ function O(a) {
120
+ return "object" === typeof a && null !== a && a.$$typeof === l;
121
+ }
122
+ function escape(a) {
123
+ var b = { "=": "=0", ":": "=2" };
124
+ return "$" + a.replace(/[=:]/g, function(a2) {
125
+ return b[a2];
126
+ });
127
+ }
128
+ var P = /\/+/g;
129
+ function Q(a, b) {
130
+ return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
131
+ }
132
+ function R(a, b, e, d, c) {
133
+ var k = typeof a;
134
+ if ("undefined" === k || "boolean" === k)
135
+ a = null;
136
+ var h = false;
137
+ if (null === a)
138
+ h = true;
139
+ else
140
+ switch (k) {
141
+ case "string":
142
+ case "number":
143
+ h = true;
144
+ break;
145
+ case "object":
146
+ switch (a.$$typeof) {
147
+ case l:
148
+ case n:
149
+ h = true;
150
+ }
151
+ }
152
+ if (h)
153
+ return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
154
+ return a2;
155
+ })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
156
+ h = 0;
157
+ d = "" === d ? "." : d + ":";
158
+ if (I(a))
159
+ for (var g = 0; g < a.length; g++) {
160
+ k = a[g];
161
+ var f = d + Q(k, g);
162
+ h += R(k, b, e, f, c);
163
+ }
164
+ else if (f = A(a), "function" === typeof f)
165
+ for (a = f.call(a), g = 0; !(k = a.next()).done; )
166
+ k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
167
+ else if ("object" === k)
168
+ throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
169
+ return h;
170
+ }
171
+ function S(a, b, e) {
172
+ if (null == a)
173
+ return a;
174
+ var d = [], c = 0;
175
+ R(a, d, "", "", function(a2) {
176
+ return b.call(e, a2, c++);
177
+ });
178
+ return d;
179
+ }
180
+ function T(a) {
181
+ if (-1 === a._status) {
182
+ var b = a._result;
183
+ b = b();
184
+ b.then(function(b2) {
185
+ if (0 === a._status || -1 === a._status)
186
+ a._status = 1, a._result = b2;
187
+ }, function(b2) {
188
+ if (0 === a._status || -1 === a._status)
189
+ a._status = 2, a._result = b2;
190
+ });
191
+ -1 === a._status && (a._status = 0, a._result = b);
192
+ }
193
+ if (1 === a._status)
194
+ return a._result.default;
195
+ throw a._result;
196
+ }
197
+ var U = { current: null };
198
+ var V = { transition: null };
199
+ var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
200
+ exports.Children = { map: S, forEach: function(a, b, e) {
201
+ S(a, function() {
202
+ b.apply(this, arguments);
203
+ }, e);
204
+ }, count: function(a) {
205
+ var b = 0;
206
+ S(a, function() {
207
+ b++;
208
+ });
209
+ return b;
210
+ }, toArray: function(a) {
211
+ return S(a, function(a2) {
212
+ return a2;
213
+ }) || [];
214
+ }, only: function(a) {
215
+ if (!O(a))
216
+ throw Error("React.Children.only expected to receive a single React element child.");
217
+ return a;
218
+ } };
219
+ exports.Component = E;
220
+ exports.Fragment = p;
221
+ exports.Profiler = r;
222
+ exports.PureComponent = G;
223
+ exports.StrictMode = q;
224
+ exports.Suspense = w;
225
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
226
+ exports.cloneElement = function(a, b, e) {
227
+ if (null === a || void 0 === a)
228
+ throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
229
+ var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
230
+ if (null != b) {
231
+ void 0 !== b.ref && (k = b.ref, h = K.current);
232
+ void 0 !== b.key && (c = "" + b.key);
233
+ if (a.type && a.type.defaultProps)
234
+ var g = a.type.defaultProps;
235
+ for (f in b)
236
+ J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
237
+ }
238
+ var f = arguments.length - 2;
239
+ if (1 === f)
240
+ d.children = e;
241
+ else if (1 < f) {
242
+ g = Array(f);
243
+ for (var m = 0; m < f; m++)
244
+ g[m] = arguments[m + 2];
245
+ d.children = g;
246
+ }
247
+ return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
248
+ };
249
+ exports.createContext = function(a) {
250
+ a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
251
+ a.Provider = { $$typeof: t, _context: a };
252
+ return a.Consumer = a;
253
+ };
254
+ exports.createElement = M;
255
+ exports.createFactory = function(a) {
256
+ var b = M.bind(null, a);
257
+ b.type = a;
258
+ return b;
259
+ };
260
+ exports.createRef = function() {
261
+ return { current: null };
262
+ };
263
+ exports.forwardRef = function(a) {
264
+ return { $$typeof: v, render: a };
265
+ };
266
+ exports.isValidElement = O;
267
+ exports.lazy = function(a) {
268
+ return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
269
+ };
270
+ exports.memo = function(a, b) {
271
+ return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
272
+ };
273
+ exports.startTransition = function(a) {
274
+ var b = V.transition;
275
+ V.transition = {};
276
+ try {
277
+ a();
278
+ } finally {
279
+ V.transition = b;
280
+ }
281
+ };
282
+ exports.unstable_act = function() {
283
+ throw Error("act(...) is not supported in production builds of React.");
284
+ };
285
+ exports.useCallback = function(a, b) {
286
+ return U.current.useCallback(a, b);
287
+ };
288
+ exports.useContext = function(a) {
289
+ return U.current.useContext(a);
290
+ };
291
+ exports.useDebugValue = function() {
292
+ };
293
+ exports.useDeferredValue = function(a) {
294
+ return U.current.useDeferredValue(a);
295
+ };
296
+ exports.useEffect = function(a, b) {
297
+ return U.current.useEffect(a, b);
298
+ };
299
+ exports.useId = function() {
300
+ return U.current.useId();
301
+ };
302
+ exports.useImperativeHandle = function(a, b, e) {
303
+ return U.current.useImperativeHandle(a, b, e);
304
+ };
305
+ exports.useInsertionEffect = function(a, b) {
306
+ return U.current.useInsertionEffect(a, b);
307
+ };
308
+ exports.useLayoutEffect = function(a, b) {
309
+ return U.current.useLayoutEffect(a, b);
310
+ };
311
+ exports.useMemo = function(a, b) {
312
+ return U.current.useMemo(a, b);
313
+ };
314
+ exports.useReducer = function(a, b, e) {
315
+ return U.current.useReducer(a, b, e);
316
+ };
317
+ exports.useRef = function(a) {
318
+ return U.current.useRef(a);
319
+ };
320
+ exports.useState = function(a) {
321
+ return U.current.useState(a);
322
+ };
323
+ exports.useSyncExternalStore = function(a, b, e) {
324
+ return U.current.useSyncExternalStore(a, b, e);
325
+ };
326
+ exports.useTransition = function() {
327
+ return U.current.useTransition();
328
+ };
329
+ exports.version = "18.2.0";
330
+ }
331
+ });
332
+
333
+ // ../../node_modules/react/cjs/react.development.js
334
+ var require_react_development = __commonJS({
335
+ "../../node_modules/react/cjs/react.development.js"(exports, module) {
336
+ "use strict";
337
+ if (process.env.NODE_ENV !== "production") {
338
+ (function() {
339
+ "use strict";
340
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
341
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
342
+ }
343
+ var ReactVersion = "18.2.0";
344
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
345
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
346
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
347
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
348
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
349
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
350
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
351
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
352
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
353
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
354
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
355
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
356
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
357
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
358
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
359
+ function getIteratorFn(maybeIterable) {
360
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
361
+ return null;
362
+ }
363
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
364
+ if (typeof maybeIterator === "function") {
365
+ return maybeIterator;
366
+ }
367
+ return null;
368
+ }
369
+ var ReactCurrentDispatcher = {
370
+ /**
371
+ * @internal
372
+ * @type {ReactComponent}
373
+ */
374
+ current: null
375
+ };
376
+ var ReactCurrentBatchConfig = {
377
+ transition: null
378
+ };
379
+ var ReactCurrentActQueue = {
380
+ current: null,
381
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
382
+ isBatchingLegacy: false,
383
+ didScheduleLegacyUpdate: false
384
+ };
385
+ var ReactCurrentOwner = {
386
+ /**
387
+ * @internal
388
+ * @type {ReactComponent}
389
+ */
390
+ current: null
391
+ };
392
+ var ReactDebugCurrentFrame = {};
393
+ var currentExtraStackFrame = null;
394
+ function setExtraStackFrame(stack) {
395
+ {
396
+ currentExtraStackFrame = stack;
397
+ }
398
+ }
399
+ {
400
+ ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
401
+ {
402
+ currentExtraStackFrame = stack;
403
+ }
404
+ };
405
+ ReactDebugCurrentFrame.getCurrentStack = null;
406
+ ReactDebugCurrentFrame.getStackAddendum = function() {
407
+ var stack = "";
408
+ if (currentExtraStackFrame) {
409
+ stack += currentExtraStackFrame;
410
+ }
411
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
412
+ if (impl) {
413
+ stack += impl() || "";
414
+ }
415
+ return stack;
416
+ };
417
+ }
418
+ var enableScopeAPI = false;
419
+ var enableCacheElement = false;
420
+ var enableTransitionTracing = false;
421
+ var enableLegacyHidden = false;
422
+ var enableDebugTracing = false;
423
+ var ReactSharedInternals = {
424
+ ReactCurrentDispatcher,
425
+ ReactCurrentBatchConfig,
426
+ ReactCurrentOwner
427
+ };
428
+ {
429
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
430
+ ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
431
+ }
432
+ function warn2(format) {
433
+ {
434
+ {
435
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
436
+ args[_key - 1] = arguments[_key];
437
+ }
438
+ printWarning("warn", format, args);
439
+ }
440
+ }
441
+ }
442
+ function error(format) {
443
+ {
444
+ {
445
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
446
+ args[_key2 - 1] = arguments[_key2];
447
+ }
448
+ printWarning("error", format, args);
449
+ }
450
+ }
451
+ }
452
+ function printWarning(level, format, args) {
453
+ {
454
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
455
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
456
+ if (stack !== "") {
457
+ format += "%s";
458
+ args = args.concat([stack]);
459
+ }
460
+ var argsWithFormat = args.map(function(item) {
461
+ return String(item);
462
+ });
463
+ argsWithFormat.unshift("Warning: " + format);
464
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
465
+ }
466
+ }
467
+ var didWarnStateUpdateForUnmountedComponent = {};
468
+ function warnNoop(publicInstance, callerName) {
469
+ {
470
+ var _constructor = publicInstance.constructor;
471
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
472
+ var warningKey = componentName + "." + callerName;
473
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
474
+ return;
475
+ }
476
+ error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
477
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
478
+ }
479
+ }
480
+ var ReactNoopUpdateQueue = {
481
+ /**
482
+ * Checks whether or not this composite component is mounted.
483
+ * @param {ReactClass} publicInstance The instance we want to test.
484
+ * @return {boolean} True if mounted, false otherwise.
485
+ * @protected
486
+ * @final
487
+ */
488
+ isMounted: function(publicInstance) {
489
+ return false;
490
+ },
491
+ /**
492
+ * Forces an update. This should only be invoked when it is known with
493
+ * certainty that we are **not** in a DOM transaction.
494
+ *
495
+ * You may want to call this when you know that some deeper aspect of the
496
+ * component's state has changed but `setState` was not called.
497
+ *
498
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
499
+ * `componentWillUpdate` and `componentDidUpdate`.
500
+ *
501
+ * @param {ReactClass} publicInstance The instance that should rerender.
502
+ * @param {?function} callback Called after component is updated.
503
+ * @param {?string} callerName name of the calling function in the public API.
504
+ * @internal
505
+ */
506
+ enqueueForceUpdate: function(publicInstance, callback, callerName) {
507
+ warnNoop(publicInstance, "forceUpdate");
508
+ },
509
+ /**
510
+ * Replaces all of the state. Always use this or `setState` to mutate state.
511
+ * You should treat `this.state` as immutable.
512
+ *
513
+ * There is no guarantee that `this.state` will be immediately updated, so
514
+ * accessing `this.state` after calling this method may return the old value.
515
+ *
516
+ * @param {ReactClass} publicInstance The instance that should rerender.
517
+ * @param {object} completeState Next state.
518
+ * @param {?function} callback Called after component is updated.
519
+ * @param {?string} callerName name of the calling function in the public API.
520
+ * @internal
521
+ */
522
+ enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
523
+ warnNoop(publicInstance, "replaceState");
524
+ },
525
+ /**
526
+ * Sets a subset of the state. This only exists because _pendingState is
527
+ * internal. This provides a merging strategy that is not available to deep
528
+ * properties which is confusing. TODO: Expose pendingState or don't use it
529
+ * during the merge.
530
+ *
531
+ * @param {ReactClass} publicInstance The instance that should rerender.
532
+ * @param {object} partialState Next partial state to be merged with state.
533
+ * @param {?function} callback Called after component is updated.
534
+ * @param {?string} Name of the calling function in the public API.
535
+ * @internal
536
+ */
537
+ enqueueSetState: function(publicInstance, partialState, callback, callerName) {
538
+ warnNoop(publicInstance, "setState");
539
+ }
540
+ };
541
+ var assign = Object.assign;
542
+ var emptyObject = {};
543
+ {
544
+ Object.freeze(emptyObject);
545
+ }
546
+ function Component(props, context, updater) {
547
+ this.props = props;
548
+ this.context = context;
549
+ this.refs = emptyObject;
550
+ this.updater = updater || ReactNoopUpdateQueue;
551
+ }
552
+ Component.prototype.isReactComponent = {};
553
+ Component.prototype.setState = function(partialState, callback) {
554
+ if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
555
+ throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
556
+ }
557
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
558
+ };
559
+ Component.prototype.forceUpdate = function(callback) {
560
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
561
+ };
562
+ {
563
+ var deprecatedAPIs = {
564
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
565
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
566
+ };
567
+ var defineDeprecationWarning = function(methodName, info) {
568
+ Object.defineProperty(Component.prototype, methodName, {
569
+ get: function() {
570
+ warn2("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
571
+ return void 0;
572
+ }
573
+ });
574
+ };
575
+ for (var fnName in deprecatedAPIs) {
576
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
577
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
578
+ }
579
+ }
580
+ }
581
+ function ComponentDummy() {
582
+ }
583
+ ComponentDummy.prototype = Component.prototype;
584
+ function PureComponent(props, context, updater) {
585
+ this.props = props;
586
+ this.context = context;
587
+ this.refs = emptyObject;
588
+ this.updater = updater || ReactNoopUpdateQueue;
589
+ }
590
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
591
+ pureComponentPrototype.constructor = PureComponent;
592
+ assign(pureComponentPrototype, Component.prototype);
593
+ pureComponentPrototype.isPureReactComponent = true;
594
+ function createRef() {
595
+ var refObject = {
596
+ current: null
597
+ };
598
+ {
599
+ Object.seal(refObject);
600
+ }
601
+ return refObject;
602
+ }
603
+ var isArrayImpl = Array.isArray;
604
+ function isArray(a) {
605
+ return isArrayImpl(a);
606
+ }
607
+ function typeName(value) {
608
+ {
609
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
610
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
611
+ return type;
612
+ }
613
+ }
614
+ function willCoercionThrow(value) {
615
+ {
616
+ try {
617
+ testStringCoercion(value);
618
+ return false;
619
+ } catch (e) {
620
+ return true;
621
+ }
622
+ }
623
+ }
624
+ function testStringCoercion(value) {
625
+ return "" + value;
626
+ }
627
+ function checkKeyStringCoercion(value) {
628
+ {
629
+ if (willCoercionThrow(value)) {
630
+ error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
631
+ return testStringCoercion(value);
632
+ }
633
+ }
634
+ }
635
+ function getWrappedName(outerType, innerType, wrapperName) {
636
+ var displayName = outerType.displayName;
637
+ if (displayName) {
638
+ return displayName;
639
+ }
640
+ var functionName = innerType.displayName || innerType.name || "";
641
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
642
+ }
643
+ function getContextName(type) {
644
+ return type.displayName || "Context";
645
+ }
646
+ function getComponentNameFromType(type) {
647
+ if (type == null) {
648
+ return null;
649
+ }
650
+ {
651
+ if (typeof type.tag === "number") {
652
+ error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
653
+ }
654
+ }
655
+ if (typeof type === "function") {
656
+ return type.displayName || type.name || null;
657
+ }
658
+ if (typeof type === "string") {
659
+ return type;
660
+ }
661
+ switch (type) {
662
+ case REACT_FRAGMENT_TYPE:
663
+ return "Fragment";
664
+ case REACT_PORTAL_TYPE:
665
+ return "Portal";
666
+ case REACT_PROFILER_TYPE:
667
+ return "Profiler";
668
+ case REACT_STRICT_MODE_TYPE:
669
+ return "StrictMode";
670
+ case REACT_SUSPENSE_TYPE:
671
+ return "Suspense";
672
+ case REACT_SUSPENSE_LIST_TYPE:
673
+ return "SuspenseList";
674
+ }
675
+ if (typeof type === "object") {
676
+ switch (type.$$typeof) {
677
+ case REACT_CONTEXT_TYPE:
678
+ var context = type;
679
+ return getContextName(context) + ".Consumer";
680
+ case REACT_PROVIDER_TYPE:
681
+ var provider = type;
682
+ return getContextName(provider._context) + ".Provider";
683
+ case REACT_FORWARD_REF_TYPE:
684
+ return getWrappedName(type, type.render, "ForwardRef");
685
+ case REACT_MEMO_TYPE:
686
+ var outerName = type.displayName || null;
687
+ if (outerName !== null) {
688
+ return outerName;
689
+ }
690
+ return getComponentNameFromType(type.type) || "Memo";
691
+ case REACT_LAZY_TYPE: {
692
+ var lazyComponent = type;
693
+ var payload = lazyComponent._payload;
694
+ var init = lazyComponent._init;
695
+ try {
696
+ return getComponentNameFromType(init(payload));
697
+ } catch (x) {
698
+ return null;
699
+ }
700
+ }
701
+ }
702
+ }
703
+ return null;
704
+ }
705
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
706
+ var RESERVED_PROPS = {
707
+ key: true,
708
+ ref: true,
709
+ __self: true,
710
+ __source: true
711
+ };
712
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
713
+ {
714
+ didWarnAboutStringRefs = {};
715
+ }
716
+ function hasValidRef(config) {
717
+ {
718
+ if (hasOwnProperty.call(config, "ref")) {
719
+ var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
720
+ if (getter && getter.isReactWarning) {
721
+ return false;
722
+ }
723
+ }
724
+ }
725
+ return config.ref !== void 0;
726
+ }
727
+ function hasValidKey(config) {
728
+ {
729
+ if (hasOwnProperty.call(config, "key")) {
730
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
731
+ if (getter && getter.isReactWarning) {
732
+ return false;
733
+ }
734
+ }
735
+ }
736
+ return config.key !== void 0;
737
+ }
738
+ function defineKeyPropWarningGetter(props, displayName) {
739
+ var warnAboutAccessingKey = function() {
740
+ {
741
+ if (!specialPropKeyWarningShown) {
742
+ specialPropKeyWarningShown = true;
743
+ 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);
744
+ }
745
+ }
746
+ };
747
+ warnAboutAccessingKey.isReactWarning = true;
748
+ Object.defineProperty(props, "key", {
749
+ get: warnAboutAccessingKey,
750
+ configurable: true
751
+ });
752
+ }
753
+ function defineRefPropWarningGetter(props, displayName) {
754
+ var warnAboutAccessingRef = function() {
755
+ {
756
+ if (!specialPropRefWarningShown) {
757
+ specialPropRefWarningShown = true;
758
+ 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);
759
+ }
760
+ }
761
+ };
762
+ warnAboutAccessingRef.isReactWarning = true;
763
+ Object.defineProperty(props, "ref", {
764
+ get: warnAboutAccessingRef,
765
+ configurable: true
766
+ });
767
+ }
768
+ function warnIfStringRefCannotBeAutoConverted(config) {
769
+ {
770
+ if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
771
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
772
+ if (!didWarnAboutStringRefs[componentName]) {
773
+ 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', componentName, config.ref);
774
+ didWarnAboutStringRefs[componentName] = true;
775
+ }
776
+ }
777
+ }
778
+ }
779
+ var ReactElement = function(type, key, ref, self, source, owner, props) {
780
+ var element = {
781
+ // This tag allows us to uniquely identify this as a React Element
782
+ $$typeof: REACT_ELEMENT_TYPE,
783
+ // Built-in properties that belong on the element
784
+ type,
785
+ key,
786
+ ref,
787
+ props,
788
+ // Record the component responsible for creating this element.
789
+ _owner: owner
790
+ };
791
+ {
792
+ element._store = {};
793
+ Object.defineProperty(element._store, "validated", {
794
+ configurable: false,
795
+ enumerable: false,
796
+ writable: true,
797
+ value: false
798
+ });
799
+ Object.defineProperty(element, "_self", {
800
+ configurable: false,
801
+ enumerable: false,
802
+ writable: false,
803
+ value: self
804
+ });
805
+ Object.defineProperty(element, "_source", {
806
+ configurable: false,
807
+ enumerable: false,
808
+ writable: false,
809
+ value: source
810
+ });
811
+ if (Object.freeze) {
812
+ Object.freeze(element.props);
813
+ Object.freeze(element);
814
+ }
815
+ }
816
+ return element;
817
+ };
818
+ function createElement(type, config, children) {
819
+ var propName;
820
+ var props = {};
821
+ var key = null;
822
+ var ref = null;
823
+ var self = null;
824
+ var source = null;
825
+ if (config != null) {
826
+ if (hasValidRef(config)) {
827
+ ref = config.ref;
828
+ {
829
+ warnIfStringRefCannotBeAutoConverted(config);
830
+ }
831
+ }
832
+ if (hasValidKey(config)) {
833
+ {
834
+ checkKeyStringCoercion(config.key);
835
+ }
836
+ key = "" + config.key;
837
+ }
838
+ self = config.__self === void 0 ? null : config.__self;
839
+ source = config.__source === void 0 ? null : config.__source;
840
+ for (propName in config) {
841
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
842
+ props[propName] = config[propName];
843
+ }
844
+ }
845
+ }
846
+ var childrenLength = arguments.length - 2;
847
+ if (childrenLength === 1) {
848
+ props.children = children;
849
+ } else if (childrenLength > 1) {
850
+ var childArray = Array(childrenLength);
851
+ for (var i = 0; i < childrenLength; i++) {
852
+ childArray[i] = arguments[i + 2];
853
+ }
854
+ {
855
+ if (Object.freeze) {
856
+ Object.freeze(childArray);
857
+ }
858
+ }
859
+ props.children = childArray;
860
+ }
861
+ if (type && type.defaultProps) {
862
+ var defaultProps = type.defaultProps;
863
+ for (propName in defaultProps) {
864
+ if (props[propName] === void 0) {
865
+ props[propName] = defaultProps[propName];
866
+ }
867
+ }
868
+ }
869
+ {
870
+ if (key || ref) {
871
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
872
+ if (key) {
873
+ defineKeyPropWarningGetter(props, displayName);
874
+ }
875
+ if (ref) {
876
+ defineRefPropWarningGetter(props, displayName);
877
+ }
878
+ }
879
+ }
880
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
881
+ }
882
+ function cloneAndReplaceKey(oldElement, newKey) {
883
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
884
+ return newElement;
885
+ }
886
+ function cloneElement(element, config, children) {
887
+ if (element === null || element === void 0) {
888
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
889
+ }
890
+ var propName;
891
+ var props = assign({}, element.props);
892
+ var key = element.key;
893
+ var ref = element.ref;
894
+ var self = element._self;
895
+ var source = element._source;
896
+ var owner = element._owner;
897
+ if (config != null) {
898
+ if (hasValidRef(config)) {
899
+ ref = config.ref;
900
+ owner = ReactCurrentOwner.current;
901
+ }
902
+ if (hasValidKey(config)) {
903
+ {
904
+ checkKeyStringCoercion(config.key);
905
+ }
906
+ key = "" + config.key;
907
+ }
908
+ var defaultProps;
909
+ if (element.type && element.type.defaultProps) {
910
+ defaultProps = element.type.defaultProps;
911
+ }
912
+ for (propName in config) {
913
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
914
+ if (config[propName] === void 0 && defaultProps !== void 0) {
915
+ props[propName] = defaultProps[propName];
916
+ } else {
917
+ props[propName] = config[propName];
918
+ }
919
+ }
920
+ }
921
+ }
922
+ var childrenLength = arguments.length - 2;
923
+ if (childrenLength === 1) {
924
+ props.children = children;
925
+ } else if (childrenLength > 1) {
926
+ var childArray = Array(childrenLength);
927
+ for (var i = 0; i < childrenLength; i++) {
928
+ childArray[i] = arguments[i + 2];
929
+ }
930
+ props.children = childArray;
931
+ }
932
+ return ReactElement(element.type, key, ref, self, source, owner, props);
933
+ }
934
+ function isValidElement(object) {
935
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
936
+ }
937
+ var SEPARATOR = ".";
938
+ var SUBSEPARATOR = ":";
939
+ function escape(key) {
940
+ var escapeRegex = /[=:]/g;
941
+ var escaperLookup = {
942
+ "=": "=0",
943
+ ":": "=2"
944
+ };
945
+ var escapedString = key.replace(escapeRegex, function(match) {
946
+ return escaperLookup[match];
947
+ });
948
+ return "$" + escapedString;
949
+ }
950
+ var didWarnAboutMaps = false;
951
+ var userProvidedKeyEscapeRegex = /\/+/g;
952
+ function escapeUserProvidedKey(text) {
953
+ return text.replace(userProvidedKeyEscapeRegex, "$&/");
954
+ }
955
+ function getElementKey(element, index) {
956
+ if (typeof element === "object" && element !== null && element.key != null) {
957
+ {
958
+ checkKeyStringCoercion(element.key);
959
+ }
960
+ return escape("" + element.key);
961
+ }
962
+ return index.toString(36);
963
+ }
964
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
965
+ var type = typeof children;
966
+ if (type === "undefined" || type === "boolean") {
967
+ children = null;
968
+ }
969
+ var invokeCallback = false;
970
+ if (children === null) {
971
+ invokeCallback = true;
972
+ } else {
973
+ switch (type) {
974
+ case "string":
975
+ case "number":
976
+ invokeCallback = true;
977
+ break;
978
+ case "object":
979
+ switch (children.$$typeof) {
980
+ case REACT_ELEMENT_TYPE:
981
+ case REACT_PORTAL_TYPE:
982
+ invokeCallback = true;
983
+ }
984
+ }
985
+ }
986
+ if (invokeCallback) {
987
+ var _child = children;
988
+ var mappedChild = callback(_child);
989
+ var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
990
+ if (isArray(mappedChild)) {
991
+ var escapedChildKey = "";
992
+ if (childKey != null) {
993
+ escapedChildKey = escapeUserProvidedKey(childKey) + "/";
994
+ }
995
+ mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
996
+ return c;
997
+ });
998
+ } else if (mappedChild != null) {
999
+ if (isValidElement(mappedChild)) {
1000
+ {
1001
+ if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
1002
+ checkKeyStringCoercion(mappedChild.key);
1003
+ }
1004
+ }
1005
+ mappedChild = cloneAndReplaceKey(
1006
+ mappedChild,
1007
+ // Keep both the (mapped) and old keys if they differ, just as
1008
+ // traverseAllChildren used to do for objects as children
1009
+ escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1010
+ (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
1011
+ // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1012
+ // eslint-disable-next-line react-internal/safe-string-coercion
1013
+ escapeUserProvidedKey("" + mappedChild.key) + "/"
1014
+ ) : "") + childKey
1015
+ );
1016
+ }
1017
+ array.push(mappedChild);
1018
+ }
1019
+ return 1;
1020
+ }
1021
+ var child;
1022
+ var nextName;
1023
+ var subtreeCount = 0;
1024
+ var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1025
+ if (isArray(children)) {
1026
+ for (var i = 0; i < children.length; i++) {
1027
+ child = children[i];
1028
+ nextName = nextNamePrefix + getElementKey(child, i);
1029
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1030
+ }
1031
+ } else {
1032
+ var iteratorFn = getIteratorFn(children);
1033
+ if (typeof iteratorFn === "function") {
1034
+ var iterableChildren = children;
1035
+ {
1036
+ if (iteratorFn === iterableChildren.entries) {
1037
+ if (!didWarnAboutMaps) {
1038
+ warn2("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1039
+ }
1040
+ didWarnAboutMaps = true;
1041
+ }
1042
+ }
1043
+ var iterator = iteratorFn.call(iterableChildren);
1044
+ var step;
1045
+ var ii = 0;
1046
+ while (!(step = iterator.next()).done) {
1047
+ child = step.value;
1048
+ nextName = nextNamePrefix + getElementKey(child, ii++);
1049
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1050
+ }
1051
+ } else if (type === "object") {
1052
+ var childrenString = String(children);
1053
+ throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
1054
+ }
1055
+ }
1056
+ return subtreeCount;
1057
+ }
1058
+ function mapChildren(children, func, context) {
1059
+ if (children == null) {
1060
+ return children;
1061
+ }
1062
+ var result = [];
1063
+ var count = 0;
1064
+ mapIntoArray(children, result, "", "", function(child) {
1065
+ return func.call(context, child, count++);
1066
+ });
1067
+ return result;
1068
+ }
1069
+ function countChildren(children) {
1070
+ var n = 0;
1071
+ mapChildren(children, function() {
1072
+ n++;
1073
+ });
1074
+ return n;
1075
+ }
1076
+ function forEachChildren(children, forEachFunc, forEachContext) {
1077
+ mapChildren(children, function() {
1078
+ forEachFunc.apply(this, arguments);
1079
+ }, forEachContext);
1080
+ }
1081
+ function toArray(children) {
1082
+ return mapChildren(children, function(child) {
1083
+ return child;
1084
+ }) || [];
1085
+ }
1086
+ function onlyChild(children) {
1087
+ if (!isValidElement(children)) {
1088
+ throw new Error("React.Children.only expected to receive a single React element child.");
1089
+ }
1090
+ return children;
1091
+ }
1092
+ function createContext(defaultValue) {
1093
+ var context = {
1094
+ $$typeof: REACT_CONTEXT_TYPE,
1095
+ // As a workaround to support multiple concurrent renderers, we categorize
1096
+ // some renderers as primary and others as secondary. We only expect
1097
+ // there to be two concurrent renderers at most: React Native (primary) and
1098
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1099
+ // Secondary renderers store their context values on separate fields.
1100
+ _currentValue: defaultValue,
1101
+ _currentValue2: defaultValue,
1102
+ // Used to track how many concurrent renderers this context currently
1103
+ // supports within in a single renderer. Such as parallel server rendering.
1104
+ _threadCount: 0,
1105
+ // These are circular
1106
+ Provider: null,
1107
+ Consumer: null,
1108
+ // Add these to use same hidden class in VM as ServerContext
1109
+ _defaultValue: null,
1110
+ _globalName: null
1111
+ };
1112
+ context.Provider = {
1113
+ $$typeof: REACT_PROVIDER_TYPE,
1114
+ _context: context
1115
+ };
1116
+ var hasWarnedAboutUsingNestedContextConsumers = false;
1117
+ var hasWarnedAboutUsingConsumerProvider = false;
1118
+ var hasWarnedAboutDisplayNameOnConsumer = false;
1119
+ {
1120
+ var Consumer = {
1121
+ $$typeof: REACT_CONTEXT_TYPE,
1122
+ _context: context
1123
+ };
1124
+ Object.defineProperties(Consumer, {
1125
+ Provider: {
1126
+ get: function() {
1127
+ if (!hasWarnedAboutUsingConsumerProvider) {
1128
+ hasWarnedAboutUsingConsumerProvider = true;
1129
+ error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
1130
+ }
1131
+ return context.Provider;
1132
+ },
1133
+ set: function(_Provider) {
1134
+ context.Provider = _Provider;
1135
+ }
1136
+ },
1137
+ _currentValue: {
1138
+ get: function() {
1139
+ return context._currentValue;
1140
+ },
1141
+ set: function(_currentValue) {
1142
+ context._currentValue = _currentValue;
1143
+ }
1144
+ },
1145
+ _currentValue2: {
1146
+ get: function() {
1147
+ return context._currentValue2;
1148
+ },
1149
+ set: function(_currentValue2) {
1150
+ context._currentValue2 = _currentValue2;
1151
+ }
1152
+ },
1153
+ _threadCount: {
1154
+ get: function() {
1155
+ return context._threadCount;
1156
+ },
1157
+ set: function(_threadCount) {
1158
+ context._threadCount = _threadCount;
1159
+ }
1160
+ },
1161
+ Consumer: {
1162
+ get: function() {
1163
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
1164
+ hasWarnedAboutUsingNestedContextConsumers = true;
1165
+ error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
1166
+ }
1167
+ return context.Consumer;
1168
+ }
1169
+ },
1170
+ displayName: {
1171
+ get: function() {
1172
+ return context.displayName;
1173
+ },
1174
+ set: function(displayName) {
1175
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
1176
+ warn2("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1177
+ hasWarnedAboutDisplayNameOnConsumer = true;
1178
+ }
1179
+ }
1180
+ }
1181
+ });
1182
+ context.Consumer = Consumer;
1183
+ }
1184
+ {
1185
+ context._currentRenderer = null;
1186
+ context._currentRenderer2 = null;
1187
+ }
1188
+ return context;
1189
+ }
1190
+ var Uninitialized = -1;
1191
+ var Pending = 0;
1192
+ var Resolved = 1;
1193
+ var Rejected = 2;
1194
+ function lazyInitializer(payload) {
1195
+ if (payload._status === Uninitialized) {
1196
+ var ctor = payload._result;
1197
+ var thenable = ctor();
1198
+ thenable.then(function(moduleObject2) {
1199
+ if (payload._status === Pending || payload._status === Uninitialized) {
1200
+ var resolved = payload;
1201
+ resolved._status = Resolved;
1202
+ resolved._result = moduleObject2;
1203
+ }
1204
+ }, function(error2) {
1205
+ if (payload._status === Pending || payload._status === Uninitialized) {
1206
+ var rejected = payload;
1207
+ rejected._status = Rejected;
1208
+ rejected._result = error2;
1209
+ }
1210
+ });
1211
+ if (payload._status === Uninitialized) {
1212
+ var pending = payload;
1213
+ pending._status = Pending;
1214
+ pending._result = thenable;
1215
+ }
1216
+ }
1217
+ if (payload._status === Resolved) {
1218
+ var moduleObject = payload._result;
1219
+ {
1220
+ if (moduleObject === void 0) {
1221
+ error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
1222
+ }
1223
+ }
1224
+ {
1225
+ if (!("default" in moduleObject)) {
1226
+ error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
1227
+ }
1228
+ }
1229
+ return moduleObject.default;
1230
+ } else {
1231
+ throw payload._result;
1232
+ }
1233
+ }
1234
+ function lazy(ctor) {
1235
+ var payload = {
1236
+ // We use these fields to store the result.
1237
+ _status: Uninitialized,
1238
+ _result: ctor
1239
+ };
1240
+ var lazyType = {
1241
+ $$typeof: REACT_LAZY_TYPE,
1242
+ _payload: payload,
1243
+ _init: lazyInitializer
1244
+ };
1245
+ {
1246
+ var defaultProps;
1247
+ var propTypes;
1248
+ Object.defineProperties(lazyType, {
1249
+ defaultProps: {
1250
+ configurable: true,
1251
+ get: function() {
1252
+ return defaultProps;
1253
+ },
1254
+ set: function(newDefaultProps) {
1255
+ error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1256
+ defaultProps = newDefaultProps;
1257
+ Object.defineProperty(lazyType, "defaultProps", {
1258
+ enumerable: true
1259
+ });
1260
+ }
1261
+ },
1262
+ propTypes: {
1263
+ configurable: true,
1264
+ get: function() {
1265
+ return propTypes;
1266
+ },
1267
+ set: function(newPropTypes) {
1268
+ error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1269
+ propTypes = newPropTypes;
1270
+ Object.defineProperty(lazyType, "propTypes", {
1271
+ enumerable: true
1272
+ });
1273
+ }
1274
+ }
1275
+ });
1276
+ }
1277
+ return lazyType;
1278
+ }
1279
+ function forwardRef3(render) {
1280
+ {
1281
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1282
+ error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1283
+ } else if (typeof render !== "function") {
1284
+ error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1285
+ } else {
1286
+ if (render.length !== 0 && render.length !== 2) {
1287
+ error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
1288
+ }
1289
+ }
1290
+ if (render != null) {
1291
+ if (render.defaultProps != null || render.propTypes != null) {
1292
+ error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1293
+ }
1294
+ }
1295
+ }
1296
+ var elementType = {
1297
+ $$typeof: REACT_FORWARD_REF_TYPE,
1298
+ render
1299
+ };
1300
+ {
1301
+ var ownName;
1302
+ Object.defineProperty(elementType, "displayName", {
1303
+ enumerable: false,
1304
+ configurable: true,
1305
+ get: function() {
1306
+ return ownName;
1307
+ },
1308
+ set: function(name) {
1309
+ ownName = name;
1310
+ if (!render.name && !render.displayName) {
1311
+ render.displayName = name;
1312
+ }
1313
+ }
1314
+ });
1315
+ }
1316
+ return elementType;
1317
+ }
1318
+ var REACT_MODULE_REFERENCE;
1319
+ {
1320
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1321
+ }
1322
+ function isValidElementType(type) {
1323
+ if (typeof type === "string" || typeof type === "function") {
1324
+ return true;
1325
+ }
1326
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1327
+ return true;
1328
+ }
1329
+ if (typeof type === "object" && type !== null) {
1330
+ 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 || // This needs to include all possible module reference object
1331
+ // types supported by any Flight configuration anywhere since
1332
+ // we don't know which Flight build this will end up being used
1333
+ // with.
1334
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1335
+ return true;
1336
+ }
1337
+ }
1338
+ return false;
1339
+ }
1340
+ function memo(type, compare) {
1341
+ {
1342
+ if (!isValidElementType(type)) {
1343
+ error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1344
+ }
1345
+ }
1346
+ var elementType = {
1347
+ $$typeof: REACT_MEMO_TYPE,
1348
+ type,
1349
+ compare: compare === void 0 ? null : compare
1350
+ };
1351
+ {
1352
+ var ownName;
1353
+ Object.defineProperty(elementType, "displayName", {
1354
+ enumerable: false,
1355
+ configurable: true,
1356
+ get: function() {
1357
+ return ownName;
1358
+ },
1359
+ set: function(name) {
1360
+ ownName = name;
1361
+ if (!type.name && !type.displayName) {
1362
+ type.displayName = name;
1363
+ }
1364
+ }
1365
+ });
1366
+ }
1367
+ return elementType;
1368
+ }
1369
+ function resolveDispatcher() {
1370
+ var dispatcher = ReactCurrentDispatcher.current;
1371
+ {
1372
+ if (dispatcher === null) {
1373
+ error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
1374
+ }
1375
+ }
1376
+ return dispatcher;
1377
+ }
1378
+ function useContext(Context) {
1379
+ var dispatcher = resolveDispatcher();
1380
+ {
1381
+ if (Context._context !== void 0) {
1382
+ var realContext = Context._context;
1383
+ if (realContext.Consumer === Context) {
1384
+ error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
1385
+ } else if (realContext.Provider === Context) {
1386
+ error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1387
+ }
1388
+ }
1389
+ }
1390
+ return dispatcher.useContext(Context);
1391
+ }
1392
+ function useState(initialState) {
1393
+ var dispatcher = resolveDispatcher();
1394
+ return dispatcher.useState(initialState);
1395
+ }
1396
+ function useReducer(reducer, initialArg, init) {
1397
+ var dispatcher = resolveDispatcher();
1398
+ return dispatcher.useReducer(reducer, initialArg, init);
1399
+ }
1400
+ function useRef(initialValue) {
1401
+ var dispatcher = resolveDispatcher();
1402
+ return dispatcher.useRef(initialValue);
1403
+ }
1404
+ function useEffect(create, deps) {
1405
+ var dispatcher = resolveDispatcher();
1406
+ return dispatcher.useEffect(create, deps);
1407
+ }
1408
+ function useInsertionEffect(create, deps) {
1409
+ var dispatcher = resolveDispatcher();
1410
+ return dispatcher.useInsertionEffect(create, deps);
1411
+ }
1412
+ function useLayoutEffect(create, deps) {
1413
+ var dispatcher = resolveDispatcher();
1414
+ return dispatcher.useLayoutEffect(create, deps);
1415
+ }
1416
+ function useCallback(callback, deps) {
1417
+ var dispatcher = resolveDispatcher();
1418
+ return dispatcher.useCallback(callback, deps);
1419
+ }
1420
+ function useMemo(create, deps) {
1421
+ var dispatcher = resolveDispatcher();
1422
+ return dispatcher.useMemo(create, deps);
1423
+ }
1424
+ function useImperativeHandle(ref, create, deps) {
1425
+ var dispatcher = resolveDispatcher();
1426
+ return dispatcher.useImperativeHandle(ref, create, deps);
1427
+ }
1428
+ function useDebugValue(value, formatterFn) {
1429
+ {
1430
+ var dispatcher = resolveDispatcher();
1431
+ return dispatcher.useDebugValue(value, formatterFn);
1432
+ }
1433
+ }
1434
+ function useTransition() {
1435
+ var dispatcher = resolveDispatcher();
1436
+ return dispatcher.useTransition();
1437
+ }
1438
+ function useDeferredValue(value) {
1439
+ var dispatcher = resolveDispatcher();
1440
+ return dispatcher.useDeferredValue(value);
1441
+ }
1442
+ function useId() {
1443
+ var dispatcher = resolveDispatcher();
1444
+ return dispatcher.useId();
1445
+ }
1446
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1447
+ var dispatcher = resolveDispatcher();
1448
+ return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1449
+ }
1450
+ var disabledDepth = 0;
1451
+ var prevLog;
1452
+ var prevInfo;
1453
+ var prevWarn;
1454
+ var prevError;
1455
+ var prevGroup;
1456
+ var prevGroupCollapsed;
1457
+ var prevGroupEnd;
1458
+ function disabledLog() {
1459
+ }
1460
+ disabledLog.__reactDisabledLog = true;
1461
+ function disableLogs() {
1462
+ {
1463
+ if (disabledDepth === 0) {
1464
+ prevLog = console.log;
1465
+ prevInfo = console.info;
1466
+ prevWarn = console.warn;
1467
+ prevError = console.error;
1468
+ prevGroup = console.group;
1469
+ prevGroupCollapsed = console.groupCollapsed;
1470
+ prevGroupEnd = console.groupEnd;
1471
+ var props = {
1472
+ configurable: true,
1473
+ enumerable: true,
1474
+ value: disabledLog,
1475
+ writable: true
1476
+ };
1477
+ Object.defineProperties(console, {
1478
+ info: props,
1479
+ log: props,
1480
+ warn: props,
1481
+ error: props,
1482
+ group: props,
1483
+ groupCollapsed: props,
1484
+ groupEnd: props
1485
+ });
1486
+ }
1487
+ disabledDepth++;
1488
+ }
1489
+ }
1490
+ function reenableLogs() {
1491
+ {
1492
+ disabledDepth--;
1493
+ if (disabledDepth === 0) {
1494
+ var props = {
1495
+ configurable: true,
1496
+ enumerable: true,
1497
+ writable: true
1498
+ };
1499
+ Object.defineProperties(console, {
1500
+ log: assign({}, props, {
1501
+ value: prevLog
1502
+ }),
1503
+ info: assign({}, props, {
1504
+ value: prevInfo
1505
+ }),
1506
+ warn: assign({}, props, {
1507
+ value: prevWarn
1508
+ }),
1509
+ error: assign({}, props, {
1510
+ value: prevError
1511
+ }),
1512
+ group: assign({}, props, {
1513
+ value: prevGroup
1514
+ }),
1515
+ groupCollapsed: assign({}, props, {
1516
+ value: prevGroupCollapsed
1517
+ }),
1518
+ groupEnd: assign({}, props, {
1519
+ value: prevGroupEnd
1520
+ })
1521
+ });
1522
+ }
1523
+ if (disabledDepth < 0) {
1524
+ error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1525
+ }
1526
+ }
1527
+ }
1528
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1529
+ var prefix;
1530
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
1531
+ {
1532
+ if (prefix === void 0) {
1533
+ try {
1534
+ throw Error();
1535
+ } catch (x) {
1536
+ var match = x.stack.trim().match(/\n( *(at )?)/);
1537
+ prefix = match && match[1] || "";
1538
+ }
1539
+ }
1540
+ return "\n" + prefix + name;
1541
+ }
1542
+ }
1543
+ var reentry = false;
1544
+ var componentFrameCache;
1545
+ {
1546
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1547
+ componentFrameCache = new PossiblyWeakMap();
1548
+ }
1549
+ function describeNativeComponentFrame(fn, construct) {
1550
+ if (!fn || reentry) {
1551
+ return "";
1552
+ }
1553
+ {
1554
+ var frame = componentFrameCache.get(fn);
1555
+ if (frame !== void 0) {
1556
+ return frame;
1557
+ }
1558
+ }
1559
+ var control;
1560
+ reentry = true;
1561
+ var previousPrepareStackTrace = Error.prepareStackTrace;
1562
+ Error.prepareStackTrace = void 0;
1563
+ var previousDispatcher;
1564
+ {
1565
+ previousDispatcher = ReactCurrentDispatcher$1.current;
1566
+ ReactCurrentDispatcher$1.current = null;
1567
+ disableLogs();
1568
+ }
1569
+ try {
1570
+ if (construct) {
1571
+ var Fake = function() {
1572
+ throw Error();
1573
+ };
1574
+ Object.defineProperty(Fake.prototype, "props", {
1575
+ set: function() {
1576
+ throw Error();
1577
+ }
1578
+ });
1579
+ if (typeof Reflect === "object" && Reflect.construct) {
1580
+ try {
1581
+ Reflect.construct(Fake, []);
1582
+ } catch (x) {
1583
+ control = x;
1584
+ }
1585
+ Reflect.construct(fn, [], Fake);
1586
+ } else {
1587
+ try {
1588
+ Fake.call();
1589
+ } catch (x) {
1590
+ control = x;
1591
+ }
1592
+ fn.call(Fake.prototype);
1593
+ }
1594
+ } else {
1595
+ try {
1596
+ throw Error();
1597
+ } catch (x) {
1598
+ control = x;
1599
+ }
1600
+ fn();
1601
+ }
1602
+ } catch (sample) {
1603
+ if (sample && control && typeof sample.stack === "string") {
1604
+ var sampleLines = sample.stack.split("\n");
1605
+ var controlLines = control.stack.split("\n");
1606
+ var s = sampleLines.length - 1;
1607
+ var c = controlLines.length - 1;
1608
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1609
+ c--;
1610
+ }
1611
+ for (; s >= 1 && c >= 0; s--, c--) {
1612
+ if (sampleLines[s] !== controlLines[c]) {
1613
+ if (s !== 1 || c !== 1) {
1614
+ do {
1615
+ s--;
1616
+ c--;
1617
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
1618
+ var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1619
+ if (fn.displayName && _frame.includes("<anonymous>")) {
1620
+ _frame = _frame.replace("<anonymous>", fn.displayName);
1621
+ }
1622
+ {
1623
+ if (typeof fn === "function") {
1624
+ componentFrameCache.set(fn, _frame);
1625
+ }
1626
+ }
1627
+ return _frame;
1628
+ }
1629
+ } while (s >= 1 && c >= 0);
1630
+ }
1631
+ break;
1632
+ }
1633
+ }
1634
+ }
1635
+ } finally {
1636
+ reentry = false;
1637
+ {
1638
+ ReactCurrentDispatcher$1.current = previousDispatcher;
1639
+ reenableLogs();
1640
+ }
1641
+ Error.prepareStackTrace = previousPrepareStackTrace;
1642
+ }
1643
+ var name = fn ? fn.displayName || fn.name : "";
1644
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1645
+ {
1646
+ if (typeof fn === "function") {
1647
+ componentFrameCache.set(fn, syntheticFrame);
1648
+ }
1649
+ }
1650
+ return syntheticFrame;
1651
+ }
1652
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
1653
+ {
1654
+ return describeNativeComponentFrame(fn, false);
1655
+ }
1656
+ }
1657
+ function shouldConstruct(Component2) {
1658
+ var prototype = Component2.prototype;
1659
+ return !!(prototype && prototype.isReactComponent);
1660
+ }
1661
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1662
+ if (type == null) {
1663
+ return "";
1664
+ }
1665
+ if (typeof type === "function") {
1666
+ {
1667
+ return describeNativeComponentFrame(type, shouldConstruct(type));
1668
+ }
1669
+ }
1670
+ if (typeof type === "string") {
1671
+ return describeBuiltInComponentFrame(type);
1672
+ }
1673
+ switch (type) {
1674
+ case REACT_SUSPENSE_TYPE:
1675
+ return describeBuiltInComponentFrame("Suspense");
1676
+ case REACT_SUSPENSE_LIST_TYPE:
1677
+ return describeBuiltInComponentFrame("SuspenseList");
1678
+ }
1679
+ if (typeof type === "object") {
1680
+ switch (type.$$typeof) {
1681
+ case REACT_FORWARD_REF_TYPE:
1682
+ return describeFunctionComponentFrame(type.render);
1683
+ case REACT_MEMO_TYPE:
1684
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1685
+ case REACT_LAZY_TYPE: {
1686
+ var lazyComponent = type;
1687
+ var payload = lazyComponent._payload;
1688
+ var init = lazyComponent._init;
1689
+ try {
1690
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1691
+ } catch (x) {
1692
+ }
1693
+ }
1694
+ }
1695
+ }
1696
+ return "";
1697
+ }
1698
+ var loggedTypeFailures = {};
1699
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1700
+ function setCurrentlyValidatingElement(element) {
1701
+ {
1702
+ if (element) {
1703
+ var owner = element._owner;
1704
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1705
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1706
+ } else {
1707
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1708
+ }
1709
+ }
1710
+ }
1711
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
1712
+ {
1713
+ var has = Function.call.bind(hasOwnProperty);
1714
+ for (var typeSpecName in typeSpecs) {
1715
+ if (has(typeSpecs, typeSpecName)) {
1716
+ var error$1 = void 0;
1717
+ try {
1718
+ if (typeof typeSpecs[typeSpecName] !== "function") {
1719
+ 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`.");
1720
+ err.name = "Invariant Violation";
1721
+ throw err;
1722
+ }
1723
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1724
+ } catch (ex) {
1725
+ error$1 = ex;
1726
+ }
1727
+ if (error$1 && !(error$1 instanceof Error)) {
1728
+ setCurrentlyValidatingElement(element);
1729
+ 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);
1730
+ setCurrentlyValidatingElement(null);
1731
+ }
1732
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1733
+ loggedTypeFailures[error$1.message] = true;
1734
+ setCurrentlyValidatingElement(element);
1735
+ error("Failed %s type: %s", location, error$1.message);
1736
+ setCurrentlyValidatingElement(null);
1737
+ }
1738
+ }
1739
+ }
1740
+ }
1741
+ }
1742
+ function setCurrentlyValidatingElement$1(element) {
1743
+ {
1744
+ if (element) {
1745
+ var owner = element._owner;
1746
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1747
+ setExtraStackFrame(stack);
1748
+ } else {
1749
+ setExtraStackFrame(null);
1750
+ }
1751
+ }
1752
+ }
1753
+ var propTypesMisspellWarningShown;
1754
+ {
1755
+ propTypesMisspellWarningShown = false;
1756
+ }
1757
+ function getDeclarationErrorAddendum() {
1758
+ if (ReactCurrentOwner.current) {
1759
+ var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1760
+ if (name) {
1761
+ return "\n\nCheck the render method of `" + name + "`.";
1762
+ }
1763
+ }
1764
+ return "";
1765
+ }
1766
+ function getSourceInfoErrorAddendum(source) {
1767
+ if (source !== void 0) {
1768
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1769
+ var lineNumber = source.lineNumber;
1770
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1771
+ }
1772
+ return "";
1773
+ }
1774
+ function getSourceInfoErrorAddendumForProps(elementProps) {
1775
+ if (elementProps !== null && elementProps !== void 0) {
1776
+ return getSourceInfoErrorAddendum(elementProps.__source);
1777
+ }
1778
+ return "";
1779
+ }
1780
+ var ownerHasKeyUseWarning = {};
1781
+ function getCurrentComponentErrorInfo(parentType) {
1782
+ var info = getDeclarationErrorAddendum();
1783
+ if (!info) {
1784
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1785
+ if (parentName) {
1786
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1787
+ }
1788
+ }
1789
+ return info;
1790
+ }
1791
+ function validateExplicitKey(element, parentType) {
1792
+ if (!element._store || element._store.validated || element.key != null) {
1793
+ return;
1794
+ }
1795
+ element._store.validated = true;
1796
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1797
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1798
+ return;
1799
+ }
1800
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1801
+ var childOwner = "";
1802
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1803
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1804
+ }
1805
+ {
1806
+ setCurrentlyValidatingElement$1(element);
1807
+ 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);
1808
+ setCurrentlyValidatingElement$1(null);
1809
+ }
1810
+ }
1811
+ function validateChildKeys(node, parentType) {
1812
+ if (typeof node !== "object") {
1813
+ return;
1814
+ }
1815
+ if (isArray(node)) {
1816
+ for (var i = 0; i < node.length; i++) {
1817
+ var child = node[i];
1818
+ if (isValidElement(child)) {
1819
+ validateExplicitKey(child, parentType);
1820
+ }
1821
+ }
1822
+ } else if (isValidElement(node)) {
1823
+ if (node._store) {
1824
+ node._store.validated = true;
1825
+ }
1826
+ } else if (node) {
1827
+ var iteratorFn = getIteratorFn(node);
1828
+ if (typeof iteratorFn === "function") {
1829
+ if (iteratorFn !== node.entries) {
1830
+ var iterator = iteratorFn.call(node);
1831
+ var step;
1832
+ while (!(step = iterator.next()).done) {
1833
+ if (isValidElement(step.value)) {
1834
+ validateExplicitKey(step.value, parentType);
1835
+ }
1836
+ }
1837
+ }
1838
+ }
1839
+ }
1840
+ }
1841
+ function validatePropTypes(element) {
1842
+ {
1843
+ var type = element.type;
1844
+ if (type === null || type === void 0 || typeof type === "string") {
1845
+ return;
1846
+ }
1847
+ var propTypes;
1848
+ if (typeof type === "function") {
1849
+ propTypes = type.propTypes;
1850
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1851
+ // Inner props are checked in the reconciler.
1852
+ type.$$typeof === REACT_MEMO_TYPE)) {
1853
+ propTypes = type.propTypes;
1854
+ } else {
1855
+ return;
1856
+ }
1857
+ if (propTypes) {
1858
+ var name = getComponentNameFromType(type);
1859
+ checkPropTypes(propTypes, element.props, "prop", name, element);
1860
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1861
+ propTypesMisspellWarningShown = true;
1862
+ var _name = getComponentNameFromType(type);
1863
+ error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1864
+ }
1865
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1866
+ error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1867
+ }
1868
+ }
1869
+ }
1870
+ function validateFragmentProps(fragment) {
1871
+ {
1872
+ var keys = Object.keys(fragment.props);
1873
+ for (var i = 0; i < keys.length; i++) {
1874
+ var key = keys[i];
1875
+ if (key !== "children" && key !== "key") {
1876
+ setCurrentlyValidatingElement$1(fragment);
1877
+ error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1878
+ setCurrentlyValidatingElement$1(null);
1879
+ break;
1880
+ }
1881
+ }
1882
+ if (fragment.ref !== null) {
1883
+ setCurrentlyValidatingElement$1(fragment);
1884
+ error("Invalid attribute `ref` supplied to `React.Fragment`.");
1885
+ setCurrentlyValidatingElement$1(null);
1886
+ }
1887
+ }
1888
+ }
1889
+ function createElementWithValidation(type, props, children) {
1890
+ var validType = isValidElementType(type);
1891
+ if (!validType) {
1892
+ var info = "";
1893
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1894
+ 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.";
1895
+ }
1896
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1897
+ if (sourceInfo) {
1898
+ info += sourceInfo;
1899
+ } else {
1900
+ info += getDeclarationErrorAddendum();
1901
+ }
1902
+ var typeString;
1903
+ if (type === null) {
1904
+ typeString = "null";
1905
+ } else if (isArray(type)) {
1906
+ typeString = "array";
1907
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1908
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1909
+ info = " Did you accidentally export a JSX literal instead of a component?";
1910
+ } else {
1911
+ typeString = typeof type;
1912
+ }
1913
+ {
1914
+ error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
1915
+ }
1916
+ }
1917
+ var element = createElement.apply(this, arguments);
1918
+ if (element == null) {
1919
+ return element;
1920
+ }
1921
+ if (validType) {
1922
+ for (var i = 2; i < arguments.length; i++) {
1923
+ validateChildKeys(arguments[i], type);
1924
+ }
1925
+ }
1926
+ if (type === REACT_FRAGMENT_TYPE) {
1927
+ validateFragmentProps(element);
1928
+ } else {
1929
+ validatePropTypes(element);
1930
+ }
1931
+ return element;
1932
+ }
1933
+ var didWarnAboutDeprecatedCreateFactory = false;
1934
+ function createFactoryWithValidation(type) {
1935
+ var validatedFactory = createElementWithValidation.bind(null, type);
1936
+ validatedFactory.type = type;
1937
+ {
1938
+ if (!didWarnAboutDeprecatedCreateFactory) {
1939
+ didWarnAboutDeprecatedCreateFactory = true;
1940
+ warn2("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1941
+ }
1942
+ Object.defineProperty(validatedFactory, "type", {
1943
+ enumerable: false,
1944
+ get: function() {
1945
+ warn2("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1946
+ Object.defineProperty(this, "type", {
1947
+ value: type
1948
+ });
1949
+ return type;
1950
+ }
1951
+ });
1952
+ }
1953
+ return validatedFactory;
1954
+ }
1955
+ function cloneElementWithValidation(element, props, children) {
1956
+ var newElement = cloneElement.apply(this, arguments);
1957
+ for (var i = 2; i < arguments.length; i++) {
1958
+ validateChildKeys(arguments[i], newElement.type);
1959
+ }
1960
+ validatePropTypes(newElement);
1961
+ return newElement;
1962
+ }
1963
+ function startTransition(scope, options) {
1964
+ var prevTransition = ReactCurrentBatchConfig.transition;
1965
+ ReactCurrentBatchConfig.transition = {};
1966
+ var currentTransition = ReactCurrentBatchConfig.transition;
1967
+ {
1968
+ ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1969
+ }
1970
+ try {
1971
+ scope();
1972
+ } finally {
1973
+ ReactCurrentBatchConfig.transition = prevTransition;
1974
+ {
1975
+ if (prevTransition === null && currentTransition._updatedFibers) {
1976
+ var updatedFibersCount = currentTransition._updatedFibers.size;
1977
+ if (updatedFibersCount > 10) {
1978
+ warn2("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1979
+ }
1980
+ currentTransition._updatedFibers.clear();
1981
+ }
1982
+ }
1983
+ }
1984
+ }
1985
+ var didWarnAboutMessageChannel = false;
1986
+ var enqueueTaskImpl = null;
1987
+ function enqueueTask(task) {
1988
+ if (enqueueTaskImpl === null) {
1989
+ try {
1990
+ var requireString = ("require" + Math.random()).slice(0, 7);
1991
+ var nodeRequire = module && module[requireString];
1992
+ enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate;
1993
+ } catch (_err) {
1994
+ enqueueTaskImpl = function(callback) {
1995
+ {
1996
+ if (didWarnAboutMessageChannel === false) {
1997
+ didWarnAboutMessageChannel = true;
1998
+ if (typeof MessageChannel === "undefined") {
1999
+ error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
2000
+ }
2001
+ }
2002
+ }
2003
+ var channel = new MessageChannel();
2004
+ channel.port1.onmessage = callback;
2005
+ channel.port2.postMessage(void 0);
2006
+ };
2007
+ }
2008
+ }
2009
+ return enqueueTaskImpl(task);
2010
+ }
2011
+ var actScopeDepth = 0;
2012
+ var didWarnNoAwaitAct = false;
2013
+ function act(callback) {
2014
+ {
2015
+ var prevActScopeDepth = actScopeDepth;
2016
+ actScopeDepth++;
2017
+ if (ReactCurrentActQueue.current === null) {
2018
+ ReactCurrentActQueue.current = [];
2019
+ }
2020
+ var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2021
+ var result;
2022
+ try {
2023
+ ReactCurrentActQueue.isBatchingLegacy = true;
2024
+ result = callback();
2025
+ if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2026
+ var queue = ReactCurrentActQueue.current;
2027
+ if (queue !== null) {
2028
+ ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2029
+ flushActQueue(queue);
2030
+ }
2031
+ }
2032
+ } catch (error2) {
2033
+ popActScope(prevActScopeDepth);
2034
+ throw error2;
2035
+ } finally {
2036
+ ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2037
+ }
2038
+ if (result !== null && typeof result === "object" && typeof result.then === "function") {
2039
+ var thenableResult = result;
2040
+ var wasAwaited = false;
2041
+ var thenable = {
2042
+ then: function(resolve, reject) {
2043
+ wasAwaited = true;
2044
+ thenableResult.then(function(returnValue2) {
2045
+ popActScope(prevActScopeDepth);
2046
+ if (actScopeDepth === 0) {
2047
+ recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
2048
+ } else {
2049
+ resolve(returnValue2);
2050
+ }
2051
+ }, function(error2) {
2052
+ popActScope(prevActScopeDepth);
2053
+ reject(error2);
2054
+ });
2055
+ }
2056
+ };
2057
+ {
2058
+ if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
2059
+ Promise.resolve().then(function() {
2060
+ }).then(function() {
2061
+ if (!wasAwaited) {
2062
+ didWarnNoAwaitAct = true;
2063
+ error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
2064
+ }
2065
+ });
2066
+ }
2067
+ }
2068
+ return thenable;
2069
+ } else {
2070
+ var returnValue = result;
2071
+ popActScope(prevActScopeDepth);
2072
+ if (actScopeDepth === 0) {
2073
+ var _queue = ReactCurrentActQueue.current;
2074
+ if (_queue !== null) {
2075
+ flushActQueue(_queue);
2076
+ ReactCurrentActQueue.current = null;
2077
+ }
2078
+ var _thenable = {
2079
+ then: function(resolve, reject) {
2080
+ if (ReactCurrentActQueue.current === null) {
2081
+ ReactCurrentActQueue.current = [];
2082
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2083
+ } else {
2084
+ resolve(returnValue);
2085
+ }
2086
+ }
2087
+ };
2088
+ return _thenable;
2089
+ } else {
2090
+ var _thenable2 = {
2091
+ then: function(resolve, reject) {
2092
+ resolve(returnValue);
2093
+ }
2094
+ };
2095
+ return _thenable2;
2096
+ }
2097
+ }
2098
+ }
2099
+ }
2100
+ function popActScope(prevActScopeDepth) {
2101
+ {
2102
+ if (prevActScopeDepth !== actScopeDepth - 1) {
2103
+ error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
2104
+ }
2105
+ actScopeDepth = prevActScopeDepth;
2106
+ }
2107
+ }
2108
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2109
+ {
2110
+ var queue = ReactCurrentActQueue.current;
2111
+ if (queue !== null) {
2112
+ try {
2113
+ flushActQueue(queue);
2114
+ enqueueTask(function() {
2115
+ if (queue.length === 0) {
2116
+ ReactCurrentActQueue.current = null;
2117
+ resolve(returnValue);
2118
+ } else {
2119
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2120
+ }
2121
+ });
2122
+ } catch (error2) {
2123
+ reject(error2);
2124
+ }
2125
+ } else {
2126
+ resolve(returnValue);
2127
+ }
2128
+ }
2129
+ }
2130
+ var isFlushing = false;
2131
+ function flushActQueue(queue) {
2132
+ {
2133
+ if (!isFlushing) {
2134
+ isFlushing = true;
2135
+ var i = 0;
2136
+ try {
2137
+ for (; i < queue.length; i++) {
2138
+ var callback = queue[i];
2139
+ do {
2140
+ callback = callback(true);
2141
+ } while (callback !== null);
2142
+ }
2143
+ queue.length = 0;
2144
+ } catch (error2) {
2145
+ queue = queue.slice(i + 1);
2146
+ throw error2;
2147
+ } finally {
2148
+ isFlushing = false;
2149
+ }
2150
+ }
2151
+ }
2152
+ }
2153
+ var createElement$1 = createElementWithValidation;
2154
+ var cloneElement$1 = cloneElementWithValidation;
2155
+ var createFactory = createFactoryWithValidation;
2156
+ var Children = {
2157
+ map: mapChildren,
2158
+ forEach: forEachChildren,
2159
+ count: countChildren,
2160
+ toArray,
2161
+ only: onlyChild
2162
+ };
2163
+ exports.Children = Children;
2164
+ exports.Component = Component;
2165
+ exports.Fragment = REACT_FRAGMENT_TYPE;
2166
+ exports.Profiler = REACT_PROFILER_TYPE;
2167
+ exports.PureComponent = PureComponent;
2168
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
2169
+ exports.Suspense = REACT_SUSPENSE_TYPE;
2170
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2171
+ exports.cloneElement = cloneElement$1;
2172
+ exports.createContext = createContext;
2173
+ exports.createElement = createElement$1;
2174
+ exports.createFactory = createFactory;
2175
+ exports.createRef = createRef;
2176
+ exports.forwardRef = forwardRef3;
2177
+ exports.isValidElement = isValidElement;
2178
+ exports.lazy = lazy;
2179
+ exports.memo = memo;
2180
+ exports.startTransition = startTransition;
2181
+ exports.unstable_act = act;
2182
+ exports.useCallback = useCallback;
2183
+ exports.useContext = useContext;
2184
+ exports.useDebugValue = useDebugValue;
2185
+ exports.useDeferredValue = useDeferredValue;
2186
+ exports.useEffect = useEffect;
2187
+ exports.useId = useId;
2188
+ exports.useImperativeHandle = useImperativeHandle;
2189
+ exports.useInsertionEffect = useInsertionEffect;
2190
+ exports.useLayoutEffect = useLayoutEffect;
2191
+ exports.useMemo = useMemo;
2192
+ exports.useReducer = useReducer;
2193
+ exports.useRef = useRef;
2194
+ exports.useState = useState;
2195
+ exports.useSyncExternalStore = useSyncExternalStore;
2196
+ exports.useTransition = useTransition;
2197
+ exports.version = ReactVersion;
2198
+ if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
2199
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2200
+ }
2201
+ })();
2202
+ }
2203
+ }
2204
+ });
2205
+
2206
+ // ../../node_modules/react/index.js
2207
+ var require_react = __commonJS({
2208
+ "../../node_modules/react/index.js"(exports, module) {
2209
+ "use strict";
2210
+ if (process.env.NODE_ENV === "production") {
2211
+ module.exports = require_react_production_min();
2212
+ } else {
2213
+ module.exports = require_react_development();
2214
+ }
2215
+ }
2216
+ });
2217
+
2218
+ // ../../node_modules/classnames/index.js
2219
+ var require_classnames = __commonJS({
2220
+ "../../node_modules/classnames/index.js"(exports, module) {
2221
+ (function() {
2222
+ "use strict";
2223
+ var hasOwn = {}.hasOwnProperty;
2224
+ var nativeCodeString = "[native code]";
2225
+ function classNames2() {
2226
+ var classes = [];
2227
+ for (var i = 0; i < arguments.length; i++) {
2228
+ var arg = arguments[i];
2229
+ if (!arg)
2230
+ continue;
2231
+ var argType = typeof arg;
2232
+ if (argType === "string" || argType === "number") {
2233
+ classes.push(arg);
2234
+ } else if (Array.isArray(arg)) {
2235
+ if (arg.length) {
2236
+ var inner = classNames2.apply(null, arg);
2237
+ if (inner) {
2238
+ classes.push(inner);
2239
+ }
2240
+ }
2241
+ } else if (argType === "object") {
2242
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
2243
+ classes.push(arg.toString());
2244
+ continue;
2245
+ }
2246
+ for (var key in arg) {
2247
+ if (hasOwn.call(arg, key) && arg[key]) {
2248
+ classes.push(key);
2249
+ }
2250
+ }
2251
+ }
2252
+ }
2253
+ return classes.join(" ");
2254
+ }
2255
+ if (typeof module !== "undefined" && module.exports) {
2256
+ classNames2.default = classNames2;
2257
+ module.exports = classNames2;
2258
+ } else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
2259
+ define("classnames", [], function() {
2260
+ return classNames2;
2261
+ });
2262
+ } else {
2263
+ window.classNames = classNames2;
2264
+ }
2265
+ })();
2266
+ }
2267
+ });
2268
+
2269
+ // src/FilterButton/FilterButton/FilterButton.tsx
2270
+ var import_react3 = __toESM(require_react());
2271
+ var import_classnames3 = __toESM(require_classnames());
2272
+
2273
+ // ../component-library/icons/chevron-down.icon.svg
2274
+ var chevron_down_icon_default = "../../chevron-down.icon-COG3GAYR.svg";
2275
+
2276
+ // ../component-library/components/Icon/Icon.tsx
2277
+ var import_react = __toESM(require_react());
2278
+ var import_classnames = __toESM(require_classnames());
2279
+
2280
+ // ../component-library/util/console.ts
2281
+ var yellow = "\x1B[33m ";
2282
+ var reset = "\x1B[0m ";
2283
+ var warn = (message) => {
2284
+ console.warn(
2285
+ `${yellow}
2286
+ CULTUREAMP UI WARNING:
2287
+ ${singleLine(message)}${reset}
2288
+ `
2289
+ );
2290
+ };
2291
+ var singleLine = (message) => message.replace(/^ +/gm, " ").replace(/\n|\r/gm, "").trim();
2292
+
2293
+ // ../component-library/components/Icon/Icon.tsx
2294
+ var import_Icon_module = __toESM(__require("../../Icon.module-VD7NKLAR.scss"));
2295
+ var Icon = ({
2296
+ icon,
2297
+ inheritSize = false,
2298
+ role = "img",
2299
+ title = "",
2300
+ desc = "",
2301
+ classNameOverride,
2302
+ ...props
2303
+ }) => {
2304
+ const isMeaningfulImg = role === "img";
2305
+ if (isMeaningfulImg && !title) {
2306
+ warn(`
2307
+ Icon with role "img" missing a title attribute.
2308
+
2309
+ Assistive technologies that enable vision-impaired users to read web pages
2310
+ can treat images (including icons) as either decorative or meaningful. Only
2311
+ images with a role of "img" (meaningful) will be read aloud to the user.
2312
+ These images must therefore have a title attribute to provide the text that
2313
+ will be read aloud.
2314
+
2315
+ Either add the missing title prop, or set this icon's role to
2316
+ "presentation" to indicate it is not meaningful.
2317
+ `);
2318
+ }
2319
+ const renderTitle = () => isMeaningfulImg && !!title && /* @__PURE__ */ import_react.default.createElement("title", null, title);
2320
+ const renderDesc = () => isMeaningfulImg && !!desc && /* @__PURE__ */ import_react.default.createElement("desc", null, desc);
2321
+ const accessibilityProps = {
2322
+ role,
2323
+ ["aria-hidden"]: isMeaningfulImg ? void 0 : true
2324
+ };
2325
+ return /* @__PURE__ */ import_react.default.createElement(
2326
+ "svg",
2327
+ {
2328
+ className: (0, import_classnames.default)(import_Icon_module.default.icon, classNameOverride, {
2329
+ [import_Icon_module.default.inheritSize]: inheritSize
2330
+ }),
2331
+ viewBox: icon.viewBox,
2332
+ focusable: "false",
2333
+ ...accessibilityProps,
2334
+ ...props
2335
+ },
2336
+ renderTitle(),
2337
+ renderDesc(),
2338
+ /* @__PURE__ */ import_react.default.createElement("use", { xlinkHref: `#${icon.id}` })
2339
+ );
2340
+ };
2341
+ Icon.displayName = "Icon";
2342
+
2343
+ // ../component-library/icons/chevron-up.icon.svg
2344
+ var chevron_up_icon_default = "../../chevron-up.icon-O5VRF5BX.svg";
2345
+
2346
+ // src/utils/isRefObject.ts
2347
+ var isRefObject = (ref) => ref !== null && "current" in ref;
2348
+
2349
+ // src/FilterButton/components/FilterButtonBase/FilterButtonBase.tsx
2350
+ var import_react2 = __toESM(require_react());
2351
+ var import_classnames2 = __toESM(require_classnames());
2352
+ var import_FilterButtonBase_module = __toESM(__require("../../FilterButtonBase.module-KNRAMYSJ.scss"));
2353
+ var FilterButtonBase = (0, import_react2.forwardRef)(({ children, classNameOverride, ...restProps }, ref) => /* @__PURE__ */ import_react2.default.createElement(
2354
+ "button",
2355
+ {
2356
+ ref,
2357
+ className: (0, import_classnames2.default)(import_FilterButtonBase_module.default.filterButtonBase, classNameOverride),
2358
+ ...restProps
2359
+ },
2360
+ children
2361
+ ));
2362
+ FilterButtonBase.displayName = "FilterButtonBase";
2363
+
2364
+ // src/FilterButton/FilterButton/FilterButton.tsx
2365
+ var import_FilterButton_module = __toESM(__require("../../FilterButton.module-HA7A5HIZ.scss"));
2366
+ var FilterButton = (0, import_react3.forwardRef)(
2367
+ ({ label, selectedValue, isOpen = false, classNameOverride, ...restProps }, ref) => {
2368
+ const customRefObject = isRefObject(ref) ? ref.current : null;
2369
+ const triggerRef = customRefObject == null ? void 0 : customRefObject.triggerRef;
2370
+ const selectedValuesLabel = selectedValue;
2371
+ return /* @__PURE__ */ import_react3.default.createElement(
2372
+ FilterButtonBase,
2373
+ {
2374
+ ref: triggerRef,
2375
+ classNameOverride: (0, import_classnames3.default)(import_FilterButton_module.default.filterButton, classNameOverride),
2376
+ "aria-haspopup": "true",
2377
+ "aria-expanded": isOpen,
2378
+ ...restProps
2379
+ },
2380
+ /* @__PURE__ */ import_react3.default.createElement("span", { className: import_FilterButton_module.default.labelContainer }, selectedValuesLabel ? /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, /* @__PURE__ */ import_react3.default.createElement("span", { className: import_FilterButton_module.default.hasSelectedValues }, /* @__PURE__ */ import_react3.default.createElement("span", null, label), /* @__PURE__ */ import_react3.default.createElement("span", { className: import_FilterButton_module.default.labelSeparator }, ":")), /* @__PURE__ */ import_react3.default.createElement("span", null, selectedValuesLabel)) : label),
2381
+ /* @__PURE__ */ import_react3.default.createElement(Icon, { icon: isOpen ? chevron_up_icon_default : chevron_down_icon_default, role: "presentation" })
2382
+ );
2383
+ }
2384
+ );
2385
+ FilterButton.displayName = "FilterButton";
2386
+ })();
2387
+ /*! Bundled license information:
2388
+
2389
+ react/cjs/react.production.min.js:
2390
+ (**
2391
+ * @license React
2392
+ * react.production.min.js
2393
+ *
2394
+ * Copyright (c) Facebook, Inc. and its affiliates.
2395
+ *
2396
+ * This source code is licensed under the MIT license found in the
2397
+ * LICENSE file in the root directory of this source tree.
2398
+ *)
2399
+
2400
+ react/cjs/react.development.js:
2401
+ (**
2402
+ * @license React
2403
+ * react.development.js
2404
+ *
2405
+ * Copyright (c) Facebook, Inc. and its affiliates.
2406
+ *
2407
+ * This source code is licensed under the MIT license found in the
2408
+ * LICENSE file in the root directory of this source tree.
2409
+ *)
2410
+
2411
+ classnames/index.js:
2412
+ (*!
2413
+ Copyright (c) 2018 Jed Watson.
2414
+ Licensed under the MIT License (MIT), see
2415
+ http://jedwatson.github.io/classnames
2416
+ *)
2417
+ */