@npm_leadtech/legal-lib-components 0.3.44 → 0.3.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -1,3531 +1 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- function createCommonjsModule(fn) {
6
- var module = { exports: {} };
7
- return fn(module, module.exports), module.exports;
8
- }
9
-
10
- /*
11
- object-assign
12
- (c) Sindre Sorhus
13
- @license MIT
14
- */
15
- /* eslint-disable no-unused-vars */
16
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
17
- var hasOwnProperty = Object.prototype.hasOwnProperty;
18
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
19
-
20
- function toObject(val) {
21
- if (val === null || val === undefined) {
22
- throw new TypeError('Object.assign cannot be called with null or undefined');
23
- }
24
-
25
- return Object(val);
26
- }
27
-
28
- function shouldUseNative() {
29
- try {
30
- if (!Object.assign) {
31
- return false;
32
- }
33
-
34
- // Detect buggy property enumeration order in older V8 versions.
35
-
36
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
37
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
38
- test1[5] = 'de';
39
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
40
- return false;
41
- }
42
-
43
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
44
- var test2 = {};
45
- for (var i = 0; i < 10; i++) {
46
- test2['_' + String.fromCharCode(i)] = i;
47
- }
48
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
49
- return test2[n];
50
- });
51
- if (order2.join('') !== '0123456789') {
52
- return false;
53
- }
54
-
55
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
56
- var test3 = {};
57
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
58
- test3[letter] = letter;
59
- });
60
- if (Object.keys(Object.assign({}, test3)).join('') !==
61
- 'abcdefghijklmnopqrst') {
62
- return false;
63
- }
64
-
65
- return true;
66
- } catch (err) {
67
- // We don't expect any of the above to throw, but better to be safe.
68
- return false;
69
- }
70
- }
71
-
72
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
73
- var from;
74
- var to = toObject(target);
75
- var symbols;
76
-
77
- for (var s = 1; s < arguments.length; s++) {
78
- from = Object(arguments[s]);
79
-
80
- for (var key in from) {
81
- if (hasOwnProperty.call(from, key)) {
82
- to[key] = from[key];
83
- }
84
- }
85
-
86
- if (getOwnPropertySymbols) {
87
- symbols = getOwnPropertySymbols(from);
88
- for (var i = 0; i < symbols.length; i++) {
89
- if (propIsEnumerable.call(from, symbols[i])) {
90
- to[symbols[i]] = from[symbols[i]];
91
- }
92
- }
93
- }
94
- }
95
-
96
- return to;
97
- };
98
-
99
- /** @license React v17.0.1
100
- * react.production.min.js
101
- *
102
- * Copyright (c) Facebook, Inc. and its affiliates.
103
- *
104
- * This source code is licensed under the MIT license found in the
105
- * LICENSE file in the root directory of this source tree.
106
- */
107
-
108
- var react_production_min = createCommonjsModule(function (module, exports) {
109
- var n=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;var u=60115,v=60116;
110
- if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element");p=w("react.portal");exports.Fragment=w("react.fragment");exports.StrictMode=w("react.strict_mode");exports.Profiler=w("react.profiler");q=w("react.provider");r=w("react.context");t=w("react.forward_ref");exports.Suspense=w("react.suspense");u=w("react.memo");v=w("react.lazy");}var x="function"===typeof Symbol&&Symbol.iterator;
111
- function y(a){if(null===a||"object"!==typeof a)return null;a=x&&a[x]||a["@@iterator"];return "function"===typeof a?a:null}function z(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
112
- var A={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B={};function C(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A;}C.prototype.isReactComponent={};C.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(z(85));this.updater.enqueueSetState(this,a,b,"setState");};C.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};
113
- function D(){}D.prototype=C.prototype;function E(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A;}var F=E.prototype=new D;F.constructor=E;objectAssign(F,C.prototype);F.isPureReactComponent=!0;var G={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};
114
- function J(a,b,c){var e,d={},k=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)H.call(b,e)&&!I.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];d.children=f;}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===d[e]&&(d[e]=g[e]);return {$$typeof:n,type:a,key:k,ref:h,props:d,_owner:G.current}}
115
- function K(a,b){return {$$typeof:n,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L(a){return "object"===typeof a&&null!==a&&a.$$typeof===n}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var M=/\/+/g;function N(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
116
- function O(a,b,c,e,d){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case n:case p:h=!0;}}if(h)return h=a,d=d(h),a=""===e?"."+N(h,0):e,Array.isArray(d)?(c="",null!=a&&(c=a.replace(M,"$&/")+"/"),O(d,b,c,"",function(a){return a})):null!=d&&(L(d)&&(d=K(d,c+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(M,"$&/")+"/")+a)),b.push(d)),1;h=0;e=""===e?".":e+":";if(Array.isArray(a))for(var g=
117
- 0;g<a.length;g++){k=a[g];var f=e+N(k,g);h+=O(k,b,c,f,d);}else if(f=y(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=e+N(k,g++),h+=O(k,b,c,f,d);else if("object"===k)throw b=""+a,Error(z(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function P(a,b,c){if(null==a)return a;var e=[],d=0;O(a,e,"","",function(a){return b.call(c,a,d++)});return e}
118
- function Q(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b);},function(b){0===a._status&&(a._status=2,a._result=b);});}if(1===a._status)return a._result;throw a._result;}var R={current:null};function S(){var a=R.current;if(null===a)throw Error(z(321));return a}var T={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:objectAssign};
119
- exports.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,arguments);},c);},count:function(a){var b=0;P(a,function(){b++;});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(z(143));return a}};exports.Component=C;exports.PureComponent=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T;
120
- exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(z(267,a));var e=objectAssign({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=G.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)H.call(b,f)&&!I.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];e.children=g;}return {$$typeof:n,type:a.type,
121
- key:d,ref:k,props:e,_owner:h}};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:r,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};exports.createElement=J;exports.createFactory=function(a){var b=J.bind(null,a);b.type=a;return b};exports.createRef=function(){return {current:null}};exports.forwardRef=function(a){return {$$typeof:t,render:a}};exports.isValidElement=L;
122
- exports.lazy=function(a){return {$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};exports.memo=function(a,b){return {$$typeof:u,type:a,compare:void 0===b?null:b}};exports.useCallback=function(a,b){return S().useCallback(a,b)};exports.useContext=function(a,b){return S().useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return S().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return S().useImperativeHandle(a,b,c)};
123
- exports.useLayoutEffect=function(a,b){return S().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return S().useMemo(a,b)};exports.useReducer=function(a,b,c){return S().useReducer(a,b,c)};exports.useRef=function(a){return S().useRef(a)};exports.useState=function(a){return S().useState(a)};exports.version="17.0.1";
124
- });
125
-
126
- /** @license React v17.0.1
127
- * react.development.js
128
- *
129
- * Copyright (c) Facebook, Inc. and its affiliates.
130
- *
131
- * This source code is licensed under the MIT license found in the
132
- * LICENSE file in the root directory of this source tree.
133
- */
134
-
135
- var react_development = createCommonjsModule(function (module, exports) {
136
-
137
- if (process.env.NODE_ENV !== "production") {
138
- (function() {
139
-
140
- var _assign = objectAssign;
141
-
142
- // TODO: this is special because it gets imported during build.
143
- var ReactVersion = '17.0.1';
144
-
145
- // ATTENTION
146
- // When adding new symbols to this file,
147
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
148
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
149
- // nor polyfill, then a plain number is used for performance.
150
- var REACT_ELEMENT_TYPE = 0xeac7;
151
- var REACT_PORTAL_TYPE = 0xeaca;
152
- exports.Fragment = 0xeacb;
153
- exports.StrictMode = 0xeacc;
154
- exports.Profiler = 0xead2;
155
- var REACT_PROVIDER_TYPE = 0xeacd;
156
- var REACT_CONTEXT_TYPE = 0xeace;
157
- var REACT_FORWARD_REF_TYPE = 0xead0;
158
- exports.Suspense = 0xead1;
159
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
160
- var REACT_MEMO_TYPE = 0xead3;
161
- var REACT_LAZY_TYPE = 0xead4;
162
- var REACT_BLOCK_TYPE = 0xead9;
163
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
164
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
165
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
166
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
167
-
168
- if (typeof Symbol === 'function' && Symbol.for) {
169
- var symbolFor = Symbol.for;
170
- REACT_ELEMENT_TYPE = symbolFor('react.element');
171
- REACT_PORTAL_TYPE = symbolFor('react.portal');
172
- exports.Fragment = symbolFor('react.fragment');
173
- exports.StrictMode = symbolFor('react.strict_mode');
174
- exports.Profiler = symbolFor('react.profiler');
175
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
176
- REACT_CONTEXT_TYPE = symbolFor('react.context');
177
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
178
- exports.Suspense = symbolFor('react.suspense');
179
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
180
- REACT_MEMO_TYPE = symbolFor('react.memo');
181
- REACT_LAZY_TYPE = symbolFor('react.lazy');
182
- REACT_BLOCK_TYPE = symbolFor('react.block');
183
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
184
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
185
- symbolFor('react.scope');
186
- symbolFor('react.opaque.id');
187
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
188
- symbolFor('react.offscreen');
189
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
190
- }
191
-
192
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
193
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
194
- function getIteratorFn(maybeIterable) {
195
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
196
- return null;
197
- }
198
-
199
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
200
-
201
- if (typeof maybeIterator === 'function') {
202
- return maybeIterator;
203
- }
204
-
205
- return null;
206
- }
207
-
208
- /**
209
- * Keeps track of the current dispatcher.
210
- */
211
- var ReactCurrentDispatcher = {
212
- /**
213
- * @internal
214
- * @type {ReactComponent}
215
- */
216
- current: null
217
- };
218
-
219
- /**
220
- * Keeps track of the current batch's configuration such as how long an update
221
- * should suspend for if it needs to.
222
- */
223
- var ReactCurrentBatchConfig = {
224
- transition: 0
225
- };
226
-
227
- /**
228
- * Keeps track of the current owner.
229
- *
230
- * The current owner is the component who should own any components that are
231
- * currently being constructed.
232
- */
233
- var ReactCurrentOwner = {
234
- /**
235
- * @internal
236
- * @type {ReactComponent}
237
- */
238
- current: null
239
- };
240
-
241
- var ReactDebugCurrentFrame = {};
242
- var currentExtraStackFrame = null;
243
- function setExtraStackFrame(stack) {
244
- {
245
- currentExtraStackFrame = stack;
246
- }
247
- }
248
-
249
- {
250
- ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
251
- {
252
- currentExtraStackFrame = stack;
253
- }
254
- }; // Stack implementation injected by the current renderer.
255
-
256
-
257
- ReactDebugCurrentFrame.getCurrentStack = null;
258
-
259
- ReactDebugCurrentFrame.getStackAddendum = function () {
260
- var stack = ''; // Add an extra top frame while an element is being validated
261
-
262
- if (currentExtraStackFrame) {
263
- stack += currentExtraStackFrame;
264
- } // Delegate to the injected renderer-specific implementation
265
-
266
-
267
- var impl = ReactDebugCurrentFrame.getCurrentStack;
268
-
269
- if (impl) {
270
- stack += impl() || '';
271
- }
272
-
273
- return stack;
274
- };
275
- }
276
-
277
- /**
278
- * Used by act() to track whether you're inside an act() scope.
279
- */
280
- var IsSomeRendererActing = {
281
- current: false
282
- };
283
-
284
- var ReactSharedInternals = {
285
- ReactCurrentDispatcher: ReactCurrentDispatcher,
286
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
287
- ReactCurrentOwner: ReactCurrentOwner,
288
- IsSomeRendererActing: IsSomeRendererActing,
289
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
290
- assign: _assign
291
- };
292
-
293
- {
294
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
295
- }
296
-
297
- // by calls to these methods by a Babel plugin.
298
- //
299
- // In PROD (or in packages without access to React internals),
300
- // they are left as they are instead.
301
-
302
- function warn(format) {
303
- {
304
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
305
- args[_key - 1] = arguments[_key];
306
- }
307
-
308
- printWarning('warn', format, args);
309
- }
310
- }
311
- function error(format) {
312
- {
313
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
314
- args[_key2 - 1] = arguments[_key2];
315
- }
316
-
317
- printWarning('error', format, args);
318
- }
319
- }
320
-
321
- function printWarning(level, format, args) {
322
- // When changing this logic, you might want to also
323
- // update consoleWithStackDev.www.js as well.
324
- {
325
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
326
- var stack = ReactDebugCurrentFrame.getStackAddendum();
327
-
328
- if (stack !== '') {
329
- format += '%s';
330
- args = args.concat([stack]);
331
- }
332
-
333
- var argsWithFormat = args.map(function (item) {
334
- return '' + item;
335
- }); // Careful: RN currently depends on this prefix
336
-
337
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
338
- // breaks IE9: https://github.com/facebook/react/issues/13610
339
- // eslint-disable-next-line react-internal/no-production-logging
340
-
341
- Function.prototype.apply.call(console[level], console, argsWithFormat);
342
- }
343
- }
344
-
345
- var didWarnStateUpdateForUnmountedComponent = {};
346
-
347
- function warnNoop(publicInstance, callerName) {
348
- {
349
- var _constructor = publicInstance.constructor;
350
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
351
- var warningKey = componentName + "." + callerName;
352
-
353
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
354
- return;
355
- }
356
-
357
- 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);
358
-
359
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
360
- }
361
- }
362
- /**
363
- * This is the abstract API for an update queue.
364
- */
365
-
366
-
367
- var ReactNoopUpdateQueue = {
368
- /**
369
- * Checks whether or not this composite component is mounted.
370
- * @param {ReactClass} publicInstance The instance we want to test.
371
- * @return {boolean} True if mounted, false otherwise.
372
- * @protected
373
- * @final
374
- */
375
- isMounted: function (publicInstance) {
376
- return false;
377
- },
378
-
379
- /**
380
- * Forces an update. This should only be invoked when it is known with
381
- * certainty that we are **not** in a DOM transaction.
382
- *
383
- * You may want to call this when you know that some deeper aspect of the
384
- * component's state has changed but `setState` was not called.
385
- *
386
- * This will not invoke `shouldComponentUpdate`, but it will invoke
387
- * `componentWillUpdate` and `componentDidUpdate`.
388
- *
389
- * @param {ReactClass} publicInstance The instance that should rerender.
390
- * @param {?function} callback Called after component is updated.
391
- * @param {?string} callerName name of the calling function in the public API.
392
- * @internal
393
- */
394
- enqueueForceUpdate: function (publicInstance, callback, callerName) {
395
- warnNoop(publicInstance, 'forceUpdate');
396
- },
397
-
398
- /**
399
- * Replaces all of the state. Always use this or `setState` to mutate state.
400
- * You should treat `this.state` as immutable.
401
- *
402
- * There is no guarantee that `this.state` will be immediately updated, so
403
- * accessing `this.state` after calling this method may return the old value.
404
- *
405
- * @param {ReactClass} publicInstance The instance that should rerender.
406
- * @param {object} completeState Next state.
407
- * @param {?function} callback Called after component is updated.
408
- * @param {?string} callerName name of the calling function in the public API.
409
- * @internal
410
- */
411
- enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
412
- warnNoop(publicInstance, 'replaceState');
413
- },
414
-
415
- /**
416
- * Sets a subset of the state. This only exists because _pendingState is
417
- * internal. This provides a merging strategy that is not available to deep
418
- * properties which is confusing. TODO: Expose pendingState or don't use it
419
- * during the merge.
420
- *
421
- * @param {ReactClass} publicInstance The instance that should rerender.
422
- * @param {object} partialState Next partial state to be merged with state.
423
- * @param {?function} callback Called after component is updated.
424
- * @param {?string} Name of the calling function in the public API.
425
- * @internal
426
- */
427
- enqueueSetState: function (publicInstance, partialState, callback, callerName) {
428
- warnNoop(publicInstance, 'setState');
429
- }
430
- };
431
-
432
- var emptyObject = {};
433
-
434
- {
435
- Object.freeze(emptyObject);
436
- }
437
- /**
438
- * Base class helpers for the updating state of a component.
439
- */
440
-
441
-
442
- function Component(props, context, updater) {
443
- this.props = props;
444
- this.context = context; // If a component has string refs, we will assign a different object later.
445
-
446
- this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
447
- // renderer.
448
-
449
- this.updater = updater || ReactNoopUpdateQueue;
450
- }
451
-
452
- Component.prototype.isReactComponent = {};
453
- /**
454
- * Sets a subset of the state. Always use this to mutate
455
- * state. You should treat `this.state` as immutable.
456
- *
457
- * There is no guarantee that `this.state` will be immediately updated, so
458
- * accessing `this.state` after calling this method may return the old value.
459
- *
460
- * There is no guarantee that calls to `setState` will run synchronously,
461
- * as they may eventually be batched together. You can provide an optional
462
- * callback that will be executed when the call to setState is actually
463
- * completed.
464
- *
465
- * When a function is provided to setState, it will be called at some point in
466
- * the future (not synchronously). It will be called with the up to date
467
- * component arguments (state, props, context). These values can be different
468
- * from this.* because your function may be called after receiveProps but before
469
- * shouldComponentUpdate, and this new state, props, and context will not yet be
470
- * assigned to this.
471
- *
472
- * @param {object|function} partialState Next partial state or function to
473
- * produce next partial state to be merged with current state.
474
- * @param {?function} callback Called after state is updated.
475
- * @final
476
- * @protected
477
- */
478
-
479
- Component.prototype.setState = function (partialState, callback) {
480
- if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
481
- {
482
- throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
483
- }
484
- }
485
-
486
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
487
- };
488
- /**
489
- * Forces an update. This should only be invoked when it is known with
490
- * certainty that we are **not** in a DOM transaction.
491
- *
492
- * You may want to call this when you know that some deeper aspect of the
493
- * component's state has changed but `setState` was not called.
494
- *
495
- * This will not invoke `shouldComponentUpdate`, but it will invoke
496
- * `componentWillUpdate` and `componentDidUpdate`.
497
- *
498
- * @param {?function} callback Called after update is complete.
499
- * @final
500
- * @protected
501
- */
502
-
503
-
504
- Component.prototype.forceUpdate = function (callback) {
505
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
506
- };
507
- /**
508
- * Deprecated APIs. These APIs used to exist on classic React classes but since
509
- * we would like to deprecate them, we're not going to move them over to this
510
- * modern base class. Instead, we define a getter that warns if it's accessed.
511
- */
512
-
513
-
514
- {
515
- var deprecatedAPIs = {
516
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
517
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
518
- };
519
-
520
- var defineDeprecationWarning = function (methodName, info) {
521
- Object.defineProperty(Component.prototype, methodName, {
522
- get: function () {
523
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
524
-
525
- return undefined;
526
- }
527
- });
528
- };
529
-
530
- for (var fnName in deprecatedAPIs) {
531
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
532
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
533
- }
534
- }
535
- }
536
-
537
- function ComponentDummy() {}
538
-
539
- ComponentDummy.prototype = Component.prototype;
540
- /**
541
- * Convenience component with default shallow equality check for sCU.
542
- */
543
-
544
- function PureComponent(props, context, updater) {
545
- this.props = props;
546
- this.context = context; // If a component has string refs, we will assign a different object later.
547
-
548
- this.refs = emptyObject;
549
- this.updater = updater || ReactNoopUpdateQueue;
550
- }
551
-
552
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
553
- pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
554
-
555
- _assign(pureComponentPrototype, Component.prototype);
556
-
557
- pureComponentPrototype.isPureReactComponent = true;
558
-
559
- // an immutable object with a single mutable value
560
- function createRef() {
561
- var refObject = {
562
- current: null
563
- };
564
-
565
- {
566
- Object.seal(refObject);
567
- }
568
-
569
- return refObject;
570
- }
571
-
572
- function getWrappedName(outerType, innerType, wrapperName) {
573
- var functionName = innerType.displayName || innerType.name || '';
574
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
575
- }
576
-
577
- function getContextName(type) {
578
- return type.displayName || 'Context';
579
- }
580
-
581
- function getComponentName(type) {
582
- if (type == null) {
583
- // Host root, text node or just invalid type.
584
- return null;
585
- }
586
-
587
- {
588
- if (typeof type.tag === 'number') {
589
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
590
- }
591
- }
592
-
593
- if (typeof type === 'function') {
594
- return type.displayName || type.name || null;
595
- }
596
-
597
- if (typeof type === 'string') {
598
- return type;
599
- }
600
-
601
- switch (type) {
602
- case exports.Fragment:
603
- return 'Fragment';
604
-
605
- case REACT_PORTAL_TYPE:
606
- return 'Portal';
607
-
608
- case exports.Profiler:
609
- return 'Profiler';
610
-
611
- case exports.StrictMode:
612
- return 'StrictMode';
613
-
614
- case exports.Suspense:
615
- return 'Suspense';
616
-
617
- case REACT_SUSPENSE_LIST_TYPE:
618
- return 'SuspenseList';
619
- }
620
-
621
- if (typeof type === 'object') {
622
- switch (type.$$typeof) {
623
- case REACT_CONTEXT_TYPE:
624
- var context = type;
625
- return getContextName(context) + '.Consumer';
626
-
627
- case REACT_PROVIDER_TYPE:
628
- var provider = type;
629
- return getContextName(provider._context) + '.Provider';
630
-
631
- case REACT_FORWARD_REF_TYPE:
632
- return getWrappedName(type, type.render, 'ForwardRef');
633
-
634
- case REACT_MEMO_TYPE:
635
- return getComponentName(type.type);
636
-
637
- case REACT_BLOCK_TYPE:
638
- return getComponentName(type._render);
639
-
640
- case REACT_LAZY_TYPE:
641
- {
642
- var lazyComponent = type;
643
- var payload = lazyComponent._payload;
644
- var init = lazyComponent._init;
645
-
646
- try {
647
- return getComponentName(init(payload));
648
- } catch (x) {
649
- return null;
650
- }
651
- }
652
- }
653
- }
654
-
655
- return null;
656
- }
657
-
658
- var hasOwnProperty = Object.prototype.hasOwnProperty;
659
- var RESERVED_PROPS = {
660
- key: true,
661
- ref: true,
662
- __self: true,
663
- __source: true
664
- };
665
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
666
-
667
- {
668
- didWarnAboutStringRefs = {};
669
- }
670
-
671
- function hasValidRef(config) {
672
- {
673
- if (hasOwnProperty.call(config, 'ref')) {
674
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
675
-
676
- if (getter && getter.isReactWarning) {
677
- return false;
678
- }
679
- }
680
- }
681
-
682
- return config.ref !== undefined;
683
- }
684
-
685
- function hasValidKey(config) {
686
- {
687
- if (hasOwnProperty.call(config, 'key')) {
688
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
689
-
690
- if (getter && getter.isReactWarning) {
691
- return false;
692
- }
693
- }
694
- }
695
-
696
- return config.key !== undefined;
697
- }
698
-
699
- function defineKeyPropWarningGetter(props, displayName) {
700
- var warnAboutAccessingKey = function () {
701
- {
702
- if (!specialPropKeyWarningShown) {
703
- specialPropKeyWarningShown = true;
704
-
705
- 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);
706
- }
707
- }
708
- };
709
-
710
- warnAboutAccessingKey.isReactWarning = true;
711
- Object.defineProperty(props, 'key', {
712
- get: warnAboutAccessingKey,
713
- configurable: true
714
- });
715
- }
716
-
717
- function defineRefPropWarningGetter(props, displayName) {
718
- var warnAboutAccessingRef = function () {
719
- {
720
- if (!specialPropRefWarningShown) {
721
- specialPropRefWarningShown = true;
722
-
723
- 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);
724
- }
725
- }
726
- };
727
-
728
- warnAboutAccessingRef.isReactWarning = true;
729
- Object.defineProperty(props, 'ref', {
730
- get: warnAboutAccessingRef,
731
- configurable: true
732
- });
733
- }
734
-
735
- function warnIfStringRefCannotBeAutoConverted(config) {
736
- {
737
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
738
- var componentName = getComponentName(ReactCurrentOwner.current.type);
739
-
740
- if (!didWarnAboutStringRefs[componentName]) {
741
- 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);
742
-
743
- didWarnAboutStringRefs[componentName] = true;
744
- }
745
- }
746
- }
747
- }
748
- /**
749
- * Factory method to create a new React element. This no longer adheres to
750
- * the class pattern, so do not use new to call it. Also, instanceof check
751
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
752
- * if something is a React Element.
753
- *
754
- * @param {*} type
755
- * @param {*} props
756
- * @param {*} key
757
- * @param {string|object} ref
758
- * @param {*} owner
759
- * @param {*} self A *temporary* helper to detect places where `this` is
760
- * different from the `owner` when React.createElement is called, so that we
761
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
762
- * functions, and as long as `this` and owner are the same, there will be no
763
- * change in behavior.
764
- * @param {*} source An annotation object (added by a transpiler or otherwise)
765
- * indicating filename, line number, and/or other information.
766
- * @internal
767
- */
768
-
769
-
770
- var ReactElement = function (type, key, ref, self, source, owner, props) {
771
- var element = {
772
- // This tag allows us to uniquely identify this as a React Element
773
- $$typeof: REACT_ELEMENT_TYPE,
774
- // Built-in properties that belong on the element
775
- type: type,
776
- key: key,
777
- ref: ref,
778
- props: props,
779
- // Record the component responsible for creating this element.
780
- _owner: owner
781
- };
782
-
783
- {
784
- // The validation flag is currently mutative. We put it on
785
- // an external backing store so that we can freeze the whole object.
786
- // This can be replaced with a WeakMap once they are implemented in
787
- // commonly used development environments.
788
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
789
- // the validation flag non-enumerable (where possible, which should
790
- // include every environment we run tests in), so the test framework
791
- // ignores it.
792
-
793
- Object.defineProperty(element._store, 'validated', {
794
- configurable: false,
795
- enumerable: false,
796
- writable: true,
797
- value: false
798
- }); // self and source are DEV only properties.
799
-
800
- Object.defineProperty(element, '_self', {
801
- configurable: false,
802
- enumerable: false,
803
- writable: false,
804
- value: self
805
- }); // Two elements created in two different places should be considered
806
- // equal for testing purposes and therefore we hide it from enumeration.
807
-
808
- Object.defineProperty(element, '_source', {
809
- configurable: false,
810
- enumerable: false,
811
- writable: false,
812
- value: source
813
- });
814
-
815
- if (Object.freeze) {
816
- Object.freeze(element.props);
817
- Object.freeze(element);
818
- }
819
- }
820
-
821
- return element;
822
- };
823
- /**
824
- * Create and return a new ReactElement of the given type.
825
- * See https://reactjs.org/docs/react-api.html#createelement
826
- */
827
-
828
- function createElement(type, config, children) {
829
- var propName; // Reserved names are extracted
830
-
831
- var props = {};
832
- var key = null;
833
- var ref = null;
834
- var self = null;
835
- var source = null;
836
-
837
- if (config != null) {
838
- if (hasValidRef(config)) {
839
- ref = config.ref;
840
-
841
- {
842
- warnIfStringRefCannotBeAutoConverted(config);
843
- }
844
- }
845
-
846
- if (hasValidKey(config)) {
847
- key = '' + config.key;
848
- }
849
-
850
- self = config.__self === undefined ? null : config.__self;
851
- source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
852
-
853
- for (propName in config) {
854
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
855
- props[propName] = config[propName];
856
- }
857
- }
858
- } // Children can be more than one argument, and those are transferred onto
859
- // the newly allocated props object.
860
-
861
-
862
- var childrenLength = arguments.length - 2;
863
-
864
- if (childrenLength === 1) {
865
- props.children = children;
866
- } else if (childrenLength > 1) {
867
- var childArray = Array(childrenLength);
868
-
869
- for (var i = 0; i < childrenLength; i++) {
870
- childArray[i] = arguments[i + 2];
871
- }
872
-
873
- {
874
- if (Object.freeze) {
875
- Object.freeze(childArray);
876
- }
877
- }
878
-
879
- props.children = childArray;
880
- } // Resolve default props
881
-
882
-
883
- if (type && type.defaultProps) {
884
- var defaultProps = type.defaultProps;
885
-
886
- for (propName in defaultProps) {
887
- if (props[propName] === undefined) {
888
- props[propName] = defaultProps[propName];
889
- }
890
- }
891
- }
892
-
893
- {
894
- if (key || ref) {
895
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
896
-
897
- if (key) {
898
- defineKeyPropWarningGetter(props, displayName);
899
- }
900
-
901
- if (ref) {
902
- defineRefPropWarningGetter(props, displayName);
903
- }
904
- }
905
- }
906
-
907
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
908
- }
909
- function cloneAndReplaceKey(oldElement, newKey) {
910
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
911
- return newElement;
912
- }
913
- /**
914
- * Clone and return a new ReactElement using element as the starting point.
915
- * See https://reactjs.org/docs/react-api.html#cloneelement
916
- */
917
-
918
- function cloneElement(element, config, children) {
919
- if (!!(element === null || element === undefined)) {
920
- {
921
- throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
922
- }
923
- }
924
-
925
- var propName; // Original props are copied
926
-
927
- var props = _assign({}, element.props); // Reserved names are extracted
928
-
929
-
930
- var key = element.key;
931
- var ref = element.ref; // Self is preserved since the owner is preserved.
932
-
933
- var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
934
- // transpiler, and the original source is probably a better indicator of the
935
- // true owner.
936
-
937
- var source = element._source; // Owner will be preserved, unless ref is overridden
938
-
939
- var owner = element._owner;
940
-
941
- if (config != null) {
942
- if (hasValidRef(config)) {
943
- // Silently steal the ref from the parent.
944
- ref = config.ref;
945
- owner = ReactCurrentOwner.current;
946
- }
947
-
948
- if (hasValidKey(config)) {
949
- key = '' + config.key;
950
- } // Remaining properties override existing props
951
-
952
-
953
- var defaultProps;
954
-
955
- if (element.type && element.type.defaultProps) {
956
- defaultProps = element.type.defaultProps;
957
- }
958
-
959
- for (propName in config) {
960
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
961
- if (config[propName] === undefined && defaultProps !== undefined) {
962
- // Resolve default props
963
- props[propName] = defaultProps[propName];
964
- } else {
965
- props[propName] = config[propName];
966
- }
967
- }
968
- }
969
- } // Children can be more than one argument, and those are transferred onto
970
- // the newly allocated props object.
971
-
972
-
973
- var childrenLength = arguments.length - 2;
974
-
975
- if (childrenLength === 1) {
976
- props.children = children;
977
- } else if (childrenLength > 1) {
978
- var childArray = Array(childrenLength);
979
-
980
- for (var i = 0; i < childrenLength; i++) {
981
- childArray[i] = arguments[i + 2];
982
- }
983
-
984
- props.children = childArray;
985
- }
986
-
987
- return ReactElement(element.type, key, ref, self, source, owner, props);
988
- }
989
- /**
990
- * Verifies the object is a ReactElement.
991
- * See https://reactjs.org/docs/react-api.html#isvalidelement
992
- * @param {?object} object
993
- * @return {boolean} True if `object` is a ReactElement.
994
- * @final
995
- */
996
-
997
- function isValidElement(object) {
998
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
999
- }
1000
-
1001
- var SEPARATOR = '.';
1002
- var SUBSEPARATOR = ':';
1003
- /**
1004
- * Escape and wrap key so it is safe to use as a reactid
1005
- *
1006
- * @param {string} key to be escaped.
1007
- * @return {string} the escaped key.
1008
- */
1009
-
1010
- function escape(key) {
1011
- var escapeRegex = /[=:]/g;
1012
- var escaperLookup = {
1013
- '=': '=0',
1014
- ':': '=2'
1015
- };
1016
- var escapedString = key.replace(escapeRegex, function (match) {
1017
- return escaperLookup[match];
1018
- });
1019
- return '$' + escapedString;
1020
- }
1021
- /**
1022
- * TODO: Test that a single child and an array with one item have the same key
1023
- * pattern.
1024
- */
1025
-
1026
-
1027
- var didWarnAboutMaps = false;
1028
- var userProvidedKeyEscapeRegex = /\/+/g;
1029
-
1030
- function escapeUserProvidedKey(text) {
1031
- return text.replace(userProvidedKeyEscapeRegex, '$&/');
1032
- }
1033
- /**
1034
- * Generate a key string that identifies a element within a set.
1035
- *
1036
- * @param {*} element A element that could contain a manual key.
1037
- * @param {number} index Index that is used if a manual key is not provided.
1038
- * @return {string}
1039
- */
1040
-
1041
-
1042
- function getElementKey(element, index) {
1043
- // Do some typechecking here since we call this blindly. We want to ensure
1044
- // that we don't block potential future ES APIs.
1045
- if (typeof element === 'object' && element !== null && element.key != null) {
1046
- // Explicit key
1047
- return escape('' + element.key);
1048
- } // Implicit key determined by the index in the set
1049
-
1050
-
1051
- return index.toString(36);
1052
- }
1053
-
1054
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1055
- var type = typeof children;
1056
-
1057
- if (type === 'undefined' || type === 'boolean') {
1058
- // All of the above are perceived as null.
1059
- children = null;
1060
- }
1061
-
1062
- var invokeCallback = false;
1063
-
1064
- if (children === null) {
1065
- invokeCallback = true;
1066
- } else {
1067
- switch (type) {
1068
- case 'string':
1069
- case 'number':
1070
- invokeCallback = true;
1071
- break;
1072
-
1073
- case 'object':
1074
- switch (children.$$typeof) {
1075
- case REACT_ELEMENT_TYPE:
1076
- case REACT_PORTAL_TYPE:
1077
- invokeCallback = true;
1078
- }
1079
-
1080
- }
1081
- }
1082
-
1083
- if (invokeCallback) {
1084
- var _child = children;
1085
- var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
1086
- // so that it's consistent if the number of children grows:
1087
-
1088
- var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1089
-
1090
- if (Array.isArray(mappedChild)) {
1091
- var escapedChildKey = '';
1092
-
1093
- if (childKey != null) {
1094
- escapedChildKey = escapeUserProvidedKey(childKey) + '/';
1095
- }
1096
-
1097
- mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
1098
- return c;
1099
- });
1100
- } else if (mappedChild != null) {
1101
- if (isValidElement(mappedChild)) {
1102
- mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
1103
- // traverseAllChildren used to do for objects as children
1104
- escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1105
- mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1106
- escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
1107
- }
1108
-
1109
- array.push(mappedChild);
1110
- }
1111
-
1112
- return 1;
1113
- }
1114
-
1115
- var child;
1116
- var nextName;
1117
- var subtreeCount = 0; // Count of children found in the current subtree.
1118
-
1119
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1120
-
1121
- if (Array.isArray(children)) {
1122
- for (var i = 0; i < children.length; i++) {
1123
- child = children[i];
1124
- nextName = nextNamePrefix + getElementKey(child, i);
1125
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1126
- }
1127
- } else {
1128
- var iteratorFn = getIteratorFn(children);
1129
-
1130
- if (typeof iteratorFn === 'function') {
1131
- var iterableChildren = children;
1132
-
1133
- {
1134
- // Warn about using Maps as children
1135
- if (iteratorFn === iterableChildren.entries) {
1136
- if (!didWarnAboutMaps) {
1137
- warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
1138
- }
1139
-
1140
- didWarnAboutMaps = true;
1141
- }
1142
- }
1143
-
1144
- var iterator = iteratorFn.call(iterableChildren);
1145
- var step;
1146
- var ii = 0;
1147
-
1148
- while (!(step = iterator.next()).done) {
1149
- child = step.value;
1150
- nextName = nextNamePrefix + getElementKey(child, ii++);
1151
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1152
- }
1153
- } else if (type === 'object') {
1154
- var childrenString = '' + children;
1155
-
1156
- {
1157
- {
1158
- throw 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." );
1159
- }
1160
- }
1161
- }
1162
- }
1163
-
1164
- return subtreeCount;
1165
- }
1166
-
1167
- /**
1168
- * Maps children that are typically specified as `props.children`.
1169
- *
1170
- * See https://reactjs.org/docs/react-api.html#reactchildrenmap
1171
- *
1172
- * The provided mapFunction(child, index) will be called for each
1173
- * leaf child.
1174
- *
1175
- * @param {?*} children Children tree container.
1176
- * @param {function(*, int)} func The map function.
1177
- * @param {*} context Context for mapFunction.
1178
- * @return {object} Object containing the ordered map of results.
1179
- */
1180
- function mapChildren(children, func, context) {
1181
- if (children == null) {
1182
- return children;
1183
- }
1184
-
1185
- var result = [];
1186
- var count = 0;
1187
- mapIntoArray(children, result, '', '', function (child) {
1188
- return func.call(context, child, count++);
1189
- });
1190
- return result;
1191
- }
1192
- /**
1193
- * Count the number of children that are typically specified as
1194
- * `props.children`.
1195
- *
1196
- * See https://reactjs.org/docs/react-api.html#reactchildrencount
1197
- *
1198
- * @param {?*} children Children tree container.
1199
- * @return {number} The number of children.
1200
- */
1201
-
1202
-
1203
- function countChildren(children) {
1204
- var n = 0;
1205
- mapChildren(children, function () {
1206
- n++; // Don't return anything
1207
- });
1208
- return n;
1209
- }
1210
-
1211
- /**
1212
- * Iterates through children that are typically specified as `props.children`.
1213
- *
1214
- * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
1215
- *
1216
- * The provided forEachFunc(child, index) will be called for each
1217
- * leaf child.
1218
- *
1219
- * @param {?*} children Children tree container.
1220
- * @param {function(*, int)} forEachFunc
1221
- * @param {*} forEachContext Context for forEachContext.
1222
- */
1223
- function forEachChildren(children, forEachFunc, forEachContext) {
1224
- mapChildren(children, function () {
1225
- forEachFunc.apply(this, arguments); // Don't return anything.
1226
- }, forEachContext);
1227
- }
1228
- /**
1229
- * Flatten a children object (typically specified as `props.children`) and
1230
- * return an array with appropriately re-keyed children.
1231
- *
1232
- * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
1233
- */
1234
-
1235
-
1236
- function toArray(children) {
1237
- return mapChildren(children, function (child) {
1238
- return child;
1239
- }) || [];
1240
- }
1241
- /**
1242
- * Returns the first child in a collection of children and verifies that there
1243
- * is only one child in the collection.
1244
- *
1245
- * See https://reactjs.org/docs/react-api.html#reactchildrenonly
1246
- *
1247
- * The current implementation of this function assumes that a single child gets
1248
- * passed without a wrapper, but the purpose of this helper function is to
1249
- * abstract away the particular structure of children.
1250
- *
1251
- * @param {?object} children Child collection structure.
1252
- * @return {ReactElement} The first and only `ReactElement` contained in the
1253
- * structure.
1254
- */
1255
-
1256
-
1257
- function onlyChild(children) {
1258
- if (!isValidElement(children)) {
1259
- {
1260
- throw Error( "React.Children.only expected to receive a single React element child." );
1261
- }
1262
- }
1263
-
1264
- return children;
1265
- }
1266
-
1267
- function createContext(defaultValue, calculateChangedBits) {
1268
- if (calculateChangedBits === undefined) {
1269
- calculateChangedBits = null;
1270
- } else {
1271
- {
1272
- if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
1273
- error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
1274
- }
1275
- }
1276
- }
1277
-
1278
- var context = {
1279
- $$typeof: REACT_CONTEXT_TYPE,
1280
- _calculateChangedBits: calculateChangedBits,
1281
- // As a workaround to support multiple concurrent renderers, we categorize
1282
- // some renderers as primary and others as secondary. We only expect
1283
- // there to be two concurrent renderers at most: React Native (primary) and
1284
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1285
- // Secondary renderers store their context values on separate fields.
1286
- _currentValue: defaultValue,
1287
- _currentValue2: defaultValue,
1288
- // Used to track how many concurrent renderers this context currently
1289
- // supports within in a single renderer. Such as parallel server rendering.
1290
- _threadCount: 0,
1291
- // These are circular
1292
- Provider: null,
1293
- Consumer: null
1294
- };
1295
- context.Provider = {
1296
- $$typeof: REACT_PROVIDER_TYPE,
1297
- _context: context
1298
- };
1299
- var hasWarnedAboutUsingNestedContextConsumers = false;
1300
- var hasWarnedAboutUsingConsumerProvider = false;
1301
- var hasWarnedAboutDisplayNameOnConsumer = false;
1302
-
1303
- {
1304
- // A separate object, but proxies back to the original context object for
1305
- // backwards compatibility. It has a different $$typeof, so we can properly
1306
- // warn for the incorrect usage of Context as a Consumer.
1307
- var Consumer = {
1308
- $$typeof: REACT_CONTEXT_TYPE,
1309
- _context: context,
1310
- _calculateChangedBits: context._calculateChangedBits
1311
- }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
1312
-
1313
- Object.defineProperties(Consumer, {
1314
- Provider: {
1315
- get: function () {
1316
- if (!hasWarnedAboutUsingConsumerProvider) {
1317
- hasWarnedAboutUsingConsumerProvider = true;
1318
-
1319
- 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?');
1320
- }
1321
-
1322
- return context.Provider;
1323
- },
1324
- set: function (_Provider) {
1325
- context.Provider = _Provider;
1326
- }
1327
- },
1328
- _currentValue: {
1329
- get: function () {
1330
- return context._currentValue;
1331
- },
1332
- set: function (_currentValue) {
1333
- context._currentValue = _currentValue;
1334
- }
1335
- },
1336
- _currentValue2: {
1337
- get: function () {
1338
- return context._currentValue2;
1339
- },
1340
- set: function (_currentValue2) {
1341
- context._currentValue2 = _currentValue2;
1342
- }
1343
- },
1344
- _threadCount: {
1345
- get: function () {
1346
- return context._threadCount;
1347
- },
1348
- set: function (_threadCount) {
1349
- context._threadCount = _threadCount;
1350
- }
1351
- },
1352
- Consumer: {
1353
- get: function () {
1354
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1355
- hasWarnedAboutUsingNestedContextConsumers = true;
1356
-
1357
- 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?');
1358
- }
1359
-
1360
- return context.Consumer;
1361
- }
1362
- },
1363
- displayName: {
1364
- get: function () {
1365
- return context.displayName;
1366
- },
1367
- set: function (displayName) {
1368
- if (!hasWarnedAboutDisplayNameOnConsumer) {
1369
- warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
1370
-
1371
- hasWarnedAboutDisplayNameOnConsumer = true;
1372
- }
1373
- }
1374
- }
1375
- }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
1376
-
1377
- context.Consumer = Consumer;
1378
- }
1379
-
1380
- {
1381
- context._currentRenderer = null;
1382
- context._currentRenderer2 = null;
1383
- }
1384
-
1385
- return context;
1386
- }
1387
-
1388
- var Uninitialized = -1;
1389
- var Pending = 0;
1390
- var Resolved = 1;
1391
- var Rejected = 2;
1392
-
1393
- function lazyInitializer(payload) {
1394
- if (payload._status === Uninitialized) {
1395
- var ctor = payload._result;
1396
- var thenable = ctor(); // Transition to the next state.
1397
-
1398
- var pending = payload;
1399
- pending._status = Pending;
1400
- pending._result = thenable;
1401
- thenable.then(function (moduleObject) {
1402
- if (payload._status === Pending) {
1403
- var defaultExport = moduleObject.default;
1404
-
1405
- {
1406
- if (defaultExport === undefined) {
1407
- error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
1408
- 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
1409
- }
1410
- } // Transition to the next state.
1411
-
1412
-
1413
- var resolved = payload;
1414
- resolved._status = Resolved;
1415
- resolved._result = defaultExport;
1416
- }
1417
- }, function (error) {
1418
- if (payload._status === Pending) {
1419
- // Transition to the next state.
1420
- var rejected = payload;
1421
- rejected._status = Rejected;
1422
- rejected._result = error;
1423
- }
1424
- });
1425
- }
1426
-
1427
- if (payload._status === Resolved) {
1428
- return payload._result;
1429
- } else {
1430
- throw payload._result;
1431
- }
1432
- }
1433
-
1434
- function lazy(ctor) {
1435
- var payload = {
1436
- // We use these fields to store the result.
1437
- _status: -1,
1438
- _result: ctor
1439
- };
1440
- var lazyType = {
1441
- $$typeof: REACT_LAZY_TYPE,
1442
- _payload: payload,
1443
- _init: lazyInitializer
1444
- };
1445
-
1446
- {
1447
- // In production, this would just set it on the object.
1448
- var defaultProps;
1449
- var propTypes; // $FlowFixMe
1450
-
1451
- Object.defineProperties(lazyType, {
1452
- defaultProps: {
1453
- configurable: true,
1454
- get: function () {
1455
- return defaultProps;
1456
- },
1457
- set: function (newDefaultProps) {
1458
- 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.');
1459
-
1460
- defaultProps = newDefaultProps; // Match production behavior more closely:
1461
- // $FlowFixMe
1462
-
1463
- Object.defineProperty(lazyType, 'defaultProps', {
1464
- enumerable: true
1465
- });
1466
- }
1467
- },
1468
- propTypes: {
1469
- configurable: true,
1470
- get: function () {
1471
- return propTypes;
1472
- },
1473
- set: function (newPropTypes) {
1474
- 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.');
1475
-
1476
- propTypes = newPropTypes; // Match production behavior more closely:
1477
- // $FlowFixMe
1478
-
1479
- Object.defineProperty(lazyType, 'propTypes', {
1480
- enumerable: true
1481
- });
1482
- }
1483
- }
1484
- });
1485
- }
1486
-
1487
- return lazyType;
1488
- }
1489
-
1490
- function forwardRef(render) {
1491
- {
1492
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1493
- error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
1494
- } else if (typeof render !== 'function') {
1495
- error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
1496
- } else {
1497
- if (render.length !== 0 && render.length !== 2) {
1498
- 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.');
1499
- }
1500
- }
1501
-
1502
- if (render != null) {
1503
- if (render.defaultProps != null || render.propTypes != null) {
1504
- error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
1505
- }
1506
- }
1507
- }
1508
-
1509
- var elementType = {
1510
- $$typeof: REACT_FORWARD_REF_TYPE,
1511
- render: render
1512
- };
1513
-
1514
- {
1515
- var ownName;
1516
- Object.defineProperty(elementType, 'displayName', {
1517
- enumerable: false,
1518
- configurable: true,
1519
- get: function () {
1520
- return ownName;
1521
- },
1522
- set: function (name) {
1523
- ownName = name;
1524
-
1525
- if (render.displayName == null) {
1526
- render.displayName = name;
1527
- }
1528
- }
1529
- });
1530
- }
1531
-
1532
- return elementType;
1533
- }
1534
-
1535
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
1536
-
1537
- var enableScopeAPI = false; // Experimental Create Event Handle API.
1538
-
1539
- function isValidElementType(type) {
1540
- if (typeof type === 'string' || typeof type === 'function') {
1541
- return true;
1542
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1543
-
1544
-
1545
- if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
1546
- return true;
1547
- }
1548
-
1549
- if (typeof type === 'object' && type !== null) {
1550
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
1551
- return true;
1552
- }
1553
- }
1554
-
1555
- return false;
1556
- }
1557
-
1558
- function memo(type, compare) {
1559
- {
1560
- if (!isValidElementType(type)) {
1561
- error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
1562
- }
1563
- }
1564
-
1565
- var elementType = {
1566
- $$typeof: REACT_MEMO_TYPE,
1567
- type: type,
1568
- compare: compare === undefined ? null : compare
1569
- };
1570
-
1571
- {
1572
- var ownName;
1573
- Object.defineProperty(elementType, 'displayName', {
1574
- enumerable: false,
1575
- configurable: true,
1576
- get: function () {
1577
- return ownName;
1578
- },
1579
- set: function (name) {
1580
- ownName = name;
1581
-
1582
- if (type.displayName == null) {
1583
- type.displayName = name;
1584
- }
1585
- }
1586
- });
1587
- }
1588
-
1589
- return elementType;
1590
- }
1591
-
1592
- function resolveDispatcher() {
1593
- var dispatcher = ReactCurrentDispatcher.current;
1594
-
1595
- if (!(dispatcher !== null)) {
1596
- {
1597
- throw 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." );
1598
- }
1599
- }
1600
-
1601
- return dispatcher;
1602
- }
1603
-
1604
- function useContext(Context, unstable_observedBits) {
1605
- var dispatcher = resolveDispatcher();
1606
-
1607
- {
1608
- if (unstable_observedBits !== undefined) {
1609
- error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');
1610
- } // TODO: add a more generic warning for invalid values.
1611
-
1612
-
1613
- if (Context._context !== undefined) {
1614
- var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
1615
- // and nobody should be using this in existing code.
1616
-
1617
- if (realContext.Consumer === Context) {
1618
- 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?');
1619
- } else if (realContext.Provider === Context) {
1620
- error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
1621
- }
1622
- }
1623
- }
1624
-
1625
- return dispatcher.useContext(Context, unstable_observedBits);
1626
- }
1627
- function useState(initialState) {
1628
- var dispatcher = resolveDispatcher();
1629
- return dispatcher.useState(initialState);
1630
- }
1631
- function useReducer(reducer, initialArg, init) {
1632
- var dispatcher = resolveDispatcher();
1633
- return dispatcher.useReducer(reducer, initialArg, init);
1634
- }
1635
- function useRef(initialValue) {
1636
- var dispatcher = resolveDispatcher();
1637
- return dispatcher.useRef(initialValue);
1638
- }
1639
- function useEffect(create, deps) {
1640
- var dispatcher = resolveDispatcher();
1641
- return dispatcher.useEffect(create, deps);
1642
- }
1643
- function useLayoutEffect(create, deps) {
1644
- var dispatcher = resolveDispatcher();
1645
- return dispatcher.useLayoutEffect(create, deps);
1646
- }
1647
- function useCallback(callback, deps) {
1648
- var dispatcher = resolveDispatcher();
1649
- return dispatcher.useCallback(callback, deps);
1650
- }
1651
- function useMemo(create, deps) {
1652
- var dispatcher = resolveDispatcher();
1653
- return dispatcher.useMemo(create, deps);
1654
- }
1655
- function useImperativeHandle(ref, create, deps) {
1656
- var dispatcher = resolveDispatcher();
1657
- return dispatcher.useImperativeHandle(ref, create, deps);
1658
- }
1659
- function useDebugValue(value, formatterFn) {
1660
- {
1661
- var dispatcher = resolveDispatcher();
1662
- return dispatcher.useDebugValue(value, formatterFn);
1663
- }
1664
- }
1665
-
1666
- // Helpers to patch console.logs to avoid logging during side-effect free
1667
- // replaying on render function. This currently only patches the object
1668
- // lazily which won't cover if the log function was extracted eagerly.
1669
- // We could also eagerly patch the method.
1670
- var disabledDepth = 0;
1671
- var prevLog;
1672
- var prevInfo;
1673
- var prevWarn;
1674
- var prevError;
1675
- var prevGroup;
1676
- var prevGroupCollapsed;
1677
- var prevGroupEnd;
1678
-
1679
- function disabledLog() {}
1680
-
1681
- disabledLog.__reactDisabledLog = true;
1682
- function disableLogs() {
1683
- {
1684
- if (disabledDepth === 0) {
1685
- /* eslint-disable react-internal/no-production-logging */
1686
- prevLog = console.log;
1687
- prevInfo = console.info;
1688
- prevWarn = console.warn;
1689
- prevError = console.error;
1690
- prevGroup = console.group;
1691
- prevGroupCollapsed = console.groupCollapsed;
1692
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
1693
-
1694
- var props = {
1695
- configurable: true,
1696
- enumerable: true,
1697
- value: disabledLog,
1698
- writable: true
1699
- }; // $FlowFixMe Flow thinks console is immutable.
1700
-
1701
- Object.defineProperties(console, {
1702
- info: props,
1703
- log: props,
1704
- warn: props,
1705
- error: props,
1706
- group: props,
1707
- groupCollapsed: props,
1708
- groupEnd: props
1709
- });
1710
- /* eslint-enable react-internal/no-production-logging */
1711
- }
1712
-
1713
- disabledDepth++;
1714
- }
1715
- }
1716
- function reenableLogs() {
1717
- {
1718
- disabledDepth--;
1719
-
1720
- if (disabledDepth === 0) {
1721
- /* eslint-disable react-internal/no-production-logging */
1722
- var props = {
1723
- configurable: true,
1724
- enumerable: true,
1725
- writable: true
1726
- }; // $FlowFixMe Flow thinks console is immutable.
1727
-
1728
- Object.defineProperties(console, {
1729
- log: _assign({}, props, {
1730
- value: prevLog
1731
- }),
1732
- info: _assign({}, props, {
1733
- value: prevInfo
1734
- }),
1735
- warn: _assign({}, props, {
1736
- value: prevWarn
1737
- }),
1738
- error: _assign({}, props, {
1739
- value: prevError
1740
- }),
1741
- group: _assign({}, props, {
1742
- value: prevGroup
1743
- }),
1744
- groupCollapsed: _assign({}, props, {
1745
- value: prevGroupCollapsed
1746
- }),
1747
- groupEnd: _assign({}, props, {
1748
- value: prevGroupEnd
1749
- })
1750
- });
1751
- /* eslint-enable react-internal/no-production-logging */
1752
- }
1753
-
1754
- if (disabledDepth < 0) {
1755
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
1756
- }
1757
- }
1758
- }
1759
-
1760
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1761
- var prefix;
1762
- function describeBuiltInComponentFrame(name, source, ownerFn) {
1763
- {
1764
- if (prefix === undefined) {
1765
- // Extract the VM specific prefix used by each line.
1766
- try {
1767
- throw Error();
1768
- } catch (x) {
1769
- var match = x.stack.trim().match(/\n( *(at )?)/);
1770
- prefix = match && match[1] || '';
1771
- }
1772
- } // We use the prefix to ensure our stacks line up with native stack frames.
1773
-
1774
-
1775
- return '\n' + prefix + name;
1776
- }
1777
- }
1778
- var reentry = false;
1779
- var componentFrameCache;
1780
-
1781
- {
1782
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
1783
- componentFrameCache = new PossiblyWeakMap();
1784
- }
1785
-
1786
- function describeNativeComponentFrame(fn, construct) {
1787
- // If something asked for a stack inside a fake render, it should get ignored.
1788
- if (!fn || reentry) {
1789
- return '';
1790
- }
1791
-
1792
- {
1793
- var frame = componentFrameCache.get(fn);
1794
-
1795
- if (frame !== undefined) {
1796
- return frame;
1797
- }
1798
- }
1799
-
1800
- var control;
1801
- reentry = true;
1802
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
1803
-
1804
- Error.prepareStackTrace = undefined;
1805
- var previousDispatcher;
1806
-
1807
- {
1808
- previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
1809
- // for warnings.
1810
-
1811
- ReactCurrentDispatcher$1.current = null;
1812
- disableLogs();
1813
- }
1814
-
1815
- try {
1816
- // This should throw.
1817
- if (construct) {
1818
- // Something should be setting the props in the constructor.
1819
- var Fake = function () {
1820
- throw Error();
1821
- }; // $FlowFixMe
1822
-
1823
-
1824
- Object.defineProperty(Fake.prototype, 'props', {
1825
- set: function () {
1826
- // We use a throwing setter instead of frozen or non-writable props
1827
- // because that won't throw in a non-strict mode function.
1828
- throw Error();
1829
- }
1830
- });
1831
-
1832
- if (typeof Reflect === 'object' && Reflect.construct) {
1833
- // We construct a different control for this case to include any extra
1834
- // frames added by the construct call.
1835
- try {
1836
- Reflect.construct(Fake, []);
1837
- } catch (x) {
1838
- control = x;
1839
- }
1840
-
1841
- Reflect.construct(fn, [], Fake);
1842
- } else {
1843
- try {
1844
- Fake.call();
1845
- } catch (x) {
1846
- control = x;
1847
- }
1848
-
1849
- fn.call(Fake.prototype);
1850
- }
1851
- } else {
1852
- try {
1853
- throw Error();
1854
- } catch (x) {
1855
- control = x;
1856
- }
1857
-
1858
- fn();
1859
- }
1860
- } catch (sample) {
1861
- // This is inlined manually because closure doesn't do it for us.
1862
- if (sample && control && typeof sample.stack === 'string') {
1863
- // This extracts the first frame from the sample that isn't also in the control.
1864
- // Skipping one frame that we assume is the frame that calls the two.
1865
- var sampleLines = sample.stack.split('\n');
1866
- var controlLines = control.stack.split('\n');
1867
- var s = sampleLines.length - 1;
1868
- var c = controlLines.length - 1;
1869
-
1870
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1871
- // We expect at least one stack frame to be shared.
1872
- // Typically this will be the root most one. However, stack frames may be
1873
- // cut off due to maximum stack limits. In this case, one maybe cut off
1874
- // earlier than the other. We assume that the sample is longer or the same
1875
- // and there for cut off earlier. So we should find the root most frame in
1876
- // the sample somewhere in the control.
1877
- c--;
1878
- }
1879
-
1880
- for (; s >= 1 && c >= 0; s--, c--) {
1881
- // Next we find the first one that isn't the same which should be the
1882
- // frame that called our sample function and the control.
1883
- if (sampleLines[s] !== controlLines[c]) {
1884
- // In V8, the first line is describing the message but other VMs don't.
1885
- // If we're about to return the first line, and the control is also on the same
1886
- // line, that's a pretty good indicator that our sample threw at same line as
1887
- // the control. I.e. before we entered the sample frame. So we ignore this result.
1888
- // This can happen if you passed a class to function component, or non-function.
1889
- if (s !== 1 || c !== 1) {
1890
- do {
1891
- s--;
1892
- c--; // We may still have similar intermediate frames from the construct call.
1893
- // The next one that isn't the same should be our match though.
1894
-
1895
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
1896
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
1897
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
1898
-
1899
- {
1900
- if (typeof fn === 'function') {
1901
- componentFrameCache.set(fn, _frame);
1902
- }
1903
- } // Return the line we found.
1904
-
1905
-
1906
- return _frame;
1907
- }
1908
- } while (s >= 1 && c >= 0);
1909
- }
1910
-
1911
- break;
1912
- }
1913
- }
1914
- }
1915
- } finally {
1916
- reentry = false;
1917
-
1918
- {
1919
- ReactCurrentDispatcher$1.current = previousDispatcher;
1920
- reenableLogs();
1921
- }
1922
-
1923
- Error.prepareStackTrace = previousPrepareStackTrace;
1924
- } // Fallback to just using the name if we couldn't make it throw.
1925
-
1926
-
1927
- var name = fn ? fn.displayName || fn.name : '';
1928
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
1929
-
1930
- {
1931
- if (typeof fn === 'function') {
1932
- componentFrameCache.set(fn, syntheticFrame);
1933
- }
1934
- }
1935
-
1936
- return syntheticFrame;
1937
- }
1938
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1939
- {
1940
- return describeNativeComponentFrame(fn, false);
1941
- }
1942
- }
1943
-
1944
- function shouldConstruct(Component) {
1945
- var prototype = Component.prototype;
1946
- return !!(prototype && prototype.isReactComponent);
1947
- }
1948
-
1949
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1950
-
1951
- if (type == null) {
1952
- return '';
1953
- }
1954
-
1955
- if (typeof type === 'function') {
1956
- {
1957
- return describeNativeComponentFrame(type, shouldConstruct(type));
1958
- }
1959
- }
1960
-
1961
- if (typeof type === 'string') {
1962
- return describeBuiltInComponentFrame(type);
1963
- }
1964
-
1965
- switch (type) {
1966
- case exports.Suspense:
1967
- return describeBuiltInComponentFrame('Suspense');
1968
-
1969
- case REACT_SUSPENSE_LIST_TYPE:
1970
- return describeBuiltInComponentFrame('SuspenseList');
1971
- }
1972
-
1973
- if (typeof type === 'object') {
1974
- switch (type.$$typeof) {
1975
- case REACT_FORWARD_REF_TYPE:
1976
- return describeFunctionComponentFrame(type.render);
1977
-
1978
- case REACT_MEMO_TYPE:
1979
- // Memo may contain any component type so we recursively resolve it.
1980
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1981
-
1982
- case REACT_BLOCK_TYPE:
1983
- return describeFunctionComponentFrame(type._render);
1984
-
1985
- case REACT_LAZY_TYPE:
1986
- {
1987
- var lazyComponent = type;
1988
- var payload = lazyComponent._payload;
1989
- var init = lazyComponent._init;
1990
-
1991
- try {
1992
- // Lazy may contain any component type so we recursively resolve it.
1993
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1994
- } catch (x) {}
1995
- }
1996
- }
1997
- }
1998
-
1999
- return '';
2000
- }
2001
-
2002
- var loggedTypeFailures = {};
2003
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2004
-
2005
- function setCurrentlyValidatingElement(element) {
2006
- {
2007
- if (element) {
2008
- var owner = element._owner;
2009
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2010
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2011
- } else {
2012
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2013
- }
2014
- }
2015
- }
2016
-
2017
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
2018
- {
2019
- // $FlowFixMe This is okay but Flow doesn't know it.
2020
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
2021
-
2022
- for (var typeSpecName in typeSpecs) {
2023
- if (has(typeSpecs, typeSpecName)) {
2024
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2025
- // fail the render phase where it didn't fail before. So we log it.
2026
- // After these have been cleaned up, we'll let them throw.
2027
-
2028
- try {
2029
- // This is intentionally an invariant that gets caught. It's the same
2030
- // behavior as without this statement except with a better message.
2031
- if (typeof typeSpecs[typeSpecName] !== 'function') {
2032
- 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`.');
2033
- err.name = 'Invariant Violation';
2034
- throw err;
2035
- }
2036
-
2037
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2038
- } catch (ex) {
2039
- error$1 = ex;
2040
- }
2041
-
2042
- if (error$1 && !(error$1 instanceof Error)) {
2043
- setCurrentlyValidatingElement(element);
2044
-
2045
- 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);
2046
-
2047
- setCurrentlyValidatingElement(null);
2048
- }
2049
-
2050
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2051
- // Only monitor this failure once because there tends to be a lot of the
2052
- // same error.
2053
- loggedTypeFailures[error$1.message] = true;
2054
- setCurrentlyValidatingElement(element);
2055
-
2056
- error('Failed %s type: %s', location, error$1.message);
2057
-
2058
- setCurrentlyValidatingElement(null);
2059
- }
2060
- }
2061
- }
2062
- }
2063
- }
2064
-
2065
- function setCurrentlyValidatingElement$1(element) {
2066
- {
2067
- if (element) {
2068
- var owner = element._owner;
2069
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2070
- setExtraStackFrame(stack);
2071
- } else {
2072
- setExtraStackFrame(null);
2073
- }
2074
- }
2075
- }
2076
-
2077
- var propTypesMisspellWarningShown;
2078
-
2079
- {
2080
- propTypesMisspellWarningShown = false;
2081
- }
2082
-
2083
- function getDeclarationErrorAddendum() {
2084
- if (ReactCurrentOwner.current) {
2085
- var name = getComponentName(ReactCurrentOwner.current.type);
2086
-
2087
- if (name) {
2088
- return '\n\nCheck the render method of `' + name + '`.';
2089
- }
2090
- }
2091
-
2092
- return '';
2093
- }
2094
-
2095
- function getSourceInfoErrorAddendum(source) {
2096
- if (source !== undefined) {
2097
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2098
- var lineNumber = source.lineNumber;
2099
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2100
- }
2101
-
2102
- return '';
2103
- }
2104
-
2105
- function getSourceInfoErrorAddendumForProps(elementProps) {
2106
- if (elementProps !== null && elementProps !== undefined) {
2107
- return getSourceInfoErrorAddendum(elementProps.__source);
2108
- }
2109
-
2110
- return '';
2111
- }
2112
- /**
2113
- * Warn if there's no key explicitly set on dynamic arrays of children or
2114
- * object keys are not valid. This allows us to keep track of children between
2115
- * updates.
2116
- */
2117
-
2118
-
2119
- var ownerHasKeyUseWarning = {};
2120
-
2121
- function getCurrentComponentErrorInfo(parentType) {
2122
- var info = getDeclarationErrorAddendum();
2123
-
2124
- if (!info) {
2125
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2126
-
2127
- if (parentName) {
2128
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2129
- }
2130
- }
2131
-
2132
- return info;
2133
- }
2134
- /**
2135
- * Warn if the element doesn't have an explicit key assigned to it.
2136
- * This element is in an array. The array could grow and shrink or be
2137
- * reordered. All children that haven't already been validated are required to
2138
- * have a "key" property assigned to it. Error statuses are cached so a warning
2139
- * will only be shown once.
2140
- *
2141
- * @internal
2142
- * @param {ReactElement} element Element that requires a key.
2143
- * @param {*} parentType element's parent's type.
2144
- */
2145
-
2146
-
2147
- function validateExplicitKey(element, parentType) {
2148
- if (!element._store || element._store.validated || element.key != null) {
2149
- return;
2150
- }
2151
-
2152
- element._store.validated = true;
2153
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2154
-
2155
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2156
- return;
2157
- }
2158
-
2159
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2160
- // property, it may be the creator of the child that's responsible for
2161
- // assigning it a key.
2162
-
2163
- var childOwner = '';
2164
-
2165
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
2166
- // Give the component that originally created this child.
2167
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
2168
- }
2169
-
2170
- {
2171
- setCurrentlyValidatingElement$1(element);
2172
-
2173
- 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);
2174
-
2175
- setCurrentlyValidatingElement$1(null);
2176
- }
2177
- }
2178
- /**
2179
- * Ensure that every element either is passed in a static location, in an
2180
- * array with an explicit keys property defined, or in an object literal
2181
- * with valid key property.
2182
- *
2183
- * @internal
2184
- * @param {ReactNode} node Statically passed child of any type.
2185
- * @param {*} parentType node's parent's type.
2186
- */
2187
-
2188
-
2189
- function validateChildKeys(node, parentType) {
2190
- if (typeof node !== 'object') {
2191
- return;
2192
- }
2193
-
2194
- if (Array.isArray(node)) {
2195
- for (var i = 0; i < node.length; i++) {
2196
- var child = node[i];
2197
-
2198
- if (isValidElement(child)) {
2199
- validateExplicitKey(child, parentType);
2200
- }
2201
- }
2202
- } else if (isValidElement(node)) {
2203
- // This element was passed in a valid location.
2204
- if (node._store) {
2205
- node._store.validated = true;
2206
- }
2207
- } else if (node) {
2208
- var iteratorFn = getIteratorFn(node);
2209
-
2210
- if (typeof iteratorFn === 'function') {
2211
- // Entry iterators used to provide implicit keys,
2212
- // but now we print a separate warning for them later.
2213
- if (iteratorFn !== node.entries) {
2214
- var iterator = iteratorFn.call(node);
2215
- var step;
2216
-
2217
- while (!(step = iterator.next()).done) {
2218
- if (isValidElement(step.value)) {
2219
- validateExplicitKey(step.value, parentType);
2220
- }
2221
- }
2222
- }
2223
- }
2224
- }
2225
- }
2226
- /**
2227
- * Given an element, validate that its props follow the propTypes definition,
2228
- * provided by the type.
2229
- *
2230
- * @param {ReactElement} element
2231
- */
2232
-
2233
-
2234
- function validatePropTypes(element) {
2235
- {
2236
- var type = element.type;
2237
-
2238
- if (type === null || type === undefined || typeof type === 'string') {
2239
- return;
2240
- }
2241
-
2242
- var propTypes;
2243
-
2244
- if (typeof type === 'function') {
2245
- propTypes = type.propTypes;
2246
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2247
- // Inner props are checked in the reconciler.
2248
- type.$$typeof === REACT_MEMO_TYPE)) {
2249
- propTypes = type.propTypes;
2250
- } else {
2251
- return;
2252
- }
2253
-
2254
- if (propTypes) {
2255
- // Intentionally inside to avoid triggering lazy initializers:
2256
- var name = getComponentName(type);
2257
- checkPropTypes(propTypes, element.props, 'prop', name, element);
2258
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2259
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
2260
-
2261
- var _name = getComponentName(type);
2262
-
2263
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
2264
- }
2265
-
2266
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2267
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2268
- }
2269
- }
2270
- }
2271
- /**
2272
- * Given a fragment, validate that it can only be provided with fragment props
2273
- * @param {ReactElement} fragment
2274
- */
2275
-
2276
-
2277
- function validateFragmentProps(fragment) {
2278
- {
2279
- var keys = Object.keys(fragment.props);
2280
-
2281
- for (var i = 0; i < keys.length; i++) {
2282
- var key = keys[i];
2283
-
2284
- if (key !== 'children' && key !== 'key') {
2285
- setCurrentlyValidatingElement$1(fragment);
2286
-
2287
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2288
-
2289
- setCurrentlyValidatingElement$1(null);
2290
- break;
2291
- }
2292
- }
2293
-
2294
- if (fragment.ref !== null) {
2295
- setCurrentlyValidatingElement$1(fragment);
2296
-
2297
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
2298
-
2299
- setCurrentlyValidatingElement$1(null);
2300
- }
2301
- }
2302
- }
2303
- function createElementWithValidation(type, props, children) {
2304
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2305
- // succeed and there will likely be errors in render.
2306
-
2307
- if (!validType) {
2308
- var info = '';
2309
-
2310
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2311
- 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.";
2312
- }
2313
-
2314
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
2315
-
2316
- if (sourceInfo) {
2317
- info += sourceInfo;
2318
- } else {
2319
- info += getDeclarationErrorAddendum();
2320
- }
2321
-
2322
- var typeString;
2323
-
2324
- if (type === null) {
2325
- typeString = 'null';
2326
- } else if (Array.isArray(type)) {
2327
- typeString = 'array';
2328
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2329
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
2330
- info = ' Did you accidentally export a JSX literal instead of a component?';
2331
- } else {
2332
- typeString = typeof type;
2333
- }
2334
-
2335
- {
2336
- 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);
2337
- }
2338
- }
2339
-
2340
- var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
2341
- // TODO: Drop this when these are no longer allowed as the type argument.
2342
-
2343
- if (element == null) {
2344
- return element;
2345
- } // Skip key warning if the type isn't valid since our key validation logic
2346
- // doesn't expect a non-string/function type and can throw confusing errors.
2347
- // We don't want exception behavior to differ between dev and prod.
2348
- // (Rendering will throw with a helpful message and as soon as the type is
2349
- // fixed, the key warnings will appear.)
2350
-
2351
-
2352
- if (validType) {
2353
- for (var i = 2; i < arguments.length; i++) {
2354
- validateChildKeys(arguments[i], type);
2355
- }
2356
- }
2357
-
2358
- if (type === exports.Fragment) {
2359
- validateFragmentProps(element);
2360
- } else {
2361
- validatePropTypes(element);
2362
- }
2363
-
2364
- return element;
2365
- }
2366
- var didWarnAboutDeprecatedCreateFactory = false;
2367
- function createFactoryWithValidation(type) {
2368
- var validatedFactory = createElementWithValidation.bind(null, type);
2369
- validatedFactory.type = type;
2370
-
2371
- {
2372
- if (!didWarnAboutDeprecatedCreateFactory) {
2373
- didWarnAboutDeprecatedCreateFactory = true;
2374
-
2375
- warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
2376
- } // Legacy hook: remove it
2377
-
2378
-
2379
- Object.defineProperty(validatedFactory, 'type', {
2380
- enumerable: false,
2381
- get: function () {
2382
- warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
2383
-
2384
- Object.defineProperty(this, 'type', {
2385
- value: type
2386
- });
2387
- return type;
2388
- }
2389
- });
2390
- }
2391
-
2392
- return validatedFactory;
2393
- }
2394
- function cloneElementWithValidation(element, props, children) {
2395
- var newElement = cloneElement.apply(this, arguments);
2396
-
2397
- for (var i = 2; i < arguments.length; i++) {
2398
- validateChildKeys(arguments[i], newElement.type);
2399
- }
2400
-
2401
- validatePropTypes(newElement);
2402
- return newElement;
2403
- }
2404
-
2405
- {
2406
-
2407
- try {
2408
- var frozenObject = Object.freeze({});
2409
- /* eslint-disable no-new */
2410
-
2411
- new Map([[frozenObject, null]]);
2412
- new Set([frozenObject]);
2413
- /* eslint-enable no-new */
2414
- } catch (e) {
2415
- }
2416
- }
2417
-
2418
- var createElement$1 = createElementWithValidation ;
2419
- var cloneElement$1 = cloneElementWithValidation ;
2420
- var createFactory = createFactoryWithValidation ;
2421
- var Children = {
2422
- map: mapChildren,
2423
- forEach: forEachChildren,
2424
- count: countChildren,
2425
- toArray: toArray,
2426
- only: onlyChild
2427
- };
2428
-
2429
- exports.Children = Children;
2430
- exports.Component = Component;
2431
- exports.PureComponent = PureComponent;
2432
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2433
- exports.cloneElement = cloneElement$1;
2434
- exports.createContext = createContext;
2435
- exports.createElement = createElement$1;
2436
- exports.createFactory = createFactory;
2437
- exports.createRef = createRef;
2438
- exports.forwardRef = forwardRef;
2439
- exports.isValidElement = isValidElement;
2440
- exports.lazy = lazy;
2441
- exports.memo = memo;
2442
- exports.useCallback = useCallback;
2443
- exports.useContext = useContext;
2444
- exports.useDebugValue = useDebugValue;
2445
- exports.useEffect = useEffect;
2446
- exports.useImperativeHandle = useImperativeHandle;
2447
- exports.useLayoutEffect = useLayoutEffect;
2448
- exports.useMemo = useMemo;
2449
- exports.useReducer = useReducer;
2450
- exports.useRef = useRef;
2451
- exports.useState = useState;
2452
- exports.version = ReactVersion;
2453
- })();
2454
- }
2455
- });
2456
-
2457
- var react = createCommonjsModule(function (module) {
2458
-
2459
- if (process.env.NODE_ENV === 'production') {
2460
- module.exports = react_production_min;
2461
- } else {
2462
- module.exports = react_development;
2463
- }
2464
- });
2465
-
2466
- /** @license React v16.13.1
2467
- * react-is.production.min.js
2468
- *
2469
- * Copyright (c) Facebook, Inc. and its affiliates.
2470
- *
2471
- * This source code is licensed under the MIT license found in the
2472
- * LICENSE file in the root directory of this source tree.
2473
- */
2474
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
2475
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
2476
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
2477
- var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
2478
- var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
2479
- var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
2480
-
2481
- var reactIs_production_min = {
2482
- AsyncMode: AsyncMode,
2483
- ConcurrentMode: ConcurrentMode,
2484
- ContextConsumer: ContextConsumer,
2485
- ContextProvider: ContextProvider,
2486
- Element: Element,
2487
- ForwardRef: ForwardRef,
2488
- Fragment: Fragment,
2489
- Lazy: Lazy,
2490
- Memo: Memo,
2491
- Portal: Portal,
2492
- Profiler: Profiler,
2493
- StrictMode: StrictMode,
2494
- Suspense: Suspense,
2495
- isAsyncMode: isAsyncMode,
2496
- isConcurrentMode: isConcurrentMode,
2497
- isContextConsumer: isContextConsumer,
2498
- isContextProvider: isContextProvider,
2499
- isElement: isElement,
2500
- isForwardRef: isForwardRef,
2501
- isFragment: isFragment,
2502
- isLazy: isLazy,
2503
- isMemo: isMemo,
2504
- isPortal: isPortal,
2505
- isProfiler: isProfiler,
2506
- isStrictMode: isStrictMode,
2507
- isSuspense: isSuspense,
2508
- isValidElementType: isValidElementType,
2509
- typeOf: typeOf
2510
- };
2511
-
2512
- /** @license React v16.13.1
2513
- * react-is.development.js
2514
- *
2515
- * Copyright (c) Facebook, Inc. and its affiliates.
2516
- *
2517
- * This source code is licensed under the MIT license found in the
2518
- * LICENSE file in the root directory of this source tree.
2519
- */
2520
-
2521
- var reactIs_development = createCommonjsModule(function (module, exports) {
2522
-
2523
-
2524
-
2525
- if (process.env.NODE_ENV !== "production") {
2526
- (function() {
2527
-
2528
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
2529
- // nor polyfill, then a plain number is used for performance.
2530
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
2531
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
2532
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
2533
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
2534
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
2535
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
2536
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
2537
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
2538
- // (unstable) APIs that have been removed. Can we remove the symbols?
2539
-
2540
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
2541
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
2542
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
2543
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
2544
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
2545
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
2546
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
2547
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
2548
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
2549
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
2550
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
2551
-
2552
- function isValidElementType(type) {
2553
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2554
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
2555
- }
2556
-
2557
- function typeOf(object) {
2558
- if (typeof object === 'object' && object !== null) {
2559
- var $$typeof = object.$$typeof;
2560
-
2561
- switch ($$typeof) {
2562
- case REACT_ELEMENT_TYPE:
2563
- var type = object.type;
2564
-
2565
- switch (type) {
2566
- case REACT_ASYNC_MODE_TYPE:
2567
- case REACT_CONCURRENT_MODE_TYPE:
2568
- case REACT_FRAGMENT_TYPE:
2569
- case REACT_PROFILER_TYPE:
2570
- case REACT_STRICT_MODE_TYPE:
2571
- case REACT_SUSPENSE_TYPE:
2572
- return type;
2573
-
2574
- default:
2575
- var $$typeofType = type && type.$$typeof;
2576
-
2577
- switch ($$typeofType) {
2578
- case REACT_CONTEXT_TYPE:
2579
- case REACT_FORWARD_REF_TYPE:
2580
- case REACT_LAZY_TYPE:
2581
- case REACT_MEMO_TYPE:
2582
- case REACT_PROVIDER_TYPE:
2583
- return $$typeofType;
2584
-
2585
- default:
2586
- return $$typeof;
2587
- }
2588
-
2589
- }
2590
-
2591
- case REACT_PORTAL_TYPE:
2592
- return $$typeof;
2593
- }
2594
- }
2595
-
2596
- return undefined;
2597
- } // AsyncMode is deprecated along with isAsyncMode
2598
-
2599
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
2600
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
2601
- var ContextConsumer = REACT_CONTEXT_TYPE;
2602
- var ContextProvider = REACT_PROVIDER_TYPE;
2603
- var Element = REACT_ELEMENT_TYPE;
2604
- var ForwardRef = REACT_FORWARD_REF_TYPE;
2605
- var Fragment = REACT_FRAGMENT_TYPE;
2606
- var Lazy = REACT_LAZY_TYPE;
2607
- var Memo = REACT_MEMO_TYPE;
2608
- var Portal = REACT_PORTAL_TYPE;
2609
- var Profiler = REACT_PROFILER_TYPE;
2610
- var StrictMode = REACT_STRICT_MODE_TYPE;
2611
- var Suspense = REACT_SUSPENSE_TYPE;
2612
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
2613
-
2614
- function isAsyncMode(object) {
2615
- {
2616
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
2617
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
2618
-
2619
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
2620
- }
2621
- }
2622
-
2623
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
2624
- }
2625
- function isConcurrentMode(object) {
2626
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
2627
- }
2628
- function isContextConsumer(object) {
2629
- return typeOf(object) === REACT_CONTEXT_TYPE;
2630
- }
2631
- function isContextProvider(object) {
2632
- return typeOf(object) === REACT_PROVIDER_TYPE;
2633
- }
2634
- function isElement(object) {
2635
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2636
- }
2637
- function isForwardRef(object) {
2638
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
2639
- }
2640
- function isFragment(object) {
2641
- return typeOf(object) === REACT_FRAGMENT_TYPE;
2642
- }
2643
- function isLazy(object) {
2644
- return typeOf(object) === REACT_LAZY_TYPE;
2645
- }
2646
- function isMemo(object) {
2647
- return typeOf(object) === REACT_MEMO_TYPE;
2648
- }
2649
- function isPortal(object) {
2650
- return typeOf(object) === REACT_PORTAL_TYPE;
2651
- }
2652
- function isProfiler(object) {
2653
- return typeOf(object) === REACT_PROFILER_TYPE;
2654
- }
2655
- function isStrictMode(object) {
2656
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
2657
- }
2658
- function isSuspense(object) {
2659
- return typeOf(object) === REACT_SUSPENSE_TYPE;
2660
- }
2661
-
2662
- exports.AsyncMode = AsyncMode;
2663
- exports.ConcurrentMode = ConcurrentMode;
2664
- exports.ContextConsumer = ContextConsumer;
2665
- exports.ContextProvider = ContextProvider;
2666
- exports.Element = Element;
2667
- exports.ForwardRef = ForwardRef;
2668
- exports.Fragment = Fragment;
2669
- exports.Lazy = Lazy;
2670
- exports.Memo = Memo;
2671
- exports.Portal = Portal;
2672
- exports.Profiler = Profiler;
2673
- exports.StrictMode = StrictMode;
2674
- exports.Suspense = Suspense;
2675
- exports.isAsyncMode = isAsyncMode;
2676
- exports.isConcurrentMode = isConcurrentMode;
2677
- exports.isContextConsumer = isContextConsumer;
2678
- exports.isContextProvider = isContextProvider;
2679
- exports.isElement = isElement;
2680
- exports.isForwardRef = isForwardRef;
2681
- exports.isFragment = isFragment;
2682
- exports.isLazy = isLazy;
2683
- exports.isMemo = isMemo;
2684
- exports.isPortal = isPortal;
2685
- exports.isProfiler = isProfiler;
2686
- exports.isStrictMode = isStrictMode;
2687
- exports.isSuspense = isSuspense;
2688
- exports.isValidElementType = isValidElementType;
2689
- exports.typeOf = typeOf;
2690
- })();
2691
- }
2692
- });
2693
-
2694
- var reactIs = createCommonjsModule(function (module) {
2695
-
2696
- if (process.env.NODE_ENV === 'production') {
2697
- module.exports = reactIs_production_min;
2698
- } else {
2699
- module.exports = reactIs_development;
2700
- }
2701
- });
2702
-
2703
- /**
2704
- * Copyright (c) 2013-present, Facebook, Inc.
2705
- *
2706
- * This source code is licensed under the MIT license found in the
2707
- * LICENSE file in the root directory of this source tree.
2708
- */
2709
-
2710
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
2711
-
2712
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
2713
-
2714
- /**
2715
- * Copyright (c) 2013-present, Facebook, Inc.
2716
- *
2717
- * This source code is licensed under the MIT license found in the
2718
- * LICENSE file in the root directory of this source tree.
2719
- */
2720
-
2721
- var printWarning = function() {};
2722
-
2723
- if (process.env.NODE_ENV !== 'production') {
2724
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
2725
- var loggedTypeFailures = {};
2726
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
2727
-
2728
- printWarning = function(text) {
2729
- var message = 'Warning: ' + text;
2730
- if (typeof console !== 'undefined') {
2731
- console.error(message);
2732
- }
2733
- try {
2734
- // --- Welcome to debugging React ---
2735
- // This error was thrown as a convenience so that you can use this stack
2736
- // to find the callsite that caused this warning to fire.
2737
- throw new Error(message);
2738
- } catch (x) {}
2739
- };
2740
- }
2741
-
2742
- /**
2743
- * Assert that the values match with the type specs.
2744
- * Error messages are memorized and will only be shown once.
2745
- *
2746
- * @param {object} typeSpecs Map of name to a ReactPropType
2747
- * @param {object} values Runtime values that need to be type-checked
2748
- * @param {string} location e.g. "prop", "context", "child context"
2749
- * @param {string} componentName Name of the component for error messages.
2750
- * @param {?Function} getStack Returns the component stack.
2751
- * @private
2752
- */
2753
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
2754
- if (process.env.NODE_ENV !== 'production') {
2755
- for (var typeSpecName in typeSpecs) {
2756
- if (has(typeSpecs, typeSpecName)) {
2757
- var error;
2758
- // Prop type validation may throw. In case they do, we don't want to
2759
- // fail the render phase where it didn't fail before. So we log it.
2760
- // After these have been cleaned up, we'll let them throw.
2761
- try {
2762
- // This is intentionally an invariant that gets caught. It's the same
2763
- // behavior as without this statement except with a better message.
2764
- if (typeof typeSpecs[typeSpecName] !== 'function') {
2765
- var err = Error(
2766
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
2767
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
2768
- );
2769
- err.name = 'Invariant Violation';
2770
- throw err;
2771
- }
2772
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
2773
- } catch (ex) {
2774
- error = ex;
2775
- }
2776
- if (error && !(error instanceof Error)) {
2777
- printWarning(
2778
- (componentName || 'React class') + ': type specification of ' +
2779
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
2780
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
2781
- 'You may have forgotten to pass an argument to the type checker ' +
2782
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
2783
- 'shape all require an argument).'
2784
- );
2785
- }
2786
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
2787
- // Only monitor this failure once because there tends to be a lot of the
2788
- // same error.
2789
- loggedTypeFailures[error.message] = true;
2790
-
2791
- var stack = getStack ? getStack() : '';
2792
-
2793
- printWarning(
2794
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
2795
- );
2796
- }
2797
- }
2798
- }
2799
- }
2800
- }
2801
-
2802
- /**
2803
- * Resets warning cache when testing.
2804
- *
2805
- * @private
2806
- */
2807
- checkPropTypes.resetWarningCache = function() {
2808
- if (process.env.NODE_ENV !== 'production') {
2809
- loggedTypeFailures = {};
2810
- }
2811
- };
2812
-
2813
- var checkPropTypes_1 = checkPropTypes;
2814
-
2815
- /**
2816
- * Copyright (c) 2013-present, Facebook, Inc.
2817
- *
2818
- * This source code is licensed under the MIT license found in the
2819
- * LICENSE file in the root directory of this source tree.
2820
- */
2821
-
2822
-
2823
-
2824
-
2825
-
2826
-
2827
-
2828
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
2829
- var printWarning$1 = function() {};
2830
-
2831
- if (process.env.NODE_ENV !== 'production') {
2832
- printWarning$1 = function(text) {
2833
- var message = 'Warning: ' + text;
2834
- if (typeof console !== 'undefined') {
2835
- console.error(message);
2836
- }
2837
- try {
2838
- // --- Welcome to debugging React ---
2839
- // This error was thrown as a convenience so that you can use this stack
2840
- // to find the callsite that caused this warning to fire.
2841
- throw new Error(message);
2842
- } catch (x) {}
2843
- };
2844
- }
2845
-
2846
- function emptyFunctionThatReturnsNull() {
2847
- return null;
2848
- }
2849
-
2850
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
2851
- /* global Symbol */
2852
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
2853
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
2854
-
2855
- /**
2856
- * Returns the iterator method function contained on the iterable object.
2857
- *
2858
- * Be sure to invoke the function with the iterable as context:
2859
- *
2860
- * var iteratorFn = getIteratorFn(myIterable);
2861
- * if (iteratorFn) {
2862
- * var iterator = iteratorFn.call(myIterable);
2863
- * ...
2864
- * }
2865
- *
2866
- * @param {?object} maybeIterable
2867
- * @return {?function}
2868
- */
2869
- function getIteratorFn(maybeIterable) {
2870
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
2871
- if (typeof iteratorFn === 'function') {
2872
- return iteratorFn;
2873
- }
2874
- }
2875
-
2876
- /**
2877
- * Collection of methods that allow declaration and validation of props that are
2878
- * supplied to React components. Example usage:
2879
- *
2880
- * var Props = require('ReactPropTypes');
2881
- * var MyArticle = React.createClass({
2882
- * propTypes: {
2883
- * // An optional string prop named "description".
2884
- * description: Props.string,
2885
- *
2886
- * // A required enum prop named "category".
2887
- * category: Props.oneOf(['News','Photos']).isRequired,
2888
- *
2889
- * // A prop named "dialog" that requires an instance of Dialog.
2890
- * dialog: Props.instanceOf(Dialog).isRequired
2891
- * },
2892
- * render: function() { ... }
2893
- * });
2894
- *
2895
- * A more formal specification of how these methods are used:
2896
- *
2897
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
2898
- * decl := ReactPropTypes.{type}(.isRequired)?
2899
- *
2900
- * Each and every declaration produces a function with the same signature. This
2901
- * allows the creation of custom validation functions. For example:
2902
- *
2903
- * var MyLink = React.createClass({
2904
- * propTypes: {
2905
- * // An optional string or URI prop named "href".
2906
- * href: function(props, propName, componentName) {
2907
- * var propValue = props[propName];
2908
- * if (propValue != null && typeof propValue !== 'string' &&
2909
- * !(propValue instanceof URI)) {
2910
- * return new Error(
2911
- * 'Expected a string or an URI for ' + propName + ' in ' +
2912
- * componentName
2913
- * );
2914
- * }
2915
- * }
2916
- * },
2917
- * render: function() {...}
2918
- * });
2919
- *
2920
- * @internal
2921
- */
2922
-
2923
- var ANONYMOUS = '<<anonymous>>';
2924
-
2925
- // Important!
2926
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
2927
- var ReactPropTypes = {
2928
- array: createPrimitiveTypeChecker('array'),
2929
- bool: createPrimitiveTypeChecker('boolean'),
2930
- func: createPrimitiveTypeChecker('function'),
2931
- number: createPrimitiveTypeChecker('number'),
2932
- object: createPrimitiveTypeChecker('object'),
2933
- string: createPrimitiveTypeChecker('string'),
2934
- symbol: createPrimitiveTypeChecker('symbol'),
2935
-
2936
- any: createAnyTypeChecker(),
2937
- arrayOf: createArrayOfTypeChecker,
2938
- element: createElementTypeChecker(),
2939
- elementType: createElementTypeTypeChecker(),
2940
- instanceOf: createInstanceTypeChecker,
2941
- node: createNodeChecker(),
2942
- objectOf: createObjectOfTypeChecker,
2943
- oneOf: createEnumTypeChecker,
2944
- oneOfType: createUnionTypeChecker,
2945
- shape: createShapeTypeChecker,
2946
- exact: createStrictShapeTypeChecker,
2947
- };
2948
-
2949
- /**
2950
- * inlined Object.is polyfill to avoid requiring consumers ship their own
2951
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
2952
- */
2953
- /*eslint-disable no-self-compare*/
2954
- function is(x, y) {
2955
- // SameValue algorithm
2956
- if (x === y) {
2957
- // Steps 1-5, 7-10
2958
- // Steps 6.b-6.e: +0 != -0
2959
- return x !== 0 || 1 / x === 1 / y;
2960
- } else {
2961
- // Step 6.a: NaN == NaN
2962
- return x !== x && y !== y;
2963
- }
2964
- }
2965
- /*eslint-enable no-self-compare*/
2966
-
2967
- /**
2968
- * We use an Error-like object for backward compatibility as people may call
2969
- * PropTypes directly and inspect their output. However, we don't use real
2970
- * Errors anymore. We don't inspect their stack anyway, and creating them
2971
- * is prohibitively expensive if they are created too often, such as what
2972
- * happens in oneOfType() for any type before the one that matched.
2973
- */
2974
- function PropTypeError(message) {
2975
- this.message = message;
2976
- this.stack = '';
2977
- }
2978
- // Make `instanceof Error` still work for returned errors.
2979
- PropTypeError.prototype = Error.prototype;
2980
-
2981
- function createChainableTypeChecker(validate) {
2982
- if (process.env.NODE_ENV !== 'production') {
2983
- var manualPropTypeCallCache = {};
2984
- var manualPropTypeWarningCount = 0;
2985
- }
2986
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
2987
- componentName = componentName || ANONYMOUS;
2988
- propFullName = propFullName || propName;
2989
-
2990
- if (secret !== ReactPropTypesSecret_1) {
2991
- if (throwOnDirectAccess) {
2992
- // New behavior only for users of `prop-types` package
2993
- var err = new Error(
2994
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
2995
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
2996
- 'Read more at http://fb.me/use-check-prop-types'
2997
- );
2998
- err.name = 'Invariant Violation';
2999
- throw err;
3000
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
3001
- // Old behavior for people using React.PropTypes
3002
- var cacheKey = componentName + ':' + propName;
3003
- if (
3004
- !manualPropTypeCallCache[cacheKey] &&
3005
- // Avoid spamming the console because they are often not actionable except for lib authors
3006
- manualPropTypeWarningCount < 3
3007
- ) {
3008
- printWarning$1(
3009
- 'You are manually calling a React.PropTypes validation ' +
3010
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
3011
- 'and will throw in the standalone `prop-types` package. ' +
3012
- 'You may be seeing this warning due to a third-party PropTypes ' +
3013
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
3014
- );
3015
- manualPropTypeCallCache[cacheKey] = true;
3016
- manualPropTypeWarningCount++;
3017
- }
3018
- }
3019
- }
3020
- if (props[propName] == null) {
3021
- if (isRequired) {
3022
- if (props[propName] === null) {
3023
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
3024
- }
3025
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
3026
- }
3027
- return null;
3028
- } else {
3029
- return validate(props, propName, componentName, location, propFullName);
3030
- }
3031
- }
3032
-
3033
- var chainedCheckType = checkType.bind(null, false);
3034
- chainedCheckType.isRequired = checkType.bind(null, true);
3035
-
3036
- return chainedCheckType;
3037
- }
3038
-
3039
- function createPrimitiveTypeChecker(expectedType) {
3040
- function validate(props, propName, componentName, location, propFullName, secret) {
3041
- var propValue = props[propName];
3042
- var propType = getPropType(propValue);
3043
- if (propType !== expectedType) {
3044
- // `propValue` being instance of, say, date/regexp, pass the 'object'
3045
- // check, but we can offer a more precise error message here rather than
3046
- // 'of type `object`'.
3047
- var preciseType = getPreciseType(propValue);
3048
-
3049
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
3050
- }
3051
- return null;
3052
- }
3053
- return createChainableTypeChecker(validate);
3054
- }
3055
-
3056
- function createAnyTypeChecker() {
3057
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
3058
- }
3059
-
3060
- function createArrayOfTypeChecker(typeChecker) {
3061
- function validate(props, propName, componentName, location, propFullName) {
3062
- if (typeof typeChecker !== 'function') {
3063
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
3064
- }
3065
- var propValue = props[propName];
3066
- if (!Array.isArray(propValue)) {
3067
- var propType = getPropType(propValue);
3068
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
3069
- }
3070
- for (var i = 0; i < propValue.length; i++) {
3071
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
3072
- if (error instanceof Error) {
3073
- return error;
3074
- }
3075
- }
3076
- return null;
3077
- }
3078
- return createChainableTypeChecker(validate);
3079
- }
3080
-
3081
- function createElementTypeChecker() {
3082
- function validate(props, propName, componentName, location, propFullName) {
3083
- var propValue = props[propName];
3084
- if (!isValidElement(propValue)) {
3085
- var propType = getPropType(propValue);
3086
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
3087
- }
3088
- return null;
3089
- }
3090
- return createChainableTypeChecker(validate);
3091
- }
3092
-
3093
- function createElementTypeTypeChecker() {
3094
- function validate(props, propName, componentName, location, propFullName) {
3095
- var propValue = props[propName];
3096
- if (!reactIs.isValidElementType(propValue)) {
3097
- var propType = getPropType(propValue);
3098
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
3099
- }
3100
- return null;
3101
- }
3102
- return createChainableTypeChecker(validate);
3103
- }
3104
-
3105
- function createInstanceTypeChecker(expectedClass) {
3106
- function validate(props, propName, componentName, location, propFullName) {
3107
- if (!(props[propName] instanceof expectedClass)) {
3108
- var expectedClassName = expectedClass.name || ANONYMOUS;
3109
- var actualClassName = getClassName(props[propName]);
3110
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
3111
- }
3112
- return null;
3113
- }
3114
- return createChainableTypeChecker(validate);
3115
- }
3116
-
3117
- function createEnumTypeChecker(expectedValues) {
3118
- if (!Array.isArray(expectedValues)) {
3119
- if (process.env.NODE_ENV !== 'production') {
3120
- if (arguments.length > 1) {
3121
- printWarning$1(
3122
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
3123
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
3124
- );
3125
- } else {
3126
- printWarning$1('Invalid argument supplied to oneOf, expected an array.');
3127
- }
3128
- }
3129
- return emptyFunctionThatReturnsNull;
3130
- }
3131
-
3132
- function validate(props, propName, componentName, location, propFullName) {
3133
- var propValue = props[propName];
3134
- for (var i = 0; i < expectedValues.length; i++) {
3135
- if (is(propValue, expectedValues[i])) {
3136
- return null;
3137
- }
3138
- }
3139
-
3140
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
3141
- var type = getPreciseType(value);
3142
- if (type === 'symbol') {
3143
- return String(value);
3144
- }
3145
- return value;
3146
- });
3147
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
3148
- }
3149
- return createChainableTypeChecker(validate);
3150
- }
3151
-
3152
- function createObjectOfTypeChecker(typeChecker) {
3153
- function validate(props, propName, componentName, location, propFullName) {
3154
- if (typeof typeChecker !== 'function') {
3155
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
3156
- }
3157
- var propValue = props[propName];
3158
- var propType = getPropType(propValue);
3159
- if (propType !== 'object') {
3160
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
3161
- }
3162
- for (var key in propValue) {
3163
- if (has$1(propValue, key)) {
3164
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
3165
- if (error instanceof Error) {
3166
- return error;
3167
- }
3168
- }
3169
- }
3170
- return null;
3171
- }
3172
- return createChainableTypeChecker(validate);
3173
- }
3174
-
3175
- function createUnionTypeChecker(arrayOfTypeCheckers) {
3176
- if (!Array.isArray(arrayOfTypeCheckers)) {
3177
- process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
3178
- return emptyFunctionThatReturnsNull;
3179
- }
3180
-
3181
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
3182
- var checker = arrayOfTypeCheckers[i];
3183
- if (typeof checker !== 'function') {
3184
- printWarning$1(
3185
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
3186
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
3187
- );
3188
- return emptyFunctionThatReturnsNull;
3189
- }
3190
- }
3191
-
3192
- function validate(props, propName, componentName, location, propFullName) {
3193
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
3194
- var checker = arrayOfTypeCheckers[i];
3195
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
3196
- return null;
3197
- }
3198
- }
3199
-
3200
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
3201
- }
3202
- return createChainableTypeChecker(validate);
3203
- }
3204
-
3205
- function createNodeChecker() {
3206
- function validate(props, propName, componentName, location, propFullName) {
3207
- if (!isNode(props[propName])) {
3208
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
3209
- }
3210
- return null;
3211
- }
3212
- return createChainableTypeChecker(validate);
3213
- }
3214
-
3215
- function createShapeTypeChecker(shapeTypes) {
3216
- function validate(props, propName, componentName, location, propFullName) {
3217
- var propValue = props[propName];
3218
- var propType = getPropType(propValue);
3219
- if (propType !== 'object') {
3220
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
3221
- }
3222
- for (var key in shapeTypes) {
3223
- var checker = shapeTypes[key];
3224
- if (!checker) {
3225
- continue;
3226
- }
3227
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
3228
- if (error) {
3229
- return error;
3230
- }
3231
- }
3232
- return null;
3233
- }
3234
- return createChainableTypeChecker(validate);
3235
- }
3236
-
3237
- function createStrictShapeTypeChecker(shapeTypes) {
3238
- function validate(props, propName, componentName, location, propFullName) {
3239
- var propValue = props[propName];
3240
- var propType = getPropType(propValue);
3241
- if (propType !== 'object') {
3242
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
3243
- }
3244
- // We need to check all keys in case some are required but missing from
3245
- // props.
3246
- var allKeys = objectAssign({}, props[propName], shapeTypes);
3247
- for (var key in allKeys) {
3248
- var checker = shapeTypes[key];
3249
- if (!checker) {
3250
- return new PropTypeError(
3251
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
3252
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
3253
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
3254
- );
3255
- }
3256
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
3257
- if (error) {
3258
- return error;
3259
- }
3260
- }
3261
- return null;
3262
- }
3263
-
3264
- return createChainableTypeChecker(validate);
3265
- }
3266
-
3267
- function isNode(propValue) {
3268
- switch (typeof propValue) {
3269
- case 'number':
3270
- case 'string':
3271
- case 'undefined':
3272
- return true;
3273
- case 'boolean':
3274
- return !propValue;
3275
- case 'object':
3276
- if (Array.isArray(propValue)) {
3277
- return propValue.every(isNode);
3278
- }
3279
- if (propValue === null || isValidElement(propValue)) {
3280
- return true;
3281
- }
3282
-
3283
- var iteratorFn = getIteratorFn(propValue);
3284
- if (iteratorFn) {
3285
- var iterator = iteratorFn.call(propValue);
3286
- var step;
3287
- if (iteratorFn !== propValue.entries) {
3288
- while (!(step = iterator.next()).done) {
3289
- if (!isNode(step.value)) {
3290
- return false;
3291
- }
3292
- }
3293
- } else {
3294
- // Iterator will provide entry [k,v] tuples rather than values.
3295
- while (!(step = iterator.next()).done) {
3296
- var entry = step.value;
3297
- if (entry) {
3298
- if (!isNode(entry[1])) {
3299
- return false;
3300
- }
3301
- }
3302
- }
3303
- }
3304
- } else {
3305
- return false;
3306
- }
3307
-
3308
- return true;
3309
- default:
3310
- return false;
3311
- }
3312
- }
3313
-
3314
- function isSymbol(propType, propValue) {
3315
- // Native Symbol.
3316
- if (propType === 'symbol') {
3317
- return true;
3318
- }
3319
-
3320
- // falsy value can't be a Symbol
3321
- if (!propValue) {
3322
- return false;
3323
- }
3324
-
3325
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
3326
- if (propValue['@@toStringTag'] === 'Symbol') {
3327
- return true;
3328
- }
3329
-
3330
- // Fallback for non-spec compliant Symbols which are polyfilled.
3331
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
3332
- return true;
3333
- }
3334
-
3335
- return false;
3336
- }
3337
-
3338
- // Equivalent of `typeof` but with special handling for array and regexp.
3339
- function getPropType(propValue) {
3340
- var propType = typeof propValue;
3341
- if (Array.isArray(propValue)) {
3342
- return 'array';
3343
- }
3344
- if (propValue instanceof RegExp) {
3345
- // Old webkits (at least until Android 4.0) return 'function' rather than
3346
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
3347
- // passes PropTypes.object.
3348
- return 'object';
3349
- }
3350
- if (isSymbol(propType, propValue)) {
3351
- return 'symbol';
3352
- }
3353
- return propType;
3354
- }
3355
-
3356
- // This handles more types than `getPropType`. Only used for error messages.
3357
- // See `createPrimitiveTypeChecker`.
3358
- function getPreciseType(propValue) {
3359
- if (typeof propValue === 'undefined' || propValue === null) {
3360
- return '' + propValue;
3361
- }
3362
- var propType = getPropType(propValue);
3363
- if (propType === 'object') {
3364
- if (propValue instanceof Date) {
3365
- return 'date';
3366
- } else if (propValue instanceof RegExp) {
3367
- return 'regexp';
3368
- }
3369
- }
3370
- return propType;
3371
- }
3372
-
3373
- // Returns a string that is postfixed to a warning about an invalid type.
3374
- // For example, "undefined" or "of type array"
3375
- function getPostfixForTypeWarning(value) {
3376
- var type = getPreciseType(value);
3377
- switch (type) {
3378
- case 'array':
3379
- case 'object':
3380
- return 'an ' + type;
3381
- case 'boolean':
3382
- case 'date':
3383
- case 'regexp':
3384
- return 'a ' + type;
3385
- default:
3386
- return type;
3387
- }
3388
- }
3389
-
3390
- // Returns class name of the object, if any.
3391
- function getClassName(propValue) {
3392
- if (!propValue.constructor || !propValue.constructor.name) {
3393
- return ANONYMOUS;
3394
- }
3395
- return propValue.constructor.name;
3396
- }
3397
-
3398
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
3399
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
3400
- ReactPropTypes.PropTypes = ReactPropTypes;
3401
-
3402
- return ReactPropTypes;
3403
- };
3404
-
3405
- /**
3406
- * Copyright (c) 2013-present, Facebook, Inc.
3407
- *
3408
- * This source code is licensed under the MIT license found in the
3409
- * LICENSE file in the root directory of this source tree.
3410
- */
3411
-
3412
-
3413
-
3414
- function emptyFunction() {}
3415
- function emptyFunctionWithReset() {}
3416
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
3417
-
3418
- var factoryWithThrowingShims = function() {
3419
- function shim(props, propName, componentName, location, propFullName, secret) {
3420
- if (secret === ReactPropTypesSecret_1) {
3421
- // It is still safe when called from React.
3422
- return;
3423
- }
3424
- var err = new Error(
3425
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
3426
- 'Use PropTypes.checkPropTypes() to call them. ' +
3427
- 'Read more at http://fb.me/use-check-prop-types'
3428
- );
3429
- err.name = 'Invariant Violation';
3430
- throw err;
3431
- } shim.isRequired = shim;
3432
- function getShim() {
3433
- return shim;
3434
- } // Important!
3435
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
3436
- var ReactPropTypes = {
3437
- array: shim,
3438
- bool: shim,
3439
- func: shim,
3440
- number: shim,
3441
- object: shim,
3442
- string: shim,
3443
- symbol: shim,
3444
-
3445
- any: shim,
3446
- arrayOf: getShim,
3447
- element: shim,
3448
- elementType: shim,
3449
- instanceOf: getShim,
3450
- node: shim,
3451
- objectOf: getShim,
3452
- oneOf: getShim,
3453
- oneOfType: getShim,
3454
- shape: getShim,
3455
- exact: getShim,
3456
-
3457
- checkPropTypes: emptyFunctionWithReset,
3458
- resetWarningCache: emptyFunction
3459
- };
3460
-
3461
- ReactPropTypes.PropTypes = ReactPropTypes;
3462
-
3463
- return ReactPropTypes;
3464
- };
3465
-
3466
- /**
3467
- * Copyright (c) 2013-present, Facebook, Inc.
3468
- *
3469
- * This source code is licensed under the MIT license found in the
3470
- * LICENSE file in the root directory of this source tree.
3471
- */
3472
-
3473
- var propTypes = createCommonjsModule(function (module) {
3474
- if (process.env.NODE_ENV !== 'production') {
3475
- var ReactIs = reactIs;
3476
-
3477
- // By explicitly using `prop-types` you are opting into new development behavior.
3478
- // http://fb.me/prop-types-in-prod
3479
- var throwOnDirectAccess = true;
3480
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
3481
- } else {
3482
- // By explicitly using `prop-types` you are opting into new production behavior.
3483
- // http://fb.me/prop-types-in-prod
3484
- module.exports = factoryWithThrowingShims();
3485
- }
3486
- });
3487
-
3488
- function styleInject(css, ref) {
3489
- if ( ref === void 0 ) ref = {};
3490
- var insertAt = ref.insertAt;
3491
-
3492
- if (!css || typeof document === 'undefined') { return; }
3493
-
3494
- var head = document.head || document.getElementsByTagName('head')[0];
3495
- var style = document.createElement('style');
3496
- style.type = 'text/css';
3497
-
3498
- if (insertAt === 'top') {
3499
- if (head.firstChild) {
3500
- head.insertBefore(style, head.firstChild);
3501
- } else {
3502
- head.appendChild(style);
3503
- }
3504
- } else {
3505
- head.appendChild(style);
3506
- }
3507
-
3508
- if (style.styleSheet) {
3509
- style.styleSheet.cssText = css;
3510
- } else {
3511
- style.appendChild(document.createTextNode(css));
3512
- }
3513
- }
3514
-
3515
- var css_248z = ".primary {\n background-color: blue;\n color: white; }\n";
3516
- styleInject(css_248z);
3517
-
3518
- var Button = (_ref) => {
3519
- var {
3520
- message = 'Hello world'
3521
- } = _ref;
3522
- return /*#__PURE__*/react.createElement("button", {
3523
- className: "primary"
3524
- }, message);
3525
- };
3526
- Button.propTypes = {
3527
- message: propTypes.string
3528
- };
3529
-
3530
- exports.Button = Button;
3531
- //# sourceMappingURL=index.js.map
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(n){if(n.__esModule)return n;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(n).forEach(function(e){var t=Object.getOwnPropertyDescriptor(n,e);Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return n[e]}})}),r}function createCommonjsModule(e){var t={exports:{}};return e(t,t.exports),t.exports}var classnames=createCommonjsModule(function(e){function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"==r||"number"==r)e.push(n);else if(Array.isArray(n)&&n.length){var o=i.apply(null,n);o&&e.push(o)}else if("object"==r)for(var a in n)c.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}var c;c={}.hasOwnProperty,e.exports?(i.default=i,e.exports=i):window.classNames=i});function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var interopRequireDefault=_interopRequireDefault;function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),a=0;a<o.length;a++)n=o[a],0<=t.indexOf(n)||(r[n]=e[n]);return r}var objectWithoutPropertiesLoose=_objectWithoutPropertiesLoose;function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var assertThisInitialized=_assertThisInitialized,setPrototypeOf=createCommonjsModule(function(n){function r(e,t){return n.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.exports=r});function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,setPrototypeOf(e,t)}var inheritsLoose=_inheritsLoose,_extends_1=createCommonjsModule(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(this,arguments)}e.exports=t}),b="function"==typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(o){if("object"==typeof o&&null!==o){var a=o.$$typeof;switch(a){case c:switch(o=o.type){case l:case m:case e:case g:case f:case p:return o;default:switch(o=o&&o.$$typeof){case k:case n:case t:case r:case h:return o;default:return a}}case d:return a}}}function A(e){return z(e)===m}var AsyncMode=l,ConcurrentMode=m,ContextConsumer=k,ContextProvider=h,Element=c,ForwardRef=n,Fragment=e,Lazy=t,Memo=r,Portal=d,Profiler=g,StrictMode=f,Suspense=p,isAsyncMode=function(e){return A(e)||z(e)===l},isConcurrentMode=A,isContextConsumer=function(e){return z(e)===k},isContextProvider=function(e){return z(e)===h},isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},isForwardRef=function(e){return z(e)===n},isFragment=function(t){return z(t)===e},isLazy=function(e){return z(e)===t},isMemo=function(e){return z(e)===r},isPortal=function(e){return z(e)===d},isProfiler=function(e){return z(e)===g},isStrictMode=function(e){return z(e)===f},isSuspense=function(e){return z(e)===p},isValidElementType=function(o){return"string"==typeof o||"function"==typeof o||o===e||o===m||o===g||o===f||o===p||o===q||"object"==typeof o&&null!==o&&(o.$$typeof===t||o.$$typeof===r||o.$$typeof===h||o.$$typeof===k||o.$$typeof===n||o.$$typeof===w||o.$$typeof===x||o.$$typeof===y||o.$$typeof===v)},typeOf=z,reactIs_production_min={AsyncMode:l,ConcurrentMode:m,ContextConsumer:k,ContextProvider:h,Element:c,ForwardRef:n,Fragment:e,Lazy:t,Memo:r,Portal:d,Profiler:g,StrictMode:f,Suspense:p,isAsyncMode:isAsyncMode,isConcurrentMode:A,isContextConsumer:isContextConsumer,isContextProvider:isContextProvider,isElement:isElement,isForwardRef:isForwardRef,isFragment:isFragment,isLazy:isLazy,isMemo:isMemo,isPortal:isPortal,isProfiler:isProfiler,isStrictMode:isStrictMode,isSuspense:isSuspense,isValidElementType:isValidElementType,typeOf:z},reactIs_development=createCommonjsModule(function(e,t){function n(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:var n=e.type;switch(n){case f:case d:case c:case u:case s:case m:return n;default:var r=n&&n.$$typeof;switch(r){case p:case y:case b:case v:case l:return r;default:return t}}case i:return t}}}function r(e){return n(e)===d}var o,a,i,c,s,u,l,p,f,d,y,m,h,v,b,g,_,w,E,C,P,R,S,k,x,O,j,F,T,N,$;"production"!==process.env.NODE_ENV&&(o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.async_mode"):60111,d=o?Symbol.for("react.concurrent_mode"):60111,y=o?Symbol.for("react.forward_ref"):60112,m=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.suspense_list"):60120,v=o?Symbol.for("react.memo"):60115,b=o?Symbol.for("react.lazy"):60116,g=o?Symbol.for("react.block"):60121,_=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,E=o?Symbol.for("react.scope"):60119,C=d,P=p,R=l,S=a,k=y,x=c,O=b,j=v,F=i,T=u,N=s,o=m,$=!1,t.AsyncMode=f,t.ConcurrentMode=C,t.ContextConsumer=P,t.ContextProvider=R,t.Element=S,t.ForwardRef=k,t.Fragment=x,t.Lazy=O,t.Memo=j,t.Portal=F,t.Profiler=T,t.StrictMode=N,t.Suspense=o,t.isAsyncMode=function(e){return $||($=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),r(e)||n(e)===f},t.isConcurrentMode=r,t.isContextConsumer=function(e){return n(e)===p},t.isContextProvider=function(e){return n(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return n(e)===y},t.isFragment=function(e){return n(e)===c},t.isLazy=function(e){return n(e)===b},t.isMemo=function(e){return n(e)===v},t.isPortal=function(e){return n(e)===i},t.isProfiler=function(e){return n(e)===u},t.isStrictMode=function(e){return n(e)===s},t.isSuspense=function(e){return n(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===c||e===d||e===u||e===s||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===v||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===_||e.$$typeof===w||e.$$typeof===E||e.$$typeof===g)},t.typeOf=n)}),reactIs=createCommonjsModule(function(e){"production"===process.env.NODE_ENV?e.exports=reactIs_production_min:e.exports=reactIs_development}),getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function shouldUseNative(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var ReactPropTypesSecret$1,loggedTypeFailures,has,objectAssign=shouldUseNative()?Object.assign:function(e,t){for(var n,r=toObject(e),o=1;o<arguments.length;o++){for(var a in n=Object(arguments[o]))hasOwnProperty.call(n,a)&&(r[a]=n[a]);if(getOwnPropertySymbols)for(var i=getOwnPropertySymbols(n),c=0;c<i.length;c++)propIsEnumerable.call(n,i[c])&&(r[i[c]]=n[i[c]])}return r},ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret,printWarning=function(){};function checkPropTypes(e,t,n,r,o){if("production"!==process.env.NODE_ENV)for(var a in e)if(has(e,a)){var i,c;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.");throw s.name="Invariant Violation",s}i=e[a](t,a,r,n,null,ReactPropTypesSecret$1)}catch(e){i=e}!i||i instanceof Error||printWarning((r||"React class")+": type specification of "+n+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in loggedTypeFailures)&&(loggedTypeFailures[i.message]=!0,c=o?o():"",printWarning("Failed "+n+" type: "+i.message+(null!=c?c:"")))}}"production"!==process.env.NODE_ENV&&(ReactPropTypesSecret$1=ReactPropTypesSecret_1,loggedTypeFailures={},has=Function.call.bind(Object.prototype.hasOwnProperty),printWarning=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),checkPropTypes.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(loggedTypeFailures={})};var checkPropTypes_1=checkPropTypes,has$1=Function.call.bind(Object.prototype.hasOwnProperty),printWarning$1=function(){};function emptyFunctionThatReturnsNull(){return null}"production"!==process.env.NODE_ENV&&(printWarning$1=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});var factoryWithTypeCheckers=function(a,p){var i="function"==typeof Symbol&&Symbol.iterator,c="@@iterator";var f="<<anonymous>>",e={array:t("array"),bool:t("boolean"),func:t("function"),number:t("number"),object:t("object"),string:t("string"),symbol:t("symbol"),any:n(emptyFunctionThatReturnsNull),arrayOf:function(s){return n(function(e,t,n,r,o){if("function"!=typeof s)return new d("Property `"+o+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var a=e[t];if(!Array.isArray(a))return new d("Invalid "+r+" `"+o+"` of type `"+l(a)+"` supplied to `"+n+"`, expected an array.");for(var i=0;i<a.length;i++){var c=s(a,i,n,r,o+"["+i+"]",ReactPropTypesSecret_1);if(c instanceof Error)return c}return null})},element:n(function(e,t,n,r,o){return t=e[t],a(t)?null:new d("Invalid "+r+" `"+o+"` of type `"+l(t)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:n(function(e,t,n,r,o){return t=e[t],reactIs.isValidElementType(t)?null:new d("Invalid "+r+" `"+o+"` of type `"+l(t)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(i){return n(function(e,t,n,r,o){if(e[t]instanceof i)return null;var a=i.name||f;return new d("Invalid "+r+" `"+o+"` of type `"+((t=e[t]).constructor&&t.constructor.name?t.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")})},node:n(function(e,t,n,r,o){return s(e[t])?null:new d("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(s){return n(function(e,t,n,r,o){if("function"!=typeof s)return new d("Property `"+o+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a,i=e[t];if("object"!==(t=l(i)))return new d("Invalid "+r+" `"+o+"` of type `"+t+"` supplied to `"+n+"`, expected an object.");for(a in i)if(has$1(i,a)){var c=s(i,a,n,r,o+"."+a,ReactPropTypesSecret_1);if(c instanceof Error)return c}return null})},oneOf:function(c){if(Array.isArray(c))return n(function(e,t,n,r,o){for(var a=e[t],i=0;i<c.length;i++)if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(a,c[i]))return null;t=JSON.stringify(c,function(e,t){return"symbol"===u(t)?String(t):t});return new d("Invalid "+r+" `"+o+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+t+".")});"production"!==process.env.NODE_ENV&&printWarning$1(1<arguments.length?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array.");return emptyFunctionThatReturnsNull},oneOfType:function(i){if(!Array.isArray(i))return"production"!==process.env.NODE_ENV&&printWarning$1("Invalid argument supplied to oneOfType, expected an instance of array."),emptyFunctionThatReturnsNull;for(var e=0;e<i.length;e++){var t=i[e];if("function"!=typeof t)return printWarning$1("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+function(e){var t=u(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}(t)+" at index "+e+"."),emptyFunctionThatReturnsNull}return n(function(e,t,n,r,o){for(var a=0;a<i.length;a++)if(null==(0,i[a])(e,t,n,r,o,ReactPropTypesSecret_1))return null;return new d("Invalid "+r+" `"+o+"` supplied to `"+n+"`.")})},shape:function(s){return n(function(e,t,n,r,o){var a,i=e[t];if("object"!==(t=l(i)))return new d("Invalid "+r+" `"+o+"` of type `"+t+"` supplied to `"+n+"`, expected `object`.");for(a in s){var c=s[a];if(c){c=c(i,a,n,r,o+"."+a,ReactPropTypesSecret_1);if(c)return c}}return null})},exact:function(u){return n(function(e,t,n,r,o){var a,i=e[t],c=l(i);if("object"!==c)return new d("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");for(a in objectAssign({},e[t],u)){var s=u[a];if(!s)return new d("Invalid "+r+" `"+o+"` key `"+a+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(e[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(u),null," "));s=s(i,a,n,r,o+"."+a,ReactPropTypesSecret_1);if(s)return s}return null})}};function d(e){this.message=e,this.stack=""}function n(s){var u,l;function e(e,t,n,r,o,a,i){if(r=r||f,a=a||n,i!==ReactPropTypesSecret_1){if(p){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}"production"===process.env.NODE_ENV||"undefined"==typeof console||!u[c=r+":"+n]&&l<3&&(printWarning$1("You are manually calling a React.PropTypes validation function for the `"+a+"` prop on `"+r+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),u[c]=!0,l++)}return null==t[n]?e?null===t[n]?new d("The "+o+" `"+a+"` is marked as required in `"+r+"`, but its value is `null`."):new d("The "+o+" `"+a+"` is marked as required in `"+r+"`, but its value is `undefined`."):null:s(t,n,r,o,a)}"production"!==process.env.NODE_ENV&&(u={},l=0);var t=e.bind(null,!1);return t.isRequired=e.bind(null,!0),t}function t(i){return n(function(e,t,n,r,o,a){return l(t=e[t])===i?null:new d("Invalid "+r+" `"+o+"` of type `"+u(t)+"` supplied to `"+n+"`, expected `"+i+"`.")})}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||a(e))return!0;var t=function(e){if("function"==typeof(e=e&&(i&&e[i]||e[c])))return e}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!s(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!s(o[1]))return!1}return!0;default:return!1}}function l(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":(e=e,"symbol"===t||e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)?"symbol":t)}function u(e){if(null==e)return""+e;var t=l(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}return d.prototype=Error.prototype,e.checkPropTypes=checkPropTypes_1,e.resetWarningCache=checkPropTypes_1.resetWarningCache,e.PropTypes=e};function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var printWarning$2,factoryWithThrowingShims=function(){function e(e,t,n,r,o,a){if(a!==ReactPropTypesSecret_1){a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return n.PropTypes=n},propTypes=createCommonjsModule(function(e){"production"!==process.env.NODE_ENV?e.exports=factoryWithTypeCheckers(reactIs.isElement,!0):e.exports=factoryWithThrowingShims()}),react_production_min=createCommonjsModule(function(e,t){var p=60103,f=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var n=60109,r=60110,o=60112;t.Suspense=60113;var a=60115,i=60116;"function"==typeof Symbol&&Symbol.for&&(p=(h=Symbol.for)("react.element"),f=h("react.portal"),t.Fragment=h("react.fragment"),t.StrictMode=h("react.strict_mode"),t.Profiler=h("react.profiler"),n=h("react.provider"),r=h("react.context"),o=h("react.forward_ref"),t.Suspense=h("react.suspense"),a=h("react.memo"),i=h("react.lazy"));var d="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},s={};function u(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||c}function l(){}function m(e,t,n){this.props=e,this.context=t,this.refs=s,this.updater=n||c}u.prototype.isReactComponent={},u.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},u.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},l.prototype=u.prototype;var h=m.prototype=new l;h.constructor=m,objectAssign(h,u.prototype),h.isPureReactComponent=!0;var v={current:null},b=Object.prototype.hasOwnProperty,g={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)b.call(t,r)&&!g.hasOwnProperty(r)&&(o[r]=t[r]);var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){for(var s=Array(c),u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===o[r]&&(o[r]=c[r]);return{$$typeof:p,type:e,key:a,ref:i,props:o,_owner:v.current}}function w(e){return"object"==typeof e&&null!==e&&e.$$typeof===p}var E=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,n={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function P(e,t,n,r,o){var a,i,c=!1;if(null===(e="undefined"===(u=typeof e)||"boolean"===u?null:e))c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case p:case f:c=!0}}if(c)return o=o(c=e),e=""===r?"."+C(c,0):r,Array.isArray(o)?(n="",P(o,t,n=null!=e?e.replace(E,"$&/")+"/":n,"",function(e){return e})):null!=o&&(w(o)&&(a=n+(!(i=o).key||c&&c.key===o.key?"":(""+o.key).replace(E,"$&/")+"/")+e,o={$$typeof:p,type:i.type,key:a,ref:i.ref,props:i.props,_owner:i._owner}),t.push(o)),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var u,l=r+C(u=e[s],s);c+=P(u,t,n,l,o)}else if("function"==typeof(l=null!==(i=e)&&"object"==typeof i&&"function"==typeof(i=d&&i[d]||i["@@iterator"])?i:null))for(e=l.call(e),s=0;!(u=e.next()).done;)c+=P(u=u.value,t,n,l=r+C(u,s++),o);else if("object"===u)throw t=""+e,Error(y(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function R(e,t,n){if(null==e)return e;var r=[],o=0;return P(e,r,"","",function(e){return t.call(n,e,o++)}),r}function S(t){var e;if(-1===t._status&&(e=(e=t._result)(),t._status=0,(t._result=e).then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)})),1===t._status)return t._result;throw t._result}var k={current:null};function x(){var e=k.current;if(null===e)throw Error(y(321));return e}h={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:v,IsSomeRendererActing:{current:!1},assign:objectAssign};t.Children={map:R,forEach:function(e,t,n){R(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return R(e,function(){t++}),t},toArray:function(e){return R(e,function(e){return e})||[]},only:function(e){if(!w(e))throw Error(y(143));return e}},t.Component=u,t.PureComponent=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h,t.cloneElement=function(e,t,n){if(null==e)throw Error(y(267,e));var r=objectAssign({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t)for(c in void 0!==t.ref&&(a=t.ref,i=v.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)b.call(t,c)&&!g.hasOwnProperty(c)&&(r[c]=(void 0===t[c]&&void 0!==s?s:t)[c]);var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){for(var s=Array(c),u=0;u<c;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:p,type:e.type,key:o,ref:a,props:r,_owner:i}},t.createContext=function(e,t){return(e={$$typeof:r,_calculateChangedBits:t=void 0===t?null:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:n,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:o,render:e}},t.isValidElement=w,t.lazy=function(e){return{$$typeof:i,_payload:{_status:-1,_result:e},_init:S}},t.memo=function(e,t){return{$$typeof:a,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return x().useCallback(e,t)},t.useContext=function(e,t){return x().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return x().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return x().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return x().useLayoutEffect(e,t)},t.useMemo=function(e,t){return x().useMemo(e,t)},t.useReducer=function(e,t,n){return x().useReducer(e,t,n)},t.useRef=function(e){return x().useRef(e)},t.useState=function(e){return x().useState(e)},t.version="17.0.1"}),react_development=createCommonjsModule(function(e,Ve){"production"!==process.env.NODE_ENV&&function(){var y=objectAssign,b=60103,g=60106;Ve.Fragment=60107,Ve.StrictMode=60108,Ve.Profiler=60114;var i=60109,c=60110,s=60112;Ve.Suspense=60113;var u=60120,l=60115,p=60116,f=60121,t=60122,n=60117,r=60129,o=60131;"function"==typeof Symbol&&Symbol.for&&(b=(Ue=Symbol.for)("react.element"),g=Ue("react.portal"),Ve.Fragment=Ue("react.fragment"),Ve.StrictMode=Ue("react.strict_mode"),Ve.Profiler=Ue("react.profiler"),i=Ue("react.provider"),c=Ue("react.context"),s=Ue("react.forward_ref"),Ve.Suspense=Ue("react.suspense"),u=Ue("react.suspense_list"),l=Ue("react.memo"),p=Ue("react.lazy"),f=Ue("react.block"),t=Ue("react.server.block"),n=Ue("react.fundamental"),Ue("react.scope"),Ue("react.opaque.id"),r=Ue("react.debug_trace_mode"),Ue("react.offscreen"),o=Ue("react.legacy_hidden"));var a="function"==typeof Symbol&&Symbol.iterator,d="@@iterator";function _(e){if(null===e||"object"!=typeof e)return null;e=a&&e[a]||e[d];return"function"==typeof e?e:null}var m={current:null},w={current:null},h={},v=null;function E(e){v=e}h.setExtraStackFrame=function(e){v=e},h.getCurrentStack=null,h.getStackAddendum=function(){var e="";v&&(e+=v);var t=h.getCurrentStack;return t&&(e+=t()||""),e};var C={ReactCurrentDispatcher:m,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:y};function P(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];S("warn",e,n)}function R(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];S("error",e,n)}function S(e,t,n){var r=C.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));n=n.map(function(e){return""+e});n.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,n)}C.ReactDebugCurrentFrame=h;var k={};function x(e,t){var n=e.constructor,e=n&&(n.displayName||n.name)||"ReactClass",n=e+"."+t;k[n]||(R("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.",t,e),k[n]=!0)}var O={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){x(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){x(e,"replaceState")},enqueueSetState:function(e,t,n,r){x(e,"setState")}},j={};function F(e,t,n){this.props=e,this.context=t,this.refs=j,this.updater=n||O}Object.freeze(j),F.prototype.isReactComponent={},F.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},F.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var T,e={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(T in e)e.hasOwnProperty(T)&&function(e){Object.defineProperty(F.prototype,T,{get:function(){P("%s(...) is deprecated in plain JavaScript React classes. %s",e[0],e[1])}})}(e[T]);function N(){}function $(e,t,n){this.props=e,this.context=t,this.refs=j,this.updater=n||O}function D(e){return e.displayName||"Context"}function M(e){if(null==e)return null;if("number"==typeof e.tag&&R("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ve.Fragment:return"Fragment";case g:return"Portal";case Ve.Profiler:return"Profiler";case Ve.StrictMode:return"StrictMode";case Ve.Suspense:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case c:return D(e)+".Consumer";case i:return D(e._context)+".Provider";case s:return o=(r=e).render,a="ForwardRef",o=o.displayName||o.name||"",r.displayName||(""!==o?a+"("+o+")":a);case l:return M(e.type);case f:return M(e._render);case p:var t=e._payload,n=e._init;try{return M(n(t))}catch(e){return null}}var r,o,a;return null}N.prototype=F.prototype,(ze=$.prototype=new N).constructor=$,y(ze,F.prototype),ze.isPureReactComponent=!0;var I,A,W=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0};function U(e){if(W.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return}return void 0!==e.ref}function z(e){if(W.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return}return void 0!==e.key}var V={},q=function(e,t,n,r,o,a,i){a={$$typeof:b,type:e,key:t,ref:n,props:i,_owner:a,_store:{}};return Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function B(e,t,n){var r,o,a,i={},c=null,s=null,u=null,l=null;if(null!=t)for(r in U(t)&&(s=t.ref,"string"==typeof(o=t).ref&&w.current&&o.__self&&w.current.stateNode!==o.__self&&(a=M(w.current.type),V[a]||(R('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',a,o.ref),V[a]=!0))),z(t)&&(c=""+t.key),u=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)W.call(t,r)&&!L.hasOwnProperty(r)&&(i[r]=t[r]);var p,f,d,y=arguments.length-2;if(1==y)i.children=n;else if(1<y){for(var m=Array(y),h=0;h<y;h++)m[h]=arguments[h+2];Object.freeze&&Object.freeze(m),i.children=m}if(e&&e.defaultProps){var v=e.defaultProps;for(r in v)void 0===i[r]&&(i[r]=v[r])}function b(){A||(A=!0,R("%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)",p))}function g(){I||(I=!0,R("%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)",d))}return(c||s)&&(n="function"==typeof e?e.displayName||e.name||"Unknown":e,c&&(f=i,d=n,g.isReactWarning=!0,Object.defineProperty(f,"key",{get:g,configurable:!0})),s&&(f=i,p=n,b.isReactWarning=!0,Object.defineProperty(f,"ref",{get:b,configurable:!0}))),q(e,c,s,u,l,w.current,i)}function H(e){return"object"==typeof e&&null!==e&&e.$$typeof===b}var Y=".",G=":",K=!1,J=/\/+/g;function Q(e){return e.replace(J,"$&/")}function X(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(e=""+e.key,n={"=":"=0",":":"=2"},"$"+e.replace(/[=:]/g,function(e){return n[e]})):t.toString(36);var n}function Z(e,t,n,r,o){var a,i=typeof e,c=!1;if(null===(e="undefined"==i||"boolean"==i?null:e))c=!0;else switch(i){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case b:case g:c=!0}}if(c){var s,u=e,l=o(u),p=""===r?Y+X(u,0):r;return Array.isArray(l)?(s="",Z(l,t,s=null!=p?Q(p)+"/":s,"",function(e){return e})):null!=l&&(H(l)&&(p=n+(!(s=l).key||u&&u.key===l.key?"":Q(""+l.key)+"/")+p,l=q(s.type,p,s.ref,s._self,s._source,s._owner,s.props)),t.push(l)),1}var f=0,d=""===r?Y:r+G;if(Array.isArray(e))for(var y=0;y<e.length;y++)f+=Z(a=e[y],t,n,d+X(a,y),o);else{l=_(e);if("function"==typeof l){r=e;l===r.entries&&(K||P("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),K=!0);for(var m,h=l.call(r),v=0;!(m=h.next()).done;)f+=Z(a=m.value,t,n,d+X(a,v++),o)}else if("object"==i){i=""+e;throw Error("Objects are not valid as a React child (found: "+("[object Object]"==i?"object with keys {"+Object.keys(e).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}}return f}function ee(e,t,n){if(null==e)return e;var r=[],o=0;return Z(e,r,"","",function(e){return t.call(n,e,o++)}),r}var te=-1,ne=0,re=1,oe=2;function ae(n){var e,t;if(n._status===te&&(e=(0,n._result)(),(t=n)._status=ne,(t._result=e).then(function(e){var t;n._status===ne&&(void 0===(t=e.default)&&R("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",e),(e=n)._status=re,e._result=t)},function(e){var t;n._status===ne&&((t=n)._status=oe,t._result=e)})),n._status===re)return n._result;throw n._result}var ie=!1;function ce(e){return"string"==typeof e||"function"==typeof e||(!(e!==Ve.Fragment&&e!==Ve.Profiler&&e!==r&&e!==Ve.StrictMode&&e!==Ve.Suspense&&e!==u&&e!==o&&!ie)||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===l||e.$$typeof===i||e.$$typeof===c||e.$$typeof===s||e.$$typeof===n||e.$$typeof===f||e[0]===t))}function se(){var e=m.current;if(null===e)throw 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.");return e}var ue,le,pe,fe,de,ye,me,he=0;function ve(){}ve.__reactDisabledLog=!0;var be,ge=C.ReactCurrentDispatcher;function _e(e){if(void 0===be)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||""}return"\n"+be+e}var we=!1,Ee=new("function"==typeof WeakMap?WeakMap:Map);function Ce(t,e){if(!t||we)return"";var n,r=Ee.get(t);if(void 0!==r)return r;we=!0;var o,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=ge.current,ge.current=null,0===he&&(ue=console.log,le=console.info,pe=console.warn,fe=console.error,de=console.group,ye=console.groupCollapsed,me=console.groupEnd,r={configurable:!0,enumerable:!0,value:ve,writable:!0},Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})),he++;try{if(e){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){n=e}Reflect.construct(t,[],i)}else{try{i.call()}catch(e){n=e}t.call(i.prototype)}}else{try{throw Error()}catch(e){n=e}t()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var c=e.stack.split("\n"),s=n.stack.split("\n"),u=c.length-1,l=s.length-1;1<=u&&0<=l&&c[u]!==s[l];)l--;for(;1<=u&&0<=l;u--,l--)if(c[u]!==s[l]){if(1!==u||1!==l)do{if(u--,--l<0||c[u]!==s[l]){var p="\n"+c[u].replace(" at new "," at ");return"function"==typeof t&&Ee.set(t,p),p}}while(1<=u&&0<=l);break}}}finally{we=!1,ge.current=o,0===--he&&(o={configurable:!0,enumerable:!0,writable:!0},Object.defineProperties(console,{log:y({},o,{value:ue}),info:y({},o,{value:le}),warn:y({},o,{value:pe}),error:y({},o,{value:fe}),group:y({},o,{value:de}),groupCollapsed:y({},o,{value:ye}),groupEnd:y({},o,{value:me})})),he<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue."),Error.prepareStackTrace=a}a=t?t.displayName||t.name:"",a=a?_e(a):"";return"function"==typeof t&&Ee.set(t,a),a}function Pe(e){return Ce(e,!1)}function Re(e,t,n){if(null==e)return"";if("function"==typeof e)return Ce(e,!(!(r=(r=e).prototype)||!r.isReactComponent));var r;if("string"==typeof e)return _e(e);switch(e){case Ve.Suspense:return _e("Suspense");case u:return _e("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case s:return Pe(e.render);case l:return Re(e.type,t,n);case f:return Pe(e._render);case p:var o=e._payload,a=e._init;try{return Re(a(o),t,n)}catch(e){}}return""}var Se={},ke=C.ReactDebugCurrentFrame;function xe(e){var t;e?(t=e._owner,t=Re(e.type,e._source,t?t.type:null),ke.setExtraStackFrame(t)):ke.setExtraStackFrame(null)}function Oe(e){var t;e?(t=e._owner,E(Re(e.type,e._source,t?t.type:null))):E(null)}function je(){if(w.current){var e=M(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}var Fe=!1,Te={};function Ne(e,t){var n;e._store&&!e._store.validated&&null==e.key&&(e._store.validated=!0,n=t,(t=je())||(n="string"==typeof n?n:n.displayName||n.name)&&(t="\n\nCheck the top-level render call using <"+n+">."),Te[n=t]||(Te[n]=!0,t="",e&&e._owner&&e._owner!==w.current&&(t=" It was passed a child from "+M(e._owner.type)+"."),Oe(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,t),Oe(null)))}function $e(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];H(r)&&Ne(r,t)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var o=_(e);if("function"==typeof o&&o!==e.entries)for(var a,i=o.call(e);!(a=i.next()).done;)H(a.value)&&Ne(a.value,t)}}function De(e){var t,n,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==s&&r.$$typeof!==l)return;t=r.propTypes}t?(n=M(r),function(e,t,n,r,o){var a,i=Function.call.bind(Object.prototype.hasOwnProperty);for(a in e)if(i(e,a)){var c=void 0;try{if("function"!=typeof e[a]){var s=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}c=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(xe(o),R("%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).",r||"React class",n,a,typeof c),xe(null)),c instanceof Error&&!(c.message in Se)&&(Se[c.message]=!0,xe(o),R("Failed %s type: %s",n,c.message),xe(null))}}(t,e.props,"prop",n,e)):void 0===r.PropTypes||Fe||(Fe=!0,R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",M(r)||"Unknown")),"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Me(e,t,n){var r,o=ce(e);o||(a="",(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),a+=(null==(t=t)||void 0===(t=t.__source)?"":"\n\nCheck your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+".")||je(),null===e?r="null":Array.isArray(e)?r="array":void 0!==e&&e.$$typeof===b?(r="<"+(M(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):r=typeof e,R("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",r,a));var a=B.apply(this,arguments);if(null==a)return a;if(o)for(var i=2;i<arguments.length;i++)$e(arguments[i],e);return(e===Ve.Fragment?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Oe(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Oe(null);break}}null!==e.ref&&(Oe(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),Oe(null))}:De)(a),a}var Ie=!1;try{var Ae=Object.freeze({});new Map([[Ae,null]]),new Set([Ae])}catch(e){}function We(e,t,n){for(var r=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,o,a=y({},e.props),i=e.key,c=e.ref,s=e._self,u=e._source,l=e._owner;if(null!=t)for(r in U(t)&&(c=t.ref,l=w.current),z(t)&&(i=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)W.call(t,r)&&!L.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==o?a[r]=o[r]:a[r]=t[r]);var p=arguments.length-2;if(1==p)a.children=n;else if(1<p){for(var f=Array(p),d=0;d<p;d++)f[d]=arguments[d+2];a.children=f}return q(e.type,i,c,s,u,l,a)}.apply(this,arguments),o=2;o<arguments.length;o++)$e(arguments[o],r.type);return De(r),r}var Le=Me,Ue=function(e){var t=Me.bind(null,e);return t.type=e,Ie||(Ie=!0,P("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return P("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},ze={map:ee,forEach:function(e,t,n){ee(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ee(e,function(){t++}),t},toArray:function(e){return ee(e,function(e){return e})||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ve.Children=ze,Ve.Component=F,Ve.PureComponent=$,Ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=C,Ve.cloneElement=We,Ve.createContext=function(e,t){void 0===t?t=null:null!==t&&"function"!=typeof t&&R("createContext: Expected the optional second argument to be a function. Instead received: %s",t);var n={$$typeof:c,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},r=!(n.Provider={$$typeof:i,_context:n}),o=!1,a=!1,e={$$typeof:c,_context:n,_calculateChangedBits:n._calculateChangedBits};return Object.defineProperties(e,{Provider:{get:function(){return o||(o=!0,R("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),n.Provider},set:function(e){n.Provider=e}},_currentValue:{get:function(){return n._currentValue},set:function(e){n._currentValue=e}},_currentValue2:{get:function(){return n._currentValue2},set:function(e){n._currentValue2=e}},_threadCount:{get:function(){return n._threadCount},set:function(e){n._threadCount=e}},Consumer:{get:function(){return r||(r=!0,R("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),n.Consumer}},displayName:{get:function(){return n.displayName},set:function(e){a||(P("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),a=!0)}}}),n.Consumer=e,n._currentRenderer=null,n._currentRenderer2=null,n},Ve.createElement=Le,Ve.createFactory=Ue,Ve.createRef=function(){var e={current:null};return Object.seal(e),e},Ve.forwardRef=function(t){null!=t&&t.$$typeof===l?R("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof t?R("forwardRef requires a render function but was given %s.",null===t?"null":typeof t):0!==t.length&&2!==t.length&&R("forwardRef render functions accept exactly two parameters: props and ref. %s",1===t.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=t&&(null==t.defaultProps&&null==t.propTypes||R("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var n,e={$$typeof:s,render:t};return Object.defineProperty(e,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(e){n=e,null==t.displayName&&(t.displayName=e)}}),e},Ve.isValidElement=H,Ve.lazy=function(e){var t,n,r={$$typeof:p,_payload:{_status:-1,_result:e},_init:ae};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){R("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."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){R("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."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},Ve.memo=function(t,e){ce(t)||R("memo: The first argument must be a component. Instead received: %s",null===t?"null":typeof t);var n,e={$$typeof:l,type:t,compare:void 0===e?null:e};return Object.defineProperty(e,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(e){n=e,null==t.displayName&&(t.displayName=e)}}),e},Ve.useCallback=function(e,t){return se().useCallback(e,t)},Ve.useContext=function(e,t){var n,r=se();return void 0!==t&&R("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s",t,"number"==typeof t&&Array.isArray(arguments[2])?"\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks":""),void 0!==e._context&&((n=e._context).Consumer===e?R("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?"):n.Provider===e&&R("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")),r.useContext(e,t)},Ve.useDebugValue=function(e,t){return se().useDebugValue(e,t)},Ve.useEffect=function(e,t){return se().useEffect(e,t)},Ve.useImperativeHandle=function(e,t,n){return se().useImperativeHandle(e,t,n)},Ve.useLayoutEffect=function(e,t){return se().useLayoutEffect(e,t)},Ve.useMemo=function(e,t){return se().useMemo(e,t)},Ve.useReducer=function(e,t,n){return se().useReducer(e,t,n)},Ve.useRef=function(e){return se().useRef(e)},Ve.useState=function(e){return se().useState(e)},Ve.version="17.0.1"}()}),react=createCommonjsModule(function(e){"production"===process.env.NODE_ENV?e.exports=react_production_min:e.exports=react_development}),NODE_ENV=process.env.NODE_ENV,invariant=function(e,t,n,r,o,a,i,c){if("production"!==NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");var s,u,l;if(!e)throw void 0===t?l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(s=[n,r,o,a,i,c],u=0,(l=new Error(t.replace(/%s/g,function(){return s[u++]}))).name="Invariant Violation"),l.framesToPop=1,l},invariant_1=invariant,key="__global_unique_id__",gud=function(){return commonjsGlobal[key]=(commonjsGlobal[key]||0)+1},__DEV__="production"!==process.env.NODE_ENV,warning=function(){};__DEV__&&(printWarning$2=function(e,t){var n=arguments.length;t=new Array(1<n?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var o=0,a="Warning: "+e.replace(/%s/g,function(){return t[o++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(e){}},warning=function(e,t,n){var r=arguments.length;n=new Array(2<r?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||printWarning$2.apply(null,[t].concat(n))});var warning_1=warning,implementation=createCommonjsModule(function(e,t){t.__esModule=!0,n(react);var l=n(propTypes),p=n(gud),f=n(warning_1);function n(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=1073741823;t.default=function(e,i){var t,c,n="__create-react-context-"+(0,p.default)()+"__",r=(m(s,c=react.Component),s.prototype.getChildContext=function(){var e={};return e[n]=this.emitter,e},s.prototype.componentWillReceiveProps=function(e){var t,n,r,o,a;this.props.value!==e.value&&(t=this.props.value,n=e.value,r=void 0,((o=t)===(a=n)?0!==o||1/o==1/a:o!=o&&a!=a)?r=0:(r="function"==typeof i?i(t,n):h,"production"!==process.env.NODE_ENV&&(0,f.default)((r&h)===r,"calculateChangedBits: Expected the return value to be a 31-bit integer. Instead received: %s",r),0!==(r|=0)&&this.emitter.set(e.value,r)))},s.prototype.render=function(){return this.props.children},s);function s(){var e,t;d(this,s);for(var n,r,o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return(e=t=y(this,c.call.apply(c,[this].concat(a)))).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(t){r=r.filter(function(e){return e!==t})},get:function(){return n},set:function(e,t){n=e,r.forEach(function(e){return e(n,t)})}}),y(t,e)}r.childContextTypes=((t={})[n]=l.default.object.isRequired,t);var a,o=(m(u,a=react.Component),u.prototype.componentWillReceiveProps=function(e){e=e.observedBits;this.observedBits=null==e?h:e},u.prototype.componentDidMount=function(){this.context[n]&&this.context[n].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?h:e},u.prototype.componentWillUnmount=function(){this.context[n]&&this.context[n].off(this.onUpdate)},u.prototype.getValue=function(){return this.context[n]?this.context[n].get():e},u.prototype.render=function(){return e=this.props.children,(Array.isArray(e)?e[0]:e)(this.state.value);var e},u);function u(){var e,n;d(this,u);for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return(e=n=y(this,a.call.apply(a,[this].concat(r)))).state={value:n.getValue()},n.onUpdate=function(e,t){0!=((0|n.observedBits)&t)&&n.setState({value:n.getValue()})},y(n,e)}return o.contextTypes=((t={})[n]=l.default.object,t),{Provider:r,Consumer:o}},e.exports=t.default}),lib=createCommonjsModule(function(e,t){t.__esModule=!0;var n=o(react),r=o(implementation);function o(e){return e&&e.__esModule?e:{default:e}}t.default=n.default.createContext||r.default,e.exports=t.default}),createContext=getDefaultExportFromCjs(lib);function componentWillMount(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function componentWillReceiveProps(t){this.setState(function(e){return null!=(e=this.constructor.getDerivedStateFromProps(t,e))?e:null}.bind(this))}function componentWillUpdate(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function polyfill(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,r=null,o=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?r="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(r="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==n||null!==r||null!==o){var a=e.displayName||e.name,i="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+a+" uses "+i+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==r?"\n "+r:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=componentWillMount,t.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=componentWillUpdate;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,n)}}return e}componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0;var startsWith=function(e,t){return e.substr(0,t.length)===t},pick=function(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],a=segmentize(o),i=""===a[0],c=rankRoutes(e),s=0,u=c.length;s<u;s++){var l=!1,p=c[s].route;if(p.default)r={route:p,params:{},uri:t};else{for(var f=segmentize(p.path),d={},y=Math.max(a.length,f.length),m=0;m<y;m++){var h=f[m],v=a[m];if(isSplat(h)){d[h.slice(1)||"*"]=a.slice(m).map(decodeURIComponent).join("/");break}if(void 0===v){l=!0;break}var b=paramRe.exec(h);if(b&&!i){-1===reservedNames.indexOf(b[1])||("production"!==process.env.NODE_ENV?invariant_1(!1,'<Router> dynamic segment "'+b[1]+'" is a reserved name. Please use a different name in path "'+p.path+'".'):invariant_1(!1));var g=decodeURIComponent(v);d[b[1]]=g}else if(h!==v){l=!0;break}}if(!l){n={route:p,params:d,uri:"/"+a.slice(0,m).join("/")};break}}}return n||r||null},match=function(e,t){return pick([{path:e}],t)},resolve=function(e,t){if(startsWith(e,"/"))return e;var n=e.split("?"),r=n[0],o=n[1],e=t.split("?")[0],n=segmentize(r),t=segmentize(e);if(""===n[0])return addQuery(e,o);if(!startsWith(n[0],".")){r=t.concat(n).join("/");return addQuery(("/"===e?"":"/")+r,o)}for(var a=t.concat(n),i=[],c=0,s=a.length;c<s;c++){var u=a[c];".."===u?i.pop():"."!==u&&i.push(u)}return addQuery("/"+i.join("/"),o)},insertParams=function(e,n){var t=e.split("?"),r=t[0],e=t[1],t=void 0===e?"":e,e="/"+segmentize(r).map(function(e){var t=paramRe.exec(e);return t?n[t[1]]:e}).join("/"),r=n.location,r=(r=void 0===r?{}:r).search,r=(void 0===r?"":r).split("?")[1]||"";return e=addQuery(e,t,r)},validateRedirect=function(e,t){function n(e){return isDynamic(e)}return segmentize(e).filter(n).sort().join("/")===segmentize(t).filter(n).sort().join("/")},paramRe=/^:(.+)/,SEGMENT_POINTS=4,STATIC_POINTS=3,DYNAMIC_POINTS=2,SPLAT_PENALTY=1,ROOT_POINTS=1,isRootSegment=function(e){return""===e},isDynamic=function(e){return paramRe.test(e)},isSplat=function(e){return e&&"*"===e[0]},rankRoute=function(e,t){return{route:e,score:e.default?0:segmentize(e.path).reduce(function(e,t){return e+=SEGMENT_POINTS,isRootSegment(t)?e+=ROOT_POINTS:isDynamic(t)?e+=DYNAMIC_POINTS:isSplat(t)?e-=SEGMENT_POINTS+SPLAT_PENALTY:e+=STATIC_POINTS,e},0),index:t}},rankRoutes=function(e){return e.map(rankRoute).sort(function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index})},segmentize=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},addQuery=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter(function(e){return e&&0<e.length}))&&0<n.length?"?"+n.join("&"):"")},reservedNames=["uri","path"],shallowCompare=function(t,n){var e=Object.keys(t);return e.length===Object.keys(n).length&&e.every(function(e){return n.hasOwnProperty(e)&&t[e]===n[e]})},_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},getLocation=function(e){var t=e.location,n=t.search,r=t.hash,o=t.href,a=t.origin,i=t.protocol,c=t.host,s=t.hostname,u=t.port,t=e.location.pathname;return!t&&o&&canUseDOM&&(t=new URL(o).pathname),{pathname:encodeURI(decodeURI(t)),search:n,hash:r,href:o,origin:a,protocol:i,host:c,hostname:s,port:u,state:e.history.state,key:e.history.state&&e.history.state.key||"initial"}},createHistory=function(o,e){var a=[],i=getLocation(o),c=!1,s=function(){};return{get location(){return i},get transitioning(){return c},_onTransitionComplete:function(){c=!1,s()},listen:function(t){a.push(t);function e(){i=getLocation(o),t({location:i,action:"POP"})}return o.addEventListener("popstate",e),function(){o.removeEventListener("popstate",e),a=a.filter(function(e){return e!==t})}},navigate:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.state,e=e.replace,r=void 0!==e&&e;if("number"==typeof t)o.history.go(t);else{n=_extends({},n,{key:Date.now()+""});try{c||r?o.history.replaceState(n,null,t):o.history.pushState(n,null,t)}catch(e){o.location[r?"replace":"assign"](t)}}i=getLocation(o),c=!0;e=new Promise(function(e){return s=e});return a.forEach(function(e){return e({location:i,action:"PUSH"})}),e}}},createMemorySource=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"/",t=e.indexOf("?"),t={pathname:-1<t?e.substr(0,t):e,search:-1<t?e.substr(t):""},o=0,a=[t],i=[null];return{get location(){return a[o]},addEventListener:function(e,t){},removeEventListener:function(e,t){},history:{get entries(){return a},get index(){return o},get state(){return i[o]},pushState:function(e,t,n){var r=n.split("?"),n=r[0],r=r[1],r=void 0===r?"":r;o++,a.push({pathname:n,search:r.length?"?"+r:r}),i.push(e)},replaceState:function(e,t,n){var r=n.split("?"),n=r[0],r=r[1],r=void 0===r?"":r;a[o]={pathname:n,search:r},i[o]=e},go:function(e){e=o+e;e<0||e>i.length-1||(o=e)}}}},canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),getSource=function(){return canUseDOM?window:createMemorySource()},globalHistory=createHistory(getSource()),navigate=globalHistory.navigate,_extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function _objectWithoutProperties(e,t){var n,r={};for(n in e)0<=t.indexOf(n)||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var createNamedContext=function(e,t){t=createContext(t);return t.displayName=e,t},LocationContext=createNamedContext("Location"),Location=function(e){var t=e.children;return react.createElement(LocationContext.Consumer,null,function(e){return e?t(e):react.createElement(LocationProvider,null,t)})},LocationProvider=function(a){function i(){var e,t;_classCallCheck(this,i);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t=_possibleConstructorReturn(this,a.call.apply(a,[this].concat(r)))).state={context:t.getContext(),refs:{unlisten:null}},_possibleConstructorReturn(t,e)}return _inherits(i,a),i.prototype.getContext=function(){var e=this.props.history;return{navigate:e.navigate,location:e.location}},i.prototype.componentDidCatch=function(e,t){if(!isRedirect(e))throw e;(0,this.props.history.navigate)(e.uri,{replace:!0})},i.prototype.componentDidUpdate=function(e,t){t.context.location!==this.state.context.location&&this.props.history._onTransitionComplete()},i.prototype.componentDidMount=function(){var e=this,t=this.state.refs,n=this.props.history;n._onTransitionComplete(),t.unlisten=n.listen(function(){Promise.resolve().then(function(){requestAnimationFrame(function(){e.unmounted||e.setState(function(){return{context:e.getContext()}})})})})},i.prototype.componentWillUnmount=function(){var e=this.state.refs;this.unmounted=!0,e.unlisten()},i.prototype.render=function(){var e=this.state.context,t=this.props.children;return react.createElement(LocationContext.Provider,{value:e},"function"==typeof t?t(e):t||null)},i}(react.Component);LocationProvider.defaultProps={history:globalHistory},"production"!==process.env.NODE_ENV&&(LocationProvider.propTypes={history:propTypes.object.isRequired});var ServerLocation=function(e){var t=e.url,n=e.children,r=t.indexOf("?"),o=void 0,e="";return-1<r?(o=t.substring(0,r),e=t.substring(r)):o=t,react.createElement(LocationContext.Provider,{value:{location:{pathname:o,search:e,hash:""},navigate:function(){throw new Error("You can't call navigate on the server.")}}},n)},BaseContext=createNamedContext("Base",{baseuri:"/",basepath:"/"}),Router=function(n){return react.createElement(BaseContext.Consumer,null,function(t){return react.createElement(Location,null,function(e){return react.createElement(RouterImpl,_extends$1({},t,e,n))})})},RouterImpl=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.navigate,r=e.basepath,o=e.primary,a=e.children;e.baseuri;var i=e.component,c=void 0===i?"div":i,s=_objectWithoutProperties(e,["location","navigate","basepath","primary","children","baseuri","component"]),i=react.Children.toArray(a).reduce(function(e,t){t=createRoute(r)(t);return e.concat(t)},[]),e=t.pathname,a=pick(i,e);if(a){var i=a.params,u=a.uri,e=a.route,a=a.route.value,r=e.default?r:e.path.replace(/\*$/,""),i=_extends$1({},i,{uri:u,location:t,navigate:function(e,t){return n(resolve(e,u),t)}}),i=react.cloneElement(a,i,a.props.children?react.createElement(Router,{location:t,primary:o},a.props.children):void 0),a=o?FocusHandler:c,s=o?_extends$1({uri:u,location:t,component:c},s):s;return react.createElement(BaseContext.Provider,{value:{baseuri:u,basepath:r}},react.createElement(a,s,i))}return null},t}(react.PureComponent);RouterImpl.defaultProps={primary:!0};var FocusContext=createNamedContext("Focus"),FocusHandler=function(e){var t=e.uri,n=e.location,r=e.component,o=_objectWithoutProperties(e,["uri","location","component"]);return react.createElement(FocusContext.Consumer,null,function(e){return react.createElement(FocusHandlerImpl,_extends$1({},o,{component:r,requestFocus:e,uri:t,location:n}))})},initialRender=!0,focusHandlerCount=0,FocusHandlerImpl=function(a){function i(){var e,t;_classCallCheck(this,i);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=t=_possibleConstructorReturn(this,a.call.apply(a,[this].concat(r)))).state={},t.requestFocus=function(e){!t.state.shouldFocus&&e&&e.focus()},_possibleConstructorReturn(t,e)}return _inherits(i,a),i.getDerivedStateFromProps=function(e,t){if(null==t.uri)return _extends$1({shouldFocus:!0},e);var n=e.uri!==t.uri,t=t.location.pathname!==e.location.pathname&&e.location.pathname===e.uri;return _extends$1({shouldFocus:n||t},e)},i.prototype.componentDidMount=function(){focusHandlerCount++,this.focus()},i.prototype.componentWillUnmount=function(){0===--focusHandlerCount&&(initialRender=!0)},i.prototype.componentDidUpdate=function(e,t){e.location!==this.props.location&&this.state.shouldFocus&&this.focus()},i.prototype.focus=function(){var e;"test"!==process.env.NODE_ENV&&((e=this.props.requestFocus)?e(this.node):initialRender?initialRender=!1:this.node&&(this.node.contains(document.activeElement)||this.node.focus()))},i.prototype.render=function(){var t=this,e=this.props;e.children;var n=e.style;e.requestFocus;var r=e.component,r=void 0===r?"div":r;e.uri,e.location;e=_objectWithoutProperties(e,["children","style","requestFocus","component","uri","location"]);return react.createElement(r,_extends$1({style:_extends$1({outline:"none"},n),tabIndex:"-1",ref:function(e){return t.node=e}},e),react.createElement(FocusContext.Provider,{value:this.requestFocus},this.props.children))},i}(react.Component);polyfill(FocusHandlerImpl);var k$1=function(){},forwardRef=react.forwardRef,Link=(forwardRef=void 0===forwardRef?function(e){return e}:forwardRef)(function(e,l){var p=e.innerRef,f=_objectWithoutProperties(e,["innerRef"]);return react.createElement(BaseContext.Consumer,null,function(e){e.basepath;var u=e.baseuri;return react.createElement(Location,null,function(e){var n=e.location,r=e.navigate,t=f.to,o=f.state,a=f.replace,e=f.getProps,e=void 0===e?k$1:e,i=_objectWithoutProperties(f,["to","state","replace","getProps"]),c=resolve(t,u),t=encodeURI(c),s=n.pathname===t,t=startsWith(n.pathname,t);return react.createElement("a",_extends$1({ref:l||p,"aria-current":s?"page":void 0},i,e({isCurrent:s,isPartiallyCurrent:t,href:c,location:n}),{href:c,onClick:function(e){var t;i.onClick&&i.onClick(e),shouldNavigate(e)&&(e.preventDefault(),"boolean"!=typeof(t=a)&&s&&((e=_extends$1({},n.state)).key,e=_objectWithoutProperties(e,["key"]),t=shallowCompare(_extends$1({},o),e)),r(c,{state:o,replace:t}))}}))})})});function RedirectRequest(e){this.uri=e}Link.displayName="Link","production"!==process.env.NODE_ENV&&(Link.propTypes={to:propTypes.string.isRequired});var isRedirect=function(e){return e instanceof RedirectRequest},redirectTo=function(e){throw new RedirectRequest(e)},RedirectImpl=function(e){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,e.apply(this,arguments))}return _inherits(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.navigate,n=e.to;e.from;var r=e.replace,o=void 0===r||r,a=e.state;e.noThrow;var i=e.baseuri,c=_objectWithoutProperties(e,["navigate","to","from","replace","state","noThrow","baseuri"]);Promise.resolve().then(function(){var e=resolve(n,i);t(insertParams(e,c),{replace:o,state:a})})},t.prototype.render=function(){var e=this.props;e.navigate;var t=e.to;e.from,e.replace,e.state;var n=e.noThrow,r=e.baseuri,e=_objectWithoutProperties(e,["navigate","to","from","replace","state","noThrow","baseuri"]),r=resolve(t,r);return n||redirectTo(insertParams(r,e)),null},t}(react.Component),Redirect=function(n){return react.createElement(BaseContext.Consumer,null,function(e){var t=e.baseuri;return react.createElement(Location,null,function(e){return react.createElement(RedirectImpl,_extends$1({},e,{baseuri:t},n))})})};"production"!==process.env.NODE_ENV&&(Redirect.propTypes={from:propTypes.string,to:propTypes.string.isRequired});var Match=function(e){var o=e.path,a=e.children;return react.createElement(BaseContext.Consumer,null,function(e){var r=e.baseuri;return react.createElement(Location,null,function(e){var t=e.navigate,n=e.location,e=resolve(o,r),e=match(e,n.pathname);return a({navigate:t,location:n,match:e?_extends$1({},e.params,{uri:e.uri,path:o}):null})})})},useLocation=function(){var e=react.useContext(LocationContext);if(!e)throw new Error("useLocation hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.location},useNavigate=function(){var e=react.useContext(LocationContext);if(!e)throw new Error("useNavigate hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");return e.navigate},useParams=function(){var e=react.useContext(BaseContext);if(!e)throw new Error("useParams hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var t=useLocation(),t=match(e.basepath,t.pathname);return t?t.params:null},useMatch=function(e){if(!e)throw new Error("useMatch(path: string) requires an argument of a string to match against");var t=react.useContext(BaseContext);if(!t)throw new Error("useMatch hook was used but a LocationContext.Provider was not found in the parent tree. Make sure this is used in a component that is a child of Router");var n=useLocation(),t=resolve(e,t.baseuri),n=match(t,n.pathname);return n?_extends$1({},n.params,{uri:n.uri,path:e}):null},stripSlashes=function(e){return e.replace(/(^\/+|\/+$)/g,"")},createRoute=function n(r){return function(e){if(!e)return null;if(e.type===react.Fragment&&e.props.children)return react.Children.map(e.props.children,n(r));if(e.props.path||e.props.default||e.type===Redirect||("production"!==process.env.NODE_ENV?invariant_1(!1,"<Router>: Children of <Router> must have a `path` or `default` prop, or be a `<Redirect>`. None found on element type `"+e.type+"`"):invariant_1(!1)),e.type!==Redirect||e.props.from&&e.props.to||("production"!==process.env.NODE_ENV?invariant_1(!1,'<Redirect from="'+e.props.from+'" to="'+e.props.to+'"/> requires both "from" and "to" props when inside a <Router>.'):invariant_1(!1)),e.type!==Redirect||validateRedirect(e.props.from,e.props.to)||("production"!==process.env.NODE_ENV?invariant_1(!1,'<Redirect from="'+e.props.from+' to="'+e.props.to+'"/> has mismatched dynamic segments, ensure both paths have the exact same dynamic segments.'):invariant_1(!1)),e.props.default)return{value:e,default:!0};var t=e.type===Redirect?e.props.from:e.props.path,t="/"===t?r:stripSlashes(r)+"/"+stripSlashes(t);return{value:e,default:e.props.default,path:e.props.children?stripSlashes(t)+"/*":t}}},shouldNavigate=function(e){return!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},es=Object.freeze({__proto__:null,Link:Link,Location:Location,LocationProvider:LocationProvider,Match:Match,Redirect:Redirect,Router:Router,ServerLocation:ServerLocation,createHistory:createHistory,createMemorySource:createMemorySource,isRedirect:isRedirect,navigate:navigate,redirectTo:redirectTo,globalHistory:globalHistory,matchPath:match,useLocation:useLocation,useNavigate:useNavigate,useParams:useParams,useMatch:useMatch}),utils=createCommonjsModule(function(e,t){t.__esModule=!0,t.shallowCompare=t.validateRedirect=t.insertParams=t.resolve=t.match=t.pick=t.startsWith=void 0;var n,_=(n=invariant_1)&&n.__esModule?n:{default:n};function l(e,t){return e.substr(0,t.length)===t}function r(e,t){for(var n=void 0,r=void 0,o=t.split("?")[0],a=P(o),i=""===a[0],c=C(e),s=0,u=c.length;s<u;s++){var l=!1,p=c[s].route;if(p.default)r={route:p,params:{},uri:t};else{for(var f=P(p.path),d={},y=Math.max(a.length,f.length),m=0;m<y;m++){var h=f[m],v=a[m];if(E(h)){d[h.slice(1)||"*"]=a.slice(m).map(decodeURIComponent).join("/");break}if(void 0===v){l=!0;break}var b=w.exec(h);if(b&&!i){-1===R.indexOf(b[1])||("production"!==process.env.NODE_ENV?(0,_.default)(!1,'<Router> dynamic segment "'+b[1]+'" is a reserved name. Please use a different name in path "'+p.path+'".'):(0,_.default)(!1));var g=decodeURIComponent(v);d[b[1]]=g}else if(h!==v){l=!0;break}}if(!l){n={route:p,params:d,uri:"/"+a.slice(0,m).join("/")};break}}}return n||r||null}function o(e,t){return{route:e,score:e.default?0:P(e.path).reduce(function(e,t){return e+=4,""===t?e+=1:a(t)?e+=2:E(t)?e-=5:e+=3,e},0),index:t}}var w=/^:(.+)/,a=function(e){return w.test(e)},E=function(e){return e&&"*"===e[0]},C=function(e){return e.map(o).sort(function(e,t){return e.score<t.score?1:e.score>t.score?-1:e.index-t.index})},P=function(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")},p=function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e+((n=n.filter(function(e){return e&&0<e.length}))&&0<n.length?"?"+n.join("&"):"")},R=["uri","path"];t.startsWith=l,t.pick=r,t.match=function(e,t){return r([{path:e}],t)},t.resolve=function(e,t){if(l(e,"/"))return e;var n=e.split("?"),r=n[0],o=n[1],e=t.split("?")[0],n=P(r),t=P(e);if(""===n[0])return p(e,o);if(!l(n[0],".")){r=t.concat(n).join("/");return p(("/"===e?"":"/")+r,o)}for(var a=t.concat(n),i=[],c=0,s=a.length;c<s;c++){var u=a[c];".."===u?i.pop():"."!==u&&i.push(u)}return p("/"+i.join("/"),o)},t.insertParams=function(e,n){var t=e.split("?"),r=t[0],e=t[1],t=void 0===e?"":e,e="/"+P(r).map(function(e){var t=w.exec(e);return t?n[t[1]]:e}).join("/"),r=n.location,r=(r=void 0===r?{}:r).search,r=(void 0===r?"":r).split("?")[1]||"";return e=p(e,t,r)},t.validateRedirect=function(e,t){function n(e){return a(e)}return P(e).filter(n).sort().join("/")===P(t).filter(n).sort().join("/")},t.shallowCompare=function(t,n){var e=Object.keys(t);return e.length===Object.keys(n).length&&e.every(function(e){return n.hasOwnProperty(e)&&t[e]===n[e]})}}),parsePath_2=parsePath;function parsePath(e){var t=e||"/",n="",r="",e=t.indexOf("#");-1!==e&&(r=t.substr(e),t=t.substr(0,e));e=t.indexOf("?");return-1!==e&&(n=t.substr(e),t=t.substr(0,e)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}var parsePath_1=Object.defineProperty({parsePath:parsePath},"__esModule",{value:!0}),_router=getAugmentedNamespace(es),gatsbyLink=createCommonjsModule(function(e,t){t.__esModule=!0,t.withPrefix=i,t.withAssetPrefix=function(e){return i(e,c())},t.navigateTo=t.replace=t.push=t.navigate=t.default=void 0;var l=interopRequireDefault(objectWithoutPropertiesLoose),r=interopRequireDefault(assertThisInitialized),o=interopRequireDefault(inheritsLoose),p=interopRequireDefault(_extends_1),n=interopRequireDefault(propTypes),f=interopRequireDefault(react);t.parsePath=parsePath_1.parsePath;function a(e){return null==e?void 0:e.startsWith("/")}function i(e,t){if(void 0===t&&(t=s()),!d(e))return e;if(e.startsWith("./")||e.startsWith("../"))return e;t=null!==(t=null!==t&&void 0!==t?t:c())&&void 0!==t?t:"/";return""+(null!=t&&t.endsWith("/")?t.slice(0,-1):t)+(e.startsWith("/")?e:"/"+e)}var c=function(){return"production"===process.env.NODE_ENV||"undefined"!=typeof __PATH_PREFIX__?__PATH_PREFIX__:void 0},s=function(){return"production"===process.env.NODE_ENV||"undefined"!=typeof __BASE_PATH__?__BASE_PATH__:void 0},d=function(e){return e&&!e.startsWith("http://")&&!e.startsWith("https://")&&!e.startsWith("//")};function y(e,t){return"number"!=typeof e&&d(e)?a(e)?i(e):(n=t,a(t=e)?t:(0,utils.resolve)(t,n)):e;var n}var u={activeClassName:n.default.string,activeStyle:n.default.object,partiallyActive:n.default.bool};function m(t){return f.default.createElement(_router.Location,null,function(e){e=e.location;return f.default.createElement(h,(0,p.default)({},t,{_location:e}))})}var h=function(t){function e(e){var n=t.call(this,e)||this,e=!(n.defaultGetProps=function(e){var t=e.isPartiallyCurrent,e=e.isCurrent;return(n.props.partiallyActive?t:e)?{className:[n.props.className,n.props.activeClassName].filter(Boolean).join(" "),style:(0,p.default)({},n.props.style,n.props.activeStyle)}:null});return"undefined"!=typeof window&&window.IntersectionObserver&&(e=!0),n.state={IOSupported:e},n.handleRef=n.handleRef.bind((0,r.default)(n)),n}(0,o.default)(e,t);var n=e.prototype;return n._prefetch=function(){var e=window.location.pathname;this.props._location&&this.props._location.pathname&&(e=this.props._location.pathname);var t=y(this.props.to,e),t=(0,parsePath_1.parsePath)(t).pathname;e!==t&&___loader.enqueue(t)},n.componentDidUpdate=function(e,t){this.props.to===e.to||this.state.IOSupported||this._prefetch()},n.componentDidMount=function(){this.state.IOSupported||this._prefetch()},n.componentWillUnmount=function(){var e,t;this.io&&(e=(t=this.io).instance,t=t.el,e.unobserve(t),e.disconnect())},n.handleRef=function(e){var t,n,r,o=this;this.props.innerRef&&this.props.innerRef.hasOwnProperty("current")?this.props.innerRef.current=e:this.props.innerRef&&this.props.innerRef(e),this.state.IOSupported&&e&&(this.io=(t=e,n=function(){o._prefetch()},(r=new window.IntersectionObserver(function(e){e.forEach(function(e){t===e.target&&(e.isIntersecting||0<e.intersectionRatio)&&(r.unobserve(t),r.disconnect(),n())})})).observe(t),{instance:r,el:t}))},n.render=function(){var n=this,e=this.props,t=e.to,r=e.getProps,r=void 0===r?this.defaultGetProps:r,o=e.onClick,a=e.onMouseEnter;e.activeClassName,e.activeStyle,e.innerRef,e.partiallyActive;var i=e.state,c=e.replace,s=e._location,e=(0,l.default)(e,["to","getProps","onClick","onMouseEnter","activeClassName","activeStyle","innerRef","partiallyActive","state","replace","_location"]);"production"===process.env.NODE_ENV||d(t)||console.warn("External link "+t+" was detected in a Link component. Use the Link component only for internal links. See: https://gatsby.dev/internal-links");var u=y(t,s.pathname);return d(u)?f.default.createElement(_router.Link,(0,p.default)({to:u,state:i,getProps:r,innerRef:this.handleRef,onMouseEnter:function(e){a&&a(e),___loader.hovering((0,parsePath_1.parsePath)(u).pathname)},onClick:function(e){var t;return o&&o(e),0!==e.button||n.props.target||e.defaultPrevented||e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||(e.preventDefault(),t=c,e=encodeURI(u)===s.pathname,"boolean"!=typeof c&&e&&(t=!0),window.___navigate(u,{state:i,replace:t})),!0}},e)):f.default.createElement("a",(0,p.default)({href:u},e))},e}(f.default.Component);h.propTypes=(0,p.default)({},u,{onClick:n.default.func,to:n.default.string.isRequired,replace:n.default.bool,state:n.default.object});function v(e,t,n){return console.warn('The "'+e+'" method is now deprecated and will be removed in Gatsby v'+n+'. Please use "'+t+'" instead.')}n=f.default.forwardRef(function(e,t){return f.default.createElement(m,(0,p.default)({innerRef:t},e))});t.default=n;t.navigate=function(e,t){window.___navigate(y(e,window.location.pathname),t)};function b(e){v("push","navigate",3),window.___push(y(e,window.location.pathname))}t.push=b;t.replace=function(e){v("replace","navigate",3),window.___replace(y(e,window.location.pathname))};t.navigateTo=function(e){return v("navigateTo","navigate",3),b(e)}}),Link$1=getDefaultExportFromCjs(gatsbyLink);function styleInject(e,t){var n,r=(t=void 0===t?{}:t).insertAt;e&&"undefined"!=typeof document&&(n=document.head||document.getElementsByTagName("head")[0],(t=document.createElement("style")).type="text/css","top"===r&&n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)))}var css_248z=".e-button {\n padding: .5rem 1rem;\n align-items: center;\n align-self: center;\n border-radius: 4px;\n text-align: center;\n text-decoration: none;\n cursor: pointer;\n transition: all .3s ease;\n letter-spacing: .5px;\n font-size: 1rem;\n outline: none; }\n .e-button.stretch-button {\n display: block;\n width: 100%; }\n .e-button label {\n vertical-align: middle;\n cursor: pointer; }\n .e-button svg {\n margin-right: 0.2rem;\n vertical-align: middle; }\n .e-button.--skipStep {\n padding: 0;\n position: absolute; }\n .e-button.--skipStep label {\n color: #1E2021; }\n .e-button.--primary {\n display: inline-block; }\n .e-button.--primary-1 {\n background-color: #078080;\n border: 2px solid #078080;\n color: #FFFFFF;\n font-weight: bold;\n height: 100%; }\n .e-button.--primary-1:hover {\n background-color: #05646E;\n border-color: #05646E; }\n .e-button.--primary-2 {\n background-color: #032A38;\n border: 2px solid #032A38;\n color: #FFFFFF;\n font-weight: bold; }\n .e-button.--primary-2:hover {\n background-color: #02374A;\n border-color: #02374A; }\n .e-button.--primary-3 {\n background-color: #F2BD6A;\n border: 2px solid #F2BD6A;\n color: #1E2021;\n font-weight: bold; }\n .e-button.--primary-3:hover {\n background-color: #CD944C;\n border-color: #CD944C; }\n .e-button.--primary-4 {\n background-color: #032A38;\n border: 2px solid #032A38;\n color: #EFF7F5;\n font-weight: bold; }\n .e-button.--primary-4:hover {\n background-color: #02374A;\n border-color: #02374A; }\n .e-button.--secondary {\n display: inline-block; }\n .e-button.--secondary-1 {\n background-color: #FFFFFF;\n border: 2px solid #078080;\n color: #078080;\n font-weight: bold; }\n .e-button.--secondary-1:hover {\n background-color: #E4F8F3; }\n .e-button.--secondary-2 {\n background-color: #FFFFFF;\n border: 2px solid #F2BD6A;\n color: #1E2021;\n font-weight: bold; }\n .e-button.--secondary-2:hover {\n background-color: #FCF4E5; }\n .e-button.--secondary-5 {\n background-color: inherit;\n border: none;\n color: #078080;\n font-weight: bold;\n margin-top: 1.5rem;\n align-self: flex-start;\n padding-left: 0.5rem; }\n .e-button.--disabled {\n background-color: #DBE1E5;\n color: #3D4042;\n pointer-events: none; }\n\n.button--secondary-3 {\n color: #3D4042;\n display: flex;\n font-size: 14px;\n font-weight: bold;\n justify-content: center;\n border-radius: 4px;\n border: 2px solid #6D7275;\n background-color: #F8F9FA; }\n .button--secondary-3 .button__icon {\n width: 20px;\n margin-right: .25rem; }\n .button--secondary-3 .button__icon__g {\n fill: #3D4042; }\n .button--secondary-3 img {\n max-width: 20px; }\n .button--secondary-3:hover {\n background-color: #DBE1E5; }\n\n.button--secondary-4 {\n background-color: #1E2021;\n border: 1px solid #FFFFFF !important;\n color: #FFFFFF; }\n .button--secondary-4 svg {\n fill: #FFFFFF; }\n .button--secondary-4:hover {\n background-color: #3D4042; }\n\n.button--tertiary {\n font-weight: bold;\n padding: .5rem 1rem;\n display: inline-block;\n color: #05646E;\n border: none;\n background: none; }\n .button--tertiary:hover {\n background-color: #C0F7E8; }\n\n.button--secondary-4 {\n background-color: #1E2021;\n border: 1px solid #FFFFFF !important;\n color: #FFFFFF; }\n .button--secondary-4 svg {\n fill: #FFFFFF; }\n .button--secondary-4:hover {\n background-color: #3D4042; }\n\n.button--small {\n line-height: 1; }\n\n.button--centered {\n margin: 0 auto; }\n\n.--noLinkNoFunc * {\n pointer-events: none; }\n";styleInject(css_248z);var Button=e=>{var{dataQa:t,label:n,labelMobile:r,link:o,noLink:a,noLinkNoFunc:i,onClick:c,functionParameters:s,primary:u,primary2:l,primary3:p,primary4:f,secondary:d,secondary2:y,secondary3:m,secondary4:h,secondary5:v,tertiary:b,disabled:g,givenClass:_,children:w,size:E,isExternal:C,centered:e}=e,E=E?{S:"button--small"}[E]:"",e=classnames("e-button ".concat(_||""," ").concat(E),{"--primary-1":u,"--primary-2":l,"--primary-3":p,"--primary-4":f,"--secondary-1":d,"--secondary-2":y,"button--secondary-3":m,"button--secondary-4":h,"--secondary-5":v,"button--tertiary":b,"--disabled":g,"button--centered":e});return a?react.createElement("button",{className:"e-button --noLink ".concat(e),"data-qa":t,onClick:()=>c(s)},w||null,r?react.createElement(react.Fragment,null,react.createElement("label",{className:"e-button-labelMobile"},r),react.createElement("label",{className:"e-button-labelDesktop"},n)):react.createElement("label",null,n)):i?react.createElement("button",{className:"e-button --noLinkNoFunc ".concat(e),"data-qa":t},w||null,r?react.createElement(react.Fragment,null,react.createElement("label",{className:"e-button-labelMobile"},r),react.createElement("label",{className:"e-button-labelDesktop"},n)):react.createElement("label",null,n)):C?react.createElement("a",{className:"e-button ".concat(e),href:o||"","data-qa":t},w||null,r?react.createElement(react.Fragment,null,react.createElement("label",{className:"e-button-labelMobile"},r),react.createElement("label",{className:"e-button-labelDesktop"},n)):react.createElement("label",null,n)):react.createElement(Link$1,{className:"e-button ".concat(e),to:o||"","data-qa":t},w||null,r?react.createElement(react.Fragment,null,react.createElement("label",{className:"e-button-labelMobile"},r),react.createElement("label",{className:"e-button-labelDesktop"},n)):react.createElement("label",null,n))};exports.Button=Button;