react-intl 5.18.2 → 5.18.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/react-intl.iife.js +10 -1386
@@ -34,1369 +34,6 @@ var ReactIntl = (function() {
34
34
  }, enumerable: true} : {value: module, enumerable: true})), module);
35
35
  };
36
36
 
37
- // node_modules/object-assign/index.js
38
- var require_object_assign = __commonJS({
39
- "node_modules/object-assign/index.js": function(exports, module) {
40
- "use strict";
41
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
42
- var hasOwnProperty = Object.prototype.hasOwnProperty;
43
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
44
- function toObject(val) {
45
- if (val === null || val === void 0) {
46
- throw new TypeError("Object.assign cannot be called with null or undefined");
47
- }
48
- return Object(val);
49
- }
50
- function shouldUseNative() {
51
- try {
52
- if (!Object.assign) {
53
- return false;
54
- }
55
- var test1 = new String("abc");
56
- test1[5] = "de";
57
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
58
- return false;
59
- }
60
- var test2 = {};
61
- for (var i = 0; i < 10; i++) {
62
- test2["_" + String.fromCharCode(i)] = i;
63
- }
64
- var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
65
- return test2[n];
66
- });
67
- if (order2.join("") !== "0123456789") {
68
- return false;
69
- }
70
- var test3 = {};
71
- "abcdefghijklmnopqrst".split("").forEach(function(letter) {
72
- test3[letter] = letter;
73
- });
74
- if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
75
- return false;
76
- }
77
- return true;
78
- } catch (err) {
79
- return false;
80
- }
81
- }
82
- module.exports = shouldUseNative() ? Object.assign : function(target, source) {
83
- var from;
84
- var to = toObject(target);
85
- var symbols;
86
- for (var s = 1; s < arguments.length; s++) {
87
- from = Object(arguments[s]);
88
- for (var key in from) {
89
- if (hasOwnProperty.call(from, key)) {
90
- to[key] = from[key];
91
- }
92
- }
93
- if (getOwnPropertySymbols) {
94
- symbols = getOwnPropertySymbols(from);
95
- for (var i = 0; i < symbols.length; i++) {
96
- if (propIsEnumerable.call(from, symbols[i])) {
97
- to[symbols[i]] = from[symbols[i]];
98
- }
99
- }
100
- }
101
- }
102
- return to;
103
- };
104
- }
105
- });
106
-
107
- // node_modules/prop-types/lib/ReactPropTypesSecret.js
108
- var require_ReactPropTypesSecret = __commonJS({
109
- "node_modules/prop-types/lib/ReactPropTypesSecret.js": function(exports, module) {
110
- "use strict";
111
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
112
- module.exports = ReactPropTypesSecret;
113
- }
114
- });
115
-
116
- // node_modules/prop-types/checkPropTypes.js
117
- var require_checkPropTypes = __commonJS({
118
- "node_modules/prop-types/checkPropTypes.js": function(exports, module) {
119
- "use strict";
120
- var printWarning = function() {
121
- };
122
- if (true) {
123
- ReactPropTypesSecret = require_ReactPropTypesSecret();
124
- loggedTypeFailures = {};
125
- has = Function.call.bind(Object.prototype.hasOwnProperty);
126
- printWarning = function(text) {
127
- var message = "Warning: " + text;
128
- if (typeof console !== "undefined") {
129
- console.error(message);
130
- }
131
- try {
132
- throw new Error(message);
133
- } catch (x) {
134
- }
135
- };
136
- }
137
- var ReactPropTypesSecret;
138
- var loggedTypeFailures;
139
- var has;
140
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
141
- if (true) {
142
- for (var typeSpecName in typeSpecs) {
143
- if (has(typeSpecs, typeSpecName)) {
144
- var error;
145
- try {
146
- if (typeof typeSpecs[typeSpecName] !== "function") {
147
- 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] + "`.");
148
- err.name = "Invariant Violation";
149
- throw err;
150
- }
151
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
152
- } catch (ex) {
153
- error = ex;
154
- }
155
- if (error && !(error instanceof Error)) {
156
- printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");
157
- }
158
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
159
- loggedTypeFailures[error.message] = true;
160
- var stack = getStack ? getStack() : "";
161
- printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
162
- }
163
- }
164
- }
165
- }
166
- }
167
- checkPropTypes.resetWarningCache = function() {
168
- if (true) {
169
- loggedTypeFailures = {};
170
- }
171
- };
172
- module.exports = checkPropTypes;
173
- }
174
- });
175
-
176
- // node_modules/react/cjs/react.development.js
177
- var require_react_development = __commonJS({
178
- "node_modules/react/cjs/react.development.js": function(exports) {
179
- "use strict";
180
- if (true) {
181
- (function() {
182
- "use strict";
183
- var _assign = require_object_assign();
184
- var checkPropTypes = require_checkPropTypes();
185
- var ReactVersion = "16.14.0";
186
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
187
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
188
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
189
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
190
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
191
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
192
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
193
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
194
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
195
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
196
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
197
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
198
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
199
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
200
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
201
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
202
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
203
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
204
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
205
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
206
- function getIteratorFn(maybeIterable) {
207
- if (maybeIterable === null || typeof maybeIterable !== "object") {
208
- return null;
209
- }
210
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
211
- if (typeof maybeIterator === "function") {
212
- return maybeIterator;
213
- }
214
- return null;
215
- }
216
- var ReactCurrentDispatcher = {
217
- current: null
218
- };
219
- var ReactCurrentBatchConfig = {
220
- suspense: null
221
- };
222
- var ReactCurrentOwner = {
223
- current: null
224
- };
225
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
226
- function describeComponentFrame(name, source, ownerName) {
227
- var sourceInfo = "";
228
- if (source) {
229
- var path = source.fileName;
230
- var fileName = path.replace(BEFORE_SLASH_RE, "");
231
- {
232
- if (/^index\./.test(fileName)) {
233
- var match = path.match(BEFORE_SLASH_RE);
234
- if (match) {
235
- var pathBeforeSlash = match[1];
236
- if (pathBeforeSlash) {
237
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, "");
238
- fileName = folderName + "/" + fileName;
239
- }
240
- }
241
- }
242
- }
243
- sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")";
244
- } else if (ownerName) {
245
- sourceInfo = " (created by " + ownerName + ")";
246
- }
247
- return "\n in " + (name || "Unknown") + sourceInfo;
248
- }
249
- var Resolved = 1;
250
- function refineResolvedLazyComponent(lazyComponent) {
251
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
252
- }
253
- function getWrappedName(outerType, innerType, wrapperName) {
254
- var functionName = innerType.displayName || innerType.name || "";
255
- return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
256
- }
257
- function getComponentName(type) {
258
- if (type == null) {
259
- return null;
260
- }
261
- {
262
- if (typeof type.tag === "number") {
263
- error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
264
- }
265
- }
266
- if (typeof type === "function") {
267
- return type.displayName || type.name || null;
268
- }
269
- if (typeof type === "string") {
270
- return type;
271
- }
272
- switch (type) {
273
- case REACT_FRAGMENT_TYPE:
274
- return "Fragment";
275
- case REACT_PORTAL_TYPE:
276
- return "Portal";
277
- case REACT_PROFILER_TYPE:
278
- return "Profiler";
279
- case REACT_STRICT_MODE_TYPE:
280
- return "StrictMode";
281
- case REACT_SUSPENSE_TYPE:
282
- return "Suspense";
283
- case REACT_SUSPENSE_LIST_TYPE:
284
- return "SuspenseList";
285
- }
286
- if (typeof type === "object") {
287
- switch (type.$$typeof) {
288
- case REACT_CONTEXT_TYPE:
289
- return "Context.Consumer";
290
- case REACT_PROVIDER_TYPE:
291
- return "Context.Provider";
292
- case REACT_FORWARD_REF_TYPE:
293
- return getWrappedName(type, type.render, "ForwardRef");
294
- case REACT_MEMO_TYPE:
295
- return getComponentName(type.type);
296
- case REACT_BLOCK_TYPE:
297
- return getComponentName(type.render);
298
- case REACT_LAZY_TYPE: {
299
- var thenable = type;
300
- var resolvedThenable = refineResolvedLazyComponent(thenable);
301
- if (resolvedThenable) {
302
- return getComponentName(resolvedThenable);
303
- }
304
- break;
305
- }
306
- }
307
- }
308
- return null;
309
- }
310
- var ReactDebugCurrentFrame = {};
311
- var currentlyValidatingElement = null;
312
- function setCurrentlyValidatingElement(element) {
313
- {
314
- currentlyValidatingElement = element;
315
- }
316
- }
317
- {
318
- ReactDebugCurrentFrame.getCurrentStack = null;
319
- ReactDebugCurrentFrame.getStackAddendum = function() {
320
- var stack = "";
321
- if (currentlyValidatingElement) {
322
- var name = getComponentName(currentlyValidatingElement.type);
323
- var owner = currentlyValidatingElement._owner;
324
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
325
- }
326
- var impl = ReactDebugCurrentFrame.getCurrentStack;
327
- if (impl) {
328
- stack += impl() || "";
329
- }
330
- return stack;
331
- };
332
- }
333
- var IsSomeRendererActing = {
334
- current: false
335
- };
336
- var ReactSharedInternals = {
337
- ReactCurrentDispatcher: ReactCurrentDispatcher,
338
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
339
- ReactCurrentOwner: ReactCurrentOwner,
340
- IsSomeRendererActing: IsSomeRendererActing,
341
- assign: _assign
342
- };
343
- {
344
- _assign(ReactSharedInternals, {
345
- ReactDebugCurrentFrame: ReactDebugCurrentFrame,
346
- ReactComponentTreeHook: {}
347
- });
348
- }
349
- function warn(format) {
350
- {
351
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
352
- args[_key - 1] = arguments[_key];
353
- }
354
- printWarning("warn", format, args);
355
- }
356
- }
357
- function error(format) {
358
- {
359
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
360
- args[_key2 - 1] = arguments[_key2];
361
- }
362
- printWarning("error", format, args);
363
- }
364
- }
365
- function printWarning(level, format, args) {
366
- {
367
- var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === "string" && args[args.length - 1].indexOf("\n in") === 0;
368
- if (!hasExistingStack) {
369
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
370
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
371
- if (stack !== "") {
372
- format += "%s";
373
- args = args.concat([stack]);
374
- }
375
- }
376
- var argsWithFormat = args.map(function(item) {
377
- return "" + item;
378
- });
379
- argsWithFormat.unshift("Warning: " + format);
380
- Function.prototype.apply.call(console[level], console, argsWithFormat);
381
- try {
382
- var argIndex = 0;
383
- var message = "Warning: " + format.replace(/%s/g, function() {
384
- return args[argIndex++];
385
- });
386
- throw new Error(message);
387
- } catch (x) {
388
- }
389
- }
390
- }
391
- var didWarnStateUpdateForUnmountedComponent = {};
392
- function warnNoop(publicInstance, callerName) {
393
- {
394
- var _constructor = publicInstance.constructor;
395
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
396
- var warningKey = componentName + "." + callerName;
397
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
398
- return;
399
- }
400
- 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);
401
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
402
- }
403
- }
404
- var ReactNoopUpdateQueue = {
405
- isMounted: function(publicInstance) {
406
- return false;
407
- },
408
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
409
- warnNoop(publicInstance, "forceUpdate");
410
- },
411
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
412
- warnNoop(publicInstance, "replaceState");
413
- },
414
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
415
- warnNoop(publicInstance, "setState");
416
- }
417
- };
418
- var emptyObject = {};
419
- {
420
- Object.freeze(emptyObject);
421
- }
422
- function Component(props, context, updater) {
423
- this.props = props;
424
- this.context = context;
425
- this.refs = emptyObject;
426
- this.updater = updater || ReactNoopUpdateQueue;
427
- }
428
- Component.prototype.isReactComponent = {};
429
- Component.prototype.setState = function(partialState, callback) {
430
- if (!(typeof partialState === "object" || typeof partialState === "function" || partialState == null)) {
431
- {
432
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
433
- }
434
- }
435
- this.updater.enqueueSetState(this, partialState, callback, "setState");
436
- };
437
- Component.prototype.forceUpdate = function(callback) {
438
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
439
- };
440
- {
441
- var deprecatedAPIs = {
442
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
443
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
444
- };
445
- var defineDeprecationWarning = function(methodName, info) {
446
- Object.defineProperty(Component.prototype, methodName, {
447
- get: function() {
448
- warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
449
- return void 0;
450
- }
451
- });
452
- };
453
- for (var fnName in deprecatedAPIs) {
454
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
455
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
456
- }
457
- }
458
- }
459
- function ComponentDummy() {
460
- }
461
- ComponentDummy.prototype = Component.prototype;
462
- function PureComponent2(props, context, updater) {
463
- this.props = props;
464
- this.context = context;
465
- this.refs = emptyObject;
466
- this.updater = updater || ReactNoopUpdateQueue;
467
- }
468
- var pureComponentPrototype = PureComponent2.prototype = new ComponentDummy();
469
- pureComponentPrototype.constructor = PureComponent2;
470
- _assign(pureComponentPrototype, Component.prototype);
471
- pureComponentPrototype.isPureReactComponent = true;
472
- function createRef() {
473
- var refObject = {
474
- current: null
475
- };
476
- {
477
- Object.seal(refObject);
478
- }
479
- return refObject;
480
- }
481
- var hasOwnProperty = Object.prototype.hasOwnProperty;
482
- var RESERVED_PROPS = {
483
- key: true,
484
- ref: true,
485
- __self: true,
486
- __source: true
487
- };
488
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
489
- {
490
- didWarnAboutStringRefs = {};
491
- }
492
- function hasValidRef(config) {
493
- {
494
- if (hasOwnProperty.call(config, "ref")) {
495
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
496
- if (getter && getter.isReactWarning) {
497
- return false;
498
- }
499
- }
500
- }
501
- return config.ref !== void 0;
502
- }
503
- function hasValidKey(config) {
504
- {
505
- if (hasOwnProperty.call(config, "key")) {
506
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
507
- if (getter && getter.isReactWarning) {
508
- return false;
509
- }
510
- }
511
- }
512
- return config.key !== void 0;
513
- }
514
- function defineKeyPropWarningGetter(props, displayName) {
515
- var warnAboutAccessingKey = function() {
516
- {
517
- if (!specialPropKeyWarningShown) {
518
- specialPropKeyWarningShown = true;
519
- 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://fb.me/react-special-props)", displayName);
520
- }
521
- }
522
- };
523
- warnAboutAccessingKey.isReactWarning = true;
524
- Object.defineProperty(props, "key", {
525
- get: warnAboutAccessingKey,
526
- configurable: true
527
- });
528
- }
529
- function defineRefPropWarningGetter(props, displayName) {
530
- var warnAboutAccessingRef = function() {
531
- {
532
- if (!specialPropRefWarningShown) {
533
- specialPropRefWarningShown = true;
534
- 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://fb.me/react-special-props)", displayName);
535
- }
536
- }
537
- };
538
- warnAboutAccessingRef.isReactWarning = true;
539
- Object.defineProperty(props, "ref", {
540
- get: warnAboutAccessingRef,
541
- configurable: true
542
- });
543
- }
544
- function warnIfStringRefCannotBeAutoConverted(config) {
545
- {
546
- if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
547
- var componentName = getComponentName(ReactCurrentOwner.current.type);
548
- if (!didWarnAboutStringRefs[componentName]) {
549
- 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://fb.me/react-strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config.ref);
550
- didWarnAboutStringRefs[componentName] = true;
551
- }
552
- }
553
- }
554
- }
555
- var ReactElement = function(type, key, ref, self, source, owner, props) {
556
- var element = {
557
- $$typeof: REACT_ELEMENT_TYPE,
558
- type: type,
559
- key: key,
560
- ref: ref,
561
- props: props,
562
- _owner: owner
563
- };
564
- {
565
- element._store = {};
566
- Object.defineProperty(element._store, "validated", {
567
- configurable: false,
568
- enumerable: false,
569
- writable: true,
570
- value: false
571
- });
572
- Object.defineProperty(element, "_self", {
573
- configurable: false,
574
- enumerable: false,
575
- writable: false,
576
- value: self
577
- });
578
- Object.defineProperty(element, "_source", {
579
- configurable: false,
580
- enumerable: false,
581
- writable: false,
582
- value: source
583
- });
584
- if (Object.freeze) {
585
- Object.freeze(element.props);
586
- Object.freeze(element);
587
- }
588
- }
589
- return element;
590
- };
591
- function createElement8(type, config, children) {
592
- var propName;
593
- var props = {};
594
- var key = null;
595
- var ref = null;
596
- var self = null;
597
- var source = null;
598
- if (config != null) {
599
- if (hasValidRef(config)) {
600
- ref = config.ref;
601
- {
602
- warnIfStringRefCannotBeAutoConverted(config);
603
- }
604
- }
605
- if (hasValidKey(config)) {
606
- key = "" + config.key;
607
- }
608
- self = config.__self === void 0 ? null : config.__self;
609
- source = config.__source === void 0 ? null : config.__source;
610
- for (propName in config) {
611
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
612
- props[propName] = config[propName];
613
- }
614
- }
615
- }
616
- var childrenLength = arguments.length - 2;
617
- if (childrenLength === 1) {
618
- props.children = children;
619
- } else if (childrenLength > 1) {
620
- var childArray = Array(childrenLength);
621
- for (var i = 0; i < childrenLength; i++) {
622
- childArray[i] = arguments[i + 2];
623
- }
624
- {
625
- if (Object.freeze) {
626
- Object.freeze(childArray);
627
- }
628
- }
629
- props.children = childArray;
630
- }
631
- if (type && type.defaultProps) {
632
- var defaultProps = type.defaultProps;
633
- for (propName in defaultProps) {
634
- if (props[propName] === void 0) {
635
- props[propName] = defaultProps[propName];
636
- }
637
- }
638
- }
639
- {
640
- if (key || ref) {
641
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
642
- if (key) {
643
- defineKeyPropWarningGetter(props, displayName);
644
- }
645
- if (ref) {
646
- defineRefPropWarningGetter(props, displayName);
647
- }
648
- }
649
- }
650
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
651
- }
652
- function cloneAndReplaceKey(oldElement, newKey) {
653
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
654
- return newElement;
655
- }
656
- function cloneElement(element, config, children) {
657
- if (!!(element === null || element === void 0)) {
658
- {
659
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
660
- }
661
- }
662
- var propName;
663
- var props = _assign({}, element.props);
664
- var key = element.key;
665
- var ref = element.ref;
666
- var self = element._self;
667
- var source = element._source;
668
- var owner = element._owner;
669
- if (config != null) {
670
- if (hasValidRef(config)) {
671
- ref = config.ref;
672
- owner = ReactCurrentOwner.current;
673
- }
674
- if (hasValidKey(config)) {
675
- key = "" + config.key;
676
- }
677
- var defaultProps;
678
- if (element.type && element.type.defaultProps) {
679
- defaultProps = element.type.defaultProps;
680
- }
681
- for (propName in config) {
682
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
683
- if (config[propName] === void 0 && defaultProps !== void 0) {
684
- props[propName] = defaultProps[propName];
685
- } else {
686
- props[propName] = config[propName];
687
- }
688
- }
689
- }
690
- }
691
- var childrenLength = arguments.length - 2;
692
- if (childrenLength === 1) {
693
- props.children = children;
694
- } else if (childrenLength > 1) {
695
- var childArray = Array(childrenLength);
696
- for (var i = 0; i < childrenLength; i++) {
697
- childArray[i] = arguments[i + 2];
698
- }
699
- props.children = childArray;
700
- }
701
- return ReactElement(element.type, key, ref, self, source, owner, props);
702
- }
703
- function isValidElement(object) {
704
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
705
- }
706
- var SEPARATOR = ".";
707
- var SUBSEPARATOR = ":";
708
- function escape(key) {
709
- var escapeRegex = /[=:]/g;
710
- var escaperLookup = {
711
- "=": "=0",
712
- ":": "=2"
713
- };
714
- var escapedString = ("" + key).replace(escapeRegex, function(match) {
715
- return escaperLookup[match];
716
- });
717
- return "$" + escapedString;
718
- }
719
- var didWarnAboutMaps = false;
720
- var userProvidedKeyEscapeRegex = /\/+/g;
721
- function escapeUserProvidedKey(text) {
722
- return ("" + text).replace(userProvidedKeyEscapeRegex, "$&/");
723
- }
724
- var POOL_SIZE = 10;
725
- var traverseContextPool = [];
726
- function getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext) {
727
- if (traverseContextPool.length) {
728
- var traverseContext = traverseContextPool.pop();
729
- traverseContext.result = mapResult;
730
- traverseContext.keyPrefix = keyPrefix;
731
- traverseContext.func = mapFunction;
732
- traverseContext.context = mapContext;
733
- traverseContext.count = 0;
734
- return traverseContext;
735
- } else {
736
- return {
737
- result: mapResult,
738
- keyPrefix: keyPrefix,
739
- func: mapFunction,
740
- context: mapContext,
741
- count: 0
742
- };
743
- }
744
- }
745
- function releaseTraverseContext(traverseContext) {
746
- traverseContext.result = null;
747
- traverseContext.keyPrefix = null;
748
- traverseContext.func = null;
749
- traverseContext.context = null;
750
- traverseContext.count = 0;
751
- if (traverseContextPool.length < POOL_SIZE) {
752
- traverseContextPool.push(traverseContext);
753
- }
754
- }
755
- function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext) {
756
- var type = typeof children;
757
- if (type === "undefined" || type === "boolean") {
758
- children = null;
759
- }
760
- var invokeCallback = false;
761
- if (children === null) {
762
- invokeCallback = true;
763
- } else {
764
- switch (type) {
765
- case "string":
766
- case "number":
767
- invokeCallback = true;
768
- break;
769
- case "object":
770
- switch (children.$$typeof) {
771
- case REACT_ELEMENT_TYPE:
772
- case REACT_PORTAL_TYPE:
773
- invokeCallback = true;
774
- }
775
- }
776
- }
777
- if (invokeCallback) {
778
- callback(traverseContext, children, nameSoFar === "" ? SEPARATOR + getComponentKey(children, 0) : nameSoFar);
779
- return 1;
780
- }
781
- var child;
782
- var nextName;
783
- var subtreeCount = 0;
784
- var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
785
- if (Array.isArray(children)) {
786
- for (var i = 0; i < children.length; i++) {
787
- child = children[i];
788
- nextName = nextNamePrefix + getComponentKey(child, i);
789
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
790
- }
791
- } else {
792
- var iteratorFn = getIteratorFn(children);
793
- if (typeof iteratorFn === "function") {
794
- {
795
- if (iteratorFn === children.entries) {
796
- if (!didWarnAboutMaps) {
797
- warn("Using Maps as children is deprecated and will be removed in a future major release. Consider converting children to an array of keyed ReactElements instead.");
798
- }
799
- didWarnAboutMaps = true;
800
- }
801
- }
802
- var iterator = iteratorFn.call(children);
803
- var step;
804
- var ii = 0;
805
- while (!(step = iterator.next()).done) {
806
- child = step.value;
807
- nextName = nextNamePrefix + getComponentKey(child, ii++);
808
- subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
809
- }
810
- } else if (type === "object") {
811
- var addendum = "";
812
- {
813
- addendum = " If you meant to render a collection of children, use an array instead." + ReactDebugCurrentFrame.getStackAddendum();
814
- }
815
- var childrenString = "" + children;
816
- {
817
- {
818
- throw Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + ")." + addendum);
819
- }
820
- }
821
- }
822
- }
823
- return subtreeCount;
824
- }
825
- function traverseAllChildren(children, callback, traverseContext) {
826
- if (children == null) {
827
- return 0;
828
- }
829
- return traverseAllChildrenImpl(children, "", callback, traverseContext);
830
- }
831
- function getComponentKey(component, index) {
832
- if (typeof component === "object" && component !== null && component.key != null) {
833
- return escape(component.key);
834
- }
835
- return index.toString(36);
836
- }
837
- function forEachSingleChild(bookKeeping, child, name) {
838
- var func = bookKeeping.func, context = bookKeeping.context;
839
- func.call(context, child, bookKeeping.count++);
840
- }
841
- function forEachChildren(children, forEachFunc, forEachContext) {
842
- if (children == null) {
843
- return children;
844
- }
845
- var traverseContext = getPooledTraverseContext(null, null, forEachFunc, forEachContext);
846
- traverseAllChildren(children, forEachSingleChild, traverseContext);
847
- releaseTraverseContext(traverseContext);
848
- }
849
- function mapSingleChildIntoContext(bookKeeping, child, childKey) {
850
- var result = bookKeeping.result, keyPrefix = bookKeeping.keyPrefix, func = bookKeeping.func, context = bookKeeping.context;
851
- var mappedChild = func.call(context, child, bookKeeping.count++);
852
- if (Array.isArray(mappedChild)) {
853
- mapIntoWithKeyPrefixInternal(mappedChild, result, childKey, function(c) {
854
- return c;
855
- });
856
- } else if (mappedChild != null) {
857
- if (isValidElement(mappedChild)) {
858
- mappedChild = cloneAndReplaceKey(mappedChild, keyPrefix + (mappedChild.key && (!child || child.key !== mappedChild.key) ? escapeUserProvidedKey(mappedChild.key) + "/" : "") + childKey);
859
- }
860
- result.push(mappedChild);
861
- }
862
- }
863
- function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
864
- var escapedPrefix = "";
865
- if (prefix != null) {
866
- escapedPrefix = escapeUserProvidedKey(prefix) + "/";
867
- }
868
- var traverseContext = getPooledTraverseContext(array, escapedPrefix, func, context);
869
- traverseAllChildren(children, mapSingleChildIntoContext, traverseContext);
870
- releaseTraverseContext(traverseContext);
871
- }
872
- function mapChildren(children, func, context) {
873
- if (children == null) {
874
- return children;
875
- }
876
- var result = [];
877
- mapIntoWithKeyPrefixInternal(children, result, null, func, context);
878
- return result;
879
- }
880
- function countChildren(children) {
881
- return traverseAllChildren(children, function() {
882
- return null;
883
- }, null);
884
- }
885
- function toArray(children) {
886
- var result = [];
887
- mapIntoWithKeyPrefixInternal(children, result, null, function(child) {
888
- return child;
889
- });
890
- return result;
891
- }
892
- function onlyChild(children) {
893
- if (!isValidElement(children)) {
894
- {
895
- throw Error("React.Children.only expected to receive a single React element child.");
896
- }
897
- }
898
- return children;
899
- }
900
- function createContext2(defaultValue, calculateChangedBits) {
901
- if (calculateChangedBits === void 0) {
902
- calculateChangedBits = null;
903
- } else {
904
- {
905
- if (calculateChangedBits !== null && typeof calculateChangedBits !== "function") {
906
- error("createContext: Expected the optional second argument to be a function. Instead received: %s", calculateChangedBits);
907
- }
908
- }
909
- }
910
- var context = {
911
- $$typeof: REACT_CONTEXT_TYPE,
912
- _calculateChangedBits: calculateChangedBits,
913
- _currentValue: defaultValue,
914
- _currentValue2: defaultValue,
915
- _threadCount: 0,
916
- Provider: null,
917
- Consumer: null
918
- };
919
- context.Provider = {
920
- $$typeof: REACT_PROVIDER_TYPE,
921
- _context: context
922
- };
923
- var hasWarnedAboutUsingNestedContextConsumers = false;
924
- var hasWarnedAboutUsingConsumerProvider = false;
925
- {
926
- var Consumer = {
927
- $$typeof: REACT_CONTEXT_TYPE,
928
- _context: context,
929
- _calculateChangedBits: context._calculateChangedBits
930
- };
931
- Object.defineProperties(Consumer, {
932
- Provider: {
933
- get: function() {
934
- if (!hasWarnedAboutUsingConsumerProvider) {
935
- hasWarnedAboutUsingConsumerProvider = true;
936
- 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?");
937
- }
938
- return context.Provider;
939
- },
940
- set: function(_Provider) {
941
- context.Provider = _Provider;
942
- }
943
- },
944
- _currentValue: {
945
- get: function() {
946
- return context._currentValue;
947
- },
948
- set: function(_currentValue) {
949
- context._currentValue = _currentValue;
950
- }
951
- },
952
- _currentValue2: {
953
- get: function() {
954
- return context._currentValue2;
955
- },
956
- set: function(_currentValue2) {
957
- context._currentValue2 = _currentValue2;
958
- }
959
- },
960
- _threadCount: {
961
- get: function() {
962
- return context._threadCount;
963
- },
964
- set: function(_threadCount) {
965
- context._threadCount = _threadCount;
966
- }
967
- },
968
- Consumer: {
969
- get: function() {
970
- if (!hasWarnedAboutUsingNestedContextConsumers) {
971
- hasWarnedAboutUsingNestedContextConsumers = true;
972
- 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?");
973
- }
974
- return context.Consumer;
975
- }
976
- }
977
- });
978
- context.Consumer = Consumer;
979
- }
980
- {
981
- context._currentRenderer = null;
982
- context._currentRenderer2 = null;
983
- }
984
- return context;
985
- }
986
- function lazy(ctor) {
987
- var lazyType = {
988
- $$typeof: REACT_LAZY_TYPE,
989
- _ctor: ctor,
990
- _status: -1,
991
- _result: null
992
- };
993
- {
994
- var defaultProps;
995
- var propTypes;
996
- Object.defineProperties(lazyType, {
997
- defaultProps: {
998
- configurable: true,
999
- get: function() {
1000
- return defaultProps;
1001
- },
1002
- set: function(newDefaultProps) {
1003
- 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.");
1004
- defaultProps = newDefaultProps;
1005
- Object.defineProperty(lazyType, "defaultProps", {
1006
- enumerable: true
1007
- });
1008
- }
1009
- },
1010
- propTypes: {
1011
- configurable: true,
1012
- get: function() {
1013
- return propTypes;
1014
- },
1015
- set: function(newPropTypes) {
1016
- 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.");
1017
- propTypes = newPropTypes;
1018
- Object.defineProperty(lazyType, "propTypes", {
1019
- enumerable: true
1020
- });
1021
- }
1022
- }
1023
- });
1024
- }
1025
- return lazyType;
1026
- }
1027
- function forwardRef2(render) {
1028
- {
1029
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1030
- error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1031
- } else if (typeof render !== "function") {
1032
- error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1033
- } else {
1034
- if (render.length !== 0 && render.length !== 2) {
1035
- 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.");
1036
- }
1037
- }
1038
- if (render != null) {
1039
- if (render.defaultProps != null || render.propTypes != null) {
1040
- error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1041
- }
1042
- }
1043
- }
1044
- return {
1045
- $$typeof: REACT_FORWARD_REF_TYPE,
1046
- render: render
1047
- };
1048
- }
1049
- function isValidElementType(type) {
1050
- return typeof type === "string" || typeof type === "function" || 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);
1051
- }
1052
- function memo2(type, compare) {
1053
- {
1054
- if (!isValidElementType(type)) {
1055
- error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1056
- }
1057
- }
1058
- return {
1059
- $$typeof: REACT_MEMO_TYPE,
1060
- type: type,
1061
- compare: compare === void 0 ? null : compare
1062
- };
1063
- }
1064
- function resolveDispatcher() {
1065
- var dispatcher = ReactCurrentDispatcher.current;
1066
- if (!(dispatcher !== null)) {
1067
- {
1068
- 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://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.");
1069
- }
1070
- }
1071
- return dispatcher;
1072
- }
1073
- function useContext2(Context2, unstable_observedBits) {
1074
- var dispatcher = resolveDispatcher();
1075
- {
1076
- if (unstable_observedBits !== void 0) {
1077
- 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://fb.me/rules-of-hooks" : "");
1078
- }
1079
- if (Context2._context !== void 0) {
1080
- var realContext = Context2._context;
1081
- if (realContext.Consumer === Context2) {
1082
- 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?");
1083
- } else if (realContext.Provider === Context2) {
1084
- error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1085
- }
1086
- }
1087
- }
1088
- return dispatcher.useContext(Context2, unstable_observedBits);
1089
- }
1090
- function useState2(initialState) {
1091
- var dispatcher = resolveDispatcher();
1092
- return dispatcher.useState(initialState);
1093
- }
1094
- function useReducer(reducer, initialArg, init) {
1095
- var dispatcher = resolveDispatcher();
1096
- return dispatcher.useReducer(reducer, initialArg, init);
1097
- }
1098
- function useRef(initialValue) {
1099
- var dispatcher = resolveDispatcher();
1100
- return dispatcher.useRef(initialValue);
1101
- }
1102
- function useEffect2(create2, deps) {
1103
- var dispatcher = resolveDispatcher();
1104
- return dispatcher.useEffect(create2, deps);
1105
- }
1106
- function useLayoutEffect(create2, deps) {
1107
- var dispatcher = resolveDispatcher();
1108
- return dispatcher.useLayoutEffect(create2, deps);
1109
- }
1110
- function useCallback(callback, deps) {
1111
- var dispatcher = resolveDispatcher();
1112
- return dispatcher.useCallback(callback, deps);
1113
- }
1114
- function useMemo(create2, deps) {
1115
- var dispatcher = resolveDispatcher();
1116
- return dispatcher.useMemo(create2, deps);
1117
- }
1118
- function useImperativeHandle(ref, create2, deps) {
1119
- var dispatcher = resolveDispatcher();
1120
- return dispatcher.useImperativeHandle(ref, create2, deps);
1121
- }
1122
- function useDebugValue(value, formatterFn) {
1123
- {
1124
- var dispatcher = resolveDispatcher();
1125
- return dispatcher.useDebugValue(value, formatterFn);
1126
- }
1127
- }
1128
- var propTypesMisspellWarningShown;
1129
- {
1130
- propTypesMisspellWarningShown = false;
1131
- }
1132
- function getDeclarationErrorAddendum() {
1133
- if (ReactCurrentOwner.current) {
1134
- var name = getComponentName(ReactCurrentOwner.current.type);
1135
- if (name) {
1136
- return "\n\nCheck the render method of `" + name + "`.";
1137
- }
1138
- }
1139
- return "";
1140
- }
1141
- function getSourceInfoErrorAddendum(source) {
1142
- if (source !== void 0) {
1143
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1144
- var lineNumber = source.lineNumber;
1145
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1146
- }
1147
- return "";
1148
- }
1149
- function getSourceInfoErrorAddendumForProps(elementProps) {
1150
- if (elementProps !== null && elementProps !== void 0) {
1151
- return getSourceInfoErrorAddendum(elementProps.__source);
1152
- }
1153
- return "";
1154
- }
1155
- var ownerHasKeyUseWarning = {};
1156
- function getCurrentComponentErrorInfo(parentType) {
1157
- var info = getDeclarationErrorAddendum();
1158
- if (!info) {
1159
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1160
- if (parentName) {
1161
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1162
- }
1163
- }
1164
- return info;
1165
- }
1166
- function validateExplicitKey(element, parentType) {
1167
- if (!element._store || element._store.validated || element.key != null) {
1168
- return;
1169
- }
1170
- element._store.validated = true;
1171
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1172
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1173
- return;
1174
- }
1175
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1176
- var childOwner = "";
1177
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1178
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
1179
- }
1180
- setCurrentlyValidatingElement(element);
1181
- {
1182
- error('Each child in a list should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.', currentComponentErrorInfo, childOwner);
1183
- }
1184
- setCurrentlyValidatingElement(null);
1185
- }
1186
- function validateChildKeys(node, parentType) {
1187
- if (typeof node !== "object") {
1188
- return;
1189
- }
1190
- if (Array.isArray(node)) {
1191
- for (var i = 0; i < node.length; i++) {
1192
- var child = node[i];
1193
- if (isValidElement(child)) {
1194
- validateExplicitKey(child, parentType);
1195
- }
1196
- }
1197
- } else if (isValidElement(node)) {
1198
- if (node._store) {
1199
- node._store.validated = true;
1200
- }
1201
- } else if (node) {
1202
- var iteratorFn = getIteratorFn(node);
1203
- if (typeof iteratorFn === "function") {
1204
- if (iteratorFn !== node.entries) {
1205
- var iterator = iteratorFn.call(node);
1206
- var step;
1207
- while (!(step = iterator.next()).done) {
1208
- if (isValidElement(step.value)) {
1209
- validateExplicitKey(step.value, parentType);
1210
- }
1211
- }
1212
- }
1213
- }
1214
- }
1215
- }
1216
- function validatePropTypes(element) {
1217
- {
1218
- var type = element.type;
1219
- if (type === null || type === void 0 || typeof type === "string") {
1220
- return;
1221
- }
1222
- var name = getComponentName(type);
1223
- var propTypes;
1224
- if (typeof type === "function") {
1225
- propTypes = type.propTypes;
1226
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
1227
- propTypes = type.propTypes;
1228
- } else {
1229
- return;
1230
- }
1231
- if (propTypes) {
1232
- setCurrentlyValidatingElement(element);
1233
- checkPropTypes(propTypes, element.props, "prop", name, ReactDebugCurrentFrame.getStackAddendum);
1234
- setCurrentlyValidatingElement(null);
1235
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1236
- propTypesMisspellWarningShown = true;
1237
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", name || "Unknown");
1238
- }
1239
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1240
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1241
- }
1242
- }
1243
- }
1244
- function validateFragmentProps(fragment) {
1245
- {
1246
- setCurrentlyValidatingElement(fragment);
1247
- var keys = Object.keys(fragment.props);
1248
- for (var i = 0; i < keys.length; i++) {
1249
- var key = keys[i];
1250
- if (key !== "children" && key !== "key") {
1251
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1252
- break;
1253
- }
1254
- }
1255
- if (fragment.ref !== null) {
1256
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
1257
- }
1258
- setCurrentlyValidatingElement(null);
1259
- }
1260
- }
1261
- function createElementWithValidation(type, props, children) {
1262
- var validType = isValidElementType(type);
1263
- if (!validType) {
1264
- var info = "";
1265
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1266
- 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.";
1267
- }
1268
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1269
- if (sourceInfo) {
1270
- info += sourceInfo;
1271
- } else {
1272
- info += getDeclarationErrorAddendum();
1273
- }
1274
- var typeString;
1275
- if (type === null) {
1276
- typeString = "null";
1277
- } else if (Array.isArray(type)) {
1278
- typeString = "array";
1279
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1280
- typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
1281
- info = " Did you accidentally export a JSX literal instead of a component?";
1282
- } else {
1283
- typeString = typeof type;
1284
- }
1285
- {
1286
- 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);
1287
- }
1288
- }
1289
- var element = createElement8.apply(this, arguments);
1290
- if (element == null) {
1291
- return element;
1292
- }
1293
- if (validType) {
1294
- for (var i = 2; i < arguments.length; i++) {
1295
- validateChildKeys(arguments[i], type);
1296
- }
1297
- }
1298
- if (type === REACT_FRAGMENT_TYPE) {
1299
- validateFragmentProps(element);
1300
- } else {
1301
- validatePropTypes(element);
1302
- }
1303
- return element;
1304
- }
1305
- var didWarnAboutDeprecatedCreateFactory = false;
1306
- function createFactoryWithValidation(type) {
1307
- var validatedFactory = createElementWithValidation.bind(null, type);
1308
- validatedFactory.type = type;
1309
- {
1310
- if (!didWarnAboutDeprecatedCreateFactory) {
1311
- didWarnAboutDeprecatedCreateFactory = true;
1312
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1313
- }
1314
- Object.defineProperty(validatedFactory, "type", {
1315
- enumerable: false,
1316
- get: function() {
1317
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1318
- Object.defineProperty(this, "type", {
1319
- value: type
1320
- });
1321
- return type;
1322
- }
1323
- });
1324
- }
1325
- return validatedFactory;
1326
- }
1327
- function cloneElementWithValidation(element, props, children) {
1328
- var newElement = cloneElement.apply(this, arguments);
1329
- for (var i = 2; i < arguments.length; i++) {
1330
- validateChildKeys(arguments[i], newElement.type);
1331
- }
1332
- validatePropTypes(newElement);
1333
- return newElement;
1334
- }
1335
- {
1336
- try {
1337
- var frozenObject = Object.freeze({});
1338
- var testMap = new Map([[frozenObject, null]]);
1339
- var testSet = new Set([frozenObject]);
1340
- testMap.set(0, 0);
1341
- testSet.add(0);
1342
- } catch (e) {
1343
- }
1344
- }
1345
- var createElement$1 = createElementWithValidation;
1346
- var cloneElement$1 = cloneElementWithValidation;
1347
- var createFactory = createFactoryWithValidation;
1348
- var Children4 = {
1349
- map: mapChildren,
1350
- forEach: forEachChildren,
1351
- count: countChildren,
1352
- toArray: toArray,
1353
- only: onlyChild
1354
- };
1355
- exports.Children = Children4;
1356
- exports.Component = Component;
1357
- exports.Fragment = REACT_FRAGMENT_TYPE;
1358
- exports.Profiler = REACT_PROFILER_TYPE;
1359
- exports.PureComponent = PureComponent2;
1360
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
1361
- exports.Suspense = REACT_SUSPENSE_TYPE;
1362
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
1363
- exports.cloneElement = cloneElement$1;
1364
- exports.createContext = createContext2;
1365
- exports.createElement = createElement$1;
1366
- exports.createFactory = createFactory;
1367
- exports.createRef = createRef;
1368
- exports.forwardRef = forwardRef2;
1369
- exports.isValidElement = isValidElement;
1370
- exports.lazy = lazy;
1371
- exports.memo = memo2;
1372
- exports.useCallback = useCallback;
1373
- exports.useContext = useContext2;
1374
- exports.useDebugValue = useDebugValue;
1375
- exports.useEffect = useEffect2;
1376
- exports.useImperativeHandle = useImperativeHandle;
1377
- exports.useLayoutEffect = useLayoutEffect;
1378
- exports.useMemo = useMemo;
1379
- exports.useReducer = useReducer;
1380
- exports.useRef = useRef;
1381
- exports.useState = useState2;
1382
- exports.version = ReactVersion;
1383
- })();
1384
- }
1385
- }
1386
- });
1387
-
1388
- // node_modules/react/index.js
1389
- var require_react = __commonJS({
1390
- "node_modules/react/index.js": function(exports, module) {
1391
- "use strict";
1392
- if (false) {
1393
- module.exports = null;
1394
- } else {
1395
- module.exports = require_react_development();
1396
- }
1397
- }
1398
- });
1399
-
1400
37
  // node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js
1401
38
  var require_react_is_development = __commonJS({
1402
39
  "node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js": function(exports) {
@@ -1794,17 +431,17 @@ var ReactIntl = (function() {
1794
431
  }
1795
432
 
1796
433
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/createFormattedComponent.js
1797
- var React4 = __toModule(require_react());
434
+ var React4 = __toModule(window.React);
1798
435
 
1799
436
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/useIntl.js
1800
- var React3 = __toModule(require_react());
437
+ var React3 = __toModule(window.React);
1801
438
 
1802
439
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/injectIntl.js
1803
- var React2 = __toModule(require_react());
440
+ var React2 = __toModule(window.React);
1804
441
  var import_hoist_non_react_statics = __toModule(require_hoist_non_react_statics_cjs());
1805
442
 
1806
443
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/utils.js
1807
- var React = __toModule(require_react());
444
+ var React = __toModule(window.React);
1808
445
 
1809
446
  // bazel-out/darwin-fastbuild/bin/packages/ecma402-abstract/lib/262.js
1810
447
  var MINUTES_PER_HOUR = 60;
@@ -4342,7 +2979,7 @@ var ReactIntl = (function() {
4342
2979
  }
4343
2980
 
4344
2981
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/provider.js
4345
- var React5 = __toModule(require_react());
2982
+ var React5 = __toModule(window.React);
4346
2983
  function processIntlConfig(config) {
4347
2984
  return {
4348
2985
  locale: config.locale,
@@ -4433,7 +3070,7 @@ var ReactIntl = (function() {
4433
3070
  var provider_default = IntlProvider2;
4434
3071
 
4435
3072
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/relative.js
4436
- var React6 = __toModule(require_react());
3073
+ var React6 = __toModule(window.React);
4437
3074
  var MINUTE = 60;
4438
3075
  var HOUR = 60 * 60;
4439
3076
  var DAY = 60 * 60 * 24;
@@ -4552,7 +3189,7 @@ var ReactIntl = (function() {
4552
3189
  var relative_default = FormattedRelativeTime;
4553
3190
 
4554
3191
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/plural.js
4555
- var React7 = __toModule(require_react());
3192
+ var React7 = __toModule(window.React);
4556
3193
  var FormattedPlural = function(props) {
4557
3194
  var _a2 = useIntl(), formatPlural2 = _a2.formatPlural, Text = _a2.textComponent;
4558
3195
  var value = props.value, other = props.other, children = props.children;
@@ -4573,7 +3210,7 @@ var ReactIntl = (function() {
4573
3210
  var plural_default = FormattedPlural;
4574
3211
 
4575
3212
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/message.js
4576
- var React8 = __toModule(require_react());
3213
+ var React8 = __toModule(window.React);
4577
3214
  function areEqual(prevProps, nextProps) {
4578
3215
  var values = prevProps.values, otherProps = __rest(prevProps, ["values"]);
4579
3216
  var nextValues = nextProps.values, nextOtherProps = __rest(nextProps, ["values"]);
@@ -4604,7 +3241,7 @@ var ReactIntl = (function() {
4604
3241
  var message_default = MemoizedFormattedMessage;
4605
3242
 
4606
3243
  // bazel-out/darwin-fastbuild/bin/packages/react-intl/lib/src/components/dateTimeRange.js
4607
- var React9 = __toModule(require_react());
3244
+ var React9 = __toModule(window.React);
4608
3245
  var FormattedDateTimeRange = function(props) {
4609
3246
  var intl = useIntl();
4610
3247
  var from = props.from, to = props.to, children = props.children, formatProps = __rest(props, ["from", "to", "children"]);
@@ -4634,11 +3271,6 @@ var ReactIntl = (function() {
4634
3271
  var FormattedTimeParts = createFormattedDateTimePartsComponent("formatTime");
4635
3272
  return lib_exports;
4636
3273
  })();
4637
- /*
4638
- object-assign
4639
- (c) Sindre Sorhus
4640
- @license MIT
4641
- */
4642
3274
  /*! *****************************************************************************
4643
3275
  Copyright (c) Microsoft Corporation.
4644
3276
 
@@ -4661,12 +3293,4 @@ PERFORMANCE OF THIS SOFTWARE.
4661
3293
  * This source code is licensed under the MIT license found in the
4662
3294
  * LICENSE file in the root directory of this source tree.
4663
3295
  */
4664
- /** @license React v16.14.0
4665
- * react.development.js
4666
- *
4667
- * Copyright (c) Facebook, Inc. and its affiliates.
4668
- *
4669
- * This source code is licensed under the MIT license found in the
4670
- * LICENSE file in the root directory of this source tree.
4671
- */
4672
- //# sourceMappingURL=react-intl.iife.js.map
3296
+ //# sourceMappingURL=react-intl.esbuild.iife.js.map